diff --git a/tests.nix b/tests.nix
index 40412a752ecaacd918e0aad6bfab37def5f24383..bf355d840af2ca22fc4cac5b15e03b6a56c54d3d 100644
--- a/tests.nix
+++ b/tests.nix
@@ -35,7 +35,7 @@ let
     };
 
     lint-python = mach-nix.mkPython {
-      python = "python39";
+      inherit (zkapauthorizer.meta.mach-nix) python;
       requirements = ''
         isort
         black