about summary refs log tree commit diff
path: root/pkgs/development/python-modules/curtsies
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-10-07 09:05:28 +0200
committerGitHub <noreply@github.com>2022-10-07 09:05:28 +0200
commitd855cc8a139aa880fc9aa7bd73e6bcca536a34cd (patch)
tree3714189352409dd629ea4519cd799d743aa5688c /pkgs/development/python-modules/curtsies
parent97fe48d9ad8d93775d17b076e8e999e46aa73766 (diff)
python310Packages.curtsies: disable on older Python releases
- make backports-cached-property optional
Diffstat (limited to 'pkgs/development/python-modules/curtsies')
-rw-r--r--pkgs/development/python-modules/curtsies/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/curtsies/default.nix b/pkgs/development/python-modules/curtsies/default.nix
index f445cdd434ee9..2c63de46fdcd2 100644
--- a/pkgs/development/python-modules/curtsies/default.nix
+++ b/pkgs/development/python-modules/curtsies/default.nix
@@ -1,13 +1,13 @@
-{ stdenv
-, lib
+{ lib
+, stdenv
+, backports-cached-property
+, blessed
 , buildPythonPackage
+, cwcwidth
 , fetchPypi
-, pythonOlder
-, blessed
-, backports-cached-property
 , pyte
 , pytestCheckHook
-, cwcwidth
+, pythonOlder
 }:
 
 buildPythonPackage rec {
@@ -15,15 +15,18 @@ buildPythonPackage rec {
   version = "0.4.1";
   format = "pyproject";
 
+  disabled = pythonOlder "3.7";
+
   src = fetchPypi {
     inherit pname version;
     hash = "sha256-YtEPNJxVOEUwZVan8mY86WsJjYxbvEDa7Hpu7d4WIrA=";
   };
 
   propagatedBuildInputs = [
-    backports-cached-property
     blessed
     cwcwidth
+  ] ++ lib.optionals (pythonOlder "3.8") [
+    backports-cached-property
   ];
 
   checkInputs = [
@@ -32,10 +35,10 @@ buildPythonPackage rec {
   ];
 
   meta = with lib; {
-    broken = stdenv.isDarwin;
     description = "Curses-like terminal wrapper, with colored strings!";
     homepage = "https://github.com/bpython/curtsies";
     license = licenses.mit;
     maintainers = with maintainers; [ flokli ];
+    broken = stdenv.isDarwin;
   };
 }