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