pythonPackages.pycairo: requires Python 3.6+

See https://pycairo.readthedocs.io/en/latest/changelog.html#v1-20-0.
This commit is contained in:
Robert Schütz 2021-04-11 21:23:42 +02:00
parent 46440dae4e
commit e5eb701c6e

View file

@ -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;