2021-04-06 21:15:50 +01:00
|
|
|
{ lib
|
2021-12-29 23:47:38 +00:00
|
|
|
, stdenv
|
2021-04-06 21:15:50 +01:00
|
|
|
, ailment
|
|
|
|
, archinfo
|
|
|
|
, buildPythonPackage
|
|
|
|
, cachetools
|
|
|
|
, capstone
|
|
|
|
, cffi
|
|
|
|
, claripy
|
|
|
|
, cle
|
|
|
|
, cppheaderparser
|
|
|
|
, dpkt
|
|
|
|
, fetchFromGitHub
|
2022-12-05 18:15:33 +00:00
|
|
|
, gitpython
|
2022-10-16 23:39:28 +01:00
|
|
|
, itanium-demangler
|
2021-04-06 21:15:50 +01:00
|
|
|
, mulpyplexer
|
2021-07-14 21:53:35 +01:00
|
|
|
, nampa
|
2021-04-06 21:15:50 +01:00
|
|
|
, networkx
|
|
|
|
, progressbar2
|
|
|
|
, protobuf
|
|
|
|
, psutil
|
|
|
|
, pycparser
|
|
|
|
, pythonOlder
|
|
|
|
, pyvex
|
2023-04-19 18:46:56 +01:00
|
|
|
, rich
|
2021-04-06 21:15:50 +01:00
|
|
|
, rpyc
|
|
|
|
, sortedcontainers
|
2022-11-24 08:36:51 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sympy
|
2021-04-06 21:15:50 +01:00
|
|
|
, unicorn
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "angr";
|
2023-09-27 08:56:41 +01:00
|
|
|
version = "9.2.70";
|
2022-04-22 18:16:55 +01:00
|
|
|
format = "pyproject";
|
2022-01-18 21:20:08 +00:00
|
|
|
|
2022-08-26 13:24:00 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-06 21:15:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2023-03-28 23:40:22 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-09-27 08:56:41 +01:00
|
|
|
hash = "sha256-21AaK4L8LLk9UcAFAPVOsbs06WQUhXdUrCuMsjArTPo=";
|
2021-04-06 21:15:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ailment
|
|
|
|
archinfo
|
|
|
|
cachetools
|
|
|
|
capstone
|
|
|
|
cffi
|
|
|
|
claripy
|
|
|
|
cle
|
|
|
|
cppheaderparser
|
|
|
|
dpkt
|
2022-12-05 18:15:33 +00:00
|
|
|
gitpython
|
2022-10-16 23:39:28 +01:00
|
|
|
itanium-demangler
|
2021-04-06 21:15:50 +01:00
|
|
|
mulpyplexer
|
2021-07-14 21:53:35 +01:00
|
|
|
nampa
|
2021-04-06 21:15:50 +01:00
|
|
|
networkx
|
|
|
|
progressbar2
|
|
|
|
protobuf
|
|
|
|
psutil
|
|
|
|
pycparser
|
|
|
|
pyvex
|
2023-04-19 18:46:56 +01:00
|
|
|
rich
|
2021-04-06 21:15:50 +01:00
|
|
|
rpyc
|
|
|
|
sortedcontainers
|
2022-01-18 21:20:08 +00:00
|
|
|
sqlalchemy
|
|
|
|
sympy
|
2022-11-24 08:36:51 +00:00
|
|
|
unicorn
|
2021-04-06 21:15:50 +01:00
|
|
|
];
|
|
|
|
|
2022-01-18 21:20:08 +00:00
|
|
|
setupPyBuildFlags = lib.optionals stdenv.isLinux [
|
|
|
|
"--plat-name"
|
|
|
|
"linux"
|
|
|
|
];
|
|
|
|
|
2021-04-06 21:15:50 +01: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 20:57:02 +01:00
|
|
|
|
2021-07-14 21:53:35 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"angr"
|
|
|
|
"claripy"
|
|
|
|
"cle"
|
|
|
|
"pyvex"
|
|
|
|
"archinfo"
|
|
|
|
];
|
2021-04-06 21:15:50 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful and user-friendly binary analysis platform";
|
|
|
|
homepage = "https://angr.io/";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|