##// END OF EJS Templates
docs: fixed docs build problem with setuptools
marcink -
r2601:a20fbc50 default
parent child Browse files
Show More
@@ -1,269 +1,261 b''
1 { system ? builtins.currentSystem
1 { system ? builtins.currentSystem
2 }:
2 }:
3
3
4 let
4 let
5
5
6 pkgs = import <nixpkgs> { inherit system; };
6 pkgs = import <nixpkgs> { inherit system; };
7
7
8 inherit (pkgs) fetchurl fetchgit;
8 inherit (pkgs) fetchurl fetchgit;
9
9
10 buildPythonPackage = pkgs.python27Packages.buildPythonPackage;
10 buildPythonPackage = pkgs.python27Packages.buildPythonPackage;
11 python = pkgs.python27Packages.python;
11 python = pkgs.python27Packages.python;
12
12
13 Jinja2 = buildPythonPackage rec {
13 Jinja2 = buildPythonPackage rec {
14 name = "Jinja2-2.9.6";
14 name = "Jinja2-2.9.6";
15 buildInputs = [];
15 buildInputs = [];
16 doCheck = false;
16 doCheck = false;
17 propagatedBuildInputs = [MarkupSafe];
17 propagatedBuildInputs = [MarkupSafe];
18 src = fetchurl {
18 src = fetchurl {
19 url = "https://pypi.python.org/packages/90/61/f820ff0076a2599dd39406dcb858ecb239438c02ce706c8e91131ab9c7f1/Jinja2-2.9.6.tar.gz";
19 url = "https://pypi.python.org/packages/90/61/f820ff0076a2599dd39406dcb858ecb239438c02ce706c8e91131ab9c7f1/Jinja2-2.9.6.tar.gz";
20 md5 = "6411537324b4dba0956aaa8109f3c77b";
20 md5 = "6411537324b4dba0956aaa8109f3c77b";
21 };
21 };
22 };
22 };
23
23
24 MarkupSafe = buildPythonPackage rec {
24 MarkupSafe = buildPythonPackage rec {
25 name = "MarkupSafe-1.0";
25 name = "MarkupSafe-1.0";
26 buildInputs = [];
26 buildInputs = [];
27 doCheck = false;
27 doCheck = false;
28 propagatedBuildInputs = [];
28 propagatedBuildInputs = [];
29 src = fetchurl {
29 src = fetchurl {
30 url = "https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz";
30 url = "https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz";
31 md5 = "2fcedc9284d50e577b5192e8e3578355";
31 md5 = "2fcedc9284d50e577b5192e8e3578355";
32 };
32 };
33 };
33 };
34
34
35 Pygments = buildPythonPackage {
35 Pygments = buildPythonPackage {
36 name = "Pygments-2.2.0";
36 name = "Pygments-2.2.0";
37 buildInputs = [];
37 buildInputs = [];
38 doCheck = false;
38 doCheck = false;
39 propagatedBuildInputs = [];
39 propagatedBuildInputs = [];
40 src = fetchurl {
40 src = fetchurl {
41 url = "https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz";
41 url = "https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz";
42 md5 = "13037baca42f16917cbd5ad2fab50844";
42 md5 = "13037baca42f16917cbd5ad2fab50844";
43 };
43 };
44 };
44 };
45
45
46 Sphinx = buildPythonPackage (rec {
46 Sphinx = buildPythonPackage (rec {
47 name = "Sphinx-1.6.5";
47 name = "Sphinx-1.6.5";
48 src = fetchurl {
48 src = fetchurl {
49 url = "https://pypi.python.org/packages/8b/7e/b188d9a3b9c938e736e02a74c1363c2888e095d770df2c72b4c312f9fdcb/Sphinx-1.6.5.tar.gz";
49 url = "https://pypi.python.org/packages/8b/7e/b188d9a3b9c938e736e02a74c1363c2888e095d770df2c72b4c312f9fdcb/Sphinx-1.6.5.tar.gz";
50 md5 = "cd73118c21ec610432e63e6421ec54f1";
50 md5 = "cd73118c21ec610432e63e6421ec54f1";
51 };
51 };
52 propagatedBuildInputs = [
52 propagatedBuildInputs = [
53 six
53 six
54 Jinja2
54 Jinja2
55 Pygments
55 Pygments
56 docutils
56 docutils
57 snowballstemmer
57 snowballstemmer
58 babel
58 babel
59 alabaster
59 alabaster
60 imagesize
60 imagesize
61 requests
61 requests
62 setuptools
62 setuptools
63 sphinxcontrib-websupport
63 sphinxcontrib-websupport
64 typing
64 typing
65
65
66 # special cases
66 # special cases
67 pytz
67 pytz
68 sphinx_rtd_theme
68 sphinx_rtd_theme
69
69
70 ];
70 ];
71 });
71 });
72
72
73 alabaster = buildPythonPackage rec {
73 alabaster = buildPythonPackage rec {
74 name = "alabaster-0.7.10";
74 name = "alabaster-0.7.10";
75 buildInputs = [];
75 buildInputs = [];
76 doCheck = false;
76 doCheck = false;
77 propagatedBuildInputs = [];
77 propagatedBuildInputs = [];
78 src = fetchurl {
78 src = fetchurl {
79 url = "https://pypi.python.org/packages/d0/a5/e3a9ad3ee86aceeff71908ae562580643b955ea1b1d4f08ed6f7e8396bd7/alabaster-0.7.10.tar.gz";
79 url = "https://pypi.python.org/packages/d0/a5/e3a9ad3ee86aceeff71908ae562580643b955ea1b1d4f08ed6f7e8396bd7/alabaster-0.7.10.tar.gz";
80 md5 = "7934dccf38801faa105f6e7b4784f493";
80 md5 = "7934dccf38801faa105f6e7b4784f493";
81 };
81 };
82 };
82 };
83
83
84 babel = buildPythonPackage {
84 babel = buildPythonPackage {
85 name = "babel-2.5.1";
85 name = "babel-2.5.1";
86 buildInputs = [];
86 buildInputs = [];
87 doCheck = false;
87 doCheck = false;
88 propagatedBuildInputs = [pytz];
88 propagatedBuildInputs = [pytz];
89 src = fetchurl {
89 src = fetchurl {
90 url = "https://pypi.python.org/packages/5a/22/63f1dbb8514bb7e0d0c8a85cc9b14506599a075e231985f98afd70430e1f/Babel-2.5.1.tar.gz";
90 url = "https://pypi.python.org/packages/5a/22/63f1dbb8514bb7e0d0c8a85cc9b14506599a075e231985f98afd70430e1f/Babel-2.5.1.tar.gz";
91 md5 = "60228b3ce93a203357158b909afe8ae1";
91 md5 = "60228b3ce93a203357158b909afe8ae1";
92 };
92 };
93 };
93 };
94
94
95 certifi = buildPythonPackage {
95 certifi = buildPythonPackage {
96 name = "certifi-2017.11.5";
96 name = "certifi-2017.11.5";
97 buildInputs = [];
97 buildInputs = [];
98 doCheck = false;
98 doCheck = false;
99 propagatedBuildInputs = [];
99 propagatedBuildInputs = [];
100 src = fetchurl {
100 src = fetchurl {
101 url = "https://pypi.python.org/packages/23/3f/8be01c50ed24a4bd6b8da799839066ce0288f66f5e11f0367323467f0cbc/certifi-2017.11.5.tar.gz";
101 url = "https://pypi.python.org/packages/23/3f/8be01c50ed24a4bd6b8da799839066ce0288f66f5e11f0367323467f0cbc/certifi-2017.11.5.tar.gz";
102 md5 = "c15ac46ed1fe4b607ff3405928f9a992";
102 md5 = "c15ac46ed1fe4b607ff3405928f9a992";
103 };
103 };
104 };
104 };
105
105
106 chardet = buildPythonPackage {
106 chardet = buildPythonPackage {
107 name = "chardet-3.0.4";
107 name = "chardet-3.0.4";
108 buildInputs = [];
108 buildInputs = [];
109 doCheck = false;
109 doCheck = false;
110 propagatedBuildInputs = [];
110 propagatedBuildInputs = [];
111 src = fetchurl {
111 src = fetchurl {
112 url = "https://pypi.python.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz";
112 url = "https://pypi.python.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz";
113 md5 = "7dd1ba7f9c77e32351b0a0cfacf4055c";
113 md5 = "7dd1ba7f9c77e32351b0a0cfacf4055c";
114 };
114 };
115 };
115 };
116
116
117 docutils = buildPythonPackage {
117 docutils = buildPythonPackage {
118 name = "docutils-0.14";
118 name = "docutils-0.14";
119 buildInputs = [];
119 buildInputs = [];
120 doCheck = false;
120 doCheck = false;
121 propagatedBuildInputs = [];
121 propagatedBuildInputs = [];
122 src = fetchurl {
122 src = fetchurl {
123 url = "https://pypi.python.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz";
123 url = "https://pypi.python.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz";
124 md5 = "c53768d63db3873b7d452833553469de";
124 md5 = "c53768d63db3873b7d452833553469de";
125 };
125 };
126 };
126 };
127
127
128 idna = buildPythonPackage {
128 idna = buildPythonPackage {
129 name = "idna-2.6";
129 name = "idna-2.6";
130 buildInputs = [];
130 buildInputs = [];
131 doCheck = false;
131 doCheck = false;
132 propagatedBuildInputs = [];
132 propagatedBuildInputs = [];
133 src = fetchurl {
133 src = fetchurl {
134 url = "https://pypi.python.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3/idna-2.6.tar.gz";
134 url = "https://pypi.python.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3/idna-2.6.tar.gz";
135 md5 = "c706e2790b016bd0ed4edd2d4ba4d147";
135 md5 = "c706e2790b016bd0ed4edd2d4ba4d147";
136 };
136 };
137 };
137 };
138
138
139 imagesize = buildPythonPackage {
139 imagesize = buildPythonPackage {
140 name = "imagesize-0.7.1";
140 name = "imagesize-0.7.1";
141 buildInputs = [];
141 buildInputs = [];
142 doCheck = false;
142 doCheck = false;
143 propagatedBuildInputs = [];
143 propagatedBuildInputs = [];
144 src = fetchurl {
144 src = fetchurl {
145 url = "https://pypi.python.org/packages/53/72/6c6f1e787d9cab2cc733cf042f125abec07209a58308831c9f292504e826/imagesize-0.7.1.tar.gz";
145 url = "https://pypi.python.org/packages/53/72/6c6f1e787d9cab2cc733cf042f125abec07209a58308831c9f292504e826/imagesize-0.7.1.tar.gz";
146 md5 = "976148283286a6ba5f69b0f81aef8052";
146 md5 = "976148283286a6ba5f69b0f81aef8052";
147 };
147 };
148 };
148 };
149
149
150 pytz = buildPythonPackage {
150 pytz = buildPythonPackage {
151 name = "pytz-2017.3";
151 name = "pytz-2017.3";
152 buildInputs = [];
152 buildInputs = [];
153 doCheck = false;
153 doCheck = false;
154 propagatedBuildInputs = [];
154 propagatedBuildInputs = [];
155 src = fetchurl {
155 src = fetchurl {
156 url = "https://pypi.python.org/packages/60/88/d3152c234da4b2a1f7a989f89609ea488225eaea015bc16fbde2b3fdfefa/pytz-2017.3.zip";
156 url = "https://pypi.python.org/packages/60/88/d3152c234da4b2a1f7a989f89609ea488225eaea015bc16fbde2b3fdfefa/pytz-2017.3.zip";
157 md5 = "7006b56c0d68a162d9fe57d4249c3171";
157 md5 = "7006b56c0d68a162d9fe57d4249c3171";
158 };
158 };
159 };
159 };
160
160
161 requests = buildPythonPackage {
161 requests = buildPythonPackage {
162 name = "requests-2.18.4";
162 name = "requests-2.18.4";
163 buildInputs = [];
163 buildInputs = [];
164 doCheck = false;
164 doCheck = false;
165 propagatedBuildInputs = [chardet idna urllib3 certifi];
165 propagatedBuildInputs = [chardet idna urllib3 certifi];
166 src = fetchurl {
166 src = fetchurl {
167 url = "https://pypi.python.org/packages/b0/e1/eab4fc3752e3d240468a8c0b284607899d2fbfb236a56b7377a329aa8d09/requests-2.18.4.tar.gz";
167 url = "https://pypi.python.org/packages/b0/e1/eab4fc3752e3d240468a8c0b284607899d2fbfb236a56b7377a329aa8d09/requests-2.18.4.tar.gz";
168 md5 = "081412b2ef79bdc48229891af13f4d82";
168 md5 = "081412b2ef79bdc48229891af13f4d82";
169 };
169 };
170 };
170 };
171
171
172 setuptools = buildPythonPackage {
173 name = "setuptools-36.6.0";
174 buildInputs = [];
175 doCheck = false;
176 propagatedBuildInputs = [];
177 src = fetchurl {
178 url = "https://pypi.python.org/packages/45/29/8814bf414e7cd1031e1a3c8a4169218376e284ea2553cc0822a6ea1c2d78/setuptools-36.6.0.zip";
179 md5 = "74663b15117d9a2cc5295d76011e6fd1";
180 };
181 };
182
183 six = buildPythonPackage {
172 six = buildPythonPackage {
184 name = "six-1.11.0";
173 name = "six-1.11.0";
185 buildInputs = [];
174 buildInputs = [];
186 doCheck = false;
175 doCheck = false;
187 propagatedBuildInputs = [];
176 propagatedBuildInputs = [];
188 src = fetchurl {
177 src = fetchurl {
189 url = "https://pypi.python.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz";
178 url = "https://pypi.python.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz";
190 md5 = "d12789f9baf7e9fb2524c0c64f1773f8";
179 md5 = "d12789f9baf7e9fb2524c0c64f1773f8";
191 };
180 };
192 };
181 };
193
182
194 snowballstemmer = buildPythonPackage {
183 snowballstemmer = buildPythonPackage {
195 name = "snowballstemmer-1.2.1";
184 name = "snowballstemmer-1.2.1";
196 buildInputs = [];
185 buildInputs = [];
197 doCheck = false;
186 doCheck = false;
198 propagatedBuildInputs = [];
187 propagatedBuildInputs = [];
199 src = fetchurl {
188 src = fetchurl {
200 url = "https://pypi.python.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/snowballstemmer-1.2.1.tar.gz";
189 url = "https://pypi.python.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/snowballstemmer-1.2.1.tar.gz";
201 md5 = "643b019667a708a922172e33a99bf2fa";
190 md5 = "643b019667a708a922172e33a99bf2fa";
202 };
191 };
203 };
192 };
204
193
205 sphinx-rtd-theme = buildPythonPackage {
194 sphinx-rtd-theme = buildPythonPackage {
206 name = "sphinx-rtd-theme-0.2.5b1";
195 name = "sphinx-rtd-theme-0.2.5b1";
207 buildInputs = [];
196 buildInputs = [];
208 doCheck = false;
197 doCheck = false;
209 propagatedBuildInputs = [];
198 propagatedBuildInputs = [];
210 src = fetchurl {
199 src = fetchurl {
211 url = "https://pypi.python.org/packages/59/e4/9e3a74a3271e6734911d3f549e8439db53b8ac29adf10c8f698e6c86246b/sphinx_rtd_theme-0.2.5b1.tar.gz";
200 url = "https://pypi.python.org/packages/59/e4/9e3a74a3271e6734911d3f549e8439db53b8ac29adf10c8f698e6c86246b/sphinx_rtd_theme-0.2.5b1.tar.gz";
212 md5 = "0923473a43bd2527f32151f195f2a521";
201 md5 = "0923473a43bd2527f32151f195f2a521";
213 };
202 };
214 };
203 };
215
204
216 sphinxcontrib-websupport = buildPythonPackage {
205 sphinxcontrib-websupport = buildPythonPackage {
217 name = "sphinxcontrib-websupport-1.0.1";
206 name = "sphinxcontrib-websupport-1.0.1";
218 buildInputs = [];
207 buildInputs = [];
219 doCheck = false;
208 doCheck = false;
220 propagatedBuildInputs = [];
209 propagatedBuildInputs = [];
221 src = fetchurl {
210 src = fetchurl {
222 url = "https://pypi.python.org/packages/c5/6b/f0630436b931ad4f8331a9399ca18a7d447f0fcc0c7178fb56b1aee68d01/sphinxcontrib-websupport-1.0.1.tar.gz";
211 url = "https://pypi.python.org/packages/c5/6b/f0630436b931ad4f8331a9399ca18a7d447f0fcc0c7178fb56b1aee68d01/sphinxcontrib-websupport-1.0.1.tar.gz";
223 md5 = "84df26463b1ba65b07f926dbe2055665";
212 md5 = "84df26463b1ba65b07f926dbe2055665";
224 };
213 };
225 };
214 };
226
215
227 typing = buildPythonPackage {
216 typing = buildPythonPackage {
228 name = "typing-3.6.2";
217 name = "typing-3.6.2";
229 buildInputs = [];
218 buildInputs = [];
230 doCheck = false;
219 doCheck = false;
231 propagatedBuildInputs = [];
220 propagatedBuildInputs = [];
232 src = fetchurl {
221 src = fetchurl {
233 url = "https://pypi.python.org/packages/ca/38/16ba8d542e609997fdcd0214628421c971f8c395084085354b11ff4ac9c3/typing-3.6.2.tar.gz";
222 url = "https://pypi.python.org/packages/ca/38/16ba8d542e609997fdcd0214628421c971f8c395084085354b11ff4ac9c3/typing-3.6.2.tar.gz";
234 md5 = "143af0bf3afd1887622771f2f1ffe8e1";
223 md5 = "143af0bf3afd1887622771f2f1ffe8e1";
235 };
224 };
236 };
225 };
237
226
238 urllib3 = buildPythonPackage {
227 urllib3 = buildPythonPackage {
239 name = "urllib3-1.22";
228 name = "urllib3-1.22";
240 buildInputs = [];
229 buildInputs = [];
241 doCheck = false;
230 doCheck = false;
242 propagatedBuildInputs = [];
231 propagatedBuildInputs = [];
243 src = fetchurl {
232 src = fetchurl {
244 url = "https://pypi.python.org/packages/ee/11/7c59620aceedcc1ef65e156cc5ce5a24ef87be4107c2b74458464e437a5d/urllib3-1.22.tar.gz";
233 url = "https://pypi.python.org/packages/ee/11/7c59620aceedcc1ef65e156cc5ce5a24ef87be4107c2b74458464e437a5d/urllib3-1.22.tar.gz";
245 md5 = "0da7bed3fe94bf7dc59ae37885cc72f7";
234 md5 = "0da7bed3fe94bf7dc59ae37885cc72f7";
246 };
235 };
247 };
236 };
248
237
249
238
250 sphinx_rtd_theme = buildPythonPackage rec {
239 sphinx_rtd_theme = buildPythonPackage rec {
251 name = "sphinx-rtd-theme-0.2.5b1";
240 name = "sphinx-rtd-theme-0.2.5b1";
252 buildInputs = [];
241 buildInputs = [];
253 doCheck = false;
242 doCheck = false;
254 propagatedBuildInputs = [];
243 propagatedBuildInputs = [];
255 src = fetchurl {
244 src = fetchurl {
256 url = "https://pypi.python.org/packages/59/e4/9e3a74a3271e6734911d3f549e8439db53b8ac29adf10c8f698e6c86246b/sphinx_rtd_theme-0.2.5b1.tar.gz";
245 url = "https://pypi.python.org/packages/59/e4/9e3a74a3271e6734911d3f549e8439db53b8ac29adf10c8f698e6c86246b/sphinx_rtd_theme-0.2.5b1.tar.gz";
257 md5 = "0923473a43bd2527f32151f195f2a521";
246 md5 = "0923473a43bd2527f32151f195f2a521";
258 };
247 };
259
248
260
249
261 };
250 };
251 # Avoid that setuptools is replaced, this leads to trouble
252 # with buildPythonPackage.
253 setuptools = pkgs.python27Packages.setuptools;
262
254
263 in python.buildEnv.override {
255 in python.buildEnv.override {
264 inherit python;
256 inherit python;
265 extraLibs = [
257 extraLibs = [
266 Sphinx
258 Sphinx
267 sphinx_rtd_theme
259 sphinx_rtd_theme
268 ];
260 ];
269 }
261 }
General Comments 0
You need to be logged in to leave comments. Login now