From 0f594fac96e6f35dd5d711ca700c2732187dbff4 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Wed, 4 Feb 2026 12:31:17 +0100 Subject: [PATCH] python3Packages.msgspec: enable tests --- pkgs/development/python-modules/msgspec/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/msgspec/default.nix b/pkgs/development/python-modules/msgspec/default.nix index 2120bed89958..c22c2630b14d 100644 --- a/pkgs/development/python-modules/msgspec/default.nix +++ b/pkgs/development/python-modules/msgspec/default.nix @@ -11,6 +11,7 @@ pre-commit, pyright, pytest, + pytestCheckHook, pyyaml, setuptools, setuptools-scm, @@ -68,8 +69,12 @@ buildPythonPackage rec { yaml = [ pyyaml ]; }; - # Requires libasan to be accessible - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; + + # `tests/typing` runs type checkers + enabledTestPaths = [ "tests/unit" ]; pythonImportsCheck = [ "msgspec" ];