git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120006 from DeterminateSystems/qiling
commite110be3d9119e77a7441a3b6cca151b6110b00c7 authorSandro <sandro.jaeckel@gmail.com> dateThu 22 Apr 2021, 22:02 (6 years ago) parent1a6dcd7e206595
4 files changed+87−2
pkgs/development/python-modules/capstone/default.nix+4−2 pkgs/development/python-modules/python-registry/default.nix+34 pkgs/development/python-modules/qiling/default.nix+45 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/capstone/default.nix+4−2
@@ -1,7 +1,7 @@
1−{ stdenv
2−, lib
1+{ lib
32, buildPythonPackage
43, capstone
4+, stdenv
55, fetchpatch
66, fetchPypi
77, setuptools
@@ -33,5 +33,7 @@ buildPythonPackage rec {
3333 license = licenses.bsdOriginal;
3434 description = "Python bindings for Capstone disassembly engine";
3535 maintainers = with maintainers; [ bennofs ris ];
36+ # creates a manylinux2014-x86_64 wheel
37+ broken = stdenv.isAarch64;
3638 };
3739}
pkgs/development/python-modules/python-registry/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, enum-compat
5+, unicodecsv
6+}:
7+buildPythonPackage rec {
8+ pname = "python-registry";
9+ version = "1.3.1";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "99185f67d5601be3e7843e55902d5769aea1740869b0882f34ff1bd4b43b1eb2";
14+ };
15+
16+ propagatedBuildInputs = [
17+ enum-compat
18+ unicodecsv
19+ ];
20+
21+ # no tests
22+ doCheck = false;
23+
24+ pythonImportsCheck = [
25+ "Registry"
26+ ];
27+
28+ meta = with lib; {
29+ description = "Pure Python parser for Windows Registry hives";
30+ homepage = "https://github.com/williballenthin/python-registry";
31+ license = licenses.asl20;
32+ maintainers = teams.determinatesystems.members;
33+ };
34+}
pkgs/development/python-modules/qiling/default.nixnew file+45
@@ -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+}
pkgs/top-level/python-packages.nix+4
@@ -6952,6 +6952,8 @@ in {
69526952
69536953 python-redis-lock = callPackage ../development/python-modules/python-redis-lock { };
69546954
6955+ python-registry = callPackage ../development/python-modules/python-registry { };
6956+
69556957 python-rtmidi = callPackage ../development/python-modules/python-rtmidi { };
69566958
69576959 python-sat = callPackage ../development/python-modules/python-sat { };
@@ -7199,6 +7201,8 @@ in {
71997201
72007202 qds_sdk = callPackage ../development/python-modules/qds_sdk { };
72017203
7204+ qiling = callPackage ../development/python-modules/qiling { };
7205+
72027206 qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
72037207
72047208 qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };