nixpkgs/pkgs/development/python-modules/mongomock/default.nix
2024-10-13 11:08:54 +02:00

49 lines
919 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-vcs,
hatchling,
packaging,
pytestCheckHook,
pythonOlder,
pytz,
sentinels,
}:
buildPythonPackage rec {
pname = "mongomock";
version = "4.2.0.post1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-kkHSzscnS5c22+jtrLGVKP9mrzs3ebMk157MQgEifzE=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
packaging
pytz
sentinels
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mongomock" ];
meta = with lib; {
description = "Fake pymongo stub for testing simple MongoDB-dependent code";
homepage = "https://github.com/mongomock/mongomock";
changelog = "https://github.com/mongomock/mongomock/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ gador ];
};
}