2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, capstone
|
|
|
|
, unicorn
|
|
|
|
, pefile
|
|
|
|
, python-registry
|
|
|
|
, keystone-engine
|
|
|
|
, pyelftools
|
|
|
|
, gevent
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiling";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.4";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "ecaa4415eea44f6f48021c1f7794c0d9fae7d64c8e43a3ff1d5de8e99bd963aa";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
capstone
|
|
|
|
unicorn
|
|
|
|
pefile
|
|
|
|
python-registry
|
|
|
|
keystone-engine
|
|
|
|
pyelftools
|
|
|
|
gevent
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|