2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 04:36:16 +01:00
|
|
|
, buildPythonPackage
|
2021-12-28 00:16:13 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2021-06-03 11:09:11 +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 {
|
2022-03-02 21:42:01 +00:00
|
|
|
version = "4.0.0";
|
2018-10-16 04:36:16 +01:00
|
|
|
pname = "humanize";
|
2021-12-28 00:16:13 +00:00
|
|
|
format = "pyproject";
|
2018-10-16 04:36:16 +01:00
|
|
|
|
2021-12-28 00:16:13 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jmoiron";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-02 21:42:01 +00:00
|
|
|
sha256 = "sha256-v4OdZmUI2LCick4qCSGOHJ7jtWybwKTeTeIcly+QQQQ=";
|
2018-10-16 04:36:16 +01:00
|
|
|
};
|
|
|
|
|
2021-12-28 00:16:13 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|