@@ -13,12 +13,17 @@ buildPythonPackage rec {
1313 nativeBuildInputs = [ cython ];
1414
1515 checkInputs = [ pytestCheckHook ];
16− # Hack needed to make pytest + cython work
17− # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
1816 preCheck = ''
17+ # Hack needed to make pytest + cython work
18+ # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
1919 export HOME=$(mktemp -d)
2020 cp -r $TMP/$sourceRoot/tests $HOME
2121 pushd $HOME
22+
23+ # locale settings used by upstream, has the effect of skipping
24+ # otherwise-failing tests on darwin
25+ export LC_ALL='C.UTF-8'
26+ export LANG='C.UTF-8'
2227 '';
2328 postCheck = "popd";
2429