depot/third_party/nixpkgs/pkgs/development/python-modules/angrop/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

49 lines
945 B
Nix

{ lib
, angr
, buildPythonPackage
, fetchFromGitHub
, progressbar
, pythonOlder
, setuptools
, tqdm
}:
buildPythonPackage rec {
pname = "angrop";
version = "9.2.8";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zmWdGbFzwLDP7MUqEprZcIgA7lAdCrafWYohAehJyh0=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}