depot/third_party/nixpkgs/pkgs/development/python-modules/qiling/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, capstone
, fetchFromGitHub
, fetchPypi
, gevent
, keystone-engine
, multiprocess
, pefile
, pyelftools
, python-registry
, unicorn
}:
buildPythonPackage rec {
pname = "qiling";
version = "1.4.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "e72dc5856cbda975f962ddf063063a32bd6c3b825f75e0795e94ba6840a7d45f";
};
propagatedBuildInputs = [
capstone
gevent
keystone-engine
multiprocess
pefile
pyelftools
python-registry
unicorn
];
postPatch = ''
substituteInPlace setup.py \
--replace "pefile==2021.5.24" "pefile>=2021.5.24"
'';
# 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;
};
}