about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorDave Nicponski <dave.nicponski@gmail.com>2019-04-17 00:31:56 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-04-18 08:27:28 +0200
commita6a88bffd58ca40ac528dd4886110a20acae3967 (patch)
tree197af494af9025aeac10614afa50e735c6ee219b /pkgs/development/python-modules
parent9d87ccabce3516cf1cf5654bd95cdc9471f8615e (diff)
downloadnixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar.gz
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar.bz2
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar.lz
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar.xz
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.tar.zst
nixlib-a6a88bffd58ca40ac528dd4886110a20acae3967.zip
python3.7-docutils: build fix on darwin
Fix python docutils package for OSX.  On a relatively clean new macbook,
with latest OS Mojave 10.14.3, this package failed to build.  A bit of
searching led to:
https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/docutils/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/docutils/default.nix b/pkgs/development/python-modules/docutils/default.nix
index f427f95ffaa9..b4a4953eb94a 100644
--- a/pkgs/development/python-modules/docutils/default.nix
+++ b/pkgs/development/python-modules/docutils/default.nix
@@ -17,7 +17,7 @@ buildPythonPackage rec {
 
   # Only Darwin needs LANG, but we could set it in general.
   # It's done here conditionally to prevent mass-rebuilds.
-  checkPhase = lib.optionalString (isPy3k && stdenv.isDarwin) ''LANG="en_US.UTF-8" '' + (if isPy3k then ''
+  checkPhase = lib.optionalString (isPy3k && stdenv.isDarwin) ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + (if isPy3k then ''
     ${python.interpreter} test3/alltests.py
   '' else ''
     ${python.interpreter} test/alltests.py