1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, setuptools-scm
6, setuptools
7, pytestCheckHook
8, freezegun
9}:
10
11buildPythonPackage rec {
12 version = "3.12.0";
13 pname = "humanize";
14 disabled = isPy27; # setup.py no longer compatible
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "5ec1a66e230a3e31fb3f184aab9436ea13d4e37c168e0ffc345ae5bb57e58be6";
19 };
20
21 nativeBuildInputs = [ setuptools-scm ];
22 propagatedBuildInputs = [ setuptools ];
23 checkInputs = [ pytestCheckHook freezegun ];
24
25 meta = with lib; {
26 description = "Python humanize utilities";
27 homepage = "https://github.com/jmoiron/humanize";
28 license = licenses.mit;
29 maintainers = with maintainers; [ rmcgibbo ];
30 };
31
32}