python311Packages.xcffib: 1.2.0 -> 1.5.0
Changelog: https://github.com/tych0/xcffib/releases/tag/v1.5.0
This commit is contained in:
parent
6c72c63dc8
commit
48f7cfd4c6
1 changed files with 18 additions and 16 deletions
|
@ -1,37 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, fetchpatch
|
|
||||||
, xorg
|
|
||||||
, cffi
|
, cffi
|
||||||
|
, fetchPypi
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, xorg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.2.0";
|
|
||||||
pname = "xcffib";
|
pname = "xcffib";
|
||||||
|
version = "1.5.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-8yMCFEf55zB40hu5KMSPTavq6z87N+gDxta5hzXoFIM=";
|
hash = "sha256-qVyUZfL5e0/O3mBr0eCEB6Mt9xy3YP1Xv+U2d9tpGsw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "remove-leftover-six-import.patch";
|
|
||||||
url = "https://github.com/tych0/xcffib/commit/8a488867d30464913706376ca3a9f4c98ca6c5cf.patch";
|
|
||||||
hash = "sha256-wEms0gC7tVqtmKMjjpH/34kdQ6HUV0h67bUGbgijlqw=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Hardcode cairo library path
|
# Hardcode cairo library path
|
||||||
sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
|
sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ cffi ];
|
propagatedNativeBuildInputs = [
|
||||||
|
cffi
|
||||||
|
];
|
||||||
|
|
||||||
propagatedNativeBuildInputs = [ cffi ];
|
propagatedBuildInputs = [
|
||||||
|
cffi
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
@ -44,11 +43,14 @@ buildPythonPackage rec {
|
||||||
rm -r xcffib
|
rm -r xcffib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "xcffib" ];
|
pythonImportsCheck = [
|
||||||
|
"xcffib"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A drop in replacement for xpyb, an XCB python binding";
|
description = "A drop in replacement for xpyb, an XCB python binding";
|
||||||
homepage = "https://github.com/tych0/xcffib";
|
homepage = "https://github.com/tych0/xcffib";
|
||||||
|
changelog = "https://github.com/tych0/xcffib/releases/tag/v${version}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ kamilchm ];
|
maintainers = with maintainers; [ kamilchm ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue