typeguard: avoid writing bytecode during tests to make reproducible #384704

This commit is contained in:
Iwan
2025-08-09 18:57:45 +02:00
committed by Martin Weinelt
parent 6ba92f39ca
commit 01ad9f01f0
@@ -53,6 +53,10 @@ buildPythonPackage rec {
pytestCheckHook
];
# To prevent test from writing out non-reproducible .pyc files
# https://github.com/agronholm/typeguard/blob/ca512c28132999da514f31b5e93ed2f294ca8f77/tests/test_typechecked.py#L641
preCheck = "export PYTHONDONTWRITEBYTECODE=1";
pythonImportsCheck = [ "typeguard" ];
meta = {