nixpkgs/pkgs/development/python-modules/angr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

124 lines
2.0 KiB
Nix
Raw Normal View History

{
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,
pyvex,
rich,
rpyc,
setuptools,
sortedcontainers,
sqlalchemy,
sympy,
unicorn,
unique-log-filter,
2021-04-06 20:15:50 +00:00
}:
buildPythonPackage rec {
pname = "angr";
version = "9.2.129";
pyproject = true;
disabled = pythonOlder "3.11";
2021-04-06 20:15:50 +00:00
src = fetchFromGitHub {
owner = "angr";
repo = "angr";
rev = "refs/tags/v${version}";
hash = "sha256-GO8Vk/L1swhQsGfH/Ugi5i9MwWbaco/f1ukqJ2+R6IA=";
2021-04-06 20:15:50 +00:00
};
postPatch = ''
# unicorn is also part of build-system
substituteInPlace pyproject.toml \
--replace-fail "unicorn==2.0.1.post1" "unicorn"
'';
pythonRelaxDeps = [
"capstone"
"unicorn"
2024-03-28 22:41:08 +00:00
];
build-system = [ setuptools ];
2024-03-28 22:41:08 +00:00
dependencies = [
2021-04-06 20:15:50 +00:00
ailment
archinfo
cachetools
capstone
cffi
claripy
cle
cppheaderparser
dpkt
gitpython
itanium-demangler
2021-04-06 20:15:50 +00:00
mulpyplexer
nampa
2021-04-06 20:15:50 +00:00
networkx
progressbar2
protobuf
psutil
pycparser
pyformlang
2021-04-06 20:15:50 +00:00
pyvex
rich
2021-04-06 20:15:50 +00:00
rpyc
sortedcontainers
sqlalchemy
sympy
unicorn
unique-log-filter
2021-04-06 20:15:50 +00:00
];
optional-dependencies = {
AngrDB = [ sqlalchemy ];
};
setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isLinux [
"--plat-name"
"linux"
];
2021-04-06 20:15:50 +00:00
# Tests have additional requirements, e.g., pypcode and angr binaries
# cle is executing the tests with the angr binaries
doCheck = false;
pythonImportsCheck = [
"angr"
"claripy"
"cle"
"pyvex"
"archinfo"
];
2021-04-06 20:15:50 +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 ];
# angr is pining unicorn
broken = versionAtLeast unicorn.version "2.0.1.post1";
2021-04-06 20:15:50 +00:00
};
}