@@ -30,9 +30,6 @@ let
3030 crypt = null;
3131 };
3232
33− # glibcLocales doesn't build on Darwin
34− localePath = optionalString (! stdenv.isDarwin) "${pkgs.glibcLocales}/lib/locale/locale-archive";
35−
3633 pythonPackages = modules // import ./python-packages-generated.nix {
3734 inherit pkgs python;
3835 inherit (pkgs) stdenv fetchurl;
@@ -2107,8 +2104,9 @@ let
21072104
21082105 propagatedBuildInputs = with self; [ self.six ];
21092106
2107+ buildInputs = [ pkgs.glibcLocales ];
2108+
21102109 preBuild = ''
2111− export LOCALE_ARCHIVE=${localePath}
21122110 export LC_ALL="en_US.UTF-8"
21132111 '';
21142112
@@ -2821,8 +2819,9 @@ let
28212819 sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
28222820 };
28232821
2822+ buildInputs = [ pkgs.glibcLocales ];
2823+
28242824 preBuild = ''
2825− export LOCALE_ARCHIVE=${localePath}
28262825 export LC_ALL="en_US.UTF-8"
28272826 '';
28282827
@@ -4066,8 +4065,9 @@ let
40664065 md5 = "92978492871342ad64e8ae0ccfcf200c";
40674066 };
40684067
4068+ buildInputs = [ pkgs.glibcLocales ];
4069+
40694070 preConfigure = ''
4070− export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
40714071 export LC_ALL="en_US.UTF-8"
40724072 '';
40734073
@@ -4833,11 +4833,10 @@ let
48334833 };
48344834
48354835 preBuild = ''
4836− export LOCALE_ARCHIVE=${localePath}
48374836 export LC_ALL="en_US.UTF-8"
48384837 '';
48394838
4840− buildInputs = with self; [ six ];
4839+ buildInputs = with self; [ six pkgs.glibcLocales ];
48414840
48424841 meta = with stdenv.lib; {
48434842 description = "Library collecting some useful snippets";
@@ -5766,7 +5765,6 @@ let
57665765 doCheck = false;
57675766
57685767 preBuild = ''
5769− export LOCALE_ARCHIVE=${localePath}
57705768 export LC_ALL="en_US.UTF-8"
57715769 '';
57725770
@@ -5778,7 +5776,7 @@ let
57785776 '';
57795777
57805778 buildInputs = with self; [
5781− pkgs.libjpeg pkgs.freetype pkgs.zlib
5779+ pkgs.libjpeg pkgs.freetype pkgs.zlib pkgs.glibcLocales
57825780 pillow twitter pyfiglet requests arrow dateutil modules.readline pysocks
57835781 ];
57845782
@@ -5965,9 +5963,10 @@ let
59655963 md5 = "84a117c9a75b86842b0fa5f5c9c767f3";
59665964 };
59675965
5966+ buildInputs = [ pkgs.glibcLocales ];
5967+
59685968 # some files in tests dir include unicode names
59695969 preBuild = ''
5970− export LOCALE_ARCHIVE=${localePath}
59715970 export LC_ALL="en_US.UTF-8"
59725971 '';
59735972
@@ -6033,8 +6032,9 @@ let
60336032 md5 = "9e17a181af72d04a291c9a960bc73d44";
60346033 };
60356034
6035+ buildInputs = [ pkgs.glibcLocales ];
6036+
60366037 preCheck = ''
6037− export LOCALE_ARCHIVE=${localePath}
60386038 export LC_ALL="en_US.UTF-8"
60396039 '';
60406040
@@ -6965,7 +6965,6 @@ let
69656965 };
69666966
69676967 preConfigure = ''
6968− export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
69696968 export LC_ALL="en_US.UTF-8"
69706969 '';
69716970
@@ -6973,6 +6972,8 @@ let
69736972 #buildInputs = [nose mock];
69746973 doCheck = false;
69756974
6975+ buildInputs = [ pkgs.glibcLocales ];
6976+
69766977 propagatedBuildInputs = with self; [
69776978 jinja2 pygments docutils pytz unidecode six dateutil feedgenerator
69786979 blinker pillow beautifulsoup4
@@ -7263,10 +7264,11 @@ let
72637264 url = "http://pypi.python.org/packages/source/P/PrettyTable/${name}.tar.bz2";
72647265 sha1 = "ad346a18d92c1d95f2295397c7a8a4f489e48851";
72657266 };
7267+
7268+ buildInputs = [ pkgs.glibcLocales ];
72667269
72677270 preCheck = ''
72687271 export LANG="en_US.UTF-8"
7269− export LOCALE_ARCHIVE=${localePath}
72707272 '';
72717273
72727274 meta = {
@@ -9298,7 +9300,7 @@ let
92989300 '';
92999301
93009302 checkPhase = ''
9301− LOCALE_ARCHIVE=${localePath} LC_ALL="en_US.UTF-8" HOME=$TMPDIR ATLAS="" nosetests
9303+ LOCALE_ARCHIVE=${pkgs.glibcLocales} LC_ALL="en_US.UTF-8" HOME=$TMPDIR ATLAS="" nosetests
93029304 '';
93039305
93049306 meta = {
@@ -9481,11 +9483,10 @@ let
94819483 sha256 = "099sc7ajpp6hbgrx3c0bl6hhkz1mhnr0ahvc7s4i3f3b7q1zfn7l";
94829484 };
94839485
9484− buildInputs = with self; [ pkgs.geos ];
9486+ buildInputs = with self; [ pkgs.geos pkgs.glibcLocales ];
94859487
94869488 preConfigure = ''
94879489 export LANG="en_US.UTF-8";
9488− export LOCALE_ARCHIVE=${localePath}
94899490 '';
94909491
94919492 patchPhase = ''
@@ -9541,9 +9542,10 @@ let
95419542 sha256 = "0h1b9mx0snyyybj1x1ga69qssgjzkkgx2rw6nddjhyz1fknf8ywh";
95429543 };
95439544
9545+ buildInputs = [ pkgs.glibcLocales ];
9546+
95449547 preCheck = ''
95459548 export LANG="en_US.UTF-8"
9546− export LOCALE_ARCHIVE=${localePath}
95479549 '';
95489550
95499551 meta = with stdenv.lib; {
@@ -9606,10 +9608,9 @@ let
96069608
96079609 preCheck = ''
96089610 export LANG="en_US.UTF-8"
9609− export LOCALE_ARCHIVE=${localePath}
96109611 '';
96119612
9612− buildInputs = with self; [ pytest py mock ];
9613+ buildInputs = with self; [ pytest py mock pkgs.glibcLocales ];
96139614
96149615 meta = with stdenv.lib; {
96159616 maintainers = [ maintainers.iElectric ];
@@ -10122,7 +10123,6 @@ let
1012210123 version = "1.2.8";
1012310124
1012410125 preBuild = ''
10125− export LOCALE_ARCHIVE=${localePath}
1012610126 export LC_ALL="en_US.UTF-8"
1012710127 '';
1012810128
@@ -10135,7 +10135,7 @@ let
1013510135 sha256 = "0pgi9xg00wcw0m1pv5qp7jv53q38yffcmkf2fj1zlfi2b9c3njid";
1013610136 };
1013710137
10138− buildInputs = with self; [ nose ];
10138+ buildInputs = with self; [ nose pkgs.glibcLocales ];
1013910139
1014010140 propagatedBuildInputs = with self; [ six mock ];
1014110141