python3Packages.manticore: 0.3.5 -> 0.3.6

+36 -14
+36 -14
pkgs/development/python-modules/manticore/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchFromGitHub 4 3 , capstone 5 4 , crytic-compile 5 + , fetchFromGitHub 6 + , intervaltree 6 7 , ply 7 8 , prettytable 9 + , protobuf 8 10 , pyelftools 9 11 , pyevmasm 10 12 , pysha3 13 + , pytestCheckHook 14 + , pythonOlder 11 15 , pyyaml 12 16 , rlp 13 17 , stdenv 14 18 , unicorn 15 19 , wasm 16 20 , yices 17 - , pytestCheckHook 18 21 , z3 19 22 }: 20 23 21 24 buildPythonPackage rec { 22 25 pname = "manticore"; 23 - version = "0.3.5"; 26 + version = "0.3.6"; 27 + format = "setuptools"; 28 + 29 + disabled = pythonOlder "3.7"; 24 30 25 31 src = fetchFromGitHub { 26 32 owner = "trailofbits"; 27 33 repo = "manticore"; 28 34 rev = version; 29 - sha256 = "0z2nhfcraa5dx6srbrw8s11awh2la0x7d88yw9in8g548nv6qa69"; 35 + sha256 = "sha256-L112YwrBcdcLBeBsPLWt3C57u2WDvGLq50EzW9ojdyg="; 30 36 }; 31 37 32 38 propagatedBuildInputs = [ 33 39 crytic-compile 40 + intervaltree 34 41 ply 35 42 prettytable 43 + protobuf 36 44 pyevmasm 37 45 pysha3 38 46 pyyaml ··· 49 57 sed -ie s/z3-solver// setup.py 50 58 ''; 51 59 52 - checkInputs = [ pytestCheckHook ]; 53 - preCheck = "export PATH=${yices}/bin:${z3}/bin:$PATH"; 54 - pytestFlagsArray = [ 55 - "--ignore=tests/ethereum" # TODO: enable when solc works again 56 - "--ignore=tests/ethereum_bench" 60 + checkInputs = [ 61 + pytestCheckHook 62 + ]; 63 + 64 + preCheck = '' 65 + export PATH=${yices}/bin:${z3}/bin:$PATH 66 + ''; 67 + 68 + disabledTestPaths = [ 69 + "tests/ethereum" # Enable when solc works again 70 + "tests/ethereum_bench" 57 71 ] ++ lib.optionals (!stdenv.isLinux) [ 58 - "--ignore=tests/native" 59 - "--ignore=tests/other/test_locking.py" 60 - "--ignore=tests/other/test_state_introspection.py" 72 + "tests/native" 73 + "tests/other/test_locking.py" 74 + "tests/other/test_state_introspection.py" 61 75 ]; 76 + 62 77 disabledTests = [ 63 - # failing tests 78 + # Failing tests 64 79 "test_chmod" 65 80 "test_timeout" 66 81 "test_wasm_main" 67 - # slow tests 82 + # Slow tests 68 83 "testmprotectFailSymbReading" 69 84 "test_ConstraintsForking" 70 85 "test_resume" ··· 97 112 "test_implicit_call" 98 113 "test_trace" 99 114 "test_plugin" 115 + # Tests are failing with latest unicorn 116 + "Aarch64UnicornInstructions" 117 + "test_integration_resume" 118 + ]; 119 + 120 + pythonImportsCheck = [ 121 + "manticore" 100 122 ]; 101 123 102 124 meta = with lib; {