##// END OF EJS Templates
dependencies: small package changes, added license for testpath.
marcink -
r2361:ca2046af default
parent child Browse files
Show More
@@ -1,250 +1,251 b''
1 1 # Overrides for the generated python-packages.nix
2 2 #
3 3 # This function is intended to be used as an extension to the generated file
4 4 # python-packages.nix. The main objective is to add needed dependencies of C
5 5 # libraries and tweak the build instructions where needed.
6 6
7 7 { pkgs, basePythonPackages }:
8 8
9 9 let
10 10 sed = "sed -i";
11 11 localLicenses = {
12 12 repoze = {
13 13 fullName = "Repoze License";
14 14 url = http://www.repoze.org/LICENSE.txt;
15 15 };
16 16 };
17 17
18 18 in
19 19
20 20 self: super: {
21 21
22 22 appenlight-client = super.appenlight-client.override (attrs: {
23 23 meta = {
24 24 license = [ pkgs.lib.licenses.bsdOriginal ];
25 25 };
26 26 });
27 27
28 28 future = super.future.override (attrs: {
29 29 meta = {
30 30 license = [ pkgs.lib.licenses.mit ];
31 31 };
32 32 });
33 33
34 testpath = super.testpath.override (attrs: {
35 meta = {
36 license = [ pkgs.lib.licenses.mit ];
37 };
38 });
39
34 40 gnureadline = super.gnureadline.override (attrs: {
35 41 buildInputs = attrs.buildInputs ++ [
36 42 pkgs.ncurses
37 43 ];
38 44 patchPhase = ''
39 45 substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
40 46 '';
41 47 });
42 48
43 49 gunicorn = super.gunicorn.override (attrs: {
44 50 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
45 51 # johbo: futures is needed as long as we are on Python 2, otherwise
46 52 # gunicorn explodes if used with multiple threads per worker.
47 53 self.futures
48 54 ];
49 55 });
50 56
51 57 nbconvert = super.nbconvert.override (attrs: {
52 58 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
53 59 # marcink: plug in jupyter-client for notebook rendering
54 60 self.jupyter-client
55 61 ];
56 62 });
57 63
58 64 ipython = super.ipython.override (attrs: {
59 65 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
60 66 self.gnureadline
61 67 ];
62 68 });
63 69
64 70 lxml = super.lxml.override (attrs: {
65 71 # johbo: On 16.09 we need this to compile on darwin, otherwise compilation
66 72 # fails on Darwin.
67 73 hardeningDisable = if pkgs.stdenv.isDarwin then [ "format" ] else null;
68 74 buildInputs = with self; [
69 75 pkgs.libxml2
70 76 pkgs.libxslt
71 77 ];
72 78 });
73 79
74 80 MySQL-python = super.MySQL-python.override (attrs: {
75 81 buildInputs = attrs.buildInputs ++ [
76 82 pkgs.openssl
77 83 ];
78 84 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
79 85 pkgs.mysql.lib
80 86 pkgs.zlib
81 87 ];
82 88 });
83 89
84 90 psutil = super.psutil.override (attrs: {
85 91 buildInputs = attrs.buildInputs ++
86 92 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.IOKit;
87 93 });
88 94
89 95 psycopg2 = super.psycopg2.override (attrs: {
90 96 buildInputs = attrs.buildInputs ++
91 97 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.openssl;
92 98 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
93 99 pkgs.postgresql
94 100 ];
95 101 meta = {
96 102 license = pkgs.lib.licenses.lgpl3Plus;
97 103 };
98 104 });
99 105
100 py-gfm = super.py-gfm.override {
101 name = "py-gfm-0.1.3.rhodecode-upstream1";
102 };
103
104 106 pycurl = super.pycurl.override (attrs: {
105 107 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
106 108 pkgs.curl
107 109 pkgs.openssl
108 110 ];
109 111 preConfigure = ''
110 112 substituteInPlace setup.py --replace '--static-libs' '--libs'
111 113 export PYCURL_SSL_LIBRARY=openssl
112 114 '';
113 115 meta = {
114 116 # TODO: It is LGPL and MIT
115 117 license = pkgs.lib.licenses.mit;
116 118 };
117 119 });
118 120
119 121 pyramid = super.pyramid.override (attrs: {
120 122 postFixup = ''
121 123 wrapPythonPrograms
122 124 # TODO: johbo: "wrapPython" adds this magic line which
123 125 # confuses pserve.
124 126 ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped
125 127 '';
126 128 meta = {
127 129 license = localLicenses.repoze;
128 130 };
129 131 });
130 132
131 133 pyramid-debugtoolbar = super.pyramid-debugtoolbar.override (attrs: {
132 134 meta = {
133 135 license = [ pkgs.lib.licenses.bsdOriginal localLicenses.repoze ];
134 136 };
135 137 });
136 138
137 139 pysqlite = super.pysqlite.override (attrs: {
138 140 propagatedBuildInputs = [
139 141 pkgs.sqlite
140 142 ];
141 143 meta = {
142 144 license = [ pkgs.lib.licenses.zlib pkgs.lib.licenses.libpng ];
143 145 };
144 146 });
145 147
146 148 pytest-runner = super.pytest-runner.override (attrs: {
147 149 propagatedBuildInputs = [
148 150 self.setuptools-scm
149 151 ];
150 152 });
151 153
152 154 python-ldap = super.python-ldap.override (attrs: {
153 155 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
154 156 pkgs.cyrus_sasl
155 157 pkgs.openldap
156 158 pkgs.openssl
157 159 ];
158 160 # TODO: johbo: Remove the "or" once we drop 16.03 support.
159 161 NIX_CFLAGS_COMPILE = "-I${pkgs.cyrus_sasl.dev or pkgs.cyrus_sasl}/include/sasl";
160 162 });
161 163
162 164 python-pam = super.python-pam.override (attrs:
163 165 let
164 166 includeLibPam = pkgs.stdenv.isLinux;
165 167 in {
166 168 # TODO: johbo: Move the option up into the default.nix, we should
167 169 # include python-pam only on supported platforms.
168 170 propagatedBuildInputs = attrs.propagatedBuildInputs ++
169 171 pkgs.lib.optional includeLibPam [
170 172 pkgs.pam
171 173 ];
172 174 # TODO: johbo: Check if this can be avoided, or transform into
173 175 # a real patch
174 176 patchPhase = pkgs.lib.optionals includeLibPam ''
175 177 substituteInPlace pam.py \
176 178 --replace 'find_library("pam")' '"${pkgs.pam}/lib/libpam.so.0"'
177 179 '';
178 180 });
179 181
180 182 URLObject = super.URLObject.override (attrs: {
181 183 meta = {
182 184 license = {
183 185 spdxId = "Unlicense";
184 186 fullName = "The Unlicense";
185 187 url = http://unlicense.org/;
186 188 };
187 189 };
188 190 });
189 191
190
191 192 docutils = super.docutils.override (attrs: {
192 193 meta = {
193 194 license = pkgs.lib.licenses.bsd2;
194 195 };
195 196 });
196 197
197 198 colander = super.colander.override (attrs: {
198 199 meta = {
199 200 license = localLicenses.repoze;
200 201 };
201 202 });
202 203
203 204 pyramid-beaker = super.pyramid-beaker.override (attrs: {
204 205 meta = {
205 206 license = localLicenses.repoze;
206 207 };
207 208 });
208 209
209 210 pyramid-mako = super.pyramid-mako.override (attrs: {
210 211 meta = {
211 212 license = localLicenses.repoze;
212 213 };
213 214 });
214 215
215 216 repoze.lru = super.repoze.lru.override (attrs: {
216 217 meta = {
217 218 license = localLicenses.repoze;
218 219 };
219 220 });
220 221
221 222 recaptcha-client = super.recaptcha-client.override (attrs: {
222 223 meta = {
223 224 # TODO: It is MIT/X11
224 225 license = pkgs.lib.licenses.mit;
225 226 };
226 227 });
227 228
228 229 python-editor = super.python-editor.override (attrs: {
229 230 meta = {
230 231 license = pkgs.lib.licenses.asl20;
231 232 };
232 233 });
233 234
234 235 translationstring = super.translationstring.override (attrs: {
235 236 meta = {
236 237 license = localLicenses.repoze;
237 238 };
238 239 });
239 240
240 241 venusian = super.venusian.override (attrs: {
241 242 meta = {
242 243 license = localLicenses.repoze;
243 244 };
244 245 });
245 246
246 247 # Avoid that setuptools is replaced, this leads to trouble
247 248 # with buildPythonPackage.
248 249 setuptools = basePythonPackages.setuptools;
249 250
250 251 }
General Comments 0
You need to be logged in to leave comments. Login now