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 , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, freezegun , freezegun
, gettext
, importlib-metadata , importlib-metadata
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -10,7 +11,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.1.0"; version = "4.2.3";
pname = "humanize"; pname = "humanize";
format = "pyproject"; format = "pyproject";
@ -20,13 +21,14 @@ buildPythonPackage rec {
owner = "python-humanize"; owner = "python-humanize";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-5xL3gfEohDjnF085Pgx/PBXWWM76X4FU2KR+8OGshMw="; hash = "sha256-cAlNtN9sUnDAkCQj2bJfT72B2TQDYRBB4P4NJY9mUU0=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ nativeBuildInputs = [
setuptools-scm setuptools-scm
gettext
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -35,6 +37,14 @@ buildPythonPackage rec {
importlib-metadata importlib-metadata
]; ];
postBuild = ''
scripts/generate-translation-binaries.sh
'';
postInstall = ''
cp -r 'src/humanize/locale' "$out/lib/"*'/site-packages/humanize/'
'';
checkInputs = [ checkInputs = [
freezegun freezegun
pytestCheckHook pytestCheckHook
@ -48,6 +58,6 @@ buildPythonPackage rec {
description = "Python humanize utilities"; description = "Python humanize utilities";
homepage = "https://github.com/python-humanize/humanize"; homepage = "https://github.com/python-humanize/humanize";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rmcgibbo ]; maintainers = with maintainers; [ rmcgibbo Luflosi ];
}; };
} }