##// END OF EJS Templates
oss-licenses: Remove outdated comment about psycopg2 licensing.
Martin Bornhold -
r207:1389fa27 default
parent child Browse files
Show More
@@ -1,275 +1,273 b''
1 # Overrides for the generated python-packages.nix
1 # Overrides for the generated python-packages.nix
2 #
2 #
3 # This function is intended to be used as an extension to the generated file
3 # This function is intended to be used as an extension to the generated file
4 # python-packages.nix. The main objective is to add needed dependencies of C
4 # python-packages.nix. The main objective is to add needed dependencies of C
5 # libraries and tweak the build instructions where needed.
5 # libraries and tweak the build instructions where needed.
6
6
7 { pkgs, basePythonPackages }:
7 { pkgs, basePythonPackages }:
8
8
9 let
9 let
10 sed = "sed -i";
10 sed = "sed -i";
11 localLicenses = {
11 localLicenses = {
12 repoze = {
12 repoze = {
13 fullName = "Repoze License";
13 fullName = "Repoze License";
14 url = http://www.repoze.org/LICENSE.txt;
14 url = http://www.repoze.org/LICENSE.txt;
15 };
15 };
16 };
16 };
17 in
17 in
18
18
19 self: super: {
19 self: super: {
20
20
21 appenlight-client = super.appenlight-client.override (attrs: {
21 appenlight-client = super.appenlight-client.override (attrs: {
22 meta = {
22 meta = {
23 license = [ pkgs.lib.licenses.bsdOriginal ];
23 license = [ pkgs.lib.licenses.bsdOriginal ];
24 };
24 };
25 });
25 });
26
26
27 future = super.future.override (attrs: {
27 future = super.future.override (attrs: {
28 meta = {
28 meta = {
29 license = [ pkgs.lib.licenses.mit ];
29 license = [ pkgs.lib.licenses.mit ];
30 };
30 };
31 });
31 });
32
32
33 gnureadline = super.gnureadline.override (attrs: {
33 gnureadline = super.gnureadline.override (attrs: {
34 buildInputs = attrs.buildInputs ++ [
34 buildInputs = attrs.buildInputs ++ [
35 pkgs.ncurses
35 pkgs.ncurses
36 ];
36 ];
37 patchPhase = ''
37 patchPhase = ''
38 substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
38 substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
39 '';
39 '';
40 });
40 });
41
41
42 gunicorn = super.gunicorn.override (attrs: {
42 gunicorn = super.gunicorn.override (attrs: {
43 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
43 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
44 # johbo: futures is needed as long as we are on Python 2, otherwise
44 # johbo: futures is needed as long as we are on Python 2, otherwise
45 # gunicorn explodes if used with multiple threads per worker.
45 # gunicorn explodes if used with multiple threads per worker.
46 self.futures
46 self.futures
47 ];
47 ];
48 });
48 });
49
49
50 ipython = super.ipython.override (attrs: {
50 ipython = super.ipython.override (attrs: {
51 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
51 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
52 self.gnureadline
52 self.gnureadline
53 ];
53 ];
54 });
54 });
55
55
56 kombu = super.kombu.override (attrs: {
56 kombu = super.kombu.override (attrs: {
57 # The current version of kombu needs some patching to work with the
57 # The current version of kombu needs some patching to work with the
58 # other libs. Should be removed once we update celery and kombu.
58 # other libs. Should be removed once we update celery and kombu.
59 patches = [
59 patches = [
60 ./patch-kombu-py-2-7-11.diff
60 ./patch-kombu-py-2-7-11.diff
61 ./patch-kombu-msgpack.diff
61 ./patch-kombu-msgpack.diff
62 ];
62 ];
63 });
63 });
64
64
65 lxml = super.lxml.override (attrs: {
65 lxml = super.lxml.override (attrs: {
66 buildInputs = with self; [
66 buildInputs = with self; [
67 pkgs.libxml2
67 pkgs.libxml2
68 pkgs.libxslt
68 pkgs.libxslt
69 ];
69 ];
70 });
70 });
71
71
72 MySQL-python = super.MySQL-python.override (attrs: {
72 MySQL-python = super.MySQL-python.override (attrs: {
73 buildInputs = attrs.buildInputs ++ [
73 buildInputs = attrs.buildInputs ++ [
74 pkgs.openssl
74 pkgs.openssl
75 ];
75 ];
76 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
76 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
77 pkgs.mysql.lib
77 pkgs.mysql.lib
78 pkgs.zlib
78 pkgs.zlib
79 ];
79 ];
80 });
80 });
81
81
82 psutil = super.psutil.override (attrs: {
82 psutil = super.psutil.override (attrs: {
83 buildInputs = attrs.buildInputs ++
83 buildInputs = attrs.buildInputs ++
84 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.IOKit;
84 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.IOKit;
85 });
85 });
86
86
87 psycopg2 = super.psycopg2.override (attrs: {
87 psycopg2 = super.psycopg2.override (attrs: {
88 buildInputs = attrs.buildInputs ++
88 buildInputs = attrs.buildInputs ++
89 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.openssl;
89 pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.openssl;
90 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
90 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
91 pkgs.postgresql
91 pkgs.postgresql
92 ];
92 ];
93 # TODO:
94 # - https://stackoverflow.com/questions/7751445/can-i-bundle-psycopg2-with-a-closed-source-django-application-using-py2exe
95 meta = {
93 meta = {
96 license = pkgs.lib.licenses.lgpl3Plus;
94 license = pkgs.lib.licenses.lgpl3Plus;
97 };
95 };
98 });
96 });
99
97
100 pycurl = super.pycurl.override (attrs: {
98 pycurl = super.pycurl.override (attrs: {
101 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
99 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
102 pkgs.curl
100 pkgs.curl
103 pkgs.openssl
101 pkgs.openssl
104 ];
102 ];
105 preConfigure = ''
103 preConfigure = ''
106 substituteInPlace setup.py --replace '--static-libs' '--libs'
104 substituteInPlace setup.py --replace '--static-libs' '--libs'
107 export PYCURL_SSL_LIBRARY=openssl
105 export PYCURL_SSL_LIBRARY=openssl
108 '';
106 '';
109 meta = {
107 meta = {
110 # TODO: It is LGPL and MIT
108 # TODO: It is LGPL and MIT
111 license = pkgs.lib.licenses.mit;
109 license = pkgs.lib.licenses.mit;
112 };
110 };
113 });
111 });
114
112
115 Pylons = super.Pylons.override (attrs: {
113 Pylons = super.Pylons.override (attrs: {
116 name = "Pylons-1.0.1-patch1";
114 name = "Pylons-1.0.1-patch1";
117 src = pkgs.fetchgit {
115 src = pkgs.fetchgit {
118 url = "https://code.rhodecode.com/upstream/pylons";
116 url = "https://code.rhodecode.com/upstream/pylons";
119 rev = "707354ee4261b9c10450404fc9852ccea4fd667d";
117 rev = "707354ee4261b9c10450404fc9852ccea4fd667d";
120 sha256 = "b2763274c2780523a335f83a1df65be22ebe4ff413a7bc9e9288d23c1f62032e";
118 sha256 = "b2763274c2780523a335f83a1df65be22ebe4ff413a7bc9e9288d23c1f62032e";
121 };
119 };
122 });
120 });
123
121
124 pyramid = super.pyramid.override (attrs: {
122 pyramid = super.pyramid.override (attrs: {
125 postFixup = ''
123 postFixup = ''
126 wrapPythonPrograms
124 wrapPythonPrograms
127 # TODO: johbo: "wrapPython" adds this magic line which
125 # TODO: johbo: "wrapPython" adds this magic line which
128 # confuses pserve.
126 # confuses pserve.
129 ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped
127 ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped
130 '';
128 '';
131 meta = {
129 meta = {
132 license = localLicenses.repoze;
130 license = localLicenses.repoze;
133 };
131 };
134 });
132 });
135
133
136 pyramid-debugtoolbar = super.pyramid-debugtoolbar.override (attrs: {
134 pyramid-debugtoolbar = super.pyramid-debugtoolbar.override (attrs: {
137 meta = {
135 meta = {
138 license = [ pkgs.lib.licenses.bsdOriginal localLicenses.repoze ];
136 license = [ pkgs.lib.licenses.bsdOriginal localLicenses.repoze ];
139 };
137 };
140 });
138 });
141
139
142 Pyro4 = super.Pyro4.override (attrs: {
140 Pyro4 = super.Pyro4.override (attrs: {
143 # TODO: Was not able to generate this version, needs further
141 # TODO: Was not able to generate this version, needs further
144 # investigation.
142 # investigation.
145 name = "Pyro4-4.35";
143 name = "Pyro4-4.35";
146 src = pkgs.fetchurl {
144 src = pkgs.fetchurl {
147 url = "https://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.35.src.tar.gz";
145 url = "https://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.35.src.tar.gz";
148 md5 = "cbe6cb855f086a0f092ca075005855f3";
146 md5 = "cbe6cb855f086a0f092ca075005855f3";
149 };
147 };
150 });
148 });
151
149
152 pysqlite = super.pysqlite.override (attrs: {
150 pysqlite = super.pysqlite.override (attrs: {
153 propagatedBuildInputs = [
151 propagatedBuildInputs = [
154 pkgs.sqlite
152 pkgs.sqlite
155 ];
153 ];
156 meta = {
154 meta = {
157 license = [ pkgs.lib.licenses.zlib pkgs.lib.licenses.libpng ];
155 license = [ pkgs.lib.licenses.zlib pkgs.lib.licenses.libpng ];
158 };
156 };
159 });
157 });
160
158
161 pytest-runner = super.pytest-runner.override (attrs: {
159 pytest-runner = super.pytest-runner.override (attrs: {
162 propagatedBuildInputs = [
160 propagatedBuildInputs = [
163 self.setuptools-scm
161 self.setuptools-scm
164 ];
162 ];
165 });
163 });
166
164
167 python-ldap = super.python-ldap.override (attrs: {
165 python-ldap = super.python-ldap.override (attrs: {
168 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
166 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
169 pkgs.cyrus_sasl
167 pkgs.cyrus_sasl
170 pkgs.openldap
168 pkgs.openldap
171 pkgs.openssl
169 pkgs.openssl
172 ];
170 ];
173 NIX_CFLAGS_COMPILE = "-I${pkgs.cyrus_sasl}/include/sasl";
171 NIX_CFLAGS_COMPILE = "-I${pkgs.cyrus_sasl}/include/sasl";
174 });
172 });
175
173
176 python-pam = super.python-pam.override (attrs:
174 python-pam = super.python-pam.override (attrs:
177 let
175 let
178 includeLibPam = pkgs.stdenv.isLinux;
176 includeLibPam = pkgs.stdenv.isLinux;
179 in {
177 in {
180 # TODO: johbo: Move the option up into the default.nix, we should
178 # TODO: johbo: Move the option up into the default.nix, we should
181 # include python-pam only on supported platforms.
179 # include python-pam only on supported platforms.
182 propagatedBuildInputs = attrs.propagatedBuildInputs ++
180 propagatedBuildInputs = attrs.propagatedBuildInputs ++
183 pkgs.lib.optional includeLibPam [
181 pkgs.lib.optional includeLibPam [
184 pkgs.pam
182 pkgs.pam
185 ];
183 ];
186 # TODO: johbo: Check if this can be avoided, or transform into
184 # TODO: johbo: Check if this can be avoided, or transform into
187 # a real patch
185 # a real patch
188 patchPhase = pkgs.lib.optionals includeLibPam ''
186 patchPhase = pkgs.lib.optionals includeLibPam ''
189 substituteInPlace pam.py \
187 substituteInPlace pam.py \
190 --replace 'find_library("pam")' '"${pkgs.pam}/lib/libpam.so.0"'
188 --replace 'find_library("pam")' '"${pkgs.pam}/lib/libpam.so.0"'
191 '';
189 '';
192 });
190 });
193
191
194 rhodecode-tools = super.rhodecode-tools.override (attrs: {
192 rhodecode-tools = super.rhodecode-tools.override (attrs: {
195 patches = [
193 patches = [
196 ./patch-rhodecode-tools-setup.diff
194 ./patch-rhodecode-tools-setup.diff
197 ];
195 ];
198 });
196 });
199
197
200 URLObject = super.URLObject.override (attrs: {
198 URLObject = super.URLObject.override (attrs: {
201 meta = {
199 meta = {
202 license = {
200 license = {
203 spdxId = "Unlicense";
201 spdxId = "Unlicense";
204 fullName = "The Unlicense";
202 fullName = "The Unlicense";
205 url = http://unlicense.org/;
203 url = http://unlicense.org/;
206 };
204 };
207 };
205 };
208 });
206 });
209
207
210 amqplib = super.amqplib.override (attrs: {
208 amqplib = super.amqplib.override (attrs: {
211 meta = {
209 meta = {
212 license = pkgs.lib.licenses.lgpl3;
210 license = pkgs.lib.licenses.lgpl3;
213 };
211 };
214 });
212 });
215
213
216 docutils = super.docutils.override (attrs: {
214 docutils = super.docutils.override (attrs: {
217 meta = {
215 meta = {
218 license = pkgs.lib.licenses.bsd2;
216 license = pkgs.lib.licenses.bsd2;
219 };
217 };
220 });
218 });
221
219
222 colander = super.colander.override (attrs: {
220 colander = super.colander.override (attrs: {
223 meta = {
221 meta = {
224 license = localLicenses.repoze;
222 license = localLicenses.repoze;
225 };
223 };
226 });
224 });
227
225
228 pyramid-beaker = super.pyramid-beaker.override (attrs: {
226 pyramid-beaker = super.pyramid-beaker.override (attrs: {
229 meta = {
227 meta = {
230 license = localLicenses.repoze;
228 license = localLicenses.repoze;
231 };
229 };
232 });
230 });
233
231
234 pyramid-mako = super.pyramid-mako.override (attrs: {
232 pyramid-mako = super.pyramid-mako.override (attrs: {
235 meta = {
233 meta = {
236 license = localLicenses.repoze;
234 license = localLicenses.repoze;
237 };
235 };
238 });
236 });
239
237
240 repoze.lru = super.repoze.lru.override (attrs: {
238 repoze.lru = super.repoze.lru.override (attrs: {
241 meta = {
239 meta = {
242 license = localLicenses.repoze;
240 license = localLicenses.repoze;
243 };
241 };
244 });
242 });
245
243
246 recaptcha-client = super.recaptcha-client.override (attrs: {
244 recaptcha-client = super.recaptcha-client.override (attrs: {
247 meta = {
245 meta = {
248 # TODO: It is MIT/X11
246 # TODO: It is MIT/X11
249 license = pkgs.lib.licenses.mit;
247 license = pkgs.lib.licenses.mit;
250 };
248 };
251 });
249 });
252
250
253 python-editor = super.python-editor.override (attrs: {
251 python-editor = super.python-editor.override (attrs: {
254 meta = {
252 meta = {
255 license = pkgs.lib.licenses.asl20;
253 license = pkgs.lib.licenses.asl20;
256 };
254 };
257 });
255 });
258
256
259 translationstring = super.translationstring.override (attrs: {
257 translationstring = super.translationstring.override (attrs: {
260 meta = {
258 meta = {
261 license = localLicenses.repoze;
259 license = localLicenses.repoze;
262 };
260 };
263 });
261 });
264
262
265 venusian = super.venusian.override (attrs: {
263 venusian = super.venusian.override (attrs: {
266 meta = {
264 meta = {
267 license = localLicenses.repoze;
265 license = localLicenses.repoze;
268 };
266 };
269 });
267 });
270
268
271 # Avoid that setuptools is replaced, this leads to trouble
269 # Avoid that setuptools is replaced, this leads to trouble
272 # with buildPythonPackage.
270 # with buildPythonPackage.
273 setuptools = basePythonPackages.setuptools;
271 setuptools = basePythonPackages.setuptools;
274
272
275 }
273 }
General Comments 0
You need to be logged in to leave comments. Login now