Commit | Line | Data |
---|---|---|
a01b6da7 NK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | |
da6dd842 | 3 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
03411993 | 4 | ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr> |
e99f4211 | 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
a480bc41 | 6 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
da6ce3f1 | 7 | ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch> |
e99f4211 | 8 | ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com> |
d95a56c6 | 9 | ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu> |
ad320b20 | 10 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> |
f4de5b3b | 11 | ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org> |
345f0611 | 12 | ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> |
a01b6da7 NK |
13 | ;;; |
14 | ;;; This file is part of GNU Guix. | |
15 | ;;; | |
16 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
17 | ;;; under the terms of the GNU General Public License as published by | |
18 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
19 | ;;; your option) any later version. | |
20 | ;;; | |
21 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
22 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 | ;;; GNU General Public License for more details. | |
25 | ;;; | |
26 | ;;; You should have received a copy of the GNU General Public License | |
27 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
28 | ||
1ffa7090 | 29 | (define-module (gnu packages python) |
011b18c3 | 30 | #:use-module ((guix licenses) |
45203542 | 31 | #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style |
b8050e71 | 32 | gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+ |
feb0d9c3 | 33 | isc psfl public-domain x11-style)) |
bd3fa666 | 34 | #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:) |
3fdc99da | 35 | #:use-module (gnu packages) |
1ffa7090 | 36 | #:use-module (gnu packages compression) |
4ed20663 | 37 | #:use-module (gnu packages databases) |
4ed20663 | 38 | #:use-module (gnu packages fontutils) |
3fdc99da | 39 | #:use-module (gnu packages gdbm) |
4ed20663 AE |
40 | #:use-module (gnu packages gcc) |
41 | #:use-module (gnu packages ghostscript) | |
42 | #:use-module (gnu packages glib) | |
43 | #:use-module (gnu packages gtk) | |
421a80a2 | 44 | #:use-module (gnu packages icu4c) |
c937562e | 45 | #:use-module (gnu packages image) |
4ed20663 | 46 | #:use-module (gnu packages imagemagick) |
b10ab723 | 47 | #:use-module (gnu packages libffi) |
0da98533 | 48 | #:use-module (gnu packages maths) |
4ed20663 | 49 | #:use-module (gnu packages multiprecision) |
45203542 | 50 | #:use-module (gnu packages networking) |
be7134bf | 51 | #:use-module (gnu packages ncurses) |
c9b1b4f9 | 52 | #:use-module (gnu packages pcre) |
4ed20663 | 53 | #:use-module (gnu packages perl) |
b10ab723 | 54 | #:use-module (gnu packages pkg-config) |
4ed20663 | 55 | #:use-module (gnu packages readline) |
c9b1b4f9 | 56 | #:use-module (gnu packages statistics) |
1c65314c FB |
57 | #:use-module (gnu packages texlive) |
58 | #:use-module (gnu packages texinfo) | |
cc2b77df | 59 | #:use-module (gnu packages tls) |
8d12be1e | 60 | #:use-module (gnu packages web) |
ce0614dd | 61 | #:use-module (gnu packages base) |
26b307e2 | 62 | #:use-module (gnu packages xml) |
6fa14469 | 63 | #:use-module (gnu packages xorg) |
4ed20663 | 64 | #:use-module (gnu packages zip) |
a01b6da7 NK |
65 | #:use-module (guix packages) |
66 | #:use-module (guix download) | |
ea5456c8 | 67 | #:use-module (guix git-download) |
11bb85a1 | 68 | #:use-module (guix utils) |
acc26ff1 | 69 | #:use-module (guix build-system gnu) |
898238b9 | 70 | #:use-module (guix build-system python) |
1c65314c FB |
71 | #:use-module (guix build-system trivial) |
72 | #:use-module (srfi srfi-1)) | |
a01b6da7 | 73 | |
b24d1cfc | 74 | (define-public python-2 |
a01b6da7 NK |
75 | (package |
76 | (name "python") | |
ee2b5109 | 77 | (version "2.7.6") |
a01b6da7 NK |
78 | (source |
79 | (origin | |
80 | (method url-fetch) | |
9b43a0ff | 81 | (uri (string-append "https://www.python.org/ftp/python/" |
a01b6da7 | 82 | version "/Python-" version ".tar.xz")) |
b88e1b0a EB |
83 | (patches (list (search-patch "python-libffi-mips-n32-fix.patch") |
84 | (search-patch "python2-sqlite-3.8.4-test-fix.patch"))) | |
32d5c729 | 85 | (patch-flags '("-p0")) |
a01b6da7 NK |
86 | (sha256 |
87 | (base32 | |
ee2b5109 | 88 | "18gnpyh071dxa0rv3silrz92jw9qpblswzwv4gzqcwxzz20qxmhz")))) |
a01b6da7 | 89 | (build-system gnu-build-system) |
3fdc99da | 90 | (arguments |
af807dea AE |
91 | `(#:tests? #f |
92 | ;; 258 tests OK. | |
93 | ;; 103 tests failed: | |
94 | ;; test_bz2 test_distutils test_file test_file2k test_popen2 | |
95 | ;; test_shutil test_signal test_site test_slice test_smtplib | |
96 | ;; test_smtpnet test_socket test_socketserver test_softspace | |
97 | ;; test_sort test_sqlite test_ssl test_startfile test_str | |
98 | ;; test_strftime test_string test_stringprep test_strop test_strptime | |
99 | ;; test_strtod test_struct test_structmembers test_structseq | |
100 | ;; test_subprocess test_sunaudiodev test_sundry test_symtable | |
101 | ;; test_syntax test_sys test_sys_setprofile test_sys_settrace | |
102 | ;; test_sysconfig test_tarfile test_tcl test_telnetlib test_tempfile | |
103 | ;; test_textwrap test_thread test_threaded_import | |
104 | ;; test_threadedtempfile test_threading test_threading_local | |
105 | ;; test_threadsignals test_time test_timeout test_tk test_tokenize | |
106 | ;; test_tools test_trace test_traceback test_transformer | |
107 | ;; test_ttk_guionly test_ttk_textonly test_tuple test_typechecks | |
108 | ;; test_ucn test_unary test_undocumented_details test_unicode | |
109 | ;; test_unicode_file test_unicodedata test_univnewlines | |
110 | ;; test_univnewlines2k test_unpack test_urllib test_urllib2 | |
111 | ;; test_urllib2_localnet test_urllib2net test_urllibnet test_urlparse | |
112 | ;; test_userdict test_userlist test_userstring test_uu test_uuid | |
113 | ;; test_wait3 test_wait4 test_warnings test_wave test_weakref | |
114 | ;; test_weakset test_whichdb test_winreg test_winsound test_with | |
115 | ;; test_wsgiref test_xdrlib test_xml_etree test_xml_etree_c | |
116 | ;; test_xmllib test_xmlrpc test_xpickle test_xrange test_zipfile | |
117 | ;; test_zipfile64 test_zipimport test_zipimport_support test_zlib | |
118 | ;; 31 tests skipped: | |
119 | ;; test_aepack test_al test_applesingle test_ascii_formatd test_bsddb | |
120 | ;; test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn | |
121 | ;; test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr | |
122 | ;; test_codecmaps_tw test_ctypes test_curses test_dl test_gdb test_gl | |
123 | ;; test_imageop test_imgfile test_ioctl test_kqueue | |
124 | ;; test_linuxaudiodev test_macos test_macostools test_msilib | |
125 | ;; test_multiprocessing test_ossaudiodev test_pep277 | |
126 | ;; test_scriptpackages | |
127 | ;; 7 skips unexpected on linux2: | |
128 | ;; test_ascii_formatd test_bsddb test_bsddb3 test_ctypes test_gdb | |
129 | ;; test_ioctl test_multiprocessing | |
130 | ;; One of the typical errors: | |
131 | ;; test_unicode | |
132 | ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No such file or directory | |
133 | #:test-target "test" | |
3fdc99da CR |
134 | #:configure-flags |
135 | (let ((bz2 (assoc-ref %build-inputs "bzip2")) | |
136 | (gdbm (assoc-ref %build-inputs "gdbm")) | |
b10ab723 | 137 | (libffi (assoc-ref %build-inputs "libffi")) |
b88e1b0a | 138 | (sqlite (assoc-ref %build-inputs "sqlite")) |
3fdc99da CR |
139 | (openssl (assoc-ref %build-inputs "openssl")) |
140 | (readline (assoc-ref %build-inputs "readline")) | |
1f434457 MW |
141 | (zlib (assoc-ref %build-inputs "zlib")) |
142 | (out (assoc-ref %outputs "out"))) | |
fd982732 | 143 | (list "--enable-shared" ; allow embedding |
b10ab723 | 144 | "--with-system-ffi" ; build ctypes |
fd982732 | 145 | (string-append "CPPFLAGS=" |
3fdc99da CR |
146 | "-I" bz2 "/include " |
147 | "-I" gdbm "/include " | |
b88e1b0a | 148 | "-I" sqlite "/include " |
3fdc99da CR |
149 | "-I" openssl "/include " |
150 | "-I" readline "/include " | |
151 | "-I" zlib "/include") | |
152 | (string-append "LDFLAGS=" | |
153 | "-L" bz2 "/lib " | |
154 | "-L" gdbm "/lib " | |
b10ab723 | 155 | "-L" libffi "/lib " |
b88e1b0a | 156 | "-L" sqlite "/lib " |
3fdc99da CR |
157 | "-L" openssl "/lib " |
158 | "-L" readline "/lib " | |
1f434457 MW |
159 | "-L" zlib "/lib " |
160 | "-Wl,-rpath=" out "/lib"))) | |
fd982732 | 161 | |
46472ecd MW |
162 | #:modules ((ice-9 ftw) |
163 | ,@%gnu-build-system-modules) | |
fd982732 | 164 | #:phases |
46472ecd MW |
165 | (modify-phases %standard-phases |
166 | (add-before | |
167 | 'configure 'patch-lib-shells | |
168 | (lambda _ | |
169 | ;; Filter for existing files, since some may not exist in all | |
170 | ;; versions of python that are built with this recipe. | |
171 | (substitute* (filter file-exists? | |
172 | '("Lib/subprocess.py" | |
173 | "Lib/popen2.py" | |
174 | "Lib/distutils/tests/test_spawn.py" | |
175 | "Lib/test/test_subprocess.py")) | |
176 | (("/bin/sh") (which "sh"))) | |
177 | #t)) | |
178 | (add-before | |
179 | 'check 'pre-check | |
180 | (lambda _ | |
181 | ;; 'Lib/test/test_site.py' needs a valid $HOME | |
182 | (setenv "HOME" (getcwd)) | |
183 | #t)) | |
184 | (add-after | |
185 | 'unpack 'set-source-file-times-to-1980 | |
186 | ;; XXX One of the tests uses a ZIP library to pack up some of the | |
187 | ;; source tree, and fails with "ZIP does not support timestamps | |
188 | ;; before 1980". Work around this by setting the file times in the | |
189 | ;; source tree to sometime in early 1980. | |
190 | (lambda _ | |
191 | (let ((circa-1980 (* 10 366 24 60 60))) | |
192 | (ftw "." (lambda (file stat flag) | |
193 | (utime file circa-1980 circa-1980) | |
194 | #t)) | |
195 | #t)))))) | |
a01b6da7 | 196 | (inputs |
3fdc99da CR |
197 | `(("bzip2" ,bzip2) |
198 | ("gdbm" ,gdbm) | |
b10ab723 | 199 | ("libffi" ,libffi) ; for ctypes |
b88e1b0a | 200 | ("sqlite" ,sqlite) ; for sqlite extension |
a01b6da7 | 201 | ("openssl" ,openssl) |
3fdc99da | 202 | ("readline" ,readline) |
1f434457 | 203 | ("zlib" ,zlib))) |
b10ab723 CR |
204 | (native-inputs |
205 | `(("pkg-config" ,pkg-config))) | |
9be8d7c8 LC |
206 | (native-search-paths |
207 | (list (search-path-specification | |
208 | (variable "PYTHONPATH") | |
af070955 | 209 | (files '("lib/python2.7/site-packages"))))) |
a01b6da7 NK |
210 | (home-page "http://python.org") |
211 | (synopsis | |
35b9e423 | 212 | "High-level, dynamically-typed programming language") |
a01b6da7 NK |
213 | (description |
214 | "Python is a remarkably powerful dynamic programming language that | |
215 | is used in a wide variety of application domains. Some of its key | |
216 | distinguishing features include: clear, readable syntax; strong | |
217 | introspection capabilities; intuitive object orientation; natural | |
218 | expression of procedural code; full modularity, supporting hierarchical | |
219 | packages; exception-based error handling; and very high level dynamic | |
220 | data types.") | |
221 | (license psfl))) | |
acc26ff1 | 222 | |
b24d1cfc AE |
223 | (define-public python |
224 | (package (inherit python-2) | |
08c04509 | 225 | (version "3.4.3") |
717003e3 LC |
226 | (source (origin |
227 | (method url-fetch) | |
228 | (uri (string-append "https://www.python.org/ftp/python/" | |
229 | version "/Python-" version ".tar.xz")) | |
4c50e5ab MW |
230 | (patches (list (search-patch "python-fix-tests.patch") |
231 | ;; XXX Try removing this patch for python > 3.4.3 | |
232 | (search-patch "python-disable-ssl-test.patch"))) | |
717003e3 LC |
233 | (patch-flags '("-p0")) |
234 | (sha256 | |
235 | (base32 | |
08c04509 | 236 | "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm")))) |
1f434457 MW |
237 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
238 | ((#:tests? _) #t))) | |
1aebc0cb AE |
239 | (native-search-paths |
240 | (list (search-path-specification | |
241 | (variable "PYTHONPATH") | |
0e05d01e SB |
242 | (files (list (string-append "lib/python" |
243 | (version-major+minor version) | |
244 | "/site-packages")))))))) | |
f26a77ff | 245 | |
898238b9 AE |
246 | (define-public python-wrapper |
247 | (package (inherit python) | |
248 | (name "python-wrapper") | |
249 | (source #f) | |
250 | (build-system trivial-build-system) | |
3c0f2329 | 251 | (propagated-inputs `(("python" ,python))) |
898238b9 AE |
252 | (arguments |
253 | `(#:modules ((guix build utils)) | |
254 | #:builder | |
255 | (begin | |
256 | (use-modules (guix build utils)) | |
257 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) | |
258 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) | |
259 | (mkdir-p bin) | |
260 | (for-each | |
261 | (lambda (old new) | |
262 | (symlink (string-append python old) | |
263 | (string-append bin "/" new))) | |
264 | `("python3", "pydoc3", "idle3") | |
265 | `("python", "pydoc", "idle")))))) | |
266 | (description (string-append (package-description python) | |
267 | "\n\nThis wrapper package provides symbolic links to the python binaries | |
268 | without version suffix.")))) | |
269 | ||
aaf625b8 RW |
270 | (define-public python-psutil |
271 | (package | |
272 | (name "python-psutil") | |
273 | (version "3.0.1") | |
274 | (source | |
275 | (origin | |
276 | (method url-fetch) | |
277 | (uri (string-append | |
278 | "https://pypi.python.org/packages/source/p/psutil/psutil-" | |
279 | version ".tar.gz")) | |
280 | (sha256 | |
281 | (base32 | |
282 | "00c8h1mzqysih99z8pnbmdv117d2naldf11yjy50dhykxsf3n89z")))) | |
283 | (build-system python-build-system) | |
284 | (native-inputs | |
285 | `(("python-setuptools" ,python-setuptools))) | |
286 | (home-page "https://pypi.python.org/pypi/psutil/") | |
287 | (synopsis "Library for retrieving information on running processes") | |
288 | (description | |
289 | "psutil (Python system and process utilities) is a library for retrieving | |
290 | information on running processes and system utilization (CPU, memory, disks, | |
291 | network) in Python. It is useful mainly for system monitoring, profiling and | |
292 | limiting process resources and management of running processes. It implements | |
293 | many functionalities offered by command line tools such as: ps, top, lsof, | |
294 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, | |
295 | pidof, tty, taskset, pmap.") | |
296 | (license bsd-3))) | |
297 | ||
298 | (define-public python2-psutil | |
299 | (package-with-python2 python-psutil)) | |
898238b9 | 300 | |
feb0d9c3 ED |
301 | (define-public python-py-bcrypt |
302 | (package | |
303 | (name "python-py-bcrypt") | |
304 | (version "0.4") | |
305 | (source | |
306 | (origin | |
307 | (method url-fetch) | |
308 | (uri (string-append | |
309 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" | |
310 | version | |
311 | ".tar.gz")) | |
312 | (sha256 | |
313 | (base32 | |
314 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) | |
315 | (build-system python-build-system) | |
316 | (native-inputs | |
317 | `(("python-setuptools" ,python-setuptools))) | |
318 | (home-page "https://code.google.com/p/py-bcrypt") | |
319 | (synopsis | |
320 | "Bcrypt password hashing and key derivation") | |
321 | (description | |
322 | "A python wrapper of OpenBSD's Blowfish password hashing code. This | |
323 | system hashes passwords using a version of Bruce Schneier's Blowfish block | |
324 | cipher with modifications designed to raise the cost of off-line password | |
325 | cracking and frustrate fast hardware implementation. The computation cost of | |
326 | the algorithm is parametised, so it can be increased as computers get faster. | |
327 | The intent is to make a compromise of a password database less likely to | |
328 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using | |
329 | John the Ripper).") | |
330 | ;; "sha2.c" is under BSD-3; | |
331 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; | |
332 | ;; the rest is under ISC. | |
333 | (license (list isc bsd-3 bsd-4)))) | |
334 | ||
335 | (define-public python2-py-bcrypt | |
336 | (package-with-python2 python-py-bcrypt)) | |
337 | ||
338 | ||
429fdea1 ED |
339 | (define-public python-paramiko |
340 | (package | |
341 | (name "python-paramiko") | |
342 | (version "1.15.2") | |
343 | (source | |
344 | (origin | |
345 | (method url-fetch) | |
346 | (uri (string-append | |
347 | "https://pypi.python.org/packages/source/p/paramiko/paramiko-" | |
348 | version | |
349 | ".tar.gz")) | |
350 | (sha256 | |
351 | (base32 | |
352 | "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg")))) | |
353 | (build-system python-build-system) | |
354 | (native-inputs | |
355 | `(("python-setuptools" ,python-setuptools))) | |
356 | (inputs | |
357 | `(("python-ecdsa" ,python-ecdsa) | |
358 | ("python-pycrypto" ,python-pycrypto))) | |
359 | (home-page "http://www.paramiko.org/") | |
360 | (synopsis "SSHv2 protocol library") | |
361 | (description "Paramiko is a python implementation of the SSHv2 protocol, | |
362 | providing both client and server functionality. While it leverages a Python C | |
363 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure | |
364 | Python interface around SSH networking concepts.") | |
365 | (license lgpl2.1+))) | |
366 | ||
367 | (define-public python2-paramiko | |
368 | (package-with-python2 python-paramiko)) | |
369 | ||
370 | ||
de73dbf6 ED |
371 | (define-public python-httplib2 |
372 | (package | |
373 | (name "python-httplib2") | |
374 | (version "0.9.1") | |
375 | (source | |
376 | (origin | |
377 | (method url-fetch) | |
378 | (uri (string-append | |
379 | "https://pypi.python.org/packages/source/h/httplib2/httplib2-" | |
380 | version | |
381 | ".tar.gz")) | |
382 | (sha256 | |
383 | (base32 | |
384 | "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw")))) | |
385 | (build-system python-build-system) | |
386 | (native-inputs | |
387 | `(("python-setuptools" ,python-setuptools))) | |
388 | (home-page | |
389 | "https://github.com/jcgregorio/httplib2") | |
390 | (synopsis "Comprehensive HTTP client library") | |
391 | (description | |
392 | "A comprehensive HTTP client library supporting many features left out of | |
393 | other HTTP libraries.") | |
394 | (license license:expat))) | |
395 | ||
396 | (define-public python2-httplib2 | |
397 | (package-with-python2 python-httplib2)) | |
398 | ||
67039875 ED |
399 | (define-public python-ecdsa |
400 | (package | |
401 | (name "python-ecdsa") | |
402 | (version "0.13") | |
403 | (source | |
404 | (origin | |
405 | (method url-fetch) | |
406 | (uri (string-append | |
407 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" | |
408 | version | |
409 | ".tar.gz")) | |
410 | (sha256 | |
411 | (base32 | |
412 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) | |
413 | (build-system python-build-system) | |
414 | (native-inputs | |
415 | `(("python-setuptools" ,python-setuptools))) | |
416 | (inputs | |
417 | `(("openssl" ,openssl))) | |
418 | (home-page | |
419 | "http://github.com/warner/python-ecdsa") | |
420 | (synopsis | |
421 | "ECDSA cryptographic signature library (pure python)") | |
422 | (description | |
423 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic | |
424 | Curve Digital Signature Algorithm), implemented purely in Python. With this | |
425 | library, you can quickly create keypairs (signing key and verifying key), sign | |
426 | messages, and verify the signatures. The keys and signatures are very short, | |
427 | making them easy to handle and incorporate into other protocols.") | |
428 | (license license:expat))) | |
429 | ||
430 | (define-public python2-ecdsa | |
431 | (package-with-python2 python-ecdsa)) | |
432 | ||
52323f32 ED |
433 | (define-public python-ccm |
434 | (package | |
435 | (name "python-ccm") | |
436 | (version "2.0.4.1") | |
437 | (source | |
438 | (origin | |
439 | (method url-fetch) | |
440 | (uri (string-append | |
441 | "https://pypi.python.org/packages/source/c/ccm/ccm-" | |
442 | version | |
443 | ".tar.gz")) | |
444 | (sha256 | |
445 | (base32 | |
446 | "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9")))) | |
447 | (build-system python-build-system) | |
448 | (native-inputs | |
449 | `(("python-setuptools" ,python-setuptools))) | |
450 | (inputs | |
451 | `(("python-pyyaml" ,python-pyyaml) | |
452 | ("python-six" ,python-six))) | |
453 | (home-page "https://github.com/pcmanus/ccm") | |
454 | (synopsis "Cassandra Cluster Manager") | |
455 | (description "A script/library to create, launch and remove an Apache | |
456 | Cassandra cluster on localhost.") | |
457 | (license asl2.0))) | |
458 | ||
459 | (define-public python2-ccm | |
460 | (package-with-python2 python-ccm)) | |
461 | ||
89114f39 | 462 | (define-public python-pytz |
acc26ff1 | 463 | (package |
89114f39 | 464 | (name "python-pytz") |
acc26ff1 CR |
465 | (version "2013b") |
466 | (source | |
467 | (origin | |
468 | (method url-fetch) | |
469 | (uri (string-append "https://launchpad.net/pytz/main/" version | |
470 | "/+download/pytz-" version ".tar.bz2")) | |
471 | (sha256 | |
472 | (base32 | |
473 | "19giwgfcrg0nr1gdv49qnmf2jb2ilkcfc7qyqvfpz4dp0p64ksv5")))) | |
474 | (build-system python-build-system) | |
8498b8cf | 475 | (arguments `(#:tests? #f)) ; no test target |
acc26ff1 | 476 | (home-page "https://launchpad.net/pytz") |
9e771e3b | 477 | (synopsis "Python timezone library") |
acc26ff1 CR |
478 | (description |
479 | "This library allows accurate and cross platform timezone calculations | |
480 | using Python 2.4 or higher and provides access to the Olson timezone database.") | |
481 | (license x11))) | |
5ace6e2f | 482 | |
89114f39 | 483 | (define-public python2-pytz |
11bb85a1 | 484 | (package-with-python2 python-pytz)) |
89114f39 | 485 | |
fc50e9c6 | 486 | |
89114f39 | 487 | (define-public python-babel |
5ace6e2f | 488 | (package |
89114f39 | 489 | (name "python-babel") |
e1804763 | 490 | (version "1.3") |
5ace6e2f CR |
491 | (source |
492 | (origin | |
493 | (method url-fetch) | |
e1804763 | 494 | (uri (string-append "https://pypi.python.org/packages/source/B/Babel/Babel-" |
5ace6e2f CR |
495 | version ".tar.gz")) |
496 | (sha256 | |
497 | (base32 | |
e1804763 | 498 | "0bnin777lc53nxd1hp3apq410jj5wx92n08h7h4izpl4f4sx00lz")))) |
5ace6e2f CR |
499 | (build-system python-build-system) |
500 | (inputs | |
e1804763 AE |
501 | `(("python-pytz" ,python-pytz) |
502 | ("python-setuptools" ,python-setuptools))) | |
8498b8cf | 503 | (arguments `(#:tests? #f)) ; no test target |
e1804763 | 504 | (home-page "http://babel.pocoo.org/") |
5ace6e2f CR |
505 | (synopsis |
506 | "Tools for internationalizing Python applications") | |
507 | (description | |
508 | "Babel is composed of two major parts: | |
509 | - tools to build and work with gettext message catalogs | |
510 | - a Python interface to the CLDR (Common Locale Data Repository), providing | |
511 | access to various locale display names, localized number and date formatting, | |
512 | etc. ") | |
513 | (license bsd-3))) | |
89114f39 AE |
514 | |
515 | (define-public python2-babel | |
11bb85a1 | 516 | (package-with-python2 python-babel)) |
73adf220 | 517 | |
ed377cc6 RW |
518 | (define-public python2-backport-ssl-match-hostname |
519 | (package | |
520 | (name "python2-backport-ssl-match-hostname") | |
521 | (version "3.4.0.2") | |
522 | (source | |
523 | (origin | |
524 | (method url-fetch) | |
525 | (uri (string-append | |
526 | "https://pypi.python.org/packages/source/b/" | |
527 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" | |
528 | version ".tar.gz")) | |
529 | (sha256 | |
530 | (base32 | |
531 | "1bnn47ipvhy49n0m50v27lp4xj6sqdkdw676ypd7pawsn1zhwh87")))) | |
532 | (build-system python-build-system) | |
533 | (arguments `(#:python ,python-2)) | |
534 | (inputs | |
535 | `(("python2-setuptools" ,python2-setuptools))) | |
536 | (home-page "https://pypi.python.org/pypi/backports.ssl_match_hostname") | |
537 | (synopsis "Backport of ssl.match_hostname() function from Python 3.4") | |
538 | (description | |
539 | "This backport brings the ssl.match_hostname() function to users of | |
540 | earlier versions of Python. The function checks the hostname in the | |
541 | certificate returned by the server to which a connection has been established, | |
542 | and verifies that it matches the intended target hostname.") | |
543 | (license psfl))) | |
544 | ||
ef5cbf9b RW |
545 | (define-public python-h5py |
546 | (package | |
547 | (name "python-h5py") | |
548 | (version "2.4.0") | |
549 | (source | |
550 | (origin | |
551 | (method url-fetch) | |
552 | (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-" | |
553 | version ".tar.gz")) | |
554 | (sha256 | |
555 | (base32 | |
556 | "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) | |
557 | (build-system python-build-system) | |
558 | (inputs | |
559 | `(("python-cython" ,python-cython) | |
560 | ("python-numpy" ,python-numpy) | |
561 | ("hdf5" ,hdf5))) | |
562 | (native-inputs | |
563 | `(("python-setuptools" ,python-setuptools))) | |
564 | (arguments `(#:tests? #f)) ; no test target | |
565 | (home-page "http://www.h5py.org/") | |
566 | (synopsis "Read and write HDF5 files from Python") | |
567 | (description | |
568 | "The h5py package provides both a high- and low-level interface to the | |
569 | HDF5 library from Python. The low-level interface is intended to be a | |
570 | complete wrapping of the HDF5 API, while the high-level component supports | |
571 | access to HDF5 files, datasets and groups using established Python and NumPy | |
572 | concepts.") | |
573 | (license bsd-3))) | |
574 | ||
575 | (define-public python2-h5py | |
576 | (let ((h5py (package-with-python2 python-h5py))) | |
577 | (package (inherit h5py) | |
578 | (inputs | |
579 | `(("python2-numpy" ,python2-numpy) | |
580 | ,@(alist-delete | |
581 | "python-numpy" | |
582 | (package-inputs h5py))))))) | |
583 | ||
c1448c69 EB |
584 | (define-public python-lockfile |
585 | (package | |
586 | (name "python-lockfile") | |
587 | (version "0.9.1") | |
588 | (source | |
589 | (origin | |
590 | (method url-fetch) | |
591 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" | |
592 | "lockfile-" version ".tar.gz")) | |
593 | (sha256 | |
594 | (base32 | |
595 | "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3")))) | |
596 | (build-system python-build-system) | |
597 | (arguments '(#:test-target "check")) | |
598 | (home-page "http://code.google.com/p/pylockfile/") | |
599 | (synopsis "Platform-independent file locking module") | |
600 | (description | |
601 | "The lockfile package exports a LockFile class which provides a simple | |
602 | API for locking files.") | |
bd3fa666 | 603 | (license license:expat))) |
c1448c69 EB |
604 | |
605 | (define-public python2-lockfile | |
606 | (package-with-python2 python-lockfile)) | |
607 | ||
5a1a4bf6 EB |
608 | (define-public python-mock |
609 | (package | |
610 | (name "python-mock") | |
611 | (version "1.0.1") | |
612 | (source | |
613 | (origin | |
614 | (method url-fetch) | |
615 | (uri (string-append "https://pypi.python.org/packages/source/m/mock/" | |
616 | "mock-" version ".tar.gz")) | |
617 | (sha256 | |
618 | (base32 | |
619 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) | |
620 | (build-system python-build-system) | |
621 | (arguments '(#:test-target "check")) | |
07af3e5e | 622 | (home-page "http://code.google.com/p/mock/") |
9e771e3b | 623 | (synopsis "Python mocking and patching library for testing") |
5a1a4bf6 EB |
624 | (description |
625 | "Mock is a library for testing in Python. It allows you to replace parts | |
626 | of your system under test with mock objects and make assertions about how they | |
627 | have been used.") | |
bd3fa666 | 628 | (license license:expat))) |
5a1a4bf6 EB |
629 | |
630 | (define-public python2-mock | |
631 | (package-with-python2 python-mock)) | |
632 | ||
fc50e9c6 | 633 | |
73adf220 AE |
634 | (define-public python-setuptools |
635 | (package | |
636 | (name "python-setuptools") | |
d3d656c5 | 637 | (version "12.1") |
73adf220 AE |
638 | (source |
639 | (origin | |
640 | (method url-fetch) | |
641 | (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-" | |
642 | version ".tar.gz")) | |
643 | (sha256 | |
644 | (base32 | |
d3d656c5 | 645 | "04bfk7si1pwj3b5k2b1x9b1zkiclybmzpw6alrs5bciri56lg9zs")))) |
73adf220 | 646 | (build-system python-build-system) |
d3d656c5 AE |
647 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
648 | ;; One could bootstrap with an internal untested setuptools. | |
73adf220 | 649 | (arguments |
824af8ca | 650 | `(#:tests? #f)) |
73adf220 AE |
651 | (home-page "https://pypi.python.org/pypi/setuptools") |
652 | (synopsis | |
653 | "Library designed to facilitate packaging Python projects") | |
654 | (description | |
655 | "Setuptools is a fully-featured, stable library designed to facilitate | |
656 | packaging Python projects, where packaging includes: | |
657 | Python package and module definitions, | |
658 | distribution package metadata, | |
659 | test hooks, | |
660 | project installation, | |
661 | platform-specific details, | |
662 | Python 3 support.") | |
663 | (license psfl))) | |
664 | ||
665 | (define-public python2-setuptools | |
666 | (package-with-python2 python-setuptools)) | |
fc50e9c6 AE |
667 | |
668 | ||
cafc3f5a EB |
669 | (define-public python-pycrypto |
670 | (package | |
671 | (name "python-pycrypto") | |
672 | (version "2.6.1") | |
673 | (source | |
674 | (origin | |
675 | (method url-fetch) | |
676 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
677 | "pycrypto/pycrypto-" version ".tar.gz")) | |
678 | (sha256 | |
679 | (base32 | |
680 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) | |
681 | (build-system python-build-system) | |
682 | (native-inputs | |
683 | `(("python-setuptools" ,python-setuptools))) | |
684 | (inputs | |
685 | `(("python" ,python) | |
686 | ("gmp" ,gmp))) | |
687 | (arguments | |
688 | `(#:phases | |
689 | (alist-cons-before | |
690 | 'build 'set-build-env | |
691 | ;; pycrypto runs an autoconf configure script behind the scenes | |
692 | (lambda _ | |
693 | (setenv "CONFIG_SHELL" (which "bash"))) | |
694 | %standard-phases))) | |
695 | (home-page "http://www.pycrypto.org/") | |
696 | (synopsis "Cryptographic modules for Python") | |
697 | (description | |
698 | "Pycrypto is a collection of both secure hash functions (such as SHA256 | |
699 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, | |
35b9e423 | 700 | etc.). The package is structured to make adding new modules easy.") |
cafc3f5a EB |
701 | (license public-domain))) |
702 | ||
345f0611 ED |
703 | (define-public python2-pycrypto |
704 | (package-with-python2 python-pycrypto)) | |
705 | ||
cafc3f5a EB |
706 | (define-public python-keyring |
707 | (package | |
708 | (name "python-keyring") | |
709 | (version "3.8") | |
710 | (source | |
711 | (origin | |
712 | (method url-fetch) | |
713 | (uri (string-append "https://pypi.python.org/packages/source/k/" | |
714 | "keyring/keyring-" version ".zip")) | |
715 | (sha256 | |
716 | (base32 | |
717 | "1vxazfbcwggyfyramh55shkxs08skhpqrkm6lrrjnygnm8c1l2zg")))) | |
718 | (build-system python-build-system) | |
719 | (native-inputs | |
720 | `(("unzip" ,unzip) | |
721 | ("python-setuptools" ,python-setuptools) | |
722 | ("python-mock" ,python-mock))) | |
723 | (inputs | |
724 | `(("python-pycrypto" ,python-pycrypto))) | |
725 | (arguments | |
726 | `(#:tests? #f ;TODO: tests require pytest | |
727 | #:phases | |
728 | (alist-replace | |
729 | 'unpack | |
730 | (lambda _ | |
731 | (let ((unzip (string-append (assoc-ref %build-inputs "unzip") | |
732 | "/bin/unzip")) | |
733 | (source (assoc-ref %build-inputs "source"))) | |
734 | (and (zero? (system* unzip source)) | |
735 | (chdir (string-append "keyring-" ,version))))) | |
736 | %standard-phases))) | |
737 | (home-page "http://bitbucket.org/kang/python-keyring-lib") | |
738 | (synopsis "Store and access your passwords safely") | |
739 | (description | |
740 | "The Python keyring lib provides a easy way to access the system keyring | |
35b9e423 | 741 | service from python. It can be used in any application that needs safe |
cafc3f5a EB |
742 | password storage.") |
743 | ;; "MIT" and PSF dual license | |
744 | (license x11))) | |
745 | ||
a480bc41 EB |
746 | (define-public python-six |
747 | (package | |
748 | (name "python-six") | |
749 | (version "1.7.2") | |
750 | (source | |
751 | (origin | |
752 | (method url-fetch) | |
753 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
754 | "six/six-" version ".tar.gz")) | |
755 | (sha256 | |
756 | (base32 | |
757 | "164rns26aqfqx2hwi0qq3scl50s69japn0fvgvrjsbyg7r1mxf67")))) | |
758 | (build-system python-build-system) | |
759 | (inputs | |
760 | `(("python-setuptools" ,python-setuptools))) | |
761 | (home-page "http://pypi.python.org/pypi/six/") | |
762 | (synopsis "Python 2 and 3 compatibility utilities") | |
763 | (description | |
35b9e423 | 764 | "Six is a Python 2 and 3 compatibility library. It provides utility |
a480bc41 EB |
765 | functions for smoothing over the differences between the Python versions with |
766 | the goal of writing Python code that is compatible on both Python versions. | |
35b9e423 | 767 | Six supports every Python version since 2.5. It is contained in only one |
a480bc41 EB |
768 | Python file, so it can be easily copied into your project.") |
769 | (license x11))) | |
770 | ||
0c20025c AE |
771 | (define-public python2-six |
772 | (package-with-python2 python-six)) | |
773 | ||
cafc3f5a EB |
774 | (define-public python-dateutil-2 |
775 | (package | |
776 | (name "python-dateutil") | |
777 | (version "2.2") | |
778 | (source | |
779 | (origin | |
780 | (method url-fetch) | |
781 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
782 | name "/" name "-" version ".tar.gz")) | |
783 | (sha256 | |
784 | (base32 | |
785 | "0s74ad6r789810s10dxgvaf48ni6adac2icrdad34zxygqq6bj7f")))) | |
786 | (build-system python-build-system) | |
787 | (inputs | |
788 | `(("python-setuptools" ,python-setuptools) | |
789 | ("python-six" ,python-six))) | |
790 | (home-page "http://labix.org/python-dateutil") | |
791 | (synopsis "Extensions to the standard datetime module") | |
792 | (description | |
793 | "The dateutil module provides powerful extensions to the standard | |
794 | datetime module, available in Python 2.3+.") | |
795 | (license bsd-3))) | |
796 | ||
797 | (define-public python2-dateutil-2 | |
798 | (package-with-python2 python-dateutil-2)) | |
799 | ||
fc50e9c6 AE |
800 | (define-public python-dateutil |
801 | (package | |
802 | (name "python-dateutil") | |
803 | (version "1.5") ; last version for python < 3 | |
804 | (source | |
805 | (origin | |
806 | (method url-fetch) | |
cafc3f5a EB |
807 | (uri (string-append "http://labix.org/download/python-dateutil/" |
808 | "python-dateutil-" version ".tar.gz")) | |
fc50e9c6 AE |
809 | (sha256 |
810 | (base32 | |
811 | "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0")))) | |
812 | (build-system python-build-system) | |
813 | (inputs | |
814 | `(("python-setuptools" ,python-setuptools))) | |
815 | (home-page "http://labix.org/python-dateutil") | |
cafc3f5a | 816 | (synopsis "Extensions to the standard datetime module") |
fc50e9c6 AE |
817 | (description |
818 | "The dateutil module provides powerful extensions to the standard | |
819 | datetime module, available in Python 2.3+.") | |
820 | (license psfl))) | |
821 | ||
822 | (define-public python2-dateutil | |
823 | (package-with-python2 python-dateutil)) | |
1d08c01f | 824 | |
cafc3f5a EB |
825 | (define-public python-parsedatetime |
826 | (package | |
827 | (name "python-parsedatetime") | |
828 | (version "1.2") | |
829 | (source | |
830 | (origin | |
831 | (method url-fetch) | |
832 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
833 | "parsedatetime/parsedatetime-" version ".tar.gz")) | |
834 | (sha256 | |
835 | (base32 | |
836 | "1zcj0pzxvpl4j2ma9awmpkfxldybi2kjaahjjpmgfbg5cxwcjsqv")))) | |
837 | (build-system python-build-system) | |
838 | (native-inputs | |
839 | `(("python-setuptools" ,python-setuptools))) | |
840 | (arguments `(#:tests? #f)) ;no test target | |
841 | (home-page "http://github.com/bear/parsedatetime/") | |
842 | (synopsis | |
843 | "Parse human-readable date/time text") | |
844 | (description | |
e881752c | 845 | "Parse human-readable date/time text.") |
cafc3f5a EB |
846 | (license asl2.0))) |
847 | ||
d072efcb RW |
848 | (define-public python-pandas |
849 | (package | |
850 | (name "python-pandas") | |
851 | (version "0.16.0") | |
852 | (source | |
853 | (origin | |
854 | (method url-fetch) | |
855 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
856 | "pandas/pandas-" version ".tar.gz")) | |
857 | (sha256 | |
858 | (base32 "1wfrp8dx1zcsry6f09ndza6qm1yr7f163211f4l9vjlnhxpxw4s0")))) | |
859 | (build-system python-build-system) | |
860 | (arguments | |
861 | `(;; Three tests fail: | |
862 | ;; - test_read_google | |
863 | ;; - test_read_yahoo | |
864 | ;; - test_month_range_union_tz_dateutil | |
865 | #:tests? #f)) | |
866 | (propagated-inputs | |
867 | `(("python-numpy" ,python-numpy) | |
868 | ("python-pytz" ,python-pytz) | |
869 | ("python-dateutil" ,python-dateutil-2))) | |
870 | (native-inputs | |
871 | `(("python-nose" ,python-nose) | |
872 | ("python-setuptools" ,python-setuptools))) | |
873 | (home-page "http://pandas.pydata.org") | |
874 | (synopsis "Data structures for data analysis, time series, and statistics") | |
875 | (description | |
876 | "Pandas is a Python package providing fast, flexible, and expressive data | |
877 | structures designed to make working with structured (tabular, | |
878 | multidimensional, potentially heterogeneous) and time series data both easy | |
879 | and intuitive. It aims to be the fundamental high-level building block for | |
880 | doing practical, real world data analysis in Python.") | |
881 | (license bsd-3))) | |
882 | ||
883 | (define-public python2-pandas | |
884 | (package-with-python2 python-pandas)) | |
885 | ||
cafc3f5a EB |
886 | (define-public python-tzlocal |
887 | (package | |
888 | (name "python-tzlocal") | |
889 | (version "1.1.1") | |
890 | (source | |
891 | (origin | |
892 | (method url-fetch) | |
893 | (uri (string-append "https://pypi.python.org/packages/source/t/" | |
894 | "tzlocal/tzlocal-" version ".zip")) | |
895 | (sha256 | |
896 | (base32 | |
897 | "1m3y918c3chf41fwg2bx4w42bqsjzn3dyvvcmwwy13c8gj6zssv9")))) | |
898 | (build-system python-build-system) | |
899 | (native-inputs | |
900 | `(("unzip" ,unzip) | |
901 | ("python-setuptools" ,python-setuptools))) | |
902 | (inputs `(("python-pytz" ,python-pytz))) | |
903 | (arguments | |
904 | `(#:phases | |
905 | (alist-replace | |
906 | 'unpack | |
907 | (lambda _ | |
908 | (let ((unzip (string-append (assoc-ref %build-inputs "unzip") | |
909 | "/bin/unzip")) | |
910 | (source (assoc-ref %build-inputs "source"))) | |
911 | (and (zero? (system* unzip source)) | |
912 | (chdir (string-append "tzlocal-" ,version))))) | |
913 | %standard-phases))) | |
914 | (home-page "https://github.com/regebro/tzlocal") | |
915 | (synopsis | |
35b9e423 | 916 | "Local timezone information for Python") |
cafc3f5a EB |
917 | (description |
918 | "Tzlocal returns a tzinfo object with the local timezone information. | |
919 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
920 | get the local timezone information, unless you know the zoneinfo name, and | |
921 | under several distributions that's hard or impossible to figure out.") | |
922 | (license cc0))) | |
923 | ||
be7134bf RW |
924 | (define-public python-pysam |
925 | (package | |
926 | (name "python-pysam") | |
927 | (version "0.8.1") | |
928 | (source | |
929 | (origin | |
930 | (method url-fetch) | |
931 | (uri (string-append "https://pypi.python.org/packages/source/p/pysam/pysam-" | |
932 | version ".tar.gz")) | |
933 | (sha256 | |
934 | (base32 | |
935 | "1fb6i6hbpzxaxb62kyyp5alaidwhj40f7c6gwbhr6njzlqd5l459")))) | |
936 | (build-system python-build-system) | |
937 | (arguments | |
938 | `(#:tests? #f ; tests are excluded in the manifest | |
939 | #:phases | |
940 | (alist-cons-before | |
941 | 'build 'set-flags | |
942 | (lambda _ | |
943 | (setenv "LDFLAGS" "-lncurses") | |
944 | (setenv "CFLAGS" "-D_CURSES_LIB=1")) | |
945 | %standard-phases))) | |
946 | (inputs | |
947 | `(("python-cython" ,python-cython) | |
948 | ("python-setuptools" ,python-setuptools) | |
949 | ("ncurses" ,ncurses) | |
950 | ("zlib" ,zlib))) | |
951 | (home-page "https://github.com/pysam-developers/pysam") | |
952 | (synopsis "Python bindings to the SAMtools C API") | |
953 | (description | |
954 | "Pysam is a Python module for reading and manipulating files in the | |
955 | SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It | |
956 | also includes an interface for tabix.") | |
bd3fa666 | 957 | (license license:expat))) |
be7134bf RW |
958 | |
959 | (define-public python2-pysam | |
960 | (package-with-python2 python-pysam)) | |
1d08c01f AE |
961 | |
962 | (define-public python2-pysqlite | |
963 | (package | |
964 | (name "python2-pysqlite") | |
7a03af70 | 965 | (version "2.6.3a") ; see below |
1d08c01f AE |
966 | (source |
967 | (origin | |
968 | (method url-fetch) | |
7a03af70 LC |
969 | ;; During the switch from code.google.com to pypi.python.org, the 2.6.3 |
970 | ;; tarball was modified, but the version number was kept: | |
971 | ;; <https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00077.html>. | |
972 | ;; Here we want to refer to the pypi-hosted 2.6.3 tarball. | |
973 | (uri (string-append | |
974 | "https://pypi.python.org/packages/source/p/pysqlite/pysqlite-" | |
975 | "2.6.3" ".tar.gz")) | |
1d08c01f AE |
976 | (sha256 |
977 | (base32 | |
7a03af70 | 978 | "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y")))) |
1d08c01f AE |
979 | (build-system python-build-system) |
980 | (inputs | |
981 | `(("sqlite" ,sqlite))) | |
982 | (arguments | |
983 | `(#:python ,python-2 ; incompatible with Python 3 | |
984 | #:tests? #f)) ; no test target | |
7a03af70 LC |
985 | (home-page "https://pypi.python.org/pypi/pysqlite") |
986 | (synopsis "SQLite bindings for Python") | |
1d08c01f AE |
987 | (description |
988 | "Pysqlite provides SQLite bindings for Python that comply to the | |
989 | Database API 2.0T.") | |
ed0cdf83 | 990 | (license license:zlib))) |
1d08c01f | 991 | |
2875caf5 AE |
992 | |
993 | (define-public python2-mechanize | |
994 | (package | |
995 | (name "python2-mechanize") | |
996 | (version "0.2.5") | |
997 | (source | |
998 | (origin | |
999 | (method url-fetch) | |
1000 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" | |
1001 | version ".tar.gz")) | |
1002 | (sha256 | |
1003 | (base32 | |
1004 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) | |
1005 | (build-system python-build-system) | |
1006 | (inputs | |
1007 | `(("python2-setuptools" ,python2-setuptools))) | |
1008 | (arguments | |
1009 | `(#:python ,python-2 ; apparently incompatible with Python 3 | |
1010 | #:tests? #f)) | |
1011 | ;; test fails with message | |
1012 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' | |
1013 | ;; (python-3.3.2) or | |
1014 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' | |
1015 | ;; (python-2.7.5). | |
1016 | ;; The source code is from March 2011 and probably not up-to-date | |
1017 | ;; with respect to python unit tests. | |
1018 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") | |
1019 | (synopsis | |
1020 | "Stateful programmatic web browsing in Python") | |
1021 | (description | |
1022 | "Mechanize implements stateful programmatic web browsing in Python, | |
1023 | after Andy Lester’s Perl module WWW::Mechanize.") | |
166191b3 | 1024 | (license (non-copyleft "file://COPYING" |
e881752c | 1025 | "See COPYING in the distribution.")))) |
2875caf5 | 1026 | |
0352532e AE |
1027 | |
1028 | (define-public python-simplejson | |
1029 | (package | |
1030 | (name "python-simplejson") | |
1031 | (version "3.3.0") | |
1032 | (source | |
1033 | (origin | |
1034 | (method url-fetch) | |
1035 | (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-" | |
1036 | version ".tar.gz")) | |
1037 | (sha256 | |
1038 | (base32 | |
1039 | "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks")))) | |
1040 | (build-system python-build-system) | |
1041 | (home-page "http://simplejson.readthedocs.org/en/latest/") | |
1042 | (synopsis | |
1043 | "Json library for Python") | |
1044 | (description | |
e881752c AK |
1045 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
1046 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange | |
1047 | format. | |
0352532e AE |
1048 | |
1049 | Simplejson exposes an API familiar to users of the standard library marshal | |
1050 | and pickle modules. It is the externally maintained version of the json | |
1051 | library contained in Python 2.6, but maintains compatibility with Python 2.5 | |
1052 | and (currently) has significant performance advantages, even without using | |
1053 | the optional C extension for speedups. Simplejson is also supported on | |
1054 | Python 3.3+.") | |
1055 | (license x11))) | |
1056 | ||
1057 | (define-public python2-simplejson | |
1058 | (package-with-python2 python-simplejson)) | |
421a80a2 AE |
1059 | |
1060 | ||
1061 | (define-public python2-pyicu | |
1062 | (package | |
1063 | (name "python2-pyicu") | |
569ac046 | 1064 | (version "1.8") |
421a80a2 AE |
1065 | (source |
1066 | (origin | |
1067 | (method url-fetch) | |
1068 | (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-" | |
1069 | version ".tar.gz")) | |
1070 | (sha256 | |
1071 | (base32 | |
569ac046 | 1072 | "1y361x82lnh9k9srmdx3q92z5iag112z7r5fxm0n1sfwb349yjdw")))) |
421a80a2 AE |
1073 | (build-system python-build-system) |
1074 | (inputs | |
1075 | `(("icu4c" ,icu4c))) | |
1076 | (arguments | |
1077 | `(#:python ,python-2 ; Python 3 works also, but needs special care for | |
1078 | ; linking with libpython3.3m | |
1079 | #:tests? #f)) ; no check target | |
1080 | (home-page "http://pyicu.osafoundation.org/") | |
9e771e3b | 1081 | (synopsis "Python extension wrapping the ICU C++ API") |
421a80a2 AE |
1082 | (description |
1083 | "PyICU is a python extension wrapping the ICU C++ API.") | |
1084 | (license x11))) | |
cc20a22a LC |
1085 | |
1086 | (define-public python2-dogtail | |
1087 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and | |
1088 | ;; spaces in indentation" with Python 3. | |
1089 | (package | |
1090 | (name "python2-dogtail") | |
1091 | (version "0.8.2") | |
1092 | (source (origin | |
1093 | (method url-fetch) | |
1094 | (uri (string-append | |
1095 | "https://fedorahosted.org/released/dogtail/dogtail-" | |
1096 | version ".tar.gz")) | |
1097 | (sha256 | |
1098 | (base32 | |
1099 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) | |
1100 | (build-system python-build-system) | |
1101 | (arguments `(#:python ,python-2 | |
1102 | #:tests? #f)) ; invalid command "test" | |
1103 | (home-page "https://fedorahosted.org/dogtail/") | |
1104 | (synopsis "GUI test tool and automation framework written in Python") | |
1105 | (description | |
35b9e423 | 1106 | "Dogtail is a GUI test tool and automation framework written in Python. |
cc20a22a LC |
1107 | It uses Accessibility (a11y) technologies to communicate with desktop |
1108 | applications. dogtail scripts are written in Python and executed like any | |
1109 | other Python program.") | |
1110 | (license gpl2+))) | |
515e6878 | 1111 | |
011b18c3 LC |
1112 | (define-public python2-empy |
1113 | (package | |
1114 | (name "python2-empy") | |
1115 | (version "3.3") | |
1116 | (source (origin | |
1117 | (method url-fetch) | |
1118 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" | |
1119 | version ".tar.gz")) | |
1120 | (sha256 | |
1121 | (base32 | |
1122 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) | |
1123 | (build-system python-build-system) | |
1124 | (arguments | |
1125 | `(#:python ,python-2 | |
1126 | #:phases (alist-replace | |
1127 | 'check | |
1128 | (lambda _ | |
1129 | (zero? (system* "./test.sh"))) | |
1130 | %standard-phases))) | |
1131 | (home-page "http://www.alcyone.com/software/empy/") | |
1132 | (synopsis "Templating system for Python") | |
1133 | (description | |
1134 | "EmPy is a system for embedding Python expressions and statements in | |
1135 | template text; it takes an EmPy source file, processes it, and produces | |
1136 | output. This is accomplished via expansions, which are special signals to the | |
1137 | EmPy system and are set off by a special prefix (by default the at sign, @). | |
1138 | EmPy can expand arbitrary Python expressions and statements in this way, as | |
1139 | well as a variety of special forms. Textual data not explicitly delimited in | |
1140 | this way is sent unaffected to the output, allowing Python to be used in | |
1141 | effect as a markup language. Also supported are callbacks via hooks, | |
1142 | recording and playback via diversions, and dynamic, chainable filters. The | |
1143 | system is highly configurable via command line options and embedded | |
1144 | commands.") | |
1145 | (license lgpl2.1+))) | |
1146 | ||
8deeda0c LC |
1147 | (define-public python2-element-tree |
1148 | (package | |
1149 | (name "python2-element-tree") | |
1150 | (version "1.2.6") | |
1151 | (source (origin | |
1152 | (method url-fetch) | |
1153 | (uri (string-append | |
1154 | "http://effbot.org/media/downloads/elementtree-" | |
1155 | version "-20050316.tar.gz")) | |
1156 | (sha256 | |
1157 | (base32 | |
1158 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) | |
1159 | (build-system python-build-system) | |
1160 | (arguments | |
1161 | `(#:python ,python-2 ; seems to be part of Python 3 | |
1162 | #:tests? #f)) ; no 'test' sub-command | |
1163 | (synopsis "Toolkit for XML processing in Python") | |
1164 | (description | |
1165 | "ElementTree is a Python library supporting lightweight XML processing.") | |
1166 | (home-page "http://effbot.org/zone/element-index.htm") | |
1167 | (license (x11-style "http://docs.python.org/2/license.html" | |
1168 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON \ | |
1169 | 0.9.0 THROUGH 1.2\".")))) | |
1170 | ||
1171 | (define-public python2-pybugz | |
1172 | (package | |
1173 | (name "python2-pybugz") | |
1174 | (version "0.6.11") | |
1175 | (source (origin | |
1176 | (method url-fetch) | |
1177 | (uri (string-append | |
1178 | "http://bits.liquidx.net/projects/pybugz/pybugz-" | |
1179 | version ".tar.gz")) | |
1180 | (sha256 | |
1181 | (base32 | |
6f194a1e LC |
1182 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
1183 | (patches (map search-patch | |
1184 | (list "pybugz-stty.patch" | |
1185 | "pybugz-encode-error.patch"))))) | |
8deeda0c LC |
1186 | (build-system python-build-system) |
1187 | (arguments | |
1188 | `(#:python ,python-2 ; SyntaxError with Python 3 | |
1189 | #:tests? #f)) ; no 'test' sub-command | |
1190 | (inputs `(("element-tree" ,python2-element-tree))) | |
1191 | (synopsis "Python and command-line interface to Bugzilla") | |
1192 | (description | |
1193 | "PyBugz is a Python library and command-line tool to query the Bugzilla | |
1194 | bug tracking system. It is meant as an aid to speed up interaction with the | |
1195 | bug tracker.") | |
1196 | (home-page "http://www.liquidx.net/pybugz/") | |
1197 | (license gpl2))) | |
1198 | ||
a480bc41 EB |
1199 | (define-public python-enum34 |
1200 | (package | |
1201 | (name "python-enum34") | |
1202 | (version "1.0") | |
1203 | (source | |
1204 | (origin | |
1205 | (method url-fetch) | |
1206 | (uri (string-append "https://pypi.python.org/packages/source/e/" | |
1207 | "enum34/enum34-" version ".tar.gz")) | |
1208 | (sha256 | |
1209 | (base32 | |
1210 | "0dg6mpg9n4g9diyrbnbb5vd9d1qw9f265zwhknqy0mxh0cvmjjrq")))) | |
1211 | (build-system python-build-system) | |
1212 | (inputs | |
1213 | `(("python-setuptools" ,python-setuptools))) | |
1214 | (arguments | |
1215 | `(#:phases | |
1216 | (alist-replace | |
1217 | 'check | |
1218 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) | |
1219 | %standard-phases))) | |
1220 | (home-page "https://pypi.python.org/pypi/enum34") | |
1221 | (synopsis "Backported Python 3.4 Enum") | |
1222 | (description | |
1223 | "Enum34 is the new Python stdlib enum module available in Python 3.4 | |
1224 | backported for previous versions of Python from 2.4 to 3.3.") | |
1225 | (license bsd-3))) | |
1226 | ||
1227 | (define-public python-parse-type | |
1228 | (package | |
1229 | (name "python-parse-type") | |
1230 | (version "0.3.4") | |
1231 | (source | |
1232 | (origin | |
1233 | (method url-fetch) | |
1234 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1235 | "parse_type/parse_type-" version ".tar.gz")) | |
1236 | (sha256 | |
1237 | (base32 | |
1238 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) | |
1239 | (build-system python-build-system) | |
1240 | (inputs | |
1241 | `(("python-setuptools" ,python-setuptools) | |
1242 | ("python-six" ,python-six) | |
1243 | ("python-parse" ,python-parse) | |
1244 | ("python-enum34" ,python-enum34))) ;required for python<3.4 | |
1245 | (arguments '(#:tests? #f)) ;TODO: tests require pytest | |
1246 | (home-page "https://github.com/jenisys/parse_type") | |
1247 | (synopsis "Extended parse module") | |
1248 | (description | |
1249 | "Parse_type extends the python parse module.") | |
1250 | (license bsd-3))) | |
1251 | ||
1252 | (define-public python-parse | |
1253 | (package | |
1254 | (name "python-parse") | |
1255 | (version "1.6.4") | |
1256 | (source | |
1257 | (origin | |
1258 | (method url-fetch) | |
1259 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1260 | "parse/parse-" version ".tar.gz")) | |
1261 | (sha256 | |
1262 | (base32 | |
1263 | "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57")))) | |
1264 | (build-system python-build-system) | |
1265 | (arguments | |
1266 | `(#:phases | |
1267 | (alist-replace | |
1268 | 'check | |
1269 | (lambda _ (zero? (system* "python" "test_parse.py"))) | |
1270 | %standard-phases))) | |
1271 | (home-page "https://github.com/r1chardj0n3s/parse") | |
1272 | (synopsis "Parse strings") | |
1273 | (description | |
1274 | "Parse strings using a specification based on the Python format() | |
1275 | syntax.") | |
1276 | (license x11))) | |
1277 | ||
1278 | ||
515e6878 LC |
1279 | (define-public scons |
1280 | (package | |
1281 | (name "scons") | |
a3f61425 | 1282 | (version "2.3.4") |
515e6878 LC |
1283 | (source (origin |
1284 | (method url-fetch) | |
1285 | (uri (string-append "mirror://sourceforge/scons/scons-" | |
1286 | version ".tar.gz")) | |
1287 | (sha256 | |
1288 | (base32 | |
a3f61425 | 1289 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
515e6878 LC |
1290 | (build-system python-build-system) |
1291 | (arguments | |
1292 | ;; With Python 3.x, fails to build with a syntax error. | |
1293 | `(#:python ,python-2 | |
1294 | #:tests? #f)) ; no 'python setup.py test' command | |
1295 | (home-page "http://scons.org/") | |
1296 | (synopsis "Software construction tool written in Python") | |
1297 | (description | |
1298 | "SCons is a software construction tool. Think of SCons as an improved, | |
1299 | cross-platform substitute for the classic Make utility with integrated | |
1300 | functionality similar to autoconf/automake and compiler caches such as ccache. | |
1301 | In short, SCons is an easier, more reliable and faster way to build | |
1302 | software.") | |
1303 | (license x11))) | |
011b18c3 | 1304 | |
c15a5c0e DT |
1305 | (define-public python-extras |
1306 | (package | |
1307 | (name "python-extras") | |
1308 | (version "0.0.3") | |
1309 | (source | |
1310 | (origin | |
1311 | (method url-fetch) | |
1312 | (uri (string-append | |
1313 | "https://pypi.python.org/packages/source/e/extras/extras-" | |
1314 | version ".tar.gz")) | |
1315 | (sha256 | |
1316 | (base32 | |
1317 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) | |
1318 | (build-system python-build-system) | |
1319 | (inputs | |
1320 | `(("python-setuptools" ,python-setuptools))) | |
1321 | (arguments | |
1322 | ;; error in setup.cfg: command 'test' has no such option 'buffer' | |
1323 | '(#:tests? #f)) | |
1324 | (home-page "https://github.com/testing-cabal/extras") | |
1325 | (synopsis "Useful extensions to the Python standard library") | |
1326 | (description | |
1327 | "Extras is a set of extensions to the Python standard library.") | |
bd3fa666 | 1328 | (license license:expat))) |
c15a5c0e DT |
1329 | |
1330 | (define-public python2-extras | |
1331 | (package-with-python2 python-extras)) | |
1332 | ||
56ea0efd DT |
1333 | (define-public python-mimeparse |
1334 | (package | |
1335 | (name "python-mimeparse") | |
1336 | (version "0.1.4") | |
1337 | (source | |
1338 | (origin | |
1339 | (method url-fetch) | |
1340 | (uri (string-append | |
1341 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" | |
1342 | version ".tar.gz")) | |
1343 | (sha256 | |
1344 | (base32 | |
1345 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) | |
1346 | (build-system python-build-system) | |
1347 | (inputs | |
1348 | `(("python-setuptools" ,python-setuptools))) | |
1349 | (arguments | |
1350 | '(#:tests? #f)) ; no setup.py test command | |
1351 | (home-page | |
1352 | "https://github.com/dbtsai/python-mimeparse") | |
9e771e3b | 1353 | (synopsis "Python library for parsing MIME types") |
56ea0efd DT |
1354 | (description |
1355 | "Mimeparse provides basic functions for parsing MIME type names and | |
1356 | matching them against a list of media-ranges.") | |
bd3fa666 | 1357 | (license license:expat))) |
56ea0efd DT |
1358 | |
1359 | (define-public python2-mimeparse | |
1360 | (package-with-python2 python-mimeparse)) | |
1361 | ||
4435427e DT |
1362 | (define-public python-nose |
1363 | (package | |
1364 | (name "python-nose") | |
1365 | (version "1.3.4") | |
1366 | (source | |
1367 | (origin | |
1368 | (method url-fetch) | |
1369 | (uri (string-append | |
1370 | "https://pypi.python.org/packages/source/n/nose/nose-" | |
1371 | version ".tar.gz")) | |
1372 | (sha256 | |
1373 | (base32 | |
1374 | "00qymfgwg4iam4xi0w9bnv7lcb3fypq1hzfafzgs1rfmwaj67g3n")))) | |
1375 | (build-system python-build-system) | |
1376 | (inputs | |
1377 | `(("python-setuptools" ,python-setuptools))) | |
1378 | (arguments | |
1379 | '(#:tests? #f)) ; FIXME: test suite fails | |
1380 | (home-page "http://readthedocs.org/docs/nose/") | |
1381 | (synopsis "Python testing library") | |
1382 | (description | |
1383 | "Nose extends the unittest library to make testing easier.") | |
1384 | (license lgpl2.0+))) | |
1385 | ||
1386 | (define-public python2-nose | |
1387 | (package-with-python2 python-nose)) | |
1388 | ||
6cd9c356 DT |
1389 | (define-public python-unittest2 |
1390 | (package | |
1391 | (name "python-unittest2") | |
1392 | (version "0.5.1") | |
1393 | (source | |
1394 | (origin | |
1395 | (method url-fetch) | |
1396 | (uri (string-append | |
1397 | "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-" | |
1398 | version ".tar.gz")) | |
1399 | (sha256 | |
1400 | (base32 | |
1401 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) | |
1402 | (build-system python-build-system) | |
1403 | (inputs | |
1404 | `(("python-setuptools" ,python-setuptools))) | |
1405 | (home-page "http://pypi.python.org/pypi/unittest2") | |
1406 | (synopsis "Python unit testing library") | |
1407 | (description | |
1408 | "Unittest2 is a replacement for the unittest module in the Python | |
1409 | standard library.") | |
1410 | (license psfl))) | |
1411 | ||
1412 | (define-public python2-unittest2 | |
1413 | (package (inherit python-unittest2) | |
1414 | (name "python2-unittest2") | |
1415 | (version "0.5.1") | |
1416 | (source | |
1417 | (origin | |
1418 | (method url-fetch) | |
1419 | (uri (string-append | |
1420 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" | |
1421 | version ".tar.gz")) | |
1422 | (sha256 | |
1423 | (base32 | |
1424 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) | |
1425 | (inputs | |
1426 | `(("python2-setuptools" ,python-setuptools))) | |
1427 | (arguments | |
1428 | `(#:python ,python-2 | |
1429 | #:tests? #f)))) ; no setup.py test command | |
1430 | ||
542ad60f DT |
1431 | (define-public python-py |
1432 | (package | |
1433 | (name "python-py") | |
1434 | (version "1.4.23") | |
1435 | (source | |
1436 | (origin | |
1437 | (method url-fetch) | |
1438 | (uri (string-append | |
1439 | "https://pypi.python.org/packages/source/p/py/py-" | |
1440 | version ".tar.gz")) | |
1441 | (sha256 | |
1442 | (base32 | |
1443 | "1jkhffpai419v5rickm2vz86p9bkg3b3kcm2k4bi5wfajhw2m3xs")))) | |
1444 | (build-system python-build-system) | |
1445 | (inputs | |
1446 | `(("python-setuptools" ,python-setuptools))) | |
1447 | (home-page "http://pylib.readthedocs.org/") | |
1448 | (synopsis "Python library for parsing, I/O, instrospection, and logging") | |
1449 | (description | |
1450 | "Py is a Python library for file name parsing, .ini file parsing, I/O, | |
1451 | code introspection, and logging.") | |
bd3fa666 | 1452 | (license license:expat))) |
542ad60f DT |
1453 | |
1454 | (define-public python2-py | |
1455 | (package-with-python2 python-py)) | |
1456 | ||
855d4761 DT |
1457 | (define-public python-pytest |
1458 | (package | |
1459 | (name "python-pytest") | |
1460 | (version "2.6.1") | |
1461 | (source | |
1462 | (origin | |
1463 | (method url-fetch) | |
1464 | (uri (string-append | |
1465 | "https://pypi.python.org/packages/source/p/pytest/pytest-" | |
1466 | version ".tar.gz")) | |
1467 | (sha256 | |
1468 | (base32 | |
1469 | "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) | |
1470 | (modules '((guix build utils))) | |
1471 | (snippet | |
1472 | ;; One of the tests involves the /usr directory, so it fails. | |
1473 | '(substitute* "testing/test_argcomplete.py" | |
1474 | (("def test_remove_dir_prefix\\(self\\):") | |
1475 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) | |
1476 | (build-system python-build-system) | |
1477 | (inputs | |
1478 | `(("python-setuptools" ,python-setuptools) | |
1479 | ("python-py" ,python-py) | |
1480 | ("python-nose" ,python-nose) | |
1481 | ("python-mock" ,python-mock))) | |
1482 | (home-page "http://pytest.org") | |
1483 | (synopsis "Python testing library") | |
1484 | (description | |
1485 | "Pytest is a testing tool that provides auto-discovery of test modules | |
1486 | and functions, detailed info on failing assert statements, modular fixtures, | |
1487 | and many external plugins.") | |
bd3fa666 | 1488 | (license license:expat))) |
855d4761 DT |
1489 | |
1490 | (define-public python2-pytest | |
1491 | (package-with-python2 python-pytest)) | |
1492 | ||
84d24017 DT |
1493 | (define-public python-scripttest |
1494 | (package | |
1495 | (name "python-scripttest") | |
1496 | (version "1.3") | |
1497 | (source | |
1498 | (origin | |
1499 | (method url-fetch) | |
1500 | (uri (string-append | |
1501 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" | |
1502 | version ".tar.gz")) | |
1503 | (sha256 | |
1504 | (base32 | |
1505 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) | |
1506 | (build-system python-build-system) | |
1507 | (inputs | |
1508 | `(("python-setuptools" ,python-setuptools) | |
1509 | ("python-pytest" ,python-pytest))) | |
1510 | (home-page "http://pythonpaste.org/scripttest/") | |
1511 | (synopsis "Python library to test command-line scripts") | |
1512 | (description "Scripttest is a Python helper library for testing | |
1513 | interactive command-line applications. With it you can run a script in a | |
1514 | subprocess and see the output as well as any file modifications.") | |
bd3fa666 | 1515 | (license license:expat))) |
84d24017 DT |
1516 | |
1517 | (define-public python2-scripttest | |
1518 | (package-with-python2 python-scripttest)) | |
1519 | ||
d8fa80e1 DT |
1520 | (define-public python-testtools |
1521 | (package | |
1522 | (name "python-testtools") | |
1523 | (version "1.0.0") | |
1524 | (source | |
1525 | (origin | |
1526 | (method url-fetch) | |
1527 | (uri (string-append | |
1528 | "https://pypi.python.org/packages/source/t/testtools/testtools-" | |
1529 | version ".tar.gz")) | |
1530 | (sha256 | |
1531 | (base32 | |
1532 | "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx")))) | |
1533 | (build-system python-build-system) | |
0e88cbf8 CR |
1534 | (propagated-inputs |
1535 | `(("python-mimeparse" ,python-mimeparse))) | |
d8fa80e1 DT |
1536 | (inputs |
1537 | `(("python-setuptools" ,python-setuptools) | |
d8fa80e1 DT |
1538 | ("python-extras" ,python-extras))) |
1539 | (home-page "https://github.com/testing-cabal/testtools") | |
1540 | (synopsis | |
1541 | "Extensions to the Python standard library unit testing framework") | |
1542 | (description | |
1543 | "Testtools extends the Python standard library unit testing framework to | |
1544 | provide matchers, more debugging information, and cross-Python | |
1545 | compatibility.") | |
1546 | (license psfl))) | |
1547 | ||
1548 | (define-public python2-testtools | |
1549 | (package-with-python2 python-testtools)) | |
1550 | ||
5bf3afea DT |
1551 | (define-public python-testscenarios |
1552 | (package | |
1553 | (name "python-testscenarios") | |
1554 | (version "0.4") | |
1555 | (source | |
1556 | (origin | |
1557 | (method url-fetch) | |
1558 | (uri (string-append | |
1559 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" | |
1560 | version ".tar.gz")) | |
1561 | (sha256 | |
1562 | (base32 | |
1563 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) | |
1564 | (build-system python-build-system) | |
1565 | (inputs | |
1566 | `(("python-setuptools" ,python-setuptools) | |
1567 | ("python-testtools" ,python-testtools) | |
1568 | ("python-mimeparse" ,python-mimeparse))) | |
1569 | (home-page "https://launchpad.net/testscenarios") | |
1570 | (synopsis "Pyunit extension for dependency injection") | |
1571 | (description | |
1572 | "Testscenarios provides clean dependency injection for Python unittest | |
1573 | style tests.") | |
1574 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1575 | ||
1576 | (define-public python2-testscenarios | |
1577 | (package-with-python2 python-testscenarios)) | |
1578 | ||
dac79ecc DT |
1579 | (define-public python-testresources |
1580 | (package | |
1581 | (name "python-testresources") | |
1582 | (version "0.2.7") | |
1583 | (source | |
1584 | (origin | |
1585 | (method url-fetch) | |
1586 | (uri (string-append | |
1587 | "https://pypi.python.org/packages/source/t/testresources/testresources-" | |
1588 | version ".tar.gz")) | |
1589 | (sha256 | |
1590 | (base32 | |
1591 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) | |
1592 | (build-system python-build-system) | |
1593 | (inputs | |
1594 | `(("python-setuptools" ,python-setuptools))) | |
1595 | (home-page "https://launchpad.net/testresources") | |
1596 | (synopsis | |
1597 | "Pyunit extension for managing test resources") | |
1598 | (description | |
1599 | "Testresources is an extension to Python's unittest to allow declarative | |
1600 | use of resources by test cases.") | |
1601 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1602 | ||
1603 | (define-public python2-testresources | |
1604 | (package-with-python2 python-testresources)) | |
1605 | ||
070ab058 DT |
1606 | (define-public python-subunit |
1607 | (package | |
1608 | (name "python-subunit") | |
1609 | (version "0.0.21") | |
1610 | (source | |
1611 | (origin | |
1612 | (method url-fetch) | |
1613 | (uri (string-append | |
1614 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" | |
1615 | version ".tar.gz")) | |
1616 | (sha256 | |
1617 | (base32 | |
1618 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) | |
1619 | (build-system python-build-system) | |
1620 | (inputs | |
1621 | `(("python-setuptools" ,python-setuptools) | |
1622 | ("python-testtools" ,python-testtools) | |
1623 | ("python-mimeparse" ,python-mimeparse) | |
1624 | ("python-testscenarios" ,python-testscenarios))) | |
1625 | (home-page "http://launchpad.net/subunit") | |
1626 | (synopsis "Python implementation of the subunit protocol") | |
1627 | (description | |
1628 | "Python-subunit is a Python implementation of the subunit test streaming | |
1629 | protocol.") | |
1630 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1631 | ||
1632 | (define-public python2-subunit | |
1633 | (package-with-python2 python-subunit)) | |
1634 | ||
cd49454b DT |
1635 | (define-public python-fixtures |
1636 | (package | |
1637 | (name "python-fixtures") | |
1638 | (version "0.3.16") | |
1639 | (source | |
1640 | (origin | |
1641 | (method url-fetch) | |
1642 | (uri (string-append | |
1643 | "https://pypi.python.org/packages/source/f/fixtures/fixtures-" | |
1644 | version ".tar.gz")) | |
1645 | (sha256 | |
1646 | (base32 | |
1647 | "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc")))) | |
1648 | (build-system python-build-system) | |
1649 | (inputs | |
1650 | `(("python-setuptools" ,python-setuptools))) | |
1651 | (arguments | |
1652 | '(#:tests? #f)) ; no setup.py test command | |
1653 | (home-page "https://launchpad.net/python-fixtures") | |
1654 | (synopsis "Python test fixture library") | |
1655 | (description | |
1656 | "Fixtures provides a way to create reusable state, useful when writing | |
1657 | Python tests.") | |
1658 | (license (list bsd-3 asl2.0)))) ; at user's option | |
1659 | ||
1660 | (define-public python2-fixtures | |
1661 | (package-with-python2 python-fixtures)) | |
1662 | ||
b24a0c00 DT |
1663 | (define-public python-testrepository |
1664 | (package | |
1665 | (name "python-testrepository") | |
1666 | (version "0.0.20") | |
1667 | (source | |
1668 | (origin | |
1669 | (method url-fetch) | |
1670 | (uri (string-append | |
1671 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" | |
1672 | version ".tar.gz")) | |
1673 | (sha256 | |
1674 | (base32 | |
1675 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) | |
1676 | (build-system python-build-system) | |
1677 | (inputs | |
1678 | `(("python-setuptools" ,python-setuptools) | |
1679 | ("python-testtools" ,python-testtools) | |
1680 | ("python-subunit" ,python-subunit) | |
1681 | ("python-fixtures" ,python-fixtures) | |
1682 | ("python-mimeparse" ,python-mimeparse))) | |
1683 | (home-page "https://launchpad.net/testrepository") | |
1684 | (synopsis "Database for Python test results") | |
1685 | (description "Testrepository provides a database of test results which can | |
1686 | be used as part of a developer's workflow to check things such as what tests | |
1687 | have failed since the last commit or what tests are currently failing.") | |
1688 | (license (list bsd-3 asl2.0)))) ; at user's option | |
1689 | ||
1690 | (define-public python2-testrepository | |
1691 | (package-with-python2 python-testrepository)) | |
1692 | ||
243a009a DT |
1693 | (define-public python-coverage |
1694 | (package | |
1695 | (name "python-coverage") | |
1696 | (version "3.7.1") | |
1697 | (source | |
1698 | (origin | |
1699 | (method url-fetch) | |
1700 | (uri (string-append | |
1701 | "https://pypi.python.org/packages/source/c/coverage/coverage-" | |
1702 | version ".tar.gz")) | |
1703 | (sha256 | |
1704 | (base32 | |
1705 | "0knlbq79g2ww6xzsyknj9rirrgrgc983dpa2d9nkdf31mb2a3bni")))) | |
1706 | (build-system python-build-system) | |
1707 | (inputs | |
1708 | `(("python-setuptools" ,python-setuptools))) | |
1709 | (home-page "http://nedbatchelder.com/code/coverage") | |
1710 | (synopsis "Code coverage measurement for Python") | |
1711 | (description | |
1712 | "Coverage measures code coverage, typically during test execution. It | |
1713 | uses the code analysis tools and tracing hooks provided in the Python standard | |
1714 | library to determine which lines are executable, and which have been | |
1715 | executed.") | |
1716 | (license bsd-3))) | |
1717 | ||
1718 | (define-public python2-coverage | |
1719 | (package-with-python2 python-coverage)) | |
1720 | ||
041358fb DT |
1721 | (define-public python-discover |
1722 | (package | |
1723 | (name "python-discover") | |
1724 | (version "0.4.0") | |
1725 | (source | |
1726 | (origin | |
1727 | (method url-fetch) | |
1728 | (uri (string-append | |
1729 | "https://pypi.python.org/packages/source/d/discover/discover-" | |
1730 | version ".tar.gz")) | |
1731 | (sha256 | |
1732 | (base32 | |
1733 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) | |
1734 | (build-system python-build-system) | |
1735 | (inputs | |
1736 | `(("python-setuptools" ,python-setuptools))) | |
1737 | (home-page "http://pypi.python.org/pypi/discover/") | |
1738 | (synopsis | |
1739 | "Python test discovery for unittest") | |
1740 | (description | |
1741 | "Discover provides test discovery for unittest, a feature that has been | |
e881752c | 1742 | backported from Python 2.7 for Python 2.4+.") |
041358fb DT |
1743 | (license bsd-3))) |
1744 | ||
1745 | (define-public python2-discover | |
1746 | (package-with-python2 python-discover)) | |
1747 | ||
a480bc41 EB |
1748 | (define-public behave |
1749 | (package | |
1750 | (name "behave") | |
1751 | (version "1.2.4") | |
1752 | (source (origin | |
1753 | (method url-fetch) | |
1754 | (uri (string-append "https://pypi.python.org/packages/source/b/" | |
1755 | name "/" name "-" version ".tar.gz")) | |
1756 | (sha256 | |
1757 | (base32 | |
1758 | "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14")))) | |
1759 | (build-system python-build-system) | |
1760 | (inputs | |
1761 | `(("python-setuptools" ,python-setuptools) | |
1762 | ("python-six" ,python-six) | |
1763 | ("python-enum43" ,python-enum34) | |
1764 | ("python-parse" ,python-parse) | |
1765 | ("python-parse-type" ,python-parse-type))) | |
1766 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and | |
1767 | ;PyHamcrest>=1.8 | |
1768 | (home-page "http://github.com/behave/behave") | |
1769 | (synopsis "Python behavior-driven development") | |
1770 | (description | |
1771 | "Behave is a tool for behavior-driven development in python. | |
1772 | Behavior-driven development (or BDD) is an agile software development | |
1773 | technique that encourages collaboration between developers, QA and | |
1774 | non-technical or business participants in a software project. Behave uses | |
1775 | tests written in a natural language style, backed up by Python code.") | |
1776 | (license x11))) | |
c7303d3c DT |
1777 | |
1778 | (define-public python-exif-read | |
1779 | (package | |
1780 | (name "python-exif-read") | |
1781 | (version "1.4.2") | |
1782 | (source (origin | |
1783 | (method url-fetch) | |
1784 | (uri | |
1785 | (string-append | |
1786 | "https://pypi.python.org/packages/source/E/ExifRead/ExifRead-" | |
1787 | version ".tar.gz")) | |
1788 | (sha256 | |
1789 | (base32 | |
1790 | "17c627gcdmyc05hz4zk8qs4pjgw6rc68qzjzgz8gh1cmpsd7acf1")))) | |
1791 | (build-system python-build-system) | |
1792 | (inputs | |
1793 | `(("python-setuptools" ,python-setuptools))) | |
1794 | (arguments `(#:tests? #f)) ; no tests | |
1795 | (home-page "https://github.com/ianare/exif-py") | |
1796 | (synopsis "Python library to extract EXIF data from image files") | |
1797 | (description | |
1798 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg | |
1799 | files.") | |
1800 | (license bsd-3))) | |
1801 | ||
1802 | (define-public python2-exif-read | |
1803 | (package-with-python2 python-exif-read)) | |
d5f89b22 DT |
1804 | |
1805 | (define-public python-pyld | |
1806 | (package | |
1807 | (name "python-pyld") | |
1808 | (version "0.6.0") | |
1809 | (source (origin | |
1810 | (method url-fetch) | |
1811 | (uri | |
1812 | (string-append | |
1813 | "https://pypi.python.org/packages/source/P/PyLD/PyLD-" | |
1814 | version ".tar.gz")) | |
1815 | (sha256 | |
1816 | (base32 | |
1817 | "1l9ymj85fsvayqplinzpk0kyiq6m74ps9xd3a9fhlxfn1rldf8x8")))) | |
1818 | (build-system python-build-system) | |
1819 | (inputs | |
1820 | `(("python-setuptools" ,python-setuptools))) | |
1821 | (arguments `(#:tests? #f)) ; no tests | |
1822 | (home-page "http://github.com/digitalbazaar/pyld") | |
1823 | (synopsis "Python implementation of the JSON-LD specification") | |
1824 | (description | |
1825 | "PyLD is an implementation of the JSON-LD specification.") | |
1826 | (license bsd-3))) | |
1827 | ||
1828 | (define-public python2-pyld | |
1829 | (package-with-python2 python-pyld)) | |
3a1f9a68 DT |
1830 | |
1831 | (define-public python-certifi | |
1832 | (package | |
1833 | (name "python-certifi") | |
1834 | (version "14.05.14") | |
1835 | (source (origin | |
1836 | (method url-fetch) | |
1837 | (uri | |
1838 | (string-append | |
1839 | "https://pypi.python.org/packages/source/c/certifi/certifi-" | |
1840 | version ".tar.gz")) | |
1841 | (sha256 | |
1842 | (base32 | |
1843 | "0s8vxzfz6s4m6fvxc7z25k9j35w0rh6jkw3wwcd1az1mssncn6qy")))) | |
1844 | (build-system python-build-system) | |
1845 | (inputs | |
1846 | `(("python-setuptools" ,python-setuptools))) | |
1847 | (arguments `(#:tests? #f)) ; no tests | |
1848 | (home-page "http://python-requests.org/") | |
1849 | (synopsis "Python CA certificate bundle") | |
1850 | (description | |
1851 | "Certifi is a Python library that contains a CA certificate bundle, which | |
1852 | is used by the Requests library to verify HTTPS requests.") | |
1853 | (license asl2.0))) | |
1854 | ||
1855 | (define-public python2-certifi | |
1856 | (package-with-python2 python-certifi)) | |
e6cfbd36 | 1857 | |
12c270dd RW |
1858 | (define-public python-click |
1859 | (package | |
1860 | (name "python-click") | |
1861 | (version "4.0") | |
1862 | (source | |
1863 | (origin | |
1864 | (method url-fetch) | |
1865 | (uri (string-append | |
1866 | "https://pypi.python.org/packages/source/c/click/click-" | |
1867 | version ".tar.gz")) | |
1868 | (sha256 | |
1869 | (base32 "0294x9g28w6zgswl0rsygkwi0wf6n480gf7fiiw5f9az3xhh77pl")))) | |
1870 | (build-system python-build-system) | |
1871 | (native-inputs | |
1872 | `(("python-setuptools" ,python-setuptools))) | |
1873 | (home-page "http://click.pocoo.org") | |
1874 | (synopsis "Command line library for Python") | |
1875 | (description | |
1876 | "Click is a Python package for creating command line interfaces in a | |
1877 | composable way with as little code as necessary. Its name stands for | |
1878 | \"Command Line Interface Creation Kit\". It's highly configurable but comes | |
1879 | with sensible defaults out of the box.") | |
1880 | (license bsd-3))) | |
1881 | ||
1882 | (define-public python2-click | |
1883 | (package-with-python2 python-click)) | |
1884 | ||
ae641128 | 1885 | (define-public python-requests |
e6cfbd36 | 1886 | (package |
ae641128 | 1887 | (name "python-requests") |
e6cfbd36 DT |
1888 | (version "2.4.0") |
1889 | (source (origin | |
1890 | (method url-fetch) | |
1891 | (uri | |
1892 | (string-append | |
1893 | "https://pypi.python.org/packages/source/r/requests/requests-" | |
1894 | version ".tar.gz")) | |
1895 | (sha256 | |
1896 | (base32 | |
1897 | "0gknlfx1wakrrm1zi8gi03x2lzj4dsns0vjw0nsmgqvkphyf01vh")))) | |
1898 | (build-system python-build-system) | |
1899 | (inputs | |
1900 | `(("python-setuptools" ,python-setuptools) | |
1901 | ("python-certifi" ,python-certifi))) | |
ae641128 | 1902 | (arguments `(#:tests? #f)) ; no tests |
e6cfbd36 DT |
1903 | (home-page "http://python-requests.org/") |
1904 | (synopsis "Python HTTP library") | |
1905 | (description | |
1906 | "Requests is a Python HTTP client library. It aims to be easier to use | |
1907 | than Python’s urllib2 library.") | |
1908 | (license asl2.0))) | |
864b5211 | 1909 | |
ae641128 DT |
1910 | (define-public python2-requests |
1911 | (package-with-python2 python-requests)) | |
1912 | ||
864b5211 DT |
1913 | (define-public python-jsonschema |
1914 | (package | |
1915 | (name "python-jsonschema") | |
1916 | (version "2.4.0") | |
1917 | (source (origin | |
1918 | (method url-fetch) | |
1919 | (uri | |
1920 | (string-append | |
1921 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" | |
1922 | version ".tar.gz")) | |
1923 | (sha256 | |
1924 | (base32 | |
1925 | "1yik3031ziygvq66rj3mzfqdgxj29sg1bkfc46wsgi7lnbqs560j")))) | |
1926 | (build-system python-build-system) | |
1927 | (inputs | |
1928 | `(("python-setuptools" ,python-setuptools))) | |
1929 | (home-page "http://github.com/Julian/jsonschema") | |
1930 | (synopsis "Implementation of JSON Schema for Python") | |
1931 | (description | |
1932 | "Jsonschema is an implementation of JSON Schema for Python.") | |
bd3fa666 | 1933 | (license license:expat))) |
864b5211 DT |
1934 | |
1935 | (define-public python2-jsonschema | |
1936 | (package-with-python2 python-jsonschema)) | |
850189b8 DT |
1937 | |
1938 | (define-public python-unidecode | |
1939 | (package | |
1940 | (name "python-unidecode") | |
1941 | (version "0.04.16") | |
1942 | (source (origin | |
1943 | (method url-fetch) | |
1944 | (uri | |
1945 | (string-append | |
1946 | "https://pypi.python.org/packages/source/U/Unidecode/Unidecode-" | |
1947 | version ".tar.gz")) | |
1948 | (sha256 | |
1949 | (base32 | |
1950 | "0yv56vc49rvippyxgxvcyz7jklc07ky38rcspax7p00sgmriiljc")))) | |
1951 | (build-system python-build-system) | |
1952 | (inputs | |
1953 | `(("python-setuptools" ,python-setuptools))) | |
1954 | (home-page "https://pypi.python.org/pypi/Unidecode") | |
1955 | (synopsis "ASCII transliterations of Unicode text") | |
1956 | (description | |
1957 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is | |
1958 | useful when integrating with legacy code that doesn't support Unicode, or for | |
1959 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII | |
1960 | machine identifiers from human-readable Unicode strings that should still be | |
1961 | somewhat intelligeble.") | |
1962 | (license gpl2+))) | |
1963 | ||
1964 | (define-public python2-unidecode | |
1965 | (package-with-python2 python-unidecode)) | |
6d45fef4 DT |
1966 | |
1967 | (define-public python-pyjwt | |
1968 | (package | |
1969 | (name "python-pyjwt") | |
1970 | (version "0.2.1") | |
1971 | (source | |
1972 | (origin | |
1973 | (method url-fetch) | |
1974 | (uri (string-append | |
1975 | "https://pypi.python.org/packages/source/P/PyJWT/PyJWT-" | |
1976 | version ".tar.gz")) | |
1977 | (sha256 | |
1978 | (base32 | |
1979 | "1ahqblfy2sj3xz34wsa48cn9rp0dspzq56p54i5znmws3b8gml6g")))) | |
1980 | (build-system python-build-system) | |
1981 | (inputs | |
1982 | `(("python-setuptools" ,python-setuptools))) | |
1983 | (arguments | |
1984 | '(#:tests? #f)) ; test suite doesn't work | |
1985 | (home-page "http://github.com/progrium/pyjwt") | |
1986 | (synopsis "JSON Web Token implementation in Python") | |
1987 | (description | |
1988 | "PyJWT is a JSON Web Token implementation written in Python.") | |
bd3fa666 | 1989 | (license license:expat))) |
6d45fef4 DT |
1990 | |
1991 | (define-public python2-pyjwt | |
1992 | (package-with-python2 python-pyjwt)) | |
1993 | ||
2cec1f6f DT |
1994 | (define-public python-oauthlib |
1995 | (package | |
1996 | (name "python-oauthlib") | |
1997 | (version "0.6.3") | |
1998 | (source (origin | |
1999 | (method url-fetch) | |
2000 | (uri | |
2001 | (string-append | |
2002 | "https://pypi.python.org/packages/source/o/oauthlib/oauthlib-" | |
2003 | version ".tar.gz")) | |
2004 | (sha256 | |
2005 | (base32 | |
2006 | "1yaj3j64la4arwsbhbfmpnickzh3jpg9nlpyg409v8pp24isn48a")))) | |
2007 | (build-system python-build-system) | |
2008 | (inputs | |
2009 | `(("python-setuptools" ,python-setuptools) | |
2010 | ("python-pyjwt" ,python-pyjwt) | |
2011 | ("python-pycrypto" ,python-pycrypto) | |
2012 | ("python-nose" ,python-nose) | |
2013 | ("python-mock" ,python-mock))) | |
2014 | (home-page "https://github.com/idan/oauthlib") | |
2015 | (synopsis "OAuth implementation for Python") | |
2016 | (description | |
2017 | "Oauthlib is a generic, spec-compliant, thorough implementation of the | |
2018 | OAuth request-signing logic.") | |
2019 | (license bsd-3))) | |
2020 | ||
2021 | (define-public python2-oauthlib | |
2022 | (let ((base (package-with-python2 python-oauthlib))) | |
2023 | (package | |
2024 | (inherit base) | |
2cec1f6f DT |
2025 | (inputs |
2026 | (append (package-inputs base) | |
2027 | `(("python2-unittest2" ,python2-unittest2))))))) | |
ec5dbb5c DT |
2028 | |
2029 | (define-public python-itsdangerous | |
2030 | (package | |
2031 | (name "python-itsdangerous") | |
2032 | (version "0.24") | |
2033 | (source | |
2034 | (origin | |
2035 | (method url-fetch) | |
2036 | (uri (string-append | |
2037 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" | |
2038 | version ".tar.gz")) | |
2039 | (sha256 | |
2040 | (base32 | |
2041 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) | |
2042 | (build-system python-build-system) | |
2043 | (inputs | |
2044 | `(("python-setuptools" ,python-setuptools))) | |
2045 | (home-page "http://github.com/mitsuhiko/itsdangerous") | |
2046 | (synopsis "Python library for passing data to/from untrusted environments") | |
2047 | (description | |
2048 | "Itsdangerous provides various helpers to pass trusted data to untrusted | |
2049 | environments and back.") | |
2050 | (license bsd-3))) | |
2051 | ||
2052 | (define-public python2-itsdangerous | |
2053 | (package-with-python2 python-itsdangerous)) | |
5731cae3 | 2054 | |
8d12be1e RW |
2055 | (define-public python-pyyaml |
2056 | (package | |
2057 | (name "python-pyyaml") | |
2058 | (version "3.11") | |
2059 | (source | |
2060 | (origin | |
2061 | (method url-fetch) | |
2062 | (uri (string-append | |
2063 | "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-" | |
2064 | version ".tar.gz")) | |
2065 | (sha256 | |
2066 | (base32 | |
2067 | "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63")))) | |
2068 | (build-system python-build-system) | |
2069 | (inputs | |
2070 | `(("libyaml" ,libyaml))) | |
2071 | (native-inputs | |
2072 | `(("python-setuptools" ,python-setuptools))) | |
2073 | (home-page "http://pyyaml.org/wiki/PyYAML") | |
2074 | (synopsis "YAML parser and emitter for Python") | |
2075 | (description | |
2076 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a | |
2077 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension | |
2078 | API, and sensible error messages. PyYAML supports standard YAML tags and | |
2079 | provides Python-specific tags that allow to represent an arbitrary Python | |
2080 | object.") | |
2081 | (license license:expat))) | |
2082 | ||
2083 | (define-public python2-pyyaml | |
2084 | (package-with-python2 python-pyyaml)) | |
2085 | ||
5731cae3 DT |
2086 | (define-public python-virtualenv |
2087 | (package | |
2088 | (name "python-virtualenv") | |
2089 | (version "1.11.6") | |
2090 | (source | |
2091 | (origin | |
2092 | (method url-fetch) | |
2093 | (uri (string-append | |
2094 | "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-" | |
2095 | version ".tar.gz")) | |
2096 | (sha256 | |
2097 | (base32 | |
2098 | "1xq4prmg25n9cz5zcvbqx68lmc3kl39by582vd8pzs9f3qalqyiy")))) | |
2099 | (build-system python-build-system) | |
2100 | (inputs | |
2101 | `(("python-setuptools" ,python-setuptools) | |
2102 | ("python-mock" ,python-mock) | |
2103 | ("python-nose" ,python-nose))) | |
2104 | (home-page "https://virtualenv.pypa.io/") | |
2105 | (synopsis "Virtual Python environment builder") | |
2106 | (description | |
2107 | "Virtualenv is a tool to create isolated Python environments.") | |
bd3fa666 | 2108 | (license license:expat))) |
5731cae3 DT |
2109 | |
2110 | (define-public python2-virtualenv | |
2111 | (package-with-python2 python-virtualenv)) | |
8176d4d5 DT |
2112 | |
2113 | (define-public python-markupsafe | |
2114 | (package | |
2115 | (name "python-markupsafe") | |
2116 | (version "0.23") | |
2117 | (source | |
2118 | (origin | |
2119 | (method url-fetch) | |
2120 | (uri (string-append | |
2121 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" | |
2122 | version ".tar.gz")) | |
2123 | (sha256 | |
2124 | (base32 | |
2125 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) | |
2126 | (build-system python-build-system) | |
2127 | (inputs | |
2128 | `(("python-setuptools" ,python-setuptools))) | |
2129 | (home-page "http://github.com/mitsuhiko/markupsafe") | |
2130 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") | |
2131 | (description | |
2132 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation | |
2133 | for Python.") | |
2134 | (license bsd-3))) | |
2135 | ||
2136 | (define-public python2-markupsafe | |
2137 | (package-with-python2 python-markupsafe)) | |
fe34f0d1 DT |
2138 | |
2139 | (define-public python-jinja2 | |
2140 | (package | |
2141 | (name "python-jinja2") | |
2142 | (version "2.7.3") | |
2143 | (source | |
2144 | (origin | |
2145 | (method url-fetch) | |
2146 | (uri (string-append | |
2147 | "https://pypi.python.org/packages/source/J/Jinja2/Jinja2-" | |
2148 | version ".tar.gz")) | |
2149 | (sha256 | |
2150 | (base32 | |
2151 | "1nwg9yfqgy421lncnm63k1zf9xkd1klc0jm0fr4p3dad01fsq91f")))) | |
2152 | (build-system python-build-system) | |
2153 | (inputs | |
2154 | `(("python-setuptools" ,python-setuptools) | |
2155 | ("python-markupsafe" ,python-markupsafe))) | |
2156 | (home-page "http://jinja.pocoo.org/") | |
2157 | (synopsis "Python template engine") | |
2158 | (description | |
2159 | "Jinja2 is a small but fast and easy to use stand-alone template engine | |
2160 | written in pure Python.") | |
2161 | (license bsd-3))) | |
2162 | ||
2163 | (define-public python2-jinja2 | |
2164 | (package-with-python2 python-jinja2)) | |
3580ab8b DT |
2165 | |
2166 | (define-public python-docutils | |
2167 | (package | |
2168 | (name "python-docutils") | |
2169 | (version "0.12") | |
2170 | (source | |
2171 | (origin | |
2172 | (method url-fetch) | |
2173 | (uri (string-append | |
2174 | "https://pypi.python.org/packages/source/d/docutils/docutils-" | |
2175 | version ".tar.gz")) | |
2176 | (sha256 | |
2177 | (base32 | |
2178 | "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7")))) | |
2179 | (build-system python-build-system) | |
2180 | (inputs | |
2181 | `(("python-setuptools" ,python-setuptools))) | |
2182 | (arguments | |
2183 | '(#:tests? #f)) ; no setup.py test command | |
2184 | (home-page "http://docutils.sourceforge.net/") | |
2185 | (synopsis "Python Documentation Utilities") | |
2186 | (description | |
2187 | "Docutils is a modular system for processing documentation into useful | |
2188 | formats, such as HTML, XML, and LaTeX. For input Docutils supports | |
2189 | reStructuredText.") | |
2190 | ;; Most of the source code is public domain, but some source files are | |
2191 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. | |
2192 | (license (list public-domain psfl bsd-2 gpl3+)))) | |
2193 | ||
2194 | (define-public python2-docutils | |
2195 | (package-with-python2 python-docutils)) | |
fb35b7c0 DT |
2196 | |
2197 | (define-public python-pygments | |
2198 | (package | |
2199 | (name "python-pygments") | |
2200 | (version "1.6") | |
2201 | (source | |
2202 | (origin | |
2203 | (method url-fetch) | |
2204 | (uri (string-append | |
2205 | "https://pypi.python.org/packages/source/P/Pygments/Pygments-" | |
2206 | version ".tar.gz")) | |
2207 | (sha256 | |
2208 | (base32 | |
2209 | "1h11r6ss8waih51vcksfvzghfxiav2f8svc0812fa5kmyz5d97kr")))) | |
2210 | (build-system python-build-system) | |
2211 | (inputs | |
2212 | `(("python-setuptools" ,python-setuptools))) | |
2213 | (home-page "http://pygments.org/") | |
2214 | (synopsis "Syntax highlighting") | |
2215 | (description | |
2216 | "Pygments is a syntax highlighting package written in Python.") | |
2217 | (license bsd-2))) | |
2218 | ||
2219 | (define-public python2-pygments | |
2220 | (package-with-python2 python-pygments)) | |
9dd6078d DT |
2221 | |
2222 | (define-public python-sphinx | |
2223 | (package | |
2224 | (name "python-sphinx") | |
2225 | (version "1.2.3") | |
2226 | (source | |
2227 | (origin | |
2228 | (method url-fetch) | |
2229 | (uri (string-append | |
2230 | "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" | |
2231 | version ".tar.gz")) | |
2232 | (sha256 | |
2233 | (base32 | |
2234 | "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) | |
2235 | (build-system python-build-system) | |
2236 | (inputs | |
2237 | `(("python-setuptools" ,python-setuptools) | |
2238 | ("python-jinja2" ,python-jinja2) | |
2239 | ("python-docutils" ,python-docutils) | |
2240 | ("python-pygments" ,python-pygments))) | |
2241 | (home-page "http://sphinx-doc.org/") | |
2242 | (synopsis "Python documentation generator") | |
2243 | (description "Sphinx is a tool that makes it easy to create documentation | |
2244 | for Python projects or other documents consisting of multiple reStructuredText | |
2245 | sources.") | |
2246 | (license bsd-3))) | |
2247 | ||
2248 | (define-public python2-sphinx | |
2249 | (package-with-python2 python-sphinx)) | |
6888830b | 2250 | |
ad320b20 RW |
2251 | (define-public python-sphinx-rtd-theme |
2252 | (package | |
2253 | (name "python-sphinx-rtd-theme") | |
2254 | (version "0.1.6") | |
2255 | (source | |
2256 | (origin | |
2257 | (method url-fetch) | |
2258 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
2259 | "sphinx_rtd_theme/sphinx_rtd_theme-" | |
2260 | version ".tar.gz")) | |
2261 | (sha256 | |
2262 | (base32 | |
2263 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) | |
2264 | (build-system python-build-system) | |
2265 | (arguments | |
2266 | `(;; With standard flags, the install phase attempts to create a zip'd | |
2267 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
2268 | ;; before 1980' | |
2269 | #:configure-flags '("--single-version-externally-managed" | |
2270 | "--record=sphinx-rtd-theme.txt"))) | |
2271 | (native-inputs | |
2272 | `(("python-setuptools" ,python-setuptools))) | |
2273 | (inputs | |
2274 | `(("python-docutils" ,python-docutils) | |
2275 | ("python-sphinx" ,python-sphinx))) | |
2276 | (home-page "https://github.com/snide/sphinx_rtd_theme/") | |
2277 | (synopsis "ReadTheDocs.org theme for Sphinx") | |
2278 | (description "A theme for Sphinx used by ReadTheDocs.org.") | |
bd3fa666 | 2279 | (license license:expat))) |
ad320b20 RW |
2280 | |
2281 | (define-public python2-sphinx-rtd-theme | |
2282 | (package-with-python2 python-sphinx-rtd-theme)) | |
2283 | ||
f4de5b3b CAW |
2284 | (define-public python-feedgenerator |
2285 | (package | |
2286 | (name "python-feedgenerator") | |
2287 | (version "20150710.97185b7") | |
2288 | (source | |
2289 | ;; Using the git checkout for now because license file not added till | |
2290 | ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39 | |
2291 | (origin | |
2292 | (method git-fetch) | |
2293 | (uri (git-reference | |
2294 | (url "https://github.com/dmdm/feedgenerator-py3k.git") | |
2295 | (commit "97185b7566c240c4bf5ed80db7d6c271204dab39"))) | |
2296 | (sha256 | |
2297 | (base32 | |
2298 | "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a")))) | |
2299 | (arguments | |
2300 | `(;; With standard flags, the install phase attempts to create a zip'd | |
2301 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
2302 | ;; before 1980' | |
2303 | #:configure-flags '("--single-version-externally-managed" | |
2304 | "--record=feedgenerator.txt"))) | |
2305 | (build-system python-build-system) | |
2306 | (inputs | |
2307 | `(("python-setuptools" ,python-setuptools) | |
2308 | ("python-pytz" ,python-pytz) | |
2309 | ("python-six" ,python-six))) | |
2310 | (home-page | |
2311 | "https://github.com/dmdm/feedgenerator-py3k.git") | |
2312 | (synopsis | |
2313 | "Standalone version of Django's Atom/RSS feed generator") | |
2314 | (description | |
2315 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, | |
2316 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") | |
2317 | (license bsd-3))) | |
2318 | ||
2319 | (define-public python2-feedgenerator | |
2320 | (package-with-python2 python-feedgenerator)) | |
2321 | ||
59ad30e3 CAW |
2322 | (define-public python-blinker |
2323 | (package | |
2324 | (name "python-blinker") | |
2325 | (version "1.3") | |
2326 | (source | |
2327 | (origin | |
2328 | (method url-fetch) | |
2329 | (uri (string-append | |
2330 | "https://pypi.python.org/packages/source/b/blinker/blinker-" | |
2331 | version ".tar.gz")) | |
2332 | (sha256 | |
2333 | (base32 | |
2334 | "0bvfxkmjx6bpa302pv7v2vw5rwr3dlzjzfdp3bj628i6144024b8")))) | |
2335 | (build-system python-build-system) | |
2336 | (native-inputs | |
2337 | `(("python-setuptools" ,python-setuptools))) | |
2338 | ;; No "test" command supplied to setuptools, so unless there's another way | |
2339 | ;; to run tests, we're skipping them! | |
2340 | (arguments '(#:tests? #f)) | |
2341 | (home-page "http://pythonhosted.org/blinker/") | |
2342 | (synopsis "Fast, simple object-to-object and broadcast signaling") | |
2343 | (description | |
2344 | "Blinker provides a fast dispatching system that allows any number of | |
2345 | interested parties to subscribe to events, or \"signals\".") | |
2346 | (license license:expat))) | |
2347 | ||
2348 | (define-public python2-blinker | |
2349 | (package-with-python2 python-blinker)) | |
2350 | ||
b8050e71 CAW |
2351 | (define-public pelican |
2352 | (package | |
2353 | (name "pelican") | |
2354 | (version "3.6.0") | |
2355 | (source | |
2356 | (origin | |
2357 | (method url-fetch) | |
2358 | (uri (string-append | |
2359 | "https://pypi.python.org/packages/source/p/pelican/pelican-" | |
2360 | version ".tar.gz")) | |
2361 | (sha256 | |
2362 | (base32 | |
2363 | "0lbkk902mqxpp452pp76n6qcjv6f99lq2zl204xmqyzcan9zr3ps")))) | |
2364 | (build-system python-build-system) | |
2365 | (native-inputs | |
2366 | `(("python-setuptools" ,python-setuptools))) | |
2367 | (propagated-inputs | |
2368 | `(("python-feedgenerator" ,python-feedgenerator) | |
2369 | ("python-jinja2" ,python-jinja2) | |
2370 | ("python-pygments" ,python-pygments) | |
2371 | ("python-docutils" ,python-docutils) | |
2372 | ("python-pytz" ,python-pytz) | |
2373 | ("python-blinker" ,python-blinker) | |
2374 | ("python-unidecode" ,python-unidecode) | |
2375 | ("python-six" ,python-six) | |
2376 | ("python-dateutil-2" ,python-dateutil-2))) | |
2377 | (home-page "http://getpelican.com/") | |
2378 | (arguments | |
2379 | `(;; XXX Requires a lot more packages to do unit tests :P | |
2380 | #:tests? #f | |
2381 | #:phases (modify-phases %standard-phases | |
2382 | (add-before | |
2383 | 'install 'adjust-requires | |
2384 | ;; Since feedgenerator is installed from git, it doesn't | |
2385 | ;; conform to the version requirements. | |
2386 | ;; | |
2387 | ;; We *do have* "feedgenerator >= 1.6", but strip off the | |
2388 | ;; version requirement so setuptools doesn't get confused. | |
2389 | (lambda _ | |
2390 | (substitute* "setup.py" | |
2391 | (("['\"]feedgenerator.*?['\"]") | |
2392 | "'feedgenerator'"))))))) | |
2393 | (synopsis "Python-based static site publishing system") | |
2394 | (description | |
2395 | "Pelican is a tool to generate a static blog from reStructuredText, | |
2396 | Markdown input files, and more. Pelican uses Jinja2 for templating | |
2397 | and is very extensible.") | |
2398 | (license agpl3+))) | |
2399 | ||
240ca4aa RW |
2400 | (define-public python-scikit-learn |
2401 | (package | |
2402 | (name "python-scikit-learn") | |
be0a4c26 | 2403 | (version "0.16.1") |
240ca4aa RW |
2404 | (source |
2405 | (origin | |
2406 | (method url-fetch) | |
2407 | (uri (string-append | |
2408 | "https://github.com/scikit-learn/scikit-learn/archive/" | |
2409 | version ".tar.gz")) | |
2410 | (sha256 | |
2411 | (base32 | |
be0a4c26 | 2412 | "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih")))) |
240ca4aa RW |
2413 | (build-system python-build-system) |
2414 | (arguments | |
2415 | `(#:phases | |
2416 | (alist-cons-before | |
2f6b3d2e RW |
2417 | 'check 'set-HOME |
2418 | ;; some tests require access to "$HOME" | |
2419 | (lambda _ (setenv "HOME" "/tmp")) | |
2420 | ;; Tests can only be run after the library has been installed and not | |
2421 | ;; within the source directory. | |
2422 | (alist-cons-after | |
2423 | 'install 'check | |
2424 | (lambda _ | |
2425 | (with-directory-excursion "/tmp" | |
2426 | ;; With Python 3 one test of 3334 fails | |
2427 | ;; (sklearn.tests.test_common.test_transformers); see | |
2428 | ;; https://github.com/scikit-learn/scikit-learn/issues/3693 | |
2429 | (system* "nosetests" "-v" "sklearn"))) | |
2430 | (alist-delete 'check %standard-phases))))) | |
240ca4aa | 2431 | (inputs |
2f6b3d2e | 2432 | `(("openblas" ,openblas) |
240ca4aa RW |
2433 | ("python-nose" ,python-nose))) |
2434 | (propagated-inputs | |
2435 | `(("python-numpy" ,python-numpy) | |
2436 | ("python-scipy" ,python-scipy))) | |
2437 | (home-page "http://scikit-learn.org/") | |
2438 | (synopsis "Machine Learning in Python") | |
2439 | (description | |
2440 | "Scikit-learn provides simple and efficient tools for data | |
2441 | mining and data analysis.") | |
2442 | (license bsd-3))) | |
2443 | ||
2444 | (define-public python2-scikit-learn | |
2445 | (let ((scikit (package-with-python2 python-scikit-learn))) | |
2446 | (package (inherit scikit) | |
2447 | (propagated-inputs | |
2448 | `(("python2-numpy" ,python2-numpy) | |
2449 | ("python2-scipy" ,python2-scipy) | |
2450 | ,@(alist-delete | |
2451 | "python-numpy" | |
2452 | (alist-delete | |
2453 | "python-scipy" (package-propagated-inputs scikit)))))))) | |
2454 | ||
12f8f9bb RW |
2455 | (define-public python-scikit-image |
2456 | (package | |
2457 | (name "python-scikit-image") | |
2458 | (version "0.11.3") | |
2459 | (source | |
2460 | (origin | |
2461 | (method url-fetch) | |
2462 | (uri (string-append | |
2463 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" | |
2464 | version ".tar.gz")) | |
2465 | (sha256 | |
2466 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) | |
2467 | (build-system python-build-system) | |
2468 | (propagated-inputs | |
2469 | `(("python-matplotlib" ,python-matplotlib) | |
2470 | ("python-networkx" ,python-networkx) | |
2471 | ("python-numpy" ,python-numpy) | |
2472 | ("python-scipy" ,python-scipy) | |
2473 | ("python-six" ,python-six) | |
2474 | ("python-pillow" ,python-pillow))) | |
2475 | (native-inputs | |
2476 | `(("python-cython" ,python-cython) | |
2477 | ("python-setuptools" ,python-setuptools))) | |
2478 | (home-page "http://scikit-image.org/") | |
2479 | (synopsis "Image processing in Python") | |
2480 | (description | |
e881752c | 2481 | "Scikit-image is a collection of algorithms for image processing.") |
12f8f9bb RW |
2482 | (license bsd-3))) |
2483 | ||
2484 | (define-public python2-scikit-image | |
2485 | (let ((scikit-image (package-with-python2 python-scikit-image))) | |
2486 | (package (inherit scikit-image) | |
2487 | (native-inputs | |
2488 | `(("python2-mock" ,python2-mock) | |
2489 | ,@(package-native-inputs scikit-image))) | |
2490 | (propagated-inputs | |
2491 | `(("python2-pytz" ,python2-pytz) | |
2492 | ,@(package-propagated-inputs scikit-image)))))) | |
2493 | ||
5394a6a6 RW |
2494 | (define-public python-redis |
2495 | (package | |
2496 | (name "python-redis") | |
2497 | (version "2.10.3") | |
2498 | (source | |
2499 | (origin | |
2500 | (method url-fetch) | |
2501 | (uri (string-append | |
2502 | "https://pypi.python.org/packages/source/r/redis/redis-" | |
2503 | version ".tar.gz")) | |
2504 | (sha256 | |
2505 | (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4")))) | |
2506 | (build-system python-build-system) | |
2507 | ;; Tests require a running Redis server | |
2508 | (arguments '(#:tests? #f)) | |
2509 | (native-inputs | |
2510 | `(("python-setuptools" ,python-setuptools) | |
2511 | ("python-pytest" ,python-pytest))) | |
2512 | (home-page "https://github.com/andymccurdy/redis-py") | |
2513 | (synopsis "Redis Python client") | |
2514 | (description | |
2515 | "This package provides a Python interface to the Redis key-value store.") | |
2516 | (license license:expat))) | |
2517 | ||
2518 | (define-public python2-redis | |
2519 | (package-with-python2 python-redis)) | |
2520 | ||
748cef5b RW |
2521 | (define-public python-rq |
2522 | (package | |
2523 | (name "python-rq") | |
2524 | (version "0.5.2") | |
2525 | (source | |
2526 | (origin | |
2527 | (method url-fetch) | |
2528 | (uri (string-append | |
2529 | "https://pypi.python.org/packages/source/r/rq/rq-" | |
2530 | version ".tar.gz")) | |
2531 | (sha256 | |
2532 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) | |
2533 | (build-system python-build-system) | |
2534 | (propagated-inputs | |
2535 | `(("python-click" ,python-click) | |
2536 | ("python-redis" ,python-redis))) | |
2537 | (native-inputs | |
2538 | `(("python-setuptools" ,python-setuptools))) | |
2539 | (home-page "http://python-rq.org/") | |
2540 | (synopsis "Simple job queues for Python") | |
2541 | (description | |
2542 | "RQ (Redis Queue) is a simple Python library for queueing jobs and | |
2543 | processing them in the background with workers. It is backed by Redis and it | |
2544 | is designed to have a low barrier to entry.") | |
2545 | (license bsd-2))) | |
2546 | ||
2547 | (define-public python2-rq | |
2548 | (package-with-python2 python-rq)) | |
2549 | ||
6888830b FB |
2550 | (define-public python-cython |
2551 | (package | |
2552 | (name "python-cython") | |
2553 | (version "0.21.1") | |
2554 | (source | |
2555 | (origin | |
2556 | (method url-fetch) | |
2557 | (uri (string-append "http://cython.org/release/Cython-" | |
2558 | version ".tar.gz")) | |
2559 | (sha256 | |
2560 | (base32 | |
2561 | "0ddz2l2dvcy5hdkxx4xlfiwpccvwia7ixgcy4h0pdv46a4i4vxj3")))) | |
2562 | (build-system python-build-system) | |
2563 | ;; we need the full python package and not just the python-wrapper | |
2564 | ;; because we need libpython3.3m.so | |
2565 | (inputs | |
2566 | `(("python" ,python))) | |
2567 | (arguments | |
2568 | `(#:phases | |
2569 | (alist-cons-before | |
2570 | 'check 'set-HOME | |
2571 | ;; some tests require access to "$HOME/.cython" | |
2572 | (lambda* _ (setenv "HOME" "/tmp")) | |
2573 | (alist-replace | |
2574 | 'check | |
2575 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))) | |
2576 | %standard-phases)))) | |
2577 | (home-page "http://cython.org/") | |
2578 | (synopsis "C extensions for Python") | |
2579 | (description "Cython is an optimising static compiler for both the Python | |
2580 | programming language and the extended Cython programming language. It makes | |
2581 | writing C extensions for Python as easy as Python itself.") | |
2582 | (license asl2.0))) | |
2583 | ||
2584 | (define-public python2-cython | |
2585 | (package (inherit (package-with-python2 python-cython)) | |
2586 | (name "python2-cython") | |
2587 | (inputs | |
2588 | `(("python-2" ,python-2))))) ; this is not automatically changed | |
0da98533 FB |
2589 | |
2590 | ;; This version of numpy is missing the documentation and is only used to | |
2591 | ;; build matplotlib which is required to build numpy's documentation. | |
2592 | (define python-numpy-bootstrap | |
2593 | (package | |
2594 | (name "python-numpy-bootstrap") | |
2595 | (version "1.9.1") | |
2596 | (source | |
2597 | (origin | |
2598 | (method url-fetch) | |
2599 | (uri (string-append "mirror://sourceforge/numpy" | |
2600 | "/numpy-" version ".tar.gz")) | |
2601 | (sha256 | |
2602 | (base32 | |
2603 | "070ybfvpgfmiz2hs94x445hvkh9dh52nyi0m8jp5kdihgvhbnx80")))) | |
2604 | (build-system python-build-system) | |
2605 | (inputs | |
2606 | `(("python-nose" ,python-nose) | |
cba256f8 RW |
2607 | ("openblas" ,openblas) |
2608 | ("lapack" ,lapack))) | |
0da98533 | 2609 | (native-inputs |
19afbea1 | 2610 | `(("gfortran" ,gfortran))) |
0da98533 FB |
2611 | (arguments |
2612 | `(#:phases | |
2613 | (alist-cons-before | |
2614 | 'build 'set-environment-variables | |
2615 | (lambda* (#:key inputs #:allow-other-keys) | |
dbdfe515 RW |
2616 | (call-with-output-file "site.cfg" |
2617 | (lambda (port) | |
cba256f8 RW |
2618 | (format port |
2619 | "[openblas] | |
dbdfe515 RW |
2620 | libraries = openblas |
2621 | library_dirs = ~a/lib | |
2622 | include_dirs = ~a/include | |
cba256f8 RW |
2623 | |
2624 | [lapack] | |
2625 | lapack_libs = lapack | |
2626 | library_dirs = ~a/lib | |
2627 | include_dirs = ~a/include | |
2628 | " | |
2629 | (assoc-ref inputs "openblas") | |
2630 | (assoc-ref inputs "openblas") | |
2631 | (assoc-ref inputs "lapack") | |
2632 | (assoc-ref inputs "lapack")))) | |
dbdfe515 RW |
2633 | ;; Use "gcc" executable, not "cc". |
2634 | (substitute* "numpy/distutils/system_info.py" | |
2635 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") | |
2636 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) | |
2637 | #t) | |
6a843168 FB |
2638 | ;; Tests can only be run after the library has been installed and not |
2639 | ;; within the source directory. | |
2640 | (alist-cons-after | |
2641 | 'install 'check | |
89b5c60e | 2642 | (lambda _ |
6a843168 | 2643 | (with-directory-excursion "/tmp" |
89b5c60e | 2644 | (zero? (system* "python" "-c" |
6a843168 | 2645 | "import numpy; numpy.test(verbose=2)")))) |
89b5c60e AE |
2646 | (alist-delete |
2647 | 'check | |
6a843168 | 2648 | %standard-phases))))) |
0da98533 FB |
2649 | (home-page "http://www.numpy.org/") |
2650 | (synopsis "Fundamental package for scientific computing with Python") | |
2651 | (description "NumPy is the fundamental package for scientific computing | |
e881752c | 2652 | with Python. It contains among other things: a powerful N-dimensional array |
0da98533 FB |
2653 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
2654 | and Fortran code, useful linear algebra, Fourier transform, and random number | |
2655 | capabilities.") | |
2656 | (license bsd-3))) | |
2657 | ||
2658 | (define python2-numpy-bootstrap | |
2659 | (package-with-python2 python-numpy-bootstrap)) | |
15bfe6d6 | 2660 | |
3a1bfe18 RW |
2661 | (define-public python2-fastlmm |
2662 | (package | |
2663 | (name "python2-fastlmm") | |
2664 | (version "0.2.14") | |
2665 | (source | |
2666 | (origin | |
2667 | (method url-fetch) | |
2668 | (uri (string-append | |
2669 | "https://pypi.python.org/packages/source/f/fastlmm" | |
2670 | "/fastlmm-" version ".zip")) | |
2671 | (sha256 | |
2672 | (base32 | |
2673 | "023sydkrc3yxad2bycar02jfswwlh4199kafzhf2bssyx2c3xa0l")))) | |
2674 | (build-system python-build-system) | |
2675 | (arguments | |
2676 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
2677 | (propagated-inputs | |
2678 | `(("python2-numpy" ,python2-numpy) | |
2679 | ("python2-scipy" ,python2-scipy) | |
2680 | ("python2-matplotlib" ,python2-matplotlib) | |
2681 | ("python2-pandas" ,python2-pandas) | |
2682 | ("python2-scikit-learn" ,python2-scikit-learn) | |
2683 | ("python2-cython" ,python2-cython) | |
2684 | ("python2-pysnptools" ,python2-pysnptools))) | |
2685 | (native-inputs | |
2686 | `(("unzip" ,unzip) | |
2687 | ("python2-mock" ,python2-mock) | |
2688 | ("python2-setuptools" ,python2-setuptools))) | |
2689 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") | |
2690 | (synopsis "Perform genome-wide association studies on large data sets") | |
2691 | (description | |
2692 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed | |
2693 | Models, is a program for performing both single-SNP and SNP-set genome-wide | |
2694 | association studies (GWAS) on extremely large data sets.") | |
2695 | (license asl2.0))) | |
2696 | ||
2ee8869a FB |
2697 | (define-public python-numpy |
2698 | (package (inherit python-numpy-bootstrap) | |
2699 | (name "python-numpy") | |
2700 | (outputs '("out" "doc")) | |
89b5c60e | 2701 | (inputs |
2ee8869a FB |
2702 | `(("which" ,which) |
2703 | ("python-setuptools" ,python-setuptools) | |
2704 | ("python-matplotlib" ,python-matplotlib) | |
2705 | ("python-sphinx" ,python-sphinx) | |
2706 | ("python-pyparsing" ,python-pyparsing) | |
2707 | ("python-numpydoc" ,python-numpydoc) | |
2708 | ,@(package-inputs python-numpy-bootstrap))) | |
2709 | (native-inputs | |
2710 | `(("pkg-config" ,pkg-config) | |
2711 | ("texlive" ,texlive) | |
2712 | ("texinfo" ,texinfo) | |
2713 | ("perl" ,perl) | |
2714 | ,@(package-native-inputs python-numpy-bootstrap))) | |
2715 | (arguments | |
89b5c60e | 2716 | `(,@(substitute-keyword-arguments |
2ee8869a FB |
2717 | (package-arguments python-numpy-bootstrap) |
2718 | ((#:phases phases) | |
2719 | `(alist-cons-after | |
2720 | 'install 'install-doc | |
2721 | (lambda* (#:key outputs #:allow-other-keys) | |
2722 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
89b5c60e AE |
2723 | (doc (string-append |
2724 | data "/doc/" ,name "-" | |
2ee8869a FB |
2725 | ,(package-version python-numpy-bootstrap))) |
2726 | (info (string-append data "/info")) | |
2727 | (html (string-append doc "/html")) | |
2728 | (pyver ,(string-append "PYVER="))) | |
2729 | (with-directory-excursion "doc" | |
2730 | (mkdir-p html) | |
2731 | (system* "make" "html" pyver) | |
2732 | (system* "make" "latex" "PAPER=a4" pyver) | |
89b5c60e | 2733 | (system* "make" "-C" "build/latex" |
2ee8869a FB |
2734 | "all-pdf" "PAPER=a4" pyver) |
2735 | ;; FIXME: Generation of the info file fails. | |
2736 | ;; (system* "make" "info" pyver) | |
2737 | ;; (mkdir-p info) | |
2738 | ;; (copy-file "build/texinfo/numpy.info" | |
2739 | ;; (string-append info "/numpy.info")) | |
2740 | (for-each (lambda (file) | |
2741 | (copy-file (string-append "build/latex" file) | |
2742 | (string-append doc file))) | |
2743 | '("/numpy-ref.pdf" "/numpy-user.pdf")) | |
2744 | (with-directory-excursion "build/html" | |
2745 | (for-each (lambda (file) | |
2746 | (let* ((dir (dirname file)) | |
2747 | (tgt-dir (string-append html "/" dir))) | |
2748 | (unless (equal? "." dir) | |
2749 | (mkdir-p tgt-dir)) | |
2750 | (copy-file file (string-append html "/" file)))) | |
2751 | (find-files "." ".*")))))) | |
2752 | ,phases))))))) | |
2753 | ||
764c077b LC |
2754 | (define-public python2-numpy |
2755 | (let ((numpy (package-with-python2 python-numpy))) | |
2756 | (package (inherit numpy) | |
88c26834 AE |
2757 | ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for |
2758 | ;; Python 2. | |
2759 | (inputs `(("python2-matplotlib" ,python2-matplotlib) | |
2760 | ,@(alist-delete "python-matplotlib" | |
2761 | (package-inputs numpy))))))) | |
2ee8869a | 2762 | |
15bfe6d6 FB |
2763 | (define-public python-pyparsing |
2764 | (package | |
2765 | (name "python-pyparsing") | |
e0669289 | 2766 | (version "2.0.3") |
15bfe6d6 FB |
2767 | (source |
2768 | (origin | |
2769 | (method url-fetch) | |
2770 | (uri (string-append "mirror://sourceforge/pyparsing" | |
2771 | "/pyparsing-" version ".tar.gz")) | |
2772 | (sha256 | |
2773 | (base32 | |
e0669289 | 2774 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
15bfe6d6 FB |
2775 | (build-system python-build-system) |
2776 | (outputs '("out" "doc")) | |
2777 | (arguments | |
2778 | `(#:tests? #f ; no test target | |
2779 | #:modules ((guix build python-build-system) | |
2780 | (guix build utils)) | |
2781 | #:phases | |
2782 | (alist-cons-after | |
2783 | 'install 'install-doc | |
2784 | (lambda* (#:key outputs #:allow-other-keys) | |
89b5c60e | 2785 | (let* ((doc (string-append (assoc-ref outputs "doc") |
15bfe6d6 FB |
2786 | "/share/doc/" ,name "-" ,version)) |
2787 | (html-doc (string-append doc "/html")) | |
2788 | (examples (string-append doc "/examples"))) | |
2789 | (mkdir-p html-doc) | |
2790 | (mkdir-p examples) | |
89b5c60e | 2791 | (for-each |
15bfe6d6 | 2792 | (lambda (dir tgt) |
89b5c60e | 2793 | (map (lambda (file) |
15bfe6d6 FB |
2794 | (copy-file file (string-append tgt "/" (basename file)))) |
2795 | (find-files dir ".*"))) | |
2796 | (list "docs" "htmldoc" "examples") | |
2797 | (list doc html-doc examples)))) | |
2798 | %standard-phases))) | |
2799 | (home-page "http://pyparsing.wikispaces.com") | |
2800 | (synopsis "Python parsing class library") | |
2801 | (description | |
2802 | "The pyparsing module is an alternative approach to creating and | |
2803 | executing simple grammars, vs. the traditional lex/yacc approach, or the use | |
2804 | of regular expressions. The pyparsing module provides a library of classes | |
2805 | that client code uses to construct the grammar directly in Python code.") | |
bd3fa666 | 2806 | (license license:expat))) |
15bfe6d6 FB |
2807 | |
2808 | (define-public python2-pyparsing | |
2809 | (package-with-python2 python-pyparsing)) | |
2810 | ||
ec00de35 FB |
2811 | (define-public python-numpydoc |
2812 | (package | |
2813 | (name "python-numpydoc") | |
2814 | (version "0.5") | |
2815 | (source | |
2816 | (origin | |
2817 | (method url-fetch) | |
89b5c60e | 2818 | (uri (string-append |
ec00de35 FB |
2819 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
2820 | version ".tar.gz")) | |
2821 | (sha256 | |
2822 | (base32 | |
5e4d8f67 AE |
2823 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
2824 | (modules '((guix build utils))) | |
2825 | (snippet | |
2826 | '(begin | |
2827 | ;; Drop a test requiring matplotlib, which we cannot add as an | |
2828 | ;; input since it would create a circular dependency: Extend the | |
2829 | ;; test for Python 3, where it is already dropped, to Python 2. | |
2830 | (substitute* "numpydoc/tests/test_plot_directive.py" | |
2831 | (("3") "2")))))) | |
ec00de35 FB |
2832 | (build-system python-build-system) |
2833 | (inputs | |
2834 | `(("python-setuptools" ,python-setuptools) | |
2835 | ("python-docutils" ,python-docutils) | |
2836 | ("python-sphinx" ,python-sphinx) | |
2837 | ("python-nose" ,python-nose))) | |
2838 | (home-page "https://pypi.python.org/pypi/numpydoc") | |
2839 | (synopsis | |
2840 | "Numpy's Sphinx extensions") | |
2841 | (description | |
2842 | "Sphinx extension to support docstrings in Numpy format.") | |
2843 | (license bsd-2))) | |
2844 | ||
2845 | (define-public python2-numpydoc | |
5e4d8f67 | 2846 | (package-with-python2 python-numpydoc)) |
1c65314c FB |
2847 | |
2848 | (define-public python-matplotlib | |
2849 | (package | |
2850 | (name "python-matplotlib") | |
2851 | (version "1.4.2") | |
2852 | (source | |
2853 | (origin | |
2854 | (method url-fetch) | |
2855 | (uri (string-append "mirror://sourceforge/matplotlib" | |
2856 | "/matplotlib-" version ".tar.gz")) | |
2857 | (sha256 | |
2858 | (base32 | |
2859 | "0m6v9nwdldlwk22gcd339zg6mny5m301fxgks7z8sb8m9wawg8qp")))) | |
2860 | (build-system python-build-system) | |
2861 | (outputs '("out" "doc")) | |
25f9a068 FB |
2862 | (propagated-inputs ; the following packages are all needed at run time |
2863 | `(("python-pyparsing" ,python-pyparsing) | |
2864 | ("python-pygobject" ,python-pygobject) | |
2865 | ("gobject-introspection" ,gobject-introspection) | |
2866 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated | |
2867 | ;; from 'gtk+') provides the required 'typelib' files used by | |
2868 | ;; 'gobject-introspection'. The location of these files is set with the | |
2869 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this | |
2870 | ;; is done automatically by a 'native-search-path' procedure. However, | |
2871 | ;; at run-time the user must set this variable as follows: | |
2872 | ;; | |
2873 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 | |
25f9a068 FB |
2874 | ("gtk+" ,gtk+) |
2875 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of | |
2876 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' | |
2877 | ;; object. For this reason we need to import both libraries. | |
2878 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo | |
2879 | ("python-pycairo" ,python-pycairo) | |
2880 | ("python-cairocffi" ,python-cairocffi))) | |
1c65314c FB |
2881 | (inputs |
2882 | `(("python-setuptools" ,python-setuptools) | |
2883 | ("python-dateutil" ,python-dateutil-2) | |
1c65314c FB |
2884 | ("python-six" ,python-six) |
2885 | ("python-pytz" ,python-pytz) | |
2886 | ("python-numpy" ,python-numpy-bootstrap) | |
2887 | ("python-sphinx" ,python-sphinx) | |
2888 | ("python-numpydoc" ,python-numpydoc) | |
2889 | ("python-nose" ,python-nose) | |
2890 | ("python-mock" ,python-mock) | |
2891 | ("libpng" ,libpng) | |
2892 | ("imagemagick" ,imagemagick) | |
2893 | ("freetype" ,freetype) | |
25f9a068 FB |
2894 | ("cairo" ,cairo) |
2895 | ("glib" ,glib) | |
4e7a137a | 2896 | ("python-pillow" ,python-pillow) |
1c65314c | 2897 | ;; FIXME: Add backends when available. |
1c65314c FB |
2898 | ;("python-wxpython" ,python-wxpython) |
2899 | ;("python-pyqt" ,python-pyqt) | |
2900 | )) | |
2901 | (native-inputs | |
2902 | `(("pkg-config" ,pkg-config) | |
2903 | ("texlive" ,texlive) | |
2904 | ("texinfo" ,texinfo))) | |
2905 | (arguments | |
2906 | `(#:phases | |
25f9a068 FB |
2907 | (alist-cons-before |
2908 | 'build 'configure-environment | |
2909 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
2910 | (let ((cairo (assoc-ref inputs "cairo")) | |
2911 | (gtk+ (assoc-ref inputs "gtk+"))) | |
2912 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' | |
2913 | ;; has not effect. | |
25f9a068 FB |
2914 | (setenv "LD_LIBRARY_PATH" |
2915 | (string-append cairo "/lib:" gtk+ "/lib")) | |
2916 | (setenv "HOME" (getcwd)) | |
2917 | (call-with-output-file "setup.cfg" | |
2918 | (lambda (port) | |
2919 | (format port "[rc_options]~% | |
2920 | backend = GTK3Agg~%"))))) | |
2921 | (alist-cons-after | |
2922 | 'install 'install-doc | |
2923 | (lambda* (#:key outputs #:allow-other-keys) | |
2924 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
2925 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
2926 | (info (string-append data "/info")) | |
2927 | (html (string-append doc "/html"))) | |
2928 | (with-directory-excursion "doc" | |
25f9a068 FB |
2929 | ;; Produce pdf in 'A4' format. |
2930 | (substitute* (find-files "." "conf\\.py") | |
2931 | (("latex_paper_size = 'letter'") | |
2932 | "latex_paper_size = 'a4'")) | |
2933 | (mkdir-p html) | |
2934 | (mkdir-p info) | |
2935 | ;; The doc recommends to run the 'html' target twice. | |
2936 | (system* "python" "make.py" "html") | |
2937 | (system* "python" "make.py" "html") | |
2938 | (system* "python" "make.py" "latex") | |
2939 | (system* "python" "make.py" "texinfo") | |
2940 | (copy-file "build/texinfo/matplotlib.info" | |
2941 | (string-append info "/matplotlib.info")) | |
2942 | (copy-file "build/latex/Matplotlib.pdf" | |
2943 | (string-append doc "/Matplotlib.pdf")) | |
2944 | (copy-recursively "build/html" html)))) | |
2945 | %standard-phases)))) | |
1c65314c FB |
2946 | (home-page "http://matplotlib.org") |
2947 | (synopsis "2D plotting library for Python") | |
2948 | (description | |
2949 | "Matplotlib is a Python 2D plotting library which produces publication | |
2950 | quality figures in a variety of hardcopy formats and interactive environments | |
2951 | across platforms. Matplotlib can be used in Python scripts, the python and | |
2952 | ipython shell, web application servers, and six graphical user interface | |
2953 | toolkits.") | |
2954 | (license psfl))) | |
2955 | ||
764c077b LC |
2956 | (define-public python2-matplotlib |
2957 | (let ((matplotlib (package-with-python2 python-matplotlib))) | |
2958 | (package (inherit matplotlib) | |
88c26834 AE |
2959 | ;; Make sure to use special packages for Python 2 instead |
2960 | ;; of those automatically rewritten by package-with-python2. | |
89b5c60e | 2961 | (propagated-inputs |
7ca0dbc3 | 2962 | `(("python2-pycairo" ,python2-pycairo) |
764c077b LC |
2963 | ("python2-pygobject-2" ,python2-pygobject-2) |
2964 | ,@(alist-delete "python-pycairo" | |
2965 | (alist-delete "python-pygobject" | |
89b5c60e | 2966 | (package-propagated-inputs |
88c26834 | 2967 | matplotlib)))))))) |
94914805 | 2968 | |
0dde6232 RW |
2969 | (define-public python2-pysnptools |
2970 | (package | |
2971 | (name "python2-pysnptools") | |
2972 | (version "0.2.13") | |
2973 | (source | |
2974 | (origin | |
2975 | (method url-fetch) | |
2976 | (uri (string-append | |
2977 | "https://pypi.python.org/packages/source/p/pysnptools" | |
2978 | "/pysnptools-" version ".zip")) | |
2979 | (sha256 | |
2980 | (base32 | |
2981 | "1rzf5qvwfvd2pp84b14pb2gdvxdk5avnj7rb41ac8gndpkr9g6ib")))) | |
2982 | (build-system python-build-system) | |
2983 | (arguments | |
2984 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
2985 | (propagated-inputs | |
2986 | `(("python2-numpy" ,python2-numpy) | |
2987 | ("python2-scipy" ,python2-scipy) | |
2988 | ("python2-pandas" ,python2-pandas) | |
2989 | ("python2-cython" ,python2-cython))) | |
2990 | (native-inputs | |
2991 | `(("unzip" ,unzip) | |
2992 | ("python2-setuptools" ,python2-setuptools))) | |
2993 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") | |
2994 | (synopsis "Library for reading and manipulating genetic data") | |
2995 | (description | |
2996 | "PySnpTools is a library for reading and manipulating genetic data. It | |
2997 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of | |
2998 | those files. It can also efficiently manipulate ranges of integers using set | |
2999 | operators such as union, intersection, and difference.") | |
3000 | (license asl2.0))) | |
3001 | ||
c9b1b4f9 RW |
3002 | (define-public python-rpy2 |
3003 | (package | |
3004 | (name "python-rpy2") | |
3005 | (version "2.6.0") | |
3006 | (source | |
3007 | (origin | |
3008 | (method url-fetch) | |
3009 | (uri (string-append "https://pypi.python.org/packages/source/r/rpy2" | |
3010 | "/rpy2-" version ".tar.gz")) | |
3011 | (sha256 | |
3012 | (base32 | |
3013 | "1dp4l8hpv0jpf4crz4wis6in3lvwk86cr5zvpw410y4a07rrbqjk")))) | |
3014 | (build-system python-build-system) | |
3015 | (inputs | |
3016 | `(("python-six" ,python-six) | |
3017 | ("readline" ,readline) | |
3018 | ("icu4c" ,icu4c) | |
3019 | ("pcre" ,pcre) | |
3020 | ("r" ,r))) | |
3021 | (native-inputs | |
3022 | `(("python-setuptools" ,python-setuptools))) | |
3023 | (home-page "http://rpy.sourceforge.net/") | |
3024 | (synopsis "Python interface to the R language") | |
3025 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a | |
3026 | low-level interface to R from Python, a proposed high-level interface, | |
3027 | including wrappers to graphical libraries, as well as R-like structures and | |
3028 | functions.") | |
3029 | (license gpl3+))) | |
3030 | ||
3031 | (define-public python2-rpy2 | |
3032 | (let ((rpy2 (package-with-python2 python-rpy2))) | |
3033 | (package (inherit rpy2) | |
3034 | (native-inputs | |
3035 | `(("python2-singledispatch" ,python2-singledispatch) | |
3036 | ,@(package-native-inputs rpy2)))))) | |
3037 | ||
bb986599 FB |
3038 | (define-public python-scipy |
3039 | (package | |
3040 | (name "python-scipy") | |
da6ce3f1 | 3041 | (version "0.15.0") |
bb986599 FB |
3042 | (source |
3043 | (origin | |
3044 | (method url-fetch) | |
3045 | (uri (string-append "mirror://sourceforge/scipy" | |
da6ce3f1 | 3046 | "/scipy-" version ".tar.xz")) |
bb986599 FB |
3047 | (sha256 |
3048 | (base32 | |
da6ce3f1 | 3049 | "0fsqi05s035d7p6s8h3h2pvk1axias16chy17rw9l1bxvrfhmncf")))) |
bb986599 FB |
3050 | (build-system python-build-system) |
3051 | (inputs | |
3052 | `(("python-numpy" ,python-numpy) | |
3053 | ("python-matplotlib" ,python-matplotlib) | |
3054 | ("python-pyparsing" ,python-pyparsing) | |
3055 | ("python-nose" ,python-nose) | |
3056 | ("python-sphinx" ,python-sphinx) | |
719b01c1 RW |
3057 | ("lapack" ,lapack) |
3058 | ("openblas" ,openblas))) | |
bb986599 | 3059 | (native-inputs |
19afbea1 | 3060 | `(("gfortran" ,gfortran) |
bb986599 FB |
3061 | ("texlive" ,texlive) |
3062 | ("perl" ,perl))) | |
3063 | (outputs '("out" "doc")) | |
3064 | (arguments | |
3065 | `(#:phases | |
3066 | (alist-cons-before | |
719b01c1 | 3067 | 'build 'configure-openblas |
bb986599 | 3068 | (lambda* (#:key inputs #:allow-other-keys) |
719b01c1 RW |
3069 | (call-with-output-file "site.cfg" |
3070 | (lambda (port) | |
3071 | (format port | |
3072 | "[blas] | |
3073 | libraries = openblas | |
3074 | library_dirs = ~a/lib | |
3075 | include_dirs = ~a/include | |
3076 | [atlas] | |
3077 | library_dirs = ~a/lib | |
3078 | atlas_libs = openblas | |
3079 | " | |
3080 | (assoc-ref inputs "openblas") | |
3081 | (assoc-ref inputs "openblas") | |
3082 | (assoc-ref inputs "openblas")))) | |
3083 | #t) | |
bb986599 FB |
3084 | (alist-cons-after |
3085 | 'install 'install-doc | |
3086 | (lambda* (#:key outputs #:allow-other-keys) | |
3087 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3088 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3089 | (html (string-append doc "/html")) | |
3090 | (pyver ,(string-append "PYVER="))) | |
3091 | (with-directory-excursion "doc" | |
bb986599 FB |
3092 | ;; Fix generation of images for mathematical expressions. |
3093 | (substitute* (find-files "source" "conf\\.py") | |
3094 | (("pngmath_use_preview = True") | |
3095 | "pngmath_use_preview = False")) | |
3096 | (mkdir-p html) | |
3097 | (system* "make" "html" pyver) | |
3098 | (system* "make" "latex" "PAPER=a4" pyver) | |
3099 | (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver) | |
3100 | (copy-file "build/latex/scipy-ref.pdf" | |
3101 | (string-append doc "/scipy-ref.pdf")) | |
3102 | (with-directory-excursion "build/html" | |
3103 | (for-each (lambda (file) | |
3104 | (let* ((dir (dirname file)) | |
3105 | (tgt-dir (string-append html "/" dir))) | |
3106 | (unless (equal? "." dir) | |
3107 | (mkdir-p tgt-dir)) | |
3108 | (copy-file file (string-append html "/" file)))) | |
3109 | (find-files "." ".*")))))) | |
3110 | ;; Tests can only be run after the library has been installed and not | |
3111 | ;; within the source directory. | |
3112 | (alist-cons-after | |
3113 | 'install 'check | |
89b5c60e | 3114 | (lambda _ |
bb986599 FB |
3115 | (with-directory-excursion "/tmp" |
3116 | (zero? (system* "python" "-c" "import scipy; scipy.test()")))) | |
89b5c60e AE |
3117 | (alist-delete |
3118 | 'check | |
bb986599 FB |
3119 | %standard-phases)))))) |
3120 | (home-page "http://www.scipy.org/") | |
3121 | (synopsis "The Scipy library provides efficient numerical routines") | |
3122 | (description "The SciPy library is one of the core packages that make up | |
3123 | the SciPy stack. It provides many user-friendly and efficient numerical | |
3124 | routines such as routines for numerical integration and optimization.") | |
3125 | (license bsd-3))) | |
3126 | ||
764c077b LC |
3127 | (define-public python2-scipy |
3128 | (let ((scipy (package-with-python2 python-scipy))) | |
3129 | (package (inherit scipy) | |
3130 | ;; Use packages customized for python-2. | |
3131 | (inputs `(("python2-matplotlib" ,python2-matplotlib) | |
3132 | ("python2-numpy" ,python2-numpy) | |
89b5c60e AE |
3133 | ,@(alist-delete "python-matplotlib" |
3134 | (alist-delete "python-numpy" | |
764c077b | 3135 | (package-inputs scipy)))))))) |
bb986599 | 3136 | |
94914805 EB |
3137 | (define-public python-sqlalchemy |
3138 | (package | |
3139 | (name "python-sqlalchemy") | |
3140 | (version "0.9.7") | |
3141 | (source | |
3142 | (origin | |
3143 | (method url-fetch) | |
3144 | (uri (string-append "https://pypi.python.org/packages/source/S/" | |
3145 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) | |
3146 | (sha256 | |
3147 | (base32 | |
3148 | "059ayifj5l08v6vv56anhyibyllscn10dlzr2fcw68gz1hfjdzsz")))) | |
3149 | (build-system python-build-system) | |
3150 | (native-inputs | |
3151 | `(("python-cython" ,python-cython) ;for c extensions | |
3152 | ("python-pytest" ,python-pytest) | |
3153 | ("python-mock" ,python-mock))) ;for tests | |
3154 | (arguments | |
3155 | `(#:phases (alist-replace | |
3156 | 'check | |
3157 | (lambda _ (zero? (system* "py.test"))) | |
3158 | %standard-phases))) | |
3159 | (home-page "http://www.sqlalchemy.org") | |
3160 | (synopsis "Database abstraction library") | |
3161 | (description | |
3162 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that | |
3163 | gives application developers the full power and flexibility of SQL. It | |
3164 | provides a full suite of well known enterprise-level persistence patterns, | |
3165 | designed for efficient and high-performing database access, adapted into a | |
3166 | simple and Pythonic domain language.") | |
3167 | (license x11))) | |
3168 | ||
3169 | (define-public python2-sqlalchemy | |
3170 | (package-with-python2 python-sqlalchemy)) | |
c937562e | 3171 | |
1671c07c EB |
3172 | (define-public python-distutils-extra |
3173 | (package | |
3174 | (name "python-distutils-extra") | |
3175 | (version "2.38") | |
3176 | (source | |
3177 | (origin | |
3178 | (method url-fetch) | |
3179 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" | |
3180 | version "/+download/python-distutils-extra-" | |
3181 | version ".tar.gz")) | |
3182 | (sha256 | |
3183 | (base32 | |
3184 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) | |
3185 | (build-system python-build-system) | |
3186 | (native-inputs | |
3187 | `(("python-setuptools" ,python-setuptools))) | |
3188 | (home-page "https://launchpad.net/python-distutils-extra/") | |
3189 | (synopsis "Enhancements to Python's distutils") | |
3190 | (description | |
3191 | "The python-distutils-extra module enables you to easily integrate | |
3192 | gettext support, themed icons, and scrollkeeper-based documentation into | |
3193 | Python's distutils.") | |
3194 | (license gpl2))) | |
3195 | ||
3196 | (define-public python2-distutils-extra | |
3197 | (package-with-python2 python-distutils-extra)) | |
ea5456c8 EB |
3198 | |
3199 | (define-public python2-elib.intl | |
3200 | (package | |
3201 | (name "python2-elib.intl") | |
3202 | (version "0.0.3") | |
3203 | (source | |
3204 | (origin | |
3205 | ;; This project doesn't tag releases or publish tarballs, so we take | |
3206 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. | |
3207 | (method git-fetch) | |
3208 | (uri (git-reference | |
3209 | (url "https://github.com/dieterv/elib.intl.git") | |
3210 | (commit "d09997cfef"))) | |
3211 | (sha256 | |
3212 | (base32 | |
3213 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) | |
3214 | (build-system python-build-system) | |
3215 | (native-inputs | |
3216 | `(("python2-setuptools" ,python2-setuptools))) | |
3217 | (arguments | |
3218 | ;; incompatible with Python 3 (exception syntax) | |
3219 | `(#:python ,python-2 | |
3220 | #:tests? #f | |
3221 | ;; With standard flags, the install phase attempts to create a zip'd | |
3222 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
3223 | ;; before 1980' | |
3224 | #:configure-flags '("--single-version-externally-managed" | |
3225 | "--record=elib.txt"))) | |
3226 | (home-page "https://github.com/dieterv/elib.intl") | |
3227 | (synopsis "Enhanced internationalization for Python") | |
3228 | (description | |
3229 | "The elib.intl module provides enhanced internationalization (I18N) | |
3230 | services for your Python modules and applications.") | |
3231 | (license lgpl3+))) | |
3232 | ||
c937562e EB |
3233 | (define-public python-pillow |
3234 | (package | |
3235 | (name "python-pillow") | |
5ff408d9 | 3236 | (version "2.8.1") |
c937562e EB |
3237 | (source |
3238 | (origin | |
3239 | (method url-fetch) | |
3240 | (uri (string-append "https://pypi.python.org/packages/source/P/" | |
3241 | "Pillow/Pillow-" version ".tar.gz")) | |
3242 | (sha256 | |
3243 | (base32 | |
5ff408d9 | 3244 | "15n92axxph2s3kvg68bki9gv3nzwgq7130kp7wbblpi1l0cc2q47")))) |
c937562e EB |
3245 | (build-system python-build-system) |
3246 | (native-inputs | |
3247 | `(("python-setuptools" ,python-setuptools) | |
3248 | ("python-nose" ,python-nose))) | |
3249 | (inputs | |
5ff408d9 SB |
3250 | `(("freetype" ,freetype) |
3251 | ("lcms" ,lcms) | |
c937562e EB |
3252 | ("zlib" ,zlib) |
3253 | ("libjpeg" ,libjpeg) | |
3254 | ("openjpeg" ,openjpeg) | |
5ff408d9 SB |
3255 | ("libtiff" ,libtiff) |
3256 | ("libwebp" ,libwebp))) | |
c937562e EB |
3257 | (propagated-inputs |
3258 | `(;; Used at runtime for pkg_resources | |
3259 | ("python-setuptools" ,python-setuptools))) | |
3260 | (arguments | |
e5358a6b LC |
3261 | `(#:phases (modify-phases %standard-phases |
3262 | (add-before | |
3263 | 'install 'disable-egg-compression | |
3264 | (lambda _ | |
3265 | ;; Leave the .egg uncompressed since compressing it would | |
3266 | ;; prevent the GC from identifying run-time dependencies. | |
3267 | ;; See <http://bugs.gnu.org/20765>. | |
3268 | (let ((port (open-file "setup.cfg" "a"))) | |
3269 | (display "\n[easy_install]\nzip_ok = 0\n" | |
3270 | port) | |
3271 | (close-port port) | |
3272 | #t))) | |
3273 | (add-after | |
3274 | 'install 'check-installed | |
3275 | (lambda _ | |
3276 | (begin | |
3277 | (setenv "HOME" (getcwd)) | |
3278 | (and (zero? (system* "python" "selftest.py" | |
3279 | "--installed")) | |
3280 | (zero? (system* "python" "test-installed.py")))))) | |
3281 | (delete 'check)))) | |
c937562e EB |
3282 | (home-page "https://pypi.python.org/pypi/Pillow") |
3283 | (synopsis "Fork of the Python Imaging Library") | |
3284 | (description | |
3285 | "The Python Imaging Library adds image processing capabilities to your | |
3286 | Python interpreter. This library provides extensive file format support, an | |
3287 | efficient internal representation, and fairly powerful image processing | |
3288 | capabilities. The core image library is designed for fast access to data | |
3289 | stored in a few basic pixel formats. It should provide a solid foundation for | |
3290 | a general image processing tool.") | |
3291 | (license (x11-style | |
3292 | "http://www.pythonware.com/products/pil/license.htm" | |
3293 | "The PIL Software License")))) | |
3294 | ||
3295 | (define-public python2-pillow | |
3296 | (package-with-python2 python-pillow)) | |
bb986599 | 3297 | |
a415f036 FB |
3298 | (define-public python-pycparser |
3299 | (package | |
3300 | (name "python-pycparser") | |
3301 | (version "2.10") | |
3302 | (source | |
3303 | (origin | |
3304 | (method url-fetch) | |
3305 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
3306 | "pycparser/pycparser-" version ".tar.gz")) | |
3307 | (sha256 | |
3308 | (base32 | |
3309 | "0v5qfq03yvd1pi0dwlgfai0p3dh9bq94pydn19c4pdn0c6v9hzcm")))) | |
3310 | (outputs '("out" "doc")) | |
3311 | (build-system python-build-system) | |
3312 | (native-inputs | |
3313 | `(("pkg-config" ,pkg-config) | |
3314 | ("python-setuptools" ,python-setuptools))) | |
3315 | (arguments | |
89b5c60e | 3316 | `(#:phases |
a415f036 FB |
3317 | (alist-replace |
3318 | 'check | |
3319 | (lambda _ | |
3320 | (with-directory-excursion "tests" | |
3321 | (zero? (system* "python" "all_tests.py")))) | |
3322 | (alist-cons-after | |
3323 | 'install 'install-doc | |
3324 | (lambda* (#:key outputs #:allow-other-keys) | |
3325 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3326 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3327 | (examples (string-append doc "/examples"))) | |
3328 | (mkdir-p examples) | |
3329 | (for-each (lambda (file) | |
3330 | (copy-file (string-append "." file) | |
3331 | (string-append doc file))) | |
3332 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
3333 | (copy-recursively "examples" examples))) | |
3334 | %standard-phases)))) | |
3335 | (home-page "https://github.com/eliben/pycparser") | |
3336 | (synopsis "C parser in Python") | |
3337 | (description | |
3338 | "Pycparser is a complete parser of the C language, written in pure Python | |
3339 | using the PLY parsing library. It parses C code into an AST and can serve as | |
3340 | a front-end for C compilers or analysis tools.") | |
3341 | (license bsd-3))) | |
3342 | ||
3343 | (define-public python2-pycparser | |
3344 | (package-with-python2 python-pycparser)) | |
57c3f716 FB |
3345 | |
3346 | (define-public python-cffi | |
3347 | (package | |
3348 | (name "python-cffi") | |
3349 | (version "0.8.6") | |
3350 | (source | |
3351 | (origin | |
3352 | (method url-fetch) | |
3353 | (uri (string-append "https://pypi.python.org/packages/source/c/" | |
3354 | "cffi/cffi-" version ".tar.gz")) | |
89b5c60e | 3355 | (sha256 |
57c3f716 FB |
3356 | (base32 "0406j3sgndmx88idv5zxkkrwfqxmjl18pj8gf47nsg4ymzixjci5")))) |
3357 | (build-system python-build-system) | |
3358 | (outputs '("out" "doc")) | |
3359 | (inputs | |
3360 | `(("libffi" ,libffi))) | |
3361 | (propagated-inputs ; required at run-time | |
3362 | `(("python-pycparser" ,python-pycparser))) | |
3363 | (native-inputs | |
3364 | `(("pkg-config" ,pkg-config) | |
3365 | ("python-sphinx" ,python-sphinx) | |
3366 | ("python-setuptools" ,python-setuptools))) | |
3367 | (arguments | |
3368 | `(#:tests? #f ; FIXME: requires pytest | |
89b5c60e | 3369 | #:phases |
57c3f716 FB |
3370 | (alist-cons-after |
3371 | 'install 'install-doc | |
3372 | (lambda* (#:key outputs #:allow-other-keys) | |
3373 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3374 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3375 | (html (string-append doc "/html"))) | |
3376 | (with-directory-excursion "doc" | |
3377 | (system* "make" "html") | |
3378 | (mkdir-p html) | |
3379 | (copy-recursively "build/html" html)) | |
3380 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) | |
3381 | %standard-phases))) | |
3382 | (home-page "http://cffi.readthedocs.org") | |
3383 | (synopsis "Foreign function interface for Python") | |
3384 | (description | |
3385 | "Foreign Function Interface for Python calling C code.") | |
bd3fa666 | 3386 | (license license:expat))) |
57c3f716 FB |
3387 | |
3388 | (define-public python2-cffi | |
3389 | (package-with-python2 python-cffi)) | |
6fa14469 FB |
3390 | |
3391 | (define-public python-xcffib | |
3392 | (package | |
3393 | (name "python-xcffib") | |
3394 | (version "0.1.9") | |
3395 | (source | |
3396 | (origin | |
3397 | (method url-fetch) | |
3398 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
3399 | "xcffib/xcffib-" version ".tar.gz")) | |
3400 | (sha256 | |
3401 | (base32 | |
3402 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) | |
3403 | (build-system python-build-system) | |
3404 | (inputs | |
3405 | `(("libxcb" ,libxcb) | |
3406 | ("python-six" ,python-six))) | |
3407 | (native-inputs | |
3408 | `(("python-setuptools" ,python-setuptools))) | |
3409 | (propagated-inputs | |
3410 | `(("python-cffi" ,python-cffi))) ; used at run time | |
3411 | (arguments | |
89b5c60e | 3412 | `(#:phases |
6fa14469 FB |
3413 | (alist-cons-after |
3414 | 'install 'install-doc | |
3415 | (lambda* (#:key outputs #:allow-other-keys) | |
3416 | (let ((doc (string-append (assoc-ref outputs "out") "/share" | |
3417 | "/doc/" ,name "-" ,version))) | |
3418 | (mkdir-p doc) | |
3419 | (copy-file "README.md" | |
3420 | (string-append doc "/README.md")))) | |
3421 | %standard-phases))) | |
3422 | (home-page "https://github.com/tych0/xcffib") | |
3423 | (synopsis "XCB Python bindings") | |
3424 | (description | |
3425 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds | |
3426 | support for Python 3 and PyPy. It is based on cffi.") | |
bd3fa666 | 3427 | (license license:expat))) |
6fa14469 FB |
3428 | |
3429 | (define-public python2-xcffib | |
3430 | (package-with-python2 python-xcffib)) | |
3431 | ||
9e099723 FB |
3432 | (define-public python-cairocffi |
3433 | (package | |
3434 | (name "python-cairocffi") | |
3435 | (version "0.6") | |
3436 | (source | |
3437 | (origin | |
3438 | (method url-fetch) | |
3439 | ;; The archive on pypi is missing the 'utils' directory! | |
3440 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" | |
3441 | version ".tar.gz")) | |
f586c877 | 3442 | (file-name (string-append name "-" version ".tar.gz")) |
9e099723 FB |
3443 | (sha256 |
3444 | (base32 | |
3445 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) | |
3446 | (build-system python-build-system) | |
3447 | (outputs '("out" "doc")) | |
3448 | (inputs | |
3449 | `(("gdk-pixbuf" ,gdk-pixbuf) | |
3450 | ("cairo" ,cairo))) | |
3451 | (native-inputs | |
3452 | `(("pkg-config" ,pkg-config) | |
3453 | ("python-sphinx" ,python-sphinx) | |
3454 | ("python-docutils" ,python-docutils) | |
3455 | ("python-setuptools" ,python-setuptools))) | |
3456 | (propagated-inputs | |
3457 | `(("python-xcffib" ,python-xcffib))) ; used at run time | |
3458 | (arguments | |
89b5c60e | 3459 | `(#:phases |
9e099723 FB |
3460 | (alist-cons-after |
3461 | 'install 'install-doc | |
3462 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3463 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3464 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3465 | (html (string-append doc "/html"))) | |
89b5c60e | 3466 | (setenv "LD_LIBRARY_PATH" |
9e099723 FB |
3467 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
3468 | (assoc-ref inputs "gdk-pixbuf") "/lib")) | |
3469 | (setenv "LANG" "en_US.UTF-8") | |
3470 | (mkdir-p html) | |
3471 | (for-each (lambda (file) | |
3472 | (copy-file (string-append "." file) | |
3473 | (string-append doc file))) | |
3474 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
3475 | (system* "python" "setup.py" "build_sphinx") | |
3476 | (copy-recursively "docs/_build/html" html))) | |
3477 | %standard-phases))) | |
3478 | (home-page "https://github.com/SimonSapin/cairocffi") | |
3479 | (synopsis "Python bindings and object-oriented API for Cairo") | |
3480 | (description | |
3481 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of | |
3482 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector | |
3483 | graphics library with support for multiple backends including image buffers, | |
3484 | PNG, PostScript, PDF, and SVG file output.") | |
3485 | (license bsd-3))) | |
3486 | ||
3487 | (define-public python2-cairocffi | |
3488 | (package-with-python2 python-cairocffi)) | |
3489 | ||
3cff95cb RW |
3490 | (define-public python-decorator |
3491 | (package | |
3492 | (name "python-decorator") | |
3493 | (version "3.4.2") | |
3494 | (source | |
3495 | (origin | |
3496 | (method url-fetch) | |
3497 | (uri (string-append | |
3498 | "https://pypi.python.org/packages/source/d/decorator/decorator-" | |
3499 | version ".tar.gz")) | |
3500 | (sha256 | |
3501 | (base32 "0i2bnlkh0p9gs76hb28mafandcrig2fmv56w9ai6mshxwqn0083k")))) | |
3502 | (build-system python-build-system) | |
3503 | (arguments '(#:tests? #f)) ; no test target | |
3504 | (native-inputs | |
3505 | `(("python-setuptools" ,python-setuptools))) | |
3506 | (home-page "http://pypi.python.org/pypi/decorator/") | |
3507 | (synopsis "Python module to simplify usage of decorators") | |
3508 | (description | |
3509 | "The aim of the decorator module is to simplify the usage of decorators | |
3510 | for the average programmer, and to popularize decorators usage giving examples | |
3511 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, | |
3512 | etc. The core of this module is a decorator factory.") | |
3513 | (license license:expat))) | |
3514 | ||
3515 | (define-public python2-decorator | |
3516 | (package-with-python2 python-decorator)) | |
3517 | ||
2c0499ad RW |
3518 | (define-public python-drmaa |
3519 | (package | |
3520 | (name "python-drmaa") | |
3521 | (version "0.7.6") | |
3522 | (source | |
3523 | (origin | |
3524 | (method url-fetch) | |
3525 | (uri (string-append | |
3526 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" | |
3527 | version ".tar.gz")) | |
3528 | (sha256 | |
3529 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) | |
3530 | (build-system python-build-system) | |
3531 | ;; The test suite requires libdrmaa which is provided by the cluster | |
3532 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH | |
3533 | ;; should be set to the path of the libdrmaa library. | |
3534 | (arguments '(#:tests? #f)) | |
3535 | (native-inputs | |
3536 | `(("python-nose" ,python-nose) | |
3537 | ("python-setuptools" ,python-setuptools))) | |
3538 | (home-page "https://pypi.python.org/pypi/drmaa") | |
3539 | (synopsis "Python bindings for the DRMAA library") | |
3540 | (description | |
3541 | "A Python package for Distributed Resource Management (DRM) job | |
3542 | submission and control. This package is an implementation of the DRMAA 1.0 | |
3543 | Python language binding specification.") | |
3544 | (license bsd-3))) | |
3545 | ||
3546 | (define-public python2-drmaa | |
3547 | (package-with-python2 python-drmaa)) | |
3548 | ||
d05c6da0 RW |
3549 | (define-public python-gridmap |
3550 | (package | |
3551 | (name "python-gridmap") | |
3552 | (version "0.13.0") | |
3553 | (source | |
3554 | (origin | |
3555 | (method url-fetch) | |
3556 | (uri (string-append | |
3557 | "https://github.com/pygridtools/gridmap/archive/v" | |
3558 | version ".tar.gz")) | |
3559 | (file-name (string-append name "-" version ".tar.gz")) | |
3560 | (sha256 | |
3561 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) | |
3562 | (build-system python-build-system) | |
3563 | (inputs | |
3564 | `(("python-psutil" ,python-psutil) | |
3565 | ("python-drmaa" ,python-drmaa) | |
3566 | ("python-pyzmq" ,python-pyzmq))) | |
3567 | (native-inputs | |
3568 | `(("python-setuptools" ,python-setuptools))) | |
3569 | (home-page "https://github.com/pygridtools/gridmap") | |
3570 | (synopsis "Create jobs on a cluster directly from Python") | |
3571 | (description | |
3572 | "Gridmap is a Python package to allow you to easily create jobs on the | |
3573 | cluster directly from Python. You can directly map Python functions onto the | |
3574 | cluster without needing to write any wrapper code yourself.") | |
3575 | (license gpl3+))) | |
3576 | ||
3577 | (define-public python2-gridmap | |
3578 | (package-with-python2 python-gridmap)) | |
3579 | ||
ae1ab9fe FB |
3580 | (define-public python-ipython |
3581 | (package | |
3582 | (name "python-ipython") | |
3583 | (version "2.3.1") | |
3584 | (source | |
3585 | (origin | |
3586 | (method url-fetch) | |
3587 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
3588 | "ipython/ipython-" version ".tar.gz")) | |
3589 | (sha256 | |
3590 | (base32 "1764gi5m3ff481rjk336cw6i2h4zlc0nxam9rc5m8m7yl9m4d61y")))) | |
3591 | (build-system python-build-system) | |
3592 | (outputs '("out" "doc")) | |
3593 | ;; FIXME: add optional dependencies when available: pyzmq, tornado, ... | |
3594 | (inputs | |
3595 | `(("readline" ,readline) | |
3596 | ("python-matplotlib" ,python-matplotlib) | |
3597 | ("python-numpy" ,python-numpy-bootstrap) | |
3598 | ("python-numpydoc" ,python-numpydoc) | |
3599 | ("python-nose" ,python-nose))) | |
3600 | (native-inputs | |
3601 | `(("pkg-config" ,pkg-config) | |
3602 | ("python-sphinx" ,python-sphinx) | |
3603 | ("texlive" ,texlive) | |
3604 | ("texinfo" ,texinfo) | |
3605 | ("python-setuptools" ,python-setuptools))) | |
3606 | (arguments | |
89b5c60e | 3607 | `(#:phases |
ae1ab9fe FB |
3608 | (alist-cons-after |
3609 | 'install 'install-doc | |
3610 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3611 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3612 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3613 | (html (string-append doc "/html")) | |
3614 | (man1 (string-append data "/man/man1")) | |
3615 | (info (string-append data "/info")) | |
3616 | (examples (string-append doc "/examples"))) | |
3617 | (setenv "LANG" "en_US.UTF-8") | |
3618 | (with-directory-excursion "docs" | |
3619 | ;; FIXME: html and pdf fail to build without optional pyzmq | |
3620 | ;(system* "make" "html") | |
3621 | ;(system* "make" "pdf" "PAPER=a4") | |
3622 | (system* "make" "info")) | |
3623 | (copy-recursively "docs/man" man1) | |
3624 | (copy-recursively "examples" examples) | |
3625 | ;; (copy-recursively "docs/build/html" html) | |
3626 | ;; (copy-file "docs/build/latex/ipython.pdf" | |
3627 | ;; (string-append doc "/ipython.pdf")) | |
3628 | (mkdir-p info) | |
3629 | (copy-file "docs/build/texinfo/ipython.info" | |
3630 | (string-append info "/ipython.info")) | |
3631 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))) | |
3632 | ;; Tests can only be run after the library has been installed and not | |
3633 | ;; within the source directory. | |
3634 | (alist-cons-after | |
3635 | 'install 'check | |
3636 | (lambda* (#:key outputs #:allow-other-keys) | |
3637 | ;; The test procedure appears to miss the fact that some optional | |
3638 | ;; dependencies are missing. | |
3639 | ;; (with-directory-excursion "/tmp" | |
3640 | ;; (zero? (system* (string-append (assoc-ref outputs "out") | |
3641 | ;; "/bin/iptest")))) | |
3642 | #t) | |
89b5c60e AE |
3643 | (alist-delete |
3644 | 'check | |
ae1ab9fe FB |
3645 | %standard-phases))))) |
3646 | (home-page "http://ipython.org") | |
3647 | (synopsis "IPython is a tool for interactive computing in Python") | |
3648 | (description | |
3649 | "IPython provides a rich architecture for interactive computing with: | |
3650 | Powerful interactive shells, a browser-based notebook, support for interactive | |
3651 | data visualization, embeddable interpreters and tools for parallel | |
3652 | computing.") | |
3653 | (license bsd-3))) | |
3654 | ||
3655 | (define-public python2-ipython | |
3656 | (let ((ipython (package-with-python2 python-ipython))) | |
3657 | (package (inherit ipython) | |
3658 | ;; Make sure we use custom python2-NAME packages. | |
89b5c60e | 3659 | (inputs |
88c26834 AE |
3660 | `(("python2-matplotlib" ,python2-matplotlib) |
3661 | ,@(alist-delete "python-matplotlib" | |
3662 | (package-inputs ipython))))))) | |
03411993 AE |
3663 | |
3664 | (define-public python-isodate | |
3665 | (package | |
3666 | (name "python-isodate") | |
3667 | (version "0.5.1") | |
3668 | (source | |
3669 | (origin | |
3670 | (method url-fetch) | |
3671 | (uri (string-append | |
3672 | "https://pypi.python.org/packages/source/i/isodate/isodate-" | |
3673 | version | |
3674 | ".tar.gz")) | |
3675 | (sha256 | |
3676 | (base32 | |
3677 | "1yqjn0is0p64cmk9xhq4hc6q06jk86d60kg2jws58d78q0qysami")))) | |
3678 | (build-system python-build-system) | |
3679 | (inputs | |
3680 | `(("python-setuptools" ,python-setuptools))) | |
3681 | (home-page | |
3682 | "http://cheeseshop.python.org/pypi/isodate") | |
3683 | (synopsis | |
3684 | "Python date parser and formatter") | |
3685 | (description | |
3686 | "Python-isodate is a python module for parsing and formatting | |
3687 | ISO 8601 dates, time and duration.") | |
3688 | (license bsd-3))) | |
3689 | ||
3690 | (define-public python2-isodate | |
3691 | (package-with-python2 python-isodate)) | |
673ab897 AE |
3692 | |
3693 | (define-public python-html5lib | |
3694 | (package | |
3695 | (name "python-html5lib") | |
3696 | (version "1.0b3") | |
3697 | (source | |
3698 | (origin | |
3699 | (method url-fetch) | |
3700 | (uri (string-append | |
3701 | "https://pypi.python.org/packages/source/h/html5lib/html5lib-" | |
3702 | version | |
3703 | ".tar.gz")) | |
3704 | (sha256 | |
3705 | (base32 | |
3706 | "1l5i6xzckzx4hnh9qzv9q3kyhkgjx2hsi2k9srgci3qizjmvp6ln")))) | |
3707 | (build-system python-build-system) | |
3dd75476 AE |
3708 | (propagated-inputs |
3709 | `(("python-six" ,python-six))) ; required to "import html5lib" | |
673ab897 AE |
3710 | (inputs |
3711 | `(("python-setuptools" ,python-setuptools))) | |
3712 | (arguments | |
3713 | `(#:test-target "check")) | |
3714 | (home-page | |
3715 | "https://github.com/html5lib/html5lib-python") | |
3716 | (synopsis | |
3717 | "Python HTML parser based on the WHATWG HTML specifcation") | |
3718 | (description | |
3719 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation | |
3720 | and written in Python.") | |
bd3fa666 | 3721 | (license license:expat))) |
673ab897 AE |
3722 | |
3723 | (define-public python2-html5lib | |
3724 | (package-with-python2 python-html5lib)) | |
e99f4211 MW |
3725 | |
3726 | (define-public python-urwid | |
3727 | (package | |
3728 | (name "python-urwid") | |
3729 | (version "1.3.0") | |
3730 | (source | |
3731 | (origin | |
3732 | (method url-fetch) | |
be1f44bb MW |
3733 | (uri (string-append |
3734 | "https://pypi.python.org/packages/source/u/urwid/urwid-" | |
3735 | version ".tar.gz")) | |
e99f4211 MW |
3736 | (sha256 |
3737 | (base32 | |
3738 | "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19")))) | |
3739 | (build-system python-build-system) | |
3740 | (native-inputs `(("python-setuptools" ,python-setuptools))) | |
3741 | (home-page "http://urwid.org") | |
3742 | (synopsis "Console user interface library for Python") | |
3743 | (description | |
3744 | "Urwid is a curses-based UI/widget library for Python. It includes many | |
3745 | features useful for text console applications.") | |
3746 | (license lgpl2.1+))) | |
3747 | ||
3748 | (define-public python2-urwid | |
3749 | (package-with-python2 python-urwid)) | |
d95a56c6 PAR |
3750 | |
3751 | (define-public python-dbus | |
3752 | (package | |
3753 | (name "python-dbus") | |
3754 | (version "1.2.0") | |
3755 | (source | |
3756 | (origin | |
3757 | (method url-fetch) | |
3758 | (uri (string-append | |
3759 | "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-" | |
3760 | version ".tar.gz")) | |
3761 | (sha256 | |
3762 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) | |
3763 | (build-system gnu-build-system) | |
3764 | (native-inputs | |
3765 | `(("pkg-config" ,pkg-config))) | |
3766 | (inputs | |
3767 | `(("python" ,python) | |
2e88d113 | 3768 | ("dbus-glib" ,dbus-glib))) |
d95a56c6 PAR |
3769 | (synopsis "Python bindings for D-bus") |
3770 | (description "python-dbus provides bindings for libdbus, the reference | |
3771 | implementation of D-Bus.") | |
3772 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") | |
bd3fa666 | 3773 | (license license:expat))) |
b52af02b MW |
3774 | |
3775 | (define-public python2-dbus | |
3776 | (package (inherit python-dbus) | |
3777 | (name "python2-dbus") | |
3778 | (inputs `(("python" ,python-2) | |
3779 | ,@(alist-delete "python" | |
3780 | (package-inputs python-dbus) | |
3781 | equal?))) | |
3782 | ;; FIXME: on Python 2, the test_utf8 fails with: | |
3783 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" | |
3784 | (arguments `(#:tests? #f)))) | |
a6ac8332 AE |
3785 | |
3786 | (define-public python-apsw | |
3787 | (package | |
3788 | (name "python-apsw") | |
3789 | (version "3.8.7.3-r1") | |
3790 | (source | |
3791 | (origin | |
3792 | (method url-fetch) | |
3793 | (uri (string-append | |
3794 | "https://pypi.python.org/packages/source/a/apsw/apsw-" | |
3795 | version | |
3796 | ".tar.gz")) | |
3797 | (sha256 | |
3798 | (base32 | |
3799 | "1rgxdypg7hym0qny15rx5khrghx9fkppfgsfa2s8lg917924mv7l")))) | |
3800 | (build-system python-build-system) | |
3801 | (inputs | |
3802 | `(("python-setuptools" ,python-setuptools) | |
3803 | ("sqlite" ,sqlite))) | |
3804 | (arguments | |
3805 | `(#:phases | |
3806 | ;; swap check and install phases | |
3807 | (alist-cons-after | |
3808 | 'install 'check | |
3809 | (assoc-ref %standard-phases 'check) | |
3810 | (alist-delete | |
3811 | 'check | |
3812 | %standard-phases)))) | |
3813 | (home-page "https://github.com/rogerbinns/apsw/") | |
3814 | (synopsis "Another Python SQLite Wrapper") | |
3815 | (description "APSW is a Python wrapper for the SQLite | |
3816 | embedded relational database engine. In contrast to other wrappers such as | |
3817 | pysqlite it focuses on being a minimal layer over SQLite attempting just to | |
3818 | translate the complete SQLite API into Python.") | |
abde5f37 | 3819 | (license license:zlib))) |
a6ac8332 AE |
3820 | |
3821 | (define-public python2-apsw | |
3822 | (package-with-python2 python-apsw)) | |
26b307e2 AE |
3823 | |
3824 | (define-public python-lxml | |
3825 | (package | |
3826 | (name "python-lxml") | |
3827 | (version "3.4.2") | |
3828 | (source | |
3829 | (origin | |
3830 | (method url-fetch) | |
3831 | (uri (string-append | |
3832 | "https://pypi.python.org/packages/source/l/lxml/lxml-" | |
3833 | version | |
3834 | ".tar.gz")) | |
3835 | (sha256 | |
3836 | (base32 | |
3837 | "0pd23qz8vms1mgm41p96h4vac5y91igs4wr9640gnvxgk019kmf7")))) | |
3838 | (build-system python-build-system) | |
3839 | (inputs | |
3840 | `(("libxml2" ,libxml2) | |
3841 | ("libxslt" ,libxslt) | |
3842 | ("python-setuptools" ,python-setuptools))) | |
3843 | (home-page "http://lxml.de/") | |
3844 | (synopsis | |
3845 | "Python XML processing library") | |
3846 | (description | |
3847 | "The lxml XML toolkit is a Pythonic binding for the C libraries | |
3848 | libxml2 and libxslt.") | |
3849 | (license bsd-3))) ; and a few more, see LICENSES.txt | |
3850 | ||
3851 | (define-public python2-lxml | |
3852 | (package-with-python2 python-lxml)) | |
4ed20663 | 3853 | |
bec07a7c AE |
3854 | (define-public python2-pil |
3855 | (package | |
3856 | (name "python2-pil") | |
3857 | (version "1.1.7") | |
3858 | (source | |
3859 | (origin | |
3860 | (method url-fetch) | |
3861 | (uri (string-append | |
3862 | "http://effbot.org/downloads/Imaging-" | |
3863 | version ".tar.gz")) | |
3864 | (sha256 | |
3865 | (base32 | |
516277cb AE |
3866 | "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9")) |
3867 | (modules '((guix build utils))) | |
3868 | (snippet | |
3869 | ;; Adapt to newer freetype. As the package is unmaintained upstream, | |
3870 | ;; there is no use in creating a patch and reporting it. | |
3871 | '(substitute* "_imagingft.c" | |
3872 | (("freetype/") | |
3873 | "freetype2/"))))) | |
bec07a7c AE |
3874 | (build-system python-build-system) |
3875 | (inputs | |
3876 | `(("freetype" ,freetype) | |
3877 | ("libjpeg" ,libjpeg) | |
3878 | ("libtiff" ,libtiff) | |
3879 | ("python-setuptools" ,python-setuptools) | |
3880 | ("zlib" ,zlib))) | |
3881 | (arguments | |
3882 | ;; Only the fork python-pillow works with Python 3. | |
3883 | `(#:python ,python-2 | |
3884 | #:tests? #f ; no check target | |
3885 | #:phases | |
3886 | (alist-cons-before | |
3887 | 'build 'configure | |
3888 | ;; According to README and setup.py, manual configuration is | |
3889 | ;; the preferred way of "searching" for inputs. | |
3890 | ;; lcms is not found, TCL_ROOT refers to the unavailable tkinter. | |
3891 | (lambda* (#:key inputs #:allow-other-keys) | |
3892 | (let ((jpeg (assoc-ref inputs "libjpeg")) | |
3893 | (zlib (assoc-ref inputs "zlib")) | |
3894 | (tiff (assoc-ref inputs "libtiff")) | |
3895 | (freetype (assoc-ref inputs "freetype"))) | |
3896 | (substitute* "setup.py" | |
3897 | (("JPEG_ROOT = None") | |
3898 | (string-append "JPEG_ROOT = libinclude(\"" jpeg "\")")) | |
3899 | (("ZLIB_ROOT = None") | |
3900 | (string-append "ZLIB_ROOT = libinclude(\"" zlib "\")")) | |
3901 | (("TIFF_ROOT = None") | |
3902 | (string-append "TIFF_ROOT = libinclude(\"" tiff "\")")) | |
3903 | (("FREETYPE_ROOT = None") | |
3904 | (string-append "FREETYPE_ROOT = libinclude(\"" | |
3905 | freetype "\")"))))) | |
3906 | %standard-phases))) | |
3907 | (home-page "http://www.pythonware.com/products/pil/") | |
3908 | (synopsis "Python Imaging Library") | |
3909 | (description "The Python Imaging Library (PIL) adds image processing | |
3910 | capabilities to the Python interpreter.") | |
3911 | (license (x11-style | |
3912 | "file://README" | |
3913 | "See 'README' in the distribution.")))) | |
092e86f5 AE |
3914 | |
3915 | (define-public python2-cssutils | |
3916 | (package | |
3917 | (name "python2-cssutils") | |
3918 | (version "1.0") | |
3919 | (source | |
3920 | (origin | |
3921 | (method url-fetch) | |
3922 | (uri (string-append | |
3923 | "https://pypi.python.org/packages/source/c/cssutils/cssutils-" | |
3924 | version | |
3925 | ".zip")) | |
3926 | (sha256 | |
3927 | (base32 | |
3928 | "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125")))) | |
3929 | (build-system python-build-system) | |
3930 | (native-inputs | |
3931 | `(("python2-mock" ,python2-mock) ; for the tests | |
3932 | ("unzip" ,unzip))) ; for unpacking the source | |
3933 | (inputs | |
3934 | `(("python2-setuptools" ,python2-setuptools))) | |
3935 | (arguments | |
3936 | `(#:python ,python-2 ; Otherwise tests fail with a syntax error. | |
3937 | #:tests? #f ; The tests apparently download an external URL. | |
da6dd842 | 3938 | )) |
092e86f5 AE |
3939 | (home-page "http://cthedot.de/cssutils/") |
3940 | (synopsis | |
3941 | "CSS Cascading Style Sheets library for Python") | |
3942 | (description | |
3943 | "Cssutils is a Python package for parsing and building CSS | |
3944 | Cascading Style Sheets. Currently it provides a DOM only and no rendering | |
3945 | options.") | |
3946 | (license lgpl3+))) | |
880ff77c AE |
3947 | |
3948 | (define-public python-cssselect | |
3949 | (package | |
3950 | (name "python-cssselect") | |
3951 | (version "0.9.1") | |
3952 | (source | |
3953 | (origin | |
3954 | (method url-fetch) | |
3955 | (uri (string-append | |
3956 | "https://pypi.python.org/packages/source/c/cssselect/cssselect-" | |
3957 | version | |
3958 | ".tar.gz")) | |
3959 | (sha256 | |
3960 | (base32 | |
3961 | "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85")))) | |
3962 | (build-system python-build-system) | |
3963 | (inputs | |
3964 | `(("python-setuptools" ,python-setuptools))) | |
3965 | (arguments | |
3966 | ;; tests fail with message | |
3967 | ;; AttributeError: 'module' object has no attribute 'tests' | |
3968 | `(#:tests? #f)) | |
3969 | (home-page | |
3970 | "https://pythonhosted.org/cssselect/") | |
3971 | (synopsis | |
3972 | "CSS3 selector parser and translator to XPath 1.0") | |
3973 | (description | |
3974 | "Cssselect ia a Python module that parses CSS3 Selectors and translates | |
3975 | them to XPath 1.0 expressions. Such expressions can be used in lxml or | |
3976 | another XPath engine to find the matching elements in an XML or HTML document.") | |
3977 | (license bsd-3))) | |
3978 | ||
3979 | (define-public python2-cssselect | |
3980 | (package-with-python2 python-cssselect)) | |
60357f99 AE |
3981 | |
3982 | (define-public python-netifaces | |
3983 | (package | |
3984 | (name "python-netifaces") | |
3985 | (version "0.10.4") | |
3986 | (source | |
3987 | (origin | |
3988 | (method url-fetch) | |
3989 | (uri (string-append | |
3990 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" | |
3991 | version | |
3992 | ".tar.gz")) | |
3993 | (sha256 | |
3994 | (base32 | |
3995 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) | |
3996 | (build-system python-build-system) | |
3997 | (inputs | |
3998 | `(("python-setuptools" ,python-setuptools))) | |
3999 | (home-page | |
4000 | "https://bitbucket.org/al45tair/netifaces") | |
4001 | (synopsis | |
4002 | "Python module for portable network interface information") | |
4003 | (description | |
4004 | "Netifaces is a Python module providing information on network | |
4005 | interfaces in an easy and portable manner.") | |
4006 | (license license:expat))) | |
4007 | ||
4008 | (define-public python2-netifaces | |
4009 | (package-with-python2 python-netifaces)) | |
92cb152b | 4010 | |
32f77c04 RW |
4011 | (define-public python-networkx |
4012 | (package | |
4013 | (name "python-networkx") | |
4014 | (version "1.9.1") | |
4015 | (source | |
4016 | (origin | |
4017 | (method url-fetch) | |
4018 | (uri (string-append | |
4019 | "https://pypi.python.org/packages/source/n/networkx/networkx-" | |
4020 | version ".tar.gz")) | |
4021 | (sha256 | |
4022 | (base32 "0n8wy0yq1kmdq4wh68mlhwhkndvwzx48lg41a1z0sxxms0wfp033")))) | |
4023 | (build-system python-build-system) | |
4024 | ;; python-decorator is needed at runtime | |
4025 | (propagated-inputs | |
4026 | `(("python-decorator" ,python-decorator))) | |
4027 | (native-inputs | |
4028 | `(("python-setuptools" ,python-setuptools) | |
4029 | ("python-nose" ,python-nose))) | |
4030 | (home-page "http://networkx.github.io/") | |
4031 | (synopsis "Python module for creating and manipulating graphs and networks") | |
4032 | (description | |
4033 | "NetworkX is a Python package for the creation, manipulation, and study | |
4034 | of the structure, dynamics, and functions of complex networks.") | |
4035 | (license bsd-3))) | |
4036 | ||
4037 | (define-public python2-networkx | |
4038 | (package-with-python2 python-networkx)) | |
4039 | ||
92cb152b RW |
4040 | (define-public snakemake |
4041 | (package | |
4042 | (name "snakemake") | |
4043 | (version "3.2.1") | |
4044 | (source | |
4045 | (origin | |
4046 | (method url-fetch) | |
4047 | (uri (string-append | |
4048 | "https://pypi.python.org/packages/source/s/snakemake/snakemake-" | |
4049 | version ".tar.gz")) | |
4050 | (sha256 | |
4051 | (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91")))) | |
4052 | (build-system python-build-system) | |
4053 | (inputs `(("python-setuptools" ,python-setuptools))) | |
4054 | (home-page "https://bitbucket.org/johanneskoester/snakemake") | |
4055 | (synopsis "Python-based execution environment for make-like workflows") | |
4056 | (description | |
4057 | "Snakemake aims to reduce the complexity of creating workflows by | |
4058 | providing a clean and modern domain specific specification language (DSL) in | |
4059 | Python style, together with a fast and comfortable execution environment.") | |
4060 | (license license:expat))) | |
a1920bc9 | 4061 | |
35de1fbd RW |
4062 | (define-public python-seaborn |
4063 | (package | |
4064 | (name "python-seaborn") | |
4065 | (version "0.5.1") | |
4066 | (source | |
4067 | (origin | |
4068 | (method url-fetch) | |
4069 | (uri (string-append | |
4070 | "https://pypi.python.org/packages/source/s/seaborn/seaborn-" | |
4071 | version ".tar.gz")) | |
4072 | (sha256 | |
4073 | (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc")))) | |
4074 | (build-system python-build-system) | |
4075 | (propagated-inputs | |
4076 | `(("python-pandas" ,python-pandas) | |
4077 | ("python-matplotlib" ,python-matplotlib) | |
4078 | ("python-scipy" ,python-scipy))) | |
4079 | (native-inputs | |
4080 | `(("python-setuptools" ,python-setuptools))) | |
4081 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") | |
4082 | (synopsis "Statistical data visualization") | |
4083 | (description | |
4084 | "Seaborn is a library for making attractive and informative statistical | |
4085 | graphics in Python. It is built on top of matplotlib and tightly integrated | |
4086 | with the PyData stack, including support for numpy and pandas data structures | |
4087 | and statistical routines from scipy and statsmodels.") | |
4088 | (license bsd-3))) | |
4089 | ||
4090 | (define-public python2-seaborn | |
4091 | (let ((seaborn (package-with-python2 python-seaborn))) | |
4092 | (package (inherit seaborn) | |
4093 | (propagated-inputs | |
4094 | `(("python2-pytz" ,python2-pytz) | |
4095 | ,@(package-propagated-inputs seaborn)))))) | |
4096 | ||
90fc547f RW |
4097 | (define-public python-sympy |
4098 | (package | |
4099 | (name "python-sympy") | |
4100 | (version "0.7.6") | |
4101 | (source | |
4102 | (origin | |
4103 | (method url-fetch) | |
4104 | (uri (string-append | |
4105 | "https://github.com/sympy/sympy/releases/download/sympy-" | |
4106 | version "/sympy-" version ".tar.gz")) | |
4107 | (sha256 | |
4108 | (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz")))) | |
4109 | (build-system python-build-system) | |
4110 | (native-inputs | |
4111 | `(("python-setuptools" ,python-setuptools))) | |
4112 | (home-page "http://www.sympy.org/") | |
4113 | (synopsis "Python library for symbolic mathematics") | |
4114 | (description | |
4115 | "SymPy is a Python library for symbolic mathematics. It aims to become a | |
4116 | full-featured computer algebra system (CAS) while keeping the code as simple | |
4117 | as possible in order to be comprehensible and easily extensible.") | |
4118 | (license bsd-3))) | |
4119 | ||
4120 | (define-public python2-sympy | |
4121 | (package-with-python2 python-sympy)) | |
4122 | ||
a1920bc9 FB |
4123 | (define-public python-testlib |
4124 | (package | |
4125 | (name "python-testlib") | |
4126 | (version "0.6.5") | |
4127 | (source | |
4128 | (origin | |
4129 | (method url-fetch) | |
4130 | (uri (string-append | |
4131 | "https://pypi.python.org/packages/source/t/testlib/testlib-" | |
4132 | version ".zip")) | |
4133 | (sha256 | |
4134 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) | |
4135 | (build-system python-build-system) | |
4136 | (inputs | |
4137 | `(("python-setuptools" ,python-setuptools))) | |
4138 | (native-inputs | |
4139 | `(("unzip" ,unzip))) | |
4140 | (arguments | |
4141 | `(#:phases | |
4142 | (alist-replace | |
4143 | 'unpack | |
4144 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4145 | (let ((unzip (string-append (assoc-ref inputs "unzip") | |
4146 | "/bin/unzip")) | |
4147 | (source (assoc-ref inputs "source"))) | |
4148 | (and (zero? (system* unzip source)) | |
4149 | (chdir (string-append "testlib-" ,version))))) | |
4150 | %standard-phases))) | |
4151 | (synopsis "Python micro test suite harness") | |
4152 | (description "A micro unittest suite harness for Python.") | |
4153 | (home-page "https://github.com/trentm/testlib") | |
1cb9c006 | 4154 | (license license:expat))) |
a1920bc9 FB |
4155 | |
4156 | (define-public python2-testlib | |
4157 | (package-with-python2 python-testlib)) | |
db62afa5 LC |
4158 | |
4159 | (define-public python2-xlib | |
4160 | (package | |
4161 | (name "python2-xlib") | |
4162 | (version "0.14") | |
4163 | (source (origin | |
4164 | (method url-fetch) | |
4165 | (uri (string-append "mirror://sourceforge/python-xlib/" | |
4166 | "python-xlib-" version ".tar.gz")) | |
4167 | (sha256 | |
4168 | (base32 | |
4169 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) | |
4170 | (build-system python-build-system) | |
4171 | (arguments | |
4172 | `(#:python ,python-2 ;Python 2 only | |
4173 | #:tests? #f)) ;no tests | |
4174 | (inputs | |
4175 | `(("python-setuptools" ,python-setuptools))) | |
4176 | (home-page "http://python-xlib.sourceforge.net/") | |
4177 | (synopsis "Python X11 client library") | |
4178 | (description | |
4179 | "The Python X Library is intended to be a fully functional X client | |
4180 | library for Python programs. It is useful to implement low-level X clients. | |
4181 | It is written entirely in Python.") | |
4182 | (license gpl2+))) | |
0234ca06 DT |
4183 | |
4184 | (define-public python-singledispatch | |
4185 | (package | |
4186 | (name "python-singledispatch") | |
4187 | (version "3.4.0.3") | |
4188 | (source | |
4189 | (origin | |
4190 | (method url-fetch) | |
4191 | (uri (string-append | |
4192 | "https://pypi.python.org/packages/source/s/singledispatch/" | |
4193 | "singledispatch-" version ".tar.gz")) | |
4194 | (sha256 | |
4195 | (base32 | |
4196 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) | |
4197 | (build-system python-build-system) | |
4198 | (native-inputs | |
4199 | `(("python-setuptools" ,python-setuptools))) | |
4200 | (propagated-inputs | |
4201 | `(("python-six" ,python-six))) | |
4202 | (home-page | |
4203 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") | |
4204 | (synopsis "Backport of singledispatch feature from Python 3.4") | |
4205 | (description | |
4206 | "This library brings functools.singledispatch from Python 3.4 to Python | |
4207 | 2.6-3.3.") | |
4208 | (license license:expat))) | |
4209 | ||
4210 | (define-public python2-singledispatch | |
4211 | (package-with-python2 python-singledispatch)) | |
feaae484 | 4212 | |
310d218f RW |
4213 | (define-public python-tornado |
4214 | (package | |
4215 | (name "python-tornado") | |
4216 | (version "4.1") | |
4217 | (source | |
4218 | (origin | |
4219 | (method url-fetch) | |
4220 | (uri (string-append | |
4221 | "https://pypi.python.org/packages/source/t/tornado/" | |
4222 | "tornado-" version ".tar.gz")) | |
4223 | (sha256 | |
4224 | (base32 "0a12f00h277zbifibnj46wf14801f573irvf6hwkgja5vspd7awr")))) | |
4225 | (build-system python-build-system) | |
4226 | (inputs | |
4227 | `(("python-certifi" ,python-certifi))) | |
4228 | (native-inputs | |
4229 | `(("python-setuptools" ,python-setuptools))) | |
4230 | (home-page "https://pypi.python.org/pypi/tornado/4.1") | |
4231 | (synopsis "Python web framework and asynchronous networking library") | |
4232 | (description | |
4233 | "Tornado is a Python web framework and asynchronous networking library, | |
4234 | originally developed at FriendFeed. By using non-blocking network I/O, | |
4235 | Tornado can scale to tens of thousands of open connections, making it ideal | |
4236 | for long polling, WebSockets, and other applications that require a long-lived | |
4237 | connection to each user.") | |
4238 | (license asl2.0))) | |
4239 | ||
4240 | (define-public python2-tornado | |
4241 | (let ((tornado (package-with-python2 python-tornado))) | |
4242 | (package (inherit tornado) | |
4243 | (inputs | |
4244 | `(("python2-backport-ssl-match-hostname" | |
4245 | ,python2-backport-ssl-match-hostname) | |
4246 | ,@(package-inputs tornado)))))) | |
4247 | ||
feaae484 SB |
4248 | (define-public python-waf |
4249 | (package | |
4250 | (name "python-waf") | |
4251 | (version "1.8.8") | |
4252 | (source (origin | |
4253 | (method url-fetch) | |
4254 | (uri (string-append "https://waf.io/" | |
4255 | "waf-" version ".tar.bz2")) | |
4256 | (sha256 | |
4257 | (base32 | |
4258 | "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn")))) | |
4259 | (build-system python-build-system) | |
4260 | (arguments | |
4261 | '(#:phases | |
4262 | (modify-phases %standard-phases | |
4263 | (replace 'build | |
4264 | (lambda _ | |
4265 | (zero? (begin | |
4266 | (system* "python" "waf-light" "configure") | |
4267 | (system* "python" "waf-light" "build"))))) | |
4268 | (replace 'check | |
4269 | (lambda _ | |
4270 | (zero? (system* "python" "waf" "--version")))) | |
4271 | (replace 'install | |
4272 | (lambda _ | |
4273 | (copy-file "waf" %output)))))) | |
4274 | (home-page "https://waf.io/") | |
4275 | (synopsis "Python-based build system") | |
4276 | (description | |
4277 | "Waf is a Python-based framework for configuring, compiling and installing | |
4278 | applications.") | |
4279 | (license bsd-3))) | |
4280 | ||
4281 | (define-public python2-waf | |
4282 | (package-with-python2 python-waf)) | |
45203542 RW |
4283 | |
4284 | (define-public python-pyzmq | |
4285 | (package | |
4286 | (name "python-pyzmq") | |
4287 | (version "14.6.0") | |
4288 | (source | |
4289 | (origin | |
4290 | (method url-fetch) | |
4291 | (uri (string-append | |
4292 | "https://pypi.python.org/packages/source/p/pyzmq/pyzmq-" | |
4293 | version ".tar.gz")) | |
4294 | (sha256 | |
4295 | (base32 "1frmbjykvhmdg64g7sn20c9fpamrsfxwci1nhhg8q7jgz5pq0ikp")))) | |
4296 | (build-system python-build-system) | |
4297 | (arguments | |
4298 | `(#:configure-flags | |
4299 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) | |
4300 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext | |
4301 | ;; --inplace' for 'python setup.py test' to work. | |
4302 | #:tests? #f)) | |
4303 | (inputs | |
4304 | `(("zeromq" ,zeromq))) | |
4305 | (native-inputs | |
4306 | `(("pkg-config" ,pkg-config) | |
4307 | ("python-nose" ,python-nose) | |
4308 | ("python-setuptools" ,python-setuptools))) | |
4309 | (home-page "http://github.com/zeromq/pyzmq") | |
4310 | (synopsis "Python bindings for 0MQ") | |
4311 | (description | |
4312 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") | |
4313 | (license bsd-4))) | |
4314 | ||
4315 | (define-public python2-pyzmq | |
4316 | (package-with-python2 python-pyzmq)) | |
d889e6c4 CR |
4317 | |
4318 | (define-public python-pep8 | |
4319 | (package | |
4320 | (name "python-pep8") | |
4321 | (version "1.6.2") | |
4322 | (source | |
4323 | (origin | |
4324 | (method url-fetch) | |
4325 | (uri (string-append | |
4326 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
4327 | version | |
4328 | ".tar.gz")) | |
4329 | (sha256 | |
4330 | (base32 | |
4331 | "1zybkcdw1sx84dvkfss96nhykqg9bc0cdpwpl4k9wlxm61bf7dxq")))) | |
4332 | (build-system python-build-system) | |
4333 | (inputs | |
4334 | `(("python-setuptools" ,python-setuptools))) | |
4335 | (home-page "http://pep8.readthedocs.org/") | |
4336 | (synopsis "Python style guide checker") | |
4337 | (description | |
4338 | "This tools checks Python code against some of the style conventions in | |
4339 | PEP 8.") | |
4340 | (license license:expat))) | |
4341 | ||
4342 | (define-public python2-pep8 | |
4343 | (package-with-python2 python-pep8)) | |
e31d7f44 CR |
4344 | |
4345 | (define-public python-pyflakes | |
4346 | (package | |
4347 | (name "python-pyflakes") | |
4348 | (version "0.9.2") | |
4349 | (source | |
4350 | (origin | |
4351 | (method url-fetch) | |
4352 | (uri (string-append | |
4353 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
4354 | version | |
4355 | ".tar.gz")) | |
4356 | (sha256 | |
4357 | (base32 | |
4358 | "0pvawddspdq0y22dbraq5gld9qr6rwa7zhmpfhl2b7v9rqiiqs82")))) | |
4359 | (build-system python-build-system) | |
4360 | (inputs | |
4361 | `(("python-setuptools" ,python-setuptools))) | |
4362 | (home-page | |
4363 | "https://github.com/pyflakes/pyflakes") | |
4364 | (synopsis "Passive checker of Python programs") | |
4365 | (description | |
4366 | "Pyflakes statically checks Python source code for common errors.") | |
4367 | (license license:expat))) | |
a59e017c CR |
4368 | |
4369 | (define-public python-mccabe | |
4370 | (package | |
4371 | (name "python-mccabe") | |
4372 | (version "0.3.1") | |
4373 | (source | |
4374 | (origin | |
4375 | (method url-fetch) | |
4376 | (uri (string-append | |
4377 | "https://pypi.python.org/packages/source/m/mccabe/mccabe-" | |
4378 | version | |
4379 | ".tar.gz")) | |
4380 | (sha256 | |
4381 | (base32 | |
4382 | "05ix3vdv5hjk4irl97n2n3c4g1vqvz7dbmkzs13f3bx97bxsczjz")))) | |
4383 | (build-system python-build-system) | |
4384 | (inputs | |
4385 | `(("python-setuptools" ,python-setuptools))) | |
4386 | (home-page "https://github.com/flintwork/mccabe") | |
4387 | (synopsis "McCabe checker, plugin for flake8") | |
4388 | (description | |
4389 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic | |
4390 | complexity of Python source code.") | |
7362371d | 4391 | (license license:expat))) |
a59e017c CR |
4392 | |
4393 | (define-public python2-mccabe | |
4394 | (package-with-python2 python-mccabe)) | |
e8df8f47 CR |
4395 | |
4396 | ;; Flake8 2.4.1 requires an older version of pep8. | |
4397 | ;; This should be removed ASAP. | |
4398 | (define-public python-pep8-1.5.7 | |
4399 | (package (inherit python-pep8) | |
4400 | (version "1.5.7") | |
4401 | (source | |
4402 | (origin | |
4403 | (method url-fetch) | |
4404 | (uri (string-append | |
4405 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
4406 | version | |
4407 | ".tar.gz")) | |
4408 | (sha256 | |
4409 | (base32 | |
4410 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))))) | |
4411 | ||
4412 | (define-public python2-pep8-1.5.7 | |
4413 | (package-with-python2 python-pep8-1.5.7)) | |
4414 | ||
4415 | ;; Flake8 2.4.1 requires an older version of pyflakes. | |
4416 | ;; This should be removed ASAP. | |
4417 | (define-public python-pyflakes-0.8.1 | |
4418 | (package (inherit python-pyflakes) | |
4419 | (version "0.8.1") | |
4420 | (source | |
4421 | (origin | |
4422 | (method url-fetch) | |
4423 | (uri (string-append | |
4424 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
4425 | version | |
4426 | ".tar.gz")) | |
4427 | (sha256 | |
4428 | (base32 | |
4429 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))))) | |
4430 | ||
4431 | (define-public python2-pyflakes-0.8.1 | |
4432 | (package-with-python2 python-pyflakes)) | |
4433 | ||
4434 | (define-public python-flake8 | |
4435 | (package | |
4436 | (name "python-flake8") | |
4437 | (version "2.4.1") | |
4438 | (source | |
4439 | (origin | |
4440 | (method url-fetch) | |
4441 | (uri (string-append | |
4442 | "https://pypi.python.org/packages/source/f/flake8/flake8-" | |
4443 | version | |
4444 | ".tar.gz")) | |
4445 | (sha256 | |
4446 | (base32 | |
4447 | "0dvmrpv7x98xkzffjz1z7lqr90sp5zdz16bdwckfd1cckpjvnzif")))) | |
4448 | (build-system python-build-system) | |
4449 | (inputs | |
4450 | `(("python-setuptools" ,python-setuptools) | |
4451 | ("python-pep8" ,python-pep8-1.5.7) | |
4452 | ("python-pyflakes" ,python-pyflakes-0.8.1) | |
4453 | ("python-mccabe" ,python-mccabe) | |
4454 | ("python-mock" ,python-mock) | |
4455 | ("python-nose" ,python-nose))) | |
4456 | (home-page "https://gitlab.com/pycqa/flake8") | |
4457 | (synopsis | |
4458 | "The modular source code checker: pep8, pyflakes and co") | |
4459 | (description | |
4460 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") | |
4461 | (license license:expat))) | |
4462 | ||
4463 | (define-public python2-flake8 | |
4464 | (package-with-python2 python-flake8)) |