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

This commit is contained in:
Sandro
2024-07-17 17:16:24 +02:00
committed by GitHub

View File

@@ -6,13 +6,14 @@
gettext, gettext,
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
python,
hatch-vcs, hatch-vcs,
hatchling, hatchling,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "humanize"; pname = "humanize";
version = "4.9.0"; version = "4.10.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@@ -21,7 +22,7 @@ buildPythonPackage rec {
owner = "python-humanize"; owner = "python-humanize";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-sLlgR6c65RmUNZdH2pHuxzo7dm71uUZXGqzcqyxCrk4="; hash = "sha256-zzasFAaWH284IEnWwWKvCL1lt/ItNfdbWhq1K30gSPU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@@ -30,12 +31,18 @@ buildPythonPackage rec {
gettext 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 = '' postBuild = ''
scripts/generate-translation-binaries.sh scripts/generate-translation-binaries.sh
''; '';
postInstall = '' postInstall = ''
cp -r 'src/humanize/locale' "$out/lib/"*'/site-packages/humanize/' cp -r 'src/humanize/locale' "$out/${python.sitePackages}/humanize/"
''; '';
nativeCheckInputs = [ nativeCheckInputs = [