python310Packages.curtsies: disable on older Python releases

- make backports-cached-property optional

authored by Fabian Affolter and committed by GitHub d855cc8a 97fe48d9

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