13 buildPythonPackage rec {
19 src = fetchFromGitHub {
23 sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
28 url = "https://github.com/pygobject/pycairo/commit/678edd94d8a6dfb5d51f9c3549e6ee8c90a73744.patch";
29 sha256 = "sha256-HmP69tUGYxZvJ/M9FJHwHTCjb9Kf4aWRyMT4wSymrT0=";
43 # HACK: Don't use the pytestCheckHook because PYTHONPATH
44 # will be added by the Python setuptook breaking meson.
50 # This is only used for figuring out what version of Python is in
51 # use, and related stuff like figuring out what the install prefix
52 # should be, but it does need to be able to execute Python code.
53 "-Dpython=${python.pythonOnBuildForHost.interpreter}"
57 description = "Python 2 bindings for cairo";
58 homepage = "https://pycairo.readthedocs.io/";
59 license = with licenses; [ lgpl21Only mpl11 ];
60 platforms = lib.platforms.linux ++ lib.platforms.darwin;