1{ lib
2, pythonOlder
3, buildPythonPackage
4, fetchPypi
5, monotonic
6}:
7
8buildPythonPackage rec {
9 pname = "humanfriendly";
10 version = "9.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "f7dba53ac7935fd0b4a2fc9a29e316ddd9ea135fb3052d3d0279d10c18ff9c48";
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}