2021-04-06 22:15:50 +02:00
|
|
|
{ lib
|
2021-12-30 00:47:38 +01:00
|
|
|
, stdenv
|
2021-04-06 22:15:50 +02:00
|
|
|
, ailment
|
|
|
|
, archinfo
|
|
|
|
, buildPythonPackage
|
|
|
|
, cachetools
|
|
|
|
, capstone
|
|
|
|
, cffi
|
|
|
|
, claripy
|
|
|
|
, cle
|
|
|
|
, cppheaderparser
|
|
|
|
, dpkt
|
|
|
|
, fetchFromGitHub
|
2022-12-05 19:15:33 +01:00
|
|
|
, gitpython
|
2022-10-17 00:39:28 +02:00
|
|
|
, itanium-demangler
|
2021-04-06 22:15:50 +02:00
|
|
|
, mulpyplexer
|
2021-07-14 22:53:35 +02:00
|
|
|
, nampa
|
2021-04-06 22:15:50 +02:00
|
|
|
, networkx
|
|
|
|
, progressbar2
|
|
|
|
, protobuf
|
|
|
|
, psutil
|
|
|
|
, pycparser
|
|
|
|
, pythonOlder
|
|
|
|
, pyvex
|
|
|
|
, rpyc
|
|
|
|
, sortedcontainers
|
2022-11-24 09:36:51 +01:00
|
|
|
, sqlalchemy
|
|
|
|
, sympy
|
2021-04-06 22:15:50 +02:00
|
|
|
, unicorn
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angr";
|
2023-01-10 21:30:09 +01:00
|
|
|
version = "9.2.33";
|
2022-04-22 19:16:55 +02:00
|
|
|
format = "pyproject";
|
2022-01-18 22:20:08 +01:00
|
|
|
|
2022-08-26 14:24:00 +02:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-06 22:15:50 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-10 21:30:09 +01:00
|
|
|
hash = "sha256-Uq/weFiqbfGLqYlu5hH/l++YglqCGpL2NtNccI3gOqQ=";
|
2021-04-06 22:15:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ailment
|
|
|
|
archinfo
|
|
|
|
cachetools
|
|
|
|
capstone
|
|
|
|
cffi
|
|
|
|
claripy
|
|
|
|
cle
|
|
|
|
cppheaderparser
|
|
|
|
dpkt
|
2022-12-05 19:15:33 +01:00
|
|
|
gitpython
|
2022-10-17 00:39:28 +02:00
|
|
|
itanium-demangler
|
2021-04-06 22:15:50 +02:00
|
|
|
mulpyplexer
|
2021-07-14 22:53:35 +02:00
|
|
|
nampa
|
2021-04-06 22:15:50 +02:00
|
|
|
networkx
|
|
|
|
progressbar2
|
|
|
|
protobuf
|
|
|
|
psutil
|
|
|
|
pycparser
|
|
|
|
pyvex
|
|
|
|
rpyc
|
|
|
|
sortedcontainers
|
2022-01-18 22:20:08 +01:00
|
|
|
sqlalchemy
|
|
|
|
sympy
|
2022-11-24 09:36:51 +01:00
|
|
|
unicorn
|
2021-04-06 22:15:50 +02:00
|
|
|
];
|
|
|
|
|
2022-01-18 22:20:08 +01:00
|
|
|
setupPyBuildFlags = lib.optionals stdenv.isLinux [
|
|
|
|
"--plat-name"
|
|
|
|
"linux"
|
|
|
|
];
|
|
|
|
|
2021-04-06 22:15:50 +02:00
|
|
|
# Tests have additional requirements, e.g., pypcode and angr binaries
|
|
|
|
# cle is executing the tests with the angr binaries
|
|
|
|
doCheck = false;
|
2021-04-24 21:57:02 +02:00
|
|
|
|
2021-07-14 22:53:35 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"angr"
|
|
|
|
"claripy"
|
|
|
|
"cle"
|
|
|
|
"pyvex"
|
|
|
|
"archinfo"
|
|
|
|
];
|
2021-04-06 22:15:50 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful and user-friendly binary analysis platform";
|
|
|
|
homepage = "https://angr.io/";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|