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" ];