@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, capstone
5+, unicorn
6+, pefile
7+, python-registry
8+, keystone-engine
9+, pyelftools
10+, gevent
11+}:
12+buildPythonPackage rec {
13+ pname = "qiling";
14+ version = "1.2.3";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "e3ed09f9e080559e73e2a9199649b934b3594f653079d1e7da4992340c19eb64";
19+ };
20+
21+ propagatedBuildInputs = [
22+ capstone
23+ unicorn
24+ pefile
25+ python-registry
26+ keystone-engine
27+ pyelftools
28+ gevent
29+ ];
30+
31+ # Tests are broken (attempt to import a file that tells you not to import it,
32+ # amongst other things)
33+ doCheck = false;
34+
35+ pythonImportsCheck = [
36+ "qiling"
37+ ];
38+
39+ meta = with lib; {
40+ description = "Qiling Advanced Binary Emulation Framework";
41+ homepage = "https://qiling.io/";
42+ license = licenses.gpl2Only;
43+ maintainers = teams.determinatesystems.members;
44+ };
45+}