2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, capstone
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchPypi
|
|
|
|
, 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
|
2022-03-30 09:31:56 +00:00
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, python-registry
|
2022-03-30 09:31:56 +00:00
|
|
|
, pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.4.4";
|
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;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-gtPYwmQ96+jz6XrqU0ufaN7Ht6gqrtxGrDoaTWce7/U=";
|
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
|
2021-12-06 16:07:01 +00:00
|
|
|
python-registry
|
2022-03-30 09:31:56 +00:00
|
|
|
pyyaml
|
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;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"qiling"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qiling Advanced Binary Emulation Framework";
|
|
|
|
homepage = "https://qiling.io/";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|