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