From 2e2dab644e89408574ac4604820c9dd5fe1946ec Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 10 Feb 2026 13:19:06 +0000 Subject: [PATCH] python3Packages.nexusrpc: Enable `checkPhase` --- .../python-modules/nexusrpc/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/nexusrpc/default.nix b/pkgs/development/python-modules/nexusrpc/default.nix index de8c5f30dcbb..4adba207216b 100644 --- a/pkgs/development/python-modules/nexusrpc/default.nix +++ b/pkgs/development/python-modules/nexusrpc/default.nix @@ -5,6 +5,9 @@ hatchling, nix-update-script, typing-extensions, + pyright, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,6 +23,12 @@ buildPythonPackage rec { fetchSubmodules = true; }; + postPatch = '' + # Patch out uv and run tests directly + substituteInPlace tests/test_type_errors.py \ + --replace-fail '["uv", "run", "pyright",' '["pyright",' + ''; + build-system = [ hatchling ]; @@ -28,6 +37,12 @@ buildPythonPackage rec { typing-extensions ]; + nativeCheckInputs = [ + pyright + pytest-asyncio + pytestCheckHook + ]; + pythonImportsCheck = [ "nexusrpc" ];