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-12-06 16:07:01 +00:00
|
|
|
version = "3.12.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-12-06 16:07:01 +00:00
|
|
|
sha256 = "5ec1a66e230a3e31fb3f184aab9436ea13d4e37c168e0ffc345ae5bb57e58be6";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|