diff options
Diffstat (limited to 'pkgs/development/python-modules/mongomock/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mongomock/default.nix | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/mongomock/default.nix b/pkgs/development/python-modules/mongomock/default.nix index 5e66ad42197c..608422286622 100644 --- a/pkgs/development/python-modules/mongomock/default.nix +++ b/pkgs/development/python-modules/mongomock/default.nix @@ -1,45 +1,47 @@ -{ lib -, buildPythonPackage -, fetchPypi -, packaging -, pbr -, pytestCheckHook -, pythonOlder -, sentinels +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + packaging, + pytestCheckHook, + pythonOlder, + pytz, + sentinels, }: buildPythonPackage rec { pname = "mongomock"; - version = "4.1.2"; - format = "setuptools"; + version = "4.2.0.post1"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30="; + hash = "sha256-kkHSzscnS5c22+jtrLGVKP9mrzs3ebMk157MQgEifzE="; }; - nativeBuildInputs = [ - pbr + build-system = [ + hatch-vcs + hatchling ]; - propagatedBuildInputs = [ + dependencies = [ packaging + pytz sentinels ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mongomock" - ]; + pythonImportsCheck = [ "mongomock" ]; meta = with lib; { - homepage = "https://github.com/mongomock/mongomock"; 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 ]; }; |