Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 freezegun, 6 gettext, 7 pytestCheckHook, 8 python, 9 hatch-vcs, 10 hatchling, 11}: 12 13buildPythonPackage rec { 14 pname = "humanize"; 15 version = "4.15.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "python-humanize"; 20 repo = "humanize"; 21 tag = version; 22 hash = "sha256-EG0QrW4b5NK9+78B0Cs4eAuicIsN/V/77+JxyYrTReA="; 23 }; 24 25 nativeBuildInputs = [ 26 hatch-vcs 27 hatchling 28 gettext 29 ]; 30 31 postBuild = '' 32 scripts/generate-translation-binaries.sh 33 ''; 34 35 postInstall = '' 36 cp -r 'src/humanize/locale' "$out/${python.sitePackages}/humanize/" 37 ''; 38 39 nativeCheckInputs = [ 40 freezegun 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "humanize" ]; 45 46 meta = { 47 description = "Python humanize utilities"; 48 homepage = "https://github.com/python-humanize/humanize"; 49 changelog = "https://github.com/python-humanize/humanize/releases/tag/${src.tag}"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ 52 rmcgibbo 53 Luflosi 54 ]; 55 }; 56}