python310Packages.xcffib: remove superfluous dependency

This commit is contained in:
Robert Schütz 2023-03-09 12:53:18 -08:00
parent 6771860c7b
commit acc31584b6

View File

@ -1,9 +1,9 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, xorg
, cffi
, six
, pytestCheckHook
}:
@ -16,12 +16,20 @@ buildPythonPackage rec {
hash = "sha256-8yMCFEf55zB40hu5KMSPTavq6z87N+gDxta5hzXoFIM=";
};
patchPhase = ''
patches = [
(fetchpatch {
name = "remove-leftover-six-import.patch";
url = "https://github.com/tych0/xcffib/commit/8a488867d30464913706376ca3a9f4c98ca6c5cf.patch";
hash = "sha256-wEms0gC7tVqtmKMjjpH/34kdQ6HUV0h67bUGbgijlqw=";
})
];
postPatch = ''
# Hardcode cairo library path
sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
'';
propagatedBuildInputs = [ cffi six ];
propagatedBuildInputs = [ cffi ];
propagatedNativeBuildInputs = [ cffi ];