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