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
|
|
|
|
, setuptools_scm
|
2021-02-16 17:04:54 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.1.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;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "fd3eb915310335c63a54d4507289ecc7b3a7454cd2c22ac5086d061a3cbfd592";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +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
|
|
|
};
|
|
|
|
|
|
|
|
}
|