2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 04:36:16 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 21:57:19 +01:00
|
|
|
, isPy27
|
2020-06-08 20:02:48 +01:00
|
|
|
, setuptools_scm
|
2021-02-13 22:56:04 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
2018-10-16 04:36:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-11-29 14:04:30 +00:00
|
|
|
version = "3.1.0";
|
2018-10-16 04:36:16 +01:00
|
|
|
pname = "humanize";
|
2020-06-16 21:57:19 +01:00
|
|
|
disabled = isPy27; # setup.py no longer compatible
|
2018-10-16 04:36:16 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:30 +00:00
|
|
|
sha256 = "fd3eb915310335c63a54d4507289ecc7b3a7454cd2c22ac5086d061a3cbfd592";
|
2018-10-16 04:36:16 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:02:48 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2021-02-13 22:56:04 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
checkInputs = [ pytestCheckHook freezegun ];
|
2018-10-16 04:36:16 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 04:36:16 +01:00
|
|
|
description = "Python humanize utilities";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jmoiron/humanize";
|
2018-10-16 04:36:16 +01:00
|
|
|
license = licenses.mit;
|
2021-02-13 22:56:04 +00:00
|
|
|
maintainers = with maintainers; [ rmcgibbo ];
|
2018-10-16 04:36:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|