From d1dcbade3dbe4ed018c8f25d58c8e02b282d1348 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 3 Jul 2022 20:03:02 +0200 Subject: [PATCH 1/3] python3Packages.humanize: add Luflosi as maintainer --- pkgs/development/python-modules/humanize/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index 299bd9685940..37adab72168e 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -48,6 +48,6 @@ buildPythonPackage rec { description = "Python humanize utilities"; homepage = "https://github.com/python-humanize/humanize"; license = licenses.mit; - maintainers = with maintainers; [ rmcgibbo ]; + maintainers = with maintainers; [ rmcgibbo Luflosi ]; }; } From 228c2d6c1c3e7f76a630ba1c7fb69d09c3227c27 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 3 Jul 2022 20:27:18 +0200 Subject: [PATCH 2/3] python3Packages.humanize: include generated translations Without this, localization doesn't work and only english is available. --- pkgs/development/python-modules/humanize/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index 37adab72168e..4bbec306cc71 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchFromGitHub , freezegun +, gettext , importlib-metadata , pytestCheckHook , pythonOlder @@ -27,6 +28,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm + gettext ]; propagatedBuildInputs = [ @@ -35,6 +37,14 @@ buildPythonPackage rec { importlib-metadata ]; + postBuild = '' + scripts/generate-translation-binaries.sh + ''; + + postInstall = '' + cp -r 'src/humanize/locale' "$out/lib/"*'/site-packages/humanize/' + ''; + checkInputs = [ freezegun pytestCheckHook From dcc323e1f181f670904185a08b791f27991c6dea Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 3 Jul 2022 20:30:48 +0200 Subject: [PATCH 3/3] python3Packages.humanize: 4.1.0 -> 4.2.3 https://github.com/python-humanize/humanize/releases/tag/4.2.3 --- pkgs/development/python-modules/humanize/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index 4bbec306cc71..b64b26844d18 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -11,7 +11,7 @@ }: buildPythonPackage rec { - version = "4.1.0"; + version = "4.2.3"; pname = "humanize"; format = "pyproject"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "python-humanize"; repo = pname; rev = version; - hash = "sha256-5xL3gfEohDjnF085Pgx/PBXWWM76X4FU2KR+8OGshMw="; + hash = "sha256-cAlNtN9sUnDAkCQj2bJfT72B2TQDYRBB4P4NJY9mUU0="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version;