1{ lib
2, buildPythonPackage
3, fetchPypi
4, pymongo
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "mockupdb";
11 version = "1.8.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.9";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4=";
19 };
20
21 propagatedBuildInputs = [
22 pymongo
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "mockupdb"
31 ];
32
33 disabledTests = [
34 # AssertionError: expected to receive Request(), got nothing
35 "test_flags"
36 "test_iteration"
37 "test_ok"
38 "test_ssl_basic"
39 "test_unix_domain_socket"
40 ];
41
42 meta = with lib; {
43 description = "Simulate a MongoDB server";
44 license = licenses.asl20;
45 homepage = "https://github.com/ajdavis/mongo-mockup-db";
46 maintainers = with maintainers; [ globin ];
47 };
48}