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