about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycairo
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-04-11 21:23:42 +0200
committerRobert Schütz <dev@schuetz-co.de>2021-04-12 00:14:41 +0200
commite5eb701c6e154e4510df09ee02e4f09d6b5f1e43 (patch)
tree631e2eb6c5dd81ec88af7e72b44ba6f9b3d524b7 /pkgs/development/python-modules/pycairo
parent46440dae4ecd7ca4435c4c1f4136b5f6b6600cab (diff)
pythonPackages.pycairo: requires Python 3.6+
See https://pycairo.readthedocs.io/en/latest/changelog.html#v1-20-0.
Diffstat (limited to 'pkgs/development/python-modules/pycairo')
-rw-r--r--pkgs/development/python-modules/pycairo/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pycairo/default.nix b/pkgs/development/python-modules/pycairo/default.nix
index 1188b499302dc..c8df65c2b7e1d 100644
--- a/pkgs/development/python-modules/pycairo/default.nix
+++ b/pkgs/development/python-modules/pycairo/default.nix
@@ -1,4 +1,5 @@
 { lib
+, pythonOlder
 , fetchFromGitHub
 , meson
 , ninja
@@ -6,13 +7,15 @@
 , pytestCheckHook
 , pkg-config
 , cairo
-, isPy3k
+, python
 }:
 
 buildPythonPackage rec {
   pname = "pycairo";
   version = "1.20.0";
 
+  disabled = pythonOlder "3.6";
+
   format = "other";
 
   src = fetchFromGitHub {
@@ -37,11 +40,11 @@ buildPythonPackage rec {
   ];
 
   mesonFlags = [
-    "-Dpython=${if isPy3k then "python3" else "python"}"
+    "-Dpython=${python.interpreter}"
   ];
 
   meta = with lib; {
-    description = "Python 2/3 bindings for cairo";
+    description = "Python 3 bindings for cairo";
     homepage = "https://pycairo.readthedocs.io/";
     license = with licenses; [ lgpl21Only mpl11 ];
     platforms = lib.platforms.linux ++ lib.platforms.darwin;