mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
python310Packages.xcffib: remove superfluous dependency
This commit is contained in:
parent
6771860c7b
commit
acc31584b6
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user