2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
2021-12-30 13:39:12 +00:00
|
|
|
, stdenv
|
2021-04-22 02:08:21 +00:00
|
|
|
, ailment
|
|
|
|
, archinfo
|
|
|
|
, buildPythonPackage
|
|
|
|
, cachetools
|
|
|
|
, capstone
|
|
|
|
, cffi
|
|
|
|
, claripy
|
|
|
|
, cle
|
|
|
|
, cppheaderparser
|
|
|
|
, dpkt
|
|
|
|
, fetchFromGitHub
|
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
|
|
|
|
, pythonOlder
|
|
|
|
, pyvex
|
|
|
|
, rpyc
|
|
|
|
, sortedcontainers
|
2022-11-27 09:42:12 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sympy
|
2021-04-22 02:08:21 +00:00
|
|
|
, unicorn
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angr";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "9.2.43";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-SHUuKF7rT2x7CxF9s6ntxniOjhf7asY7HJeMi38Dqrc=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
|
|
|
pyvex
|
|
|
|
rpyc
|
|
|
|
sortedcontainers
|
2022-01-19 23:45:15 +00:00
|
|
|
sqlalchemy
|
|
|
|
sympy
|
2022-11-27 09:42:12 +00:00
|
|
|
unicorn
|
2021-04-22 02:08:21 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|