pythonPackages.xcffib: 0.3.2 -> 0.5.1

This commit is contained in:
adisbladis 2018-02-01 15:48:49 +08:00 committed by Stefan Junker
parent 7c1e44f7b6
commit 1b0f730a73
2 changed files with 32 additions and 23 deletions

View File

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, xorg
, cffi
, six
}:
buildPythonPackage rec {
version = "0.5.1";
pname = "xcffib";
src = fetchPypi {
inherit pname version;
sha256 = "09gbnmr5vn58mm8xi3fmd7fz6743cks6c46dphnxzwax6zsxmy60";
};
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 ];
};
}

View File

@ -21012,29 +21012,7 @@ EOF
pluggy = callPackage ../development/python-modules/pluggy {};
xcffib = buildPythonPackage rec {
version = "0.3.2";
name = "xcffib-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/x/xcffib/${name}.tar.gz";
sha256 = "a84eecd5a1bb7570e26c83aca87a2016578ca4e353e1fa56189e95bdef063e6a";
};
patchPhase = ''
# Hardcode cairo library path
sed -e 's,ffi\.dlopen(,&"${pkgs.xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
'';
propagatedBuildInputs = [ self.cffi self.six ];
meta = {
description = "A drop in replacement for xpyb, an XCB python binding";
homepage = "https://github.com/tych0/xcffib";
license = licenses.asl20;
maintainers = with maintainers; [ kamilchm ];
};
};
xcffib = callPackage ../development/python-modules/xcffib {};
pafy = callPackage ../development/python-modules/pafy { };