2022-01-17 21:05:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-07-09 09:49:04 +01:00
|
|
|
, packaging
|
2022-01-17 21:05:15 +00:00
|
|
|
, pbr
|
|
|
|
, pytestCheckHook
|
2022-07-09 09:49:04 +01:00
|
|
|
, pythonOlder
|
|
|
|
, sentinels
|
2022-01-17 21:05:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mongomock";
|
2022-07-09 02:15:49 +01:00
|
|
|
version = "4.1.2";
|
2022-07-09 09:49:04 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2022-01-17 21:05:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-09 09:49:04 +01:00
|
|
|
hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30=";
|
2022-01-17 21:05:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-07-09 09:49:04 +01:00
|
|
|
packaging
|
2022-01-17 21:05:15 +00:00
|
|
|
sentinels
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-07-09 09:49:04 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mongomock"
|
|
|
|
];
|
2022-01-17 21:05:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mongomock/mongomock";
|
|
|
|
description = "Fake pymongo stub for testing simple MongoDB-dependent code";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|