From 974a676436a2dc0c9d983891cd519c7b9ec6dd93 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Fri, 22 May 2026 21:12:08 +0200 Subject: [PATCH] python3Packages.wasmtime: don't run mypy via pytest-mypy Type checking breaks easily and we're not interested in type checking results [1]. Hydra: https://hydra.nixos.org/build/329220521 [1] https://nixos.org/manual/nixpkgs/unstable/#testing-python-packages --- pkgs/development/python-modules/wasmtime/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/wasmtime/default.nix b/pkgs/development/python-modules/wasmtime/default.nix index 0d6385e2d5ee..fd3908ff7301 100644 --- a/pkgs/development/python-modules/wasmtime/default.nix +++ b/pkgs/development/python-modules/wasmtime/default.nix @@ -5,7 +5,6 @@ python, pkgs, pycparser, - pytest-mypy, pytestCheckHook, setuptools-git-versioning, setuptools, @@ -32,6 +31,10 @@ buildPythonPackage (finalAttrs: { substituteInPlace ci/cbindgen.py \ --replace-fail "'-D__builtin_va_list=int'," "'-D__builtin_va_list=int', '-Dnullptr_t=void*'," + # Don't run mypy via pytest-mypy (type checking breaks easily) + substituteInPlace pytest.ini \ + --replace-fail 'addopts = --doctest-modules --mypy' 'addopts = --doctest-modules' + sed -i '/^backend-path = \[/,/^\]/d' pyproject.toml # Use nixpkgs' wasmtime instead of downloading prebuilt C API artifacts. @@ -57,7 +60,6 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ pycparser - pytest-mypy pytestCheckHook writableTmpDirAsHomeHook ];