ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
46 lines
785 B
Nix
46 lines
785 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, packaging
|
|
, pbr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, sentinels
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mongomock";
|
|
version = "4.1.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
sentinels
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mongomock"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|