mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
python3Packages.cwcwidth: fix tests on darwin
use the same locale settings used by upstream's CI:
2bc4360474/.github/workflows/build.yaml (L33)
this has the effect of skipping some otherwise-failing tests on
darwin. seems slightly counterproductive but who am i to judge?
This commit is contained in:
parent
67c9d4ae00
commit
712b402565
@ -13,12 +13,17 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
preCheck = ''
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
export HOME=$(mktemp -d)
|
||||
cp -r $TMP/$sourceRoot/tests $HOME
|
||||
pushd $HOME
|
||||
|
||||
# locale settings used by upstream, has the effect of skipping
|
||||
# otherwise-failing tests on darwin
|
||||
export LC_ALL='C.UTF-8'
|
||||
export LANG='C.UTF-8'
|
||||
'';
|
||||
postCheck = "popd";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user