3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #120006 from DeterminateSystems/qiling

This commit is contained in:
Sandro 2021-04-22 22:02:56 +02:00 committed by GitHub
commit e110be3d91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{ stdenv
, lib
{ lib
, buildPythonPackage
, capstone
, stdenv
, fetchpatch
, fetchPypi
, setuptools
@ -33,5 +33,7 @@ buildPythonPackage rec {
license = licenses.bsdOriginal;
description = "Python bindings for Capstone disassembly engine";
maintainers = with maintainers; [ bennofs ris ];
# creates a manylinux2014-x86_64 wheel
broken = stdenv.isAarch64;
};
}

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, enum-compat
, unicodecsv
}:
buildPythonPackage rec {
pname = "python-registry";
version = "1.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "99185f67d5601be3e7843e55902d5769aea1740869b0882f34ff1bd4b43b1eb2";
};
propagatedBuildInputs = [
enum-compat
unicodecsv
];
# no tests
doCheck = false;
pythonImportsCheck = [
"Registry"
];
meta = with lib; {
description = "Pure Python parser for Windows Registry hives";
homepage = "https://github.com/williballenthin/python-registry";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
};
}

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, capstone
, unicorn
, pefile
, python-registry
, keystone-engine
, pyelftools
, gevent
}:
buildPythonPackage rec {
pname = "qiling";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "e3ed09f9e080559e73e2a9199649b934b3594f653079d1e7da4992340c19eb64";
};
propagatedBuildInputs = [
capstone
unicorn
pefile
python-registry
keystone-engine
pyelftools
gevent
];
# 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;
};
}

View file

@ -6952,6 +6952,8 @@ in {
python-redis-lock = callPackage ../development/python-modules/python-redis-lock { };
python-registry = callPackage ../development/python-modules/python-registry { };
python-rtmidi = callPackage ../development/python-modules/python-rtmidi { };
python-sat = callPackage ../development/python-modules/python-sat { };
@ -7199,6 +7201,8 @@ in {
qds_sdk = callPackage ../development/python-modules/qds_sdk { };
qiling = callPackage ../development/python-modules/qiling { };
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };