2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
ailment,
|
|
|
|
archinfo,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
capstone,
|
|
|
|
cffi,
|
|
|
|
claripy,
|
|
|
|
cle,
|
|
|
|
cppheaderparser,
|
|
|
|
dpkt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitpython,
|
|
|
|
itanium-demangler,
|
|
|
|
mulpyplexer,
|
|
|
|
nampa,
|
|
|
|
networkx,
|
|
|
|
progressbar2,
|
|
|
|
protobuf,
|
|
|
|
psutil,
|
|
|
|
pycparser,
|
|
|
|
pyformlang,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pyvex,
|
|
|
|
rich,
|
|
|
|
rpyc,
|
|
|
|
setuptools,
|
|
|
|
sortedcontainers,
|
|
|
|
sqlalchemy,
|
|
|
|
sympy,
|
|
|
|
unicorn,
|
|
|
|
unique-log-filter,
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angr";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "9.2.104";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-19 13:55:26 +00:00
|
|
|
owner = "angr";
|
|
|
|
repo = "angr";
|
2023-03-30 22:05:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-IJVPycIZNn0+B0YRNiTOL/+Jxioa4VPm1VWVg9Sz68A=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [ "capstone" ];
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-04-22 02:08:21 +00:00
|
|
|
ailment
|
|
|
|
archinfo
|
|
|
|
cachetools
|
|
|
|
capstone
|
|
|
|
cffi
|
|
|
|
claripy
|
|
|
|
cle
|
|
|
|
cppheaderparser
|
|
|
|
dpkt
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2022-10-21 18:38:19 +00:00
|
|
|
itanium-demangler
|
2021-04-22 02:08:21 +00:00
|
|
|
mulpyplexer
|
2021-07-16 19:40:57 +00:00
|
|
|
nampa
|
2021-04-22 02:08:21 +00:00
|
|
|
networkx
|
|
|
|
progressbar2
|
|
|
|
protobuf
|
|
|
|
psutil
|
|
|
|
pycparser
|
2024-04-21 15:54:59 +00:00
|
|
|
pyformlang
|
2021-04-22 02:08:21 +00:00
|
|
|
pyvex
|
2023-04-29 16:46:19 +00:00
|
|
|
rich
|
2021-04-22 02:08:21 +00:00
|
|
|
rpyc
|
|
|
|
sortedcontainers
|
2022-01-19 23:45:15 +00:00
|
|
|
sqlalchemy
|
|
|
|
sympy
|
2022-11-27 09:42:12 +00:00
|
|
|
unicorn
|
2024-04-21 15:54:59 +00:00
|
|
|
unique-log-filter
|
2021-04-22 02:08:21 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
AngrDB = [ sqlalchemy ];
|
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
setupPyBuildFlags = lib.optionals stdenv.isLinux [
|
|
|
|
"--plat-name"
|
|
|
|
"linux"
|
|
|
|
];
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
# Tests have additional requirements, e.g., pypcode and angr binaries
|
|
|
|
# cle is executing the tests with the angr binaries
|
|
|
|
doCheck = false;
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"angr"
|
|
|
|
"claripy"
|
|
|
|
"cle"
|
|
|
|
"pyvex"
|
|
|
|
"archinfo"
|
|
|
|
];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful and user-friendly binary analysis platform";
|
|
|
|
homepage = "https://angr.io/";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|