Merge pull request #180056 from Luflosi/update/python3Packages.humanize

python3Packages.humanize: 4.1.0 -> 4.2.3
This commit is contained in:
Robert Scott 2022-07-10 14:05:27 +01:00 committed by GitHub
commit 215f1406e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, freezegun
, gettext
, importlib-metadata
, pytestCheckHook
, pythonOlder
@ -10,7 +11,7 @@
}:
buildPythonPackage rec {
version = "4.1.0";
version = "4.2.3";
pname = "humanize";
format = "pyproject";
@ -20,13 +21,14 @@ buildPythonPackage rec {
owner = "python-humanize";
repo = pname;
rev = version;
hash = "sha256-5xL3gfEohDjnF085Pgx/PBXWWM76X4FU2KR+8OGshMw=";
hash = "sha256-cAlNtN9sUnDAkCQj2bJfT72B2TQDYRBB4P4NJY9mUU0=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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
@ -48,6 +58,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 ];
};
}