1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch2, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "humanfriendly"; 11 version = "10.0"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc"; 17 }; 18 19 patches = [ 20 (fetchpatch2 { 21 # https://github.com/xolox/python-humanfriendly/pull/75 22 url = "https://github.com/musicinmybrain/python-humanfriendly/commit/13d05b8057010121acd2a402a337ef4ee5834062.patch"; 23 hash = "sha256-m7cySiIx0gNhh6KKhT71DJFOtFu2Copk9ic2yaiCulk="; 24 }) 25 ]; 26 27 build-system = [ setuptools ]; 28 29 # humanfriendly tests depends on coloredlogs which itself depends on 30 # humanfriendly. This lead to infinite recursion when trying to 31 # build this package so we have to disable the test suite :( 32 doCheck = false; 33 34 meta = with lib; { 35 description = "Human friendly output for text interfaces using Python"; 36 mainProgram = "humanfriendly"; 37 homepage = "https://humanfriendly.readthedocs.io/"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ montag451 ]; 40 }; 41}