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