at 22.05-pre 1.1 kB view raw
1{ lib 2, angr 3, buildPythonPackage 4, cmd2 5, coreutils 6, fetchFromGitHub 7, pygments 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "angrcli"; 14 version = "1.1.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "fmagin"; 21 repo = "angr-cli"; 22 rev = "v${version}"; 23 sha256 = "0mz3yzsw08xwpj6188rxmr7darilh4ismcnh8nhp9945wjyzl4kr"; 24 }; 25 26 propagatedBuildInputs = [ 27 angr 28 cmd2 29 pygments 30 ]; 31 32 checkInputs = [ 33 coreutils 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 # Version mismatch, https://github.com/fmagin/angr-cli/pull/11 39 substituteInPlace setup.py \ 40 --replace "version='1.1.0'," "version='${version}'," 41 substituteInPlace tests/test_derefs.py \ 42 --replace "/bin/ls" "${coreutils}/bin/ls" 43 ''; 44 45 disabledTests = [ 46 "test_sims" 47 ]; 48 49 pythonImportsCheck = [ 50 "angrcli" 51 ]; 52 53 meta = with lib; { 54 description = "Python modules to allow easier interactive use of angr"; 55 homepage = "https://github.com/fmagin/angr-cli"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}