pythonPackages.xcffib: 0.3.2 -> 0.5.1
This commit is contained in:
parent
7c1e44f7b6
commit
1b0f730a73
31
pkgs/development/python-modules/xcffib/default.nix
Normal file
31
pkgs/development/python-modules/xcffib/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user