python310Packages.humanize: 4.0.0 -> 4.1.0

main
Fabian Affolter 2 years ago
parent fd61626130
commit 293b1a9afd
  1. 24
      pkgs/development/python-modules/humanize/default.nix

@ -1,25 +1,26 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, freezegun
, importlib-metadata
, pytestCheckHook
, pythonOlder , pythonOlder
, setuptools-scm
, setuptools , setuptools
, pytestCheckHook , setuptools-scm
, freezegun
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.0.0"; version = "4.1.0";
pname = "humanize"; pname = "humanize";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jmoiron"; owner = "python-humanize";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-v4OdZmUI2LCick4qCSGOHJ7jtWybwKTeTeIcly+QQQQ="; hash = "sha256-5xL3gfEohDjnF085Pgx/PBXWWM76X4FU2KR+8OGshMw=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -30,6 +31,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
]; ];
checkInputs = [ checkInputs = [
@ -37,11 +40,14 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [
"humanize"
];
meta = with lib; { meta = with lib; {
description = "Python humanize utilities"; description = "Python humanize utilities";
homepage = "https://github.com/jmoiron/humanize"; homepage = "https://github.com/python-humanize/humanize";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rmcgibbo ]; maintainers = with maintainers; [ rmcgibbo ];
}; };
} }

Loading…
Cancel
Save