1 # FIXME: make gdk-pixbuf dependency optional
22 buildPythonPackage rec {
27 disabled = pythonOlder "3.7";
30 inherit pname version;
31 hash = "sha256-eOa75HNXZAxFPQvpKfpJzQXM4uEobz0qHKnL2n79uLc=";
35 # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0
37 src = ./dlopen-paths.patch;
38 ext = stdenv.hostPlatform.extensions.sharedLibrary;
41 gdk_pixbuf = gdk-pixbuf.out;
43 ./fix_test_scaled_font.patch
50 propagatedBuildInputs = [ cairo cffi ]
51 ++ lib.optional withXcffib xcffib;
59 pythonImportsCheck = [
64 changelog = "https://github.com/Kozea/cairocffi/blob/v${version}/NEWS.rst";
65 homepage = "https://github.com/SimonSapin/cairocffi";
66 license = licenses.bsd3;
67 maintainers = with maintainers; [ ];
68 description = "cffi-based cairo bindings for Python";