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