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

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

112 lines
1.9 KiB
Nix
Raw Normal View History

2021-04-06 22:15:50 +02:00
{ lib
, stdenv
2021-04-06 22:15:50 +02:00
, ailment
, archinfo
, buildPythonPackage
, cachetools
, capstone
, cffi
, claripy
, cle
, cppheaderparser
, dpkt
, fetchFromGitHub
, GitPython
, itanium_demangler
, mulpyplexer
, nampa
2021-04-06 22:15:50 +02:00
, networkx
, progressbar2
, protobuf
, psutil
, pycparser
, pythonOlder
, pyvex
, sympy
2021-04-06 22:15:50 +02:00
, sqlalchemy
, rpyc
, sortedcontainers
, unicorn
}:
let
# Only the pinned release in setup.py works properly
unicorn' = unicorn.overridePythonAttrs (old: rec {
pname = "unicorn";
version = "1.0.2-rc4";
src = fetchFromGitHub {
owner = "unicorn-engine";
repo = pname;
rev = version;
sha256 = "17nyccgk7hpc4hab24yn57f1xnmr7kq4px98zbp2bkwcrxny8gwy";
2021-04-06 22:15:50 +02:00
};
doCheck = false;
2021-04-06 22:15:50 +02:00
});
in
buildPythonPackage rec {
pname = "angr";
2022-05-04 13:37:58 +02:00
version = "9.2.2";
format = "pyproject";
2021-04-06 22:15:50 +02:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-05-04 13:37:58 +02:00
hash = "sha256-aniLMNKfEqlVkniS2mSCaeXIOc0EC4zOR59kiGTNUWk=";
2021-04-06 22:15:50 +02:00
};
propagatedBuildInputs = [
ailment
archinfo
cachetools
capstone
cffi
claripy
cle
cppheaderparser
dpkt
GitPython
itanium_demangler
mulpyplexer
nampa
2021-04-06 22:15:50 +02:00
networkx
progressbar2
protobuf
psutil
pycparser
pyvex
rpyc
sortedcontainers
sqlalchemy
sympy
2021-04-06 22:15:50 +02:00
unicorn'
];
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;
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 ];
};
}