2018-10-16 04:36:16 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 21:57:19 +01:00
|
|
|
, isPy27
|
2018-10-16 04:36:16 +01:00
|
|
|
, mock
|
2020-06-08 20:02:48 +01:00
|
|
|
, setuptools_scm
|
2018-10-16 04:36:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-07-31 09:56:40 +01:00
|
|
|
version = "2.4.1";
|
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-07-31 09:56:40 +01:00
|
|
|
sha256 = "4b4ce2fc1c9d79c63f68009ddf5a12ad238aa78e2fceb256b5aa921763551422";
|
2018-10-16 04:36:16 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:02:48 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ mock ];
|
2018-10-16 04:36:16 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ ];
|
2018-11-05 01:19:05 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-16 04:36:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|