From 1497f748130ee3c92a3d091ef4cd771cc7fcd236 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 26 May 2026 21:55:44 +0200 Subject: [PATCH] python3Packages.wasmtime: 44.0.0 -> 45.0.0 --- .../python-modules/wasmtime/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/wasmtime/default.nix b/pkgs/development/python-modules/wasmtime/default.nix index 0d6385e2d5ee..462fb4829f32 100644 --- a/pkgs/development/python-modules/wasmtime/default.nix +++ b/pkgs/development/python-modules/wasmtime/default.nix @@ -14,14 +14,14 @@ buildPythonPackage (finalAttrs: { pname = "wasmtime"; - version = "44.0.0"; + version = "45.0.0"; pyproject = true; src = fetchFromGitHub { owner = "bytecodealliance"; repo = "wasmtime-py"; tag = finalAttrs.version; - hash = "sha256-7K0j4jMsRB7/wNIj0pXxFTy0y7aN37wgCD1XKM92Ayw="; + hash = "sha256-XlAWPJB34uE+hbEMGZ46Ll6kXP+/lZ2amTKdjslGrP4="; }; postPatch = '' @@ -29,8 +29,9 @@ buildPythonPackage (finalAttrs: { --replace-fail "setuptools-git-versioning>=2.0,<3" "setuptools-git-versioning" \ --replace-fail 'build-backend = "backend"' 'build-backend = "setuptools.build_meta"' - substituteInPlace ci/cbindgen.py \ - --replace-fail "'-D__builtin_va_list=int'," "'-D__builtin_va_list=int', '-Dnullptr_t=void*'," + # `wasmtime/_{extern,types,value}.py` erroneously report unreachable statements + substituteInPlace mypy.ini \ + --replace-fail "warn_unreachable = True" "warn_unreachable = False" sed -i '/^backend-path = \[/,/^\]/d' pyproject.toml @@ -62,15 +63,17 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; - disabledTestPaths = [ - "ci/cbindgen.py" - ]; - pythonImportsCheck = [ "wasmtime" ]; preCheck = '' # cbindgen.py checks bindings against C headers during test collection. ln -s ${lib.getDev pkgs.wasmtime}/include wasmtime/include + + # hardening options interfere with pycparser's CC call + export NIX_HARDENING_ENABLE="" + + # $out is first in path which causes "import file mismatch" + export PYTHONPATH="$PWD:$PYTHONPATH" ''; meta = {