Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 761 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, xorg 5, cffi 6, nose 7, six 8}: 9 10buildPythonPackage rec { 11 version = "0.10.1"; 12 pname = "xcffib"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "cab1630a51076b11819c97e6da461ddd4cb21bdf65c071d1c57a846c9b129c12"; 17 }; 18 19 patchPhase = '' 20 # Hardcode cairo library path 21 sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py 22 ''; 23 24 propagatedBuildInputs = [ cffi six ]; 25 26 checkInputs = [ nose ]; 27 28 pythonImportsCheck = [ "xcffib" ]; 29 30 meta = with stdenv.lib; { 31 description = "A drop in replacement for xpyb, an XCB python binding"; 32 homepage = "https://github.com/tych0/xcffib"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ kamilchm ]; 35 }; 36}