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