forked from mirrors/nixpkgs
Merge pull request #180056 from Luflosi/update/python3Packages.humanize
python3Packages.humanize: 4.1.0 -> 4.2.3
This commit is contained in:
commit
215f1406e5
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue