python3Packages.unicorn: add custom checkPhase
This commit is contained in:
parent
d01431f910
commit
c27291414f
2 changed files with 18 additions and 7 deletions
|
@ -30,14 +30,15 @@
|
||||||
let
|
let
|
||||||
# Only the pinned release in setup.py works properly
|
# Only the pinned release in setup.py works properly
|
||||||
unicorn' = unicorn.overridePythonAttrs (old: rec {
|
unicorn' = unicorn.overridePythonAttrs (old: rec {
|
||||||
pname = "unicorn";
|
pname = "unicorn";
|
||||||
version = "1.0.2-rc4";
|
version = "1.0.2-rc4";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "unicorn-engine";
|
owner = "unicorn-engine";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "17nyccgk7hpc4hab24yn57f1xnmr7kq4px98zbp2bkwcrxny8gwy";
|
sha256 = "17nyccgk7hpc4hab24yn57f1xnmr7kq4px98zbp2bkwcrxny8gwy";
|
||||||
};
|
};
|
||||||
|
doCheck = false;
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,16 @@ buildPythonPackage rec {
|
||||||
"unicorn"
|
"unicorn"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
mv unicorn unicorn.hidden
|
||||||
|
patchShebangs sample_*.py shellcode.py
|
||||||
|
sh -e sample_all.sh
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python bindings for Unicorn CPU emulator engine";
|
description = "Python bindings for Unicorn CPU emulator engine";
|
||||||
homepage = "https://www.unicorn-engine.org/";
|
homepage = "https://www.unicorn-engine.org/";
|
||||||
|
|
Loading…
Reference in a new issue