Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 93 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, buildPythonPackage, cffi, fetchFromGitHub, minidump, nose, pefile, pyelftools, pytestCheckHook, pythonOlder, pyvex, pyxbe, setuptools, sortedcontainers}:
let # The binaries are following the argr projects release cycle version = "9.2.84";
# Binary files from https://github.com/angr/binaries (only used for testing and only here) binaries = fetchFromGitHub { owner = "angr"; repo = "binaries"; rev = "refs/tags/v${version}"; hash = "sha256-sU9Rv2kTLYMpaalrkcOv6HlHt1u4oG482M+d7OSjJ3Y="; };
inbuildPythonPackage rec { pname = "cle"; inherit version; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "angr"; repo = "cle"; rev = "refs/tags/v${version}"; hash = "sha256-N0z5wgaeWkoPuhIUj7bj1kDKgZ7pWChm1uEU4MjXjqI="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ cffi minidump pefile pyelftools pyvex pyxbe sortedcontainers ];
nativeCheckInputs = [ nose pytestCheckHook ];
# Place test binaries in the right location (location is hard-coded in the tests) preCheck = '' export HOME=$TMPDIR cp -r ${binaries} $HOME/binaries '';
disabledTests = [ # PPC tests seems to fails "test_ppc_rel24_relocation" "test_ppc_addr16_ha_relocation" "test_ppc_addr16_lo_relocation" "test_plt_full_relro" # Test fails "test_tls_pe_incorrect_tls_data_start" "test_x86" "test_x86_64" # The required parts is not present on Nix "test_remote_file_map" ];
pythonImportsCheck = [ "cle" ];
meta = with lib; { description = "Python loader for many binary formats"; homepage = "https://github.com/angr/cle"; license = with licenses; [ bsd2 ]; maintainers = with maintainers; [ fab ]; };}