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.

97 lines
1.5 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
2021-04-06 22:15:50 +02:00
, mulpyplexer
, nampa
2021-04-06 22:15:50 +02:00
, networkx
, progressbar2
, protobuf
, psutil
, pycparser
, pythonOlder
, pyvex
, rpyc
, sortedcontainers
, sqlalchemy
, sympy
2021-04-06 22:15:50 +02:00
, unicorn
}:
buildPythonPackage rec {
pname = "angr";
version = "9.2.33";
format = "pyproject";
disabled = pythonOlder "3.8";
2021-04-06 22:15:50 +02:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-Uq/weFiqbfGLqYlu5hH/l++YglqCGpL2NtNccI3gOqQ=";
2021-04-06 22:15:50 +02:00
};
propagatedBuildInputs = [
ailment
archinfo
cachetools
capstone
cffi
claripy
cle
cppheaderparser
dpkt
gitpython
itanium-demangler
2021-04-06 22:15:50 +02:00
mulpyplexer
nampa
2021-04-06 22:15:50 +02:00
networkx
progressbar2
protobuf
psutil
pycparser
pyvex
rpyc
sortedcontainers
sqlalchemy
sympy
unicorn
2021-04-06 22:15:50 +02: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;
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 ];
};
}