diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/angrop/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/angrop/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/angrop/default.nix b/nixpkgs/pkgs/development/python-modules/angrop/default.nix new file mode 100644 index 000000000000..9605539a9cb6 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/angrop/default.nix @@ -0,0 +1,39 @@ +{ lib +, angr +, buildPythonPackage +, fetchFromGitHub +, progressbar +, pythonOlder +, tqdm +}: + +buildPythonPackage rec { + pname = "angrop"; + version = "9.0.9684"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "angr"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-rl7ZELiLAVuCOkR6NVCUB5c6AtW/rFniDxB3E9ZPnK8="; + }; + + propagatedBuildInputs = [ + angr + progressbar + tqdm + ]; + + # Tests have additional requirements, e.g., angr binaries + # cle is executing the tests with the angr binaries already and is a requirement of angr + doCheck = false; + pythonImportsCheck = [ "angrop" ]; + + meta = with lib; { + description = "ROP gadget finder and chain builder"; + homepage = "https://github.com/angr/angrop"; + license = with licenses; [ bsd2 ]; + maintainers = with maintainers; [ fab ]; + }; +} |