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> |
2fc5f186 | 13 | ;;; Copyright © 2015 David Thompson <davet@gnu.org> |
89b2e0b0 | 14 | ;;; Copyright © 2015 Leo Famulari <leo@famulari.name> |
02a8a187 | 15 | ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com> |
b9893908 | 16 | ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com> |
383af6b0 | 17 | ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il> |
1872f1bb | 18 | ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com> |
03f964a5 | 19 | ;;; Copyright © 2015 Chris Marusich <cmmarusich@gmail.com> |
a01b6da7 NK |
20 | ;;; |
21 | ;;; This file is part of GNU Guix. | |
22 | ;;; | |
23 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
24 | ;;; under the terms of the GNU General Public License as published by | |
25 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
26 | ;;; your option) any later version. | |
27 | ;;; | |
28 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
29 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
30 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
31 | ;;; GNU General Public License for more details. | |
32 | ;;; | |
33 | ;;; You should have received a copy of the GNU General Public License | |
34 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
35 | ||
1ffa7090 | 36 | (define-module (gnu packages python) |
011b18c3 | 37 | #:use-module ((guix licenses) |
45203542 | 38 | #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style |
b8050e71 | 39 | gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+ |
cd6e5189 | 40 | isc psfl public-domain x11-style zpl2.1)) |
bd3fa666 | 41 | #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:) |
3fdc99da | 42 | #:use-module (gnu packages) |
89b2e0b0 | 43 | #:use-module (gnu packages attr) |
d96034ed | 44 | #:use-module (gnu packages backup) |
1ffa7090 | 45 | #:use-module (gnu packages compression) |
4ed20663 | 46 | #:use-module (gnu packages databases) |
5e1c9367 | 47 | #:use-module (gnu packages file) |
4ed20663 | 48 | #:use-module (gnu packages fontutils) |
4ed20663 AE |
49 | #:use-module (gnu packages gcc) |
50 | #:use-module (gnu packages ghostscript) | |
51 | #:use-module (gnu packages glib) | |
52 | #:use-module (gnu packages gtk) | |
421a80a2 | 53 | #:use-module (gnu packages icu4c) |
c937562e | 54 | #:use-module (gnu packages image) |
4ed20663 | 55 | #:use-module (gnu packages imagemagick) |
b10ab723 | 56 | #:use-module (gnu packages libffi) |
89b2e0b0 | 57 | #:use-module (gnu packages linux) |
0da98533 | 58 | #:use-module (gnu packages maths) |
4ed20663 | 59 | #:use-module (gnu packages multiprecision) |
45203542 | 60 | #:use-module (gnu packages networking) |
be7134bf | 61 | #:use-module (gnu packages ncurses) |
c9b1b4f9 | 62 | #:use-module (gnu packages pcre) |
4ed20663 | 63 | #:use-module (gnu packages perl) |
b10ab723 | 64 | #:use-module (gnu packages pkg-config) |
4ed20663 | 65 | #:use-module (gnu packages readline) |
c9b1b4f9 | 66 | #:use-module (gnu packages statistics) |
1c65314c FB |
67 | #:use-module (gnu packages texlive) |
68 | #:use-module (gnu packages texinfo) | |
cc2b77df | 69 | #:use-module (gnu packages tls) |
8d12be1e | 70 | #:use-module (gnu packages web) |
ce0614dd | 71 | #:use-module (gnu packages base) |
26b307e2 | 72 | #:use-module (gnu packages xml) |
6fa14469 | 73 | #:use-module (gnu packages xorg) |
4ed20663 | 74 | #:use-module (gnu packages zip) |
afa181ff | 75 | #:use-module (gnu packages tcl) |
a01b6da7 NK |
76 | #:use-module (guix packages) |
77 | #:use-module (guix download) | |
ea5456c8 | 78 | #:use-module (guix git-download) |
11bb85a1 | 79 | #:use-module (guix utils) |
acc26ff1 | 80 | #:use-module (guix build-system gnu) |
d8c4998f | 81 | #:use-module (guix build-system cmake) |
898238b9 | 82 | #:use-module (guix build-system python) |
1c65314c FB |
83 | #:use-module (guix build-system trivial) |
84 | #:use-module (srfi srfi-1)) | |
a01b6da7 | 85 | |
b24d1cfc | 86 | (define-public python-2 |
a01b6da7 NK |
87 | (package |
88 | (name "python") | |
ff6f33cf | 89 | (version "2.7.10") |
a01b6da7 NK |
90 | (source |
91 | (origin | |
92 | (method url-fetch) | |
9b43a0ff | 93 | (uri (string-append "https://www.python.org/ftp/python/" |
a01b6da7 NK |
94 | version "/Python-" version ".tar.xz")) |
95 | (sha256 | |
96 | (base32 | |
6a20289d | 97 | "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw")) |
dedc8320 LC |
98 | (patches (map search-patch |
99 | '("python-2.7-search-paths.patch" | |
9820a6d4 | 100 | "python-2-deterministic-build-info.patch" |
dedc8320 | 101 | "python-2.7-source-date-epoch.patch"))))) |
02f0c3b2 LC |
102 | (outputs '("out" |
103 | "tk")) ;tkinter; adds 50 MiB to the closure | |
a01b6da7 | 104 | (build-system gnu-build-system) |
3fdc99da | 105 | (arguments |
af807dea | 106 | `(#:tests? #f |
ff6f33cf ED |
107 | ;; 268 tests OK. |
108 | ;; 103 tests failed: | |
109 | ;; test_distutils test_shutil test_signal test_site test_slice | |
110 | ;; test_smtplib test_smtpnet test_socket test_socketserver | |
111 | ;; test_softspace test_sort test_spwd test_sqlite test_ssl | |
112 | ;; test_startfile test_stat test_str test_strftime test_string | |
113 | ;; test_stringprep test_strop test_strptime test_strtod test_struct | |
114 | ;; test_structmembers test_structseq test_subprocess test_sunau | |
115 | ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys | |
116 | ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile | |
117 | ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread | |
118 | ;; test_threaded_import test_threadedtempfile test_threading | |
119 | ;; test_threading_local test_threadsignals test_time test_timeit | |
120 | ;; test_timeout test_tk test_tokenize test_tools test_trace | |
121 | ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly | |
122 | ;; test_tuple test_typechecks test_ucn test_unary | |
123 | ;; test_undocumented_details test_unicode test_unicode_file | |
124 | ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack | |
125 | ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net | |
126 | ;; test_urllibnet test_urlparse test_userdict test_userlist | |
127 | ;; test_userstring test_uu test_uuid test_wait3 test_wait4 | |
128 | ;; test_warnings test_wave test_weakref test_weakset test_whichdb | |
129 | ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib | |
130 | ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc | |
131 | ;; test_xpickle test_xrange test_zipfile test_zipfile64 | |
132 | ;; test_zipimport test_zipimport_support test_zlib | |
133 | ;; 30 tests skipped: | |
134 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 | |
135 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk | |
136 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt | |
137 | ;; test_curses test_dl test_gdb test_gl test_idle test_imageop | |
138 | ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos | |
139 | ;; test_macostools test_msilib test_nis test_ossaudiodev | |
140 | ;; test_scriptpackages | |
141 | ;; 6 skips unexpected on linux2: | |
142 | ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl | |
143 | ;; One of the typical errors: | |
144 | ;; test_unicode | |
145 | ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No | |
146 | ;; such file or directory | |
af807dea | 147 | #:test-target "test" |
3fdc99da | 148 | #:configure-flags |
6a20289d LC |
149 | (list "--enable-shared" ;allow embedding |
150 | "--with-system-ffi" ;build ctypes | |
151 | (string-append "LDFLAGS=-Wl,-rpath=" | |
152 | (assoc-ref %outputs "out") "/lib")) | |
fd982732 | 153 | |
d2cc9c7c LC |
154 | #:modules ((ice-9 ftw) (ice-9 match) |
155 | (guix build utils) (guix build gnu-build-system)) | |
fd982732 | 156 | #:phases |
46472ecd MW |
157 | (modify-phases %standard-phases |
158 | (add-before | |
159 | 'configure 'patch-lib-shells | |
160 | (lambda _ | |
161 | ;; Filter for existing files, since some may not exist in all | |
162 | ;; versions of python that are built with this recipe. | |
163 | (substitute* (filter file-exists? | |
164 | '("Lib/subprocess.py" | |
165 | "Lib/popen2.py" | |
166 | "Lib/distutils/tests/test_spawn.py" | |
167 | "Lib/test/test_subprocess.py")) | |
168 | (("/bin/sh") (which "sh"))) | |
dedc8320 LC |
169 | |
170 | ;; Use zero as the timestamp in .pyc files so that builds are | |
171 | ;; deterministic. TODO: Remove it when this variable is set in | |
172 | ;; gnu-build-system.scm. | |
a665996f | 173 | (setenv "SOURCE_DATE_EPOCH" "1") |
46472ecd | 174 | #t)) |
5b4e2791 LC |
175 | (add-before 'configure 'do-not-record-configure-flags |
176 | (lambda* (#:key configure-flags #:allow-other-keys) | |
177 | ;; Remove configure flags from the installed '_sysconfigdata.py' | |
178 | ;; and 'Makefile' so we don't end up keeping references to the | |
179 | ;; build tools. | |
180 | ;; | |
181 | ;; Preserve at least '--with-system-ffi' since otherwise the | |
182 | ;; thing tries to build libffi, fails, and we end up with a | |
183 | ;; Python that lacks ctypes. | |
184 | (substitute* "configure" | |
185 | (("^CONFIG_ARGS=.*$") | |
186 | (format #f "CONFIG_ARGS='~a'\n" | |
187 | (if (member "--with-system-ffi" configure-flags) | |
188 | "--with-system-ffi" | |
189 | "")))) | |
190 | #t)) | |
46472ecd MW |
191 | (add-before |
192 | 'check 'pre-check | |
193 | (lambda _ | |
194 | ;; 'Lib/test/test_site.py' needs a valid $HOME | |
195 | (setenv "HOME" (getcwd)) | |
196 | #t)) | |
197 | (add-after | |
198 | 'unpack 'set-source-file-times-to-1980 | |
199 | ;; XXX One of the tests uses a ZIP library to pack up some of the | |
200 | ;; source tree, and fails with "ZIP does not support timestamps | |
201 | ;; before 1980". Work around this by setting the file times in the | |
202 | ;; source tree to sometime in early 1980. | |
203 | (lambda _ | |
204 | (let ((circa-1980 (* 10 366 24 60 60))) | |
205 | (ftw "." (lambda (file stat flag) | |
206 | (utime file circa-1980 circa-1980) | |
207 | #t)) | |
02f0c3b2 LC |
208 | #t))) |
209 | (add-after 'install 'move-tk-inter | |
210 | (lambda* (#:key outputs #:allow-other-keys) | |
211 | ;; When Tkinter support is built move it to a separate output so | |
212 | ;; that the main output doesn't contain a reference to Tcl/Tk. | |
213 | (let ((out (assoc-ref outputs "out")) | |
214 | (tk (assoc-ref outputs "tk"))) | |
215 | (when tk | |
216 | (match (find-files out "tkinter.*\\.so") | |
217 | ((tkinter.so) | |
218 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we | |
219 | ;; want it under TK/lib/pythonX.Y/site-packages. | |
220 | (let* ((len (string-length out)) | |
221 | (target (string-append | |
222 | tk "/" | |
223 | (string-drop | |
224 | (dirname (dirname tkinter.so)) | |
225 | len) | |
226 | "/site-packages"))) | |
227 | (install-file tkinter.so target) | |
228 | (delete-file tkinter.so))))) | |
229 | #t)))))) | |
a01b6da7 | 230 | (inputs |
3fdc99da CR |
231 | `(("bzip2" ,bzip2) |
232 | ("gdbm" ,gdbm) | |
b10ab723 | 233 | ("libffi" ,libffi) ; for ctypes |
b88e1b0a | 234 | ("sqlite" ,sqlite) ; for sqlite extension |
a01b6da7 | 235 | ("openssl" ,openssl) |
3fdc99da | 236 | ("readline" ,readline) |
afa181ff LC |
237 | ("zlib" ,zlib) |
238 | ("tcl" ,tcl) | |
239 | ("tk" ,tk))) ; for tkinter | |
b10ab723 CR |
240 | (native-inputs |
241 | `(("pkg-config" ,pkg-config))) | |
9be8d7c8 LC |
242 | (native-search-paths |
243 | (list (search-path-specification | |
244 | (variable "PYTHONPATH") | |
af070955 | 245 | (files '("lib/python2.7/site-packages"))))) |
a01b6da7 | 246 | (home-page "http://python.org") |
afa181ff | 247 | (synopsis "High-level, dynamically-typed programming language") |
a01b6da7 NK |
248 | (description |
249 | "Python is a remarkably powerful dynamic programming language that | |
250 | is used in a wide variety of application domains. Some of its key | |
251 | distinguishing features include: clear, readable syntax; strong | |
252 | introspection capabilities; intuitive object orientation; natural | |
253 | expression of procedural code; full modularity, supporting hierarchical | |
254 | packages; exception-based error handling; and very high level dynamic | |
255 | data types.") | |
256 | (license psfl))) | |
acc26ff1 | 257 | |
b24d1cfc AE |
258 | (define-public python |
259 | (package (inherit python-2) | |
08c04509 | 260 | (version "3.4.3") |
717003e3 LC |
261 | (source (origin |
262 | (method url-fetch) | |
263 | (uri (string-append "https://www.python.org/ftp/python/" | |
264 | version "/Python-" version ".tar.xz")) | |
6a20289d LC |
265 | (patches (map search-patch |
266 | '("python-fix-tests.patch" | |
267 | ;; XXX Try removing this patch for python > 3.4.3 | |
268 | "python-disable-ssl-test.patch" | |
9820a6d4 | 269 | "python-3-deterministic-build-info.patch" |
6a20289d | 270 | "python-3-search-paths.patch"))) |
717003e3 LC |
271 | (patch-flags '("-p0")) |
272 | (sha256 | |
273 | (base32 | |
08c04509 | 274 | "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm")))) |
1f434457 MW |
275 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
276 | ((#:tests? _) #t))) | |
1aebc0cb AE |
277 | (native-search-paths |
278 | (list (search-path-specification | |
279 | (variable "PYTHONPATH") | |
0e05d01e SB |
280 | (files (list (string-append "lib/python" |
281 | (version-major+minor version) | |
282 | "/site-packages")))))))) | |
f26a77ff | 283 | |
95288fcc LC |
284 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
285 | ;; Python (Tk -> libxcb -> Python.) | |
286 | ||
287 | (define-public python2-minimal | |
288 | (package (inherit python-2) | |
289 | (name "python-minimal") | |
02f0c3b2 | 290 | (outputs '("out")) |
95288fcc LC |
291 | (arguments |
292 | (substitute-keyword-arguments (package-arguments python-2) | |
c5a05e31 LC |
293 | ((#:configure-flags cf) |
294 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
295 | (inputs '()))) ;none of the optional dependencies |
296 | ||
297 | (define-public python-minimal | |
898238b9 | 298 | (package (inherit python) |
95288fcc | 299 | (name "python-minimal") |
02f0c3b2 | 300 | (outputs '("out")) |
95288fcc LC |
301 | (arguments |
302 | (substitute-keyword-arguments (package-arguments python) | |
c5a05e31 LC |
303 | ((#:configure-flags cf) |
304 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
305 | |
306 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; | |
307 | ;; zlib is required by 'zipimport', used by pip. | |
308 | (inputs `(("openssl" ,openssl) | |
309 | ("zlib" ,zlib))))) | |
310 | ||
311 | (define* (wrap-python3 python #:optional (name "python-wrapper")) | |
898238b9 | 312 | (package (inherit python) |
95288fcc | 313 | (name name) |
898238b9 AE |
314 | (source #f) |
315 | (build-system trivial-build-system) | |
02f0c3b2 | 316 | (outputs '("out")) |
3c0f2329 | 317 | (propagated-inputs `(("python" ,python))) |
898238b9 AE |
318 | (arguments |
319 | `(#:modules ((guix build utils)) | |
320 | #:builder | |
321 | (begin | |
322 | (use-modules (guix build utils)) | |
323 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) | |
324 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) | |
325 | (mkdir-p bin) | |
326 | (for-each | |
327 | (lambda (old new) | |
328 | (symlink (string-append python old) | |
329 | (string-append bin "/" new))) | |
330 | `("python3", "pydoc3", "idle3") | |
331 | `("python", "pydoc", "idle")))))) | |
0d56e3e1 LC |
332 | (synopsis "Wrapper for the Python 3 commands") |
333 | (description | |
334 | "This package provides wrappers for the commands of Python@tie{}3.x such | |
335 | that they can be invoked under their usual name---e.g., @command{python} | |
336 | instead of @command{python3}."))) | |
337 | ||
95288fcc LC |
338 | (define-public python-wrapper (wrap-python3 python)) |
339 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) | |
898238b9 | 340 | |
aaf625b8 RW |
341 | (define-public python-psutil |
342 | (package | |
343 | (name "python-psutil") | |
f56777be | 344 | (version "3.3.0") |
aaf625b8 RW |
345 | (source |
346 | (origin | |
347 | (method url-fetch) | |
f56777be | 348 | (uri (pypi-uri "psutil" version)) |
aaf625b8 RW |
349 | (sha256 |
350 | (base32 | |
f56777be | 351 | "11bd1555vf2ibjnmqf64im5cp55vcqfq45ccinm9ll3bs68na6s2")))) |
aaf625b8 RW |
352 | (build-system python-build-system) |
353 | (native-inputs | |
354 | `(("python-setuptools" ,python-setuptools))) | |
355 | (home-page "https://pypi.python.org/pypi/psutil/") | |
356 | (synopsis "Library for retrieving information on running processes") | |
357 | (description | |
358 | "psutil (Python system and process utilities) is a library for retrieving | |
359 | information on running processes and system utilization (CPU, memory, disks, | |
360 | network) in Python. It is useful mainly for system monitoring, profiling and | |
361 | limiting process resources and management of running processes. It implements | |
362 | many functionalities offered by command line tools such as: ps, top, lsof, | |
363 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, | |
364 | pidof, tty, taskset, pmap.") | |
365 | (license bsd-3))) | |
366 | ||
367 | (define-public python2-psutil | |
368 | (package-with-python2 python-psutil)) | |
898238b9 | 369 | |
f9da1d8a ED |
370 | (define-public python-passlib |
371 | (package | |
372 | (name "python-passlib") | |
690e8c66 | 373 | (version "1.6.5") |
f9da1d8a ED |
374 | (source |
375 | (origin | |
376 | (method url-fetch) | |
690e8c66 | 377 | (uri (pypi-uri "passlib" version)) |
f9da1d8a ED |
378 | (sha256 |
379 | (base32 | |
690e8c66 | 380 | "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8")))) |
f9da1d8a ED |
381 | (build-system python-build-system) |
382 | (native-inputs | |
383 | `(("python-nose" ,python-nose) | |
384 | ("python-setuptools" ,python-setuptools))) | |
385 | (inputs | |
386 | `(("python-py-bcrypt" ,python-py-bcrypt))) | |
387 | (arguments | |
388 | `(#:phases | |
389 | (alist-cons-before | |
390 | 'check 'set-PYTHON_EGG_CACHE | |
391 | ;; some tests require access to "$HOME/.cython" | |
392 | (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp")) | |
393 | %standard-phases))) | |
394 | (home-page "https://bitbucket.org/ecollins/passlib") | |
395 | (synopsis | |
396 | "Comprehensive password hashing framework") | |
397 | (description | |
398 | "Passlib is a password hashing library for Python 2 & 3, which provides | |
399 | cross-platform implementations of over 30 password hashing algorithms, as well | |
400 | as a framework for managing existing password hashes. It's designed to be | |
401 | useful for a wide range of tasks, from verifying a hash found in /etc/shadow, | |
402 | to providing full-strength password hashing for multi-user application.") | |
403 | (license bsd-3))) | |
404 | ||
405 | (define-public python2-passlib | |
406 | (package-with-python2 python-passlib)) | |
407 | ||
feb0d9c3 ED |
408 | (define-public python-py-bcrypt |
409 | (package | |
410 | (name "python-py-bcrypt") | |
411 | (version "0.4") | |
412 | (source | |
413 | (origin | |
414 | (method url-fetch) | |
415 | (uri (string-append | |
416 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" | |
417 | version | |
418 | ".tar.gz")) | |
419 | (sha256 | |
420 | (base32 | |
421 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) | |
422 | (build-system python-build-system) | |
423 | (native-inputs | |
424 | `(("python-setuptools" ,python-setuptools))) | |
425 | (home-page "https://code.google.com/p/py-bcrypt") | |
426 | (synopsis | |
427 | "Bcrypt password hashing and key derivation") | |
428 | (description | |
429 | "A python wrapper of OpenBSD's Blowfish password hashing code. This | |
430 | system hashes passwords using a version of Bruce Schneier's Blowfish block | |
431 | cipher with modifications designed to raise the cost of off-line password | |
432 | cracking and frustrate fast hardware implementation. The computation cost of | |
433 | the algorithm is parametised, so it can be increased as computers get faster. | |
434 | The intent is to make a compromise of a password database less likely to | |
435 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using | |
436 | John the Ripper).") | |
437 | ;; "sha2.c" is under BSD-3; | |
438 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; | |
439 | ;; the rest is under ISC. | |
440 | (license (list isc bsd-3 bsd-4)))) | |
441 | ||
442 | (define-public python2-py-bcrypt | |
443 | (package-with-python2 python-py-bcrypt)) | |
444 | ||
445 | ||
429fdea1 ED |
446 | (define-public python-paramiko |
447 | (package | |
448 | (name "python-paramiko") | |
449 | (version "1.15.2") | |
450 | (source | |
451 | (origin | |
452 | (method url-fetch) | |
453 | (uri (string-append | |
454 | "https://pypi.python.org/packages/source/p/paramiko/paramiko-" | |
455 | version | |
456 | ".tar.gz")) | |
457 | (sha256 | |
458 | (base32 | |
459 | "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg")))) | |
460 | (build-system python-build-system) | |
461 | (native-inputs | |
462 | `(("python-setuptools" ,python-setuptools))) | |
a3fc12da CR |
463 | (propagated-inputs |
464 | `(("python-pycrypto" ,python-pycrypto))) | |
429fdea1 | 465 | (inputs |
a3fc12da | 466 | `(("python-ecdsa" ,python-ecdsa))) |
429fdea1 ED |
467 | (home-page "http://www.paramiko.org/") |
468 | (synopsis "SSHv2 protocol library") | |
469 | (description "Paramiko is a python implementation of the SSHv2 protocol, | |
470 | providing both client and server functionality. While it leverages a Python C | |
471 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure | |
472 | Python interface around SSH networking concepts.") | |
473 | (license lgpl2.1+))) | |
474 | ||
475 | (define-public python2-paramiko | |
476 | (package-with-python2 python-paramiko)) | |
477 | ||
478 | ||
de73dbf6 ED |
479 | (define-public python-httplib2 |
480 | (package | |
481 | (name "python-httplib2") | |
482 | (version "0.9.1") | |
483 | (source | |
484 | (origin | |
485 | (method url-fetch) | |
486 | (uri (string-append | |
487 | "https://pypi.python.org/packages/source/h/httplib2/httplib2-" | |
488 | version | |
489 | ".tar.gz")) | |
490 | (sha256 | |
491 | (base32 | |
492 | "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw")))) | |
493 | (build-system python-build-system) | |
494 | (native-inputs | |
495 | `(("python-setuptools" ,python-setuptools))) | |
496 | (home-page | |
497 | "https://github.com/jcgregorio/httplib2") | |
498 | (synopsis "Comprehensive HTTP client library") | |
499 | (description | |
500 | "A comprehensive HTTP client library supporting many features left out of | |
501 | other HTTP libraries.") | |
502 | (license license:expat))) | |
503 | ||
504 | (define-public python2-httplib2 | |
505 | (package-with-python2 python-httplib2)) | |
506 | ||
67039875 ED |
507 | (define-public python-ecdsa |
508 | (package | |
509 | (name "python-ecdsa") | |
510 | (version "0.13") | |
511 | (source | |
512 | (origin | |
513 | (method url-fetch) | |
514 | (uri (string-append | |
515 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" | |
516 | version | |
517 | ".tar.gz")) | |
518 | (sha256 | |
519 | (base32 | |
520 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) | |
521 | (build-system python-build-system) | |
522 | (native-inputs | |
523 | `(("python-setuptools" ,python-setuptools))) | |
524 | (inputs | |
525 | `(("openssl" ,openssl))) | |
526 | (home-page | |
527 | "http://github.com/warner/python-ecdsa") | |
528 | (synopsis | |
529 | "ECDSA cryptographic signature library (pure python)") | |
530 | (description | |
531 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic | |
532 | Curve Digital Signature Algorithm), implemented purely in Python. With this | |
533 | library, you can quickly create keypairs (signing key and verifying key), sign | |
534 | messages, and verify the signatures. The keys and signatures are very short, | |
535 | making them easy to handle and incorporate into other protocols.") | |
536 | (license license:expat))) | |
537 | ||
538 | (define-public python2-ecdsa | |
539 | (package-with-python2 python-ecdsa)) | |
540 | ||
52323f32 ED |
541 | (define-public python-ccm |
542 | (package | |
543 | (name "python-ccm") | |
544 | (version "2.0.4.1") | |
545 | (source | |
546 | (origin | |
547 | (method url-fetch) | |
548 | (uri (string-append | |
549 | "https://pypi.python.org/packages/source/c/ccm/ccm-" | |
550 | version | |
551 | ".tar.gz")) | |
552 | (sha256 | |
553 | (base32 | |
554 | "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9")))) | |
555 | (build-system python-build-system) | |
556 | (native-inputs | |
557 | `(("python-setuptools" ,python-setuptools))) | |
558 | (inputs | |
559 | `(("python-pyyaml" ,python-pyyaml) | |
560 | ("python-six" ,python-six))) | |
561 | (home-page "https://github.com/pcmanus/ccm") | |
562 | (synopsis "Cassandra Cluster Manager") | |
563 | (description "A script/library to create, launch and remove an Apache | |
564 | Cassandra cluster on localhost.") | |
565 | (license asl2.0))) | |
566 | ||
567 | (define-public python2-ccm | |
568 | (package-with-python2 python-ccm)) | |
569 | ||
89114f39 | 570 | (define-public python-pytz |
acc26ff1 | 571 | (package |
89114f39 | 572 | (name "python-pytz") |
b01bbbcf | 573 | (version "2015.7") |
acc26ff1 CR |
574 | (source |
575 | (origin | |
576 | (method url-fetch) | |
b01bbbcf | 577 | (uri (pypi-uri "pytz" version)) |
acc26ff1 CR |
578 | (sha256 |
579 | (base32 | |
b01bbbcf | 580 | "1spgdfp1ssya7v3kww7zp71xpj437skpqazcvqr3kr1p1brnw9lr")))) |
acc26ff1 | 581 | (build-system python-build-system) |
8498b8cf | 582 | (arguments `(#:tests? #f)) ; no test target |
b01bbbcf | 583 | (home-page "http://pythonhosted.org/pytz") |
9e771e3b | 584 | (synopsis "Python timezone library") |
acc26ff1 CR |
585 | (description |
586 | "This library allows accurate and cross platform timezone calculations | |
587 | using Python 2.4 or higher and provides access to the Olson timezone database.") | |
b01bbbcf | 588 | (license license:expat))) |
5ace6e2f | 589 | |
89114f39 | 590 | (define-public python2-pytz |
11bb85a1 | 591 | (package-with-python2 python-pytz)) |
89114f39 | 592 | |
fc50e9c6 | 593 | |
89114f39 | 594 | (define-public python-babel |
5ace6e2f | 595 | (package |
89114f39 | 596 | (name "python-babel") |
b850a6d8 | 597 | (version "2.1.1") |
5ace6e2f CR |
598 | (source |
599 | (origin | |
600 | (method url-fetch) | |
b850a6d8 | 601 | (uri (pypi-uri "Babel" version)) |
5ace6e2f CR |
602 | (sha256 |
603 | (base32 | |
b850a6d8 | 604 | "0j2jgfzj1a2m39pm2qc36fzr7a6p5ybwndi0xdzhi2p8zw7dbdkz")))) |
5ace6e2f CR |
605 | (build-system python-build-system) |
606 | (inputs | |
e1804763 AE |
607 | `(("python-pytz" ,python-pytz) |
608 | ("python-setuptools" ,python-setuptools))) | |
8498b8cf | 609 | (arguments `(#:tests? #f)) ; no test target |
e1804763 | 610 | (home-page "http://babel.pocoo.org/") |
5ace6e2f CR |
611 | (synopsis |
612 | "Tools for internationalizing Python applications") | |
613 | (description | |
614 | "Babel is composed of two major parts: | |
615 | - tools to build and work with gettext message catalogs | |
616 | - a Python interface to the CLDR (Common Locale Data Repository), providing | |
617 | access to various locale display names, localized number and date formatting, | |
618 | etc. ") | |
619 | (license bsd-3))) | |
89114f39 AE |
620 | |
621 | (define-public python2-babel | |
11bb85a1 | 622 | (package-with-python2 python-babel)) |
73adf220 | 623 | |
ed377cc6 RW |
624 | (define-public python2-backport-ssl-match-hostname |
625 | (package | |
626 | (name "python2-backport-ssl-match-hostname") | |
627 | (version "3.4.0.2") | |
628 | (source | |
629 | (origin | |
630 | (method url-fetch) | |
631 | (uri (string-append | |
632 | "https://pypi.python.org/packages/source/b/" | |
633 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" | |
634 | version ".tar.gz")) | |
635 | (sha256 | |
636 | (base32 | |
637 | "1bnn47ipvhy49n0m50v27lp4xj6sqdkdw676ypd7pawsn1zhwh87")))) | |
638 | (build-system python-build-system) | |
639 | (arguments `(#:python ,python-2)) | |
640 | (inputs | |
641 | `(("python2-setuptools" ,python2-setuptools))) | |
642 | (home-page "https://pypi.python.org/pypi/backports.ssl_match_hostname") | |
643 | (synopsis "Backport of ssl.match_hostname() function from Python 3.4") | |
644 | (description | |
645 | "This backport brings the ssl.match_hostname() function to users of | |
646 | earlier versions of Python. The function checks the hostname in the | |
647 | certificate returned by the server to which a connection has been established, | |
648 | and verifies that it matches the intended target hostname.") | |
649 | (license psfl))) | |
650 | ||
ef5cbf9b RW |
651 | (define-public python-h5py |
652 | (package | |
653 | (name "python-h5py") | |
654 | (version "2.4.0") | |
655 | (source | |
656 | (origin | |
657 | (method url-fetch) | |
658 | (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-" | |
659 | version ".tar.gz")) | |
660 | (sha256 | |
661 | (base32 | |
662 | "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) | |
663 | (build-system python-build-system) | |
797e1401 RW |
664 | (arguments |
665 | `(#:tests? #f ; no test target | |
666 | #:phases | |
667 | (modify-phases %standard-phases | |
668 | (add-after 'unpack 'fix-hdf5-paths | |
669 | (lambda* (#:key inputs #:allow-other-keys) | |
670 | (let ((prefix (assoc-ref inputs "hdf5"))) | |
671 | (substitute* "setup_build.py" | |
672 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") | |
673 | (string-append "['" prefix "/lib" "']")) | |
674 | (("'/opt/local/include', '/usr/local/include'") | |
675 | (string-append "'" prefix "/include" "'"))) | |
676 | (substitute* "setup_configure.py" | |
677 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") | |
678 | (string-append "['" prefix "/lib" "']"))) | |
679 | #t)))))) | |
3c4010b1 RW |
680 | (propagated-inputs |
681 | `(("python-numpy" ,python-numpy))) | |
ef5cbf9b | 682 | (inputs |
3c4010b1 | 683 | `(("hdf5" ,hdf5))) |
ef5cbf9b | 684 | (native-inputs |
3c4010b1 | 685 | `(("python-cython" ,python-cython))) |
ef5cbf9b RW |
686 | (home-page "http://www.h5py.org/") |
687 | (synopsis "Read and write HDF5 files from Python") | |
688 | (description | |
689 | "The h5py package provides both a high- and low-level interface to the | |
690 | HDF5 library from Python. The low-level interface is intended to be a | |
691 | complete wrapping of the HDF5 API, while the high-level component supports | |
692 | access to HDF5 files, datasets and groups using established Python and NumPy | |
693 | concepts.") | |
694 | (license bsd-3))) | |
695 | ||
696 | (define-public python2-h5py | |
697 | (let ((h5py (package-with-python2 python-h5py))) | |
698 | (package (inherit h5py) | |
3c4010b1 | 699 | (propagated-inputs |
ef5cbf9b RW |
700 | `(("python2-numpy" ,python2-numpy) |
701 | ,@(alist-delete | |
702 | "python-numpy" | |
3c4010b1 | 703 | (package-propagated-inputs h5py))))))) |
ef5cbf9b | 704 | |
c1448c69 EB |
705 | (define-public python-lockfile |
706 | (package | |
707 | (name "python-lockfile") | |
708 | (version "0.9.1") | |
709 | (source | |
710 | (origin | |
711 | (method url-fetch) | |
712 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" | |
713 | "lockfile-" version ".tar.gz")) | |
714 | (sha256 | |
715 | (base32 | |
716 | "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3")))) | |
717 | (build-system python-build-system) | |
718 | (arguments '(#:test-target "check")) | |
719 | (home-page "http://code.google.com/p/pylockfile/") | |
720 | (synopsis "Platform-independent file locking module") | |
721 | (description | |
722 | "The lockfile package exports a LockFile class which provides a simple | |
723 | API for locking files.") | |
bd3fa666 | 724 | (license license:expat))) |
c1448c69 EB |
725 | |
726 | (define-public python2-lockfile | |
727 | (package-with-python2 python-lockfile)) | |
728 | ||
5a1a4bf6 EB |
729 | (define-public python-mock |
730 | (package | |
731 | (name "python-mock") | |
732 | (version "1.0.1") | |
733 | (source | |
734 | (origin | |
735 | (method url-fetch) | |
736 | (uri (string-append "https://pypi.python.org/packages/source/m/mock/" | |
737 | "mock-" version ".tar.gz")) | |
738 | (sha256 | |
739 | (base32 | |
740 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) | |
741 | (build-system python-build-system) | |
742 | (arguments '(#:test-target "check")) | |
07af3e5e | 743 | (home-page "http://code.google.com/p/mock/") |
9e771e3b | 744 | (synopsis "Python mocking and patching library for testing") |
5a1a4bf6 EB |
745 | (description |
746 | "Mock is a library for testing in Python. It allows you to replace parts | |
747 | of your system under test with mock objects and make assertions about how they | |
748 | have been used.") | |
bd3fa666 | 749 | (license license:expat))) |
5a1a4bf6 EB |
750 | |
751 | (define-public python2-mock | |
752 | (package-with-python2 python-mock)) | |
753 | ||
fc50e9c6 | 754 | |
73adf220 AE |
755 | (define-public python-setuptools |
756 | (package | |
757 | (name "python-setuptools") | |
62a9a23b | 758 | (version "18.3.1") |
73adf220 AE |
759 | (source |
760 | (origin | |
761 | (method url-fetch) | |
762 | (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-" | |
763 | version ".tar.gz")) | |
764 | (sha256 | |
765 | (base32 | |
62a9a23b | 766 | "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig")))) |
73adf220 | 767 | (build-system python-build-system) |
d3d656c5 AE |
768 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
769 | ;; One could bootstrap with an internal untested setuptools. | |
73adf220 | 770 | (arguments |
824af8ca | 771 | `(#:tests? #f)) |
73adf220 AE |
772 | (home-page "https://pypi.python.org/pypi/setuptools") |
773 | (synopsis | |
774 | "Library designed to facilitate packaging Python projects") | |
775 | (description | |
776 | "Setuptools is a fully-featured, stable library designed to facilitate | |
777 | packaging Python projects, where packaging includes: | |
778 | Python package and module definitions, | |
779 | distribution package metadata, | |
780 | test hooks, | |
781 | project installation, | |
782 | platform-specific details, | |
783 | Python 3 support.") | |
784 | (license psfl))) | |
785 | ||
786 | (define-public python2-setuptools | |
787 | (package-with-python2 python-setuptools)) | |
fc50e9c6 AE |
788 | |
789 | ||
cafc3f5a EB |
790 | (define-public python-pycrypto |
791 | (package | |
792 | (name "python-pycrypto") | |
793 | (version "2.6.1") | |
794 | (source | |
795 | (origin | |
796 | (method url-fetch) | |
797 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
798 | "pycrypto/pycrypto-" version ".tar.gz")) | |
799 | (sha256 | |
800 | (base32 | |
801 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) | |
802 | (build-system python-build-system) | |
803 | (native-inputs | |
804 | `(("python-setuptools" ,python-setuptools))) | |
805 | (inputs | |
806 | `(("python" ,python) | |
807 | ("gmp" ,gmp))) | |
808 | (arguments | |
809 | `(#:phases | |
810 | (alist-cons-before | |
811 | 'build 'set-build-env | |
812 | ;; pycrypto runs an autoconf configure script behind the scenes | |
813 | (lambda _ | |
814 | (setenv "CONFIG_SHELL" (which "bash"))) | |
815 | %standard-phases))) | |
816 | (home-page "http://www.pycrypto.org/") | |
817 | (synopsis "Cryptographic modules for Python") | |
818 | (description | |
819 | "Pycrypto is a collection of both secure hash functions (such as SHA256 | |
820 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, | |
35b9e423 | 821 | etc.). The package is structured to make adding new modules easy.") |
cafc3f5a EB |
822 | (license public-domain))) |
823 | ||
345f0611 | 824 | (define-public python2-pycrypto |
1c0059da EF |
825 | (let ((pycrypto (package-with-python2 python-pycrypto))) |
826 | (package (inherit pycrypto) | |
827 | (inputs | |
828 | `(("python" ,python-2) | |
829 | ,@(alist-delete | |
830 | "python" | |
831 | (package-inputs pycrypto))))))) | |
345f0611 | 832 | |
cafc3f5a EB |
833 | (define-public python-keyring |
834 | (package | |
835 | (name "python-keyring") | |
664e6c3a | 836 | (version "5.7.1") |
cafc3f5a EB |
837 | (source |
838 | (origin | |
839 | (method url-fetch) | |
664e6c3a | 840 | (uri (pypi-uri "keyring" version)) |
cafc3f5a EB |
841 | (sha256 |
842 | (base32 | |
664e6c3a | 843 | "1h7a1r9ick7wdd0xb5p63413nvjadna2xawrsvmklsl5ddhm5wrx")))) |
cafc3f5a EB |
844 | (build-system python-build-system) |
845 | (native-inputs | |
664e6c3a EF |
846 | `(("python-setuptools" ,python-setuptools) |
847 | ("python-setuptools-scm" ,python-setuptools-scm) | |
cafc3f5a EB |
848 | ("python-mock" ,python-mock))) |
849 | (inputs | |
850 | `(("python-pycrypto" ,python-pycrypto))) | |
851 | (arguments | |
664e6c3a | 852 | `(#:tests? #f)) ;TODO: tests require pytest |
cafc3f5a EB |
853 | (home-page "http://bitbucket.org/kang/python-keyring-lib") |
854 | (synopsis "Store and access your passwords safely") | |
855 | (description | |
856 | "The Python keyring lib provides a easy way to access the system keyring | |
35b9e423 | 857 | service from python. It can be used in any application that needs safe |
cafc3f5a EB |
858 | password storage.") |
859 | ;; "MIT" and PSF dual license | |
860 | (license x11))) | |
861 | ||
d7af1069 | 862 | (define-public python2-keyring |
44e30a76 EF |
863 | (let ((keyring (package-with-python2 python-keyring))) |
864 | (package (inherit keyring) | |
865 | (inputs | |
866 | `(("python2-pycrypto" ,python2-pycrypto)))))) | |
d7af1069 | 867 | |
a480bc41 EB |
868 | (define-public python-six |
869 | (package | |
870 | (name "python-six") | |
b6ab89ef | 871 | (version "1.10.0") |
a480bc41 EB |
872 | (source |
873 | (origin | |
874 | (method url-fetch) | |
b6ab89ef | 875 | (uri (pypi-uri "six" version)) |
a480bc41 EB |
876 | (sha256 |
877 | (base32 | |
b6ab89ef | 878 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
a480bc41 EB |
879 | (build-system python-build-system) |
880 | (inputs | |
881 | `(("python-setuptools" ,python-setuptools))) | |
882 | (home-page "http://pypi.python.org/pypi/six/") | |
883 | (synopsis "Python 2 and 3 compatibility utilities") | |
884 | (description | |
35b9e423 | 885 | "Six is a Python 2 and 3 compatibility library. It provides utility |
a480bc41 EB |
886 | functions for smoothing over the differences between the Python versions with |
887 | the goal of writing Python code that is compatible on both Python versions. | |
35b9e423 | 888 | Six supports every Python version since 2.5. It is contained in only one |
a480bc41 EB |
889 | Python file, so it can be easily copied into your project.") |
890 | (license x11))) | |
891 | ||
0c20025c AE |
892 | (define-public python2-six |
893 | (package-with-python2 python-six)) | |
894 | ||
cafc3f5a EB |
895 | (define-public python-dateutil-2 |
896 | (package | |
897 | (name "python-dateutil") | |
c2a9c1c0 | 898 | (version "2.4.2") |
cafc3f5a EB |
899 | (source |
900 | (origin | |
901 | (method url-fetch) | |
902 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
903 | name "/" name "-" version ".tar.gz")) | |
904 | (sha256 | |
905 | (base32 | |
c2a9c1c0 | 906 | "0ggbm2z72p0nwjqgvpw8s5bqzwayqiqv2iws0x2a605m3mf4959y")))) |
cafc3f5a EB |
907 | (build-system python-build-system) |
908 | (inputs | |
909 | `(("python-setuptools" ,python-setuptools) | |
910 | ("python-six" ,python-six))) | |
911 | (home-page "http://labix.org/python-dateutil") | |
912 | (synopsis "Extensions to the standard datetime module") | |
913 | (description | |
914 | "The dateutil module provides powerful extensions to the standard | |
915 | datetime module, available in Python 2.3+.") | |
916 | (license bsd-3))) | |
917 | ||
918 | (define-public python2-dateutil-2 | |
919 | (package-with-python2 python-dateutil-2)) | |
920 | ||
fc50e9c6 AE |
921 | (define-public python-dateutil |
922 | (package | |
923 | (name "python-dateutil") | |
924 | (version "1.5") ; last version for python < 3 | |
925 | (source | |
926 | (origin | |
927 | (method url-fetch) | |
cafc3f5a EB |
928 | (uri (string-append "http://labix.org/download/python-dateutil/" |
929 | "python-dateutil-" version ".tar.gz")) | |
fc50e9c6 AE |
930 | (sha256 |
931 | (base32 | |
932 | "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0")))) | |
933 | (build-system python-build-system) | |
934 | (inputs | |
935 | `(("python-setuptools" ,python-setuptools))) | |
936 | (home-page "http://labix.org/python-dateutil") | |
cafc3f5a | 937 | (synopsis "Extensions to the standard datetime module") |
fc50e9c6 AE |
938 | (description |
939 | "The dateutil module provides powerful extensions to the standard | |
940 | datetime module, available in Python 2.3+.") | |
941 | (license psfl))) | |
942 | ||
943 | (define-public python2-dateutil | |
944 | (package-with-python2 python-dateutil)) | |
1d08c01f | 945 | |
cafc3f5a EB |
946 | (define-public python-parsedatetime |
947 | (package | |
948 | (name "python-parsedatetime") | |
4df1e30d | 949 | (version "1.5") |
cafc3f5a EB |
950 | (source |
951 | (origin | |
952 | (method url-fetch) | |
953 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
954 | "parsedatetime/parsedatetime-" version ".tar.gz")) | |
955 | (sha256 | |
956 | (base32 | |
4df1e30d | 957 | "1as0mm4ql3z0324nc9bys2s1ngh507i317p16b79rx86wlmvx9ix")))) |
cafc3f5a EB |
958 | (build-system python-build-system) |
959 | (native-inputs | |
960 | `(("python-setuptools" ,python-setuptools))) | |
cafc3f5a EB |
961 | (home-page "http://github.com/bear/parsedatetime/") |
962 | (synopsis | |
963 | "Parse human-readable date/time text") | |
964 | (description | |
e881752c | 965 | "Parse human-readable date/time text.") |
cafc3f5a EB |
966 | (license asl2.0))) |
967 | ||
38b8f9b2 LF |
968 | (define-public python2-parsedatetime |
969 | (package-with-python2 python-parsedatetime)) | |
970 | ||
d072efcb RW |
971 | (define-public python-pandas |
972 | (package | |
973 | (name "python-pandas") | |
974 | (version "0.16.0") | |
975 | (source | |
976 | (origin | |
977 | (method url-fetch) | |
978 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
979 | "pandas/pandas-" version ".tar.gz")) | |
980 | (sha256 | |
981 | (base32 "1wfrp8dx1zcsry6f09ndza6qm1yr7f163211f4l9vjlnhxpxw4s0")))) | |
982 | (build-system python-build-system) | |
983 | (arguments | |
984 | `(;; Three tests fail: | |
985 | ;; - test_read_google | |
986 | ;; - test_read_yahoo | |
987 | ;; - test_month_range_union_tz_dateutil | |
988 | #:tests? #f)) | |
989 | (propagated-inputs | |
990 | `(("python-numpy" ,python-numpy) | |
991 | ("python-pytz" ,python-pytz) | |
992 | ("python-dateutil" ,python-dateutil-2))) | |
993 | (native-inputs | |
994 | `(("python-nose" ,python-nose) | |
995 | ("python-setuptools" ,python-setuptools))) | |
996 | (home-page "http://pandas.pydata.org") | |
997 | (synopsis "Data structures for data analysis, time series, and statistics") | |
998 | (description | |
999 | "Pandas is a Python package providing fast, flexible, and expressive data | |
1000 | structures designed to make working with structured (tabular, | |
1001 | multidimensional, potentially heterogeneous) and time series data both easy | |
1002 | and intuitive. It aims to be the fundamental high-level building block for | |
1003 | doing practical, real world data analysis in Python.") | |
1004 | (license bsd-3))) | |
1005 | ||
1006 | (define-public python2-pandas | |
3cbe7d5e FB |
1007 | (let ((pandas (package-with-python2 python-pandas))) |
1008 | (package (inherit pandas) | |
1009 | (propagated-inputs | |
1010 | `(("python2-numpy" ,python2-numpy) | |
1011 | ,@(alist-delete "python-numpy" | |
1012 | (package-propagated-inputs pandas))))))) | |
d072efcb | 1013 | |
cafc3f5a EB |
1014 | (define-public python-tzlocal |
1015 | (package | |
1016 | (name "python-tzlocal") | |
226d3331 | 1017 | (version "1.2") |
cafc3f5a EB |
1018 | (source |
1019 | (origin | |
1020 | (method url-fetch) | |
226d3331 | 1021 | (uri (pypi-uri "tzlocal" version)) |
cafc3f5a EB |
1022 | (sha256 |
1023 | (base32 | |
226d3331 | 1024 | "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3")))) |
cafc3f5a | 1025 | (build-system python-build-system) |
226d3331 | 1026 | (propagated-inputs `(("python-pytz" ,python-pytz))) |
cafc3f5a EB |
1027 | (home-page "https://github.com/regebro/tzlocal") |
1028 | (synopsis | |
35b9e423 | 1029 | "Local timezone information for Python") |
cafc3f5a EB |
1030 | (description |
1031 | "Tzlocal returns a tzinfo object with the local timezone information. | |
1032 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
1033 | get the local timezone information, unless you know the zoneinfo name, and | |
1034 | under several distributions that's hard or impossible to figure out.") | |
1035 | (license cc0))) | |
1036 | ||
be7134bf RW |
1037 | (define-public python-pysam |
1038 | (package | |
1039 | (name "python-pysam") | |
1040 | (version "0.8.1") | |
1041 | (source | |
1042 | (origin | |
1043 | (method url-fetch) | |
1044 | (uri (string-append "https://pypi.python.org/packages/source/p/pysam/pysam-" | |
1045 | version ".tar.gz")) | |
1046 | (sha256 | |
1047 | (base32 | |
1048 | "1fb6i6hbpzxaxb62kyyp5alaidwhj40f7c6gwbhr6njzlqd5l459")))) | |
1049 | (build-system python-build-system) | |
1050 | (arguments | |
1051 | `(#:tests? #f ; tests are excluded in the manifest | |
1052 | #:phases | |
1053 | (alist-cons-before | |
1054 | 'build 'set-flags | |
1055 | (lambda _ | |
1056 | (setenv "LDFLAGS" "-lncurses") | |
1057 | (setenv "CFLAGS" "-D_CURSES_LIB=1")) | |
1058 | %standard-phases))) | |
1059 | (inputs | |
1060 | `(("python-cython" ,python-cython) | |
1061 | ("python-setuptools" ,python-setuptools) | |
1062 | ("ncurses" ,ncurses) | |
1063 | ("zlib" ,zlib))) | |
1064 | (home-page "https://github.com/pysam-developers/pysam") | |
1065 | (synopsis "Python bindings to the SAMtools C API") | |
1066 | (description | |
1067 | "Pysam is a Python module for reading and manipulating files in the | |
1068 | SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It | |
1069 | also includes an interface for tabix.") | |
bd3fa666 | 1070 | (license license:expat))) |
be7134bf RW |
1071 | |
1072 | (define-public python2-pysam | |
1073 | (package-with-python2 python-pysam)) | |
1d08c01f AE |
1074 | |
1075 | (define-public python2-pysqlite | |
1076 | (package | |
1077 | (name "python2-pysqlite") | |
7a03af70 | 1078 | (version "2.6.3a") ; see below |
1d08c01f AE |
1079 | (source |
1080 | (origin | |
1081 | (method url-fetch) | |
7a03af70 LC |
1082 | ;; During the switch from code.google.com to pypi.python.org, the 2.6.3 |
1083 | ;; tarball was modified, but the version number was kept: | |
1084 | ;; <https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00077.html>. | |
1085 | ;; Here we want to refer to the pypi-hosted 2.6.3 tarball. | |
1086 | (uri (string-append | |
1087 | "https://pypi.python.org/packages/source/p/pysqlite/pysqlite-" | |
1088 | "2.6.3" ".tar.gz")) | |
1d08c01f AE |
1089 | (sha256 |
1090 | (base32 | |
7a03af70 | 1091 | "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y")))) |
1d08c01f AE |
1092 | (build-system python-build-system) |
1093 | (inputs | |
1094 | `(("sqlite" ,sqlite))) | |
1095 | (arguments | |
1096 | `(#:python ,python-2 ; incompatible with Python 3 | |
1097 | #:tests? #f)) ; no test target | |
7a03af70 LC |
1098 | (home-page "https://pypi.python.org/pypi/pysqlite") |
1099 | (synopsis "SQLite bindings for Python") | |
1d08c01f AE |
1100 | (description |
1101 | "Pysqlite provides SQLite bindings for Python that comply to the | |
1102 | Database API 2.0T.") | |
ed0cdf83 | 1103 | (license license:zlib))) |
1d08c01f | 1104 | |
2875caf5 AE |
1105 | |
1106 | (define-public python2-mechanize | |
1107 | (package | |
1108 | (name "python2-mechanize") | |
1109 | (version "0.2.5") | |
1110 | (source | |
1111 | (origin | |
1112 | (method url-fetch) | |
1113 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" | |
1114 | version ".tar.gz")) | |
1115 | (sha256 | |
1116 | (base32 | |
1117 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) | |
1118 | (build-system python-build-system) | |
1119 | (inputs | |
1120 | `(("python2-setuptools" ,python2-setuptools))) | |
1121 | (arguments | |
1122 | `(#:python ,python-2 ; apparently incompatible with Python 3 | |
1123 | #:tests? #f)) | |
1124 | ;; test fails with message | |
1125 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' | |
1126 | ;; (python-3.3.2) or | |
1127 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' | |
1128 | ;; (python-2.7.5). | |
1129 | ;; The source code is from March 2011 and probably not up-to-date | |
1130 | ;; with respect to python unit tests. | |
1131 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") | |
1132 | (synopsis | |
1133 | "Stateful programmatic web browsing in Python") | |
1134 | (description | |
1135 | "Mechanize implements stateful programmatic web browsing in Python, | |
1136 | after Andy Lester’s Perl module WWW::Mechanize.") | |
166191b3 | 1137 | (license (non-copyleft "file://COPYING" |
e881752c | 1138 | "See COPYING in the distribution.")))) |
2875caf5 | 1139 | |
0352532e AE |
1140 | |
1141 | (define-public python-simplejson | |
1142 | (package | |
1143 | (name "python-simplejson") | |
1144 | (version "3.3.0") | |
1145 | (source | |
1146 | (origin | |
1147 | (method url-fetch) | |
1148 | (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-" | |
1149 | version ".tar.gz")) | |
1150 | (sha256 | |
1151 | (base32 | |
1152 | "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks")))) | |
1153 | (build-system python-build-system) | |
1154 | (home-page "http://simplejson.readthedocs.org/en/latest/") | |
1155 | (synopsis | |
1156 | "Json library for Python") | |
1157 | (description | |
e881752c AK |
1158 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
1159 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange | |
1160 | format. | |
0352532e AE |
1161 | |
1162 | Simplejson exposes an API familiar to users of the standard library marshal | |
1163 | and pickle modules. It is the externally maintained version of the json | |
1164 | library contained in Python 2.6, but maintains compatibility with Python 2.5 | |
1165 | and (currently) has significant performance advantages, even without using | |
1166 | the optional C extension for speedups. Simplejson is also supported on | |
1167 | Python 3.3+.") | |
1168 | (license x11))) | |
1169 | ||
1170 | (define-public python2-simplejson | |
1171 | (package-with-python2 python-simplejson)) | |
421a80a2 AE |
1172 | |
1173 | ||
1174 | (define-public python2-pyicu | |
1175 | (package | |
1176 | (name "python2-pyicu") | |
569ac046 | 1177 | (version "1.8") |
421a80a2 AE |
1178 | (source |
1179 | (origin | |
1180 | (method url-fetch) | |
1181 | (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-" | |
1182 | version ".tar.gz")) | |
1183 | (sha256 | |
1184 | (base32 | |
569ac046 | 1185 | "1y361x82lnh9k9srmdx3q92z5iag112z7r5fxm0n1sfwb349yjdw")))) |
421a80a2 AE |
1186 | (build-system python-build-system) |
1187 | (inputs | |
1188 | `(("icu4c" ,icu4c))) | |
1189 | (arguments | |
1190 | `(#:python ,python-2 ; Python 3 works also, but needs special care for | |
1191 | ; linking with libpython3.3m | |
1192 | #:tests? #f)) ; no check target | |
1193 | (home-page "http://pyicu.osafoundation.org/") | |
9e771e3b | 1194 | (synopsis "Python extension wrapping the ICU C++ API") |
421a80a2 AE |
1195 | (description |
1196 | "PyICU is a python extension wrapping the ICU C++ API.") | |
1197 | (license x11))) | |
cc20a22a LC |
1198 | |
1199 | (define-public python2-dogtail | |
1200 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and | |
1201 | ;; spaces in indentation" with Python 3. | |
1202 | (package | |
1203 | (name "python2-dogtail") | |
1204 | (version "0.8.2") | |
1205 | (source (origin | |
1206 | (method url-fetch) | |
1207 | (uri (string-append | |
1208 | "https://fedorahosted.org/released/dogtail/dogtail-" | |
1209 | version ".tar.gz")) | |
1210 | (sha256 | |
1211 | (base32 | |
1212 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) | |
1213 | (build-system python-build-system) | |
1214 | (arguments `(#:python ,python-2 | |
1215 | #:tests? #f)) ; invalid command "test" | |
1216 | (home-page "https://fedorahosted.org/dogtail/") | |
1217 | (synopsis "GUI test tool and automation framework written in Python") | |
1218 | (description | |
35b9e423 | 1219 | "Dogtail is a GUI test tool and automation framework written in Python. |
cc20a22a LC |
1220 | It uses Accessibility (a11y) technologies to communicate with desktop |
1221 | applications. dogtail scripts are written in Python and executed like any | |
1222 | other Python program.") | |
1223 | (license gpl2+))) | |
515e6878 | 1224 | |
011b18c3 LC |
1225 | (define-public python2-empy |
1226 | (package | |
1227 | (name "python2-empy") | |
1228 | (version "3.3") | |
1229 | (source (origin | |
1230 | (method url-fetch) | |
1231 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" | |
1232 | version ".tar.gz")) | |
1233 | (sha256 | |
1234 | (base32 | |
1235 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) | |
1236 | (build-system python-build-system) | |
1237 | (arguments | |
1238 | `(#:python ,python-2 | |
1239 | #:phases (alist-replace | |
1240 | 'check | |
1241 | (lambda _ | |
1242 | (zero? (system* "./test.sh"))) | |
1243 | %standard-phases))) | |
1244 | (home-page "http://www.alcyone.com/software/empy/") | |
1245 | (synopsis "Templating system for Python") | |
1246 | (description | |
1247 | "EmPy is a system for embedding Python expressions and statements in | |
1248 | template text; it takes an EmPy source file, processes it, and produces | |
1249 | output. This is accomplished via expansions, which are special signals to the | |
1cd4027c | 1250 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
011b18c3 LC |
1251 | EmPy can expand arbitrary Python expressions and statements in this way, as |
1252 | well as a variety of special forms. Textual data not explicitly delimited in | |
1253 | this way is sent unaffected to the output, allowing Python to be used in | |
1254 | effect as a markup language. Also supported are callbacks via hooks, | |
1255 | recording and playback via diversions, and dynamic, chainable filters. The | |
1256 | system is highly configurable via command line options and embedded | |
1257 | commands.") | |
1258 | (license lgpl2.1+))) | |
1259 | ||
8deeda0c LC |
1260 | (define-public python2-element-tree |
1261 | (package | |
1262 | (name "python2-element-tree") | |
1263 | (version "1.2.6") | |
1264 | (source (origin | |
1265 | (method url-fetch) | |
1266 | (uri (string-append | |
1267 | "http://effbot.org/media/downloads/elementtree-" | |
1268 | version "-20050316.tar.gz")) | |
1269 | (sha256 | |
1270 | (base32 | |
1271 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) | |
1272 | (build-system python-build-system) | |
1273 | (arguments | |
1274 | `(#:python ,python-2 ; seems to be part of Python 3 | |
1275 | #:tests? #f)) ; no 'test' sub-command | |
1276 | (synopsis "Toolkit for XML processing in Python") | |
1277 | (description | |
1278 | "ElementTree is a Python library supporting lightweight XML processing.") | |
1279 | (home-page "http://effbot.org/zone/element-index.htm") | |
1280 | (license (x11-style "http://docs.python.org/2/license.html" | |
1281 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON \ | |
1282 | 0.9.0 THROUGH 1.2\".")))) | |
1283 | ||
1284 | (define-public python2-pybugz | |
1285 | (package | |
1286 | (name "python2-pybugz") | |
1287 | (version "0.6.11") | |
1288 | (source (origin | |
1289 | (method url-fetch) | |
1290 | (uri (string-append | |
1291 | "http://bits.liquidx.net/projects/pybugz/pybugz-" | |
1292 | version ".tar.gz")) | |
1293 | (sha256 | |
1294 | (base32 | |
6f194a1e LC |
1295 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
1296 | (patches (map search-patch | |
1297 | (list "pybugz-stty.patch" | |
1298 | "pybugz-encode-error.patch"))))) | |
8deeda0c LC |
1299 | (build-system python-build-system) |
1300 | (arguments | |
1301 | `(#:python ,python-2 ; SyntaxError with Python 3 | |
1302 | #:tests? #f)) ; no 'test' sub-command | |
1303 | (inputs `(("element-tree" ,python2-element-tree))) | |
1304 | (synopsis "Python and command-line interface to Bugzilla") | |
1305 | (description | |
1306 | "PyBugz is a Python library and command-line tool to query the Bugzilla | |
1307 | bug tracking system. It is meant as an aid to speed up interaction with the | |
1308 | bug tracker.") | |
1309 | (home-page "http://www.liquidx.net/pybugz/") | |
1310 | (license gpl2))) | |
1311 | ||
a480bc41 EB |
1312 | (define-public python-enum34 |
1313 | (package | |
1314 | (name "python-enum34") | |
1315 | (version "1.0") | |
1316 | (source | |
1317 | (origin | |
1318 | (method url-fetch) | |
1319 | (uri (string-append "https://pypi.python.org/packages/source/e/" | |
1320 | "enum34/enum34-" version ".tar.gz")) | |
1321 | (sha256 | |
1322 | (base32 | |
1323 | "0dg6mpg9n4g9diyrbnbb5vd9d1qw9f265zwhknqy0mxh0cvmjjrq")))) | |
1324 | (build-system python-build-system) | |
1325 | (inputs | |
1326 | `(("python-setuptools" ,python-setuptools))) | |
1327 | (arguments | |
1328 | `(#:phases | |
1329 | (alist-replace | |
1330 | 'check | |
1331 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) | |
1332 | %standard-phases))) | |
1333 | (home-page "https://pypi.python.org/pypi/enum34") | |
1334 | (synopsis "Backported Python 3.4 Enum") | |
1335 | (description | |
1336 | "Enum34 is the new Python stdlib enum module available in Python 3.4 | |
1337 | backported for previous versions of Python from 2.4 to 3.3.") | |
1338 | (license bsd-3))) | |
1339 | ||
1340 | (define-public python-parse-type | |
1341 | (package | |
1342 | (name "python-parse-type") | |
1343 | (version "0.3.4") | |
1344 | (source | |
1345 | (origin | |
1346 | (method url-fetch) | |
1347 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1348 | "parse_type/parse_type-" version ".tar.gz")) | |
1349 | (sha256 | |
1350 | (base32 | |
1351 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) | |
1352 | (build-system python-build-system) | |
1353 | (inputs | |
1354 | `(("python-setuptools" ,python-setuptools) | |
1355 | ("python-six" ,python-six) | |
1356 | ("python-parse" ,python-parse) | |
1357 | ("python-enum34" ,python-enum34))) ;required for python<3.4 | |
1358 | (arguments '(#:tests? #f)) ;TODO: tests require pytest | |
1359 | (home-page "https://github.com/jenisys/parse_type") | |
1360 | (synopsis "Extended parse module") | |
1361 | (description | |
1362 | "Parse_type extends the python parse module.") | |
1363 | (license bsd-3))) | |
1364 | ||
1365 | (define-public python-parse | |
1366 | (package | |
1367 | (name "python-parse") | |
1368 | (version "1.6.4") | |
1369 | (source | |
1370 | (origin | |
1371 | (method url-fetch) | |
1372 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1373 | "parse/parse-" version ".tar.gz")) | |
1374 | (sha256 | |
1375 | (base32 | |
1376 | "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57")))) | |
1377 | (build-system python-build-system) | |
1378 | (arguments | |
1379 | `(#:phases | |
1380 | (alist-replace | |
1381 | 'check | |
1382 | (lambda _ (zero? (system* "python" "test_parse.py"))) | |
1383 | %standard-phases))) | |
1384 | (home-page "https://github.com/r1chardj0n3s/parse") | |
1385 | (synopsis "Parse strings") | |
1386 | (description | |
1387 | "Parse strings using a specification based on the Python format() | |
1388 | syntax.") | |
1389 | (license x11))) | |
1390 | ||
1391 | ||
515e6878 LC |
1392 | (define-public scons |
1393 | (package | |
1394 | (name "scons") | |
a3f61425 | 1395 | (version "2.3.4") |
515e6878 LC |
1396 | (source (origin |
1397 | (method url-fetch) | |
1398 | (uri (string-append "mirror://sourceforge/scons/scons-" | |
1399 | version ".tar.gz")) | |
1400 | (sha256 | |
1401 | (base32 | |
a3f61425 | 1402 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
515e6878 LC |
1403 | (build-system python-build-system) |
1404 | (arguments | |
1405 | ;; With Python 3.x, fails to build with a syntax error. | |
1406 | `(#:python ,python-2 | |
1407 | #:tests? #f)) ; no 'python setup.py test' command | |
1408 | (home-page "http://scons.org/") | |
1409 | (synopsis "Software construction tool written in Python") | |
1410 | (description | |
1411 | "SCons is a software construction tool. Think of SCons as an improved, | |
1412 | cross-platform substitute for the classic Make utility with integrated | |
1413 | functionality similar to autoconf/automake and compiler caches such as ccache. | |
1414 | In short, SCons is an easier, more reliable and faster way to build | |
1415 | software.") | |
1416 | (license x11))) | |
011b18c3 | 1417 | |
c15a5c0e DT |
1418 | (define-public python-extras |
1419 | (package | |
1420 | (name "python-extras") | |
1421 | (version "0.0.3") | |
1422 | (source | |
1423 | (origin | |
1424 | (method url-fetch) | |
1425 | (uri (string-append | |
1426 | "https://pypi.python.org/packages/source/e/extras/extras-" | |
1427 | version ".tar.gz")) | |
1428 | (sha256 | |
1429 | (base32 | |
1430 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) | |
1431 | (build-system python-build-system) | |
1432 | (inputs | |
1433 | `(("python-setuptools" ,python-setuptools))) | |
1434 | (arguments | |
1435 | ;; error in setup.cfg: command 'test' has no such option 'buffer' | |
1436 | '(#:tests? #f)) | |
1437 | (home-page "https://github.com/testing-cabal/extras") | |
1438 | (synopsis "Useful extensions to the Python standard library") | |
1439 | (description | |
1440 | "Extras is a set of extensions to the Python standard library.") | |
bd3fa666 | 1441 | (license license:expat))) |
c15a5c0e DT |
1442 | |
1443 | (define-public python2-extras | |
1444 | (package-with-python2 python-extras)) | |
1445 | ||
56ea0efd DT |
1446 | (define-public python-mimeparse |
1447 | (package | |
1448 | (name "python-mimeparse") | |
1449 | (version "0.1.4") | |
1450 | (source | |
1451 | (origin | |
1452 | (method url-fetch) | |
1453 | (uri (string-append | |
1454 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" | |
1455 | version ".tar.gz")) | |
1456 | (sha256 | |
1457 | (base32 | |
1458 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) | |
1459 | (build-system python-build-system) | |
1460 | (inputs | |
1461 | `(("python-setuptools" ,python-setuptools))) | |
1462 | (arguments | |
1463 | '(#:tests? #f)) ; no setup.py test command | |
1464 | (home-page | |
1465 | "https://github.com/dbtsai/python-mimeparse") | |
9e771e3b | 1466 | (synopsis "Python library for parsing MIME types") |
56ea0efd DT |
1467 | (description |
1468 | "Mimeparse provides basic functions for parsing MIME type names and | |
1469 | matching them against a list of media-ranges.") | |
bd3fa666 | 1470 | (license license:expat))) |
56ea0efd DT |
1471 | |
1472 | (define-public python2-mimeparse | |
1473 | (package-with-python2 python-mimeparse)) | |
1474 | ||
4435427e DT |
1475 | (define-public python-nose |
1476 | (package | |
1477 | (name "python-nose") | |
f7cb9841 | 1478 | (version "1.3.7") |
4435427e DT |
1479 | (source |
1480 | (origin | |
1481 | (method url-fetch) | |
f7cb9841 | 1482 | (uri (pypi-uri "nose" version)) |
4435427e DT |
1483 | (sha256 |
1484 | (base32 | |
f7cb9841 | 1485 | "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi")))) |
4435427e DT |
1486 | (build-system python-build-system) |
1487 | (inputs | |
1488 | `(("python-setuptools" ,python-setuptools))) | |
1489 | (arguments | |
1490 | '(#:tests? #f)) ; FIXME: test suite fails | |
1491 | (home-page "http://readthedocs.org/docs/nose/") | |
1492 | (synopsis "Python testing library") | |
1493 | (description | |
1494 | "Nose extends the unittest library to make testing easier.") | |
1495 | (license lgpl2.0+))) | |
1496 | ||
1497 | (define-public python2-nose | |
1498 | (package-with-python2 python-nose)) | |
1499 | ||
6cd9c356 DT |
1500 | (define-public python-unittest2 |
1501 | (package | |
1502 | (name "python-unittest2") | |
1503 | (version "0.5.1") | |
1504 | (source | |
1505 | (origin | |
1506 | (method url-fetch) | |
1507 | (uri (string-append | |
1508 | "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-" | |
1509 | version ".tar.gz")) | |
1510 | (sha256 | |
1511 | (base32 | |
1512 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) | |
1513 | (build-system python-build-system) | |
1514 | (inputs | |
1515 | `(("python-setuptools" ,python-setuptools))) | |
1516 | (home-page "http://pypi.python.org/pypi/unittest2") | |
1517 | (synopsis "Python unit testing library") | |
1518 | (description | |
1519 | "Unittest2 is a replacement for the unittest module in the Python | |
1520 | standard library.") | |
1521 | (license psfl))) | |
1522 | ||
1523 | (define-public python2-unittest2 | |
1524 | (package (inherit python-unittest2) | |
1525 | (name "python2-unittest2") | |
1526 | (version "0.5.1") | |
1527 | (source | |
1528 | (origin | |
1529 | (method url-fetch) | |
1530 | (uri (string-append | |
1531 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" | |
1532 | version ".tar.gz")) | |
1533 | (sha256 | |
1534 | (base32 | |
1535 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) | |
1536 | (inputs | |
7957fe6c | 1537 | `(("python2-setuptools" ,python2-setuptools))) |
6cd9c356 DT |
1538 | (arguments |
1539 | `(#:python ,python-2 | |
1540 | #:tests? #f)))) ; no setup.py test command | |
1541 | ||
542ad60f DT |
1542 | (define-public python-py |
1543 | (package | |
1544 | (name "python-py") | |
71c8a804 | 1545 | (version "1.4.31") |
542ad60f DT |
1546 | (source |
1547 | (origin | |
1548 | (method url-fetch) | |
71c8a804 | 1549 | (uri (pypi-uri "py" version)) |
542ad60f DT |
1550 | (sha256 |
1551 | (base32 | |
71c8a804 | 1552 | "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56")))) |
542ad60f DT |
1553 | (build-system python-build-system) |
1554 | (inputs | |
1555 | `(("python-setuptools" ,python-setuptools))) | |
1556 | (home-page "http://pylib.readthedocs.org/") | |
1557 | (synopsis "Python library for parsing, I/O, instrospection, and logging") | |
1558 | (description | |
1559 | "Py is a Python library for file name parsing, .ini file parsing, I/O, | |
1560 | code introspection, and logging.") | |
bd3fa666 | 1561 | (license license:expat))) |
542ad60f DT |
1562 | |
1563 | (define-public python2-py | |
1564 | (package-with-python2 python-py)) | |
1565 | ||
855d4761 DT |
1566 | (define-public python-pytest |
1567 | (package | |
1568 | (name "python-pytest") | |
1569 | (version "2.6.1") | |
1570 | (source | |
1571 | (origin | |
1572 | (method url-fetch) | |
1573 | (uri (string-append | |
1574 | "https://pypi.python.org/packages/source/p/pytest/pytest-" | |
1575 | version ".tar.gz")) | |
1576 | (sha256 | |
1577 | (base32 | |
1578 | "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) | |
1579 | (modules '((guix build utils))) | |
1580 | (snippet | |
1581 | ;; One of the tests involves the /usr directory, so it fails. | |
1582 | '(substitute* "testing/test_argcomplete.py" | |
1583 | (("def test_remove_dir_prefix\\(self\\):") | |
1584 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) | |
1585 | (build-system python-build-system) | |
1586 | (inputs | |
1587 | `(("python-setuptools" ,python-setuptools) | |
1588 | ("python-py" ,python-py) | |
1589 | ("python-nose" ,python-nose) | |
1590 | ("python-mock" ,python-mock))) | |
1591 | (home-page "http://pytest.org") | |
1592 | (synopsis "Python testing library") | |
1593 | (description | |
1594 | "Pytest is a testing tool that provides auto-discovery of test modules | |
1595 | and functions, detailed info on failing assert statements, modular fixtures, | |
1596 | and many external plugins.") | |
bd3fa666 | 1597 | (license license:expat))) |
855d4761 DT |
1598 | |
1599 | (define-public python2-pytest | |
1600 | (package-with-python2 python-pytest)) | |
1601 | ||
358c3d61 EF |
1602 | (define-public python-pytest-cov |
1603 | (package | |
1604 | (name "python-pytest-cov") | |
1605 | (version "2.2.0") | |
1606 | (source | |
1607 | (origin | |
1608 | (method url-fetch) | |
1609 | (uri (pypi-uri "pytest-cov" version)) | |
1610 | (sha256 | |
1611 | (base32 | |
1612 | "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92")))) | |
1613 | (build-system python-build-system) | |
1614 | (propagated-inputs | |
1615 | `(("python-coverage" ,python-coverage) | |
1616 | ("python-pytest" ,python-pytest))) | |
1617 | (native-inputs | |
1618 | `(("python-setuptools" ,python-setuptools))) | |
1619 | (home-page "https://github.com/pytest-dev/pytest-cov") | |
1620 | (synopsis "Pytest plugin for measuring coverage") | |
1621 | (description | |
1622 | "Pytest-cov produces coverage reports. It supports centralised testing and | |
1623 | distributed testing in both load and each modes. It also supports coverage | |
1624 | of subprocesses.") | |
1625 | (license license:expat))) | |
1626 | ||
1627 | (define-public python2-pytest-cov | |
1628 | (package-with-python2 python-pytest-cov)) | |
1629 | ||
6784f2e3 RW |
1630 | (define-public python-pytest-runner |
1631 | (package | |
1632 | (name "python-pytest-runner") | |
1633 | (version "2.6.2") | |
1634 | (source | |
1635 | (origin | |
1636 | (method url-fetch) | |
1637 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1638 | "pytest-runner/pytest-runner-" | |
1639 | version ".tar.gz")) | |
1640 | (sha256 | |
1641 | (base32 | |
1642 | "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) | |
1643 | (build-system python-build-system) | |
1644 | (arguments | |
1645 | `(#:phases | |
1646 | (modify-phases %standard-phases | |
1647 | ;; The fancy way of setting the version with setuptools_scm does not | |
1648 | ;; seem to work here. | |
1649 | (add-after 'unpack 'set-version | |
1650 | (lambda _ | |
1651 | (substitute* "docs/conf.py" | |
1652 | (("version = setuptools_scm\\.get_version\\(root='\\.\\.')") | |
1653 | (string-append "version = \"" ,version "\""))) | |
1654 | #t))))) | |
1655 | (native-inputs | |
1656 | `(("python-pytest" ,python-pytest) | |
d50d097d | 1657 | ("python-setuptools" ,python-setuptools) |
6784f2e3 RW |
1658 | ("python-setuptools-scm" ,python-setuptools-scm))) |
1659 | (home-page "https://bitbucket.org/pytest-dev/pytest-runner") | |
1660 | (synopsis "Invoke py.test as a distutils command") | |
1661 | (description | |
1662 | "This package provides a @command{pytest-runner} command that | |
1663 | @file{setup.py} files can use to run tests.") | |
1664 | (license license:expat))) | |
1665 | ||
1666 | (define-public python2-pytest-runner | |
1667 | (package-with-python2 python-pytest-runner)) | |
1668 | ||
84d24017 DT |
1669 | (define-public python-scripttest |
1670 | (package | |
1671 | (name "python-scripttest") | |
1672 | (version "1.3") | |
1673 | (source | |
1674 | (origin | |
1675 | (method url-fetch) | |
1676 | (uri (string-append | |
1677 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" | |
1678 | version ".tar.gz")) | |
1679 | (sha256 | |
1680 | (base32 | |
1681 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) | |
1682 | (build-system python-build-system) | |
1683 | (inputs | |
1684 | `(("python-setuptools" ,python-setuptools) | |
1685 | ("python-pytest" ,python-pytest))) | |
1686 | (home-page "http://pythonpaste.org/scripttest/") | |
1687 | (synopsis "Python library to test command-line scripts") | |
1688 | (description "Scripttest is a Python helper library for testing | |
1689 | interactive command-line applications. With it you can run a script in a | |
1690 | subprocess and see the output as well as any file modifications.") | |
bd3fa666 | 1691 | (license license:expat))) |
84d24017 DT |
1692 | |
1693 | (define-public python2-scripttest | |
1694 | (package-with-python2 python-scripttest)) | |
1695 | ||
d8fa80e1 DT |
1696 | (define-public python-testtools |
1697 | (package | |
1698 | (name "python-testtools") | |
1699 | (version "1.0.0") | |
1700 | (source | |
1701 | (origin | |
1702 | (method url-fetch) | |
1703 | (uri (string-append | |
1704 | "https://pypi.python.org/packages/source/t/testtools/testtools-" | |
1705 | version ".tar.gz")) | |
1706 | (sha256 | |
1707 | (base32 | |
1708 | "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx")))) | |
1709 | (build-system python-build-system) | |
0e88cbf8 CR |
1710 | (propagated-inputs |
1711 | `(("python-mimeparse" ,python-mimeparse))) | |
d8fa80e1 DT |
1712 | (inputs |
1713 | `(("python-setuptools" ,python-setuptools) | |
d8fa80e1 DT |
1714 | ("python-extras" ,python-extras))) |
1715 | (home-page "https://github.com/testing-cabal/testtools") | |
1716 | (synopsis | |
1717 | "Extensions to the Python standard library unit testing framework") | |
1718 | (description | |
1719 | "Testtools extends the Python standard library unit testing framework to | |
1720 | provide matchers, more debugging information, and cross-Python | |
1721 | compatibility.") | |
1722 | (license psfl))) | |
1723 | ||
1724 | (define-public python2-testtools | |
1725 | (package-with-python2 python-testtools)) | |
1726 | ||
5bf3afea DT |
1727 | (define-public python-testscenarios |
1728 | (package | |
1729 | (name "python-testscenarios") | |
1730 | (version "0.4") | |
1731 | (source | |
1732 | (origin | |
1733 | (method url-fetch) | |
1734 | (uri (string-append | |
1735 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" | |
1736 | version ".tar.gz")) | |
1737 | (sha256 | |
1738 | (base32 | |
1739 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) | |
1740 | (build-system python-build-system) | |
1741 | (inputs | |
1742 | `(("python-setuptools" ,python-setuptools) | |
1743 | ("python-testtools" ,python-testtools) | |
1744 | ("python-mimeparse" ,python-mimeparse))) | |
1745 | (home-page "https://launchpad.net/testscenarios") | |
1746 | (synopsis "Pyunit extension for dependency injection") | |
1747 | (description | |
1748 | "Testscenarios provides clean dependency injection for Python unittest | |
1749 | style tests.") | |
1750 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1751 | ||
1752 | (define-public python2-testscenarios | |
1753 | (package-with-python2 python-testscenarios)) | |
1754 | ||
dac79ecc DT |
1755 | (define-public python-testresources |
1756 | (package | |
1757 | (name "python-testresources") | |
1758 | (version "0.2.7") | |
1759 | (source | |
1760 | (origin | |
1761 | (method url-fetch) | |
1762 | (uri (string-append | |
1763 | "https://pypi.python.org/packages/source/t/testresources/testresources-" | |
1764 | version ".tar.gz")) | |
1765 | (sha256 | |
1766 | (base32 | |
1767 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) | |
1768 | (build-system python-build-system) | |
1769 | (inputs | |
1770 | `(("python-setuptools" ,python-setuptools))) | |
1771 | (home-page "https://launchpad.net/testresources") | |
1772 | (synopsis | |
1773 | "Pyunit extension for managing test resources") | |
1774 | (description | |
1775 | "Testresources is an extension to Python's unittest to allow declarative | |
1776 | use of resources by test cases.") | |
1777 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1778 | ||
1779 | (define-public python2-testresources | |
1780 | (package-with-python2 python-testresources)) | |
1781 | ||
070ab058 DT |
1782 | (define-public python-subunit |
1783 | (package | |
1784 | (name "python-subunit") | |
1785 | (version "0.0.21") | |
1786 | (source | |
1787 | (origin | |
1788 | (method url-fetch) | |
1789 | (uri (string-append | |
1790 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" | |
1791 | version ".tar.gz")) | |
1792 | (sha256 | |
1793 | (base32 | |
1794 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) | |
1795 | (build-system python-build-system) | |
1796 | (inputs | |
1797 | `(("python-setuptools" ,python-setuptools) | |
1798 | ("python-testtools" ,python-testtools) | |
1799 | ("python-mimeparse" ,python-mimeparse) | |
1800 | ("python-testscenarios" ,python-testscenarios))) | |
1801 | (home-page "http://launchpad.net/subunit") | |
1802 | (synopsis "Python implementation of the subunit protocol") | |
1803 | (description | |
1804 | "Python-subunit is a Python implementation of the subunit test streaming | |
1805 | protocol.") | |
1806 | (license (list bsd-3 asl2.0)))) ; at the user's option | |
1807 | ||
1808 | (define-public python2-subunit | |
1809 | (package-with-python2 python-subunit)) | |
1810 | ||
7787ef76 CR |
1811 | ;; Recent versions of python-fixtures need a recent version of python-pbr, |
1812 | ;; which needs a recent version of python-fixtures. To fix this circular | |
1813 | ;; dependency, we keep old versions of python-fixtures and python-pbr to | |
1814 | ;; bootstrap the whole thing: | |
1815 | ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11 | |
1816 | ;; - python-pbr-0.11 is used to build python-fixtures | |
1817 | ;; - python-fixtures is used to build python-pbr | |
1818 | (define-public python-fixtures-0.3.16 | |
cd49454b DT |
1819 | (package |
1820 | (name "python-fixtures") | |
1821 | (version "0.3.16") | |
1822 | (source | |
1823 | (origin | |
1824 | (method url-fetch) | |
1825 | (uri (string-append | |
1826 | "https://pypi.python.org/packages/source/f/fixtures/fixtures-" | |
1827 | version ".tar.gz")) | |
1828 | (sha256 | |
1829 | (base32 | |
1830 | "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc")))) | |
1831 | (build-system python-build-system) | |
1832 | (inputs | |
1833 | `(("python-setuptools" ,python-setuptools))) | |
1834 | (arguments | |
1835 | '(#:tests? #f)) ; no setup.py test command | |
1836 | (home-page "https://launchpad.net/python-fixtures") | |
1837 | (synopsis "Python test fixture library") | |
1838 | (description | |
1839 | "Fixtures provides a way to create reusable state, useful when writing | |
1840 | Python tests.") | |
1841 | (license (list bsd-3 asl2.0)))) ; at user's option | |
1842 | ||
7787ef76 CR |
1843 | (define-public python2-fixtures-0.3.16 |
1844 | (package-with-python2 python-fixtures-0.3.16)) | |
1845 | ||
1846 | (define-public python-pbr-0.11 | |
1847 | (package | |
1848 | (name "python-pbr") | |
1849 | (version "0.11.0") | |
1850 | (source | |
1851 | (origin | |
1852 | (method url-fetch) | |
1853 | (uri (string-append | |
1854 | "https://pypi.python.org/packages/source/p/pbr/pbr-" | |
1855 | version ".tar.gz")) | |
1856 | (sha256 | |
1857 | (base32 | |
1858 | "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p")))) | |
1859 | (build-system python-build-system) | |
1860 | (arguments | |
1861 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
1862 | (inputs | |
1863 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) | |
1864 | ("python-pip" ,python-pip) | |
1865 | ("python-setuptools" ,python-setuptools))) | |
1866 | (home-page "https://launchpad.net/pbr") | |
1867 | (synopsis "Change the default behavior of Python’s setuptools") | |
1868 | (description | |
1869 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
1870 | and sensible default behaviors into your setuptools run.") | |
1871 | (license asl2.0))) | |
1872 | ||
1873 | (define-public python2-pbr-0.11 | |
1874 | (package-with-python2 python-pbr-0.11)) | |
1875 | ||
1876 | (define-public python-fixtures | |
1877 | (package | |
1878 | (name "python-fixtures") | |
13fcc6df | 1879 | (version "1.4.0") |
7787ef76 CR |
1880 | (source |
1881 | (origin | |
1882 | (method url-fetch) | |
13fcc6df | 1883 | (uri (pypi-uri "fixtures" version)) |
7787ef76 CR |
1884 | (sha256 |
1885 | (base32 | |
13fcc6df | 1886 | "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y")))) |
7787ef76 CR |
1887 | (build-system python-build-system) |
1888 | (propagated-inputs | |
1889 | `(("python-six" ,python-six) | |
1890 | ("python-pbr-0.11" ,python-pbr-0.11))) | |
1891 | (inputs | |
1892 | `(("python-pip" ,python-pip) | |
1893 | ("python-setuptools" ,python-setuptools) | |
1894 | ;; Tests | |
1895 | ("python-testtools" ,python-testtools))) | |
1896 | (arguments | |
1897 | '(#:tests? #f)) ; no setup.py test command | |
1898 | (home-page "https://launchpad.net/python-fixtures") | |
1899 | (synopsis "Python test fixture library") | |
1900 | (description | |
1901 | "Fixtures provides a way to create reusable state, useful when writing | |
1902 | Python tests.") | |
1903 | (license (list bsd-3 asl2.0)))) ; at user's option | |
1904 | ||
cd49454b DT |
1905 | (define-public python2-fixtures |
1906 | (package-with-python2 python-fixtures)) | |
1907 | ||
b24a0c00 DT |
1908 | (define-public python-testrepository |
1909 | (package | |
1910 | (name "python-testrepository") | |
1911 | (version "0.0.20") | |
1912 | (source | |
1913 | (origin | |
1914 | (method url-fetch) | |
1915 | (uri (string-append | |
1916 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" | |
1917 | version ".tar.gz")) | |
1918 | (sha256 | |
1919 | (base32 | |
1920 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) | |
1921 | (build-system python-build-system) | |
05de40c5 | 1922 | (propagated-inputs |
7787ef76 | 1923 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) |
05de40c5 | 1924 | ("python-testtools" ,python-testtools))) |
b24a0c00 DT |
1925 | (inputs |
1926 | `(("python-setuptools" ,python-setuptools) | |
b24a0c00 | 1927 | ("python-subunit" ,python-subunit) |
b24a0c00 DT |
1928 | ("python-mimeparse" ,python-mimeparse))) |
1929 | (home-page "https://launchpad.net/testrepository") | |
1930 | (synopsis "Database for Python test results") | |
1931 | (description "Testrepository provides a database of test results which can | |
1932 | be used as part of a developer's workflow to check things such as what tests | |
1933 | have failed since the last commit or what tests are currently failing.") | |
1934 | (license (list bsd-3 asl2.0)))) ; at user's option | |
1935 | ||
1936 | (define-public python2-testrepository | |
1937 | (package-with-python2 python-testrepository)) | |
1938 | ||
243a009a DT |
1939 | (define-public python-coverage |
1940 | (package | |
1941 | (name "python-coverage") | |
82a3c582 | 1942 | (version "4.0.3") |
243a009a DT |
1943 | (source |
1944 | (origin | |
1945 | (method url-fetch) | |
82a3c582 | 1946 | (uri (pypi-uri "coverage" version)) |
243a009a DT |
1947 | (sha256 |
1948 | (base32 | |
82a3c582 | 1949 | "0qjlja8ny4gcfp8abqfwdrvr8qw9kr69lkja0b4cqqbsdmdjgcc5")))) |
243a009a DT |
1950 | (build-system python-build-system) |
1951 | (inputs | |
1952 | `(("python-setuptools" ,python-setuptools))) | |
1953 | (home-page "http://nedbatchelder.com/code/coverage") | |
1954 | (synopsis "Code coverage measurement for Python") | |
1955 | (description | |
1956 | "Coverage measures code coverage, typically during test execution. It | |
1957 | uses the code analysis tools and tracing hooks provided in the Python standard | |
1958 | library to determine which lines are executable, and which have been | |
1959 | executed.") | |
1960 | (license bsd-3))) | |
1961 | ||
1962 | (define-public python2-coverage | |
1963 | (package-with-python2 python-coverage)) | |
1964 | ||
041358fb DT |
1965 | (define-public python-discover |
1966 | (package | |
1967 | (name "python-discover") | |
1968 | (version "0.4.0") | |
1969 | (source | |
1970 | (origin | |
1971 | (method url-fetch) | |
1972 | (uri (string-append | |
1973 | "https://pypi.python.org/packages/source/d/discover/discover-" | |
1974 | version ".tar.gz")) | |
1975 | (sha256 | |
1976 | (base32 | |
1977 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) | |
1978 | (build-system python-build-system) | |
1979 | (inputs | |
1980 | `(("python-setuptools" ,python-setuptools))) | |
1981 | (home-page "http://pypi.python.org/pypi/discover/") | |
1982 | (synopsis | |
1983 | "Python test discovery for unittest") | |
1984 | (description | |
1985 | "Discover provides test discovery for unittest, a feature that has been | |
e881752c | 1986 | backported from Python 2.7 for Python 2.4+.") |
041358fb DT |
1987 | (license bsd-3))) |
1988 | ||
1989 | (define-public python2-discover | |
1990 | (package-with-python2 python-discover)) | |
1991 | ||
a480bc41 EB |
1992 | (define-public behave |
1993 | (package | |
1994 | (name "behave") | |
1995 | (version "1.2.4") | |
1996 | (source (origin | |
1997 | (method url-fetch) | |
1998 | (uri (string-append "https://pypi.python.org/packages/source/b/" | |
1999 | name "/" name "-" version ".tar.gz")) | |
2000 | (sha256 | |
2001 | (base32 | |
2002 | "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14")))) | |
2003 | (build-system python-build-system) | |
2004 | (inputs | |
2005 | `(("python-setuptools" ,python-setuptools) | |
2006 | ("python-six" ,python-six) | |
2007 | ("python-enum43" ,python-enum34) | |
2008 | ("python-parse" ,python-parse) | |
2009 | ("python-parse-type" ,python-parse-type))) | |
2010 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and | |
2011 | ;PyHamcrest>=1.8 | |
2012 | (home-page "http://github.com/behave/behave") | |
2013 | (synopsis "Python behavior-driven development") | |
2014 | (description | |
2015 | "Behave is a tool for behavior-driven development in python. | |
2016 | Behavior-driven development (or BDD) is an agile software development | |
2017 | technique that encourages collaboration between developers, QA and | |
2018 | non-technical or business participants in a software project. Behave uses | |
2019 | tests written in a natural language style, backed up by Python code.") | |
2020 | (license x11))) | |
c7303d3c DT |
2021 | |
2022 | (define-public python-exif-read | |
2023 | (package | |
2024 | (name "python-exif-read") | |
2a2d0981 | 2025 | (version "2.1.2") |
c7303d3c DT |
2026 | (source (origin |
2027 | (method url-fetch) | |
2a2d0981 | 2028 | (uri (pypi-uri "ExifRead" version)) |
c7303d3c DT |
2029 | (sha256 |
2030 | (base32 | |
2a2d0981 | 2031 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
c7303d3c DT |
2032 | (build-system python-build-system) |
2033 | (inputs | |
2034 | `(("python-setuptools" ,python-setuptools))) | |
2035 | (arguments `(#:tests? #f)) ; no tests | |
2036 | (home-page "https://github.com/ianare/exif-py") | |
2037 | (synopsis "Python library to extract EXIF data from image files") | |
2038 | (description | |
2039 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg | |
2040 | files.") | |
2041 | (license bsd-3))) | |
2042 | ||
2043 | (define-public python2-exif-read | |
2044 | (package-with-python2 python-exif-read)) | |
d5f89b22 DT |
2045 | |
2046 | (define-public python-pyld | |
2047 | (package | |
2048 | (name "python-pyld") | |
af1ab773 | 2049 | (version "0.6.8") |
d5f89b22 DT |
2050 | (source (origin |
2051 | (method url-fetch) | |
af1ab773 | 2052 | (uri (pypi-uri "PyLD" version)) |
d5f89b22 DT |
2053 | (sha256 |
2054 | (base32 | |
af1ab773 | 2055 | "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad")))) |
d5f89b22 DT |
2056 | (build-system python-build-system) |
2057 | (inputs | |
2058 | `(("python-setuptools" ,python-setuptools))) | |
2059 | (arguments `(#:tests? #f)) ; no tests | |
2060 | (home-page "http://github.com/digitalbazaar/pyld") | |
2061 | (synopsis "Python implementation of the JSON-LD specification") | |
2062 | (description | |
2063 | "PyLD is an implementation of the JSON-LD specification.") | |
2064 | (license bsd-3))) | |
2065 | ||
2066 | (define-public python2-pyld | |
2067 | (package-with-python2 python-pyld)) | |
3a1f9a68 DT |
2068 | |
2069 | (define-public python-certifi | |
2070 | (package | |
2071 | (name "python-certifi") | |
9a41f443 | 2072 | (version "2015.11.20.1") |
3a1f9a68 DT |
2073 | (source (origin |
2074 | (method url-fetch) | |
9a41f443 | 2075 | (uri (pypi-uri "certifi" version)) |
3a1f9a68 DT |
2076 | (sha256 |
2077 | (base32 | |
9a41f443 | 2078 | "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h")))) |
3a1f9a68 DT |
2079 | (build-system python-build-system) |
2080 | (inputs | |
2081 | `(("python-setuptools" ,python-setuptools))) | |
2082 | (arguments `(#:tests? #f)) ; no tests | |
2083 | (home-page "http://python-requests.org/") | |
2084 | (synopsis "Python CA certificate bundle") | |
2085 | (description | |
2086 | "Certifi is a Python library that contains a CA certificate bundle, which | |
2087 | is used by the Requests library to verify HTTPS requests.") | |
2088 | (license asl2.0))) | |
2089 | ||
2090 | (define-public python2-certifi | |
2091 | (package-with-python2 python-certifi)) | |
e6cfbd36 | 2092 | |
12c270dd RW |
2093 | (define-public python-click |
2094 | (package | |
2095 | (name "python-click") | |
5bd88cf1 | 2096 | (version "6.2") |
12c270dd RW |
2097 | (source |
2098 | (origin | |
2099 | (method url-fetch) | |
5bd88cf1 | 2100 | (uri (pypi-uri "click" version)) |
12c270dd | 2101 | (sha256 |
5bd88cf1 | 2102 | (base32 "10kavbisnk9m93jl2wi34pw7ryr2qbxshh2cysxwxd7bymqgz87v")))) |
12c270dd RW |
2103 | (build-system python-build-system) |
2104 | (native-inputs | |
2105 | `(("python-setuptools" ,python-setuptools))) | |
2106 | (home-page "http://click.pocoo.org") | |
2107 | (synopsis "Command line library for Python") | |
2108 | (description | |
2109 | "Click is a Python package for creating command line interfaces in a | |
2110 | composable way with as little code as necessary. Its name stands for | |
2111 | \"Command Line Interface Creation Kit\". It's highly configurable but comes | |
2112 | with sensible defaults out of the box.") | |
2113 | (license bsd-3))) | |
2114 | ||
2115 | (define-public python2-click | |
2116 | (package-with-python2 python-click)) | |
2117 | ||
addc808d EF |
2118 | (define-public python-wheel |
2119 | (package | |
2120 | (name "python-wheel") | |
2121 | (version "0.26.0") | |
2122 | (source | |
2123 | (origin | |
2124 | (method url-fetch) | |
2125 | (uri (pypi-uri "wheel" version)) | |
2126 | (sha256 | |
2127 | (base32 | |
2128 | "032k1ajijbqnv0z0k88bhf75mdimi18fcmm28mss90610lw3bbga")))) | |
2129 | (build-system python-build-system) | |
2130 | (native-inputs | |
2131 | `(("python-setuptools" ,python-setuptools) | |
2132 | ("python-jsonschema" ,python-jsonschema) | |
2133 | ("python-pytest-cov" ,python-pytest-cov))) | |
2134 | (home-page "https://bitbucket.org/pypa/wheel/") | |
2135 | (synopsis "Built-package format for Python") | |
2136 | (description | |
2137 | "A wheel is a ZIP-format archive with a specially formatted filename and the | |
2138 | .whl extension. It is designed to contain all the files for a PEP 376 | |
2139 | compatible install in a way that is very close to the on-disk format.") | |
2140 | (license license:expat))) | |
2141 | ||
2142 | (define-public python2-wheel | |
2143 | (package-with-python2 python-wheel)) | |
2144 | ||
ae641128 | 2145 | (define-public python-requests |
e6cfbd36 | 2146 | (package |
ae641128 | 2147 | (name "python-requests") |
5d691657 | 2148 | (version "2.8.1") |
e6cfbd36 DT |
2149 | (source (origin |
2150 | (method url-fetch) | |
5d691657 | 2151 | (uri (pypi-uri "requests" version)) |
e6cfbd36 DT |
2152 | (sha256 |
2153 | (base32 | |
5d691657 | 2154 | "0ny2nr1sqr4hcn3903ghmh7w2yni8shlfv240a8c9p6wyidqvzl4")))) |
e6cfbd36 | 2155 | (build-system python-build-system) |
5d691657 EF |
2156 | (native-inputs |
2157 | `(("python-setuptools" ,python-setuptools))) | |
2158 | (propagated-inputs | |
2159 | `(("python-py" ,python-py) | |
2160 | ("python-pytest" ,python-pytest) | |
2161 | ("python-pytest-cov" ,python-pytest-cov) | |
2162 | ("python-wheel" ,python-wheel))) | |
e6cfbd36 DT |
2163 | (home-page "http://python-requests.org/") |
2164 | (synopsis "Python HTTP library") | |
2165 | (description | |
2166 | "Requests is a Python HTTP client library. It aims to be easier to use | |
2167 | than Python’s urllib2 library.") | |
2168 | (license asl2.0))) | |
864b5211 | 2169 | |
e9005180 DT |
2170 | ;; Some software requires an older version of Requests, notably Docker |
2171 | ;; Compose. | |
2172 | (define-public python-requests-2.7 | |
2173 | (package (inherit python-requests) | |
2174 | (version "2.7.0") | |
2175 | (source (origin | |
2176 | (method url-fetch) | |
2177 | (uri (pypi-uri "requests" version)) | |
2178 | (sha256 | |
2179 | (base32 | |
2180 | "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) | |
2181 | ||
ae641128 DT |
2182 | (define-public python2-requests |
2183 | (package-with-python2 python-requests)) | |
2184 | ||
ea521b42 DT |
2185 | (define-public python-vcversioner |
2186 | (package | |
2187 | (name "python-vcversioner") | |
2188 | (version "2.14.0.0") | |
2189 | (source | |
2190 | (origin | |
2191 | (method url-fetch) | |
2192 | (uri (pypi-uri "vcversioner" version)) | |
2193 | (sha256 | |
2194 | (base32 | |
2195 | "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c")))) | |
2196 | (build-system python-build-system) | |
2197 | (inputs | |
2198 | `(("python-setuptools" ,python-setuptools))) | |
2199 | (synopsis "Python library for version number discovery") | |
2200 | (description "Vcversioner is a Python library that inspects tagging | |
2201 | information in a variety of version control systems in order to discover | |
2202 | version numbers.") | |
2203 | (home-page "https://github.com/habnabit/vcversioner") | |
2204 | (license isc))) | |
2205 | ||
2206 | (define-public python2-vcversioner | |
2207 | (package-with-python2 python-vcversioner)) | |
2208 | ||
864b5211 DT |
2209 | (define-public python-jsonschema |
2210 | (package | |
2211 | (name "python-jsonschema") | |
b3667afb | 2212 | (version "2.5.1") |
864b5211 DT |
2213 | (source (origin |
2214 | (method url-fetch) | |
2215 | (uri | |
2216 | (string-append | |
2217 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" | |
2218 | version ".tar.gz")) | |
2219 | (sha256 | |
2220 | (base32 | |
b3667afb | 2221 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
864b5211 DT |
2222 | (build-system python-build-system) |
2223 | (inputs | |
b3667afb DT |
2224 | `(("python-setuptools" ,python-setuptools) |
2225 | ("python-vcversioner" ,python-vcversioner))) | |
864b5211 DT |
2226 | (home-page "http://github.com/Julian/jsonschema") |
2227 | (synopsis "Implementation of JSON Schema for Python") | |
2228 | (description | |
2229 | "Jsonschema is an implementation of JSON Schema for Python.") | |
bd3fa666 | 2230 | (license license:expat))) |
864b5211 DT |
2231 | |
2232 | (define-public python2-jsonschema | |
2233 | (package-with-python2 python-jsonschema)) | |
850189b8 DT |
2234 | |
2235 | (define-public python-unidecode | |
2236 | (package | |
2237 | (name "python-unidecode") | |
8925d4f3 | 2238 | (version "0.04.18") |
850189b8 DT |
2239 | (source (origin |
2240 | (method url-fetch) | |
8925d4f3 | 2241 | (uri (pypi-uri "Unidecode" version)) |
850189b8 DT |
2242 | (sha256 |
2243 | (base32 | |
8925d4f3 | 2244 | "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi")))) |
850189b8 DT |
2245 | (build-system python-build-system) |
2246 | (inputs | |
2247 | `(("python-setuptools" ,python-setuptools))) | |
2248 | (home-page "https://pypi.python.org/pypi/Unidecode") | |
2249 | (synopsis "ASCII transliterations of Unicode text") | |
2250 | (description | |
2251 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is | |
2252 | useful when integrating with legacy code that doesn't support Unicode, or for | |
2253 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII | |
2254 | machine identifiers from human-readable Unicode strings that should still be | |
2255 | somewhat intelligeble.") | |
2256 | (license gpl2+))) | |
2257 | ||
2258 | (define-public python2-unidecode | |
2259 | (package-with-python2 python-unidecode)) | |
6d45fef4 DT |
2260 | |
2261 | (define-public python-pyjwt | |
2262 | (package | |
2263 | (name "python-pyjwt") | |
eb31d4b4 | 2264 | (version "1.4.0") |
6d45fef4 DT |
2265 | (source |
2266 | (origin | |
2267 | (method url-fetch) | |
eb31d4b4 | 2268 | (uri (pypi-uri "PyJWT" version)) |
6d45fef4 DT |
2269 | (sha256 |
2270 | (base32 | |
eb31d4b4 | 2271 | "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1")))) |
6d45fef4 | 2272 | (build-system python-build-system) |
eb31d4b4 EF |
2273 | (native-inputs |
2274 | `(("python-setuptools" ,python-setuptools) | |
2275 | ("python-pytest-runner" ,python-pytest-runner))) | |
6d45fef4 DT |
2276 | (arguments |
2277 | '(#:tests? #f)) ; test suite doesn't work | |
2278 | (home-page "http://github.com/progrium/pyjwt") | |
2279 | (synopsis "JSON Web Token implementation in Python") | |
2280 | (description | |
2281 | "PyJWT is a JSON Web Token implementation written in Python.") | |
bd3fa666 | 2282 | (license license:expat))) |
6d45fef4 DT |
2283 | |
2284 | (define-public python2-pyjwt | |
2285 | (package-with-python2 python-pyjwt)) | |
2286 | ||
2cec1f6f DT |
2287 | (define-public python-oauthlib |
2288 | (package | |
2289 | (name "python-oauthlib") | |
bde2171d | 2290 | (version "1.0.3") |
2cec1f6f DT |
2291 | (source (origin |
2292 | (method url-fetch) | |
bde2171d | 2293 | (uri (pypi-uri "oauthlib" version)) |
2cec1f6f DT |
2294 | (sha256 |
2295 | (base32 | |
bde2171d | 2296 | "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg")))) |
2cec1f6f | 2297 | (build-system python-build-system) |
bde2171d | 2298 | (native-inputs |
2cec1f6f | 2299 | `(("python-setuptools" ,python-setuptools) |
bde2171d | 2300 | ("python-coverage", python-coverage) |
2cec1f6f DT |
2301 | ("python-nose" ,python-nose) |
2302 | ("python-mock" ,python-mock))) | |
bde2171d EF |
2303 | (inputs |
2304 | `(("python-blinker" ,python-blinker) | |
2305 | ("python-cryptography" ,python-cryptography) | |
2306 | ("python-pyjwt" ,python-pyjwt))) | |
2cec1f6f DT |
2307 | (home-page "https://github.com/idan/oauthlib") |
2308 | (synopsis "OAuth implementation for Python") | |
2309 | (description | |
2310 | "Oauthlib is a generic, spec-compliant, thorough implementation of the | |
2311 | OAuth request-signing logic.") | |
2312 | (license bsd-3))) | |
2313 | ||
2314 | (define-public python2-oauthlib | |
2315 | (let ((base (package-with-python2 python-oauthlib))) | |
2316 | (package | |
2317 | (inherit base) | |
2cec1f6f | 2318 | (inputs |
0066de6f EF |
2319 | `(("python2-unittest2" ,python2-unittest2) |
2320 | ("python2-cryptography" ,python2-cryptography) | |
2321 | ,@(alist-delete "python-cryptography" | |
2322 | (package-inputs base))))))) | |
ec5dbb5c DT |
2323 | |
2324 | (define-public python-itsdangerous | |
2325 | (package | |
2326 | (name "python-itsdangerous") | |
2327 | (version "0.24") | |
2328 | (source | |
2329 | (origin | |
2330 | (method url-fetch) | |
2331 | (uri (string-append | |
2332 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" | |
2333 | version ".tar.gz")) | |
2334 | (sha256 | |
2335 | (base32 | |
2336 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) | |
2337 | (build-system python-build-system) | |
2338 | (inputs | |
2339 | `(("python-setuptools" ,python-setuptools))) | |
2340 | (home-page "http://github.com/mitsuhiko/itsdangerous") | |
2341 | (synopsis "Python library for passing data to/from untrusted environments") | |
2342 | (description | |
2343 | "Itsdangerous provides various helpers to pass trusted data to untrusted | |
2344 | environments and back.") | |
2345 | (license bsd-3))) | |
2346 | ||
2347 | (define-public python2-itsdangerous | |
2348 | (package-with-python2 python-itsdangerous)) | |
5731cae3 | 2349 | |
8d12be1e RW |
2350 | (define-public python-pyyaml |
2351 | (package | |
2352 | (name "python-pyyaml") | |
2353 | (version "3.11") | |
2354 | (source | |
2355 | (origin | |
2356 | (method url-fetch) | |
2357 | (uri (string-append | |
2358 | "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-" | |
2359 | version ".tar.gz")) | |
2360 | (sha256 | |
2361 | (base32 | |
2362 | "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63")))) | |
2363 | (build-system python-build-system) | |
2364 | (inputs | |
2365 | `(("libyaml" ,libyaml))) | |
2366 | (native-inputs | |
2367 | `(("python-setuptools" ,python-setuptools))) | |
2368 | (home-page "http://pyyaml.org/wiki/PyYAML") | |
2369 | (synopsis "YAML parser and emitter for Python") | |
2370 | (description | |
2371 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a | |
2372 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension | |
2373 | API, and sensible error messages. PyYAML supports standard YAML tags and | |
2374 | provides Python-specific tags that allow to represent an arbitrary Python | |
2375 | object.") | |
2376 | (license license:expat))) | |
2377 | ||
2378 | (define-public python2-pyyaml | |
2379 | (package-with-python2 python-pyyaml)) | |
2380 | ||
5731cae3 DT |
2381 | (define-public python-virtualenv |
2382 | (package | |
2383 | (name "python-virtualenv") | |
17804240 | 2384 | (version "13.1.2") |
5731cae3 DT |
2385 | (source |
2386 | (origin | |
2387 | (method url-fetch) | |
17804240 | 2388 | (uri (pypi-uri "virtualenv" version)) |
5731cae3 DT |
2389 | (sha256 |
2390 | (base32 | |
17804240 | 2391 | "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a")))) |
5731cae3 | 2392 | (build-system python-build-system) |
17804240 EF |
2393 | (arguments |
2394 | `(#:phases | |
2395 | (modify-phases %standard-phases | |
2396 | (replace 'check | |
2397 | (lambda _ (zero? (system* "py.test"))))))) | |
5731cae3 DT |
2398 | (inputs |
2399 | `(("python-setuptools" ,python-setuptools) | |
2400 | ("python-mock" ,python-mock) | |
17804240 | 2401 | ("python-pytest" ,python-pytest))) |
5731cae3 DT |
2402 | (home-page "https://virtualenv.pypa.io/") |
2403 | (synopsis "Virtual Python environment builder") | |
2404 | (description | |
2405 | "Virtualenv is a tool to create isolated Python environments.") | |
bd3fa666 | 2406 | (license license:expat))) |
5731cae3 DT |
2407 | |
2408 | (define-public python2-virtualenv | |
2409 | (package-with-python2 python-virtualenv)) | |
8176d4d5 DT |
2410 | |
2411 | (define-public python-markupsafe | |
2412 | (package | |
2413 | (name "python-markupsafe") | |
2414 | (version "0.23") | |
2415 | (source | |
2416 | (origin | |
2417 | (method url-fetch) | |
2418 | (uri (string-append | |
2419 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" | |
2420 | version ".tar.gz")) | |
2421 | (sha256 | |
2422 | (base32 | |
2423 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) | |
2424 | (build-system python-build-system) | |
2425 | (inputs | |
2426 | `(("python-setuptools" ,python-setuptools))) | |
2427 | (home-page "http://github.com/mitsuhiko/markupsafe") | |
2428 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") | |
2429 | (description | |
2430 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation | |
2431 | for Python.") | |
2432 | (license bsd-3))) | |
2433 | ||
2434 | (define-public python2-markupsafe | |
2435 | (package-with-python2 python-markupsafe)) | |
fe34f0d1 DT |
2436 | |
2437 | (define-public python-jinja2 | |
2438 | (package | |
2439 | (name "python-jinja2") | |
e98149b3 | 2440 | (version "2.8") |
fe34f0d1 DT |
2441 | (source |
2442 | (origin | |
2443 | (method url-fetch) | |
e98149b3 | 2444 | (uri (pypi-uri "Jinja2" version)) |
fe34f0d1 DT |
2445 | (sha256 |
2446 | (base32 | |
e98149b3 | 2447 | "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw")))) |
fe34f0d1 DT |
2448 | (build-system python-build-system) |
2449 | (inputs | |
2450 | `(("python-setuptools" ,python-setuptools) | |
2451 | ("python-markupsafe" ,python-markupsafe))) | |
2452 | (home-page "http://jinja.pocoo.org/") | |
2453 | (synopsis "Python template engine") | |
2454 | (description | |
2455 | "Jinja2 is a small but fast and easy to use stand-alone template engine | |
2456 | written in pure Python.") | |
2457 | (license bsd-3))) | |
2458 | ||
2459 | (define-public python2-jinja2 | |
2460 | (package-with-python2 python-jinja2)) | |
3580ab8b | 2461 | |
f7d17ac7 EE |
2462 | (define-public python-pystache |
2463 | (package | |
2464 | (name "python-pystache") | |
2465 | (version "0.5.4") | |
2466 | (source (origin | |
2467 | (method url-fetch) | |
2468 | (uri (pypi-uri "pystache" version)) | |
2469 | (sha256 | |
2470 | (base32 | |
2471 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) | |
2472 | (build-system python-build-system) | |
2473 | (native-inputs | |
2474 | `(("python-setuptools" ,python-setuptools))) | |
2475 | (home-page "http://defunkt.io/pystache/") | |
2476 | (synopsis "Python logic-less template engine") | |
2477 | (description | |
2478 | "Pystache is a Python implementation of the framework agnostic, | |
2479 | logic-free templating system Mustache.") | |
2480 | (license license:expat))) | |
2481 | ||
2482 | (define-public python2-pystache | |
2483 | (package-with-python2 python-pystache)) | |
2484 | ||
1285119b RW |
2485 | (define-public python-joblib |
2486 | (package | |
2487 | (name "python-joblib") | |
2488 | (version "0.9.0b4") | |
2489 | (source (origin | |
2490 | (method url-fetch) | |
2491 | (uri (string-append "https://pypi.python.org/packages/source/" | |
2492 | "j/joblib/joblib-" version ".tar.gz")) | |
2493 | (sha256 | |
2494 | (base32 | |
2495 | "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")))) | |
2496 | (build-system python-build-system) | |
2497 | (native-inputs | |
2498 | `(("python-setuptools" ,python-setuptools) | |
2499 | ("python-nose" ,python-nose))) | |
2500 | (home-page "http://pythonhosted.org/joblib/") | |
2501 | (synopsis "Using Python functions as pipeline jobs") | |
2502 | (description | |
2503 | "Joblib is a set of tools to provide lightweight pipelining in Python. | |
2504 | In particular, joblib offers: transparent disk-caching of the output values | |
2505 | and lazy re-evaluation (memoize pattern), easy simple parallel computing | |
2506 | logging and tracing of the execution.") | |
2507 | (license bsd-3))) | |
2508 | ||
2509 | (define-public python2-joblib | |
2510 | (package-with-python2 python-joblib)) | |
2511 | ||
3580ab8b DT |
2512 | (define-public python-docutils |
2513 | (package | |
2514 | (name "python-docutils") | |
2515 | (version "0.12") | |
2516 | (source | |
2517 | (origin | |
2518 | (method url-fetch) | |
2519 | (uri (string-append | |
2520 | "https://pypi.python.org/packages/source/d/docutils/docutils-" | |
2521 | version ".tar.gz")) | |
2522 | (sha256 | |
2523 | (base32 | |
2524 | "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7")))) | |
2525 | (build-system python-build-system) | |
2526 | (inputs | |
2527 | `(("python-setuptools" ,python-setuptools))) | |
2528 | (arguments | |
2529 | '(#:tests? #f)) ; no setup.py test command | |
2530 | (home-page "http://docutils.sourceforge.net/") | |
2531 | (synopsis "Python Documentation Utilities") | |
2532 | (description | |
2533 | "Docutils is a modular system for processing documentation into useful | |
2534 | formats, such as HTML, XML, and LaTeX. For input Docutils supports | |
2535 | reStructuredText.") | |
2536 | ;; Most of the source code is public domain, but some source files are | |
2537 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. | |
2538 | (license (list public-domain psfl bsd-2 gpl3+)))) | |
2539 | ||
2540 | (define-public python2-docutils | |
2541 | (package-with-python2 python-docutils)) | |
fb35b7c0 DT |
2542 | |
2543 | (define-public python-pygments | |
2544 | (package | |
2545 | (name "python-pygments") | |
9f442285 | 2546 | (version "2.0.2") |
fb35b7c0 DT |
2547 | (source |
2548 | (origin | |
2549 | (method url-fetch) | |
9f442285 | 2550 | (uri (pypi-uri "Pygments" version)) |
fb35b7c0 DT |
2551 | (sha256 |
2552 | (base32 | |
9f442285 | 2553 | "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k")))) |
fb35b7c0 DT |
2554 | (build-system python-build-system) |
2555 | (inputs | |
2556 | `(("python-setuptools" ,python-setuptools))) | |
2557 | (home-page "http://pygments.org/") | |
2558 | (synopsis "Syntax highlighting") | |
2559 | (description | |
2560 | "Pygments is a syntax highlighting package written in Python.") | |
2561 | (license bsd-2))) | |
2562 | ||
2563 | (define-public python2-pygments | |
2564 | (package-with-python2 python-pygments)) | |
9dd6078d DT |
2565 | |
2566 | (define-public python-sphinx | |
2567 | (package | |
2568 | (name "python-sphinx") | |
2569 | (version "1.2.3") | |
2570 | (source | |
2571 | (origin | |
2572 | (method url-fetch) | |
2573 | (uri (string-append | |
2574 | "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" | |
2575 | version ".tar.gz")) | |
2576 | (sha256 | |
2577 | (base32 | |
2578 | "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) | |
2579 | (build-system python-build-system) | |
2580 | (inputs | |
2581 | `(("python-setuptools" ,python-setuptools) | |
2582 | ("python-jinja2" ,python-jinja2) | |
2583 | ("python-docutils" ,python-docutils) | |
2584 | ("python-pygments" ,python-pygments))) | |
2585 | (home-page "http://sphinx-doc.org/") | |
2586 | (synopsis "Python documentation generator") | |
2587 | (description "Sphinx is a tool that makes it easy to create documentation | |
2588 | for Python projects or other documents consisting of multiple reStructuredText | |
2589 | sources.") | |
2590 | (license bsd-3))) | |
2591 | ||
2592 | (define-public python2-sphinx | |
2593 | (package-with-python2 python-sphinx)) | |
6888830b | 2594 | |
ad320b20 RW |
2595 | (define-public python-sphinx-rtd-theme |
2596 | (package | |
2597 | (name "python-sphinx-rtd-theme") | |
2598 | (version "0.1.6") | |
2599 | (source | |
2600 | (origin | |
2601 | (method url-fetch) | |
2602 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
2603 | "sphinx_rtd_theme/sphinx_rtd_theme-" | |
2604 | version ".tar.gz")) | |
2605 | (sha256 | |
2606 | (base32 | |
2607 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) | |
2608 | (build-system python-build-system) | |
2609 | (arguments | |
2610 | `(;; With standard flags, the install phase attempts to create a zip'd | |
2611 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
2612 | ;; before 1980' | |
2613 | #:configure-flags '("--single-version-externally-managed" | |
2614 | "--record=sphinx-rtd-theme.txt"))) | |
2615 | (native-inputs | |
2616 | `(("python-setuptools" ,python-setuptools))) | |
2617 | (inputs | |
2618 | `(("python-docutils" ,python-docutils) | |
2619 | ("python-sphinx" ,python-sphinx))) | |
2620 | (home-page "https://github.com/snide/sphinx_rtd_theme/") | |
2621 | (synopsis "ReadTheDocs.org theme for Sphinx") | |
2622 | (description "A theme for Sphinx used by ReadTheDocs.org.") | |
bd3fa666 | 2623 | (license license:expat))) |
ad320b20 RW |
2624 | |
2625 | (define-public python2-sphinx-rtd-theme | |
2626 | (package-with-python2 python-sphinx-rtd-theme)) | |
2627 | ||
f4de5b3b CAW |
2628 | (define-public python-feedgenerator |
2629 | (package | |
2630 | (name "python-feedgenerator") | |
2631 | (version "20150710.97185b7") | |
2632 | (source | |
2633 | ;; Using the git checkout for now because license file not added till | |
2634 | ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39 | |
2635 | (origin | |
2636 | (method git-fetch) | |
2637 | (uri (git-reference | |
2638 | (url "https://github.com/dmdm/feedgenerator-py3k.git") | |
2639 | (commit "97185b7566c240c4bf5ed80db7d6c271204dab39"))) | |
2640 | (sha256 | |
2641 | (base32 | |
2642 | "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a")))) | |
2643 | (arguments | |
2644 | `(;; With standard flags, the install phase attempts to create a zip'd | |
2645 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
2646 | ;; before 1980' | |
2647 | #:configure-flags '("--single-version-externally-managed" | |
2648 | "--record=feedgenerator.txt"))) | |
2649 | (build-system python-build-system) | |
2650 | (inputs | |
2651 | `(("python-setuptools" ,python-setuptools) | |
2652 | ("python-pytz" ,python-pytz) | |
2653 | ("python-six" ,python-six))) | |
2654 | (home-page | |
2655 | "https://github.com/dmdm/feedgenerator-py3k.git") | |
2656 | (synopsis | |
2657 | "Standalone version of Django's Atom/RSS feed generator") | |
2658 | (description | |
2659 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, | |
2660 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") | |
2661 | (license bsd-3))) | |
2662 | ||
2663 | (define-public python2-feedgenerator | |
2664 | (package-with-python2 python-feedgenerator)) | |
2665 | ||
59ad30e3 CAW |
2666 | (define-public python-blinker |
2667 | (package | |
2668 | (name "python-blinker") | |
7fb9ff4d | 2669 | (version "1.4") |
59ad30e3 CAW |
2670 | (source |
2671 | (origin | |
2672 | (method url-fetch) | |
7fb9ff4d | 2673 | (uri (pypi-uri "blinker" version)) |
59ad30e3 CAW |
2674 | (sha256 |
2675 | (base32 | |
7fb9ff4d | 2676 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
59ad30e3 CAW |
2677 | (build-system python-build-system) |
2678 | (native-inputs | |
2679 | `(("python-setuptools" ,python-setuptools))) | |
2680 | ;; No "test" command supplied to setuptools, so unless there's another way | |
2681 | ;; to run tests, we're skipping them! | |
2682 | (arguments '(#:tests? #f)) | |
2683 | (home-page "http://pythonhosted.org/blinker/") | |
2684 | (synopsis "Fast, simple object-to-object and broadcast signaling") | |
2685 | (description | |
2686 | "Blinker provides a fast dispatching system that allows any number of | |
2687 | interested parties to subscribe to events, or \"signals\".") | |
2688 | (license license:expat))) | |
2689 | ||
2690 | (define-public python2-blinker | |
2691 | (package-with-python2 python-blinker)) | |
2692 | ||
b8050e71 CAW |
2693 | (define-public pelican |
2694 | (package | |
2695 | (name "pelican") | |
11f97c27 | 2696 | (version "3.6.3") |
b8050e71 CAW |
2697 | (source |
2698 | (origin | |
2699 | (method url-fetch) | |
11f97c27 | 2700 | (uri (pypi-uri "pelican" version)) |
b8050e71 CAW |
2701 | (sha256 |
2702 | (base32 | |
11f97c27 | 2703 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
b8050e71 CAW |
2704 | (build-system python-build-system) |
2705 | (native-inputs | |
2706 | `(("python-setuptools" ,python-setuptools))) | |
2707 | (propagated-inputs | |
2708 | `(("python-feedgenerator" ,python-feedgenerator) | |
2709 | ("python-jinja2" ,python-jinja2) | |
2710 | ("python-pygments" ,python-pygments) | |
2711 | ("python-docutils" ,python-docutils) | |
2712 | ("python-pytz" ,python-pytz) | |
2713 | ("python-blinker" ,python-blinker) | |
2714 | ("python-unidecode" ,python-unidecode) | |
2715 | ("python-six" ,python-six) | |
2716 | ("python-dateutil-2" ,python-dateutil-2))) | |
2717 | (home-page "http://getpelican.com/") | |
2718 | (arguments | |
2719 | `(;; XXX Requires a lot more packages to do unit tests :P | |
2720 | #:tests? #f | |
2721 | #:phases (modify-phases %standard-phases | |
2722 | (add-before | |
2723 | 'install 'adjust-requires | |
2724 | ;; Since feedgenerator is installed from git, it doesn't | |
2725 | ;; conform to the version requirements. | |
2726 | ;; | |
2727 | ;; We *do have* "feedgenerator >= 1.6", but strip off the | |
2728 | ;; version requirement so setuptools doesn't get confused. | |
2729 | (lambda _ | |
2730 | (substitute* "setup.py" | |
2731 | (("['\"]feedgenerator.*?['\"]") | |
2732 | "'feedgenerator'"))))))) | |
2733 | (synopsis "Python-based static site publishing system") | |
2734 | (description | |
2735 | "Pelican is a tool to generate a static blog from reStructuredText, | |
2736 | Markdown input files, and more. Pelican uses Jinja2 for templating | |
2737 | and is very extensible.") | |
2738 | (license agpl3+))) | |
2739 | ||
240ca4aa RW |
2740 | (define-public python-scikit-learn |
2741 | (package | |
2742 | (name "python-scikit-learn") | |
be0a4c26 | 2743 | (version "0.16.1") |
240ca4aa RW |
2744 | (source |
2745 | (origin | |
2746 | (method url-fetch) | |
2747 | (uri (string-append | |
2748 | "https://github.com/scikit-learn/scikit-learn/archive/" | |
2749 | version ".tar.gz")) | |
2750 | (sha256 | |
2751 | (base32 | |
be0a4c26 | 2752 | "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih")))) |
240ca4aa RW |
2753 | (build-system python-build-system) |
2754 | (arguments | |
2755 | `(#:phases | |
2756 | (alist-cons-before | |
2f6b3d2e RW |
2757 | 'check 'set-HOME |
2758 | ;; some tests require access to "$HOME" | |
2759 | (lambda _ (setenv "HOME" "/tmp")) | |
2760 | ;; Tests can only be run after the library has been installed and not | |
2761 | ;; within the source directory. | |
2762 | (alist-cons-after | |
2763 | 'install 'check | |
2764 | (lambda _ | |
2765 | (with-directory-excursion "/tmp" | |
2766 | ;; With Python 3 one test of 3334 fails | |
2767 | ;; (sklearn.tests.test_common.test_transformers); see | |
2768 | ;; https://github.com/scikit-learn/scikit-learn/issues/3693 | |
2769 | (system* "nosetests" "-v" "sklearn"))) | |
2770 | (alist-delete 'check %standard-phases))))) | |
240ca4aa | 2771 | (inputs |
2f6b3d2e | 2772 | `(("openblas" ,openblas) |
240ca4aa RW |
2773 | ("python-nose" ,python-nose))) |
2774 | (propagated-inputs | |
2775 | `(("python-numpy" ,python-numpy) | |
2776 | ("python-scipy" ,python-scipy))) | |
2777 | (home-page "http://scikit-learn.org/") | |
2778 | (synopsis "Machine Learning in Python") | |
2779 | (description | |
2780 | "Scikit-learn provides simple and efficient tools for data | |
2781 | mining and data analysis.") | |
2782 | (license bsd-3))) | |
2783 | ||
2784 | (define-public python2-scikit-learn | |
2785 | (let ((scikit (package-with-python2 python-scikit-learn))) | |
2786 | (package (inherit scikit) | |
2787 | (propagated-inputs | |
2788 | `(("python2-numpy" ,python2-numpy) | |
2789 | ("python2-scipy" ,python2-scipy) | |
2790 | ,@(alist-delete | |
2791 | "python-numpy" | |
2792 | (alist-delete | |
2793 | "python-scipy" (package-propagated-inputs scikit)))))))) | |
2794 | ||
12f8f9bb RW |
2795 | (define-public python-scikit-image |
2796 | (package | |
2797 | (name "python-scikit-image") | |
2798 | (version "0.11.3") | |
2799 | (source | |
2800 | (origin | |
2801 | (method url-fetch) | |
2802 | (uri (string-append | |
2803 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" | |
2804 | version ".tar.gz")) | |
2805 | (sha256 | |
2806 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) | |
2807 | (build-system python-build-system) | |
2808 | (propagated-inputs | |
2809 | `(("python-matplotlib" ,python-matplotlib) | |
2810 | ("python-networkx" ,python-networkx) | |
2811 | ("python-numpy" ,python-numpy) | |
2812 | ("python-scipy" ,python-scipy) | |
2813 | ("python-six" ,python-six) | |
2814 | ("python-pillow" ,python-pillow))) | |
2815 | (native-inputs | |
2816 | `(("python-cython" ,python-cython) | |
2817 | ("python-setuptools" ,python-setuptools))) | |
2818 | (home-page "http://scikit-image.org/") | |
2819 | (synopsis "Image processing in Python") | |
2820 | (description | |
e881752c | 2821 | "Scikit-image is a collection of algorithms for image processing.") |
12f8f9bb RW |
2822 | (license bsd-3))) |
2823 | ||
2824 | (define-public python2-scikit-image | |
2825 | (let ((scikit-image (package-with-python2 python-scikit-image))) | |
2826 | (package (inherit scikit-image) | |
2827 | (native-inputs | |
2828 | `(("python2-mock" ,python2-mock) | |
2829 | ,@(package-native-inputs scikit-image))) | |
2830 | (propagated-inputs | |
2831 | `(("python2-pytz" ,python2-pytz) | |
d9bc0bf8 FB |
2832 | ("python2-matplotlib" ,python2-matplotlib) |
2833 | ("python2-numpy" ,python2-numpy) | |
2834 | ("python2-scipy" ,python2-scipy) | |
2835 | ,@(fold alist-delete (package-propagated-inputs scikit-image) | |
2836 | '("python-matplotlib" "python-numpy" "python-scipy"))))))) | |
12f8f9bb | 2837 | |
5394a6a6 RW |
2838 | (define-public python-redis |
2839 | (package | |
2840 | (name "python-redis") | |
2841 | (version "2.10.3") | |
2842 | (source | |
2843 | (origin | |
2844 | (method url-fetch) | |
2845 | (uri (string-append | |
2846 | "https://pypi.python.org/packages/source/r/redis/redis-" | |
2847 | version ".tar.gz")) | |
2848 | (sha256 | |
2849 | (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4")))) | |
2850 | (build-system python-build-system) | |
2851 | ;; Tests require a running Redis server | |
2852 | (arguments '(#:tests? #f)) | |
2853 | (native-inputs | |
2854 | `(("python-setuptools" ,python-setuptools) | |
2855 | ("python-pytest" ,python-pytest))) | |
2856 | (home-page "https://github.com/andymccurdy/redis-py") | |
2857 | (synopsis "Redis Python client") | |
2858 | (description | |
2859 | "This package provides a Python interface to the Redis key-value store.") | |
2860 | (license license:expat))) | |
2861 | ||
2862 | (define-public python2-redis | |
2863 | (package-with-python2 python-redis)) | |
2864 | ||
748cef5b RW |
2865 | (define-public python-rq |
2866 | (package | |
2867 | (name "python-rq") | |
2868 | (version "0.5.2") | |
2869 | (source | |
2870 | (origin | |
2871 | (method url-fetch) | |
2872 | (uri (string-append | |
2873 | "https://pypi.python.org/packages/source/r/rq/rq-" | |
2874 | version ".tar.gz")) | |
2875 | (sha256 | |
2876 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) | |
2877 | (build-system python-build-system) | |
2878 | (propagated-inputs | |
2879 | `(("python-click" ,python-click) | |
2880 | ("python-redis" ,python-redis))) | |
2881 | (native-inputs | |
2882 | `(("python-setuptools" ,python-setuptools))) | |
2883 | (home-page "http://python-rq.org/") | |
2884 | (synopsis "Simple job queues for Python") | |
2885 | (description | |
2886 | "RQ (Redis Queue) is a simple Python library for queueing jobs and | |
2887 | processing them in the background with workers. It is backed by Redis and it | |
2888 | is designed to have a low barrier to entry.") | |
2889 | (license bsd-2))) | |
2890 | ||
2891 | (define-public python2-rq | |
2892 | (package-with-python2 python-rq)) | |
2893 | ||
6888830b FB |
2894 | (define-public python-cython |
2895 | (package | |
2896 | (name "python-cython") | |
56918e26 | 2897 | (version "0.23.4") |
6888830b FB |
2898 | (source |
2899 | (origin | |
2900 | (method url-fetch) | |
56918e26 | 2901 | (uri (pypi-uri "Cython" version)) |
6888830b FB |
2902 | (sha256 |
2903 | (base32 | |
56918e26 | 2904 | "13hdffhd37mx3gjby018xl179jaj957fy7kzi01crmimxvn2zi7y")))) |
6888830b FB |
2905 | (build-system python-build-system) |
2906 | ;; we need the full python package and not just the python-wrapper | |
2907 | ;; because we need libpython3.3m.so | |
2908 | (inputs | |
2909 | `(("python" ,python))) | |
2910 | (arguments | |
2911 | `(#:phases | |
2912 | (alist-cons-before | |
2913 | 'check 'set-HOME | |
2914 | ;; some tests require access to "$HOME/.cython" | |
2915 | (lambda* _ (setenv "HOME" "/tmp")) | |
2916 | (alist-replace | |
2917 | 'check | |
2918 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))) | |
2919 | %standard-phases)))) | |
2920 | (home-page "http://cython.org/") | |
2921 | (synopsis "C extensions for Python") | |
2922 | (description "Cython is an optimising static compiler for both the Python | |
2923 | programming language and the extended Cython programming language. It makes | |
2924 | writing C extensions for Python as easy as Python itself.") | |
2925 | (license asl2.0))) | |
2926 | ||
2927 | (define-public python2-cython | |
2928 | (package (inherit (package-with-python2 python-cython)) | |
2929 | (name "python2-cython") | |
2930 | (inputs | |
2931 | `(("python-2" ,python-2))))) ; this is not automatically changed | |
0da98533 FB |
2932 | |
2933 | ;; This version of numpy is missing the documentation and is only used to | |
2934 | ;; build matplotlib which is required to build numpy's documentation. | |
2935 | (define python-numpy-bootstrap | |
2936 | (package | |
2937 | (name "python-numpy-bootstrap") | |
2938 | (version "1.9.1") | |
2939 | (source | |
2940 | (origin | |
2941 | (method url-fetch) | |
2942 | (uri (string-append "mirror://sourceforge/numpy" | |
2943 | "/numpy-" version ".tar.gz")) | |
2944 | (sha256 | |
2945 | (base32 | |
2946 | "070ybfvpgfmiz2hs94x445hvkh9dh52nyi0m8jp5kdihgvhbnx80")))) | |
2947 | (build-system python-build-system) | |
2948 | (inputs | |
2949 | `(("python-nose" ,python-nose) | |
cba256f8 RW |
2950 | ("openblas" ,openblas) |
2951 | ("lapack" ,lapack))) | |
0da98533 | 2952 | (native-inputs |
19afbea1 | 2953 | `(("gfortran" ,gfortran))) |
0da98533 FB |
2954 | (arguments |
2955 | `(#:phases | |
2956 | (alist-cons-before | |
2957 | 'build 'set-environment-variables | |
2958 | (lambda* (#:key inputs #:allow-other-keys) | |
dbdfe515 RW |
2959 | (call-with-output-file "site.cfg" |
2960 | (lambda (port) | |
cba256f8 RW |
2961 | (format port |
2962 | "[openblas] | |
dbdfe515 RW |
2963 | libraries = openblas |
2964 | library_dirs = ~a/lib | |
2965 | include_dirs = ~a/include | |
cba256f8 RW |
2966 | |
2967 | [lapack] | |
2968 | lapack_libs = lapack | |
2969 | library_dirs = ~a/lib | |
2970 | include_dirs = ~a/include | |
2971 | " | |
2972 | (assoc-ref inputs "openblas") | |
2973 | (assoc-ref inputs "openblas") | |
2974 | (assoc-ref inputs "lapack") | |
2975 | (assoc-ref inputs "lapack")))) | |
dbdfe515 RW |
2976 | ;; Use "gcc" executable, not "cc". |
2977 | (substitute* "numpy/distutils/system_info.py" | |
2978 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") | |
2979 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) | |
2980 | #t) | |
6a843168 FB |
2981 | ;; Tests can only be run after the library has been installed and not |
2982 | ;; within the source directory. | |
2983 | (alist-cons-after | |
2984 | 'install 'check | |
89b5c60e | 2985 | (lambda _ |
6a843168 | 2986 | (with-directory-excursion "/tmp" |
89b5c60e | 2987 | (zero? (system* "python" "-c" |
6a843168 | 2988 | "import numpy; numpy.test(verbose=2)")))) |
89b5c60e AE |
2989 | (alist-delete |
2990 | 'check | |
6a843168 | 2991 | %standard-phases))))) |
0da98533 FB |
2992 | (home-page "http://www.numpy.org/") |
2993 | (synopsis "Fundamental package for scientific computing with Python") | |
2994 | (description "NumPy is the fundamental package for scientific computing | |
e881752c | 2995 | with Python. It contains among other things: a powerful N-dimensional array |
0da98533 FB |
2996 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
2997 | and Fortran code, useful linear algebra, Fourier transform, and random number | |
2998 | capabilities.") | |
2999 | (license bsd-3))) | |
3000 | ||
3001 | (define python2-numpy-bootstrap | |
3002 | (package-with-python2 python-numpy-bootstrap)) | |
15bfe6d6 | 3003 | |
3a1bfe18 RW |
3004 | (define-public python2-fastlmm |
3005 | (package | |
3006 | (name "python2-fastlmm") | |
3007 | (version "0.2.14") | |
3008 | (source | |
3009 | (origin | |
3010 | (method url-fetch) | |
3011 | (uri (string-append | |
3012 | "https://pypi.python.org/packages/source/f/fastlmm" | |
3013 | "/fastlmm-" version ".zip")) | |
3014 | (sha256 | |
3015 | (base32 | |
3016 | "023sydkrc3yxad2bycar02jfswwlh4199kafzhf2bssyx2c3xa0l")))) | |
3017 | (build-system python-build-system) | |
3018 | (arguments | |
3019 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3020 | (propagated-inputs | |
3021 | `(("python2-numpy" ,python2-numpy) | |
3022 | ("python2-scipy" ,python2-scipy) | |
3023 | ("python2-matplotlib" ,python2-matplotlib) | |
3024 | ("python2-pandas" ,python2-pandas) | |
3025 | ("python2-scikit-learn" ,python2-scikit-learn) | |
3026 | ("python2-cython" ,python2-cython) | |
3027 | ("python2-pysnptools" ,python2-pysnptools))) | |
3028 | (native-inputs | |
3029 | `(("unzip" ,unzip) | |
3030 | ("python2-mock" ,python2-mock) | |
3031 | ("python2-setuptools" ,python2-setuptools))) | |
3032 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") | |
3033 | (synopsis "Perform genome-wide association studies on large data sets") | |
3034 | (description | |
3035 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed | |
3036 | Models, is a program for performing both single-SNP and SNP-set genome-wide | |
3037 | association studies (GWAS) on extremely large data sets.") | |
3038 | (license asl2.0))) | |
3039 | ||
2ee8869a FB |
3040 | (define-public python-numpy |
3041 | (package (inherit python-numpy-bootstrap) | |
3042 | (name "python-numpy") | |
3043 | (outputs '("out" "doc")) | |
89b5c60e | 3044 | (inputs |
2ee8869a FB |
3045 | `(("which" ,which) |
3046 | ("python-setuptools" ,python-setuptools) | |
3047 | ("python-matplotlib" ,python-matplotlib) | |
3048 | ("python-sphinx" ,python-sphinx) | |
3049 | ("python-pyparsing" ,python-pyparsing) | |
3050 | ("python-numpydoc" ,python-numpydoc) | |
3051 | ,@(package-inputs python-numpy-bootstrap))) | |
3052 | (native-inputs | |
3053 | `(("pkg-config" ,pkg-config) | |
3054 | ("texlive" ,texlive) | |
3055 | ("texinfo" ,texinfo) | |
3056 | ("perl" ,perl) | |
3057 | ,@(package-native-inputs python-numpy-bootstrap))) | |
3058 | (arguments | |
89b5c60e | 3059 | `(,@(substitute-keyword-arguments |
2ee8869a FB |
3060 | (package-arguments python-numpy-bootstrap) |
3061 | ((#:phases phases) | |
3062 | `(alist-cons-after | |
3063 | 'install 'install-doc | |
3064 | (lambda* (#:key outputs #:allow-other-keys) | |
3065 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
89b5c60e AE |
3066 | (doc (string-append |
3067 | data "/doc/" ,name "-" | |
2ee8869a FB |
3068 | ,(package-version python-numpy-bootstrap))) |
3069 | (info (string-append data "/info")) | |
3070 | (html (string-append doc "/html")) | |
3071 | (pyver ,(string-append "PYVER="))) | |
3072 | (with-directory-excursion "doc" | |
3073 | (mkdir-p html) | |
3074 | (system* "make" "html" pyver) | |
3075 | (system* "make" "latex" "PAPER=a4" pyver) | |
89b5c60e | 3076 | (system* "make" "-C" "build/latex" |
2ee8869a FB |
3077 | "all-pdf" "PAPER=a4" pyver) |
3078 | ;; FIXME: Generation of the info file fails. | |
3079 | ;; (system* "make" "info" pyver) | |
3080 | ;; (mkdir-p info) | |
3081 | ;; (copy-file "build/texinfo/numpy.info" | |
3082 | ;; (string-append info "/numpy.info")) | |
3083 | (for-each (lambda (file) | |
3084 | (copy-file (string-append "build/latex" file) | |
3085 | (string-append doc file))) | |
3086 | '("/numpy-ref.pdf" "/numpy-user.pdf")) | |
3087 | (with-directory-excursion "build/html" | |
3088 | (for-each (lambda (file) | |
3089 | (let* ((dir (dirname file)) | |
3090 | (tgt-dir (string-append html "/" dir))) | |
3091 | (unless (equal? "." dir) | |
3092 | (mkdir-p tgt-dir)) | |
96c46210 | 3093 | (install-file file html))) |
2ee8869a FB |
3094 | (find-files "." ".*")))))) |
3095 | ,phases))))))) | |
3096 | ||
764c077b LC |
3097 | (define-public python2-numpy |
3098 | (let ((numpy (package-with-python2 python-numpy))) | |
3099 | (package (inherit numpy) | |
88c26834 AE |
3100 | ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for |
3101 | ;; Python 2. | |
3102 | (inputs `(("python2-matplotlib" ,python2-matplotlib) | |
3103 | ,@(alist-delete "python-matplotlib" | |
3104 | (package-inputs numpy))))))) | |
2ee8869a | 3105 | |
15bfe6d6 FB |
3106 | (define-public python-pyparsing |
3107 | (package | |
3108 | (name "python-pyparsing") | |
e0669289 | 3109 | (version "2.0.3") |
15bfe6d6 FB |
3110 | (source |
3111 | (origin | |
3112 | (method url-fetch) | |
3113 | (uri (string-append "mirror://sourceforge/pyparsing" | |
3114 | "/pyparsing-" version ".tar.gz")) | |
3115 | (sha256 | |
3116 | (base32 | |
e0669289 | 3117 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
15bfe6d6 FB |
3118 | (build-system python-build-system) |
3119 | (outputs '("out" "doc")) | |
3120 | (arguments | |
3121 | `(#:tests? #f ; no test target | |
3122 | #:modules ((guix build python-build-system) | |
3123 | (guix build utils)) | |
3124 | #:phases | |
3125 | (alist-cons-after | |
3126 | 'install 'install-doc | |
3127 | (lambda* (#:key outputs #:allow-other-keys) | |
89b5c60e | 3128 | (let* ((doc (string-append (assoc-ref outputs "doc") |
15bfe6d6 FB |
3129 | "/share/doc/" ,name "-" ,version)) |
3130 | (html-doc (string-append doc "/html")) | |
3131 | (examples (string-append doc "/examples"))) | |
3132 | (mkdir-p html-doc) | |
3133 | (mkdir-p examples) | |
89b5c60e | 3134 | (for-each |
15bfe6d6 | 3135 | (lambda (dir tgt) |
89b5c60e | 3136 | (map (lambda (file) |
96c46210 | 3137 | (install-file file tgt)) |
15bfe6d6 FB |
3138 | (find-files dir ".*"))) |
3139 | (list "docs" "htmldoc" "examples") | |
3140 | (list doc html-doc examples)))) | |
3141 | %standard-phases))) | |
3142 | (home-page "http://pyparsing.wikispaces.com") | |
3143 | (synopsis "Python parsing class library") | |
3144 | (description | |
3145 | "The pyparsing module is an alternative approach to creating and | |
3146 | executing simple grammars, vs. the traditional lex/yacc approach, or the use | |
3147 | of regular expressions. The pyparsing module provides a library of classes | |
3148 | that client code uses to construct the grammar directly in Python code.") | |
bd3fa666 | 3149 | (license license:expat))) |
15bfe6d6 FB |
3150 | |
3151 | (define-public python2-pyparsing | |
3152 | (package-with-python2 python-pyparsing)) | |
3153 | ||
ec00de35 FB |
3154 | (define-public python-numpydoc |
3155 | (package | |
3156 | (name "python-numpydoc") | |
3157 | (version "0.5") | |
3158 | (source | |
3159 | (origin | |
3160 | (method url-fetch) | |
89b5c60e | 3161 | (uri (string-append |
ec00de35 FB |
3162 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
3163 | version ".tar.gz")) | |
3164 | (sha256 | |
3165 | (base32 | |
5e4d8f67 AE |
3166 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
3167 | (modules '((guix build utils))) | |
3168 | (snippet | |
3169 | '(begin | |
3170 | ;; Drop a test requiring matplotlib, which we cannot add as an | |
3171 | ;; input since it would create a circular dependency: Extend the | |
3172 | ;; test for Python 3, where it is already dropped, to Python 2. | |
3173 | (substitute* "numpydoc/tests/test_plot_directive.py" | |
3174 | (("3") "2")))))) | |
ec00de35 FB |
3175 | (build-system python-build-system) |
3176 | (inputs | |
3177 | `(("python-setuptools" ,python-setuptools) | |
3178 | ("python-docutils" ,python-docutils) | |
3179 | ("python-sphinx" ,python-sphinx) | |
3180 | ("python-nose" ,python-nose))) | |
3181 | (home-page "https://pypi.python.org/pypi/numpydoc") | |
3182 | (synopsis | |
3183 | "Numpy's Sphinx extensions") | |
3184 | (description | |
3185 | "Sphinx extension to support docstrings in Numpy format.") | |
3186 | (license bsd-2))) | |
3187 | ||
3188 | (define-public python2-numpydoc | |
5e4d8f67 | 3189 | (package-with-python2 python-numpydoc)) |
1c65314c | 3190 | |
1e656049 RW |
3191 | (define-public python-numexpr |
3192 | (package | |
3193 | (name "python-numexpr") | |
3194 | (version "2.4.4") | |
3195 | (source | |
3196 | (origin | |
3197 | (method url-fetch) | |
3198 | (uri (string-append "https://pypi.python.org/packages/source/" | |
3199 | "n/numexpr/numexpr-" version ".tar.gz")) | |
3200 | (sha256 | |
3201 | (base32 | |
3202 | "0nsnff5312fm38w6dm34bw7ghfqqy8vl9gig0al963h4mz8zm8nz")))) | |
3203 | (build-system python-build-system) | |
3204 | (arguments `(#:tests? #f)) ; no tests included | |
3205 | (propagated-inputs | |
3206 | `(("python-numpy" ,python-numpy))) | |
3207 | (home-page "https://github.com/pydata/numexpr") | |
3208 | (synopsis "Fast numerical expression evaluator for NumPy") | |
3209 | (description | |
3210 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, | |
3211 | expressions that operate on arrays are accelerated and use less memory than | |
3212 | doing the same calculation in Python. In addition, its multi-threaded | |
3213 | capabilities can make use of all your cores, which may accelerate | |
3214 | computations, most specially if they are not memory-bounded (e.g. those using | |
3215 | transcendental functions).") | |
3216 | (license license:expat))) | |
3217 | ||
3218 | (define-public python2-numexpr | |
3219 | (let ((numexpr (package-with-python2 python-numexpr))) | |
3220 | (package (inherit numexpr) | |
3221 | ;; Make sure to use special packages for Python 2 instead | |
3222 | ;; of those automatically rewritten by package-with-python2. | |
3223 | (propagated-inputs | |
3224 | `(("python2-numpy" ,python2-numpy) | |
3225 | ,@(alist-delete "python-numpy" | |
3226 | (package-propagated-inputs numexpr))))))) | |
3227 | ||
1c65314c FB |
3228 | (define-public python-matplotlib |
3229 | (package | |
3230 | (name "python-matplotlib") | |
1bbc659f | 3231 | (version "1.4.3") |
1c65314c FB |
3232 | (source |
3233 | (origin | |
3234 | (method url-fetch) | |
3235 | (uri (string-append "mirror://sourceforge/matplotlib" | |
3236 | "/matplotlib-" version ".tar.gz")) | |
3237 | (sha256 | |
3238 | (base32 | |
1bbc659f FB |
3239 | "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av")) |
3240 | (patches (list (search-patch "matplotlib-setupext-tk.patch"))))) | |
1c65314c FB |
3241 | (build-system python-build-system) |
3242 | (outputs '("out" "doc")) | |
25f9a068 FB |
3243 | (propagated-inputs ; the following packages are all needed at run time |
3244 | `(("python-pyparsing" ,python-pyparsing) | |
3245 | ("python-pygobject" ,python-pygobject) | |
3246 | ("gobject-introspection" ,gobject-introspection) | |
1bbc659f | 3247 | ("python-tkinter" ,python "tk") |
25f9a068 FB |
3248 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
3249 | ;; from 'gtk+') provides the required 'typelib' files used by | |
3250 | ;; 'gobject-introspection'. The location of these files is set with the | |
3251 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this | |
3252 | ;; is done automatically by a 'native-search-path' procedure. However, | |
3253 | ;; at run-time the user must set this variable as follows: | |
3254 | ;; | |
3255 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 | |
25f9a068 FB |
3256 | ("gtk+" ,gtk+) |
3257 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of | |
3258 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' | |
3259 | ;; object. For this reason we need to import both libraries. | |
3260 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo | |
3261 | ("python-pycairo" ,python-pycairo) | |
3262 | ("python-cairocffi" ,python-cairocffi))) | |
1c65314c FB |
3263 | (inputs |
3264 | `(("python-setuptools" ,python-setuptools) | |
3265 | ("python-dateutil" ,python-dateutil-2) | |
1c65314c FB |
3266 | ("python-six" ,python-six) |
3267 | ("python-pytz" ,python-pytz) | |
3268 | ("python-numpy" ,python-numpy-bootstrap) | |
3269 | ("python-sphinx" ,python-sphinx) | |
3270 | ("python-numpydoc" ,python-numpydoc) | |
3271 | ("python-nose" ,python-nose) | |
3272 | ("python-mock" ,python-mock) | |
3273 | ("libpng" ,libpng) | |
3274 | ("imagemagick" ,imagemagick) | |
3275 | ("freetype" ,freetype) | |
25f9a068 FB |
3276 | ("cairo" ,cairo) |
3277 | ("glib" ,glib) | |
4e7a137a | 3278 | ("python-pillow" ,python-pillow) |
1c65314c | 3279 | ;; FIXME: Add backends when available. |
1c65314c FB |
3280 | ;("python-wxpython" ,python-wxpython) |
3281 | ;("python-pyqt" ,python-pyqt) | |
1bbc659f FB |
3282 | ("tcl" ,tcl) |
3283 | ("tk" ,tk))) | |
1c65314c FB |
3284 | (native-inputs |
3285 | `(("pkg-config" ,pkg-config) | |
3286 | ("texlive" ,texlive) | |
3287 | ("texinfo" ,texinfo))) | |
3288 | (arguments | |
3289 | `(#:phases | |
25f9a068 FB |
3290 | (alist-cons-before |
3291 | 'build 'configure-environment | |
3292 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3293 | (let ((cairo (assoc-ref inputs "cairo")) | |
3294 | (gtk+ (assoc-ref inputs "gtk+"))) | |
3295 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' | |
3296 | ;; has not effect. | |
25f9a068 FB |
3297 | (setenv "LD_LIBRARY_PATH" |
3298 | (string-append cairo "/lib:" gtk+ "/lib")) | |
3299 | (setenv "HOME" (getcwd)) | |
3300 | (call-with-output-file "setup.cfg" | |
3301 | (lambda (port) | |
1bbc659f FB |
3302 | (format port "[directories]~% |
3303 | basedirlist = ~a,~a~% | |
3304 | [rc_options]~% | |
3305 | backend = TkAgg~%" | |
3306 | (assoc-ref inputs "tcl") | |
3307 | (assoc-ref inputs "tk")))))) | |
25f9a068 FB |
3308 | (alist-cons-after |
3309 | 'install 'install-doc | |
3310 | (lambda* (#:key outputs #:allow-other-keys) | |
3311 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3312 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3313 | (info (string-append data "/info")) | |
3314 | (html (string-append doc "/html"))) | |
3315 | (with-directory-excursion "doc" | |
25f9a068 FB |
3316 | ;; Produce pdf in 'A4' format. |
3317 | (substitute* (find-files "." "conf\\.py") | |
3318 | (("latex_paper_size = 'letter'") | |
3319 | "latex_paper_size = 'a4'")) | |
3320 | (mkdir-p html) | |
3321 | (mkdir-p info) | |
3322 | ;; The doc recommends to run the 'html' target twice. | |
3323 | (system* "python" "make.py" "html") | |
3324 | (system* "python" "make.py" "html") | |
18b31516 | 3325 | (copy-recursively "build/html" html) |
25f9a068 FB |
3326 | (system* "python" "make.py" "latex") |
3327 | (system* "python" "make.py" "texinfo") | |
18b31516 FB |
3328 | (symlink (string-append html "/_images") |
3329 | (string-append info "/matplotlib-figures")) | |
3330 | (with-directory-excursion "build/texinfo" | |
3331 | (substitute* "matplotlib.texi" | |
3332 | (("@image\\{([^,]*)" all file) | |
3333 | (string-append "@image{matplotlib-figures/" file))) | |
3334 | (symlink (string-append html "/_images") | |
3335 | "./matplotlib-figures") | |
3336 | (system* "makeinfo" "--no-split" | |
3337 | "-o" "matplotlib.info" "matplotlib.texi")) | |
25f9a068 FB |
3338 | (copy-file "build/texinfo/matplotlib.info" |
3339 | (string-append info "/matplotlib.info")) | |
3340 | (copy-file "build/latex/Matplotlib.pdf" | |
18b31516 | 3341 | (string-append doc "/Matplotlib.pdf"))))) |
25f9a068 | 3342 | %standard-phases)))) |
1c65314c FB |
3343 | (home-page "http://matplotlib.org") |
3344 | (synopsis "2D plotting library for Python") | |
3345 | (description | |
3346 | "Matplotlib is a Python 2D plotting library which produces publication | |
3347 | quality figures in a variety of hardcopy formats and interactive environments | |
3348 | across platforms. Matplotlib can be used in Python scripts, the python and | |
3349 | ipython shell, web application servers, and six graphical user interface | |
3350 | toolkits.") | |
3351 | (license psfl))) | |
3352 | ||
764c077b LC |
3353 | (define-public python2-matplotlib |
3354 | (let ((matplotlib (package-with-python2 python-matplotlib))) | |
3355 | (package (inherit matplotlib) | |
88c26834 AE |
3356 | ;; Make sure to use special packages for Python 2 instead |
3357 | ;; of those automatically rewritten by package-with-python2. | |
89b5c60e | 3358 | (propagated-inputs |
7ca0dbc3 | 3359 | `(("python2-pycairo" ,python2-pycairo) |
764c077b | 3360 | ("python2-pygobject-2" ,python2-pygobject-2) |
1bbc659f FB |
3361 | ("python2-tkinter" ,python-2 "tk") |
3362 | ,@(fold alist-delete (package-propagated-inputs matplotlib) | |
3363 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) | |
94914805 | 3364 | |
0dde6232 RW |
3365 | (define-public python2-pysnptools |
3366 | (package | |
3367 | (name "python2-pysnptools") | |
3368 | (version "0.2.13") | |
3369 | (source | |
3370 | (origin | |
3371 | (method url-fetch) | |
3372 | (uri (string-append | |
3373 | "https://pypi.python.org/packages/source/p/pysnptools" | |
3374 | "/pysnptools-" version ".zip")) | |
3375 | (sha256 | |
3376 | (base32 | |
3377 | "1rzf5qvwfvd2pp84b14pb2gdvxdk5avnj7rb41ac8gndpkr9g6ib")))) | |
3378 | (build-system python-build-system) | |
3379 | (arguments | |
3380 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3381 | (propagated-inputs | |
3382 | `(("python2-numpy" ,python2-numpy) | |
3383 | ("python2-scipy" ,python2-scipy) | |
3384 | ("python2-pandas" ,python2-pandas) | |
3385 | ("python2-cython" ,python2-cython))) | |
3386 | (native-inputs | |
3387 | `(("unzip" ,unzip) | |
3388 | ("python2-setuptools" ,python2-setuptools))) | |
3389 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") | |
3390 | (synopsis "Library for reading and manipulating genetic data") | |
3391 | (description | |
3392 | "PySnpTools is a library for reading and manipulating genetic data. It | |
3393 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of | |
3394 | those files. It can also efficiently manipulate ranges of integers using set | |
3395 | operators such as union, intersection, and difference.") | |
3396 | (license asl2.0))) | |
3397 | ||
c9b1b4f9 RW |
3398 | (define-public python-rpy2 |
3399 | (package | |
3400 | (name "python-rpy2") | |
ec3bcbc7 | 3401 | (version "2.7.6") |
c9b1b4f9 RW |
3402 | (source |
3403 | (origin | |
3404 | (method url-fetch) | |
ec3bcbc7 | 3405 | (uri (pypi-uri "rpy2" version)) |
c9b1b4f9 RW |
3406 | (sha256 |
3407 | (base32 | |
ec3bcbc7 | 3408 | "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) |
c9b1b4f9 RW |
3409 | (build-system python-build-system) |
3410 | (inputs | |
3411 | `(("python-six" ,python-six) | |
3412 | ("readline" ,readline) | |
3413 | ("icu4c" ,icu4c) | |
3414 | ("pcre" ,pcre) | |
3415 | ("r" ,r))) | |
3416 | (native-inputs | |
5ff6575b RW |
3417 | `(("python-setuptools" ,python-setuptools) |
3418 | ("zlib" ,zlib))) | |
c9b1b4f9 RW |
3419 | (home-page "http://rpy.sourceforge.net/") |
3420 | (synopsis "Python interface to the R language") | |
3421 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a | |
3422 | low-level interface to R from Python, a proposed high-level interface, | |
3423 | including wrappers to graphical libraries, as well as R-like structures and | |
3424 | functions.") | |
3425 | (license gpl3+))) | |
3426 | ||
3427 | (define-public python2-rpy2 | |
3428 | (let ((rpy2 (package-with-python2 python-rpy2))) | |
3429 | (package (inherit rpy2) | |
3430 | (native-inputs | |
3431 | `(("python2-singledispatch" ,python2-singledispatch) | |
3432 | ,@(package-native-inputs rpy2)))))) | |
3433 | ||
bb986599 FB |
3434 | (define-public python-scipy |
3435 | (package | |
3436 | (name "python-scipy") | |
ba8a0824 | 3437 | (version "0.16.0") |
bb986599 FB |
3438 | (source |
3439 | (origin | |
3440 | (method url-fetch) | |
3441 | (uri (string-append "mirror://sourceforge/scipy" | |
da6ce3f1 | 3442 | "/scipy-" version ".tar.xz")) |
bb986599 FB |
3443 | (sha256 |
3444 | (base32 | |
ba8a0824 | 3445 | "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2")))) |
bb986599 | 3446 | (build-system python-build-system) |
dd86c0d1 | 3447 | (propagated-inputs |
bb986599 FB |
3448 | `(("python-numpy" ,python-numpy) |
3449 | ("python-matplotlib" ,python-matplotlib) | |
dd86c0d1 RW |
3450 | ("python-pyparsing" ,python-pyparsing))) |
3451 | (inputs | |
3452 | `(("lapack" ,lapack) | |
719b01c1 | 3453 | ("openblas" ,openblas))) |
bb986599 | 3454 | (native-inputs |
dd86c0d1 RW |
3455 | `(("python-nose" ,python-nose) |
3456 | ("python-sphinx" ,python-sphinx) | |
5248d49e | 3457 | ("python-numpydoc" ,python-numpydoc) |
dd86c0d1 | 3458 | ("gfortran" ,gfortran) |
bb986599 FB |
3459 | ("texlive" ,texlive) |
3460 | ("perl" ,perl))) | |
3461 | (outputs '("out" "doc")) | |
3462 | (arguments | |
3463 | `(#:phases | |
3464 | (alist-cons-before | |
719b01c1 | 3465 | 'build 'configure-openblas |
bb986599 | 3466 | (lambda* (#:key inputs #:allow-other-keys) |
719b01c1 RW |
3467 | (call-with-output-file "site.cfg" |
3468 | (lambda (port) | |
3469 | (format port | |
3470 | "[blas] | |
3471 | libraries = openblas | |
3472 | library_dirs = ~a/lib | |
3473 | include_dirs = ~a/include | |
3474 | [atlas] | |
3475 | library_dirs = ~a/lib | |
3476 | atlas_libs = openblas | |
3477 | " | |
3478 | (assoc-ref inputs "openblas") | |
3479 | (assoc-ref inputs "openblas") | |
3480 | (assoc-ref inputs "openblas")))) | |
3481 | #t) | |
bb986599 FB |
3482 | (alist-cons-after |
3483 | 'install 'install-doc | |
3484 | (lambda* (#:key outputs #:allow-other-keys) | |
3485 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3486 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3487 | (html (string-append doc "/html")) | |
3488 | (pyver ,(string-append "PYVER="))) | |
3489 | (with-directory-excursion "doc" | |
bb986599 FB |
3490 | ;; Fix generation of images for mathematical expressions. |
3491 | (substitute* (find-files "source" "conf\\.py") | |
3492 | (("pngmath_use_preview = True") | |
3493 | "pngmath_use_preview = False")) | |
3494 | (mkdir-p html) | |
3495 | (system* "make" "html" pyver) | |
3496 | (system* "make" "latex" "PAPER=a4" pyver) | |
3497 | (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver) | |
3498 | (copy-file "build/latex/scipy-ref.pdf" | |
3499 | (string-append doc "/scipy-ref.pdf")) | |
3500 | (with-directory-excursion "build/html" | |
3501 | (for-each (lambda (file) | |
3502 | (let* ((dir (dirname file)) | |
3503 | (tgt-dir (string-append html "/" dir))) | |
96c46210 | 3504 | (install-file file html))) |
bb986599 FB |
3505 | (find-files "." ".*")))))) |
3506 | ;; Tests can only be run after the library has been installed and not | |
3507 | ;; within the source directory. | |
3508 | (alist-cons-after | |
3509 | 'install 'check | |
89b5c60e | 3510 | (lambda _ |
bb986599 FB |
3511 | (with-directory-excursion "/tmp" |
3512 | (zero? (system* "python" "-c" "import scipy; scipy.test()")))) | |
89b5c60e AE |
3513 | (alist-delete |
3514 | 'check | |
4f9ff21e RW |
3515 | (alist-cons-after |
3516 | 'unpack 'fix-tests | |
3517 | (lambda _ | |
3518 | (substitute* "scipy/integrate/tests/test_quadpack.py" | |
3519 | (("libm.so") "libm.so.6")) | |
3520 | #t) | |
3521 | %standard-phases))))))) | |
bb986599 FB |
3522 | (home-page "http://www.scipy.org/") |
3523 | (synopsis "The Scipy library provides efficient numerical routines") | |
3524 | (description "The SciPy library is one of the core packages that make up | |
3525 | the SciPy stack. It provides many user-friendly and efficient numerical | |
3526 | routines such as routines for numerical integration and optimization.") | |
3527 | (license bsd-3))) | |
3528 | ||
764c077b LC |
3529 | (define-public python2-scipy |
3530 | (let ((scipy (package-with-python2 python-scipy))) | |
3531 | (package (inherit scipy) | |
3532 | ;; Use packages customized for python-2. | |
dd86c0d1 RW |
3533 | (propagated-inputs |
3534 | `(("python2-matplotlib" ,python2-matplotlib) | |
3535 | ("python2-numpy" ,python2-numpy) | |
3536 | ,@(alist-delete "python-matplotlib" | |
3537 | (alist-delete "python-numpy" | |
3538 | (package-propagated-inputs scipy)))))))) | |
bb986599 | 3539 | |
94914805 EB |
3540 | (define-public python-sqlalchemy |
3541 | (package | |
3542 | (name "python-sqlalchemy") | |
3543 | (version "0.9.7") | |
3544 | (source | |
3545 | (origin | |
3546 | (method url-fetch) | |
3547 | (uri (string-append "https://pypi.python.org/packages/source/S/" | |
3548 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) | |
3549 | (sha256 | |
3550 | (base32 | |
3551 | "059ayifj5l08v6vv56anhyibyllscn10dlzr2fcw68gz1hfjdzsz")))) | |
3552 | (build-system python-build-system) | |
3553 | (native-inputs | |
3554 | `(("python-cython" ,python-cython) ;for c extensions | |
3555 | ("python-pytest" ,python-pytest) | |
3556 | ("python-mock" ,python-mock))) ;for tests | |
3557 | (arguments | |
3558 | `(#:phases (alist-replace | |
3559 | 'check | |
3560 | (lambda _ (zero? (system* "py.test"))) | |
3561 | %standard-phases))) | |
3562 | (home-page "http://www.sqlalchemy.org") | |
3563 | (synopsis "Database abstraction library") | |
3564 | (description | |
3565 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that | |
3566 | gives application developers the full power and flexibility of SQL. It | |
3567 | provides a full suite of well known enterprise-level persistence patterns, | |
3568 | designed for efficient and high-performing database access, adapted into a | |
3569 | simple and Pythonic domain language.") | |
3570 | (license x11))) | |
3571 | ||
3572 | (define-public python2-sqlalchemy | |
3573 | (package-with-python2 python-sqlalchemy)) | |
c937562e | 3574 | |
1671c07c EB |
3575 | (define-public python-distutils-extra |
3576 | (package | |
3577 | (name "python-distutils-extra") | |
3578 | (version "2.38") | |
3579 | (source | |
3580 | (origin | |
3581 | (method url-fetch) | |
3582 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" | |
3583 | version "/+download/python-distutils-extra-" | |
3584 | version ".tar.gz")) | |
3585 | (sha256 | |
3586 | (base32 | |
3587 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) | |
3588 | (build-system python-build-system) | |
3589 | (native-inputs | |
3590 | `(("python-setuptools" ,python-setuptools))) | |
3591 | (home-page "https://launchpad.net/python-distutils-extra/") | |
3592 | (synopsis "Enhancements to Python's distutils") | |
3593 | (description | |
3594 | "The python-distutils-extra module enables you to easily integrate | |
3595 | gettext support, themed icons, and scrollkeeper-based documentation into | |
3596 | Python's distutils.") | |
3597 | (license gpl2))) | |
3598 | ||
3599 | (define-public python2-distutils-extra | |
3600 | (package-with-python2 python-distutils-extra)) | |
ea5456c8 EB |
3601 | |
3602 | (define-public python2-elib.intl | |
3603 | (package | |
3604 | (name "python2-elib.intl") | |
3605 | (version "0.0.3") | |
3606 | (source | |
3607 | (origin | |
3608 | ;; This project doesn't tag releases or publish tarballs, so we take | |
3609 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. | |
3610 | (method git-fetch) | |
3611 | (uri (git-reference | |
3612 | (url "https://github.com/dieterv/elib.intl.git") | |
3613 | (commit "d09997cfef"))) | |
3614 | (sha256 | |
3615 | (base32 | |
3616 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) | |
3617 | (build-system python-build-system) | |
3618 | (native-inputs | |
3619 | `(("python2-setuptools" ,python2-setuptools))) | |
3620 | (arguments | |
3621 | ;; incompatible with Python 3 (exception syntax) | |
3622 | `(#:python ,python-2 | |
3623 | #:tests? #f | |
3624 | ;; With standard flags, the install phase attempts to create a zip'd | |
3625 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
3626 | ;; before 1980' | |
3627 | #:configure-flags '("--single-version-externally-managed" | |
3628 | "--record=elib.txt"))) | |
3629 | (home-page "https://github.com/dieterv/elib.intl") | |
3630 | (synopsis "Enhanced internationalization for Python") | |
3631 | (description | |
3632 | "The elib.intl module provides enhanced internationalization (I18N) | |
3633 | services for your Python modules and applications.") | |
3634 | (license lgpl3+))) | |
3635 | ||
c937562e EB |
3636 | (define-public python-pillow |
3637 | (package | |
3638 | (name "python-pillow") | |
7fbee931 | 3639 | (version "3.0.0") |
c937562e EB |
3640 | (source |
3641 | (origin | |
3642 | (method url-fetch) | |
3643 | (uri (string-append "https://pypi.python.org/packages/source/P/" | |
3644 | "Pillow/Pillow-" version ".tar.gz")) | |
3645 | (sha256 | |
3646 | (base32 | |
7fbee931 | 3647 | "1fsl6sywd4f4axvbpy5h5h26l6w8592j0f1wcnj1hmgy83svwl5d")))) |
c937562e EB |
3648 | (build-system python-build-system) |
3649 | (native-inputs | |
3650 | `(("python-setuptools" ,python-setuptools) | |
3651 | ("python-nose" ,python-nose))) | |
3652 | (inputs | |
5ff408d9 SB |
3653 | `(("freetype" ,freetype) |
3654 | ("lcms" ,lcms) | |
c937562e EB |
3655 | ("zlib" ,zlib) |
3656 | ("libjpeg" ,libjpeg) | |
3657 | ("openjpeg" ,openjpeg) | |
5ff408d9 SB |
3658 | ("libtiff" ,libtiff) |
3659 | ("libwebp" ,libwebp))) | |
c937562e EB |
3660 | (propagated-inputs |
3661 | `(;; Used at runtime for pkg_resources | |
3662 | ("python-setuptools" ,python-setuptools))) | |
3663 | (arguments | |
e5358a6b LC |
3664 | `(#:phases (modify-phases %standard-phases |
3665 | (add-before | |
3666 | 'install 'disable-egg-compression | |
3667 | (lambda _ | |
3668 | ;; Leave the .egg uncompressed since compressing it would | |
3669 | ;; prevent the GC from identifying run-time dependencies. | |
3670 | ;; See <http://bugs.gnu.org/20765>. | |
3671 | (let ((port (open-file "setup.cfg" "a"))) | |
3672 | (display "\n[easy_install]\nzip_ok = 0\n" | |
3673 | port) | |
3674 | (close-port port) | |
3675 | #t))) | |
3676 | (add-after | |
3677 | 'install 'check-installed | |
3678 | (lambda _ | |
3679 | (begin | |
3680 | (setenv "HOME" (getcwd)) | |
3681 | (and (zero? (system* "python" "selftest.py" | |
3682 | "--installed")) | |
3683 | (zero? (system* "python" "test-installed.py")))))) | |
3684 | (delete 'check)))) | |
c937562e EB |
3685 | (home-page "https://pypi.python.org/pypi/Pillow") |
3686 | (synopsis "Fork of the Python Imaging Library") | |
3687 | (description | |
3688 | "The Python Imaging Library adds image processing capabilities to your | |
3689 | Python interpreter. This library provides extensive file format support, an | |
3690 | efficient internal representation, and fairly powerful image processing | |
3691 | capabilities. The core image library is designed for fast access to data | |
3692 | stored in a few basic pixel formats. It should provide a solid foundation for | |
3693 | a general image processing tool.") | |
3694 | (license (x11-style | |
3695 | "http://www.pythonware.com/products/pil/license.htm" | |
3696 | "The PIL Software License")))) | |
3697 | ||
3698 | (define-public python2-pillow | |
3699 | (package-with-python2 python-pillow)) | |
bb986599 | 3700 | |
a415f036 FB |
3701 | (define-public python-pycparser |
3702 | (package | |
3703 | (name "python-pycparser") | |
38eb6919 | 3704 | (version "2.14") |
a415f036 FB |
3705 | (source |
3706 | (origin | |
3707 | (method url-fetch) | |
38eb6919 | 3708 | (uri (pypi-uri "pycparser" version)) |
a415f036 FB |
3709 | (sha256 |
3710 | (base32 | |
38eb6919 | 3711 | "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr")))) |
a415f036 FB |
3712 | (outputs '("out" "doc")) |
3713 | (build-system python-build-system) | |
3714 | (native-inputs | |
3715 | `(("pkg-config" ,pkg-config) | |
3716 | ("python-setuptools" ,python-setuptools))) | |
3717 | (arguments | |
89b5c60e | 3718 | `(#:phases |
a415f036 FB |
3719 | (alist-replace |
3720 | 'check | |
3721 | (lambda _ | |
3722 | (with-directory-excursion "tests" | |
3723 | (zero? (system* "python" "all_tests.py")))) | |
3724 | (alist-cons-after | |
3725 | 'install 'install-doc | |
3726 | (lambda* (#:key outputs #:allow-other-keys) | |
3727 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3728 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3729 | (examples (string-append doc "/examples"))) | |
3730 | (mkdir-p examples) | |
3731 | (for-each (lambda (file) | |
3732 | (copy-file (string-append "." file) | |
3733 | (string-append doc file))) | |
3734 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
3735 | (copy-recursively "examples" examples))) | |
3736 | %standard-phases)))) | |
3737 | (home-page "https://github.com/eliben/pycparser") | |
3738 | (synopsis "C parser in Python") | |
3739 | (description | |
3740 | "Pycparser is a complete parser of the C language, written in pure Python | |
3741 | using the PLY parsing library. It parses C code into an AST and can serve as | |
3742 | a front-end for C compilers or analysis tools.") | |
3743 | (license bsd-3))) | |
3744 | ||
3745 | (define-public python2-pycparser | |
3746 | (package-with-python2 python-pycparser)) | |
57c3f716 FB |
3747 | |
3748 | (define-public python-cffi | |
3749 | (package | |
3750 | (name "python-cffi") | |
2d3a437c | 3751 | (version "1.4.2") |
57c3f716 FB |
3752 | (source |
3753 | (origin | |
3754 | (method url-fetch) | |
2d3a437c | 3755 | (uri (pypi-uri "cffi" version)) |
89b5c60e | 3756 | (sha256 |
2d3a437c | 3757 | (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) |
57c3f716 FB |
3758 | (build-system python-build-system) |
3759 | (outputs '("out" "doc")) | |
3760 | (inputs | |
3761 | `(("libffi" ,libffi))) | |
3762 | (propagated-inputs ; required at run-time | |
3763 | `(("python-pycparser" ,python-pycparser))) | |
3764 | (native-inputs | |
3765 | `(("pkg-config" ,pkg-config) | |
3766 | ("python-sphinx" ,python-sphinx) | |
4179f952 | 3767 | ("python-pytest" ,python-pytest) |
57c3f716 FB |
3768 | ("python-setuptools" ,python-setuptools))) |
3769 | (arguments | |
4179f952 | 3770 | `(#:phases |
57c3f716 FB |
3771 | (alist-cons-after |
3772 | 'install 'install-doc | |
3773 | (lambda* (#:key outputs #:allow-other-keys) | |
3774 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3775 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3776 | (html (string-append doc "/html"))) | |
3777 | (with-directory-excursion "doc" | |
3778 | (system* "make" "html") | |
3779 | (mkdir-p html) | |
3780 | (copy-recursively "build/html" html)) | |
3781 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) | |
3782 | %standard-phases))) | |
3783 | (home-page "http://cffi.readthedocs.org") | |
3784 | (synopsis "Foreign function interface for Python") | |
3785 | (description | |
3786 | "Foreign Function Interface for Python calling C code.") | |
bd3fa666 | 3787 | (license license:expat))) |
57c3f716 FB |
3788 | |
3789 | (define-public python2-cffi | |
3790 | (package-with-python2 python-cffi)) | |
6fa14469 FB |
3791 | |
3792 | (define-public python-xcffib | |
3793 | (package | |
3794 | (name "python-xcffib") | |
3795 | (version "0.1.9") | |
3796 | (source | |
3797 | (origin | |
3798 | (method url-fetch) | |
3799 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
3800 | "xcffib/xcffib-" version ".tar.gz")) | |
3801 | (sha256 | |
3802 | (base32 | |
3803 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) | |
3804 | (build-system python-build-system) | |
3805 | (inputs | |
3806 | `(("libxcb" ,libxcb) | |
3807 | ("python-six" ,python-six))) | |
3808 | (native-inputs | |
3809 | `(("python-setuptools" ,python-setuptools))) | |
3810 | (propagated-inputs | |
3811 | `(("python-cffi" ,python-cffi))) ; used at run time | |
3812 | (arguments | |
89b5c60e | 3813 | `(#:phases |
6fa14469 FB |
3814 | (alist-cons-after |
3815 | 'install 'install-doc | |
3816 | (lambda* (#:key outputs #:allow-other-keys) | |
3817 | (let ((doc (string-append (assoc-ref outputs "out") "/share" | |
3818 | "/doc/" ,name "-" ,version))) | |
3819 | (mkdir-p doc) | |
3820 | (copy-file "README.md" | |
3821 | (string-append doc "/README.md")))) | |
3822 | %standard-phases))) | |
3823 | (home-page "https://github.com/tych0/xcffib") | |
3824 | (synopsis "XCB Python bindings") | |
3825 | (description | |
3826 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds | |
3827 | support for Python 3 and PyPy. It is based on cffi.") | |
bd3fa666 | 3828 | (license license:expat))) |
6fa14469 FB |
3829 | |
3830 | (define-public python2-xcffib | |
3831 | (package-with-python2 python-xcffib)) | |
3832 | ||
9e099723 FB |
3833 | (define-public python-cairocffi |
3834 | (package | |
3835 | (name "python-cairocffi") | |
3836 | (version "0.6") | |
3837 | (source | |
3838 | (origin | |
3839 | (method url-fetch) | |
3840 | ;; The archive on pypi is missing the 'utils' directory! | |
3841 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" | |
3842 | version ".tar.gz")) | |
f586c877 | 3843 | (file-name (string-append name "-" version ".tar.gz")) |
9e099723 FB |
3844 | (sha256 |
3845 | (base32 | |
3846 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) | |
3847 | (build-system python-build-system) | |
3848 | (outputs '("out" "doc")) | |
3849 | (inputs | |
3850 | `(("gdk-pixbuf" ,gdk-pixbuf) | |
3851 | ("cairo" ,cairo))) | |
3852 | (native-inputs | |
3853 | `(("pkg-config" ,pkg-config) | |
3854 | ("python-sphinx" ,python-sphinx) | |
3855 | ("python-docutils" ,python-docutils) | |
3856 | ("python-setuptools" ,python-setuptools))) | |
3857 | (propagated-inputs | |
3858 | `(("python-xcffib" ,python-xcffib))) ; used at run time | |
3859 | (arguments | |
89b5c60e | 3860 | `(#:phases |
9e099723 FB |
3861 | (alist-cons-after |
3862 | 'install 'install-doc | |
3863 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3864 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3865 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3866 | (html (string-append doc "/html"))) | |
89b5c60e | 3867 | (setenv "LD_LIBRARY_PATH" |
9e099723 FB |
3868 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
3869 | (assoc-ref inputs "gdk-pixbuf") "/lib")) | |
3870 | (setenv "LANG" "en_US.UTF-8") | |
3871 | (mkdir-p html) | |
3872 | (for-each (lambda (file) | |
3873 | (copy-file (string-append "." file) | |
3874 | (string-append doc file))) | |
3875 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
3876 | (system* "python" "setup.py" "build_sphinx") | |
3877 | (copy-recursively "docs/_build/html" html))) | |
3878 | %standard-phases))) | |
3879 | (home-page "https://github.com/SimonSapin/cairocffi") | |
3880 | (synopsis "Python bindings and object-oriented API for Cairo") | |
3881 | (description | |
3882 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of | |
3883 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector | |
3884 | graphics library with support for multiple backends including image buffers, | |
3885 | PNG, PostScript, PDF, and SVG file output.") | |
3886 | (license bsd-3))) | |
3887 | ||
3888 | (define-public python2-cairocffi | |
3889 | (package-with-python2 python-cairocffi)) | |
3890 | ||
3cff95cb RW |
3891 | (define-public python-decorator |
3892 | (package | |
3893 | (name "python-decorator") | |
e21338be | 3894 | (version "4.0.6") |
3cff95cb RW |
3895 | (source |
3896 | (origin | |
3897 | (method url-fetch) | |
e21338be | 3898 | (uri (pypi-uri "decorator" version)) |
3cff95cb | 3899 | (sha256 |
e21338be | 3900 | (base32 "1710cwsbwr8fkiq59w2min7rwgdz7ly51yz8l8yh1zbpfxcm8qhw")))) |
3cff95cb RW |
3901 | (build-system python-build-system) |
3902 | (arguments '(#:tests? #f)) ; no test target | |
3903 | (native-inputs | |
3904 | `(("python-setuptools" ,python-setuptools))) | |
3905 | (home-page "http://pypi.python.org/pypi/decorator/") | |
3906 | (synopsis "Python module to simplify usage of decorators") | |
3907 | (description | |
3908 | "The aim of the decorator module is to simplify the usage of decorators | |
3909 | for the average programmer, and to popularize decorators usage giving examples | |
3910 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, | |
3911 | etc. The core of this module is a decorator factory.") | |
3912 | (license license:expat))) | |
3913 | ||
3914 | (define-public python2-decorator | |
3915 | (package-with-python2 python-decorator)) | |
3916 | ||
2c0499ad RW |
3917 | (define-public python-drmaa |
3918 | (package | |
3919 | (name "python-drmaa") | |
3920 | (version "0.7.6") | |
3921 | (source | |
3922 | (origin | |
3923 | (method url-fetch) | |
3924 | (uri (string-append | |
3925 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" | |
3926 | version ".tar.gz")) | |
3927 | (sha256 | |
3928 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) | |
3929 | (build-system python-build-system) | |
3930 | ;; The test suite requires libdrmaa which is provided by the cluster | |
3931 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH | |
3932 | ;; should be set to the path of the libdrmaa library. | |
3933 | (arguments '(#:tests? #f)) | |
3934 | (native-inputs | |
3935 | `(("python-nose" ,python-nose) | |
3936 | ("python-setuptools" ,python-setuptools))) | |
3937 | (home-page "https://pypi.python.org/pypi/drmaa") | |
3938 | (synopsis "Python bindings for the DRMAA library") | |
3939 | (description | |
3940 | "A Python package for Distributed Resource Management (DRM) job | |
3941 | submission and control. This package is an implementation of the DRMAA 1.0 | |
3942 | Python language binding specification.") | |
3943 | (license bsd-3))) | |
3944 | ||
3945 | (define-public python2-drmaa | |
3946 | (package-with-python2 python-drmaa)) | |
3947 | ||
d05c6da0 RW |
3948 | (define-public python-gridmap |
3949 | (package | |
3950 | (name "python-gridmap") | |
3951 | (version "0.13.0") | |
3952 | (source | |
3953 | (origin | |
3954 | (method url-fetch) | |
3955 | (uri (string-append | |
3956 | "https://github.com/pygridtools/gridmap/archive/v" | |
3957 | version ".tar.gz")) | |
3958 | (file-name (string-append name "-" version ".tar.gz")) | |
3959 | (sha256 | |
3960 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) | |
3961 | (build-system python-build-system) | |
3962 | (inputs | |
3963 | `(("python-psutil" ,python-psutil) | |
3964 | ("python-drmaa" ,python-drmaa) | |
3965 | ("python-pyzmq" ,python-pyzmq))) | |
3966 | (native-inputs | |
3967 | `(("python-setuptools" ,python-setuptools))) | |
3968 | (home-page "https://github.com/pygridtools/gridmap") | |
3969 | (synopsis "Create jobs on a cluster directly from Python") | |
3970 | (description | |
3971 | "Gridmap is a Python package to allow you to easily create jobs on the | |
3972 | cluster directly from Python. You can directly map Python functions onto the | |
3973 | cluster without needing to write any wrapper code yourself.") | |
3974 | (license gpl3+))) | |
3975 | ||
3976 | (define-public python2-gridmap | |
3977 | (package-with-python2 python-gridmap)) | |
3978 | ||
cb6d5c54 RW |
3979 | (define-public python-pexpect |
3980 | (package | |
3981 | (name "python-pexpect") | |
3982 | (version "3.3") | |
3983 | (source | |
3984 | (origin | |
3985 | (method url-fetch) | |
3986 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
3987 | "pexpect/pexpect-" version ".tar.gz")) | |
3988 | (sha256 | |
3989 | (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz")))) | |
3990 | (build-system python-build-system) | |
3991 | (arguments | |
3992 | `(#:phases | |
3993 | (modify-phases %standard-phases | |
3994 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
3995 | (native-inputs | |
3996 | `(("python-nose" ,python-nose))) | |
3997 | (home-page "http://pexpect.readthedocs.org/") | |
3998 | (synopsis "Controlling interactive console applications") | |
3999 | (description | |
4000 | "Pexpect is a pure Python module for spawning child applications; | |
4001 | controlling them; and responding to expected patterns in their output. | |
4002 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a | |
4003 | child application and control it as if a human were typing commands.") | |
4004 | (license isc))) | |
4005 | ||
4006 | (define-public python2-pexpect | |
4007 | (package-with-python2 python-pexpect)) | |
4008 | ||
229ad120 RW |
4009 | (define-public python-setuptools-scm |
4010 | (package | |
4011 | (name "python-setuptools-scm") | |
383af6b0 | 4012 | (version "1.9.0") |
229ad120 RW |
4013 | (source (origin |
4014 | (method url-fetch) | |
383af6b0 | 4015 | (uri (pypi-uri "setuptools_scm" version)) |
229ad120 RW |
4016 | (sha256 |
4017 | (base32 | |
383af6b0 | 4018 | "0y24bl893zk6nrklbvdrlmpkalf214zjn6k1xrglljd29rrn4wxi")))) |
229ad120 | 4019 | (build-system python-build-system) |
383af6b0 | 4020 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
229ad120 RW |
4021 | (home-page "https://github.com/pypa/setuptools_scm/") |
4022 | (synopsis "Manage Python package versions in SCM metadata") | |
4023 | (description | |
383af6b0 | 4024 | "Setuptools_scm handles managing your Python package versions in |
229ad120 RW |
4025 | @dfn{software configuration management} (SCM) metadata instead of declaring |
4026 | them as the version argument or in a SCM managed file.") | |
4027 | (license license:expat))) | |
4028 | ||
4029 | (define-public python2-setuptools-scm | |
4030 | (package-with-python2 python-setuptools-scm)) | |
4031 | ||
b74270ee RW |
4032 | (define-public python-pathpy |
4033 | (package | |
4034 | (name "python-pathpy") | |
4035 | (version "8.1.1") | |
4036 | (source | |
4037 | (origin | |
4038 | (method url-fetch) | |
4039 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4040 | "path.py/path.py-" version ".tar.gz")) | |
4041 | (sha256 | |
4042 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) | |
4043 | (build-system python-build-system) | |
4044 | (propagated-inputs | |
4045 | `(("python-appdirs" ,python-appdirs))) | |
4046 | (native-inputs | |
553b709b EF |
4047 | `(("python-setuptools" ,python-setuptools) |
4048 | ("python-setuptools-scm" ,python-setuptools-scm) | |
b74270ee RW |
4049 | ("python-pytest" ,python-pytest) |
4050 | ("python-pytest-runner" ,python-pytest-runner))) | |
4051 | (home-page "http://github.com/jaraco/path.py") | |
4052 | (synopsis "Python module wrapper for built-in os.path") | |
4053 | (description | |
4054 | "@code{path.py} implements path objects as first-class entities, allowing | |
4055 | common operations on files to be invoked on those path objects directly.") | |
4056 | (license license:expat))) | |
4057 | ||
4058 | (define-public python2-pathpy | |
4059 | (package-with-python2 python-pathpy)) | |
4060 | ||
0d34e01b RW |
4061 | (define-public python-pickleshare |
4062 | (package | |
4063 | (name "python-pickleshare") | |
4064 | (version "0.5") | |
4065 | (source | |
4066 | (origin | |
4067 | (method url-fetch) | |
4068 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4069 | "pickleshare/pickleshare-" version ".tar.gz")) | |
4070 | (sha256 | |
4071 | (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0")))) | |
4072 | (build-system python-build-system) | |
4073 | (propagated-inputs | |
4074 | `(("python-pathpy" ,python-pathpy))) | |
b72a4410 EF |
4075 | (native-inputs |
4076 | `(("python-setuptools" ,python-setuptools))) | |
0d34e01b RW |
4077 | (home-page "https://github.com/vivainio/pickleshare") |
4078 | (synopsis "Tiny key value database with concurrency support") | |
4079 | (description | |
4080 | "PickleShare is a small ‘shelve’-like datastore with concurrency support. | |
4081 | Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike | |
4082 | shelve, many processes can access the database simultaneously. Changing a | |
4083 | value in database is immediately visible to other processes accessing the same | |
4084 | database. Concurrency is possible because the values are stored in separate | |
4085 | files. Hence the “database” is a directory where all files are governed by | |
4086 | PickleShare.") | |
4087 | (license license:expat))) | |
4088 | ||
4089 | (define-public python2-pickleshare | |
4090 | (package-with-python2 python-pickleshare)) | |
4091 | ||
cd6e5189 RW |
4092 | (define-public python-simplegeneric |
4093 | (package | |
4094 | (name "python-simplegeneric") | |
4095 | (version "0.8.1") | |
4096 | (source | |
4097 | (origin | |
4098 | (method url-fetch) | |
4099 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
4100 | "simplegeneric/simplegeneric-" version ".zip")) | |
4101 | (sha256 | |
4102 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) | |
4103 | (build-system python-build-system) | |
4104 | (native-inputs | |
69b96e5e RW |
4105 | `(("python-setuptools" ,python-setuptools) |
4106 | ("unzip" ,unzip))) | |
cd6e5189 RW |
4107 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
4108 | (synopsis "Python module for simple generic functions") | |
4109 | (description | |
4110 | "The simplegeneric module lets you define simple single-dispatch generic | |
4111 | functions, akin to Python’s built-in generic functions like @code{len()}, | |
4112 | @code{iter()} and so on. However, instead of using specially-named methods, | |
4113 | these generic functions use simple lookup tables, akin to those used by | |
4114 | e.g. @code{pickle.dump()} and other generic functions found in the Python | |
4115 | standard library.") | |
4116 | (license zpl2.1))) | |
4117 | ||
4118 | (define-public python2-simplegeneric | |
4119 | (package-with-python2 python-simplegeneric)) | |
4120 | ||
ddc7d8ed RW |
4121 | (define-public python-ipython-genutils |
4122 | (package | |
4123 | (name "python-ipython-genutils") | |
4124 | (version "0.1.0") | |
4125 | (source | |
4126 | (origin | |
4127 | (method url-fetch) | |
4128 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
4129 | "ipython_genutils/ipython_genutils-" | |
4130 | version ".tar.gz")) | |
4131 | (sha256 | |
4132 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) | |
4133 | (build-system python-build-system) | |
4134 | (arguments `(#:tests? #f)) ; no tests | |
4135 | (home-page "http://ipython.org") | |
4136 | (synopsis "Vestigial utilities from IPython") | |
4137 | (description | |
4138 | "This package provides retired utilities from IPython.") | |
4139 | (license bsd-3))) | |
4140 | ||
4141 | (define-public python2-ipython-genutils | |
4142 | (package-with-python2 python-ipython-genutils)) | |
4143 | ||
2b10eb48 RW |
4144 | (define-public python-traitlets |
4145 | (package | |
4146 | (name "python-traitlets") | |
4147 | (version "4.0.0") | |
4148 | (source | |
4149 | (origin | |
4150 | (method url-fetch) | |
4151 | (uri (string-append "https://pypi.python.org/packages/source/t/" | |
4152 | "traitlets/traitlets-" version ".tar.gz")) | |
4153 | (sha256 | |
4154 | (base32 | |
4155 | "0fr3w2xwb46c591dp7zw02bgf4d21mjy9g6rhwc9bwd4ji50n50b")))) | |
4156 | (build-system python-build-system) | |
4157 | (arguments | |
4158 | `(#:phases | |
4159 | (modify-phases %standard-phases | |
4160 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
4161 | (propagated-inputs | |
4162 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
4163 | ("python-decorator" ,python-decorator))) | |
4164 | (native-inputs | |
4165 | `(("python-nose" ,python-nose))) | |
4166 | (home-page "http://ipython.org") | |
4167 | (synopsis "Configuration system for Python applications") | |
4168 | (description | |
4169 | "Traitlets is a framework that lets Python classes have attributes with | |
4170 | type checking, dynamically calculated default values, and ‘on change’ | |
4171 | callbacks. The package also includes a mechanism to use traitlets for | |
4172 | configuration, loading values from files or from command line arguments. This | |
4173 | is a distinct layer on top of traitlets, so you can use traitlets in your code | |
4174 | without using the configuration machinery.") | |
4175 | (license bsd-3))) | |
4176 | ||
4177 | (define-public python2-traitlets | |
4178 | (package-with-python2 python-traitlets)) | |
4179 | ||
ae1ab9fe FB |
4180 | (define-public python-ipython |
4181 | (package | |
4182 | (name "python-ipython") | |
3a0b1b9a | 4183 | (version "3.2.1") |
ae1ab9fe FB |
4184 | (source |
4185 | (origin | |
fceac880 FB |
4186 | (method url-fetch) |
4187 | (patches (list (search-patch "python-ipython-inputhook-ctype.patch"))) | |
4188 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
4189 | "ipython/ipython-" version ".tar.gz")) | |
4190 | (sha256 | |
4191 | (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9")))) | |
ae1ab9fe FB |
4192 | (build-system python-build-system) |
4193 | (outputs '("out" "doc")) | |
3a0b1b9a FB |
4194 | (propagated-inputs |
4195 | `(("python-pyzmq" ,python-pyzmq) | |
4196 | ("python-terminado" ,python-terminado))) | |
ae1ab9fe FB |
4197 | (inputs |
4198 | `(("readline" ,readline) | |
3a0b1b9a | 4199 | ("which" ,which) |
ae1ab9fe | 4200 | ("python-matplotlib" ,python-matplotlib) |
5d26e542 | 4201 | ("python-numpy" ,python-numpy) |
ae1ab9fe | 4202 | ("python-numpydoc" ,python-numpydoc) |
3a0b1b9a FB |
4203 | ("python-jinja2" ,python-jinja2) |
4204 | ("python-mistune" ,python-mistune) | |
4205 | ("python-jsonschema" ,python-jsonschema) | |
4206 | ("python-pygments" ,python-pygments) | |
4207 | ("python-requests" ,python-requests) ;; for tests | |
ae1ab9fe FB |
4208 | ("python-nose" ,python-nose))) |
4209 | (native-inputs | |
4210 | `(("pkg-config" ,pkg-config) | |
4211 | ("python-sphinx" ,python-sphinx) | |
4212 | ("texlive" ,texlive) | |
4213 | ("texinfo" ,texinfo) | |
4214 | ("python-setuptools" ,python-setuptools))) | |
4215 | (arguments | |
89b5c60e | 4216 | `(#:phases |
3a0b1b9a FB |
4217 | (modify-phases %standard-phases |
4218 | (add-after | |
4219 | 'install 'install-doc | |
4220 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4221 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4222 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4223 | (html (string-append doc "/html")) | |
4224 | (man1 (string-append data "/man/man1")) | |
4225 | (info (string-append data "/info")) | |
4226 | (examples (string-append doc "/examples"))) | |
afd3d931 | 4227 | (setenv "LANG" "en_US.utf8") |
3a0b1b9a FB |
4228 | (with-directory-excursion "docs" |
4229 | ;; FIXME: html and pdf fail to build | |
4230 | ;; (system* "make" "html") | |
4231 | ;; (system* "make" "pdf" "PAPER=a4") | |
4232 | (system* "make" "info")) | |
4233 | (copy-recursively "docs/man" man1) | |
4234 | (copy-recursively "examples" examples) | |
4235 | ;; (copy-recursively "docs/build/html" html) | |
4236 | ;; (copy-file "docs/build/latex/ipython.pdf" | |
4237 | ;; (string-append doc "/ipython.pdf")) | |
4238 | (mkdir-p info) | |
4239 | (copy-file "docs/build/texinfo/ipython.info" | |
4240 | (string-append info "/ipython.info")) | |
4241 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) | |
4242 | ;; Tests can only be run after the library has been installed and not | |
4243 | ;; within the source directory. | |
4244 | (delete 'check) | |
4245 | (add-after | |
4246 | 'install 'check | |
4247 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
4248 | (if tests? | |
4249 | (with-directory-excursion "/tmp" | |
4250 | (setenv "HOME" "/tmp/") ;; required by a test | |
4251 | (zero? (system* (string-append (assoc-ref outputs "out") | |
4252 | "/bin/iptest")))) | |
4253 | #t))) | |
4254 | (add-before | |
4255 | 'install 'fix-tests | |
4256 | (lambda* (#:key inputs #:allow-other-keys) | |
4257 | (substitute* "./IPython/utils/_process_posix.py" | |
4258 | (("/usr/bin/env', 'which") (which "which"))) | |
4259 | (substitute* "./IPython/core/tests/test_inputtransformer.py" | |
4260 | (("#!/usr/bin/env python") | |
4261 | (string-append "#!" (which "python")))) | |
4262 | ;; Disable 1 failing test | |
4263 | (substitute* "./IPython/core/tests/test_magic.py" | |
4264 | (("def test_dirops\\(\\):" all) | |
4265 | (string-append "@dec.skipif(True)\n" all)))))))) | |
ae1ab9fe FB |
4266 | (home-page "http://ipython.org") |
4267 | (synopsis "IPython is a tool for interactive computing in Python") | |
4268 | (description | |
4269 | "IPython provides a rich architecture for interactive computing with: | |
4270 | Powerful interactive shells, a browser-based notebook, support for interactive | |
4271 | data visualization, embeddable interpreters and tools for parallel | |
4272 | computing.") | |
4273 | (license bsd-3))) | |
4274 | ||
4275 | (define-public python2-ipython | |
4276 | (let ((ipython (package-with-python2 python-ipython))) | |
3a0b1b9a FB |
4277 | (package |
4278 | (inherit ipython) | |
4279 | ;; FIXME: some tests are failing | |
4280 | (arguments | |
4281 | `(#:tests? #f ,@(package-arguments ipython))) | |
ae1ab9fe | 4282 | ;; Make sure we use custom python2-NAME packages. |
3a0b1b9a | 4283 | ;; FIXME: add pyreadline once available. |
667d90df RW |
4284 | (propagated-inputs |
4285 | `(("python2-terminado" ,python2-terminado) | |
4286 | ,@(alist-delete "python-terminado" | |
4287 | (package-propagated-inputs ipython)))) | |
89b5c60e | 4288 | (inputs |
3a0b1b9a FB |
4289 | `(("python2-mock" ,python2-mock) |
4290 | ("python2-matplotlib" ,python2-matplotlib) | |
5587253a FB |
4291 | ("python2-numpy" ,python2-numpy) |
4292 | ,@(fold alist-delete (package-inputs ipython) | |
4293 | '("python-matplotlib" "python-numpy"))))))) | |
03411993 AE |
4294 | |
4295 | (define-public python-isodate | |
4296 | (package | |
4297 | (name "python-isodate") | |
4298 | (version "0.5.1") | |
4299 | (source | |
4300 | (origin | |
4301 | (method url-fetch) | |
4302 | (uri (string-append | |
4303 | "https://pypi.python.org/packages/source/i/isodate/isodate-" | |
4304 | version | |
4305 | ".tar.gz")) | |
4306 | (sha256 | |
4307 | (base32 | |
4308 | "1yqjn0is0p64cmk9xhq4hc6q06jk86d60kg2jws58d78q0qysami")))) | |
4309 | (build-system python-build-system) | |
4310 | (inputs | |
4311 | `(("python-setuptools" ,python-setuptools))) | |
4312 | (home-page | |
4313 | "http://cheeseshop.python.org/pypi/isodate") | |
4314 | (synopsis | |
4315 | "Python date parser and formatter") | |
4316 | (description | |
4317 | "Python-isodate is a python module for parsing and formatting | |
4318 | ISO 8601 dates, time and duration.") | |
4319 | (license bsd-3))) | |
4320 | ||
4321 | (define-public python2-isodate | |
4322 | (package-with-python2 python-isodate)) | |
673ab897 AE |
4323 | |
4324 | (define-public python-html5lib | |
4325 | (package | |
4326 | (name "python-html5lib") | |
4327 | (version "1.0b3") | |
4328 | (source | |
4329 | (origin | |
4330 | (method url-fetch) | |
4331 | (uri (string-append | |
4332 | "https://pypi.python.org/packages/source/h/html5lib/html5lib-" | |
4333 | version | |
4334 | ".tar.gz")) | |
4335 | (sha256 | |
4336 | (base32 | |
4337 | "1l5i6xzckzx4hnh9qzv9q3kyhkgjx2hsi2k9srgci3qizjmvp6ln")))) | |
4338 | (build-system python-build-system) | |
3dd75476 AE |
4339 | (propagated-inputs |
4340 | `(("python-six" ,python-six))) ; required to "import html5lib" | |
673ab897 AE |
4341 | (inputs |
4342 | `(("python-setuptools" ,python-setuptools))) | |
4343 | (arguments | |
4344 | `(#:test-target "check")) | |
4345 | (home-page | |
4346 | "https://github.com/html5lib/html5lib-python") | |
4347 | (synopsis | |
4348 | "Python HTML parser based on the WHATWG HTML specifcation") | |
4349 | (description | |
4350 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation | |
4351 | and written in Python.") | |
bd3fa666 | 4352 | (license license:expat))) |
673ab897 AE |
4353 | |
4354 | (define-public python2-html5lib | |
4355 | (package-with-python2 python-html5lib)) | |
e99f4211 MW |
4356 | |
4357 | (define-public python-urwid | |
4358 | (package | |
4359 | (name "python-urwid") | |
4360 | (version "1.3.0") | |
4361 | (source | |
4362 | (origin | |
4363 | (method url-fetch) | |
b97c1bfd | 4364 | (uri (pypi-uri "urwid" version)) |
e99f4211 MW |
4365 | (sha256 |
4366 | (base32 | |
4367 | "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19")))) | |
4368 | (build-system python-build-system) | |
b97c1bfd LF |
4369 | (arguments |
4370 | `(#:phases | |
4371 | (modify-phases %standard-phases | |
4372 | ;; Disable failing test. Bug filed upstream: | |
4373 | ;; https://github.com/wardi/urwid/issues/164 | |
4374 | ;; TODO: check again for python-urwid > 1.3.0 or python > 3.4.3. | |
4375 | (add-after 'unpack 'disable-failing-test | |
4376 | (lambda _ | |
4377 | (substitute* "urwid/tests/test_event_loops.py" | |
4378 | (("test_remove_watch_file") | |
4379 | "disable_remove_watch_file"))))))) | |
e99f4211 MW |
4380 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
4381 | (home-page "http://urwid.org") | |
4382 | (synopsis "Console user interface library for Python") | |
4383 | (description | |
4384 | "Urwid is a curses-based UI/widget library for Python. It includes many | |
4385 | features useful for text console applications.") | |
4386 | (license lgpl2.1+))) | |
4387 | ||
4388 | (define-public python2-urwid | |
4389 | (package-with-python2 python-urwid)) | |
d95a56c6 PAR |
4390 | |
4391 | (define-public python-dbus | |
4392 | (package | |
4393 | (name "python-dbus") | |
4394 | (version "1.2.0") | |
4395 | (source | |
4396 | (origin | |
4397 | (method url-fetch) | |
4398 | (uri (string-append | |
4399 | "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-" | |
4400 | version ".tar.gz")) | |
4401 | (sha256 | |
4402 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) | |
4403 | (build-system gnu-build-system) | |
6717c879 SB |
4404 | (arguments |
4405 | '(#:phases | |
4406 | (modify-phases %standard-phases | |
4407 | (add-before | |
4408 | 'check 'pre-check | |
4409 | (lambda _ | |
4410 | ;; XXX: For the missing '/etc/machine-id'. | |
4411 | (substitute* "test/run-test.sh" | |
4412 | (("DBUS_FATAL_WARNINGS=1") | |
4413 | "DBUS_FATAL_WARNINGS=0")) | |
4414 | #t))))) | |
d95a56c6 PAR |
4415 | (native-inputs |
4416 | `(("pkg-config" ,pkg-config))) | |
4417 | (inputs | |
4418 | `(("python" ,python) | |
2e88d113 | 4419 | ("dbus-glib" ,dbus-glib))) |
d95a56c6 PAR |
4420 | (synopsis "Python bindings for D-bus") |
4421 | (description "python-dbus provides bindings for libdbus, the reference | |
4422 | implementation of D-Bus.") | |
4423 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") | |
bd3fa666 | 4424 | (license license:expat))) |
b52af02b MW |
4425 | |
4426 | (define-public python2-dbus | |
4427 | (package (inherit python-dbus) | |
4428 | (name "python2-dbus") | |
4429 | (inputs `(("python" ,python-2) | |
4430 | ,@(alist-delete "python" | |
4431 | (package-inputs python-dbus) | |
4432 | equal?))) | |
4433 | ;; FIXME: on Python 2, the test_utf8 fails with: | |
4434 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" | |
4435 | (arguments `(#:tests? #f)))) | |
a6ac8332 AE |
4436 | |
4437 | (define-public python-apsw | |
4438 | (package | |
4439 | (name "python-apsw") | |
4440 | (version "3.8.7.3-r1") | |
4441 | (source | |
4442 | (origin | |
4443 | (method url-fetch) | |
4444 | (uri (string-append | |
4445 | "https://pypi.python.org/packages/source/a/apsw/apsw-" | |
4446 | version | |
4447 | ".tar.gz")) | |
4448 | (sha256 | |
4449 | (base32 | |
4450 | "1rgxdypg7hym0qny15rx5khrghx9fkppfgsfa2s8lg917924mv7l")))) | |
4451 | (build-system python-build-system) | |
4452 | (inputs | |
4453 | `(("python-setuptools" ,python-setuptools) | |
4454 | ("sqlite" ,sqlite))) | |
4455 | (arguments | |
4456 | `(#:phases | |
4457 | ;; swap check and install phases | |
4458 | (alist-cons-after | |
4459 | 'install 'check | |
4460 | (assoc-ref %standard-phases 'check) | |
4461 | (alist-delete | |
4462 | 'check | |
4463 | %standard-phases)))) | |
4464 | (home-page "https://github.com/rogerbinns/apsw/") | |
4465 | (synopsis "Another Python SQLite Wrapper") | |
4466 | (description "APSW is a Python wrapper for the SQLite | |
4467 | embedded relational database engine. In contrast to other wrappers such as | |
4468 | pysqlite it focuses on being a minimal layer over SQLite attempting just to | |
4469 | translate the complete SQLite API into Python.") | |
abde5f37 | 4470 | (license license:zlib))) |
a6ac8332 AE |
4471 | |
4472 | (define-public python2-apsw | |
4473 | (package-with-python2 python-apsw)) | |
26b307e2 AE |
4474 | |
4475 | (define-public python-lxml | |
4476 | (package | |
4477 | (name "python-lxml") | |
4478 | (version "3.4.2") | |
4479 | (source | |
4480 | (origin | |
4481 | (method url-fetch) | |
4482 | (uri (string-append | |
4483 | "https://pypi.python.org/packages/source/l/lxml/lxml-" | |
4484 | version | |
4485 | ".tar.gz")) | |
4486 | (sha256 | |
4487 | (base32 | |
4488 | "0pd23qz8vms1mgm41p96h4vac5y91igs4wr9640gnvxgk019kmf7")))) | |
4489 | (build-system python-build-system) | |
4490 | (inputs | |
4491 | `(("libxml2" ,libxml2) | |
4492 | ("libxslt" ,libxslt) | |
4493 | ("python-setuptools" ,python-setuptools))) | |
4494 | (home-page "http://lxml.de/") | |
4495 | (synopsis | |
4496 | "Python XML processing library") | |
4497 | (description | |
4498 | "The lxml XML toolkit is a Pythonic binding for the C libraries | |
4499 | libxml2 and libxslt.") | |
4500 | (license bsd-3))) ; and a few more, see LICENSES.txt | |
4501 | ||
4502 | (define-public python2-lxml | |
4503 | (package-with-python2 python-lxml)) | |
4ed20663 | 4504 | |
bec07a7c AE |
4505 | (define-public python2-pil |
4506 | (package | |
4507 | (name "python2-pil") | |
4508 | (version "1.1.7") | |
4509 | (source | |
4510 | (origin | |
4511 | (method url-fetch) | |
4512 | (uri (string-append | |
4513 | "http://effbot.org/downloads/Imaging-" | |
4514 | version ".tar.gz")) | |
4515 | (sha256 | |
4516 | (base32 | |
516277cb AE |
4517 | "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9")) |
4518 | (modules '((guix build utils))) | |
4519 | (snippet | |
4520 | ;; Adapt to newer freetype. As the package is unmaintained upstream, | |
4521 | ;; there is no use in creating a patch and reporting it. | |
4522 | '(substitute* "_imagingft.c" | |
4523 | (("freetype/") | |
4524 | "freetype2/"))))) | |
bec07a7c AE |
4525 | (build-system python-build-system) |
4526 | (inputs | |
4527 | `(("freetype" ,freetype) | |
4528 | ("libjpeg" ,libjpeg) | |
4529 | ("libtiff" ,libtiff) | |
4530 | ("python-setuptools" ,python-setuptools) | |
4531 | ("zlib" ,zlib))) | |
4532 | (arguments | |
4533 | ;; Only the fork python-pillow works with Python 3. | |
4534 | `(#:python ,python-2 | |
4535 | #:tests? #f ; no check target | |
4536 | #:phases | |
4537 | (alist-cons-before | |
4538 | 'build 'configure | |
4539 | ;; According to README and setup.py, manual configuration is | |
4540 | ;; the preferred way of "searching" for inputs. | |
4541 | ;; lcms is not found, TCL_ROOT refers to the unavailable tkinter. | |
4542 | (lambda* (#:key inputs #:allow-other-keys) | |
4543 | (let ((jpeg (assoc-ref inputs "libjpeg")) | |
4544 | (zlib (assoc-ref inputs "zlib")) | |
4545 | (tiff (assoc-ref inputs "libtiff")) | |
4546 | (freetype (assoc-ref inputs "freetype"))) | |
4547 | (substitute* "setup.py" | |
4548 | (("JPEG_ROOT = None") | |
4549 | (string-append "JPEG_ROOT = libinclude(\"" jpeg "\")")) | |
4550 | (("ZLIB_ROOT = None") | |
4551 | (string-append "ZLIB_ROOT = libinclude(\"" zlib "\")")) | |
4552 | (("TIFF_ROOT = None") | |
4553 | (string-append "TIFF_ROOT = libinclude(\"" tiff "\")")) | |
4554 | (("FREETYPE_ROOT = None") | |
4555 | (string-append "FREETYPE_ROOT = libinclude(\"" | |
4556 | freetype "\")"))))) | |
4557 | %standard-phases))) | |
4558 | (home-page "http://www.pythonware.com/products/pil/") | |
4559 | (synopsis "Python Imaging Library") | |
4560 | (description "The Python Imaging Library (PIL) adds image processing | |
4561 | capabilities to the Python interpreter.") | |
4562 | (license (x11-style | |
4563 | "file://README" | |
4564 | "See 'README' in the distribution.")))) | |
092e86f5 AE |
4565 | |
4566 | (define-public python2-cssutils | |
4567 | (package | |
4568 | (name "python2-cssutils") | |
4569 | (version "1.0") | |
4570 | (source | |
4571 | (origin | |
4572 | (method url-fetch) | |
4573 | (uri (string-append | |
4574 | "https://pypi.python.org/packages/source/c/cssutils/cssutils-" | |
4575 | version | |
4576 | ".zip")) | |
4577 | (sha256 | |
4578 | (base32 | |
4579 | "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125")))) | |
4580 | (build-system python-build-system) | |
4581 | (native-inputs | |
4582 | `(("python2-mock" ,python2-mock) ; for the tests | |
4583 | ("unzip" ,unzip))) ; for unpacking the source | |
4584 | (inputs | |
4585 | `(("python2-setuptools" ,python2-setuptools))) | |
4586 | (arguments | |
4587 | `(#:python ,python-2 ; Otherwise tests fail with a syntax error. | |
4588 | #:tests? #f ; The tests apparently download an external URL. | |
da6dd842 | 4589 | )) |
092e86f5 AE |
4590 | (home-page "http://cthedot.de/cssutils/") |
4591 | (synopsis | |
4592 | "CSS Cascading Style Sheets library for Python") | |
4593 | (description | |
4594 | "Cssutils is a Python package for parsing and building CSS | |
4595 | Cascading Style Sheets. Currently it provides a DOM only and no rendering | |
4596 | options.") | |
4597 | (license lgpl3+))) | |
880ff77c AE |
4598 | |
4599 | (define-public python-cssselect | |
4600 | (package | |
4601 | (name "python-cssselect") | |
4602 | (version "0.9.1") | |
4603 | (source | |
4604 | (origin | |
4605 | (method url-fetch) | |
4606 | (uri (string-append | |
4607 | "https://pypi.python.org/packages/source/c/cssselect/cssselect-" | |
4608 | version | |
4609 | ".tar.gz")) | |
4610 | (sha256 | |
4611 | (base32 | |
4612 | "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85")))) | |
4613 | (build-system python-build-system) | |
4614 | (inputs | |
4615 | `(("python-setuptools" ,python-setuptools))) | |
4616 | (arguments | |
4617 | ;; tests fail with message | |
4618 | ;; AttributeError: 'module' object has no attribute 'tests' | |
4619 | `(#:tests? #f)) | |
4620 | (home-page | |
4621 | "https://pythonhosted.org/cssselect/") | |
4622 | (synopsis | |
4623 | "CSS3 selector parser and translator to XPath 1.0") | |
4624 | (description | |
4625 | "Cssselect ia a Python module that parses CSS3 Selectors and translates | |
4626 | them to XPath 1.0 expressions. Such expressions can be used in lxml or | |
4627 | another XPath engine to find the matching elements in an XML or HTML document.") | |
4628 | (license bsd-3))) | |
4629 | ||
4630 | (define-public python2-cssselect | |
4631 | (package-with-python2 python-cssselect)) | |
60357f99 AE |
4632 | |
4633 | (define-public python-netifaces | |
4634 | (package | |
4635 | (name "python-netifaces") | |
4636 | (version "0.10.4") | |
4637 | (source | |
4638 | (origin | |
4639 | (method url-fetch) | |
4640 | (uri (string-append | |
4641 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" | |
4642 | version | |
4643 | ".tar.gz")) | |
4644 | (sha256 | |
4645 | (base32 | |
4646 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) | |
4647 | (build-system python-build-system) | |
4648 | (inputs | |
4649 | `(("python-setuptools" ,python-setuptools))) | |
4650 | (home-page | |
4651 | "https://bitbucket.org/al45tair/netifaces") | |
4652 | (synopsis | |
4653 | "Python module for portable network interface information") | |
4654 | (description | |
4655 | "Netifaces is a Python module providing information on network | |
4656 | interfaces in an easy and portable manner.") | |
4657 | (license license:expat))) | |
4658 | ||
4659 | (define-public python2-netifaces | |
4660 | (package-with-python2 python-netifaces)) | |
92cb152b | 4661 | |
32f77c04 RW |
4662 | (define-public python-networkx |
4663 | (package | |
4664 | (name "python-networkx") | |
4665 | (version "1.9.1") | |
4666 | (source | |
4667 | (origin | |
4668 | (method url-fetch) | |
4669 | (uri (string-append | |
4670 | "https://pypi.python.org/packages/source/n/networkx/networkx-" | |
4671 | version ".tar.gz")) | |
4672 | (sha256 | |
4673 | (base32 "0n8wy0yq1kmdq4wh68mlhwhkndvwzx48lg41a1z0sxxms0wfp033")))) | |
4674 | (build-system python-build-system) | |
4675 | ;; python-decorator is needed at runtime | |
4676 | (propagated-inputs | |
4677 | `(("python-decorator" ,python-decorator))) | |
4678 | (native-inputs | |
4679 | `(("python-setuptools" ,python-setuptools) | |
4680 | ("python-nose" ,python-nose))) | |
4681 | (home-page "http://networkx.github.io/") | |
4682 | (synopsis "Python module for creating and manipulating graphs and networks") | |
4683 | (description | |
4684 | "NetworkX is a Python package for the creation, manipulation, and study | |
4685 | of the structure, dynamics, and functions of complex networks.") | |
4686 | (license bsd-3))) | |
4687 | ||
4688 | (define-public python2-networkx | |
4689 | (package-with-python2 python-networkx)) | |
4690 | ||
92cb152b RW |
4691 | (define-public snakemake |
4692 | (package | |
4693 | (name "snakemake") | |
4694 | (version "3.2.1") | |
4695 | (source | |
4696 | (origin | |
4697 | (method url-fetch) | |
4698 | (uri (string-append | |
4699 | "https://pypi.python.org/packages/source/s/snakemake/snakemake-" | |
4700 | version ".tar.gz")) | |
4701 | (sha256 | |
4702 | (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91")))) | |
4703 | (build-system python-build-system) | |
4704 | (inputs `(("python-setuptools" ,python-setuptools))) | |
4705 | (home-page "https://bitbucket.org/johanneskoester/snakemake") | |
4706 | (synopsis "Python-based execution environment for make-like workflows") | |
4707 | (description | |
4708 | "Snakemake aims to reduce the complexity of creating workflows by | |
4709 | providing a clean and modern domain specific specification language (DSL) in | |
4710 | Python style, together with a fast and comfortable execution environment.") | |
4711 | (license license:expat))) | |
a1920bc9 | 4712 | |
35de1fbd RW |
4713 | (define-public python-seaborn |
4714 | (package | |
4715 | (name "python-seaborn") | |
4716 | (version "0.5.1") | |
4717 | (source | |
4718 | (origin | |
4719 | (method url-fetch) | |
4720 | (uri (string-append | |
4721 | "https://pypi.python.org/packages/source/s/seaborn/seaborn-" | |
4722 | version ".tar.gz")) | |
4723 | (sha256 | |
4724 | (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc")))) | |
4725 | (build-system python-build-system) | |
4726 | (propagated-inputs | |
4727 | `(("python-pandas" ,python-pandas) | |
4728 | ("python-matplotlib" ,python-matplotlib) | |
4729 | ("python-scipy" ,python-scipy))) | |
4730 | (native-inputs | |
4731 | `(("python-setuptools" ,python-setuptools))) | |
4732 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") | |
4733 | (synopsis "Statistical data visualization") | |
4734 | (description | |
4735 | "Seaborn is a library for making attractive and informative statistical | |
4736 | graphics in Python. It is built on top of matplotlib and tightly integrated | |
4737 | with the PyData stack, including support for numpy and pandas data structures | |
4738 | and statistical routines from scipy and statsmodels.") | |
4739 | (license bsd-3))) | |
4740 | ||
4741 | (define-public python2-seaborn | |
4742 | (let ((seaborn (package-with-python2 python-seaborn))) | |
4743 | (package (inherit seaborn) | |
4744 | (propagated-inputs | |
4745 | `(("python2-pytz" ,python2-pytz) | |
dab8ebd9 FB |
4746 | ("python2-pandas" ,python2-pandas) |
4747 | ("python2-matplotlib" ,python2-matplotlib) | |
4748 | ("python2-scipy" ,python2-scipy)))))) | |
35de1fbd | 4749 | |
90fc547f RW |
4750 | (define-public python-sympy |
4751 | (package | |
4752 | (name "python-sympy") | |
4753 | (version "0.7.6") | |
4754 | (source | |
4755 | (origin | |
4756 | (method url-fetch) | |
4757 | (uri (string-append | |
4758 | "https://github.com/sympy/sympy/releases/download/sympy-" | |
4759 | version "/sympy-" version ".tar.gz")) | |
4760 | (sha256 | |
4761 | (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz")))) | |
4762 | (build-system python-build-system) | |
4763 | (native-inputs | |
4764 | `(("python-setuptools" ,python-setuptools))) | |
4765 | (home-page "http://www.sympy.org/") | |
4766 | (synopsis "Python library for symbolic mathematics") | |
4767 | (description | |
4768 | "SymPy is a Python library for symbolic mathematics. It aims to become a | |
4769 | full-featured computer algebra system (CAS) while keeping the code as simple | |
4770 | as possible in order to be comprehensible and easily extensible.") | |
4771 | (license bsd-3))) | |
4772 | ||
4773 | (define-public python2-sympy | |
4774 | (package-with-python2 python-sympy)) | |
4775 | ||
a1920bc9 FB |
4776 | (define-public python-testlib |
4777 | (package | |
4778 | (name "python-testlib") | |
4779 | (version "0.6.5") | |
4780 | (source | |
4781 | (origin | |
4782 | (method url-fetch) | |
4783 | (uri (string-append | |
4784 | "https://pypi.python.org/packages/source/t/testlib/testlib-" | |
4785 | version ".zip")) | |
4786 | (sha256 | |
4787 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) | |
4788 | (build-system python-build-system) | |
4789 | (inputs | |
4790 | `(("python-setuptools" ,python-setuptools))) | |
4791 | (native-inputs | |
4792 | `(("unzip" ,unzip))) | |
4793 | (arguments | |
4794 | `(#:phases | |
4795 | (alist-replace | |
4796 | 'unpack | |
4797 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4798 | (let ((unzip (string-append (assoc-ref inputs "unzip") | |
4799 | "/bin/unzip")) | |
4800 | (source (assoc-ref inputs "source"))) | |
4801 | (and (zero? (system* unzip source)) | |
4802 | (chdir (string-append "testlib-" ,version))))) | |
4803 | %standard-phases))) | |
4804 | (synopsis "Python micro test suite harness") | |
4805 | (description "A micro unittest suite harness for Python.") | |
4806 | (home-page "https://github.com/trentm/testlib") | |
1cb9c006 | 4807 | (license license:expat))) |
a1920bc9 FB |
4808 | |
4809 | (define-public python2-testlib | |
4810 | (package-with-python2 python-testlib)) | |
db62afa5 LC |
4811 | |
4812 | (define-public python2-xlib | |
4813 | (package | |
4814 | (name "python2-xlib") | |
4815 | (version "0.14") | |
4816 | (source (origin | |
4817 | (method url-fetch) | |
4818 | (uri (string-append "mirror://sourceforge/python-xlib/" | |
4819 | "python-xlib-" version ".tar.gz")) | |
4820 | (sha256 | |
4821 | (base32 | |
4822 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) | |
4823 | (build-system python-build-system) | |
4824 | (arguments | |
4825 | `(#:python ,python-2 ;Python 2 only | |
4826 | #:tests? #f)) ;no tests | |
4827 | (inputs | |
4828 | `(("python-setuptools" ,python-setuptools))) | |
4829 | (home-page "http://python-xlib.sourceforge.net/") | |
4830 | (synopsis "Python X11 client library") | |
4831 | (description | |
4832 | "The Python X Library is intended to be a fully functional X client | |
4833 | library for Python programs. It is useful to implement low-level X clients. | |
4834 | It is written entirely in Python.") | |
4835 | (license gpl2+))) | |
0234ca06 DT |
4836 | |
4837 | (define-public python-singledispatch | |
4838 | (package | |
4839 | (name "python-singledispatch") | |
4840 | (version "3.4.0.3") | |
4841 | (source | |
4842 | (origin | |
4843 | (method url-fetch) | |
4844 | (uri (string-append | |
4845 | "https://pypi.python.org/packages/source/s/singledispatch/" | |
4846 | "singledispatch-" version ".tar.gz")) | |
4847 | (sha256 | |
4848 | (base32 | |
4849 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) | |
4850 | (build-system python-build-system) | |
4851 | (native-inputs | |
4852 | `(("python-setuptools" ,python-setuptools))) | |
4853 | (propagated-inputs | |
4854 | `(("python-six" ,python-six))) | |
4855 | (home-page | |
4856 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") | |
4857 | (synopsis "Backport of singledispatch feature from Python 3.4") | |
4858 | (description | |
4859 | "This library brings functools.singledispatch from Python 3.4 to Python | |
4860 | 2.6-3.3.") | |
4861 | (license license:expat))) | |
4862 | ||
4863 | (define-public python2-singledispatch | |
4864 | (package-with-python2 python-singledispatch)) | |
feaae484 | 4865 | |
310d218f RW |
4866 | (define-public python-tornado |
4867 | (package | |
4868 | (name "python-tornado") | |
4869 | (version "4.1") | |
4870 | (source | |
4871 | (origin | |
4872 | (method url-fetch) | |
4873 | (uri (string-append | |
4874 | "https://pypi.python.org/packages/source/t/tornado/" | |
4875 | "tornado-" version ".tar.gz")) | |
4876 | (sha256 | |
4877 | (base32 "0a12f00h277zbifibnj46wf14801f573irvf6hwkgja5vspd7awr")))) | |
4878 | (build-system python-build-system) | |
4879 | (inputs | |
4880 | `(("python-certifi" ,python-certifi))) | |
4881 | (native-inputs | |
4882 | `(("python-setuptools" ,python-setuptools))) | |
f4a4a718 | 4883 | (home-page "http://www.tornadoweb.org/") |
310d218f RW |
4884 | (synopsis "Python web framework and asynchronous networking library") |
4885 | (description | |
4886 | "Tornado is a Python web framework and asynchronous networking library, | |
4887 | originally developed at FriendFeed. By using non-blocking network I/O, | |
4888 | Tornado can scale to tens of thousands of open connections, making it ideal | |
4889 | for long polling, WebSockets, and other applications that require a long-lived | |
4890 | connection to each user.") | |
4891 | (license asl2.0))) | |
4892 | ||
4893 | (define-public python2-tornado | |
4894 | (let ((tornado (package-with-python2 python-tornado))) | |
4895 | (package (inherit tornado) | |
4896 | (inputs | |
4897 | `(("python2-backport-ssl-match-hostname" | |
4898 | ,python2-backport-ssl-match-hostname) | |
4899 | ,@(package-inputs tornado)))))) | |
4900 | ||
feaae484 SB |
4901 | (define-public python-waf |
4902 | (package | |
4903 | (name "python-waf") | |
4904 | (version "1.8.8") | |
4905 | (source (origin | |
4906 | (method url-fetch) | |
4907 | (uri (string-append "https://waf.io/" | |
4908 | "waf-" version ".tar.bz2")) | |
4909 | (sha256 | |
4910 | (base32 | |
4911 | "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn")))) | |
4912 | (build-system python-build-system) | |
4913 | (arguments | |
4914 | '(#:phases | |
4915 | (modify-phases %standard-phases | |
4916 | (replace 'build | |
4917 | (lambda _ | |
4918 | (zero? (begin | |
4919 | (system* "python" "waf-light" "configure") | |
4920 | (system* "python" "waf-light" "build"))))) | |
4921 | (replace 'check | |
4922 | (lambda _ | |
4923 | (zero? (system* "python" "waf" "--version")))) | |
4924 | (replace 'install | |
4925 | (lambda _ | |
4926 | (copy-file "waf" %output)))))) | |
4927 | (home-page "https://waf.io/") | |
4928 | (synopsis "Python-based build system") | |
4929 | (description | |
4930 | "Waf is a Python-based framework for configuring, compiling and installing | |
4931 | applications.") | |
4932 | (license bsd-3))) | |
4933 | ||
4934 | (define-public python2-waf | |
4935 | (package-with-python2 python-waf)) | |
45203542 RW |
4936 | |
4937 | (define-public python-pyzmq | |
4938 | (package | |
4939 | (name "python-pyzmq") | |
3655ee76 | 4940 | (version "15.1.0") |
45203542 RW |
4941 | (source |
4942 | (origin | |
4943 | (method url-fetch) | |
3655ee76 | 4944 | (uri (pypi-uri "pyzmq" version)) |
45203542 | 4945 | (sha256 |
3655ee76 | 4946 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
45203542 RW |
4947 | (build-system python-build-system) |
4948 | (arguments | |
4949 | `(#:configure-flags | |
4950 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) | |
4951 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext | |
4952 | ;; --inplace' for 'python setup.py test' to work. | |
4953 | #:tests? #f)) | |
4954 | (inputs | |
4955 | `(("zeromq" ,zeromq))) | |
4956 | (native-inputs | |
4957 | `(("pkg-config" ,pkg-config) | |
4958 | ("python-nose" ,python-nose) | |
4959 | ("python-setuptools" ,python-setuptools))) | |
4960 | (home-page "http://github.com/zeromq/pyzmq") | |
4961 | (synopsis "Python bindings for 0MQ") | |
4962 | (description | |
4963 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") | |
4964 | (license bsd-4))) | |
4965 | ||
4966 | (define-public python2-pyzmq | |
4967 | (package-with-python2 python-pyzmq)) | |
d889e6c4 CR |
4968 | |
4969 | (define-public python-pep8 | |
4970 | (package | |
4971 | (name "python-pep8") | |
4972 | (version "1.6.2") | |
4973 | (source | |
4974 | (origin | |
4975 | (method url-fetch) | |
4976 | (uri (string-append | |
4977 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
4978 | version | |
4979 | ".tar.gz")) | |
4980 | (sha256 | |
4981 | (base32 | |
4982 | "1zybkcdw1sx84dvkfss96nhykqg9bc0cdpwpl4k9wlxm61bf7dxq")))) | |
4983 | (build-system python-build-system) | |
4984 | (inputs | |
4985 | `(("python-setuptools" ,python-setuptools))) | |
4986 | (home-page "http://pep8.readthedocs.org/") | |
4987 | (synopsis "Python style guide checker") | |
4988 | (description | |
4989 | "This tools checks Python code against some of the style conventions in | |
4990 | PEP 8.") | |
4991 | (license license:expat))) | |
4992 | ||
4993 | (define-public python2-pep8 | |
4994 | (package-with-python2 python-pep8)) | |
e31d7f44 CR |
4995 | |
4996 | (define-public python-pyflakes | |
4997 | (package | |
4998 | (name "python-pyflakes") | |
2abc3972 | 4999 | (version "1.0.0") |
e31d7f44 CR |
5000 | (source |
5001 | (origin | |
5002 | (method url-fetch) | |
2abc3972 | 5003 | (uri (pypi-uri "pyflakes" version)) |
e31d7f44 CR |
5004 | (sha256 |
5005 | (base32 | |
2abc3972 | 5006 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
e31d7f44 CR |
5007 | (build-system python-build-system) |
5008 | (inputs | |
5009 | `(("python-setuptools" ,python-setuptools))) | |
5010 | (home-page | |
5011 | "https://github.com/pyflakes/pyflakes") | |
5012 | (synopsis "Passive checker of Python programs") | |
5013 | (description | |
5014 | "Pyflakes statically checks Python source code for common errors.") | |
5015 | (license license:expat))) | |
a59e017c | 5016 | |
7261d9eb CR |
5017 | (define-public python2-pyflakes |
5018 | (package-with-python2 python-pyflakes)) | |
5019 | ||
a59e017c CR |
5020 | (define-public python-mccabe |
5021 | (package | |
5022 | (name "python-mccabe") | |
5023 | (version "0.3.1") | |
5024 | (source | |
5025 | (origin | |
5026 | (method url-fetch) | |
5027 | (uri (string-append | |
5028 | "https://pypi.python.org/packages/source/m/mccabe/mccabe-" | |
5029 | version | |
5030 | ".tar.gz")) | |
5031 | (sha256 | |
5032 | (base32 | |
5033 | "05ix3vdv5hjk4irl97n2n3c4g1vqvz7dbmkzs13f3bx97bxsczjz")))) | |
5034 | (build-system python-build-system) | |
5035 | (inputs | |
5036 | `(("python-setuptools" ,python-setuptools))) | |
5037 | (home-page "https://github.com/flintwork/mccabe") | |
5038 | (synopsis "McCabe checker, plugin for flake8") | |
5039 | (description | |
5040 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic | |
5041 | complexity of Python source code.") | |
7362371d | 5042 | (license license:expat))) |
a59e017c CR |
5043 | |
5044 | (define-public python2-mccabe | |
5045 | (package-with-python2 python-mccabe)) | |
e8df8f47 | 5046 | |
7477fbb1 CR |
5047 | (define-public python-mccabe-0.2.1 |
5048 | (package (inherit python-mccabe) | |
5049 | (version "0.2.1") | |
5050 | (source | |
5051 | (origin | |
5052 | (method url-fetch) | |
5053 | (uri (pypi-uri "mccabe" version)) | |
5054 | (sha256 | |
5055 | (base32 | |
5056 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))))) | |
5057 | ||
5058 | (define-public python2-mccabe-0.2.1 | |
5059 | (package-with-python2 python-mccabe-0.2.1)) | |
5060 | ||
e8df8f47 CR |
5061 | ;; Flake8 2.4.1 requires an older version of pep8. |
5062 | ;; This should be removed ASAP. | |
5063 | (define-public python-pep8-1.5.7 | |
5064 | (package (inherit python-pep8) | |
5065 | (version "1.5.7") | |
5066 | (source | |
5067 | (origin | |
5068 | (method url-fetch) | |
5069 | (uri (string-append | |
5070 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
5071 | version | |
5072 | ".tar.gz")) | |
5073 | (sha256 | |
5074 | (base32 | |
5075 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))))) | |
5076 | ||
5077 | (define-public python2-pep8-1.5.7 | |
5078 | (package-with-python2 python-pep8-1.5.7)) | |
5079 | ||
5080 | ;; Flake8 2.4.1 requires an older version of pyflakes. | |
5081 | ;; This should be removed ASAP. | |
5082 | (define-public python-pyflakes-0.8.1 | |
5083 | (package (inherit python-pyflakes) | |
5084 | (version "0.8.1") | |
5085 | (source | |
5086 | (origin | |
5087 | (method url-fetch) | |
5088 | (uri (string-append | |
5089 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
5090 | version | |
5091 | ".tar.gz")) | |
5092 | (sha256 | |
5093 | (base32 | |
5094 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))))) | |
5095 | ||
5096 | (define-public python2-pyflakes-0.8.1 | |
7261d9eb | 5097 | (package-with-python2 python-pyflakes-0.8.1)) |
e8df8f47 CR |
5098 | |
5099 | (define-public python-flake8 | |
5100 | (package | |
5101 | (name "python-flake8") | |
1b995533 | 5102 | (version "2.5.1") |
e8df8f47 CR |
5103 | (source |
5104 | (origin | |
5105 | (method url-fetch) | |
1b995533 | 5106 | (uri (pypi-uri "flake8" version)) |
e8df8f47 CR |
5107 | (sha256 |
5108 | (base32 | |
1b995533 | 5109 | "00sn2g5ydriv5anbipcrprpv797kh4q8rfa75w3fc7v7n14fv2j4")))) |
e8df8f47 CR |
5110 | (build-system python-build-system) |
5111 | (inputs | |
5112 | `(("python-setuptools" ,python-setuptools) | |
5113 | ("python-pep8" ,python-pep8-1.5.7) | |
5114 | ("python-pyflakes" ,python-pyflakes-0.8.1) | |
5115 | ("python-mccabe" ,python-mccabe) | |
5116 | ("python-mock" ,python-mock) | |
5117 | ("python-nose" ,python-nose))) | |
5118 | (home-page "https://gitlab.com/pycqa/flake8") | |
5119 | (synopsis | |
5120 | "The modular source code checker: pep8, pyflakes and co") | |
5121 | (description | |
5122 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") | |
5123 | (license license:expat))) | |
5124 | ||
5125 | (define-public python2-flake8 | |
5126 | (package-with-python2 python-flake8)) | |
61b9ac53 | 5127 | |
abf21efc CR |
5128 | ;; This will only be needed by the python-hacking package and will not be |
5129 | ;; necessary once python-hacking > 0.10.2 is released. | |
5130 | (define-public python-flake8-2.2.4 | |
5131 | (package (inherit python-flake8) | |
5132 | (inputs | |
5133 | `(("python-setuptools" ,python-setuptools) | |
5134 | ("python-pep8" ,python-pep8-1.5.7) | |
5135 | ("python-pyflakes" ,python-pyflakes-0.8.1) | |
5136 | ("python-mccabe" ,python-mccabe-0.2.1) | |
5137 | ("python-mock" ,python-mock) | |
5138 | ("python-nose" ,python-nose))) | |
5139 | (version "2.2.4") | |
5140 | (source | |
5141 | (origin | |
5142 | (method url-fetch) | |
5143 | (uri (pypi-uri "flake8" version)) | |
5144 | (sha256 | |
5145 | (base32 | |
5146 | "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8")))))) | |
5147 | ||
5148 | (define-public python2-flake8-2.2.4 | |
5149 | (package-with-python2 python-flake8-2.2.4)) | |
5150 | ||
61b9ac53 FB |
5151 | (define-public python-mistune |
5152 | (package | |
5153 | (name "python-mistune") | |
5154 | (version "0.7") | |
5155 | (source | |
5156 | (origin | |
5157 | (method url-fetch) | |
5158 | (uri (string-append | |
5159 | "https://pypi.python.org/packages/source/m/mistune/mistune-" | |
5160 | version | |
5161 | ".tar.gz")) | |
5162 | (sha256 | |
5163 | (base32 | |
5164 | "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx")))) | |
5165 | (build-system python-build-system) | |
5166 | (inputs | |
5167 | `(("python-setuptools" ,python-setuptools) | |
5168 | ("python-nose" ,python-nose) | |
5169 | ("python-cython" ,python-cython))) | |
5170 | (home-page "https://github.com/lepture/mistune") | |
5171 | (synopsis "Markdown parser in pure Python") | |
5172 | (description "This package provides a fast markdown parser in pure | |
5173 | Python.") | |
5174 | (license bsd-3))) | |
5175 | ||
5176 | (define-public python2-mistune | |
5177 | (package-with-python2 python-mistune)) | |
6d992d07 | 5178 | |
b9893908 EE |
5179 | (define-public python-markdown |
5180 | (package | |
5181 | (name "python-markdown") | |
5182 | (version "2.6.5") | |
5183 | (source | |
5184 | (origin | |
5185 | (method url-fetch) | |
5186 | (uri (pypi-uri "Markdown" version)) | |
5187 | (sha256 | |
5188 | (base32 | |
5189 | "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d")))) | |
5190 | (build-system python-build-system) | |
5191 | (arguments | |
5192 | `(#:phases | |
5193 | (modify-phases %standard-phases | |
5194 | (replace 'check | |
5195 | (lambda _ | |
5196 | (zero? (system* "python" "run-tests.py"))))))) | |
5197 | (native-inputs | |
5198 | `(("python-nose" ,python-nose) | |
5199 | ("python-pyyaml" ,python-pyyaml))) | |
5200 | (home-page "https://pythonhosted.org/Markdown/") | |
5201 | (synopsis "Python implementation of Markdown") | |
5202 | (description | |
5203 | "This package provides a Python implementation of John Gruber's | |
5204 | Markdown. The library features international input, various Markdown | |
5205 | extensions, and several HTML output formats. A command line wrapper | |
5206 | markdown_py is also provided to convert Markdown files to HTML.") | |
5207 | (license bsd-3))) | |
5208 | ||
5209 | (define-public python2-markdown | |
5210 | (package-with-python2 python-markdown)) | |
5211 | ||
6d992d07 FB |
5212 | (define-public python-ptyprocess |
5213 | (package | |
5214 | (name "python-ptyprocess") | |
5215 | (version "0.5") | |
5216 | (source | |
5217 | (origin | |
5218 | (method url-fetch) | |
5219 | (uri (string-append | |
5220 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" | |
5221 | version ".tar.gz")) | |
5222 | (sha256 | |
5223 | (base32 | |
5224 | "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw")))) | |
5225 | (build-system python-build-system) | |
5226 | (inputs | |
5227 | `(("python-setuptools" ,python-setuptools) | |
5228 | ("python-nose" ,python-nose))) | |
5229 | (arguments | |
5230 | `(#:phases | |
5231 | (modify-phases %standard-phases | |
5232 | (replace 'check | |
5233 | (lambda _ | |
5234 | (zero? (system* "nosetests"))))))) | |
5235 | (home-page "https://github.com/pexpect/ptyprocess") | |
5236 | (synopsis "Run a subprocess in a pseudo terminal") | |
5237 | (description | |
5238 | "This package provides a Python library used to launch a subprocess in a | |
5239 | pseudo terminal (pty), and interact with both the process and its pty.") | |
5240 | (license isc))) | |
5241 | ||
5242 | (define-public python2-ptyprocess | |
5243 | (package-with-python2 python-ptyprocess)) | |
4aadb1df FB |
5244 | |
5245 | (define-public python-terminado | |
5246 | (package | |
5247 | (name "python-terminado") | |
5248 | (version "0.5") | |
5249 | (source | |
5250 | (origin | |
5251 | (method url-fetch) | |
5252 | (uri (string-append | |
5253 | "https://pypi.python.org/packages/source/t/terminado/terminado-" | |
5254 | version ".tar.gz")) | |
5255 | (sha256 | |
5256 | (base32 | |
5257 | "1dkmp1n8dj5v1jl9mfrq8lwyc7dsfrvcmz2bgkpg315sy7pr7s33")))) | |
5258 | (build-system python-build-system) | |
5259 | (propagated-inputs | |
5260 | `(("python-tornado" ,python-tornado) | |
5261 | ("python-ptyprocess" ,python-ptyprocess))) | |
5262 | (inputs | |
5263 | `(("python-setuptools" ,python-setuptools) | |
5264 | ("python-nose" ,python-nose))) | |
5265 | (arguments | |
5266 | `(#:phases | |
5267 | (modify-phases %standard-phases | |
5268 | (replace 'check | |
5269 | (lambda _ | |
5270 | (zero? (system* "nosetests"))))))) | |
5271 | (home-page "https://github.com/takluyver/terminado") | |
5272 | (synopsis "Terminals served to term.js using Tornado websockets") | |
5273 | (description "This package provides a Tornado websocket backend for the | |
5274 | term.js Javascript terminal emulator library.") | |
5275 | (license bsd-2))) | |
5276 | ||
5277 | (define-public python2-terminado | |
5278 | (let ((terminado (package-with-python2 python-terminado))) | |
5279 | (package (inherit terminado) | |
5280 | (propagated-inputs | |
5281 | `(("python2-tornado" ,python2-tornado) | |
5282 | ("python2-backport-ssl-match-hostname" | |
5283 | ,python2-backport-ssl-match-hostname) | |
5284 | ,@(alist-delete "python-tornado" | |
5285 | (package-propagated-inputs terminado))))))) | |
5faa5ce4 | 5286 | |
d582eaac SB |
5287 | (define-public python-fonttools |
5288 | (package | |
5289 | (name "python-fonttools") | |
5290 | (version "2.5") | |
5291 | (source (origin | |
5292 | (method url-fetch) | |
5293 | (uri (string-append | |
5294 | "https://pypi.python.org/packages/source/F/FontTools/" | |
5295 | "fonttools-" version ".tar.gz")) | |
5296 | (sha256 | |
5297 | (base32 | |
5298 | "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) | |
5299 | (build-system python-build-system) | |
5300 | (arguments '(#:test-target "check")) | |
5301 | (propagated-inputs | |
5302 | ;; XXX: module not found if setuptools is not available. | |
5303 | `(("python-setuptools" ,python-setuptools))) | |
5304 | (home-page "http://github.com/behdad/fonttools") | |
5305 | (synopsis "Tools to manipulate font files") | |
5306 | (description | |
5307 | "FontTools/TTX is a library to manipulate font files from Python. It | |
5308 | supports reading and writinfg of TrueType/OpenType fonts, reading and writing | |
5309 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package | |
5310 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and | |
5311 | from an XML-based format.") | |
5312 | (license (non-copyleft "file://LICENSE.txt" | |
5313 | "See LICENSE.txt in the distribution.")))) | |
5314 | ||
5315 | (define-public python2-fonttools | |
5316 | (package-with-python2 python-fonttools)) | |
75710da6 | 5317 | |
5faa5ce4 RW |
5318 | (define-public python-ly |
5319 | (package | |
5320 | (name "python-ly") | |
5321 | (version "0.9.2") | |
5322 | (source | |
5323 | (origin | |
5324 | (method url-fetch) | |
5325 | (uri (string-append | |
5326 | "https://pypi.python.org/packages/source/p/python-ly/python-ly-" | |
5327 | version ".tar.gz")) | |
5328 | (sha256 | |
5329 | (base32 | |
5330 | "1bsjg4q9ihr8bfdclrcmb8yjcg8xm9dznh58f3zsyrkrjzwbhcd2")))) | |
5331 | (build-system python-build-system) | |
5332 | (native-inputs | |
5333 | `(("python-setuptools" ,python-setuptools))) | |
5334 | (synopsis "Tool and library for manipulating LilyPond files") | |
5335 | (description "This package provides a Python library to parse, manipulate | |
5336 | or create documents in LilyPond format. A command line program ly is also | |
5337 | provided that can be used to do various manipulations with LilyPond files.") | |
5338 | (home-page "https://pypi.python.org/pypi/python-ly") | |
5339 | (license gpl2+))) | |
7e7b27d9 CR |
5340 | |
5341 | (define-public python-appdirs | |
5342 | (package | |
5343 | (name "python-appdirs") | |
5344 | (version "1.4.0") | |
5345 | (source | |
5346 | (origin | |
5347 | (method url-fetch) | |
5348 | (uri (string-append | |
5349 | "https://pypi.python.org/packages/source/a/appdirs/appdirs-" | |
5350 | version | |
5351 | ".tar.gz")) | |
5352 | (sha256 | |
5353 | (base32 | |
5354 | "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg")))) | |
5355 | (build-system python-build-system) | |
5356 | (inputs | |
5357 | `(("python-setuptools" ,python-setuptools))) | |
5358 | (home-page "http://github.com/ActiveState/appdirs") | |
5359 | (synopsis | |
5360 | "Determine platform-specific dirs, e.g. a \"user data dir\"") | |
5361 | (description | |
5362 | "This module provides a portable way of finding out where user data | |
5363 | should be stored on various operating systems.") | |
5364 | (license license:expat))) | |
5365 | ||
5366 | (define-public python2-appdirs | |
5367 | (package-with-python2 python-appdirs)) | |
89b2e0b0 LF |
5368 | |
5369 | (define-public python-llfuse | |
5370 | (package | |
5371 | (name "python-llfuse") | |
5372 | (version "0.41") | |
5373 | (source (origin | |
5374 | (method url-fetch) | |
5375 | (uri (string-append | |
5376 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
5377 | "llfuse-" version ".tar.bz2")) | |
5378 | (sha256 | |
5379 | (base32 | |
5380 | "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb")))) | |
5381 | (build-system python-build-system) | |
5382 | (inputs | |
5383 | `(("fuse" ,fuse) | |
5384 | ("attr" ,attr))) | |
5385 | (native-inputs | |
5386 | `(("pkg-config" ,pkg-config) | |
5387 | ("python-setuptools" ,python-setuptools))) | |
5388 | (synopsis "Python bindings for FUSE") | |
5389 | (description | |
5390 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") | |
5391 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") | |
5392 | ;; Python-LLFUSE includes underscore.js, which is MIT (expat) licensed. | |
5393 | ;; The rest of the package is licensed under LGPL2.0 or later. | |
5394 | (license (list license:expat lgpl2.0+)))) | |
5395 | ||
5396 | (define-public python2-llfuse | |
5397 | (package-with-python2 python-llfuse)) | |
641c9871 LF |
5398 | |
5399 | (define-public python-msgpack | |
5400 | (package | |
5401 | (name "python-msgpack") | |
5402 | (version "0.4.6") | |
5403 | (source (origin | |
5404 | (method url-fetch) | |
5405 | (uri (string-append | |
5406 | "https://pypi.python.org/packages/source/m/" | |
5407 | "msgpack-python/msgpack-python-" version ".tar.gz")) | |
5408 | (sha256 | |
5409 | (base32 | |
5410 | "1527c76b6fn4zzkgfq5xvhh7x9a9686g7fjiz717rw5vklf5ik5z")))) | |
5411 | (build-system python-build-system) | |
5412 | (native-inputs | |
5413 | `(("python-setuptools" ,python-setuptools))) | |
5414 | (synopsis "MessagePack (de)serializer") | |
5415 | (description "MessagePack is a fast, compact binary serialization format, | |
5416 | suitable for similar data to JSON. This package provides CPython bindings for | |
5417 | reading and writing MessagePack data.") | |
5418 | (home-page "https://pypi.python.org/pypi/msgpack-python/") | |
5419 | (license asl2.0))) | |
5420 | ||
5421 | (define-public python2-msgpack | |
5422 | (package-with-python2 python-msgpack)) | |
6e5e39f4 CR |
5423 | |
5424 | (define-public python-netaddr | |
5425 | (package | |
5426 | (name "python-netaddr") | |
5427 | (version "0.7.18") | |
5428 | (source | |
5429 | (origin | |
5430 | (method url-fetch) | |
5431 | (uri (string-append | |
5432 | "https://pypi.python.org/packages/source/n/netaddr/netaddr-" | |
5433 | version | |
5434 | ".tar.gz")) | |
5435 | (sha256 | |
5436 | (base32 | |
5437 | "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) | |
5438 | (build-system python-build-system) | |
5439 | (arguments `(#:tests? #f)) ;; No tests. | |
5440 | (inputs | |
5441 | `(("python-setuptools" ,python-setuptools))) | |
5442 | (home-page "https://github.com/drkjam/netaddr/") | |
5443 | (synopsis "Pythonic manipulation of network addresses") | |
5444 | (description | |
5445 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI | |
5446 | and MAC network addresses.") | |
5447 | (license bsd-3))) | |
5448 | ||
5449 | (define-public python2-netaddr | |
5450 | (package-with-python2 python-netaddr)) | |
8c692a52 CR |
5451 | |
5452 | (define-public python-wrapt | |
5453 | (package | |
5454 | (name "python-wrapt") | |
5455 | (version "1.10.5") | |
5456 | (source | |
5457 | (origin | |
5458 | (method url-fetch) | |
5459 | (uri (string-append | |
5460 | "https://pypi.python.org/packages/source/w/wrapt/wrapt-" | |
5461 | version | |
5462 | ".tar.gz")) | |
5463 | (sha256 | |
5464 | (base32 | |
5465 | "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) | |
5466 | (build-system python-build-system) | |
5467 | (arguments | |
5468 | ;; Tests are not included in the tarball, they are only available in the | |
5469 | ;; git repository. | |
5470 | `(#:tests? #f)) | |
5471 | (inputs | |
5472 | `(("python-setuptools" ,python-setuptools))) | |
5473 | (home-page "https://github.com/GrahamDumpleton/wrapt") | |
5474 | (synopsis "Module for decorators, wrappers and monkey patching") | |
5475 | (description | |
5476 | "The aim of the wrapt module is to provide a transparent object proxy for | |
5477 | Python, which can be used as the basis for the construction of function | |
5478 | wrappers and decorator functions.") | |
5479 | (license bsd-2))) | |
5480 | ||
5481 | (define-public python2-wrapt | |
5482 | (package-with-python2 python-wrapt)) | |
b85c85be CR |
5483 | |
5484 | (define-public python-iso8601 | |
5485 | (package | |
5486 | (name "python-iso8601") | |
5487 | (version "0.1.10") | |
5488 | (source | |
5489 | (origin | |
5490 | (method url-fetch) | |
5491 | (uri (string-append | |
5492 | "https://pypi.python.org/packages/source/i/iso8601/iso8601-" | |
5493 | version | |
5494 | ".tar.gz")) | |
5495 | (sha256 | |
5496 | (base32 | |
5497 | "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7")))) | |
5498 | (build-system python-build-system) | |
5499 | (inputs | |
5500 | `(("python-setuptools" ,python-setuptools))) | |
5501 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") | |
5502 | (synopsis "Module to parse ISO 8601 dates") | |
5503 | (description | |
5504 | "This module parses the most common forms of ISO 8601 date strings (e.g. | |
5505 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") | |
5506 | (license license:expat))) | |
5507 | ||
5508 | (define-public python2-iso8601 | |
5509 | (package-with-python2 python-iso8601)) | |
5e412b63 CR |
5510 | |
5511 | (define-public python-monotonic | |
5512 | (package | |
5513 | (name "python-monotonic") | |
5514 | (version "0.3") | |
5515 | (source | |
5516 | (origin | |
5517 | (method url-fetch) | |
5518 | (uri (string-append | |
5519 | "https://pypi.python.org/packages/source/m/monotonic/monotonic-" | |
5520 | version | |
5521 | ".tar.gz")) | |
5522 | (sha256 | |
5523 | (base32 | |
5524 | "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) | |
5525 | (build-system python-build-system) | |
5526 | (inputs | |
5527 | `(("python-setuptools" ,python-setuptools))) | |
5528 | (home-page "https://github.com/atdt/monotonic") | |
5529 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") | |
5530 | (description | |
5531 | "This module provides a monotonic() function which returns the value (in | |
5532 | fractional seconds) of a clock which never goes backwards.") | |
5533 | (license asl2.0))) | |
5534 | ||
5535 | (define-public python2-monotonic | |
5536 | (package-with-python2 python-monotonic)) | |
de34afac CR |
5537 | |
5538 | (define-public python-webob | |
5539 | (package | |
5540 | (name "python-webob") | |
b8834c21 | 5541 | (version "1.5.1") |
de34afac CR |
5542 | (source |
5543 | (origin | |
5544 | (method url-fetch) | |
b8834c21 | 5545 | (uri (pypi-uri "WebOb" version)) |
de34afac CR |
5546 | (sha256 |
5547 | (base32 | |
b8834c21 | 5548 | "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) |
de34afac CR |
5549 | (build-system python-build-system) |
5550 | (inputs | |
5551 | `(("python-nose" ,python-nose) | |
5552 | ("python-setuptools" ,python-setuptools))) | |
5553 | (home-page "http://webob.org/") | |
5554 | (synopsis "WSGI request and response object") | |
5555 | (description | |
5556 | "WebOb provides wrappers around the WSGI request environment, and an | |
5557 | object to help create WSGI responses.") | |
5558 | (license license:expat))) | |
5559 | ||
5560 | (define-public python2-webob | |
5561 | (package-with-python2 python-webob)) | |
350ba0a3 | 5562 | |
02a8a187 BW |
5563 | (define-public python-xlrd |
5564 | (package | |
5565 | (name "python-xlrd") | |
5566 | (version "0.9.4") | |
5567 | (source (origin | |
5568 | (method url-fetch) | |
5569 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
5570 | "xlrd/xlrd-" version ".tar.gz")) | |
5571 | (sha256 | |
5572 | (base32 | |
5573 | "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf")))) | |
5574 | (build-system python-build-system) | |
5575 | (arguments | |
5576 | `(#:phases | |
5577 | (modify-phases %standard-phases | |
5578 | ;; Current test in setup.py does not work as of 0.9.4, so use nose to | |
5579 | ;; run tests instead for now. | |
5580 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
5581 | (native-inputs `(("python-nose" ,python-nose) | |
5582 | ("python-setuptools" ,python-setuptools))) | |
5583 | (home-page "http://www.python-excel.org/") | |
5584 | (synopsis "Library for extracting data from Excel files") | |
5585 | (description "This packages provides a library to extract data from | |
5586 | spreadsheets using Microsoft Excel® proprietary file formats @samp{.xls} and | |
5587 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is | |
5588 | Unicode-aware. It is not intended as an end-user tool.") | |
5589 | (license bsd-3))) | |
5590 | ||
5591 | (define-public python2-xlrd | |
5592 | (package-with-python2 python-xlrd)) | |
5593 | ||
350ba0a3 CR |
5594 | (define-public python-prettytable |
5595 | (package | |
5596 | (name "python-prettytable") | |
5597 | (version "0.7.2") | |
5598 | (source | |
5599 | (origin | |
5600 | (method url-fetch) | |
5601 | (uri (string-append | |
5602 | "https://pypi.python.org/packages/source/P/PrettyTable/" | |
5603 | "prettytable-" version ".tar.bz2")) | |
5604 | (sha256 | |
5605 | (base32 | |
5606 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) | |
5607 | (build-system python-build-system) | |
5608 | (inputs | |
5609 | `(("python-setuptools" ,python-setuptools))) | |
5610 | (home-page "http://code.google.com/p/prettytable/") | |
5611 | (synopsis "Display tabular data in an ASCII table format") | |
5612 | (description | |
5613 | "A library designed to represent tabular data in visually appealing ASCII | |
5614 | tables. PrettyTable allows for selection of which columns are to be printed, | |
5615 | independent alignment of columns (left or right justified or centred) and | |
5616 | printing of sub-tables by specifying a row range.") | |
5617 | (license bsd-3))) | |
5618 | ||
5619 | (define-public python2-prettytable | |
5620 | (package-with-python2 python-prettytable)) | |
7a8ac75a RW |
5621 | |
5622 | (define-public python-pyasn1 | |
5623 | (package | |
5624 | (name "python-pyasn1") | |
5625 | (version "0.1.8") | |
5626 | (source | |
5627 | (origin | |
5628 | (method url-fetch) | |
5629 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
5630 | "pyasn1/pyasn1-" version ".tar.gz")) | |
5631 | (sha256 | |
5632 | (base32 | |
5633 | "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx")))) | |
5634 | (build-system python-build-system) | |
5635 | (home-page "http://pyasn1.sourceforge.net/") | |
5636 | (synopsis "ASN.1 types and codecs") | |
5637 | (description | |
5638 | "This is an implementation of ASN.1 types and codecs in Python. It is | |
5639 | suitable for a wide range of protocols based on the ASN.1 specification.") | |
5640 | (license bsd-2))) | |
5641 | ||
5642 | (define-public python2-pyasn1 | |
5643 | (package-with-python2 python-pyasn1)) | |
9a49a535 RW |
5644 | |
5645 | (define-public python2-ipaddress | |
5646 | (package | |
5647 | (name "python2-ipaddress") | |
5648 | (version "1.0.14") | |
5649 | (source | |
5650 | (origin | |
5651 | (method url-fetch) | |
5652 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
5653 | "ipaddress/ipaddress-" version ".tar.gz")) | |
5654 | (sha256 | |
5655 | (base32 | |
5656 | "0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2")))) | |
5657 | (build-system python-build-system) | |
5658 | (arguments | |
5659 | `(#:tests? #f ; no tests | |
5660 | #:python ,python-2)) | |
5661 | (home-page "https://github.com/phihag/ipaddress") | |
5662 | (synopsis "IP address manipulation library") | |
5663 | (description | |
5664 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library | |
5665 | in Python. This library is used to create, poke at, and manipulate IPv4 and | |
5666 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress | |
5667 | module to older versions of Python.") | |
5668 | (license psfl))) | |
3f00e078 RW |
5669 | |
5670 | (define-public python-idna | |
5671 | (package | |
5672 | (name "python-idna") | |
5673 | (version "2.0") | |
5674 | (source | |
5675 | (origin | |
5676 | (method url-fetch) | |
5677 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
5678 | "idna/idna-" version ".tar.gz")) | |
5679 | (sha256 | |
5680 | (base32 | |
5681 | "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n")))) | |
5682 | (build-system python-build-system) | |
5683 | (native-inputs | |
5684 | `(("python-setuptools" ,python-setuptools))) | |
5685 | (home-page "https://github.com/kjd/idna") | |
5686 | (synopsis "Internationalized domain names in applications") | |
5687 | (description | |
5688 | "This is a library to support the Internationalised Domain Names in | |
5689 | Applications (IDNA) protocol as specified in RFC 5891. This version of the | |
5690 | protocol is often referred to as “IDNA2008” and can produce different results | |
5691 | from the earlier standard from 2003. The library is also intended to act as a | |
5692 | suitable drop-in replacement for the “encodings.idna” module that comes with | |
5693 | the Python standard library but currently only supports the older 2003 | |
5694 | specification.") | |
5695 | (license bsd-4))) | |
5696 | ||
5697 | (define-public python2-idna | |
5698 | (package-with-python2 python-idna)) | |
36ebf972 RW |
5699 | |
5700 | (define-public python-pretend | |
5701 | (package | |
5702 | (name "python-pretend") | |
5703 | (version "1.0.8") | |
5704 | (source | |
5705 | (origin | |
5706 | (method url-fetch) | |
5707 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
5708 | "pretend/pretend-" version ".tar.gz")) | |
5709 | (sha256 | |
5710 | (base32 | |
5711 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) | |
5712 | (build-system python-build-system) | |
5713 | (native-inputs | |
5714 | `(("python-setuptools" ,python-setuptools))) | |
5715 | (home-page "https://github.com/alex/pretend") | |
5716 | (synopsis "Library for stubbing in Python") | |
5717 | (description | |
5718 | "Pretend is a library to make stubbing with Python easier. Stubbing is a | |
5719 | technique for writing tests. You may hear the term mixed up with mocks, | |
5720 | fakes, or doubles. Basically, a stub is an object that returns pre-canned | |
5721 | responses, rather than doing any computation.") | |
5722 | (license bsd-3))) | |
5723 | ||
5724 | (define-public python2-pretend | |
5725 | (package-with-python2 python-pretend)) | |
aa759a51 RW |
5726 | |
5727 | (define-public python-cryptography-vectors | |
5728 | (package | |
5729 | (name "python-cryptography-vectors") | |
3698a775 | 5730 | (version "1.0.2") |
aa759a51 RW |
5731 | (source |
5732 | (origin | |
5733 | (method url-fetch) | |
5734 | (uri (string-append "https://pypi.python.org/packages/source/c/" | |
5735 | "cryptography-vectors/cryptography_vectors-" | |
5736 | version ".tar.gz")) | |
5737 | (sha256 | |
5738 | (base32 | |
3698a775 | 5739 | "0dx98kcypmarwwhi6rjwy30ridys2ja6mc6mjf0svd4nllkaljdq")))) |
aa759a51 RW |
5740 | (build-system python-build-system) |
5741 | (native-inputs | |
5742 | `(("python-setuptools" ,python-setuptools))) | |
5743 | (home-page "https://github.com/pyca/cryptography") | |
5744 | (synopsis "Test vectors for the cryptography package.") | |
5745 | (description | |
5746 | "This package contains test vectors for the cryptography package.") | |
5747 | ;; Distributed under either BSD-3 or ASL2.0 | |
5748 | (license (list bsd-3 asl2.0)))) | |
5749 | ||
5750 | (define-public python2-cryptography-vectors | |
5751 | (package-with-python2 python-cryptography-vectors)) | |
88b47cb0 RW |
5752 | |
5753 | (define-public python-cryptography | |
5754 | (package | |
5755 | (name "python-cryptography") | |
7f51b663 | 5756 | (version "1.0.2") |
88b47cb0 RW |
5757 | (source |
5758 | (origin | |
5759 | (method url-fetch) | |
5760 | (uri (string-append "https://pypi.python.org/packages/source/c/" | |
5761 | "cryptography/cryptography-" version ".tar.gz")) | |
5762 | (sha256 | |
5763 | (base32 | |
7f51b663 | 5764 | "1jmcidddbbgdavvnvjjc0pda4b9a5i9idsivchn69pqxx68x8k6n")))) |
88b47cb0 RW |
5765 | (build-system python-build-system) |
5766 | (inputs | |
5767 | `(("openssl" ,openssl))) | |
5768 | (propagated-inputs | |
5769 | `(("python-cffi" ,python-cffi) | |
5770 | ("python-six" ,python-six) | |
5771 | ("python-pyasn1" ,python-pyasn1) | |
5772 | ("python-enum34" ,python-enum34) | |
5773 | ("python-idna" ,python-idna) | |
5774 | ("python-iso8601" ,python-iso8601))) | |
5775 | (native-inputs | |
5776 | `(("python-cryptography-vectors" ,python-cryptography-vectors) | |
5777 | ("python-setuptools" ,python-setuptools) | |
5778 | ("python-pretend" ,python-pretend) | |
5779 | ("python-pytest" ,python-pytest))) | |
5780 | (home-page "https://github.com/pyca/cryptography") | |
5781 | (synopsis "Cryptographic recipes and primitives for Python") | |
5782 | (description | |
5783 | "cryptography is a package which provides cryptographic recipes and | |
5784 | primitives to Python developers. It aims to be the “cryptographic standard | |
5785 | library” for Python. The package includes both high level recipes, and low | |
5786 | level interfaces to common cryptographic algorithms such as symmetric ciphers, | |
5787 | message digests and key derivation functions.") | |
5788 | ;; Distributed under either BSD-3 or ASL2.0 | |
5789 | (license (list bsd-3 asl2.0)))) | |
5790 | ||
5791 | (define-public python2-cryptography | |
5792 | (let ((crypto (package-with-python2 python-cryptography))) | |
5793 | (package (inherit crypto) | |
5794 | (propagated-inputs | |
5795 | `(("python2-ipaddress" ,python2-ipaddress) | |
5796 | ,@(package-propagated-inputs crypto)))))) | |
5af999b8 RW |
5797 | |
5798 | (define-public python-pyopenssl | |
5799 | (package | |
5800 | (name "python-pyopenssl") | |
5801 | (version "0.15.1") | |
5802 | (source | |
5803 | (origin | |
5804 | (method url-fetch) | |
5805 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
5806 | "pyOpenSSL/pyOpenSSL-" version ".tar.gz")) | |
5807 | (sha256 | |
5808 | (base32 | |
5809 | "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph")))) | |
5810 | (build-system python-build-system) | |
5811 | (arguments | |
5812 | `(#:phases | |
5813 | (modify-phases %standard-phases | |
5814 | (add-after 'unpack 'fix-tests | |
5815 | (lambda* (#:key inputs #:allow-other-keys) | |
5816 | (substitute* "OpenSSL/test/test_ssl.py" | |
5817 | (("client\\.connect\\(\\('verisign\\.com', 443\\)\\)") | |
5818 | "return True") | |
5819 | ;; FIXME: disable broken test | |
5820 | (("test_set_tmp_ecdh") "disabled__set_tmp_ecdh")) | |
5821 | (substitute* "OpenSSL/test/test_crypto.py" | |
5822 | (("command = b\"openssl \"") | |
5823 | (string-append "command = b\"" | |
5824 | (assoc-ref inputs "openssl") | |
5825 | "/bin/openssl" " \"")) | |
5826 | ;; FIXME: disable four broken tests | |
5827 | (("test_der") "disabled__der") | |
5828 | (("test_digest") "disabled__digest") | |
5829 | (("test_get_extension") "disabled__get_extension") | |
5830 | (("test_extension_count") "disabled__extension_count")) | |
5831 | #t))))) | |
5832 | (propagated-inputs | |
5833 | `(("python-cryptography" ,python-cryptography) | |
5834 | ("python-six" ,python-six))) | |
5835 | (inputs | |
5836 | `(("openssl" ,openssl))) | |
5837 | (native-inputs | |
5838 | `(("python-setuptools" ,python-setuptools))) | |
5839 | (home-page "https://github.com/pyca/pyopenssl") | |
5840 | (synopsis "Python wrapper module around the OpenSSL library") | |
5841 | (description | |
5842 | "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL | |
5843 | library.") | |
5844 | (license asl2.0))) | |
5845 | ||
5846 | (define-public python2-pyopenssl | |
5847 | (let ((pyopenssl (package-with-python2 python-pyopenssl))) | |
5848 | (package (inherit pyopenssl) | |
5849 | (propagated-inputs | |
5850 | `(("python2-cryptography" ,python2-cryptography) | |
5851 | ,@(alist-delete "python-cryptography" | |
5852 | (package-propagated-inputs pyopenssl))))))) | |
643725a1 CR |
5853 | |
5854 | (define-public python-pip | |
5855 | (package | |
5856 | (name "python-pip") | |
5857 | (version "7.1.2") | |
5858 | (source | |
5859 | (origin | |
5860 | (method url-fetch) | |
5861 | (uri (string-append | |
5862 | "https://pypi.python.org/packages/source/p/pip/pip-" | |
5863 | version ".tar.gz")) | |
5864 | (sha256 | |
5865 | (base32 | |
5866 | "0xx4aypfgchxdknxq7gyqghd8wb221zrzyqlbabzm32jy237j16a")))) | |
5867 | (build-system python-build-system) | |
5868 | (inputs | |
5869 | `(("python-setuptools" ,python-setuptools) | |
5870 | ("python-virtualenv" ,python-virtualenv) | |
5871 | ;; Tests | |
5872 | ("python-mock" ,python-mock) | |
5873 | ("python-pytest" ,python-pytest) | |
5874 | ("python-scripttest" ,python-scripttest))) | |
5875 | (home-page "https://pip.pypa.io/") | |
5876 | (synopsis | |
5877 | "Package manager for Python software") | |
5878 | (description | |
5879 | "Pip is a package manager for Python software, that finds packages on the | |
5880 | Python Package Index (PyPI).") | |
5881 | (license license:expat))) | |
5882 | ||
5883 | (define-public python2-pip | |
5884 | (package-with-python2 python-pip)) | |
d8c4998f LC |
5885 | |
5886 | (define-public python-tlsh | |
5887 | (package | |
5888 | (name "python-tlsh") | |
99b00dc7 | 5889 | (version "3.4.4") |
d8c4998f LC |
5890 | (home-page "https://github.com/trendmicro/tlsh") |
5891 | (source (origin | |
99b00dc7 EF |
5892 | (method url-fetch) |
5893 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" | |
5894 | version ".tar.gz")) | |
d8c4998f LC |
5895 | (sha256 |
5896 | (base32 | |
99b00dc7 EF |
5897 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
5898 | (file-name (string-append name "-" version ".tar.gz")))) | |
d8c4998f LC |
5899 | (build-system cmake-build-system) |
5900 | (arguments | |
5901 | '(#:out-of-source? #f | |
5902 | #:phases (modify-phases %standard-phases | |
5903 | (replace | |
5904 | 'install | |
5905 | (lambda* (#:key outputs #:allow-other-keys) | |
5906 | ;; Build and install the Python bindings. The underlying | |
5907 | ;; C++ library is apparently not meant to be installed. | |
5908 | (let ((out (assoc-ref outputs "out"))) | |
5909 | (with-directory-excursion "py_ext" | |
5910 | (and (system* "python" "setup.py" "build") | |
5911 | (system* "python" "setup.py" "install" | |
5912 | (string-append "--prefix=" out)))))))))) | |
5913 | (inputs `(("python" ,python-wrapper))) ;for the bindings | |
5914 | (synopsis "Fuzzy matching library for Python") | |
5915 | (description | |
5916 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. | |
5917 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash | |
5918 | value which can be used for similarity comparisons. Similar objects have | |
5919 | similar hash values, which allows for the detection of similar objects by | |
5920 | comparing their hash values. The byte stream should have a sufficient amount | |
5921 | of complexity; for example, a byte stream of identical bytes will not generate | |
5922 | a hash value.") | |
5923 | (license asl2.0))) | |
5924 | ||
5925 | (define-public python2-tlsh | |
5926 | (package | |
5927 | (inherit python-tlsh) | |
5928 | (name "python2-tlsh") | |
5929 | (inputs `(("python" ,python-2))))) | |
d96034ed LC |
5930 | |
5931 | (define-public python-libarchive-c | |
5932 | (package | |
5933 | (name "python-libarchive-c") | |
03fd001c | 5934 | (version "2.2") |
d96034ed LC |
5935 | (source (origin |
5936 | (method url-fetch) | |
03fd001c | 5937 | (uri (pypi-uri "libarchive-c" version)) |
d96034ed LC |
5938 | (sha256 |
5939 | (base32 | |
03fd001c | 5940 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
d96034ed LC |
5941 | (build-system python-build-system) |
5942 | (arguments | |
5943 | '(#:phases (modify-phases %standard-phases | |
5944 | (add-before | |
5945 | 'build 'reference-libarchive | |
5946 | (lambda* (#:key inputs #:allow-other-keys) | |
5947 | ;; Retain the absolute file name of libarchive.so. | |
5948 | (let ((libarchive (assoc-ref inputs "libarchive"))) | |
5949 | (substitute* "libarchive/ffi.py" | |
5950 | (("find_library\\('archive'\\)") | |
5951 | (string-append "'" libarchive | |
5952 | "/lib/libarchive.so'")))) | |
5953 | ||
5954 | ;; Do not make a compressed egg (see | |
5955 | ;; <http://bugs.gnu.org/20765>). | |
5956 | (let ((port (open-file "setup.cfg" "a"))) | |
5957 | (display "\n[easy_install]\nzip_ok = 0\n" | |
5958 | port) | |
5959 | (close-port port) | |
5960 | #t)))))) | |
5961 | (inputs | |
5962 | `(("python-setuptools" ,python-setuptools) | |
5963 | ("libarchive" ,libarchive))) | |
5964 | (home-page "https://github.com/Changaco/python-libarchive-c") | |
5965 | (synopsis "Python interface to libarchive") | |
5966 | (description | |
5967 | "This package provides Python bindings to libarchive, a C library to | |
5968 | access possibly compressed archives in many different formats. It uses | |
5969 | Python's @code{ctypes} foreign function interface (FFI).") | |
5970 | (license lgpl2.0+))) | |
5971 | ||
5972 | (define-public python2-libarchive-c | |
5973 | (package-with-python2 python-libarchive-c)) | |
5e1c9367 LC |
5974 | |
5975 | (define-public python-file | |
5976 | (package | |
5977 | (inherit file) | |
5978 | (name "python-file") | |
5979 | (build-system python-build-system) | |
5980 | (arguments | |
5981 | '(#:tests? #f ;no tests | |
5982 | #:phases (modify-phases %standard-phases | |
5983 | (add-before 'build 'change-directory | |
5984 | (lambda _ | |
5985 | (chdir "python") | |
5986 | #t)) | |
5987 | (add-before 'build 'set-library-file-name | |
5988 | (lambda* (#:key inputs #:allow-other-keys) | |
5989 | (let ((file (assoc-ref inputs "file"))) | |
5990 | (substitute* "magic.py" | |
5991 | (("find_library\\('magic'\\)") | |
5992 | (string-append "'" file "/lib/libmagic.so'"))) | |
5993 | #t)))))) | |
5994 | (inputs `(("file" ,file))) | |
5995 | (self-native-input? #f) | |
5996 | (synopsis "Python bindings to the libmagic file type guesser"))) | |
5997 | ||
5998 | (define-public python2-file | |
5999 | (package-with-python2 python-file)) | |
85d4aeac LC |
6000 | |
6001 | (define-public python-debian | |
6002 | (package | |
6003 | (name "python-debian") | |
6004 | (version "0.1.23") | |
6005 | (source | |
6006 | (origin | |
6007 | (method url-fetch) | |
6008 | (uri (string-append | |
6009 | "https://pypi.python.org/packages/source/p/python-debian/python-debian-" | |
6010 | version ".tar.gz")) | |
6011 | (sha256 | |
6012 | (base32 | |
6013 | "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh")))) | |
6014 | (build-system python-build-system) | |
6015 | (inputs | |
6016 | `(("python-six" ,python-six))) | |
6017 | (native-inputs | |
6018 | `(("python-setuptools" ,python-setuptools))) | |
6019 | (home-page "http://packages.debian.org/sid/python-debian") | |
6020 | (synopsis "Debian package related modules") | |
6021 | (description | |
5c7bdc9a LC |
6022 | ;; XXX: Use @enumerate instead of @itemize to work around |
6023 | ;; <http://bugs.gnu.org/21772>. | |
85d4aeac LC |
6024 | "This package provides Python modules that abstract many formats of |
6025 | Debian-related files, such as: | |
6026 | ||
5c7bdc9a | 6027 | @enumerate |
85d4aeac LC |
6028 | @item Debtags information; |
6029 | @item @file{debian/changelog} files; | |
6030 | @item packages files, pdiffs; | |
6031 | @item control files of single or multiple RFC822-style paragraphs---e.g. | |
6032 | @file{debian/control}, @file{.changes}, @file{.dsc}; | |
6033 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to | |
6034 | contained files and meta-information. | |
5c7bdc9a | 6035 | @end enumerate\n") |
85d4aeac LC |
6036 | |
6037 | ;; Modules are either GPLv2+ or GPLv3+. | |
6038 | (license gpl3+))) | |
6039 | ||
6040 | (define-public python2-debian | |
6041 | (package-with-python2 python-debian)) | |
816a6538 LC |
6042 | |
6043 | (define-public python-chardet | |
6044 | (package | |
6045 | (name "python-chardet") | |
6046 | (version "2.3.0") | |
6047 | (source | |
6048 | (origin | |
6049 | (method url-fetch) | |
6050 | (uri (string-append | |
6051 | "https://pypi.python.org/packages/source/c/chardet/chardet-" | |
6052 | version | |
6053 | ".tar.gz")) | |
6054 | (sha256 | |
6055 | (base32 | |
6056 | "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5")))) | |
6057 | (build-system python-build-system) | |
6058 | (native-inputs | |
6059 | `(("python-setuptools" ,python-setuptools))) | |
6060 | (home-page "https://github.com/chardet/chardet") | |
6061 | (synopsis "Universal encoding detector for Python 2 and 3") | |
6062 | (description | |
6063 | "This package provides @code{chardet}, a Python module that can | |
6064 | automatically detect a wide range of file encodings.") | |
6065 | (license lgpl2.1+))) | |
6066 | ||
6067 | (define-public python2-chardet | |
6068 | (package-with-python2 python-chardet)) | |
2fc5f186 | 6069 | |
1872f1bb KM |
6070 | (define-public python-docopt |
6071 | (package | |
6072 | (name "python-docopt") | |
6073 | (version "0.6.2") | |
6074 | (source | |
6075 | (origin | |
6076 | (method url-fetch) | |
6077 | ;; The release on PyPI does not include tests. | |
6078 | (uri (string-append | |
6079 | "https://github.com/docopt/docopt/archive/" | |
6080 | version ".tar.gz")) | |
6081 | (file-name (string-append name "-" version ".tar.gz")) | |
6082 | (sha256 | |
6083 | (base32 | |
6084 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) | |
6085 | (build-system python-build-system) | |
6086 | (native-inputs | |
6087 | `(("python-pytest" ,python-pytest) | |
6088 | ("python-setuptools" ,python-setuptools))) | |
6089 | (arguments | |
6090 | `(#:phases (alist-replace | |
6091 | 'check | |
6092 | (lambda _ (zero? (system* "py.test"))) | |
6093 | %standard-phases))) | |
6094 | (home-page "http://docopt.org") | |
6095 | (synopsis "Command-line interface description language for Python") | |
6096 | (description "This library allows the user to define a command-line | |
6097 | interface from a program's help message rather than specifying it | |
6098 | programatically with command-line parsers like @code{getopt} and | |
6099 | @code{argparse}.") | |
6100 | (license license:expat))) | |
6101 | ||
6102 | (define-public python2-docopt | |
6103 | (package-with-python2 python-docopt)) | |
6104 | ||
2fc5f186 LF |
6105 | (define-public python-zope-event |
6106 | (package | |
6107 | (name "python-zope-event") | |
6108 | (version "4.1.0") | |
6109 | (source | |
6110 | (origin | |
6111 | (method url-fetch) | |
6112 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6113 | "/zope.event/zope.event-" version ".tar.gz")) | |
6114 | (sha256 | |
6115 | (base32 | |
6116 | "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) | |
6117 | (build-system python-build-system) | |
6118 | (inputs | |
6119 | `(("python-setuptools" ,python-setuptools))) | |
6120 | (home-page "http://pypi.python.org/pypi/zope.event") | |
6121 | (synopsis "Event publishing system for Python") | |
6122 | (description "Zope.event provides an event publishing API, intended for | |
6123 | use by applications which are unaware of any subscribers to their events. It | |
6124 | is a simple event-dispatching system on which more sophisticated event | |
6125 | dispatching systems can be built.") | |
6126 | (license zpl2.1))) | |
6127 | ||
6128 | (define-public python2-zope-event | |
6129 | (package-with-python2 python-zope-event)) | |
97abe268 LF |
6130 | |
6131 | (define-public python-zope-interface | |
6132 | (package | |
6133 | (name "python-zope-interface") | |
6134 | (version "4.1.3") | |
6135 | (source | |
6136 | (origin | |
6137 | (method url-fetch) | |
6138 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6139 | "/zope.interface/zope.interface-" version ".tar.gz")) | |
6140 | (sha256 | |
6141 | (base32 | |
6142 | "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) | |
6143 | (build-system python-build-system) | |
6144 | (propagated-inputs | |
6145 | `(("python-zope-event" ,python-zope-event))) | |
6146 | (home-page "https://github.com/zopefoundation/zope.interface") | |
6147 | (synopsis "Python implementation of the \"design by contract\" | |
6148 | methodology") | |
6149 | (description "Zope.interface provides an implementation of \"object | |
6150 | interfaces\" for Python. Interfaces are a mechanism for labeling objects as | |
6151 | conforming to a given API or contract.") | |
6152 | (license zpl2.1))) | |
6153 | ||
6154 | (define-public python2-zope-interface | |
6155 | (package-with-python2 python-zope-interface)) | |
81f2373c LF |
6156 | |
6157 | (define-public python-zope-exceptions | |
6158 | (package | |
6159 | (name "python-zope-exceptions") | |
6160 | (version "4.0.8") | |
6161 | (source | |
6162 | (origin | |
6163 | (method url-fetch) | |
6164 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6165 | "/zope.exceptions/zope.exceptions-" | |
6166 | version ".tar.gz")) | |
6167 | (sha256 | |
6168 | (base32 | |
6169 | "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) | |
6170 | (build-system python-build-system) | |
6171 | (arguments | |
6172 | '(#:tests? #f)) ; circular dependency with zope.testrunner | |
6173 | (propagated-inputs | |
6174 | `(("python-zope-interface" ,python-zope-interface))) | |
6175 | (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") | |
6176 | (synopsis "Zope exceptions") | |
6177 | (description "Zope.exceptions provides general-purpose exception types | |
6178 | that have uses outside of the Zope framework.") | |
6179 | (license zpl2.1))) | |
6180 | ||
6181 | (define-public python2-zope-exceptions | |
6182 | (package-with-python2 python-zope-exceptions)) | |
900e3c0e LF |
6183 | |
6184 | (define-public python-zope-testing | |
6185 | (package | |
6186 | (name "python-zope-testing") | |
6187 | (version "4.5.0") | |
6188 | (source | |
6189 | (origin | |
6190 | (method url-fetch) | |
6191 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6192 | "/zope.testing/zope.testing-" version ".tar.gz")) | |
6193 | (sha256 | |
6194 | (base32 | |
6195 | "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")))) | |
6196 | (build-system python-build-system) | |
6197 | (native-inputs | |
6198 | `(("python-zope-exceptions" ,python-zope-exceptions))) | |
6199 | (propagated-inputs | |
6200 | `(("python-zope-interface" ,python-zope-interface))) | |
6201 | (home-page "http://pypi.python.org/pypi/zope.testing") | |
6202 | (synopsis "Zope testing helpers") | |
6203 | (description "Zope.testing provides a number of testing utilities for HTML | |
6204 | forms, HTTP servers, regular expressions, and more.") | |
6205 | (license zpl2.1))) | |
6206 | ||
6207 | (define-public python2-zope-testing | |
6208 | (package-with-python2 python-zope-testing)) | |
01614c4f LF |
6209 | |
6210 | (define-public python-zope-testrunner | |
6211 | (package | |
6212 | (name "python-zope-testrunner") | |
6213 | (version "4.4.9") | |
6214 | (source | |
6215 | (origin | |
6216 | (method url-fetch) | |
6217 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6218 | "/zope.testrunner/zope.testrunner-" | |
6219 | version ".zip")) | |
6220 | (sha256 | |
6221 | (base32 | |
6222 | "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) | |
6223 | (build-system python-build-system) | |
6224 | (native-inputs | |
6225 | `(("python-six" ,python-six) | |
6226 | ("python-zope-exceptions" ,python-zope-exceptions) | |
6227 | ("python-zope-testing" ,python-zope-testing) | |
6228 | ("unzip" ,unzip))) | |
6229 | (propagated-inputs | |
6230 | `(("python-zope-interface" ,python-zope-interface))) | |
6231 | (home-page "http://pypi.python.org/pypi/zope.testrunner") | |
6232 | (synopsis "Zope testrunner script") | |
6233 | (description "Zope.testrunner provides a script for running Python | |
6234 | tests.") | |
6235 | (license zpl2.1))) | |
6236 | ||
6237 | (define-public python2-zope-testrunner | |
6238 | (let ((base (package-with-python2 python-zope-testrunner))) | |
6239 | (package | |
6240 | (inherit base) | |
6241 | (native-inputs | |
6242 | (append (package-native-inputs base) | |
6243 | `(("python2-subunit" ,python2-subunit) | |
6244 | ("python2-mimeparse" ,python2-mimeparse))))))) | |
6a5c710c LF |
6245 | |
6246 | (define-public python-zope-i18nmessageid | |
6247 | (package | |
6248 | (name "python-zope-i18nmessageid") | |
6249 | (version "4.0.3") | |
6250 | (source | |
6251 | (origin | |
6252 | (method url-fetch) | |
6253 | (uri (string-append | |
6254 | "https://pypi.python.org/packages/source/z" | |
6255 | "/zope.i18nmessageid/zope.i18nmessageid-" | |
6256 | version ".tar.gz")) | |
6257 | (sha256 | |
6258 | (base32 | |
6259 | "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) | |
6260 | (build-system python-build-system) | |
6261 | (inputs | |
6262 | `(("python-setuptools" ,python-setuptools))) | |
6263 | (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") | |
6264 | (synopsis "Message identifiers for internationalization") | |
6265 | (description "Zope.i18nmessageid provides facilities for declaring | |
6266 | internationalized messages within program source text.") | |
6267 | (license zpl2.1))) | |
6268 | ||
6269 | (define-public python2-zope-i18nmessageid | |
6270 | (package-with-python2 python-zope-i18nmessageid)) | |
71fb09f3 LF |
6271 | |
6272 | (define-public python-zope-schema | |
6273 | (package | |
6274 | (name "python-zope-schema") | |
6275 | (version "4.4.2") | |
6276 | (source | |
6277 | (origin | |
6278 | (method url-fetch) | |
6279 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6280 | "/zope.schema/zope.schema-" version ".tar.gz")) | |
6281 | (sha256 | |
6282 | (base32 | |
6283 | "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) | |
6284 | (build-system python-build-system) | |
6285 | (propagated-inputs | |
6286 | `(("python-zope-event" ,python-zope-event) | |
6287 | ("python-zope-interface" ,python-zope-interface))) | |
6288 | (native-inputs | |
6289 | `(("python-zope-testing" ,python-zope-testing))) | |
6290 | (home-page "http://pypi.python.org/pypi/zope.schema") | |
6291 | (synopsis "Zope data schemas") | |
6292 | (description "Zope.scheme provides extensions to zope.interface for | |
6293 | defining data schemas.") | |
6294 | (license zpl2.1))) | |
6295 | ||
6296 | (define-public python2-zope-schema | |
6297 | (package-with-python2 python-zope-schema)) | |
fbac9b17 LF |
6298 | |
6299 | (define-public python-zope-configuration | |
6300 | (package | |
6301 | (name "python-zope-configuration") | |
6302 | (version "4.0.3") | |
6303 | (source (origin | |
6304 | (method url-fetch) | |
6305 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6306 | "/zope.configuration/zope.configuration-" | |
6307 | version ".tar.gz")) | |
6308 | (sha256 | |
6309 | (base32 | |
6310 | "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) | |
6311 | (build-system python-build-system) | |
6312 | (propagated-inputs | |
6313 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6314 | ("python-zope-schema" ,python-zope-schema))) | |
6315 | (home-page "http://pypi.python.org/pypi/zope.configuration") | |
6316 | (synopsis "Zope Configuration Markup Language") | |
6317 | (description "Zope.configuration implements ZCML, the Zope Configuration | |
6318 | Markup Language.") | |
6319 | (license zpl2.1))) | |
6320 | ||
6321 | (define-public python2-zope-configuration | |
6322 | (package-with-python2 python-zope-configuration)) | |
2ad52086 LF |
6323 | |
6324 | (define-public python-zope-proxy | |
6325 | (package | |
6326 | (name "python-zope-proxy") | |
6327 | (version "4.1.6") | |
6328 | (source | |
6329 | (origin | |
6330 | (method url-fetch) | |
6331 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6332 | "/zope.proxy/zope.proxy-" version ".tar.gz")) | |
6333 | (sha256 | |
6334 | (base32 | |
6335 | "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) | |
6336 | (build-system python-build-system) | |
6337 | (propagated-inputs | |
6338 | `(("python-zope-interface" ,python-zope-interface))) | |
6339 | (home-page "http://pypi.python.org/pypi/zope.proxy") | |
6340 | (synopsis "Generic, transparent proxies") | |
6341 | (description "Zope.proxy provides generic, transparent proxies for Python. | |
6342 | Proxies are special objects which serve as mostly-transparent wrappers around | |
6343 | another object, intervening in the apparent behavior of the wrapped object | |
6344 | only when necessary to apply the policy (e.g., access checking, location | |
6345 | brokering, etc.) for which the proxy is responsible.") | |
6346 | (license zpl2.1))) | |
6347 | ||
6348 | (define-public python2-zope-proxy | |
6349 | (package-with-python2 python-zope-proxy)) | |
f404b5ea LF |
6350 | |
6351 | (define-public python-zope-location | |
6352 | (package | |
6353 | (name "python-zope-location") | |
6354 | (version "4.0.3") | |
6355 | (source | |
6356 | (origin | |
6357 | (method url-fetch) | |
6358 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6359 | "/zope.location/zope.location-" version ".tar.gz")) | |
6360 | (sha256 | |
6361 | (base32 | |
6362 | "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) | |
6363 | (build-system python-build-system) | |
6364 | (native-inputs | |
6365 | `(("python-zope-proxy" ,python-zope-proxy) | |
6366 | ("python-zope-schema" ,python-zope-schema))) | |
6367 | (home-page "http://pypi.python.org/pypi/zope.location/") | |
6368 | (synopsis "Zope location library") | |
6369 | (description "Zope.location implements the concept of \"locations\" in | |
6370 | Zope3, which are are special objects that have a structural location.") | |
6371 | (license zpl2.1))) | |
6372 | ||
6373 | (define-public python2-zope-location | |
6374 | (package-with-python2 python-zope-location)) | |
d4b77f36 LF |
6375 | |
6376 | (define-public python-zope-security | |
6377 | (package | |
6378 | (name "python-zope-security") | |
6379 | (version "4.0.3") | |
6380 | (source | |
6381 | (origin | |
6382 | (method url-fetch) | |
6383 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6384 | "/zope.security/zope.security-" version ".tar.gz")) | |
6385 | (sha256 | |
6386 | (base32 | |
6387 | "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) | |
6388 | (build-system python-build-system) | |
6389 | (propagated-inputs | |
6390 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6391 | ("python-zope-component" ,python-zope-component) | |
6392 | ("python-zope-location" ,python-zope-location) | |
6393 | ("python-zope-proxy" ,python-zope-proxy) | |
6394 | ("python-zope-schema" ,python-zope-schema) | |
6395 | ("python-zope-testrunner" ,python-zope-testrunner) | |
6396 | ("python-zope-testing" ,python-zope-testing))) | |
6397 | (home-page "http://pypi.python.org/pypi/zope.security") | |
6398 | (synopsis "Zope security framework") | |
6399 | (description "Zope.security provides a generic mechanism to implement | |
6400 | security policies on Python objects.") | |
6401 | (license zpl2.1))) | |
6402 | ||
6403 | (define-public python2-zope-security | |
04417662 EF |
6404 | (let ((zope-security (package-with-python2 python-zope-security))) |
6405 | (package (inherit zope-security) | |
6406 | (propagated-inputs | |
6407 | `(("python2-zope-testrunner" ,python2-zope-testrunner) | |
6408 | ,@(alist-delete | |
6409 | "python-zope-testrunner" | |
6410 | (package-propagated-inputs zope-security))))))) | |
a6b61b27 LF |
6411 | |
6412 | (define-public python-zope-component | |
6413 | (package | |
6414 | (name "python-zope-component") | |
6415 | (version "4.2.2") | |
6416 | (source | |
6417 | (origin | |
6418 | (method url-fetch) | |
6419 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6420 | "/zope.component/zope.component-" version ".tar.gz")) | |
6421 | (sha256 | |
6422 | (base32 | |
6423 | "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18")))) | |
6424 | (build-system python-build-system) | |
6425 | (arguments | |
6426 | ;; Skip tests due to circular dependency with python-zope-security. | |
6427 | '(#:tests? #f)) | |
6428 | (native-inputs | |
6429 | `(("python-zope-testing" ,python-zope-testing))) | |
6430 | (propagated-inputs | |
6431 | `(("python-zope-event" ,python-zope-event) | |
6432 | ("python-zope-interface" ,python-zope-interface) | |
6433 | ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6434 | ("python-zope-configuration" ,python-zope-configuration))) | |
6435 | (home-page "https://github.com/zopefoundation/zope.component") | |
6436 | (synopsis "Zope Component Architecture") | |
6437 | (description "Zope.component represents the core of the Zope Component | |
6438 | Architecture. Together with the zope.interface package, it provides | |
6439 | facilities for defining, registering and looking up components.") | |
6440 | (license zpl2.1))) | |
6441 | ||
6442 | (define-public python2-zope-component | |
6443 | (package-with-python2 python-zope-component)) | |
3859ac12 | 6444 | |
b5f218be LF |
6445 | (define-public python2-pythondialog |
6446 | (package | |
6447 | (name "python2-pythondialog") | |
6448 | (version "3.3.0") | |
6449 | (source | |
6450 | (origin | |
6451 | (method url-fetch) | |
6452 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
6453 | "python2-pythondialog/python2-pythondialog-" | |
6454 | version ".tar.gz")) | |
6455 | (sha256 | |
6456 | (base32 | |
6457 | "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry")))) | |
6458 | (build-system python-build-system) | |
6459 | (arguments | |
6460 | `(#:phases | |
6461 | (modify-phases %standard-phases | |
6462 | (add-after 'unpack 'patch-path | |
6463 | (lambda* (#:key inputs #:allow-other-keys) | |
6464 | (let* ((dialog (assoc-ref inputs "dialog"))) | |
6465 | ;; Since this library really wants to grovel the search path, we | |
6466 | ;; must hardcode dialog's store path into it. | |
6467 | (substitute* "dialog.py" | |
6468 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") | |
6469 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) | |
6470 | #t)))) | |
6471 | #:python ,python-2 | |
6472 | #:tests? #f)) ; no test suite | |
6473 | (propagated-inputs | |
6474 | `(("dialog" ,dialog))) | |
6475 | (home-page "http://pythondialog.sourceforge.net/") | |
6476 | (synopsis "Python interface to the UNIX dialog utility") | |
6477 | (description "A Python wrapper for the dialog utility. Its purpose is to | |
6478 | provide an easy to use, pythonic and comprehensive Python interface to dialog. | |
6479 | This allows one to make simple text-mode user interfaces on Unix-like systems") | |
6480 | (license lgpl2.1))) | |
6481 | ||
3859ac12 LF |
6482 | (define-public python-pyrfc3339 |
6483 | (package | |
6484 | (name "python-pyrfc3339") | |
d9aa097b | 6485 | (version "1.0") |
3859ac12 LF |
6486 | (source |
6487 | (origin | |
6488 | (method url-fetch) | |
d9aa097b | 6489 | (uri (pypi-uri "pyRFC3339" version)) |
3859ac12 LF |
6490 | (sha256 |
6491 | (base32 | |
d9aa097b | 6492 | "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd")))) |
3859ac12 LF |
6493 | (build-system python-build-system) |
6494 | (propagated-inputs | |
6495 | `(("python-pytz" ,python-pytz))) | |
6496 | (native-inputs | |
6497 | `(("python-nose" ,python-nose) | |
6498 | ("python-setuptools" ,python-setuptools))) | |
6499 | (home-page "https://github.com/kurtraschke/pyRFC3339") | |
6500 | (synopsis "Python timestamp library") | |
6501 | (description "Python library for generating and parsing RFC 3339-compliant | |
6502 | timestamps.") | |
6503 | (license license:expat))) | |
6504 | ||
6505 | (define-public python2-pyrfc3339 | |
6506 | (package-with-python2 python-pyrfc3339)) | |
5eea2005 LF |
6507 | |
6508 | (define-public python-werkzeug | |
6509 | (package | |
6510 | (name "python-werkzeug") | |
6511 | (version "0.11.2") | |
6512 | (source | |
6513 | (origin | |
6514 | (method url-fetch) | |
6515 | (uri (string-append "https://pypi.python.org/packages/source/W/Werkzeug" | |
6516 | "/Werkzeug-" version ".tar.gz")) | |
6517 | (file-name (string-append name "-" version ".tar.gz")) | |
6518 | (sha256 | |
6519 | (base32 | |
6520 | "1gzwn1lkl90f3l1nzzxr7vjhm21qk8f837i8rvny5a209fcrhkzb")))) | |
6521 | (build-system python-build-system) | |
6522 | (native-inputs | |
6523 | `(("python-pytest" ,python-pytest))) | |
6524 | (home-page "http://werkzeug.pocoo.org/") | |
6525 | (synopsis "Utilities for WSGI applications") | |
6526 | (description "One of the most advanced WSGI utility modules. It includes a | |
6527 | powerful debugger, full-featured request and response objects, HTTP utilities to | |
6528 | handle entity tags, cache control headers, HTTP dates, cookie handling, file | |
6529 | uploads, a powerful URL routing system and a bunch of community-contributed | |
6530 | addon modules.") | |
6531 | (license x11))) | |
6532 | ||
6533 | (define-public python2-werkzeug | |
6534 | (package-with-python2 python-werkzeug)) | |
99fffa8a LF |
6535 | |
6536 | (define-public python-configobj | |
6537 | (package | |
6538 | (name "python-configobj") | |
6539 | (version "5.0.6") | |
6540 | (source (origin | |
6541 | (method url-fetch) | |
6542 | (uri (string-append | |
6543 | "https://pypi.python.org/packages/source/c/configobj/" | |
6544 | "configobj-" version ".tar.gz")) | |
6545 | (sha256 | |
6546 | (base32 | |
6547 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) | |
6548 | ;; Patch setup.py so it looks for python-setuptools, which is | |
6549 | ;; required to parse the keyword 'install_requires' in setup.py. | |
6550 | (patches (list (search-patch "python-configobj-setuptools.patch"))))) | |
6551 | (build-system python-build-system) | |
6552 | (native-inputs | |
6553 | `(("python-setuptools" ,python-setuptools) | |
6554 | ("python-six" ,python-six))) | |
6555 | (synopsis "Config file reading, writing and validation") | |
6556 | (description "ConfigObj is a simple but powerful config file reader and | |
6557 | writer: an ini file round tripper. Its main feature is that it is very easy to | |
6558 | use, with a straightforward programmer’s interface and a simple syntax for | |
6559 | config files.") | |
6560 | (home-page "https://github.com/DiffSK/configobj") | |
6561 | (license bsd-3))) | |
6562 | ||
6563 | (define-public python2-configobj | |
6564 | (package-with-python2 python-configobj)) | |
79e8a291 LF |
6565 | |
6566 | (define-public python-configargparse | |
6567 | (package | |
6568 | (name "python-configargparse") | |
6569 | (version "0.10.0") | |
6570 | (source (origin | |
6571 | (method url-fetch) | |
6572 | (uri (string-append | |
6573 | "https://pypi.python.org/packages/source/C/ConfigArgParse/" | |
6574 | "ConfigArgParse-" version ".tar.gz")) | |
6575 | (sha256 | |
6576 | (base32 | |
6577 | "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v")))) | |
6578 | (build-system python-build-system) | |
6579 | (arguments | |
6580 | ;; FIXME: Bug in test suite filed upstream: | |
6581 | ;; https://github.com/bw2/ConfigArgParse/issues/32 | |
6582 | '(#:tests? #f)) | |
6583 | (synopsis "Replacement for argparse") | |
6584 | (description "A drop-in replacement for argparse that allows options to also | |
6585 | be set via config files and/or environment variables.") | |
6586 | (home-page "https://github.com/bw2/ConfigArgParse") | |
6587 | (license license:expat))) | |
6588 | ||
6589 | (define-public python2-configargparse | |
6590 | (package-with-python2 python-configargparse)) | |
ab41f979 LF |
6591 | |
6592 | (define-public python-ndg-httpsclient | |
6593 | (package | |
6594 | (name "python-ndg-httpsclient") | |
6595 | (version "0.4.0") | |
6596 | (source (origin | |
6597 | (method url-fetch) | |
6598 | (uri (string-append | |
6599 | "https://pypi.python.org/packages/source/n/ndg-httpsclient/" | |
6600 | "ndg_httpsclient-" version ".tar.gz")) | |
6601 | (sha256 | |
6602 | (base32 | |
6603 | "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8")))) | |
6604 | (build-system python-build-system) | |
6605 | (propagated-inputs | |
6606 | `(("python-pyopenssl" ,python-pyopenssl))) | |
6607 | (synopsis "HTTPS support for Python's httplib and urllib2") | |
6608 | (description "This is a HTTPS client implementation for httplib and urllib2 | |
6609 | based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation | |
6610 | over the default provided with Python and importantly enables full verification | |
6611 | of the SSL peer.") | |
6612 | (home-page "https://github.com/cedadev/ndg_httpsclient/") | |
6613 | (license bsd-3))) | |
6614 | ||
6615 | ;; python2-openssl requires special care, so package-with-python2 is | |
6616 | ;; insufficient. | |
6617 | (define-public python2-ndg-httpsclient | |
6618 | (package (inherit python-ndg-httpsclient) | |
6619 | (name "python2-ndg-httpsclient") | |
6620 | (arguments `(#:python ,python-2)) | |
6621 | (propagated-inputs | |
6622 | `(("python2-pyopenssl" ,python2-pyopenssl))))) | |
03f964a5 CM |
6623 | |
6624 | (define-public python-contextlib2 | |
6625 | (package | |
6626 | (name "python-contextlib2") | |
6627 | (version "0.4.0") | |
6628 | (source | |
6629 | (origin | |
6630 | (method url-fetch) | |
6631 | (uri (pypi-uri "contextlib2" version)) | |
6632 | (sha256 | |
6633 | (base32 | |
6634 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) | |
6635 | (build-system python-build-system) | |
6636 | (arguments | |
6637 | `(#:phases | |
6638 | (modify-phases %standard-phases | |
6639 | (replace 'check | |
6640 | (lambda _ (zero? | |
6641 | (system* | |
6642 | "python" "test_contextlib2.py", "-v"))))))) | |
6643 | (home-page "http://contextlib2.readthedocs.org/") | |
6644 | (synopsis "Tools for decorators and context managers") | |
6645 | (description "This module is primarily a backport of the Python | |
6646 | 3.2 contextlib to earlier Python versions. Like contextlib, it | |
6647 | provides utilities for common tasks involving decorators and context | |
6648 | managers. It also contains additional features that are not part of | |
6649 | the standard library.") | |
6650 | (license psfl))) | |
6651 | ||
6652 | (define-public python2-contextlib2 | |
6653 | (package-with-python2 python-contextlib2)) | |
210bf497 DT |
6654 | |
6655 | (define-public python-texttable | |
6656 | (package | |
6657 | (name "python-texttable") | |
6658 | (version "0.8.4") | |
6659 | (source | |
6660 | (origin | |
6661 | (method url-fetch) | |
6662 | (uri (pypi-uri "texttable" version)) | |
6663 | (sha256 | |
6664 | (base32 | |
6665 | "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) | |
6666 | (build-system python-build-system) | |
6667 | (arguments '(#:tests? #f)) ; no tests | |
6668 | (home-page "https://github.com/foutaise/texttable/") | |
6669 | (synopsis "Python module for creating simple ASCII tables") | |
6670 | (description "Texttable is a Python module for creating simple ASCII | |
6671 | tables.") | |
6672 | (license lgpl2.1+))) | |
6673 | ||
6674 | (define-public python2-texttable | |
6675 | (package-with-python2 python-texttable)) | |
67c52bb3 DT |
6676 | |
6677 | (define-public python-websocket-client | |
6678 | (package | |
6679 | (name "python-websocket-client") | |
6680 | (version "0.34.0") | |
6681 | (source | |
6682 | (origin | |
6683 | (method url-fetch) | |
6684 | (uri (string-append "https://pypi.python.org/packages/source/w" | |
6685 | "/websocket-client/websocket_client-" | |
6686 | version ".tar.gz")) | |
6687 | (sha256 | |
6688 | (base32 | |
6689 | "1prdx6d49f1cff17kzj15bnz09palfdgc1m5dkq9jd4mr90n4ak8")))) | |
6690 | (build-system python-build-system) | |
6691 | (native-inputs | |
6692 | `(("python-six" ,python-six))) ; for tests | |
6693 | (inputs | |
6694 | `(("python-setuptools" ,python-setuptools))) | |
6695 | (home-page "https://github.com/liris/websocket-client") | |
6696 | (synopsis "WebSocket client for Python") | |
6697 | (description "The Websocket-client module provides the low level APIs for | |
6698 | WebSocket usage in Python programs.") | |
6699 | (license lgpl2.1+))) | |
6700 | ||
6701 | (define-public python2-websocket-client | |
6702 | (package-with-python2 python-websocket-client)) | |
5c6eea2a LF |
6703 | |
6704 | (define-public python-atomicwrites | |
6705 | (package | |
6706 | (name "python-atomicwrites") | |
6707 | (version "0.1.8") | |
6708 | (source (origin | |
6709 | (method url-fetch) | |
6710 | (uri (pypi-uri "atomicwrites" version)) | |
6711 | (sha256 | |
6712 | (base32 | |
6713 | "13nwk0gw0yb61pnf5vxs3fvhav6q3zrf08x9ggc93bnk5fsssx1j")))) | |
6714 | (build-system python-build-system) | |
6715 | (synopsis "Atomic file writes in Python") | |
6716 | (description "Library for atomic file writes using platform dependent tools | |
6717 | for atomic filesystem operations.") | |
6718 | (home-page "https://github.com/untitaker/python-atomicwrites") | |
6719 | (license license:expat))) | |
561bb3cb LF |
6720 | |
6721 | (define-public python-requests-toolbelt | |
6722 | (package | |
6723 | (name "python-requests-toolbelt") | |
6724 | (version "0.5.0") | |
6725 | (source (origin | |
6726 | (method url-fetch) | |
6727 | (uri (pypi-uri "requests-toolbelt" version)) | |
6728 | (sha256 | |
6729 | (base32 | |
6730 | "1kbms1s52dhb98vbpaprr15b0ijdbqp500lpfsyjccpd8cjkyngk")))) | |
6731 | (build-system python-build-system) | |
6732 | (propagated-inputs | |
6733 | `(("python-requests" ,python-requests))) | |
6734 | (synopsis "Extensions to python-requests") | |
6735 | (description "This is a toolbelt of useful classes and functions to be used | |
6736 | with python-requests.") | |
6737 | (home-page "https://github.com/sigmavirus24/requests-toolbelt") | |
6738 | (license asl2.0))) | |
d1deb90b LF |
6739 | |
6740 | (define-public python-click-threading | |
6741 | (package | |
6742 | (name "python-click-threading") | |
6743 | (version "0.1.2") | |
6744 | (source (origin | |
6745 | (method url-fetch) | |
6746 | (uri (pypi-uri "click-threading" version)) | |
6747 | (sha256 | |
6748 | (base32 | |
6749 | "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145")))) | |
6750 | (build-system python-build-system) | |
6751 | (propagated-inputs | |
6752 | `(("python-click" ,python-click))) | |
6753 | (synopsis "Utilities for multithreading in Click") | |
6754 | (description "This package provides utilities for multithreading in Click | |
6755 | applications.") | |
6756 | (home-page "https://github.com/click-contrib/click-threading") | |
6757 | (license license:expat))) | |
7b17cab9 LF |
6758 | |
6759 | (define-public python-click-log | |
6760 | (package | |
6761 | (name "python-click-log") | |
6762 | (version "0.1.1") | |
6763 | (source (origin | |
6764 | (method url-fetch) | |
6765 | (uri (pypi-uri "click-log" version)) | |
6766 | (sha256 | |
6767 | (base32 | |
6768 | "1z3jdwjmwax159zrnyx830xa968rfqrpkm04ad5xqyh0269ydiqb")))) | |
6769 | (build-system python-build-system) | |
6770 | (propagated-inputs | |
6771 | `(("python-click" ,python-click))) | |
6772 | (synopsis "Logging for click applications") | |
6773 | (description "This package provides a Python library for logging Click | |
6774 | applications.") | |
6775 | (home-page "https://github.com/click-contrib/click-log") | |
6776 | (license license:expat))) | |
7b3a4ee4 LF |
6777 | |
6778 | (define-public python-apipkg | |
6779 | (package | |
6780 | (name "python-apipkg") | |
6781 | (version "1.4") | |
6782 | (source (origin | |
6783 | (method url-fetch) | |
6784 | (uri (pypi-uri "apipkg" version)) | |
6785 | (sha256 | |
6786 | (base32 | |
6787 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) | |
6788 | (build-system python-build-system) | |
6789 | (native-inputs | |
6790 | `(("unzip" ,unzip))) | |
6791 | (propagated-inputs | |
6792 | `(("python-pytest" ,python-pytest))) | |
6793 | (synopsis "Namespace control and lazy-import mechanism") | |
6794 | (description "With apipkg you can control the exported namespace of a Python | |
6795 | package and greatly reduce the number of imports for your users. It is a small | |
6796 | pure Python module that works on virtually all Python versions.") | |
6797 | (home-page "https://bitbucket.org/hpk42/apipkg") | |
6798 | (license license:expat))) | |
848964fe LF |
6799 | |
6800 | (define-public python-execnet | |
6801 | (package | |
6802 | (name "python-execnet") | |
6803 | (version "1.4.1") | |
6804 | (source (origin | |
6805 | (method url-fetch) | |
6806 | (uri (pypi-uri "execnet" version)) | |
6807 | (sha256 | |
6808 | (base32 | |
6809 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) | |
6810 | (build-system python-build-system) | |
6811 | (native-inputs | |
6812 | `(("python-setuptools-scm" ,python-setuptools-scm))) | |
6813 | (propagated-inputs | |
6814 | `(("python-apipkg" ,python-apipkg))) | |
6815 | (synopsis "Rapid multi-Python deployment") | |
6816 | (description "Execnet provides a share-nothing model with | |
6817 | channel-send/receive communication for distributing execution across many | |
6818 | Python interpreters across version, platform and network barriers. It has a | |
6819 | minimal and fast API targetting the following uses: | |
6820 | @enumerate | |
6821 | @item distribute tasks to (many) local or remote CPUs | |
6822 | @item write and deploy hybrid multi-process applications | |
6823 | @item write scripts to administer multiple environments | |
6824 | @end enumerate") | |
6825 | (home-page "http://codespeak.net/execnet/") | |
6826 | (license license:expat))) | |
6720dbb4 LF |
6827 | |
6828 | ;;; The software provided by this package was integrated into pytest 2.8. | |
6829 | (define-public python-pytest-cache | |
6830 | (package | |
6831 | (name "python-pytest-cache") | |
6832 | (version "1.0") | |
6833 | (source (origin | |
6834 | (method url-fetch) | |
6835 | (uri (pypi-uri "pytest-cache" version)) | |
6836 | (sha256 | |
6837 | (base32 | |
6838 | "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) | |
6839 | (build-system python-build-system) | |
6840 | (propagated-inputs | |
6841 | `(("python-execnet" ,python-execnet))) | |
6842 | (synopsis "Py.test plugin with mechanisms for caching across test runs") | |
6843 | (description "The pytest-cache plugin provides tools to rerun failures from | |
6844 | the last py.test invocation.") | |
6845 | (home-page "https://bitbucket.org/hpk42/pytest-cache/") | |
6846 | (license license:expat))) | |
d7e729fe LF |
6847 | |
6848 | (define-public python-pytest-localserver | |
6849 | (package | |
6850 | (name "python-pytest-localserver") | |
6851 | (version "0.3.4") | |
6852 | (source (origin | |
6853 | (method url-fetch) | |
6854 | (uri (pypi-uri "pytest-localserver" version ".zip")) | |
6855 | (sha256 | |
6856 | (base32 | |
6857 | "050q505a7gnsz7vqidw0w5dvxjb2flzi7z734agpjzmsl85c2bcx")))) | |
6858 | (build-system python-build-system) | |
6859 | (arguments | |
6860 | `(#:phases (modify-phases %standard-phases | |
6861 | (replace 'check | |
6862 | (lambda _ | |
6863 | (zero? (system* "py.test" "--genscript=runtests.py")) | |
6864 | (zero? (system* "py.test"))))))) | |
6865 | (native-inputs | |
6866 | `(("unzip" ,unzip))) | |
6867 | (propagated-inputs | |
6868 | `(("python-pytest" ,python-pytest) | |
6869 | ("python-requests" ,python-requests) | |
6870 | ("python-six" ,python-six) | |
6871 | ("python-werkzeug" ,python-werkzeug))) | |
6872 | (synopsis "Py.test plugin to test server connections locally") | |
6873 | (description "Pytest-localserver is a plugin for the pytest testing | |
6874 | framework which enables you to test server connections locally.") | |
6875 | (home-page "https://pypi.python.org/pypi/pytest-localserver") | |
6876 | (license license:expat))) | |
28cecbb7 LF |
6877 | |
6878 | (define-public python-wsgi-intercept | |
6879 | (package | |
6880 | (name "python-wsgi-intercept") | |
6881 | (version "0.10.3") | |
6882 | (source (origin | |
6883 | (method url-fetch) | |
6884 | (uri (pypi-uri "wsgi_intercept" version)) | |
6885 | (sha256 | |
6886 | (base32 | |
6887 | "0xyfchacywb1mql84270mcidsqc5ssyspd18yacjk82x2xc68h0r")))) | |
6888 | (build-system python-build-system) | |
6889 | (native-inputs | |
6890 | `(("python-pytest" ,python-pytest))) | |
6891 | (propagated-inputs | |
6892 | `(("python-httplib2" ,python-httplib2) | |
6893 | ("python-requests" ,python-requests))) | |
6894 | (synopsis "Puts a WSGI application in place of a real URI for testing") | |
6895 | (description "Wsgi_intercept installs a WSGI application in place of a real | |
6896 | URI for testing. Testing a WSGI application normally involves starting a | |
6897 | server at a local host and port, then pointing your test code to that address. | |
6898 | Instead, this library lets you intercept calls to any specific host/port | |
6899 | combination and redirect them into a WSGI application importable by your test | |
6900 | program. Thus, you can avoid spawning multiple processes or threads to test | |
6901 | your Web app.") | |
6902 | (home-page "https://github.com/cdent/wsgi-intercept") | |
6903 | (license license:expat))) | |
89b8a551 LF |
6904 | |
6905 | (define-public python-pytest-xprocess | |
6906 | (package | |
6907 | (name "python-pytest-xprocess") | |
6908 | (version "0.9.1") | |
6909 | (source (origin | |
6910 | (method url-fetch) | |
6911 | (uri (pypi-uri "pytest-xprocess" version)) | |
6912 | (sha256 | |
6913 | (base32 | |
6914 | "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) | |
6915 | (build-system python-build-system) | |
6916 | (propagated-inputs | |
6917 | `(("python-pytest" ,python-pytest) | |
6918 | ("python-pytest-cache" ,python-pytest-cache) | |
6919 | ("python-psutil" ,python-psutil))) | |
6920 | (synopsis "Pytest plugin to manage external processes across test runs") | |
6921 | (description "Pytest-xprocess is an experimental py.test plugin for managing | |
6922 | processes across test runs.") | |
6923 | (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") | |
6924 | (license license:expat))) | |
5c299bf0 LF |
6925 | |
6926 | (define-public python-icalendar | |
6927 | (package | |
6928 | (name "python-icalendar") | |
6929 | (version "3.9.1") | |
6930 | (source (origin | |
6931 | (method url-fetch) | |
6932 | (uri (pypi-uri "icalendar" version)) | |
6933 | (sha256 | |
6934 | (base32 | |
6935 | "0fhrczdj3jxy5bvswphp3vys7vwv5c9bpwg7asykqwa3z6253q6q")))) | |
6936 | (build-system python-build-system) | |
6937 | (propagated-inputs | |
6938 | `(("python-dateutil-2" ,python-dateutil-2) | |
6939 | ("python-pytz" ,python-pytz))) | |
6940 | (synopsis "Python library for parsing iCalendar files") | |
6941 | (description "The icalendar package is a parser/generator of iCalendar | |
6942 | files for use with Python.") | |
6943 | (home-page "https://github.com/collective/icalendar") | |
6944 | (license bsd-2))) | |
6bbbb53e LF |
6945 | |
6946 | (define-public python-sphinxcontrib-newsfeed | |
6947 | (package | |
6948 | (name "python-sphinxcontrib-newsfeed") | |
6949 | (version "0.1.4") | |
6950 | (source (origin | |
6951 | (method url-fetch) | |
6952 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) | |
6953 | (sha256 | |
6954 | (base32 | |
6955 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) | |
6956 | (build-system python-build-system) | |
6957 | (propagated-inputs | |
6958 | `(("python-docutils" ,python-docutils) | |
6959 | ("python-sphinx" ,python-sphinx))) | |
6960 | (synopsis "News Feed extension for Sphinx") | |
6961 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple | |
6962 | Blog, News or Announcements section to a Sphinx website.") | |
6963 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") | |
6964 | (license bsd-2))) | |
2216e15c SB |
6965 | |
6966 | (define-public python-args | |
6967 | (package | |
6968 | (name "python-args") | |
6969 | (version "0.1.0") | |
6970 | (source (origin | |
6971 | (method url-fetch) | |
6972 | (uri (pypi-uri "args" version)) | |
6973 | (sha256 | |
6974 | (base32 | |
6975 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) | |
6976 | (build-system python-build-system) | |
6977 | (inputs | |
6978 | `(("python-setuptools" ,python-setuptools))) | |
6979 | (home-page "https://github.com/kennethreitz/args") | |
6980 | (synopsis "Command-line argument parser") | |
6981 | (description | |
6982 | "This library provides a Python module to parse command-line arguments.") | |
6983 | (license bsd-3))) | |
6984 | ||
6985 | (define-public python2-args | |
6986 | (package-with-python2 python-args)) | |
c06a3de9 SB |
6987 | |
6988 | (define-public python-clint | |
6989 | (package | |
6990 | (name "python-clint") | |
6991 | (version "0.5.1") | |
6992 | (source (origin | |
6993 | (method url-fetch) | |
6994 | (uri (pypi-uri "clint" version)) | |
6995 | (sha256 | |
6996 | (base32 | |
6997 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) | |
6998 | (build-system python-build-system) | |
6999 | (inputs | |
7000 | `(("python-args" ,python-args) | |
7001 | ("python-setuptools" ,python-setuptools))) | |
7002 | (home-page "https://github.com/kennethreitz/clint") | |
7003 | (synopsis "Command-line interface tools") | |
7004 | (description | |
7005 | "Clint is a Python module filled with a set of tools for developing | |
7006 | command-line applications, including tools for colored and indented | |
7007 | output, progress bar display, and pipes.") | |
7008 | (license isc))) | |
7009 | ||
7010 | (define-public python2-clint | |
7011 | (package-with-python2 python-clint)) | |
4ecdeef8 SB |
7012 | |
7013 | (define-public python-astor | |
7014 | (package | |
7015 | (name "python-astor") | |
7016 | (version "0.5") | |
7017 | (source (origin | |
7018 | (method url-fetch) | |
7019 | (uri (pypi-uri "astor" version)) | |
7020 | (sha256 | |
7021 | (base32 | |
7022 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) | |
7023 | (build-system python-build-system) | |
7024 | (inputs | |
7025 | `(("python-setuptools" ,python-setuptools))) | |
7026 | (home-page "https://github.com/berkerpeksag/astor") | |
7027 | (synopsis "Read and write Python ASTs") | |
7028 | (description | |
7029 | "Astor is designed to allow easy manipulation of Python source via the | |
7030 | Abstract Syntax Tree.") | |
7031 | (license bsd-3))) | |
7032 | ||
7033 | (define-public python2-astor | |
7034 | (package-with-python2 python-astor)) | |
e224b7d0 SB |
7035 | |
7036 | (define-public python-rply | |
7037 | (package | |
7038 | (name "python-rply") | |
7039 | (version "0.7.4") | |
7040 | (source (origin | |
7041 | (method url-fetch) | |
7042 | (uri (pypi-uri "rply" version)) | |
7043 | (sha256 | |
7044 | (base32 | |
7045 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) | |
7046 | (build-system python-build-system) | |
7047 | (inputs | |
7048 | `(("python-appdirs" ,python-appdirs) | |
7049 | ("python-setuptools" ,python-setuptools))) | |
7050 | (home-page "https://github.com/alex/rply") | |
7051 | (synopsis "Parser generator for Python") | |
7052 | (description | |
7053 | "This package provides a pure Python based parser generator, that also | |
7054 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, | |
7055 | with a new public API, and RPython support.") | |
7056 | (license bsd-3))) | |
7057 | ||
7058 | (define-public python2-rply | |
7059 | (package-with-python2 python-rply)) | |
c3e919d7 SB |
7060 | |
7061 | (define-public python-hy | |
7062 | (package | |
7063 | (name "python-hy") | |
7064 | (version "0.11.1") | |
7065 | (source (origin | |
7066 | (method url-fetch) | |
7067 | (uri (pypi-uri "hy" version)) | |
7068 | (sha256 | |
7069 | (base32 | |
7070 | "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) | |
7071 | (build-system python-build-system) | |
7072 | (inputs | |
7073 | `(("python-astor" ,python-astor) | |
7074 | ("python-clint" ,python-clint) | |
7075 | ("python-rply" ,python-rply) | |
7076 | ("python-setuptools" ,python-setuptools))) | |
7077 | (home-page "http://hylang.org/") | |
7078 | (synopsis "Lisp frontend to Python") | |
7079 | (description | |
7080 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms | |
7081 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of | |
7082 | Python at your fingertips, in Lisp form.") | |
7083 | (license license:expat))) | |
7084 | ||
7085 | (define-public python2-hy | |
7086 | (package-with-python2 python-hy)) | |
7a5b944e | 7087 | |
81f7f297 EF |
7088 | (define-public python-rauth |
7089 | (package | |
7090 | (name "python-rauth") | |
7091 | (version "0.7.2") | |
7092 | (source | |
7093 | (origin | |
7094 | (method url-fetch) | |
7095 | (uri (pypi-uri "rauth" version)) | |
7096 | (sha256 | |
7097 | (base32 | |
7098 | "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) | |
7099 | (build-system python-build-system) | |
7100 | (arguments | |
7101 | `(#:test-target "check")) | |
7102 | (native-inputs | |
7103 | `(("python-setuptools" ,python-setuptools))) | |
7104 | (propagated-inputs | |
7105 | `(("python-requests" ,python-requests))) | |
7106 | (home-page "https://github.com/litl/rauth") | |
7107 | (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") | |
7108 | (description | |
7109 | "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also | |
7110 | provides service wrappers for convenient connection initialization and | |
7111 | authenticated session objects providing things like keep-alive.") | |
7112 | (license license:expat))) | |
7113 | ||
7114 | (define-public python2-rauth | |
7115 | (let ((rauth (package-with-python2 python-rauth))) | |
7116 | (package (inherit rauth) | |
7117 | (native-inputs | |
7118 | `(("python2-unittest2", python2-unittest2) | |
7119 | ,@(package-native-inputs rauth)))))) | |
7120 | ||
7a5b944e EF |
7121 | (define-public python-futures |
7122 | (package | |
7123 | (name "python-futures") | |
7124 | (version "3.0.3") | |
7125 | (source | |
7126 | (origin | |
7127 | (method url-fetch) | |
7128 | (uri (pypi-uri "futures" version)) | |
7129 | (sha256 | |
7130 | (base32 | |
7131 | "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) | |
7132 | (build-system python-build-system) | |
7133 | (native-inputs | |
7134 | `(("python-setuptools" ,python-setuptools))) | |
7135 | (home-page "https://github.com/agronholm/pythonfutures") | |
7136 | (synopsis | |
7137 | "Backport of the concurrent.futures package from Python 3.2") | |
7138 | (description | |
7139 | "The concurrent.futures module provides a high-level interface for | |
7140 | asynchronously executing callables. This package backports the | |
7141 | concurrent.futures package from Python 3.2") | |
7142 | (license bsd-3))) | |
7143 | ||
7144 | (define-public python2-futures | |
7145 | (package-with-python2 python-futures)) |