mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 04:25:14 +00:00
python312Packages.capstone_4: enable, add distutils patch
This commit is contained in:
parent
feb2849fde
commit
5259c004b6
@ -4,7 +4,7 @@
|
||||
capstone_4,
|
||||
stdenv,
|
||||
setuptools,
|
||||
pythonAtLeast,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
@ -12,6 +12,15 @@ buildPythonPackage {
|
||||
inherit (capstone_4) version src;
|
||||
|
||||
sourceRoot = "source/bindings/python";
|
||||
patches = [
|
||||
# Drop distutils in python binding (PR 2271)
|
||||
(fetchpatch {
|
||||
name = "drop-distutils-in-python-binding.patch";
|
||||
url = "https://github.com/capstone-engine/capstone/commit/d63211e3acb64fceb8b1c4a0d804b4b027f4ef71.patch";
|
||||
hash = "sha256-zUGeFmm3xH5dzfPJE8nnHwqwFBrsZ7w8LBJAy20/3RI=";
|
||||
stripLen = 2;
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${capstone_4}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
|
||||
@ -42,6 +51,5 @@ buildPythonPackage {
|
||||
bennofs
|
||||
ris
|
||||
];
|
||||
broken = pythonAtLeast "3.12"; # uses distutils
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user