nixpkgs/pkgs/development/python-modules/angrop/default.nix
2022-04-23 11:22:08 -07:00

45 lines
877 B
Nix

{ lib
, angr
, buildPythonPackage
, fetchFromGitHub
, progressbar
, pythonOlder
, tqdm
}:
buildPythonPackage rec {
pname = "angrop";
version = "9.2.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-VhlsRd5IN8zF6aUU5Ji/ULkdecOpR+egU3vhYpi+KL8=";
};
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 ];
};
}