python3Packages.angrcli: init at 1.1.1

This commit is contained in:
Fabian Affolter 2021-10-31 09:16:06 +01:00
parent c5809ba048
commit 069d3c8abd
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ lib
, angr
, buildPythonPackage
, cmd2
, coreutils
, fetchFromGitHub
, pygments
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "angrcli";
version = "1.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "fmagin";
repo = "angr-cli";
rev = "v${version}";
sha256 = "0mz3yzsw08xwpj6188rxmr7darilh4ismcnh8nhp9945wjyzl4kr";
};
propagatedBuildInputs = [
angr
cmd2
pygments
];
checkInputs = [
coreutils
pytestCheckHook
];
postPatch = ''
# Version mismatch, https://github.com/fmagin/angr-cli/pull/11
substituteInPlace setup.py \
--replace "version='1.1.0'," "version='${version}',"
substituteInPlace tests/test_derefs.py \
--replace "/bin/ls" "${coreutils}/bin/ls"
'';
disabledTests = [
"test_sims"
];
pythonImportsCheck = [
"angrcli"
];
meta = with lib; {
description = "Python modules to allow easier interactive use of angr";
homepage = "https://github.com/fmagin/angr-cli";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -461,6 +461,10 @@ in {
angr = callPackage ../development/python-modules/angr { };
angrcli = callPackage ../development/python-modules/angrcli {
inherit (pkgs) coreutils;
};
angrop = callPackage ../development/python-modules/angrop { };
aniso8601 = callPackage ../development/python-modules/aniso8601 { };