diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-12-02 19:24:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-02 19:24:51 +0100 |
commit | 0e6e8c1305bd938a93adab43386814377a152203 (patch) | |
tree | 7024c96c53bc07d582df1685c334e4c49db1f3a0 | |
parent | 8724e6cc82fc9c6004ca8c4ff4882c5822684172 (diff) | |
parent | 81567cb82804277e7aa81c6c6f4672963ce873ec (diff) | |
download | nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar.gz nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar.bz2 nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar.lz nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar.xz nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.tar.zst nixpkgs-0e6e8c1305bd938a93adab43386814377a152203.zip |
Merge pull request #51311 from FRidh/docutils
python.pkgs.docutils: set LANG in case of darwin and python3
-rw-r--r-- | pkgs/development/python-modules/docutils/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/docutils/default.nix b/pkgs/development/python-modules/docutils/default.nix index c31cfceebba..57cb34ebf59 100644 --- a/pkgs/development/python-modules/docutils/default.nix +++ b/pkgs/development/python-modules/docutils/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , fetchurl , buildPythonPackage , isPy3k @@ -14,11 +15,13 @@ buildPythonPackage rec { sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"; }; - checkPhase = if isPy3k then '' + # 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 '' ${python.interpreter} test3/alltests.py '' else '' ${python.interpreter} test/alltests.py - ''; + ''); # Create symlinks lacking a ".py" suffix, many programs depend on these names postFixup = '' |