Files
nixpkgs/pkgs/development/python-modules/angrcli/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

60 lines
1.1 KiB
Nix

{
lib,
angr,
buildPythonPackage,
cmd2,
coreutils,
fetchFromGitHub,
pygments,
pytestCheckHook,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "angrcli";
version = "1.3.0";
pyproject = true;
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 ];
};
}