about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 9ccdd7d..f5f48fa 100644
--- a/flake.nix
+++ b/flake.nix
@@ -288,12 +288,17 @@
 				doCheck = true;
 				dontBuild = true;
 
-				nativeCheckInputs = [ pythonDevEnv ];
+				nativeCheckInputs = [ packages.dev pythonDevEnv ];
 
 				checkPhase = ''
 					set -euo pipefail
-					${packages.dev}/bin/pytest -q
+					export REPO_ROOT="$PWD"
+					${packages.dev}/bin/python -m 'pytest' -q tests
+					touch $out
 				'';
+
+				env = uvEnv;
+				shellHook = uvShellHook;
 			};
 		};
 	});