2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-28 09:39:13 +00:00
|
|
|
, pymongo
|
2022-11-04 12:27:35 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mockupdb";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "1.8.1";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-04 12:27:35 +00:00
|
|
|
hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pymongo
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mockupdb"
|
|
|
|
];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: expected to receive Request(), got nothing
|
|
|
|
"test_flags"
|
|
|
|
"test_iteration"
|
|
|
|
"test_ok"
|
|
|
|
"test_ssl_basic"
|
|
|
|
"test_unix_domain_socket"
|
|
|
|
];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simulate a MongoDB server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/ajdavis/mongo-mockup-db";
|
|
|
|
maintainers = with maintainers; [ globin ];
|
|
|
|
};
|
|
|
|
}
|