2018-10-16 03:36:16 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 20:57:19 +00:00
|
|
|
, isPy27
|
2018-10-16 03:36:16 +00:00
|
|
|
, mock
|
2020-06-08 19:02:48 +00:00
|
|
|
, setuptools_scm
|
2018-10-16 03:36:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 17:31:03 +00:00
|
|
|
version = "2.6.0";
|
2018-10-16 03:36:16 +00:00
|
|
|
pname = "humanize";
|
2020-06-16 20:57:19 +00:00
|
|
|
disabled = isPy27; # setup.py no longer compatible
|
2018-10-16 03:36:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:03 +00:00
|
|
|
sha256 = "8ee358ea6c23de896b9d1925ebe6a8504bb2ba7e98d5ccf4d07ab7f3b28f3819";
|
2018-10-16 03:36:16 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:02:48 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ mock ];
|
2018-10-16 03:36:16 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python humanize utilities";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jmoiron/humanize";
|
2018-10-16 03:36:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2018-11-05 01:19:05 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-16 03:36:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|