2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-15 15:56:04 +00:00
|
|
|
, isPy27
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-02-16 17:04:54 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "humanize";
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27; # setup.py no longer compatible
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "4160cdc63fcd0daac27d2e1e218a31bb396fc3fe5712d153675d89432a03778f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
checkInputs = [ pytestCheckHook freezegun ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python humanize utilities";
|
|
|
|
homepage = "https://github.com/jmoiron/humanize";
|
|
|
|
license = licenses.mit;
|
2021-02-16 17:04:54 +00:00
|
|
|
maintainers = with maintainers; [ rmcgibbo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|