nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.1 kB view raw
1{ 2 lib, 3 angr, 4 buildPythonPackage, 5 cmd2, 6 coreutils, 7 fetchFromGitHub, 8 pygments, 9 pytestCheckHook, 10 setuptools, 11 stdenv, 12}: 13 14buildPythonPackage rec { 15 pname = "angrcli"; 16 version = "1.3.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "fmagin"; 21 repo = "angr-cli"; 22 tag = "v${version}"; 23 hash = "sha256-egu7jlEk8/i36qQMHztGr959sBt9d5crW8mj6+sKaHI="; 24 }; 25 26 postPatch = '' 27 substituteInPlace tests/test_derefs.py \ 28 --replace-fail "/bin/ls" "${coreutils}/bin/ls" 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 angr 35 cmd2 36 pygments 37 ]; 38 39 nativeCheckInputs = [ 40 coreutils 41 pytestCheckHook 42 ]; 43 44 disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [ 45 # expects the x86 register "rax" to exist 46 "test_cc" 47 "test_loop" 48 "test_max_depth" 49 ]; 50 51 pythonImportsCheck = [ "angrcli" ]; 52 53 meta = { 54 description = "Python modules to allow easier interactive use of angr"; 55 homepage = "https://github.com/fmagin/angr-cli"; 56 license = with lib.licenses; [ mit ]; 57 maintainers = with lib.maintainers; [ fab ]; 58 }; 59}