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