From 03399cf63ababcd8d4d0f173e1e1e26a387eb90d Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 26 Feb 2024 14:08:40 +0100 Subject: [PATCH 1/2] python3Packages.humanize: cleanup --- pkgs/development/python-modules/humanize/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index d0c9389ed1b2..89b848ff1cfb 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -6,6 +6,7 @@ gettext, pytestCheckHook, pythonOlder, + python, hatch-vcs, hatchling, }: @@ -35,7 +36,7 @@ buildPythonPackage rec { ''; postInstall = '' - cp -r 'src/humanize/locale' "$out/lib/"*'/site-packages/humanize/' + cp -r 'src/humanize/locale' "$out/${python.sitePackages}/humanize/" ''; nativeCheckInputs = [ From f32988a3bcf68becf75a5aac8cb10ba8e07577d5 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Tue, 9 Jul 2024 23:59:28 +0200 Subject: [PATCH 2/2] python3Packages.humanize: 4.9.0 -> 4.10.0 https://github.com/python-humanize/humanize/releases/tag/4.10.0 --- pkgs/development/python-modules/humanize/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index 89b848ff1cfb..dbc0bdf1caef 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "humanize"; - version = "4.9.0"; + version = "4.10.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "python-humanize"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-sLlgR6c65RmUNZdH2pHuxzo7dm71uUZXGqzcqyxCrk4="; + hash = "sha256-zzasFAaWH284IEnWwWKvCL1lt/ItNfdbWhq1K30gSPU="; }; nativeBuildInputs = [ @@ -31,6 +31,12 @@ buildPythonPackage rec { gettext ]; + postPatch = '' + # Remove dependency on pytest-cov + substituteInPlace pyproject.toml --replace-fail \ + '"ignore:sys.monitoring isn'"'"'t available, using default core:coverage.exceptions.CoverageWarning",' "" + ''; + postBuild = '' scripts/generate-translation-binaries.sh '';