diff --git a/modules/kernels/python/module.nix b/modules/kernels/python/module.nix index 49b241f..13af157 100644 --- a/modules/kernels/python/module.nix +++ b/modules/kernels/python/module.nix @@ -168,7 +168,19 @@ in x = config.kernels.python3.python3Package; - basePython = lib.getAttr x config.pkgs; + basePython = (lib.getAttr x config.pkgs).override { + packageOverrides = _pyFinal: pyPrev: { + # Every pylint primer test drives one shared PRIMER_DIRECTORY and reads back the + # comment.txt it writes there, so the pytest-xdist workers overwrite each other's + # output and one of them reads an empty file. They only run on Python 3.11, and + # they cover pylint's own CI tooling rather than anything we ship. + pylint = pyPrev.pylint.overridePythonAttrs (old: { + disabledTestPaths = (old.disabledTestPaths or []) ++ [ + "tests/testutils/_primer/test_primer.py" + ]; + }); + }; + }; # if lib.hasAttr x specialEnvPythons then (config.pkgs.poetry2nix.mkPoetryEnv { # projectDir = ./envs/${x}; # python = specialEnvPythons.${x};