python3Packages.docutils: use the locale specification from buildPythonPackage

This commit is contained in:
Yueh-Shun Li
2025-03-08 00:30:07 +08:00
parent efccb4a888
commit 7c93ee1597
@@ -1,5 +1,4 @@
{
stdenv,
lib,
fetchFromRepoOrCz,
buildPythonPackage,
@@ -34,13 +33,9 @@ let
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 = ''