1 # FIXME: make gdk-pixbuf dependency optional
21 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
29 inherit pname version;
30 hash = "sha256-LkjuhkiE7Eo6NL+oyauZmfaIKG63FKFaQ+ydBow2VXs=";
34 # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0
36 src = ./dlopen-paths.patch;
37 ext = stdenv.hostPlatform.extensions.sharedLibrary;
40 gdk_pixbuf = gdk-pixbuf.out;
42 ./fix_test_scaled_font.patch
45 nativeBuildInputs = [ flit-core ];
47 propagatedBuildInputs = [
50 ] ++ lib.optional withXcffib xcffib;
58 pythonImportsCheck = [ "cairocffi" ];
61 changelog = "https://github.com/Kozea/cairocffi/blob/v${version}/NEWS.rst";
62 homepage = "https://github.com/SimonSapin/cairocffi";
63 license = licenses.bsd3;
65 description = "cffi-based cairo bindings for Python";