1{ lib
2, pythonOlder
3, buildPythonPackage
4, fetchPypi
5, monotonic
6}:
7
8buildPythonPackage rec {
9 pname = "humanfriendly";
10 version = "4.18";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "33ee8ceb63f1db61cce8b5c800c531e1a61023ac5488ccde2ba574a85be00a85";
15 };
16
17 propagatedBuildInputs = lib.optional (pythonOlder "3.3") monotonic;
18
19 # humanfriendly tests depends on coloredlogs which itself depends on
20 # humanfriendly. This lead to infinite recursion when trying to
21 # build this package so we have to disable the test suite :(
22 doCheck = false;
23
24 meta = with lib; {
25 description = "Human friendly output for text interfaces using Python";
26 homepage = https://humanfriendly.readthedocs.io/;
27 license = licenses.mit;
28 maintainers = with maintainers; [ montag451 ];
29 };
30}