nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.curtsies: disable on older Python releases

- make backports-cached-property optional

authored by

Fabian Affolter and committed by
GitHub
d855cc8a 97fe48d9

+12 -9
+12 -9
pkgs/development/python-modules/curtsies/default.nix
··· 1 - { stdenv 2 - , lib 3 - , buildPythonPackage 4 - , fetchPypi 5 - , pythonOlder 6 - , blessed 1 + { lib 2 + , stdenv 7 3 , backports-cached-property 4 + , blessed 5 + , buildPythonPackage 6 + , cwcwidth 7 + , fetchPypi 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 = [ ··· 35 32 ]; 36 33 37 34 meta = with lib; { 38 - broken = stdenv.isDarwin; 39 35 description = "Curses-like terminal wrapper, with colored strings!"; 40 36 homepage = "https://github.com/bpython/curtsies"; 41 37 license = licenses.mit; 42 38 maintainers = with maintainers; [ flokli ]; 39 + broken = stdenv.isDarwin; 43 40 }; 44 41 }