nixpkgs/pkgs/development/python-modules/xcffib/default.nix

32 lines
688 B
Nix
Raw Normal View History

2018-02-01 08:48:49 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, xorg
, cffi
, six
}:
buildPythonPackage rec {
2018-04-04 20:19:21 +02:00
version = "0.6.0";
2018-02-01 08:48:49 +01:00
pname = "xcffib";
src = fetchPypi {
inherit pname version;
2018-04-04 20:19:21 +02:00
sha256 = "36142cb72535933e8e1ed39ff2c45559fa7038823bd6be6961ef8ee5bb0f6912";
2018-02-01 08:48:49 +01:00
};
patchPhase = ''
# Hardcode cairo library path
sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
'';
propagatedBuildInputs = [ cffi six ];
meta = with stdenv.lib; {
description = "A drop in replacement for xpyb, an XCB python binding";
homepage = "https://github.com/tych0/xcffib";
license = licenses.asl20;
maintainers = with maintainers; [ kamilchm ];
};
}