1{ lib 2, stdenv 3, backports-cached-property 4, blessed 5, buildPythonPackage 6, cwcwidth 7, fetchPypi 8, pyte 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "curtsies"; 15 version = "0.4.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-YtEPNJxVOEUwZVan8mY86WsJjYxbvEDa7Hpu7d4WIrA="; 23 }; 24 25 propagatedBuildInputs = [ 26 blessed 27 cwcwidth 28 ] ++ lib.optionals (pythonOlder "3.8") [ 29 backports-cached-property 30 ]; 31 32 checkInputs = [ 33 pyte 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 description = "Curses-like terminal wrapper, with colored strings!"; 39 homepage = "https://github.com/bpython/curtsies"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ flokli ]; 42 broken = stdenv.isDarwin; 43 }; 44}