01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
55 lines
979 B
Nix
55 lines
979 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, capstone
|
|
, fetchFromGitHub
|
|
, fetchPypi
|
|
, gevent
|
|
, keystone-engine
|
|
, multiprocess
|
|
, pefile
|
|
, pyelftools
|
|
, pythonOlder
|
|
, python-registry
|
|
, pyyaml
|
|
, unicorn
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qiling";
|
|
version = "1.4.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gtPYwmQ96+jz6XrqU0ufaN7Ht6gqrtxGrDoaTWce7/U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
capstone
|
|
gevent
|
|
keystone-engine
|
|
multiprocess
|
|
pefile
|
|
pyelftools
|
|
python-registry
|
|
pyyaml
|
|
unicorn
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
}
|