nixpkgs/pkgs/development/python-modules/qiling/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
979 B
Nix
Raw Normal View History

2021-04-20 01:25:58 +02:00
{ lib
, buildPythonPackage
, capstone
2021-11-10 00:06:20 +01:00
, fetchFromGitHub
, fetchPypi
, gevent
2021-04-20 01:25:58 +02:00
, keystone-engine
2021-11-10 00:06:20 +01:00
, multiprocess
, pefile
2021-04-20 01:25:58 +02:00
, pyelftools
2022-03-20 09:53:08 +01:00
, pythonOlder
2021-11-10 00:06:20 +01:00
, python-registry
2022-03-20 09:53:08 +01:00
, pyyaml
2021-11-10 00:06:20 +01:00
, unicorn
2021-04-20 01:25:58 +02:00
}:
2021-11-10 00:06:20 +01:00
2021-04-20 01:25:58 +02:00
buildPythonPackage rec {
pname = "qiling";
2022-03-20 09:53:08 +01:00
version = "1.4.2";
2021-11-10 00:06:20 +01:00
format = "setuptools";
2021-04-20 01:25:58 +02:00
2022-03-20 09:53:08 +01:00
disabled = pythonOlder "3.7";
2021-04-20 01:25:58 +02:00
src = fetchPypi {
inherit pname version;
2022-03-20 09:53:08 +01:00
hash = "sha256-myUGzNP4bf90d2gY5ZlYbVlTG640dj/Qha8/aMydvuw=";
2021-04-20 01:25:58 +02:00
};
propagatedBuildInputs = [
capstone
2021-11-10 00:06:20 +01:00
gevent
2021-04-20 01:25:58 +02:00
keystone-engine
2021-11-10 00:06:20 +01:00
multiprocess
pefile
2021-04-20 01:25:58 +02:00
pyelftools
2021-11-10 00:06:20 +01:00
python-registry
2022-03-20 09:53:08 +01:00
pyyaml
2021-11-10 00:06:20 +01:00
unicorn
2021-04-20 01:25:58 +02: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;
};
}