From 8c98d7df03b20987b1f3e03daab4e69cb7fd6a07 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:05:37 +0200 Subject: [PATCH] python3Packages.mongomock: 4.1.2 -> 4.2.0.post1 --- .../python-modules/mongomock/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/mongomock/default.nix b/pkgs/development/python-modules/mongomock/default.nix index 8c74f998f820..608422286622 100644 --- a/pkgs/development/python-modules/mongomock/default.nix +++ b/pkgs/development/python-modules/mongomock/default.nix @@ -2,29 +2,35 @@ lib, buildPythonPackage, fetchPypi, + hatch-vcs, + hatchling, packaging, - pbr, 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 ]; @@ -33,8 +39,9 @@ buildPythonPackage rec { 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 ]; };