11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-qVyUZfL5e0/O3mBr0eCEB6Mt9xy3YP1Xv+U2d9tpGsw=";
24 # Hardcode cairo library path
25 sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
28 propagatedNativeBuildInputs = [ cffi ];
30 propagatedBuildInputs = [ cffi ];
43 pythonImportsCheck = [ "xcffib" ];
46 __darwinAllowLocalNetworking = true;
49 description = "Drop in replacement for xpyb, an XCB python binding";
50 homepage = "https://github.com/tych0/xcffib";
51 changelog = "https://github.com/tych0/xcffib/releases/tag/v${version}";
52 license = licenses.asl20;
53 platforms = platforms.linux ++ platforms.darwin ++ platforms.windows;
54 maintainers = with maintainers; [ kamilchm ];