Files
nixpkgs/pkgs/development/python-modules/angrcli/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.1 KiB
Nix

{
lib,
angr,
buildPythonPackage,
cmd2,
coreutils,
fetchFromGitHub,
pygments,
pytestCheckHook,
pythonOlder,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "angrcli";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "fmagin";
repo = "angr-cli";
tag = "v${version}";
hash = "sha256-egu7jlEk8/i36qQMHztGr959sBt9d5crW8mj6+sKaHI=";
};
postPatch = ''
substituteInPlace tests/test_derefs.py \
--replace-fail "/bin/ls" "${coreutils}/bin/ls"
'';
build-system = [ setuptools ];
dependencies = [
angr
cmd2
pygments
];
nativeCheckInputs = [
coreutils
pytestCheckHook
];
disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [
# expects the x86 register "rax" to exist
"test_cc"
"test_loop"
"test_max_depth"
];
pythonImportsCheck = [ "angrcli" ];
meta = {
description = "Python modules to allow easier interactive use of angr";
homepage = "https://github.com/fmagin/angr-cli";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}