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

Iwan 01ad9f01 6ba92f39

Changed files
+4
pkgs
development
python-modules
typeguard
+4
pkgs/development/python-modules/typeguard/default.nix
···
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 = {