2189cff663
GitOrigin-RevId: 1fe6ed37fd9beb92afe90671c0c2a662a03463dd
46 lines
997 B
Nix
46 lines
997 B
Nix
{ lib
|
|
, stdenv
|
|
, archinfo
|
|
, bitstring
|
|
, buildPythonPackage
|
|
, cffi
|
|
, fetchPypi
|
|
, future
|
|
, pycparser
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvex";
|
|
version = "9.0.6852";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-O84QErqHIRYQZh9mR71opm+j7kb9a4s5f1yj0WNiJAM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
archinfo
|
|
bitstring
|
|
cffi
|
|
future
|
|
pycparser
|
|
];
|
|
|
|
preBuild = ''
|
|
export CC=${stdenv.cc.targetPrefix}cc
|
|
'';
|
|
|
|
# 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 ];
|
|
# ERROR: pyvex-X-py3-none-manylinux1_aarch64.whl is not a supported wheel on this platform.
|
|
broken = stdenv.isAarch64;
|
|
};
|
|
}
|