From 293b1a9afdf325bd44aad9974dbe420366d37a47 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 17 May 2022 17:08:07 +0200 Subject: [PATCH] python310Packages.humanize: 4.0.0 -> 4.1.0 --- .../python-modules/humanize/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index fa13cdab0c23..299bd9685940 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -1,25 +1,26 @@ { lib , buildPythonPackage , fetchFromGitHub -, pythonOlder -, setuptools-scm -, setuptools -, pytestCheckHook , freezegun +, importlib-metadata +, pytestCheckHook +, pythonOlder +, setuptools +, setuptools-scm }: buildPythonPackage rec { - version = "4.0.0"; + version = "4.1.0"; pname = "humanize"; format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { - owner = "jmoiron"; + owner = "python-humanize"; repo = pname; rev = version; - sha256 = "sha256-v4OdZmUI2LCick4qCSGOHJ7jtWybwKTeTeIcly+QQQQ="; + hash = "sha256-5xL3gfEohDjnF085Pgx/PBXWWM76X4FU2KR+8OGshMw="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -30,6 +31,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ setuptools + ] ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata ]; checkInputs = [ @@ -37,11 +40,14 @@ buildPythonPackage rec { pytestCheckHook ]; + pythonImportsCheck = [ + "humanize" + ]; + meta = with lib; { description = "Python humanize utilities"; - homepage = "https://github.com/jmoiron/humanize"; + homepage = "https://github.com/python-humanize/humanize"; license = licenses.mit; maintainers = with maintainers; [ rmcgibbo ]; }; - }