Files
nixpkgs/pkgs/development/python-modules/humanize/default.nix
T
Martin Weinelt 580df0bf33 python3Packages.humanize: 4.12.3 -> 4.15.0
https://github.com/python-humanize/humanize/releases/tag/4.15.0

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:17 +01:00

57 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
freezegun,
gettext,
pytestCheckHook,
python,
hatch-vcs,
hatchling,
}:
buildPythonPackage rec {
pname = "humanize";
version = "4.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-humanize";
repo = "humanize";
tag = version;
hash = "sha256-EG0QrW4b5NK9+78B0Cs4eAuicIsN/V/77+JxyYrTReA=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
gettext
];
postBuild = ''
scripts/generate-translation-binaries.sh
'';
postInstall = ''
cp -r 'src/humanize/locale' "$out/${python.sitePackages}/humanize/"
'';
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [ "humanize" ];
meta = {
description = "Python humanize utilities";
homepage = "https://github.com/python-humanize/humanize";
changelog = "https://github.com/python-humanize/humanize/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
rmcgibbo
Luflosi
];
};
}