##// END OF EJS Templates
docs: updated dependencies for docs build
marcink -
r367:b4e34d10 default
parent child Browse files
Show More
@@ -1,134 +1,144 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.7.3";
14 name = "Jinja2-2.7.3";
15 src = fetchurl {
15 src = fetchurl {
16 url = "http://pypi.python.org/packages/source/J/Jinja2/${name}.tar.gz";
16 url = "http://pypi.python.org/packages/source/J/Jinja2/${name}.tar.gz";
17 md5 = "b9dffd2f3b43d673802fe857c8445b1a";
17 md5 = "b9dffd2f3b43d673802fe857c8445b1a";
18 };
18 };
19 propagatedBuildInputs = [ MarkupSafe ];
19 propagatedBuildInputs = [ MarkupSafe ];
20 };
20 };
21
21
22 MarkupSafe = buildPythonPackage rec {
22 MarkupSafe = buildPythonPackage rec {
23 name = "MarkupSafe-0.23";
23 name = "MarkupSafe-0.23";
24 src = fetchurl {
24 src = fetchurl {
25 url = "https://pypi.python.org/packages/source/M/MarkupSafe/${name}.tar.gz";
25 url = "https://pypi.python.org/packages/source/M/MarkupSafe/${name}.tar.gz";
26 md5 = "f5ab3deee4c37cd6a922fb81e730da6e";
26 md5 = "f5ab3deee4c37cd6a922fb81e730da6e";
27 };
27 };
28 };
28 };
29
29
30 Pygments = buildPythonPackage rec {
30 Pygments = buildPythonPackage rec {
31 name = "Pygments-2.0.2";
31 name = "Pygments-2.1.3";
32 doCheck = false;
32 src = fetchurl {
33 src = fetchurl {
33 url = "https://pypi.python.org/packages/source/P/Pygments/${name}.tar.gz";
34 url = "https://pypi.python.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/Pygments-2.1.3.tar.gz";
34 md5 = "238587a1370d62405edabd0794b3ec4a";
35 md5 = "ed3fba2467c8afcda4d317e4ef2c6150";
35 };
36 };
36 };
37 };
37
38
38 alabaster = buildPythonPackage rec {
39 alabaster = buildPythonPackage rec {
39 name = "alabaster-0.7.3";
40 name = "alabaster-0.7.3";
40 src = fetchurl {
41 src = fetchurl {
41 url = "https://pypi.python.org/packages/source/a/alabaster/${name}.tar.gz";
42 url = "https://pypi.python.org/packages/source/a/alabaster/${name}.tar.gz";
42 md5 = "67428d1383fd833f1282fed5deba0898";
43 md5 = "67428d1383fd833f1282fed5deba0898";
43 };
44 };
44 };
45 };
45
46
46 six = buildPythonPackage rec {
47 six = buildPythonPackage rec {
47 name = "six-1.9.0";
48 name = "six-1.9.0";
48 src = fetchurl {
49 src = fetchurl {
49 url = "https://pypi.python.org/packages/source/s/six/${name}.tar.gz";
50 url = "https://pypi.python.org/packages/source/s/six/${name}.tar.gz";
50 md5 = "476881ef4012262dfc8adc645ee786c4";
51 md5 = "476881ef4012262dfc8adc645ee786c4";
51 };
52 };
52 };
53 };
53
54
54 snowballstemmer = buildPythonPackage rec {
55 snowballstemmer = buildPythonPackage rec {
55 name = "snowballstemmer-1.2.0";
56 name = "snowballstemmer-1.2.0";
56 src = fetchurl {
57 src = fetchurl {
57 url = "https://pypi.python.org/packages/source/s/snowballstemmer/${name}.tar.gz";
58 url = "https://pypi.python.org/packages/source/s/snowballstemmer/${name}.tar.gz";
58 md5 = "51f2ef829db8129dd0f2354f0b209970";
59 md5 = "51f2ef829db8129dd0f2354f0b209970";
59 };
60 };
60 };
61 };
61
62
62 pytz = buildPythonPackage rec {
63 pytz = buildPythonPackage rec {
63 name = "pytz-2015.2";
64 name = "pytz-2015.2";
64 src = fetchurl {
65 src = fetchurl {
65 url = "https://pypi.python.org/packages/source/p/pytz/${name}.tar.gz";
66 url = "https://pypi.python.org/packages/source/p/pytz/${name}.tar.gz";
66 md5 = "08440d994cfbbf13d3343362cc3173f7";
67 md5 = "08440d994cfbbf13d3343362cc3173f7";
67 };
68 };
68 };
69 };
69
70
70 babel = buildPythonPackage rec {
71 babel = buildPythonPackage rec {
71 name = "Babel-1.3";
72 name = "Babel-1.3";
72 src = fetchurl {
73 src = fetchurl {
73 url = "https://pypi.python.org/packages/source/B/Babel/${name}.tar.gz";
74 url = "https://pypi.python.org/packages/source/B/Babel/${name}.tar.gz";
74 md5 = "5264ceb02717843cbc9ffce8e6e06bdb";
75 md5 = "5264ceb02717843cbc9ffce8e6e06bdb";
75 };
76 };
76 propagatedBuildInputs = [
77 propagatedBuildInputs = [
77 pytz
78 pytz
78 ];
79 ];
79 };
80 };
80
81
81 Sphinx = buildPythonPackage (rec {
82 imagesize = buildPythonPackage rec {
82 name = "Sphinx-1.3.1";
83 name = "imagesize-0.7.1";
83 src = fetchurl {
84 src = fetchurl {
84 url = "http://pypi.python.org/packages/source/S/Sphinx/${name}.tar.gz";
85 url = "https://pypi.python.org/packages/53/72/6c6f1e787d9cab2cc733cf042f125abec07209a58308831c9f292504e826/${name}.tar.gz";
85 md5 = "8786a194acf9673464c5455b11fd4332";
86 md5 = "976148283286a6ba5f69b0f81aef8052";
87 };
88 };
89
90 Sphinx = buildPythonPackage (rec {
91 name = "Sphinx-1.4.4";
92 src = fetchurl {
93 url = "https://pypi.python.org/packages/20/a2/72f44c84f6c4115e3fef58d36d657ec311d80196eab9fd5ec7bcde76143b/${name}.tar.gz";
94 md5 = "64ce2ec08d37ed56313a98232cbe2aee";
86 };
95 };
87 propagatedBuildInputs = [
96 propagatedBuildInputs = [
88 docutils
97 docutils
89 Jinja2
98 Jinja2
90 Pygments
99 Pygments
91 alabaster
100 alabaster
92 six
101 six
93 snowballstemmer
102 snowballstemmer
94 pytz
103 pytz
95 babel
104 babel
105 imagesize
96
106
97 # TODO: johbo: Had to include it here so that can be imported
107 # TODO: johbo: Had to include it here so that can be imported
98 sphinx_rtd_theme
108 sphinx_rtd_theme
99 ];
109 ];
100 });
110 });
101
111
102 docutils = buildPythonPackage rec {
112 docutils = buildPythonPackage rec {
103 name = "docutils-0.12";
113 name = "docutils-0.12";
104 src = fetchurl {
114 src = fetchurl {
105 url = "https://pypi.python.org/packages/source/d/docutils/${name}.tar.gz";
115 url = "https://pypi.python.org/packages/source/d/docutils/${name}.tar.gz";
106 md5 = "4622263b62c5c771c03502afa3157768";
116 md5 = "4622263b62c5c771c03502afa3157768";
107 };
117 };
108 };
118 };
109
119
110 sphinx_rtd_theme = buildPythonPackage rec {
120 sphinx_rtd_theme = buildPythonPackage rec {
111 name = "sphinx_rtd_theme-0.1.9";
121 name = "sphinx_rtd_theme-0.1.9";
112 src = fetchurl {
122 src = fetchurl {
113 url = "https://pypi.python.org/packages/source/s/sphinx_rtd_theme/${name}.tar.gz";
123 url = "https://pypi.python.org/packages/source/s/sphinx_rtd_theme/${name}.tar.gz";
114 md5 = "86a25c8d47147c872e42dc84cc66f97b";
124 md5 = "86a25c8d47147c872e42dc84cc66f97b";
115 };
125 };
116
126
117 # Note: johbo: Sphinx needs this package and this package needs sphinx,
127 # Note: johbo: Sphinx needs this package and this package needs sphinx,
118 # ignore the requirements file to solve this cycle.
128 # ignore the requirements file to solve this cycle.
119 postPatch = ''
129 postPatch = ''
120 rm requirements.txt
130 rm requirements.txt
121 touch requirements.txt
131 touch requirements.txt
122 '';
132 '';
123
133
124 # TODO: johbo: Tests would require sphinx and this creates recursion issues
134 # TODO: johbo: Tests would require sphinx and this creates recursion issues
125 doCheck = false;
135 doCheck = false;
126 };
136 };
127
137
128 in python.buildEnv.override {
138 in python.buildEnv.override {
129 inherit python;
139 inherit python;
130 extraLibs = [
140 extraLibs = [
131 Sphinx
141 Sphinx
132 sphinx_rtd_theme
142 sphinx_rtd_theme
133 ];
143 ];
134 }
144 }
General Comments 0
You need to be logged in to leave comments. Login now