14 buildPythonPackage rec {
18 disabled = pythonOlder "3.6";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-AUnMPsGFkCgVKUdQfym35ZqrA48wq31BNsvc2puoCl8=";
37 ] ++ lib.optionals (pythonOlder "3.9") [
46 # This is only used for figuring out what version of Python is in
47 # use, and related stuff like figuring out what the install prefix
48 # should be, but it does need to be able to execute Python code.
49 "-Dpython=${python.pythonOnBuildForHost.interpreter}"
53 description = "Python 3 bindings for cairo";
54 homepage = "https://pycairo.readthedocs.io/";
55 license = with licenses; [ lgpl21Only mpl11 ];
56 platforms = lib.platforms.linux ++ lib.platforms.darwin;