python3Packages.docutils: use the locale specification from buildPythonPackage

Changed files
+3 -8
pkgs
development
python-modules
docutils
+3 -8
pkgs/development/python-modules/docutils/default.nix
···
{
-
stdenv,
lib,
fetchFromRepoOrCz,
buildPythonPackage,
···
nativeCheckInputs = [ pillow ];
-
# Only Darwin needs LANG, but we could set it in general.
-
# It's done here conditionally to prevent mass-rebuilds.
-
checkPhase =
-
lib.optionalString stdenv.hostPlatform.isDarwin ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" ''
-
+ ''
-
${python.interpreter} test/alltests.py
-
'';
+
checkPhase = ''
+
${python.interpreter} test/alltests.py
+
'';
# Create symlinks lacking a ".py" suffix, many programs depend on these names
postFixup = ''