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