mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, capstone
|
|
, fetchFromGitHub
|
|
, fetchPypi
|
|
, gevent
|
|
, keystone-engine
|
|
, multiprocess
|
|
, pefile
|
|
, pyelftools
|
|
, python-registry
|
|
, unicorn
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qiling";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-xUoNHMyGN0G2itVcKLsk+7QKxZdguzyh6OZCqCHNB4Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
capstone
|
|
gevent
|
|
keystone-engine
|
|
multiprocess
|
|
pefile
|
|
pyelftools
|
|
python-registry
|
|
unicorn
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pefile==2021.5.24" "pefile>=2021.5.24"
|
|
'';
|
|
|
|
# Tests are broken (attempt to import a file that tells you not to import it,
|
|
# amongst other things)
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"qiling"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Qiling Advanced Binary Emulation Framework";
|
|
homepage = "https://qiling.io/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|