2021-02-08 21:14:13 +00:00
|
|
|
{ lib
|
2021-02-24 22:50:38 +00:00
|
|
|
, stdenv
|
2021-02-08 21:14:13 +00:00
|
|
|
, archinfo
|
|
|
|
, bitstring
|
|
|
|
, fetchPypi
|
|
|
|
, cffi
|
|
|
|
, buildPythonPackage
|
|
|
|
, future
|
|
|
|
, pycparser
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvex";
|
2021-02-24 22:50:38 +00:00
|
|
|
version = "9.0.5903";
|
2021-02-08 21:14:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-24 22:50:38 +00:00
|
|
|
sha256 = "sha256-qhLlRlmb48zhjX2u9w6TVVv2gb0E9kSapabiv+u4J2s=";
|
2021-02-08 21:14:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
archinfo
|
|
|
|
bitstring
|
|
|
|
cffi
|
|
|
|
future
|
|
|
|
pycparser
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests are available on PyPI, GitHub release has tests
|
|
|
|
# Switch to GitHub release after all angr parts are present
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyvex" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to libVEX and VEX IR";
|
|
|
|
homepage = "https://github.com/angr/pyvex";
|
|
|
|
license = with licenses; [ bsd2 gpl3Plus lgpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-02-24 22:50:38 +00:00
|
|
|
# ERROR: pyvex-X-py3-none-manylinux1_aarch64.whl is not a supported wheel on this platform.
|
|
|
|
broken = stdenv.isAarch64;
|
2021-02-08 21:14:13 +00:00
|
|
|
};
|
|
|
|
}
|