2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
capstone,
|
|
|
|
fetchPypi,
|
|
|
|
gevent,
|
|
|
|
keystone-engine,
|
|
|
|
multiprocess,
|
|
|
|
pefile,
|
|
|
|
pyelftools,
|
|
|
|
pythonOlder,
|
|
|
|
python-fx,
|
|
|
|
python-registry,
|
|
|
|
pyyaml,
|
|
|
|
questionary,
|
|
|
|
termcolor,
|
|
|
|
unicorn,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiling";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.4.6";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-l3WQBlJic4lXCe5Z1FmoxaqOblE7uAaW2gG/nTn84Kc=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
capstone
|
2021-12-06 16:07:01 +00:00
|
|
|
gevent
|
2021-04-25 03:57:28 +00:00
|
|
|
keystone-engine
|
2021-12-06 16:07:01 +00:00
|
|
|
multiprocess
|
|
|
|
pefile
|
2021-04-25 03:57:28 +00:00
|
|
|
pyelftools
|
2023-02-22 10:55:15 +00:00
|
|
|
python-fx
|
2021-12-06 16:07:01 +00:00
|
|
|
python-registry
|
2022-03-30 09:31:56 +00:00
|
|
|
pyyaml
|
2023-02-22 10:55:15 +00:00
|
|
|
termcolor
|
|
|
|
questionary
|
2021-12-06 16:07:01 +00:00
|
|
|
unicorn
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are broken (attempt to import a file that tells you not to import it,
|
|
|
|
# amongst other things)
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "qiling" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qiling Advanced Binary Emulation Framework";
|
|
|
|
homepage = "https://qiling.io/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/qilingframework/qiling/releases/tag/${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.gpl2Only;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|