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 { lib
, pythonOlder
, fetchFromGitHub , fetchFromGitHub
, meson , meson
, ninja , ninja
@ -6,13 +7,15 @@
, pytestCheckHook , pytestCheckHook
, pkg-config , pkg-config
, cairo , cairo
, isPy3k , python
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycairo"; pname = "pycairo";
version = "1.20.0"; version = "1.20.0";
disabled = pythonOlder "3.6";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -37,11 +40,11 @@ buildPythonPackage rec {
]; ];
mesonFlags = [ mesonFlags = [
"-Dpython=${if isPy3k then "python3" else "python"}" "-Dpython=${python.interpreter}"
]; ];
meta = with lib; { meta = with lib; {
description = "Python 2/3 bindings for cairo"; description = "Python 3 bindings for cairo";
homepage = "https://pycairo.readthedocs.io/"; homepage = "https://pycairo.readthedocs.io/";
license = with licenses; [ lgpl21Only mpl11 ]; license = with licenses; [ lgpl21Only mpl11 ];
platforms = lib.platforms.linux ++ lib.platforms.darwin; platforms = lib.platforms.linux ++ lib.platforms.darwin;