Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #232892 from nevivurn/feature/remove-wasm

{python3Packages.manticore,python3Packages.wasm}: remove

authored by Weijia Wang and committed by GitHub d837bd0d 43d27d07

+2 -172
-136
pkgs/development/python-modules/manticore/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , capstone 4 - , crytic-compile 5 - , fetchFromGitHub 6 - , intervaltree 7 - , ply 8 - , prettytable 9 - , protobuf 10 - , pyelftools 11 - , pyevmasm 12 - , pysha3 13 - , pytestCheckHook 14 - , pythonOlder 15 - , pyyaml 16 - , rlp 17 - , stdenv 18 - , unicorn 19 - , wasm 20 - , yices 21 - , z3 22 - }: 23 - 24 - buildPythonPackage rec { 25 - pname = "manticore"; 26 - version = "0.3.7"; 27 - format = "setuptools"; 28 - 29 - disabled = pythonOlder "3.7"; 30 - 31 - src = fetchFromGitHub { 32 - owner = "trailofbits"; 33 - repo = "manticore"; 34 - rev = version; 35 - hash = "sha256-+17VBfAtkZZIi3SF5Num1Uqg3WjIpgbz3Jx65rD5zkM="; 36 - }; 37 - 38 - propagatedBuildInputs = [ 39 - crytic-compile 40 - intervaltree 41 - ply 42 - prettytable 43 - protobuf 44 - pyevmasm 45 - pysha3 46 - pyyaml 47 - rlp 48 - wasm 49 - ] ++ lib.optionals (stdenv.isLinux) [ 50 - capstone 51 - pyelftools 52 - unicorn 53 - ]; 54 - 55 - postPatch = '' 56 - # Python API is not used in the code, only z3 from PATH 57 - substituteInPlace setup.py \ 58 - --replace "z3-solver" "" \ 59 - --replace "crytic-compile==0.2.2" "crytic-compile>=0.2.2" 60 - ''; 61 - 62 - nativeCheckInputs = [ 63 - pytestCheckHook 64 - ]; 65 - 66 - preCheck = '' 67 - export PATH=${yices}/bin:${z3}/bin:$PATH 68 - ''; 69 - 70 - disabledTestPaths = [ 71 - "tests/ethereum" # Enable when solc works again 72 - "tests/ethereum_bench" 73 - ] ++ lib.optionals (!stdenv.isLinux) [ 74 - "tests/native" 75 - "tests/other/test_locking.py" 76 - "tests/other/test_state_introspection.py" 77 - ]; 78 - 79 - disabledTests = [ 80 - # Failing tests 81 - "test_chmod" 82 - "test_timeout" 83 - "test_wasm_main" 84 - # Slow tests 85 - "testmprotectFailSymbReading" 86 - "test_ConstraintsForking" 87 - "test_resume" 88 - "test_symbolic" 89 - "test_symbolic_syscall_arg" 90 - "test_state_merging" 91 - "test_decree" 92 - "test_register_comparison" 93 - "test_arguments_assertions_armv7" 94 - "test_integration_basic_stdout" 95 - "test_fclose_linux_amd64" 96 - "test_fileio_linux_amd64" 97 - "test_arguments_assertions_amd64" 98 - "test_ioctl_bogus" 99 - "test_ioctl_socket" 100 - "test_brk_regression" 101 - "test_basic_arm" 102 - "test_logger_verbosity" 103 - "test_profiling_data" 104 - "test_integration_basic_stdin" 105 - "test_getchar" 106 - "test_ccmp_reg" 107 - "test_ld1_mlt_structs" 108 - "test_ccmp_imm" 109 - "test_try_to_allocate_greater_than_last_space_memory_page_12" 110 - "test_not_enough_memory_page_12" 111 - "test_PCMPISTRI_30_symbolic" 112 - "test_ld1_mlt_structs" 113 - "test_time" 114 - "test_implicit_call" 115 - "test_trace" 116 - "test_plugin" 117 - # Tests are failing with latest unicorn 118 - "Aarch64UnicornInstructions" 119 - "test_integration_resume" 120 - ]; 121 - 122 - pythonImportsCheck = [ 123 - "manticore" 124 - ]; 125 - 126 - meta = with lib; { 127 - # m.c.manticore:WARNING: Manticore is only supported on Linux. Proceed at your own risk! 128 - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 129 - description = "Symbolic execution tool for analysis of smart contracts and binaries"; 130 - homepage = "https://github.com/trailofbits/manticore"; 131 - changelog = "https://github.com/trailofbits/manticore/releases/tag/${version}"; 132 - license = licenses.agpl3Only; 133 - platforms = platforms.unix; 134 - maintainers = with maintainers; [ arturcygan ]; 135 - }; 136 - }
-30
pkgs/development/python-modules/wasm/default.nix
··· 1 - { buildPythonPackage 2 - , fetchPypi 3 - , pythonAtLeast 4 - , lib 5 - }: 6 - 7 - buildPythonPackage rec { 8 - pname = "wasm"; 9 - version = "1.2"; 10 - 11 - disabled = pythonAtLeast "3.10"; # project is abandoned, remove we whe move to py310/311 12 - 13 - src = fetchPypi { 14 - inherit pname version; 15 - sha256 = "179xcinfc35xgk0bf9y58kwxzymzk7c1p58w6khmqfiqvb91j3r8"; 16 - }; 17 - 18 - # there are no tests 19 - doCheck = false; 20 - 21 - pythonImportsCheck = [ "wasm" ]; 22 - 23 - meta = with lib; { 24 - description = "WebAssembly decoder and disassembler"; 25 - homepage = "https://github.com/athre0z/wasm"; 26 - changelog = "https://github.com/athre0z/wasm/blob/master/CHANGELOG.md"; 27 - license = licenses.mit; 28 - maintainers = with maintainers; [ arturcygan ]; 29 - }; 30 - }
+2
pkgs/top-level/python-aliases.nix
··· 161 161 mailman = throw "Please use pkgs.mailman"; # added 2022-04-29 162 162 mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29 163 163 mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29 164 + manticore = throw "manticore has been removed because its dependency wasm no longer builds and is unmaintained"; # added 2023-05-20 164 165 mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12 165 166 mistune_2_0 = mistune; # added 2022-08-12 166 167 mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21 ··· 307 308 uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13 308 309 virtual-display = throw "virtual-display has been renamed to PyVirtualDisplay"; # added 2023-01-07 309 310 Wand = wand; # added 2022-11-13 311 + wasm = throw "wasm has been removed because it no longer builds and is unmaintained"; # added 2023-05-20 310 312 WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29 311 313 weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01 312 314 webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29
-6
pkgs/top-level/python-packages.nix
··· 5966 5966 5967 5967 manuel = callPackage ../development/python-modules/manuel { }; 5968 5968 5969 - manticore = callPackage ../development/python-modules/manticore { 5970 - inherit (pkgs) z3; 5971 - }; 5972 - 5973 5969 mapbox = callPackage ../development/python-modules/mapbox { }; 5974 5970 5975 5971 mapbox-earcut = callPackage ../development/python-modules/mapbox-earcut { }; ··· 12793 12789 wasabi = callPackage ../development/python-modules/wasabi { }; 12794 12790 12795 12791 wasserstein = callPackage ../development/python-modules/wasserstein { }; 12796 - 12797 - wasm = callPackage ../development/python-modules/wasm { }; 12798 12792 12799 12793 wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { }); 12800 12794 inherit (self.wasmerPackages) wasmer wasmer-compiler-cranelift wasmer-compiler-llvm wasmer-compiler-singlepass;