Commit | Line | Data |
---|---|---|
a01b6da7 NK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | |
48b311b1 | 3 | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
8e451885 | 4 | ;;; Copyright © 2013, 2014, 2015, 2016 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> |
534db463 | 10 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
0bdc1671 | 11 | ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
345f0611 | 12 | ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> |
2b2f2fc1 | 13 | ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org> |
6a44697d | 14 | ;;; Copyright © 2015, 2016 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> |
264ae686 | 17 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
1872f1bb | 18 | ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com> |
daeeea71 | 19 | ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com> |
b31fbea5 | 20 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> |
88bb4197 | 21 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
b8fdbca3 | 22 | ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com> |
0de78c95 | 23 | ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org> |
9250b0f3 | 24 | ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com> |
47d0b292 | 25 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
42c4b246 | 26 | ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is> |
6eb7af2a | 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
3f641af0 | 28 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
dddcb25c | 29 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> |
4efb9c54 | 30 | ;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at> |
b04a52a6 | 31 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
ee5fb7ee | 32 | ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com> |
2f6dd9cd | 33 | ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net> |
a01b6da7 NK |
34 | ;;; |
35 | ;;; This file is part of GNU Guix. | |
36 | ;;; | |
37 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
38 | ;;; under the terms of the GNU General Public License as published by | |
39 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
40 | ;;; your option) any later version. | |
41 | ;;; | |
42 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
43 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
44 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
45 | ;;; GNU General Public License for more details. | |
46 | ;;; | |
47 | ;;; You should have received a copy of the GNU General Public License | |
48 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
49 | ||
1ffa7090 | 50 | (define-module (gnu packages python) |
3f641af0 | 51 | #:use-module ((guix licenses) #:prefix license:) |
3fdc99da | 52 | #:use-module (gnu packages) |
8e451885 | 53 | #:use-module (gnu packages algebra) |
d79a343b | 54 | #:use-module (gnu packages adns) |
89b2e0b0 | 55 | #:use-module (gnu packages attr) |
d96034ed | 56 | #:use-module (gnu packages backup) |
3969ca54 | 57 | #:use-module (gnu packages bash) |
1ffa7090 | 58 | #:use-module (gnu packages compression) |
4ed20663 | 59 | #:use-module (gnu packages databases) |
ddc63a56 | 60 | #:use-module (gnu packages django) |
5e1c9367 | 61 | #:use-module (gnu packages file) |
4ed20663 | 62 | #:use-module (gnu packages fontutils) |
4ed20663 AE |
63 | #:use-module (gnu packages gcc) |
64 | #:use-module (gnu packages ghostscript) | |
6eb7af2a | 65 | #:use-module (gnu packages gl) |
4ed20663 | 66 | #:use-module (gnu packages glib) |
6eb7af2a | 67 | #:use-module (gnu packages gstreamer) |
4ed20663 | 68 | #:use-module (gnu packages gtk) |
421a80a2 | 69 | #:use-module (gnu packages icu4c) |
c937562e | 70 | #:use-module (gnu packages image) |
4ed20663 | 71 | #:use-module (gnu packages imagemagick) |
d79a343b | 72 | #:use-module (gnu packages libevent) |
b10ab723 | 73 | #:use-module (gnu packages libffi) |
89b2e0b0 | 74 | #:use-module (gnu packages linux) |
0da98533 | 75 | #:use-module (gnu packages maths) |
4ed20663 | 76 | #:use-module (gnu packages multiprecision) |
45203542 | 77 | #:use-module (gnu packages networking) |
be7134bf | 78 | #:use-module (gnu packages ncurses) |
b04a52a6 | 79 | #:use-module (gnu packages openstack) |
d488d5d6 | 80 | #:use-module (gnu packages password-utils) |
c9b1b4f9 | 81 | #:use-module (gnu packages pcre) |
4ed20663 | 82 | #:use-module (gnu packages perl) |
b10ab723 | 83 | #:use-module (gnu packages pkg-config) |
06ff0837 | 84 | #:use-module (gnu packages protobuf) |
4ed20663 | 85 | #:use-module (gnu packages readline) |
6eb7af2a | 86 | #:use-module (gnu packages sdl) |
c9b1b4f9 | 87 | #:use-module (gnu packages statistics) |
8f9ac901 | 88 | #:use-module (gnu packages tex) |
1c65314c | 89 | #:use-module (gnu packages texinfo) |
cc2b77df | 90 | #:use-module (gnu packages tls) |
e25f0174 | 91 | #:use-module (gnu packages version-control) |
02f8f804 | 92 | #:use-module (gnu packages video) |
8d12be1e | 93 | #:use-module (gnu packages web) |
ce0614dd | 94 | #:use-module (gnu packages base) |
26b307e2 | 95 | #:use-module (gnu packages xml) |
6fa14469 | 96 | #:use-module (gnu packages xorg) |
0bdc1671 | 97 | #:use-module (gnu packages xdisorg) |
4ed20663 | 98 | #:use-module (gnu packages zip) |
afa181ff | 99 | #:use-module (gnu packages tcl) |
63bcec71 | 100 | #:use-module (gnu packages bdw-gc) |
a01b6da7 NK |
101 | #:use-module (guix packages) |
102 | #:use-module (guix download) | |
ea5456c8 | 103 | #:use-module (guix git-download) |
11bb85a1 | 104 | #:use-module (guix utils) |
acc26ff1 | 105 | #:use-module (guix build-system gnu) |
d8c4998f | 106 | #:use-module (guix build-system cmake) |
898238b9 | 107 | #:use-module (guix build-system python) |
1c65314c FB |
108 | #:use-module (guix build-system trivial) |
109 | #:use-module (srfi srfi-1)) | |
a01b6da7 | 110 | |
45848023 | 111 | (define-public python-2.7 |
a01b6da7 NK |
112 | (package |
113 | (name "python") | |
f0499100 | 114 | (version "2.7.12") |
a01b6da7 NK |
115 | (source |
116 | (origin | |
117 | (method url-fetch) | |
9b43a0ff | 118 | (uri (string-append "https://www.python.org/ftp/python/" |
a01b6da7 NK |
119 | version "/Python-" version ".tar.xz")) |
120 | (sha256 | |
121 | (base32 | |
f0499100 | 122 | "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp")) |
c3052d6b ML |
123 | (patches (search-patches "python-2.7-search-paths.patch" |
124 | "python-2-deterministic-build-info.patch" | |
15e57f57 | 125 | "python-2.7-site-prefixes.patch" |
c3052d6b | 126 | "python-2.7-source-date-epoch.patch")) |
10a42aa2 EF |
127 | (modules '((guix build utils))) |
128 | ;; suboptimal to delete failing tests here, but if we delete them in the | |
129 | ;; arguments then we need to make sure to strip out that phase when it | |
130 | ;; gets inherited by python and python-minimal. | |
131 | (snippet | |
132 | '(begin | |
133 | (for-each delete-file | |
134 | '("Lib/test/test_compileall.py" | |
f0499100 | 135 | "Lib/test/test_ctypes.py" ; fails on mips64el |
10a42aa2 EF |
136 | "Lib/test/test_distutils.py" |
137 | "Lib/test/test_import.py" | |
138 | "Lib/test/test_shutil.py" | |
139 | "Lib/test/test_socket.py" | |
1bb163b0 | 140 | "Lib/test/test_subprocess.py")) |
10a42aa2 | 141 | #t)))) |
02f0c3b2 LC |
142 | (outputs '("out" |
143 | "tk")) ;tkinter; adds 50 MiB to the closure | |
a01b6da7 | 144 | (build-system gnu-build-system) |
3fdc99da | 145 | (arguments |
10a42aa2 | 146 | `(;; 356 tests OK. |
e7e7a1eb EF |
147 | ;; 6 tests failed: |
148 | ;; test_compileall test_distutils test_import test_shutil test_socket | |
149 | ;; test_subprocess | |
150 | ;; 39 tests skipped: | |
ff6f33cf ED |
151 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 |
152 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk | |
e7e7a1eb EF |
153 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses |
154 | ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl | |
155 | ;; test_kqueue test_linuxaudiodev test_macos test_macostools | |
156 | ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet | |
157 | ;; test_socketserver test_startfile test_sunaudiodev test_timeout | |
158 | ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet | |
159 | ;; test_winreg test_winsound test_zipfile64 | |
160 | ;; 4 skips unexpected on linux2: | |
161 | ;; test_bsddb test_bsddb3 test_gdb test_ioctl | |
af807dea | 162 | #:test-target "test" |
3fdc99da | 163 | #:configure-flags |
6a20289d LC |
164 | (list "--enable-shared" ;allow embedding |
165 | "--with-system-ffi" ;build ctypes | |
aaf75c89 | 166 | "--with-ensurepip=install" ;install pip and setuptools |
6a20289d LC |
167 | (string-append "LDFLAGS=-Wl,-rpath=" |
168 | (assoc-ref %outputs "out") "/lib")) | |
fd982732 | 169 | |
d2cc9c7c LC |
170 | #:modules ((ice-9 ftw) (ice-9 match) |
171 | (guix build utils) (guix build gnu-build-system)) | |
fd982732 | 172 | #:phases |
46472ecd MW |
173 | (modify-phases %standard-phases |
174 | (add-before | |
175 | 'configure 'patch-lib-shells | |
176 | (lambda _ | |
177 | ;; Filter for existing files, since some may not exist in all | |
178 | ;; versions of python that are built with this recipe. | |
179 | (substitute* (filter file-exists? | |
180 | '("Lib/subprocess.py" | |
181 | "Lib/popen2.py" | |
182 | "Lib/distutils/tests/test_spawn.py" | |
183 | "Lib/test/test_subprocess.py")) | |
184 | (("/bin/sh") (which "sh"))) | |
dedc8320 LC |
185 | |
186 | ;; Use zero as the timestamp in .pyc files so that builds are | |
187 | ;; deterministic. TODO: Remove it when this variable is set in | |
188 | ;; gnu-build-system.scm. | |
a665996f | 189 | (setenv "SOURCE_DATE_EPOCH" "1") |
46472ecd | 190 | #t)) |
5b4e2791 LC |
191 | (add-before 'configure 'do-not-record-configure-flags |
192 | (lambda* (#:key configure-flags #:allow-other-keys) | |
193 | ;; Remove configure flags from the installed '_sysconfigdata.py' | |
194 | ;; and 'Makefile' so we don't end up keeping references to the | |
195 | ;; build tools. | |
196 | ;; | |
197 | ;; Preserve at least '--with-system-ffi' since otherwise the | |
198 | ;; thing tries to build libffi, fails, and we end up with a | |
199 | ;; Python that lacks ctypes. | |
200 | (substitute* "configure" | |
201 | (("^CONFIG_ARGS=.*$") | |
202 | (format #f "CONFIG_ARGS='~a'\n" | |
203 | (if (member "--with-system-ffi" configure-flags) | |
204 | "--with-system-ffi" | |
205 | "")))) | |
206 | #t)) | |
46472ecd MW |
207 | (add-before |
208 | 'check 'pre-check | |
209 | (lambda _ | |
210 | ;; 'Lib/test/test_site.py' needs a valid $HOME | |
211 | (setenv "HOME" (getcwd)) | |
212 | #t)) | |
213 | (add-after | |
214 | 'unpack 'set-source-file-times-to-1980 | |
215 | ;; XXX One of the tests uses a ZIP library to pack up some of the | |
216 | ;; source tree, and fails with "ZIP does not support timestamps | |
217 | ;; before 1980". Work around this by setting the file times in the | |
218 | ;; source tree to sometime in early 1980. | |
219 | (lambda _ | |
220 | (let ((circa-1980 (* 10 366 24 60 60))) | |
221 | (ftw "." (lambda (file stat flag) | |
222 | (utime file circa-1980 circa-1980) | |
223 | #t)) | |
02f0c3b2 | 224 | #t))) |
9ffe61b0 LC |
225 | (add-after 'install 'remove-tests |
226 | ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* | |
227 | ;; because these files are used by some libraries out there. | |
228 | (lambda* (#:key outputs #:allow-other-keys) | |
229 | (let ((out (assoc-ref outputs "out"))) | |
230 | (match (scandir (string-append out "/lib") | |
231 | (lambda (name) | |
232 | (string-prefix? "python" name))) | |
233 | ((pythonX.Y) | |
234 | (let ((testdir (string-append out "/lib/" pythonX.Y | |
235 | "/test"))) | |
236 | (with-directory-excursion testdir | |
237 | (for-each delete-file-recursively | |
238 | (scandir testdir | |
239 | (match-lambda | |
240 | ((or "." "..") #f) | |
241 | (file | |
242 | (not | |
243 | (string-prefix? "test_support." | |
244 | file)))))) | |
245 | (call-with-output-file "__init__.py" (const #t)) | |
246 | #t))))))) | |
216c283b LC |
247 | (add-before 'strip 'make-libraries-writable |
248 | (lambda* (#:key outputs #:allow-other-keys) | |
249 | ;; Make .so files writable so they can be stripped. | |
250 | (let ((out (assoc-ref outputs "out"))) | |
251 | (for-each (lambda (file) | |
252 | (chmod file #o755)) | |
253 | (find-files (string-append out "/lib") | |
254 | "\\.so")) | |
255 | #t))) | |
02f0c3b2 LC |
256 | (add-after 'install 'move-tk-inter |
257 | (lambda* (#:key outputs #:allow-other-keys) | |
258 | ;; When Tkinter support is built move it to a separate output so | |
259 | ;; that the main output doesn't contain a reference to Tcl/Tk. | |
260 | (let ((out (assoc-ref outputs "out")) | |
261 | (tk (assoc-ref outputs "tk"))) | |
262 | (when tk | |
263 | (match (find-files out "tkinter.*\\.so") | |
264 | ((tkinter.so) | |
265 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we | |
266 | ;; want it under TK/lib/pythonX.Y/site-packages. | |
267 | (let* ((len (string-length out)) | |
268 | (target (string-append | |
269 | tk "/" | |
270 | (string-drop | |
271 | (dirname (dirname tkinter.so)) | |
272 | len) | |
273 | "/site-packages"))) | |
274 | (install-file tkinter.so target) | |
275 | (delete-file tkinter.so))))) | |
276 | #t)))))) | |
a01b6da7 | 277 | (inputs |
3fdc99da CR |
278 | `(("bzip2" ,bzip2) |
279 | ("gdbm" ,gdbm) | |
b10ab723 | 280 | ("libffi" ,libffi) ; for ctypes |
b88e1b0a | 281 | ("sqlite" ,sqlite) ; for sqlite extension |
a01b6da7 | 282 | ("openssl" ,openssl) |
3fdc99da | 283 | ("readline" ,readline) |
afa181ff LC |
284 | ("zlib" ,zlib) |
285 | ("tcl" ,tcl) | |
286 | ("tk" ,tk))) ; for tkinter | |
b10ab723 CR |
287 | (native-inputs |
288 | `(("pkg-config" ,pkg-config))) | |
9be8d7c8 LC |
289 | (native-search-paths |
290 | (list (search-path-specification | |
291 | (variable "PYTHONPATH") | |
af070955 | 292 | (files '("lib/python2.7/site-packages"))))) |
f0499100 | 293 | (home-page "https://www.python.org") |
afa181ff | 294 | (synopsis "High-level, dynamically-typed programming language") |
a01b6da7 NK |
295 | (description |
296 | "Python is a remarkably powerful dynamic programming language that | |
297 | is used in a wide variety of application domains. Some of its key | |
298 | distinguishing features include: clear, readable syntax; strong | |
299 | introspection capabilities; intuitive object orientation; natural | |
300 | expression of procedural code; full modularity, supporting hierarchical | |
301 | packages; exception-based error handling; and very high level dynamic | |
302 | data types.") | |
3f641af0 | 303 | (license license:psfl))) |
acc26ff1 | 304 | |
45848023 HG |
305 | ;; Current 2.x version. |
306 | (define-public python-2 python-2.7) | |
307 | ||
72df6680 | 308 | (define-public python-3.5 |
b24d1cfc | 309 | (package (inherit python-2) |
72df6680 | 310 | (version "3.5.2") |
717003e3 LC |
311 | (source (origin |
312 | (method url-fetch) | |
313 | (uri (string-append "https://www.python.org/ftp/python/" | |
314 | version "/Python-" version ".tar.xz")) | |
fc1adab1 AK |
315 | (patches (search-patches |
316 | "python-fix-tests.patch" | |
72df6680 | 317 | "python-3.5-fix-tests.patch" |
fc1adab1 AK |
318 | "python-3-deterministic-build-info.patch" |
319 | "python-3-search-paths.patch")) | |
717003e3 LC |
320 | (patch-flags '("-p0")) |
321 | (sha256 | |
322 | (base32 | |
72df6680 | 323 | "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400")))) |
1f434457 MW |
324 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
325 | ((#:tests? _) #t))) | |
1aebc0cb AE |
326 | (native-search-paths |
327 | (list (search-path-specification | |
328 | (variable "PYTHONPATH") | |
0e05d01e SB |
329 | (files (list (string-append "lib/python" |
330 | (version-major+minor version) | |
331 | "/site-packages")))))))) | |
f26a77ff | 332 | |
72df6680 LF |
333 | (define-public python-3.4 |
334 | (package (inherit python-3.5) | |
335 | (version "3.4.5") | |
336 | (source (origin | |
337 | (method url-fetch) | |
338 | (uri (string-append "https://www.python.org/ftp/python/" | |
339 | version "/Python-" version ".tar.xz")) | |
340 | (patches (search-patches | |
341 | "python-fix-tests.patch" | |
342 | "python-3.4-fix-tests.patch" | |
343 | "python-3-deterministic-build-info.patch" | |
344 | "python-3-search-paths.patch")) | |
345 | (patch-flags '("-p0")) | |
346 | (sha256 | |
347 | (base32 | |
348 | "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f")))))) | |
349 | ||
45848023 | 350 | ;; Current 3.x version. |
72df6680 | 351 | (define-public python-3 python-3.5) |
45848023 HG |
352 | |
353 | ;; Current major version. | |
354 | (define-public python python-3) | |
355 | ||
95288fcc LC |
356 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
357 | ;; Python (Tk -> libxcb -> Python.) | |
358 | ||
359 | (define-public python2-minimal | |
360 | (package (inherit python-2) | |
361 | (name "python-minimal") | |
02f0c3b2 | 362 | (outputs '("out")) |
95288fcc LC |
363 | (arguments |
364 | (substitute-keyword-arguments (package-arguments python-2) | |
c5a05e31 LC |
365 | ((#:configure-flags cf) |
366 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
367 | (inputs '()))) ;none of the optional dependencies |
368 | ||
369 | (define-public python-minimal | |
898238b9 | 370 | (package (inherit python) |
95288fcc | 371 | (name "python-minimal") |
02f0c3b2 | 372 | (outputs '("out")) |
95288fcc | 373 | |
d0b73960 | 374 | ;; Build fails due to missing ctypes without libffi. |
95288fcc LC |
375 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; |
376 | ;; zlib is required by 'zipimport', used by pip. | |
d0b73960 CAW |
377 | (inputs `(("libffi" ,libffi) |
378 | ("openssl" ,openssl) | |
95288fcc LC |
379 | ("zlib" ,zlib))))) |
380 | ||
64cb064c LC |
381 | (define* (wrap-python3 python |
382 | #:optional | |
383 | (name (string-append (package-name python) "-wrapper"))) | |
898238b9 | 384 | (package (inherit python) |
95288fcc | 385 | (name name) |
898238b9 AE |
386 | (source #f) |
387 | (build-system trivial-build-system) | |
02f0c3b2 | 388 | (outputs '("out")) |
3969ca54 | 389 | (inputs `(("bash" ,bash))) |
3c0f2329 | 390 | (propagated-inputs `(("python" ,python))) |
898238b9 AE |
391 | (arguments |
392 | `(#:modules ((guix build utils)) | |
393 | #:builder | |
394 | (begin | |
395 | (use-modules (guix build utils)) | |
396 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) | |
397 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) | |
398 | (mkdir-p bin) | |
399 | (for-each | |
400 | (lambda (old new) | |
401 | (symlink (string-append python old) | |
402 | (string-append bin "/" new))) | |
3969ca54 SB |
403 | `("python3" ,"pydoc3" ,"idle3" ,"pip3") |
404 | `("python" ,"pydoc" ,"idle" ,"pip")) | |
405 | ;; python-config outputs search paths based upon its location, | |
406 | ;; use a bash wrapper to avoid changing its outputs. | |
407 | (let ((bash (string-append (assoc-ref %build-inputs "bash") | |
408 | "/bin/bash")) | |
409 | (old (string-append python "python3-config")) | |
410 | (new (string-append bin "/python-config"))) | |
411 | (with-output-to-file new | |
412 | (lambda () | |
413 | (format #t "#!~a~%" bash) | |
414 | (format #t "exec \"~a\" \"$@\"~%" old) | |
415 | (chmod new #o755) | |
416 | #t))))))) | |
0d56e3e1 LC |
417 | (synopsis "Wrapper for the Python 3 commands") |
418 | (description | |
419 | "This package provides wrappers for the commands of Python@tie{}3.x such | |
420 | that they can be invoked under their usual name---e.g., @command{python} | |
421 | instead of @command{python3}."))) | |
422 | ||
95288fcc LC |
423 | (define-public python-wrapper (wrap-python3 python)) |
424 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) | |
898238b9 | 425 | |
aaf625b8 RW |
426 | (define-public python-psutil |
427 | (package | |
428 | (name "python-psutil") | |
88535a44 | 429 | (version "4.3.0") |
aaf625b8 RW |
430 | (source |
431 | (origin | |
432 | (method url-fetch) | |
f56777be | 433 | (uri (pypi-uri "psutil" version)) |
aaf625b8 RW |
434 | (sha256 |
435 | (base32 | |
88535a44 | 436 | "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6")))) |
aaf625b8 | 437 | (build-system python-build-system) |
88535a44 | 438 | (home-page "https://www.github.com/giampaolo/psutil") |
aaf625b8 RW |
439 | (synopsis "Library for retrieving information on running processes") |
440 | (description | |
441 | "psutil (Python system and process utilities) is a library for retrieving | |
442 | information on running processes and system utilization (CPU, memory, disks, | |
443 | network) in Python. It is useful mainly for system monitoring, profiling and | |
444 | limiting process resources and management of running processes. It implements | |
445 | many functionalities offered by command line tools such as: ps, top, lsof, | |
446 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, | |
447 | pidof, tty, taskset, pmap.") | |
3f641af0 | 448 | (license license:bsd-3))) |
aaf625b8 RW |
449 | |
450 | (define-public python2-psutil | |
451 | (package-with-python2 python-psutil)) | |
898238b9 | 452 | |
f9da1d8a ED |
453 | (define-public python-passlib |
454 | (package | |
455 | (name "python-passlib") | |
690e8c66 | 456 | (version "1.6.5") |
f9da1d8a ED |
457 | (source |
458 | (origin | |
459 | (method url-fetch) | |
690e8c66 | 460 | (uri (pypi-uri "passlib" version)) |
f9da1d8a ED |
461 | (sha256 |
462 | (base32 | |
690e8c66 | 463 | "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8")))) |
f9da1d8a ED |
464 | (build-system python-build-system) |
465 | (native-inputs | |
f3b98f4f | 466 | `(("python-nose" ,python-nose))) |
f22efa01 | 467 | (propagated-inputs |
f9da1d8a ED |
468 | `(("python-py-bcrypt" ,python-py-bcrypt))) |
469 | (arguments | |
470 | `(#:phases | |
471 | (alist-cons-before | |
472 | 'check 'set-PYTHON_EGG_CACHE | |
473 | ;; some tests require access to "$HOME/.cython" | |
474 | (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp")) | |
475 | %standard-phases))) | |
476 | (home-page "https://bitbucket.org/ecollins/passlib") | |
477 | (synopsis | |
478 | "Comprehensive password hashing framework") | |
479 | (description | |
480 | "Passlib is a password hashing library for Python 2 & 3, which provides | |
481 | cross-platform implementations of over 30 password hashing algorithms, as well | |
482 | as a framework for managing existing password hashes. It's designed to be | |
483 | useful for a wide range of tasks, from verifying a hash found in /etc/shadow, | |
484 | to providing full-strength password hashing for multi-user application.") | |
3f641af0 | 485 | (license license:bsd-3))) |
f9da1d8a ED |
486 | |
487 | (define-public python2-passlib | |
488 | (package-with-python2 python-passlib)) | |
489 | ||
feb0d9c3 ED |
490 | (define-public python-py-bcrypt |
491 | (package | |
492 | (name "python-py-bcrypt") | |
493 | (version "0.4") | |
494 | (source | |
495 | (origin | |
496 | (method url-fetch) | |
497 | (uri (string-append | |
498 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" | |
499 | version | |
500 | ".tar.gz")) | |
501 | (sha256 | |
502 | (base32 | |
503 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) | |
504 | (build-system python-build-system) | |
feb0d9c3 ED |
505 | (home-page "https://code.google.com/p/py-bcrypt") |
506 | (synopsis | |
507 | "Bcrypt password hashing and key derivation") | |
508 | (description | |
509 | "A python wrapper of OpenBSD's Blowfish password hashing code. This | |
510 | system hashes passwords using a version of Bruce Schneier's Blowfish block | |
511 | cipher with modifications designed to raise the cost of off-line password | |
512 | cracking and frustrate fast hardware implementation. The computation cost of | |
513 | the algorithm is parametised, so it can be increased as computers get faster. | |
514 | The intent is to make a compromise of a password database less likely to | |
515 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using | |
516 | John the Ripper).") | |
517 | ;; "sha2.c" is under BSD-3; | |
518 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; | |
519 | ;; the rest is under ISC. | |
3f641af0 | 520 | (license (list license:isc license:bsd-3 license:bsd-4)))) |
feb0d9c3 ED |
521 | |
522 | (define-public python2-py-bcrypt | |
523 | (package-with-python2 python-py-bcrypt)) | |
524 | ||
525 | ||
429fdea1 ED |
526 | (define-public python-paramiko |
527 | (package | |
528 | (name "python-paramiko") | |
81b9bbbd | 529 | (version "1.16.0") |
429fdea1 ED |
530 | (source |
531 | (origin | |
532 | (method url-fetch) | |
81b9bbbd | 533 | (uri (pypi-uri "paramiko" version)) |
429fdea1 ED |
534 | (sha256 |
535 | (base32 | |
81b9bbbd | 536 | "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj")))) |
429fdea1 | 537 | (build-system python-build-system) |
a3fc12da | 538 | (propagated-inputs |
f22efa01 HG |
539 | `(("python-pycrypto" ,python-pycrypto) |
540 | ("python-ecdsa" ,python-ecdsa))) | |
429fdea1 ED |
541 | (home-page "http://www.paramiko.org/") |
542 | (synopsis "SSHv2 protocol library") | |
543 | (description "Paramiko is a python implementation of the SSHv2 protocol, | |
544 | providing both client and server functionality. While it leverages a Python C | |
545 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure | |
546 | Python interface around SSH networking concepts.") | |
3f641af0 | 547 | (license license:lgpl2.1+))) |
429fdea1 ED |
548 | |
549 | (define-public python2-paramiko | |
550 | (package-with-python2 python-paramiko)) | |
551 | ||
552 | ||
de73dbf6 ED |
553 | (define-public python-httplib2 |
554 | (package | |
555 | (name "python-httplib2") | |
286f1bac | 556 | (version "0.9.2") |
de73dbf6 ED |
557 | (source |
558 | (origin | |
559 | (method url-fetch) | |
286f1bac | 560 | (uri (pypi-uri "httplib2" version)) |
de73dbf6 ED |
561 | (sha256 |
562 | (base32 | |
286f1bac | 563 | "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) |
de73dbf6 | 564 | (build-system python-build-system) |
286f1bac | 565 | (home-page "https://github.com/jcgregorio/httplib2") |
de73dbf6 ED |
566 | (synopsis "Comprehensive HTTP client library") |
567 | (description | |
568 | "A comprehensive HTTP client library supporting many features left out of | |
569 | other HTTP libraries.") | |
570 | (license license:expat))) | |
571 | ||
572 | (define-public python2-httplib2 | |
573 | (package-with-python2 python-httplib2)) | |
574 | ||
67039875 ED |
575 | (define-public python-ecdsa |
576 | (package | |
577 | (name "python-ecdsa") | |
578 | (version "0.13") | |
579 | (source | |
580 | (origin | |
581 | (method url-fetch) | |
582 | (uri (string-append | |
583 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" | |
584 | version | |
585 | ".tar.gz")) | |
586 | (sha256 | |
587 | (base32 | |
588 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) | |
589 | (build-system python-build-system) | |
67039875 ED |
590 | (inputs |
591 | `(("openssl" ,openssl))) | |
592 | (home-page | |
593 | "http://github.com/warner/python-ecdsa") | |
594 | (synopsis | |
595 | "ECDSA cryptographic signature library (pure python)") | |
596 | (description | |
597 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic | |
598 | Curve Digital Signature Algorithm), implemented purely in Python. With this | |
599 | library, you can quickly create keypairs (signing key and verifying key), sign | |
600 | messages, and verify the signatures. The keys and signatures are very short, | |
601 | making them easy to handle and incorporate into other protocols.") | |
602 | (license license:expat))) | |
603 | ||
604 | (define-public python2-ecdsa | |
605 | (package-with-python2 python-ecdsa)) | |
606 | ||
52323f32 ED |
607 | (define-public python-ccm |
608 | (package | |
609 | (name "python-ccm") | |
db5567f7 | 610 | (version "2.1.6") |
52323f32 ED |
611 | (source |
612 | (origin | |
613 | (method url-fetch) | |
db5567f7 | 614 | (uri (pypi-uri "ccm" version)) |
52323f32 ED |
615 | (sha256 |
616 | (base32 | |
db5567f7 | 617 | "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n")))) |
52323f32 | 618 | (build-system python-build-system) |
f22efa01 | 619 | (propagated-inputs |
52323f32 | 620 | `(("python-pyyaml" ,python-pyyaml) |
e165f137 HG |
621 | ;; Not listed in setup.py, but used in ccmlib/node.py for full |
622 | ;; functionality | |
623 | ("python-psutil" ,python-psutil) | |
52323f32 ED |
624 | ("python-six" ,python-six))) |
625 | (home-page "https://github.com/pcmanus/ccm") | |
d9a6e221 HG |
626 | (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on |
627 | localhost") | |
628 | (description "Cassandra Cluster Manager is a development tool for testing | |
629 | local Cassandra clusters. It creates, launches and removes Cassandra clusters | |
630 | on localhost.") | |
3f641af0 | 631 | (license license:asl2.0))) |
52323f32 ED |
632 | |
633 | (define-public python2-ccm | |
634 | (package-with-python2 python-ccm)) | |
635 | ||
89114f39 | 636 | (define-public python-pytz |
acc26ff1 | 637 | (package |
89114f39 | 638 | (name "python-pytz") |
61c9babb | 639 | (version "2016.3") |
acc26ff1 CR |
640 | (source |
641 | (origin | |
642 | (method url-fetch) | |
61c9babb | 643 | (uri (pypi-uri "pytz" version ".tar.bz2")) |
acc26ff1 CR |
644 | (sha256 |
645 | (base32 | |
61c9babb | 646 | "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1")))) |
acc26ff1 | 647 | (build-system python-build-system) |
8498b8cf | 648 | (arguments `(#:tests? #f)) ; no test target |
b01bbbcf | 649 | (home-page "http://pythonhosted.org/pytz") |
9e771e3b | 650 | (synopsis "Python timezone library") |
acc26ff1 CR |
651 | (description |
652 | "This library allows accurate and cross platform timezone calculations | |
653 | using Python 2.4 or higher and provides access to the Olson timezone database.") | |
b01bbbcf | 654 | (license license:expat))) |
5ace6e2f | 655 | |
89114f39 | 656 | (define-public python2-pytz |
11bb85a1 | 657 | (package-with-python2 python-pytz)) |
89114f39 | 658 | |
fc50e9c6 | 659 | |
89114f39 | 660 | (define-public python-babel |
5ace6e2f | 661 | (package |
89114f39 | 662 | (name "python-babel") |
3f37db6b | 663 | (version "2.3.2") |
5ace6e2f CR |
664 | (source |
665 | (origin | |
666 | (method url-fetch) | |
b850a6d8 | 667 | (uri (pypi-uri "Babel" version)) |
5ace6e2f CR |
668 | (sha256 |
669 | (base32 | |
3f37db6b | 670 | "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw")))) |
5ace6e2f | 671 | (build-system python-build-system) |
f22efa01 | 672 | (propagated-inputs |
f3b98f4f | 673 | `(("python-pytz" ,python-pytz))) |
8498b8cf | 674 | (arguments `(#:tests? #f)) ; no test target |
e1804763 | 675 | (home-page "http://babel.pocoo.org/") |
5ace6e2f CR |
676 | (synopsis |
677 | "Tools for internationalizing Python applications") | |
678 | (description | |
679 | "Babel is composed of two major parts: | |
680 | - tools to build and work with gettext message catalogs | |
681 | - a Python interface to the CLDR (Common Locale Data Repository), providing | |
682 | access to various locale display names, localized number and date formatting, | |
683 | etc. ") | |
3f641af0 | 684 | (license license:bsd-3))) |
89114f39 AE |
685 | |
686 | (define-public python2-babel | |
11bb85a1 | 687 | (package-with-python2 python-babel)) |
73adf220 | 688 | |
ed377cc6 RW |
689 | (define-public python2-backport-ssl-match-hostname |
690 | (package | |
691 | (name "python2-backport-ssl-match-hostname") | |
f2d06d46 | 692 | (version "3.5.0.1") |
ed377cc6 RW |
693 | (source |
694 | (origin | |
695 | (method url-fetch) | |
696 | (uri (string-append | |
697 | "https://pypi.python.org/packages/source/b/" | |
698 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" | |
699 | version ".tar.gz")) | |
700 | (sha256 | |
701 | (base32 | |
f2d06d46 | 702 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
ed377cc6 | 703 | (build-system python-build-system) |
f2d06d46 EF |
704 | (arguments |
705 | `(#:python ,python-2 | |
706 | #:tests? #f)) ; no test target | |
f2d06d46 EF |
707 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
708 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") | |
ed377cc6 RW |
709 | (description |
710 | "This backport brings the ssl.match_hostname() function to users of | |
711 | earlier versions of Python. The function checks the hostname in the | |
712 | certificate returned by the server to which a connection has been established, | |
713 | and verifies that it matches the intended target hostname.") | |
3f641af0 | 714 | (license license:psfl))) |
ed377cc6 | 715 | |
ef5cbf9b RW |
716 | (define-public python-h5py |
717 | (package | |
718 | (name "python-h5py") | |
fe147c41 | 719 | (version "2.6.0") |
ef5cbf9b RW |
720 | (source |
721 | (origin | |
722 | (method url-fetch) | |
fe147c41 | 723 | (uri (pypi-uri "h5py" version)) |
ef5cbf9b RW |
724 | (sha256 |
725 | (base32 | |
fe147c41 | 726 | "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj")))) |
ef5cbf9b | 727 | (build-system python-build-system) |
797e1401 RW |
728 | (arguments |
729 | `(#:tests? #f ; no test target | |
730 | #:phases | |
731 | (modify-phases %standard-phases | |
732 | (add-after 'unpack 'fix-hdf5-paths | |
733 | (lambda* (#:key inputs #:allow-other-keys) | |
734 | (let ((prefix (assoc-ref inputs "hdf5"))) | |
735 | (substitute* "setup_build.py" | |
736 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") | |
737 | (string-append "['" prefix "/lib" "']")) | |
738 | (("'/opt/local/include', '/usr/local/include'") | |
739 | (string-append "'" prefix "/include" "'"))) | |
740 | (substitute* "setup_configure.py" | |
741 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") | |
742 | (string-append "['" prefix "/lib" "']"))) | |
743 | #t)))))) | |
3c4010b1 | 744 | (propagated-inputs |
69866690 HG |
745 | `(("python-six" ,python-six) |
746 | ("python-numpy" ,python-numpy))) | |
ef5cbf9b | 747 | (inputs |
69866690 | 748 | `(("hdf5" ,hdf5))) |
ef5cbf9b | 749 | (native-inputs |
fe147c41 EF |
750 | `(("python-cython" ,python-cython) |
751 | ("python-pkgconfig" ,python-pkgconfig))) | |
ef5cbf9b RW |
752 | (home-page "http://www.h5py.org/") |
753 | (synopsis "Read and write HDF5 files from Python") | |
754 | (description | |
755 | "The h5py package provides both a high- and low-level interface to the | |
756 | HDF5 library from Python. The low-level interface is intended to be a | |
757 | complete wrapping of the HDF5 API, while the high-level component supports | |
758 | access to HDF5 files, datasets and groups using established Python and NumPy | |
759 | concepts.") | |
9820a028 | 760 | (license license:bsd-3))) |
ef5cbf9b RW |
761 | |
762 | (define-public python2-h5py | |
9820a028 | 763 | (package-with-python2 python-h5py)) |
ef5cbf9b | 764 | |
c1448c69 EB |
765 | (define-public python-lockfile |
766 | (package | |
767 | (name "python-lockfile") | |
692add53 | 768 | (version "0.12.2") |
c1448c69 EB |
769 | (source |
770 | (origin | |
771 | (method url-fetch) | |
772 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" | |
773 | "lockfile-" version ".tar.gz")) | |
774 | (sha256 | |
775 | (base32 | |
692add53 | 776 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
c1448c69 EB |
777 | (build-system python-build-system) |
778 | (arguments '(#:test-target "check")) | |
692add53 BW |
779 | (native-inputs |
780 | `(("python-pbr" ,python-pbr))) | |
6a8f26a4 | 781 | (home-page "https://launchpad.net/pylockfile") |
c1448c69 EB |
782 | (synopsis "Platform-independent file locking module") |
783 | (description | |
784 | "The lockfile package exports a LockFile class which provides a simple | |
785 | API for locking files.") | |
f210e944 | 786 | (license license:expat))) |
c1448c69 EB |
787 | |
788 | (define-public python2-lockfile | |
f210e944 | 789 | (package-with-python2 python-lockfile)) |
c1448c69 | 790 | |
5a1a4bf6 EB |
791 | (define-public python-mock |
792 | (package | |
793 | (name "python-mock") | |
794 | (version "1.0.1") | |
795 | (source | |
796 | (origin | |
797 | (method url-fetch) | |
798 | (uri (string-append "https://pypi.python.org/packages/source/m/mock/" | |
799 | "mock-" version ".tar.gz")) | |
800 | (sha256 | |
801 | (base32 | |
802 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) | |
803 | (build-system python-build-system) | |
804 | (arguments '(#:test-target "check")) | |
07af3e5e | 805 | (home-page "http://code.google.com/p/mock/") |
9e771e3b | 806 | (synopsis "Python mocking and patching library for testing") |
5a1a4bf6 EB |
807 | (description |
808 | "Mock is a library for testing in Python. It allows you to replace parts | |
809 | of your system under test with mock objects and make assertions about how they | |
810 | have been used.") | |
bd3fa666 | 811 | (license license:expat))) |
5a1a4bf6 EB |
812 | |
813 | (define-public python2-mock | |
814 | (package-with-python2 python-mock)) | |
815 | ||
fc50e9c6 | 816 | |
73adf220 AE |
817 | (define-public python-setuptools |
818 | (package | |
819 | (name "python-setuptools") | |
62a9a23b | 820 | (version "18.3.1") |
73adf220 AE |
821 | (source |
822 | (origin | |
823 | (method url-fetch) | |
824 | (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-" | |
825 | version ".tar.gz")) | |
826 | (sha256 | |
827 | (base32 | |
e0ed4579 HG |
828 | "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig")) |
829 | (modules '((guix build utils))) | |
830 | (snippet | |
831 | '(begin | |
832 | ;; Remove included binaries which are used to build self-extracting | |
833 | ;; installers for Windows. | |
834 | ;; TODO: Find some way to build them ourself so we can include them. | |
835 | (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$")) | |
836 | #t)))) | |
73adf220 | 837 | (build-system python-build-system) |
d3d656c5 AE |
838 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
839 | ;; One could bootstrap with an internal untested setuptools. | |
73adf220 | 840 | (arguments |
824af8ca | 841 | `(#:tests? #f)) |
73adf220 AE |
842 | (home-page "https://pypi.python.org/pypi/setuptools") |
843 | (synopsis | |
844 | "Library designed to facilitate packaging Python projects") | |
845 | (description | |
846 | "Setuptools is a fully-featured, stable library designed to facilitate | |
847 | packaging Python projects, where packaging includes: | |
848 | Python package and module definitions, | |
849 | distribution package metadata, | |
850 | test hooks, | |
851 | project installation, | |
852 | platform-specific details, | |
853 | Python 3 support.") | |
3f641af0 | 854 | (license license:psfl))) |
73adf220 AE |
855 | |
856 | (define-public python2-setuptools | |
857 | (package-with-python2 python-setuptools)) | |
fc50e9c6 AE |
858 | |
859 | ||
cafc3f5a EB |
860 | (define-public python-pycrypto |
861 | (package | |
862 | (name "python-pycrypto") | |
863 | (version "2.6.1") | |
864 | (source | |
865 | (origin | |
866 | (method url-fetch) | |
867 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
868 | "pycrypto/pycrypto-" version ".tar.gz")) | |
869 | (sha256 | |
870 | (base32 | |
871 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) | |
872 | (build-system python-build-system) | |
cafc3f5a EB |
873 | (inputs |
874 | `(("python" ,python) | |
875 | ("gmp" ,gmp))) | |
876 | (arguments | |
877 | `(#:phases | |
878 | (alist-cons-before | |
879 | 'build 'set-build-env | |
880 | ;; pycrypto runs an autoconf configure script behind the scenes | |
881 | (lambda _ | |
882 | (setenv "CONFIG_SHELL" (which "bash"))) | |
883 | %standard-phases))) | |
884 | (home-page "http://www.pycrypto.org/") | |
885 | (synopsis "Cryptographic modules for Python") | |
886 | (description | |
887 | "Pycrypto is a collection of both secure hash functions (such as SHA256 | |
888 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, | |
35b9e423 | 889 | etc.). The package is structured to make adding new modules easy.") |
3f641af0 | 890 | (license license:public-domain))) |
cafc3f5a | 891 | |
345f0611 | 892 | (define-public python2-pycrypto |
1c0059da EF |
893 | (let ((pycrypto (package-with-python2 python-pycrypto))) |
894 | (package (inherit pycrypto) | |
895 | (inputs | |
896 | `(("python" ,python-2) | |
897 | ,@(alist-delete | |
898 | "python" | |
899 | (package-inputs pycrypto))))))) | |
345f0611 | 900 | |
cafc3f5a EB |
901 | (define-public python-keyring |
902 | (package | |
903 | (name "python-keyring") | |
13f3ff35 | 904 | (version "8.7") |
cafc3f5a EB |
905 | (source |
906 | (origin | |
907 | (method url-fetch) | |
664e6c3a | 908 | (uri (pypi-uri "keyring" version)) |
cafc3f5a EB |
909 | (sha256 |
910 | (base32 | |
13f3ff35 | 911 | "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx")))) |
cafc3f5a EB |
912 | (build-system python-build-system) |
913 | (native-inputs | |
13f3ff35 | 914 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
f22efa01 | 915 | (propagated-inputs |
cafc3f5a EB |
916 | `(("python-pycrypto" ,python-pycrypto))) |
917 | (arguments | |
664e6c3a | 918 | `(#:tests? #f)) ;TODO: tests require pytest |
190ba6c2 | 919 | (home-page "https://github.com/jaraco/keyring") |
cafc3f5a EB |
920 | (synopsis "Store and access your passwords safely") |
921 | (description | |
922 | "The Python keyring lib provides a easy way to access the system keyring | |
35b9e423 | 923 | service from python. It can be used in any application that needs safe |
cafc3f5a EB |
924 | password storage.") |
925 | ;; "MIT" and PSF dual license | |
f210e944 | 926 | (license license:x11))) |
cafc3f5a | 927 | |
d7af1069 | 928 | (define-public python2-keyring |
f210e944 | 929 | (package-with-python2 python-keyring)) |
d7af1069 | 930 | |
a480bc41 EB |
931 | (define-public python-six |
932 | (package | |
933 | (name "python-six") | |
b6ab89ef | 934 | (version "1.10.0") |
a480bc41 EB |
935 | (source |
936 | (origin | |
937 | (method url-fetch) | |
b6ab89ef | 938 | (uri (pypi-uri "six" version)) |
a480bc41 EB |
939 | (sha256 |
940 | (base32 | |
b6ab89ef | 941 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
a480bc41 | 942 | (build-system python-build-system) |
a480bc41 EB |
943 | (home-page "http://pypi.python.org/pypi/six/") |
944 | (synopsis "Python 2 and 3 compatibility utilities") | |
945 | (description | |
35b9e423 | 946 | "Six is a Python 2 and 3 compatibility library. It provides utility |
a480bc41 EB |
947 | functions for smoothing over the differences between the Python versions with |
948 | the goal of writing Python code that is compatible on both Python versions. | |
35b9e423 | 949 | Six supports every Python version since 2.5. It is contained in only one |
a480bc41 | 950 | Python file, so it can be easily copied into your project.") |
3f641af0 | 951 | (license license:x11))) |
a480bc41 | 952 | |
0c20025c AE |
953 | (define-public python2-six |
954 | (package-with-python2 python-six)) | |
955 | ||
cafc3f5a EB |
956 | (define-public python-dateutil-2 |
957 | (package | |
958 | (name "python-dateutil") | |
394b8060 | 959 | (version "2.5.2") |
cafc3f5a EB |
960 | (source |
961 | (origin | |
962 | (method url-fetch) | |
394b8060 | 963 | (uri (pypi-uri "python-dateutil" version)) |
cafc3f5a EB |
964 | (sha256 |
965 | (base32 | |
394b8060 | 966 | "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86")))) |
cafc3f5a | 967 | (build-system python-build-system) |
f22efa01 | 968 | (propagated-inputs |
394b8060 | 969 | `(("python-six" ,python-six))) |
b5a5fb19 | 970 | (home-page "https://dateutil.readthedocs.io/en/stable/") |
cafc3f5a EB |
971 | (synopsis "Extensions to the standard datetime module") |
972 | (description | |
973 | "The dateutil module provides powerful extensions to the standard | |
974 | datetime module, available in Python 2.3+.") | |
f210e944 | 975 | (license license:bsd-3))) |
cafc3f5a EB |
976 | |
977 | (define-public python2-dateutil-2 | |
f210e944 | 978 | (package-with-python2 python-dateutil-2)) |
cafc3f5a | 979 | |
fc50e9c6 AE |
980 | (define-public python-dateutil |
981 | (package | |
982 | (name "python-dateutil") | |
983 | (version "1.5") ; last version for python < 3 | |
984 | (source | |
985 | (origin | |
986 | (method url-fetch) | |
cafc3f5a EB |
987 | (uri (string-append "http://labix.org/download/python-dateutil/" |
988 | "python-dateutil-" version ".tar.gz")) | |
fc50e9c6 AE |
989 | (sha256 |
990 | (base32 | |
991 | "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0")))) | |
992 | (build-system python-build-system) | |
b5a5fb19 | 993 | (home-page "https://dateutil.readthedocs.io/en/stable/") |
cafc3f5a | 994 | (synopsis "Extensions to the standard datetime module") |
fc50e9c6 AE |
995 | (description |
996 | "The dateutil module provides powerful extensions to the standard | |
997 | datetime module, available in Python 2.3+.") | |
3f641af0 | 998 | (license license:psfl))) |
fc50e9c6 AE |
999 | |
1000 | (define-public python2-dateutil | |
1001 | (package-with-python2 python-dateutil)) | |
1d08c01f | 1002 | |
cafc3f5a EB |
1003 | (define-public python-parsedatetime |
1004 | (package | |
1005 | (name "python-parsedatetime") | |
eebf6f01 | 1006 | (version "2.1") |
cafc3f5a EB |
1007 | (source |
1008 | (origin | |
1009 | (method url-fetch) | |
eebf6f01 | 1010 | (uri (pypi-uri "parsedatetime" version)) |
cafc3f5a EB |
1011 | (sha256 |
1012 | (base32 | |
eebf6f01 | 1013 | "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p")))) |
cafc3f5a EB |
1014 | (build-system python-build-system) |
1015 | (native-inputs | |
eebf6f01 EF |
1016 | `(("python-nose" ,python-nose) |
1017 | ("python-pyicu" ,python-pyicu))) | |
cafc3f5a EB |
1018 | (home-page "http://github.com/bear/parsedatetime/") |
1019 | (synopsis | |
1020 | "Parse human-readable date/time text") | |
1021 | (description | |
e881752c | 1022 | "Parse human-readable date/time text.") |
f210e944 | 1023 | (license license:asl2.0))) |
cafc3f5a | 1024 | |
38b8f9b2 | 1025 | (define-public python2-parsedatetime |
f210e944 | 1026 | (package-with-python2 python-parsedatetime)) |
38b8f9b2 | 1027 | |
d072efcb RW |
1028 | (define-public python-pandas |
1029 | (package | |
1030 | (name "python-pandas") | |
7d0c3c8d | 1031 | (version "0.18.1") |
d072efcb RW |
1032 | (source |
1033 | (origin | |
1b96f069 | 1034 | (method url-fetch) |
7d0c3c8d EF |
1035 | (uri (string-append |
1036 | "https://pypi.python.org/packages/11/09/" | |
1037 | "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/" | |
1038 | "pandas-" version ".tar.gz")) | |
1b96f069 | 1039 | (sha256 |
7d0c3c8d | 1040 | (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j")))) |
d072efcb | 1041 | (build-system python-build-system) |
d072efcb | 1042 | (propagated-inputs |
f22efa01 HG |
1043 | `(("python-numpy" ,python-numpy) |
1044 | ("python-pytz" ,python-pytz) | |
d072efcb RW |
1045 | ("python-dateutil" ,python-dateutil-2))) |
1046 | (native-inputs | |
abcc7a0e HG |
1047 | `(("python-nose" ,python-nose) |
1048 | ("python-cython" ,python-cython))) | |
d072efcb RW |
1049 | (home-page "http://pandas.pydata.org") |
1050 | (synopsis "Data structures for data analysis, time series, and statistics") | |
1051 | (description | |
1052 | "Pandas is a Python package providing fast, flexible, and expressive data | |
1053 | structures designed to make working with structured (tabular, | |
1054 | multidimensional, potentially heterogeneous) and time series data both easy | |
1055 | and intuitive. It aims to be the fundamental high-level building block for | |
1056 | doing practical, real world data analysis in Python.") | |
f210e944 | 1057 | (license license:bsd-3))) |
d072efcb RW |
1058 | |
1059 | (define-public python2-pandas | |
f210e944 | 1060 | (package-with-python2 python-pandas)) |
d072efcb | 1061 | |
cafc3f5a EB |
1062 | (define-public python-tzlocal |
1063 | (package | |
1064 | (name "python-tzlocal") | |
ed80839b | 1065 | (version "1.2.2") |
cafc3f5a EB |
1066 | (source |
1067 | (origin | |
1068 | (method url-fetch) | |
226d3331 | 1069 | (uri (pypi-uri "tzlocal" version)) |
cafc3f5a EB |
1070 | (sha256 |
1071 | (base32 | |
ed80839b | 1072 | "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb")))) |
cafc3f5a | 1073 | (build-system python-build-system) |
f22efa01 HG |
1074 | (propagated-inputs |
1075 | `(("python-pytz" ,python-pytz))) | |
cafc3f5a EB |
1076 | (home-page "https://github.com/regebro/tzlocal") |
1077 | (synopsis | |
35b9e423 | 1078 | "Local timezone information for Python") |
cafc3f5a EB |
1079 | (description |
1080 | "Tzlocal returns a tzinfo object with the local timezone information. | |
1081 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
1082 | get the local timezone information, unless you know the zoneinfo name, and | |
1083 | under several distributions that's hard or impossible to figure out.") | |
3f641af0 | 1084 | (license license:cc0))) |
cafc3f5a | 1085 | |
1d08c01f AE |
1086 | (define-public python2-pysqlite |
1087 | (package | |
1088 | (name "python2-pysqlite") | |
fe476868 | 1089 | (version "2.8.1") |
1d08c01f AE |
1090 | (source |
1091 | (origin | |
1092 | (method url-fetch) | |
fe476868 | 1093 | (uri (pypi-uri "pysqlite" version)) |
1d08c01f AE |
1094 | (sha256 |
1095 | (base32 | |
fe476868 | 1096 | "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm")))) |
1d08c01f AE |
1097 | (build-system python-build-system) |
1098 | (inputs | |
1099 | `(("sqlite" ,sqlite))) | |
1100 | (arguments | |
1101 | `(#:python ,python-2 ; incompatible with Python 3 | |
1102 | #:tests? #f)) ; no test target | |
fe476868 | 1103 | (home-page "http://github.com/ghaering/pysqlite") |
7a03af70 | 1104 | (synopsis "SQLite bindings for Python") |
1d08c01f AE |
1105 | (description |
1106 | "Pysqlite provides SQLite bindings for Python that comply to the | |
1107 | Database API 2.0T.") | |
ed0cdf83 | 1108 | (license license:zlib))) |
1d08c01f | 1109 | |
2875caf5 AE |
1110 | |
1111 | (define-public python2-mechanize | |
1112 | (package | |
1113 | (name "python2-mechanize") | |
1114 | (version "0.2.5") | |
1115 | (source | |
1116 | (origin | |
1117 | (method url-fetch) | |
1118 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" | |
1119 | version ".tar.gz")) | |
1120 | (sha256 | |
1121 | (base32 | |
1122 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) | |
1123 | (build-system python-build-system) | |
2875caf5 AE |
1124 | (arguments |
1125 | `(#:python ,python-2 ; apparently incompatible with Python 3 | |
1126 | #:tests? #f)) | |
1127 | ;; test fails with message | |
1128 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' | |
1129 | ;; (python-3.3.2) or | |
1130 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' | |
1131 | ;; (python-2.7.5). | |
1132 | ;; The source code is from March 2011 and probably not up-to-date | |
1133 | ;; with respect to python unit tests. | |
1134 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") | |
1135 | (synopsis | |
1136 | "Stateful programmatic web browsing in Python") | |
1137 | (description | |
1138 | "Mechanize implements stateful programmatic web browsing in Python, | |
1139 | after Andy Lester’s Perl module WWW::Mechanize.") | |
3f641af0 DC |
1140 | (license (license:non-copyleft |
1141 | "file://COPYING" | |
1142 | "See COPYING in the distribution.")))) | |
2875caf5 | 1143 | |
0352532e AE |
1144 | |
1145 | (define-public python-simplejson | |
1146 | (package | |
1147 | (name "python-simplejson") | |
988d1bad | 1148 | (version "3.8.2") |
0352532e AE |
1149 | (source |
1150 | (origin | |
1151 | (method url-fetch) | |
988d1bad | 1152 | (uri (pypi-uri "simplejson" version)) |
0352532e AE |
1153 | (sha256 |
1154 | (base32 | |
988d1bad | 1155 | "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m")))) |
0352532e AE |
1156 | (build-system python-build-system) |
1157 | (home-page "http://simplejson.readthedocs.org/en/latest/") | |
1158 | (synopsis | |
1159 | "Json library for Python") | |
1160 | (description | |
e881752c AK |
1161 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
1162 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange | |
1163 | format. | |
0352532e AE |
1164 | |
1165 | Simplejson exposes an API familiar to users of the standard library marshal | |
1166 | and pickle modules. It is the externally maintained version of the json | |
1167 | library contained in Python 2.6, but maintains compatibility with Python 2.5 | |
1168 | and (currently) has significant performance advantages, even without using | |
1169 | the optional C extension for speedups. Simplejson is also supported on | |
1170 | Python 3.3+.") | |
3f641af0 | 1171 | (license license:x11))) |
0352532e AE |
1172 | |
1173 | (define-public python2-simplejson | |
1174 | (package-with-python2 python-simplejson)) | |
421a80a2 AE |
1175 | |
1176 | ||
ed07b08d | 1177 | (define-public python-pyicu |
421a80a2 | 1178 | (package |
ed07b08d | 1179 | (name "python-pyicu") |
d3b29319 | 1180 | (version "1.9.2") |
421a80a2 AE |
1181 | (source |
1182 | (origin | |
1183 | (method url-fetch) | |
1184 | (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-" | |
1185 | version ".tar.gz")) | |
1186 | (sha256 | |
1187 | (base32 | |
d3b29319 | 1188 | "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v")))) |
421a80a2 AE |
1189 | (build-system python-build-system) |
1190 | (inputs | |
1191 | `(("icu4c" ,icu4c))) | |
421a80a2 | 1192 | (home-page "http://pyicu.osafoundation.org/") |
9e771e3b | 1193 | (synopsis "Python extension wrapping the ICU C++ API") |
421a80a2 AE |
1194 | (description |
1195 | "PyICU is a python extension wrapping the ICU C++ API.") | |
f210e944 | 1196 | (license license:x11))) |
ed07b08d LF |
1197 | |
1198 | (define-public python2-pyicu | |
f210e944 | 1199 | (package-with-python2 python-pyicu)) |
cc20a22a LC |
1200 | |
1201 | (define-public python2-dogtail | |
1202 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and | |
1203 | ;; spaces in indentation" with Python 3. | |
1204 | (package | |
1205 | (name "python2-dogtail") | |
1206 | (version "0.8.2") | |
1207 | (source (origin | |
1208 | (method url-fetch) | |
1209 | (uri (string-append | |
1210 | "https://fedorahosted.org/released/dogtail/dogtail-" | |
1211 | version ".tar.gz")) | |
1212 | (sha256 | |
1213 | (base32 | |
1214 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) | |
1215 | (build-system python-build-system) | |
1216 | (arguments `(#:python ,python-2 | |
1217 | #:tests? #f)) ; invalid command "test" | |
1218 | (home-page "https://fedorahosted.org/dogtail/") | |
1219 | (synopsis "GUI test tool and automation framework written in Python") | |
1220 | (description | |
35b9e423 | 1221 | "Dogtail is a GUI test tool and automation framework written in Python. |
cc20a22a LC |
1222 | It uses Accessibility (a11y) technologies to communicate with desktop |
1223 | applications. dogtail scripts are written in Python and executed like any | |
1224 | other Python program.") | |
3f641af0 | 1225 | (license license:gpl2+))) |
515e6878 | 1226 | |
011b18c3 LC |
1227 | (define-public python2-empy |
1228 | (package | |
1229 | (name "python2-empy") | |
1230 | (version "3.3") | |
1231 | (source (origin | |
1232 | (method url-fetch) | |
1233 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" | |
1234 | version ".tar.gz")) | |
1235 | (sha256 | |
1236 | (base32 | |
1237 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) | |
1238 | (build-system python-build-system) | |
1239 | (arguments | |
1240 | `(#:python ,python-2 | |
1241 | #:phases (alist-replace | |
1242 | 'check | |
1243 | (lambda _ | |
1244 | (zero? (system* "./test.sh"))) | |
1245 | %standard-phases))) | |
1246 | (home-page "http://www.alcyone.com/software/empy/") | |
1247 | (synopsis "Templating system for Python") | |
1248 | (description | |
1249 | "EmPy is a system for embedding Python expressions and statements in | |
1250 | template text; it takes an EmPy source file, processes it, and produces | |
1251 | output. This is accomplished via expansions, which are special signals to the | |
1cd4027c | 1252 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
011b18c3 LC |
1253 | EmPy can expand arbitrary Python expressions and statements in this way, as |
1254 | well as a variety of special forms. Textual data not explicitly delimited in | |
1255 | this way is sent unaffected to the output, allowing Python to be used in | |
1256 | effect as a markup language. Also supported are callbacks via hooks, | |
1257 | recording and playback via diversions, and dynamic, chainable filters. The | |
1258 | system is highly configurable via command line options and embedded | |
1259 | commands.") | |
3f641af0 | 1260 | (license license:lgpl2.1+))) |
011b18c3 | 1261 | |
8deeda0c LC |
1262 | (define-public python2-element-tree |
1263 | (package | |
1264 | (name "python2-element-tree") | |
1265 | (version "1.2.6") | |
1266 | (source (origin | |
1267 | (method url-fetch) | |
1268 | (uri (string-append | |
1269 | "http://effbot.org/media/downloads/elementtree-" | |
1270 | version "-20050316.tar.gz")) | |
1271 | (sha256 | |
1272 | (base32 | |
1273 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) | |
1274 | (build-system python-build-system) | |
1275 | (arguments | |
1276 | `(#:python ,python-2 ; seems to be part of Python 3 | |
1277 | #:tests? #f)) ; no 'test' sub-command | |
1278 | (synopsis "Toolkit for XML processing in Python") | |
1279 | (description | |
1280 | "ElementTree is a Python library supporting lightweight XML processing.") | |
1281 | (home-page "http://effbot.org/zone/element-index.htm") | |
3f641af0 DC |
1282 | (license (license:x11-style |
1283 | "http://docs.python.org/2/license.html" | |
1284 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) | |
8deeda0c LC |
1285 | |
1286 | (define-public python2-pybugz | |
1287 | (package | |
1288 | (name "python2-pybugz") | |
1289 | (version "0.6.11") | |
1290 | (source (origin | |
1291 | (method url-fetch) | |
1292 | (uri (string-append | |
1293 | "http://bits.liquidx.net/projects/pybugz/pybugz-" | |
1294 | version ".tar.gz")) | |
1295 | (sha256 | |
1296 | (base32 | |
6f194a1e | 1297 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
fc1adab1 AK |
1298 | (patches (search-patches "pybugz-stty.patch" |
1299 | "pybugz-encode-error.patch")))) | |
8deeda0c LC |
1300 | (build-system python-build-system) |
1301 | (arguments | |
1302 | `(#:python ,python-2 ; SyntaxError with Python 3 | |
1303 | #:tests? #f)) ; no 'test' sub-command | |
f22efa01 HG |
1304 | (propagated-inputs |
1305 | `(("element-tree" ,python2-element-tree))) | |
8deeda0c LC |
1306 | (synopsis "Python and command-line interface to Bugzilla") |
1307 | (description | |
1308 | "PyBugz is a Python library and command-line tool to query the Bugzilla | |
1309 | bug tracking system. It is meant as an aid to speed up interaction with the | |
1310 | bug tracker.") | |
1311 | (home-page "http://www.liquidx.net/pybugz/") | |
3f641af0 | 1312 | (license license:gpl2))) |
8deeda0c | 1313 | |
a480bc41 EB |
1314 | (define-public python-enum34 |
1315 | (package | |
1316 | (name "python-enum34") | |
d39ae1e5 | 1317 | (version "1.1.0") |
a480bc41 EB |
1318 | (source |
1319 | (origin | |
1320 | (method url-fetch) | |
d39ae1e5 | 1321 | (uri (pypi-uri "enum34" version)) |
a480bc41 EB |
1322 | (sha256 |
1323 | (base32 | |
d39ae1e5 | 1324 | "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp")))) |
a480bc41 | 1325 | (build-system python-build-system) |
a480bc41 EB |
1326 | (arguments |
1327 | `(#:phases | |
1328 | (alist-replace | |
1329 | 'check | |
1330 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) | |
1331 | %standard-phases))) | |
1332 | (home-page "https://pypi.python.org/pypi/enum34") | |
1333 | (synopsis "Backported Python 3.4 Enum") | |
1334 | (description | |
1335 | "Enum34 is the new Python stdlib enum module available in Python 3.4 | |
1336 | backported for previous versions of Python from 2.4 to 3.3.") | |
3f641af0 | 1337 | (license license:bsd-3))) |
a480bc41 | 1338 | |
820acd1b LF |
1339 | (define-public python2-enum34 |
1340 | (package-with-python2 python-enum34)) | |
1341 | ||
a480bc41 EB |
1342 | (define-public python-parse-type |
1343 | (package | |
1344 | (name "python-parse-type") | |
1345 | (version "0.3.4") | |
1346 | (source | |
1347 | (origin | |
1348 | (method url-fetch) | |
1349 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1350 | "parse_type/parse_type-" version ".tar.gz")) | |
1351 | (sha256 | |
1352 | (base32 | |
1353 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) | |
1354 | (build-system python-build-system) | |
f22efa01 | 1355 | (propagated-inputs |
f3b98f4f | 1356 | `(("python-six" ,python-six) |
68f1cdec | 1357 | ("python-parse" ,python-parse))) |
a480bc41 EB |
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.") | |
3f641af0 | 1363 | (license license:bsd-3))) |
a480bc41 EB |
1364 | |
1365 | (define-public python-parse | |
1366 | (package | |
1367 | (name "python-parse") | |
eb3d3503 | 1368 | (version "1.6.6") |
a480bc41 EB |
1369 | (source |
1370 | (origin | |
1371 | (method url-fetch) | |
eb3d3503 | 1372 | (uri (pypi-uri "parse" version)) |
a480bc41 EB |
1373 | (sha256 |
1374 | (base32 | |
aa6c09ed EF |
1375 | "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi")) |
1376 | (patches (search-patches "python-parse-too-many-fields.patch")))) | |
a480bc41 EB |
1377 | (build-system python-build-system) |
1378 | (arguments | |
1379 | `(#:phases | |
f9a65318 EF |
1380 | (modify-phases %standard-phases |
1381 | (replace 'check | |
1382 | (lambda _ (zero? (system* "python" "test_parse.py"))))))) | |
a480bc41 EB |
1383 | (home-page "https://github.com/r1chardj0n3s/parse") |
1384 | (synopsis "Parse strings") | |
1385 | (description | |
1386 | "Parse strings using a specification based on the Python format() | |
1387 | syntax.") | |
3f641af0 | 1388 | (license license:x11))) |
a480bc41 EB |
1389 | |
1390 | ||
515e6878 LC |
1391 | (define-public scons |
1392 | (package | |
1393 | (name "scons") | |
a3f61425 | 1394 | (version "2.3.4") |
515e6878 LC |
1395 | (source (origin |
1396 | (method url-fetch) | |
de67e922 LF |
1397 | (uri (string-append "mirror://sourceforge/scons/scons/" version |
1398 | "/scons-" version ".tar.gz")) | |
515e6878 LC |
1399 | (sha256 |
1400 | (base32 | |
a3f61425 | 1401 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
515e6878 LC |
1402 | (build-system python-build-system) |
1403 | (arguments | |
1404 | ;; With Python 3.x, fails to build with a syntax error. | |
1405 | `(#:python ,python-2 | |
b3e8b4bd | 1406 | #:use-setuptools? #f ; still relies on distutils |
515e6878 LC |
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.") | |
3f641af0 | 1416 | (license 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) | |
c15a5c0e DT |
1432 | (arguments |
1433 | ;; error in setup.cfg: command 'test' has no such option 'buffer' | |
1434 | '(#:tests? #f)) | |
1435 | (home-page "https://github.com/testing-cabal/extras") | |
1436 | (synopsis "Useful extensions to the Python standard library") | |
1437 | (description | |
1438 | "Extras is a set of extensions to the Python standard library.") | |
bd3fa666 | 1439 | (license license:expat))) |
c15a5c0e DT |
1440 | |
1441 | (define-public python2-extras | |
1442 | (package-with-python2 python-extras)) | |
1443 | ||
56ea0efd DT |
1444 | (define-public python-mimeparse |
1445 | (package | |
1446 | (name "python-mimeparse") | |
1447 | (version "0.1.4") | |
1448 | (source | |
1449 | (origin | |
1450 | (method url-fetch) | |
1451 | (uri (string-append | |
1452 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" | |
1453 | version ".tar.gz")) | |
1454 | (sha256 | |
1455 | (base32 | |
1456 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) | |
1457 | (build-system python-build-system) | |
56ea0efd DT |
1458 | (arguments |
1459 | '(#:tests? #f)) ; no setup.py test command | |
1460 | (home-page | |
1461 | "https://github.com/dbtsai/python-mimeparse") | |
9e771e3b | 1462 | (synopsis "Python library for parsing MIME types") |
56ea0efd DT |
1463 | (description |
1464 | "Mimeparse provides basic functions for parsing MIME type names and | |
1465 | matching them against a list of media-ranges.") | |
bd3fa666 | 1466 | (license license:expat))) |
56ea0efd DT |
1467 | |
1468 | (define-public python2-mimeparse | |
1469 | (package-with-python2 python-mimeparse)) | |
1470 | ||
4435427e DT |
1471 | (define-public python-nose |
1472 | (package | |
1473 | (name "python-nose") | |
f7cb9841 | 1474 | (version "1.3.7") |
4435427e DT |
1475 | (source |
1476 | (origin | |
1477 | (method url-fetch) | |
f7cb9841 | 1478 | (uri (pypi-uri "nose" version)) |
4435427e DT |
1479 | (sha256 |
1480 | (base32 | |
f7cb9841 | 1481 | "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi")))) |
4435427e | 1482 | (build-system python-build-system) |
4435427e DT |
1483 | (arguments |
1484 | '(#:tests? #f)) ; FIXME: test suite fails | |
1485 | (home-page "http://readthedocs.org/docs/nose/") | |
1486 | (synopsis "Python testing library") | |
1487 | (description | |
1488 | "Nose extends the unittest library to make testing easier.") | |
3f641af0 | 1489 | (license license:lgpl2.0+))) |
4435427e DT |
1490 | |
1491 | (define-public python2-nose | |
1492 | (package-with-python2 python-nose)) | |
1493 | ||
0aea283a EF |
1494 | (define-public python-nose2 |
1495 | (package | |
1496 | (name "python-nose2") | |
1497 | (version "0.6.5") | |
1498 | (source | |
1499 | (origin | |
1500 | (method url-fetch) | |
1501 | (uri (pypi-uri "nose2" version)) | |
1502 | (sha256 | |
1503 | (base32 | |
1504 | "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7")))) | |
1505 | (build-system python-build-system) | |
1506 | (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector' | |
f22efa01 | 1507 | (propagated-inputs |
0aea283a EF |
1508 | `(("python-cov-core" ,python-cov-core) |
1509 | ("python-pytest-cov" ,python-pytest-cov) | |
1510 | ("python-six" ,python-six))) | |
1511 | (home-page "https://github.com/nose-devs/nose2") | |
1512 | (synopsis "Next generation of nicer testing for Python") | |
1513 | (description | |
1514 | "Nose2 is the next generation of nicer testing for Python, based on the | |
1515 | plugins branch of unittest2. Nose2 aims to improve on nose by providing a | |
1516 | better plugin api, being easier for users to configure, and simplifying internal | |
1517 | interfaces and processes.") | |
1518 | (license license:bsd-2))) | |
1519 | ||
1520 | (define-public python2-nose2 | |
1521 | (package-with-python2 python-nose2)) | |
1522 | ||
6cd9c356 DT |
1523 | (define-public python-unittest2 |
1524 | (package | |
1525 | (name "python-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/unittest2py3k/unittest2py3k-" | |
1532 | version ".tar.gz")) | |
1533 | (sha256 | |
1534 | (base32 | |
1535 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) | |
1536 | (build-system python-build-system) | |
6cd9c356 DT |
1537 | (home-page "http://pypi.python.org/pypi/unittest2") |
1538 | (synopsis "Python unit testing library") | |
1539 | (description | |
1540 | "Unittest2 is a replacement for the unittest module in the Python | |
1541 | standard library.") | |
3f641af0 | 1542 | (license license:psfl))) |
6cd9c356 DT |
1543 | |
1544 | (define-public python2-unittest2 | |
1545 | (package (inherit python-unittest2) | |
1546 | (name "python2-unittest2") | |
1547 | (version "0.5.1") | |
1548 | (source | |
1549 | (origin | |
1550 | (method url-fetch) | |
1551 | (uri (string-append | |
1552 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" | |
1553 | version ".tar.gz")) | |
1554 | (sha256 | |
1555 | (base32 | |
1556 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) | |
6cd9c356 DT |
1557 | (arguments |
1558 | `(#:python ,python-2 | |
1559 | #:tests? #f)))) ; no setup.py test command | |
1560 | ||
02f8f804 | 1561 | (define-public python-pafy |
1562 | (package | |
1563 | (name "python-pafy") | |
1564 | (version "0.5.2") | |
1565 | (source | |
1566 | (origin | |
1567 | (method url-fetch) | |
1568 | (uri (pypi-uri "pafy" version)) | |
1569 | (sha256 | |
1570 | (base32 | |
1571 | "1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i")))) | |
1572 | (build-system python-build-system) | |
1573 | (propagated-inputs | |
1574 | ;; Youtube-dl is a python package which is imported in the file | |
1575 | ;; "backend_youtube_dl.py", therefore it needs to be propagated. | |
1576 | `(("youtube-dl" ,youtube-dl))) | |
1577 | (home-page "https://np1.github.io/pafy/") | |
1578 | (synopsis "Retrieve YouTube content and metadata") | |
1579 | (description | |
1580 | "@code{pafy} is a python library to retrieve YouTube content and metadata.") | |
1581 | (license license:lgpl3+))) | |
1582 | ||
542ad60f DT |
1583 | (define-public python-py |
1584 | (package | |
1585 | (name "python-py") | |
71c8a804 | 1586 | (version "1.4.31") |
542ad60f DT |
1587 | (source |
1588 | (origin | |
1589 | (method url-fetch) | |
71c8a804 | 1590 | (uri (pypi-uri "py" version)) |
542ad60f DT |
1591 | (sha256 |
1592 | (base32 | |
71c8a804 | 1593 | "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56")))) |
542ad60f | 1594 | (build-system python-build-system) |
542ad60f DT |
1595 | (home-page "http://pylib.readthedocs.org/") |
1596 | (synopsis "Python library for parsing, I/O, instrospection, and logging") | |
1597 | (description | |
1598 | "Py is a Python library for file name parsing, .ini file parsing, I/O, | |
1599 | code introspection, and logging.") | |
bd3fa666 | 1600 | (license license:expat))) |
542ad60f DT |
1601 | |
1602 | (define-public python2-py | |
1603 | (package-with-python2 python-py)) | |
1604 | ||
855d4761 DT |
1605 | (define-public python-pytest |
1606 | (package | |
1607 | (name "python-pytest") | |
61a4332d | 1608 | (version "2.7.3") |
855d4761 DT |
1609 | (source |
1610 | (origin | |
1611 | (method url-fetch) | |
1612 | (uri (string-append | |
1613 | "https://pypi.python.org/packages/source/p/pytest/pytest-" | |
1614 | version ".tar.gz")) | |
1615 | (sha256 | |
1616 | (base32 | |
61a4332d | 1617 | "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm")) |
855d4761 DT |
1618 | (modules '((guix build utils))) |
1619 | (snippet | |
1620 | ;; One of the tests involves the /usr directory, so it fails. | |
1621 | '(substitute* "testing/test_argcomplete.py" | |
1622 | (("def test_remove_dir_prefix\\(self\\):") | |
1623 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) | |
1624 | (build-system python-build-system) | |
482d9591 HG |
1625 | (propagated-inputs |
1626 | `(("python-py" ,python-py))) | |
e7881f3d | 1627 | (native-inputs |
482d9591 | 1628 | `(("python-nose" ,python-nose) |
855d4761 DT |
1629 | ("python-mock" ,python-mock))) |
1630 | (home-page "http://pytest.org") | |
1631 | (synopsis "Python testing library") | |
1632 | (description | |
1633 | "Pytest is a testing tool that provides auto-discovery of test modules | |
1634 | and functions, detailed info on failing assert statements, modular fixtures, | |
1635 | and many external plugins.") | |
bd3fa666 | 1636 | (license license:expat))) |
855d4761 DT |
1637 | |
1638 | (define-public python2-pytest | |
1639 | (package-with-python2 python-pytest)) | |
1640 | ||
fca4ff35 LF |
1641 | ;; This package is used by Borg until we can upgrade all our Python packages to |
1642 | ;; use a more recent pytest. | |
1643 | (define-public python-pytest-2.9.2 | |
1644 | (package | |
1645 | (inherit python-pytest) | |
1646 | (name "python-pytest") | |
1647 | (version "2.9.2") | |
1648 | (source (origin | |
1649 | (method url-fetch) | |
1650 | (uri (pypi-uri "pytest" version)) | |
1651 | (sha256 | |
1652 | (base32 | |
1653 | "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j")))) | |
1654 | (arguments | |
1655 | `(#:phases | |
1656 | (modify-phases %standard-phases | |
1657 | (add-before 'check 'disable-invalid-test | |
1658 | (lambda _ | |
1659 | (substitute* "testing/test_argcomplete.py" | |
1660 | (("def test_remove_dir_prefix" line) | |
1661 | (string-append "@pytest.mark.skip" | |
1662 | "(reason=\"Assumes that /usr exists.\")\n " | |
1663 | line))) | |
1664 | #t))))))) | |
1665 | ||
358c3d61 EF |
1666 | (define-public python-pytest-cov |
1667 | (package | |
1668 | (name "python-pytest-cov") | |
545f4a1c | 1669 | (version "2.2.1") |
358c3d61 EF |
1670 | (source |
1671 | (origin | |
1672 | (method url-fetch) | |
1673 | (uri (pypi-uri "pytest-cov" version)) | |
1674 | (sha256 | |
545f4a1c EF |
1675 | (base32 |
1676 | "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8")))) | |
10468636 | 1677 | (build-system python-build-system) |
ce40b383 HG |
1678 | (arguments |
1679 | `(#:phases | |
1680 | (modify-phases %standard-phases | |
1681 | (replace 'check | |
1682 | (lambda _ | |
1683 | ;; options taken from tox.ini | |
1684 | ;; TODO: make "--restructuredtext" tests pass. They currently fail | |
1685 | ;; with "Duplicate implicit target name" | |
1686 | (zero? (system* "python" "./setup.py" "check" | |
1687 | "--strict" "--metadata"))))))) | |
f22efa01 | 1688 | (propagated-inputs |
10468636 EF |
1689 | `(("python-coverage" ,python-coverage) |
1690 | ("python-pytest" ,python-pytest))) | |
10468636 EF |
1691 | (home-page "https://github.com/pytest-dev/pytest-cov") |
1692 | (synopsis "Pytest plugin for measuring coverage") | |
1693 | (description | |
1694 | "Pytest-cov produces coverage reports. It supports centralised testing and | |
1695 | distributed testing in both @code{load} and @code{each} modes. It also | |
1696 | supports coverage of subprocesses.") | |
f210e944 | 1697 | (license license:expat))) |
358c3d61 EF |
1698 | |
1699 | (define-public python2-pytest-cov | |
f210e944 | 1700 | (package-with-python2 python-pytest-cov)) |
358c3d61 | 1701 | |
6784f2e3 RW |
1702 | (define-public python-pytest-runner |
1703 | (package | |
1704 | (name "python-pytest-runner") | |
1705 | (version "2.6.2") | |
1706 | (source | |
1707 | (origin | |
1708 | (method url-fetch) | |
54cd239b | 1709 | (uri (pypi-uri "pytest-runner" version)) |
6784f2e3 RW |
1710 | (sha256 |
1711 | (base32 | |
1712 | "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) | |
1713 | (build-system python-build-system) | |
1714 | (arguments | |
1715 | `(#:phases | |
1716 | (modify-phases %standard-phases | |
1717 | ;; The fancy way of setting the version with setuptools_scm does not | |
1718 | ;; seem to work here. | |
1719 | (add-after 'unpack 'set-version | |
1720 | (lambda _ | |
1721 | (substitute* "docs/conf.py" | |
1722 | (("version = setuptools_scm\\.get_version\\(root='\\.\\.')") | |
1723 | (string-append "version = \"" ,version "\""))) | |
1724 | #t))))) | |
1725 | (native-inputs | |
1726 | `(("python-pytest" ,python-pytest) | |
1727 | ("python-setuptools-scm" ,python-setuptools-scm))) | |
54cd239b | 1728 | (home-page "https://github.com/pytest-dev/pytest-runner") |
6784f2e3 RW |
1729 | (synopsis "Invoke py.test as a distutils command") |
1730 | (description | |
1731 | "This package provides a @command{pytest-runner} command that | |
1732 | @file{setup.py} files can use to run tests.") | |
f210e944 | 1733 | (license license:expat))) |
54cd239b EF |
1734 | |
1735 | (define-public python2-pytest-runner | |
f210e944 | 1736 | (package-with-python2 python-pytest-runner)) |
6784f2e3 | 1737 | |
44547e51 EF |
1738 | (define-public python-pytest-mock |
1739 | (package | |
1740 | (name "python-pytest-mock") | |
1741 | (version "1.2") | |
1742 | (source | |
1743 | (origin | |
1744 | (method url-fetch) | |
1745 | (uri (pypi-uri "pytest-mock" version ".zip")) | |
1746 | (sha256 | |
1747 | (base32 | |
1748 | "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp")))) | |
1749 | (build-system python-build-system) | |
1750 | (native-inputs | |
1751 | `(("unzip" ,unzip))) | |
f22efa01 | 1752 | (propagated-inputs |
d5e41cf2 | 1753 | `(("python-pytest" ,python-pytest))) |
44547e51 EF |
1754 | (home-page "https://github.com/pytest-dev/pytest-mock/") |
1755 | (synopsis "Thin-wrapper around the mock package for easier use with py.test") | |
1756 | (description | |
1757 | "This plugin installs a @code{mocker} fixture which is a thin-wrapper | |
1758 | around the patching API provided by the @code{mock} package, but with the | |
1759 | benefit of not having to worry about undoing patches at the end of a test. | |
1760 | The mocker fixture has the same API as @code{mock.patch}, supporting the | |
1761 | same arguments.") | |
1762 | (properties `((python2-variant . ,(delay python2-pytest-mock)))) | |
1763 | (license license:expat))) | |
1764 | ||
1765 | (define-public python2-pytest-mock | |
1766 | (let ((base (package-with-python2 | |
1767 | (strip-python2-variant python-pytest-mock)))) | |
1768 | (package (inherit base) | |
f22efa01 | 1769 | (propagated-inputs |
44547e51 | 1770 | `(("python2-mock" ,python2-mock) |
f22efa01 | 1771 | ,@(package-propagated-inputs base)))))) |
44547e51 | 1772 | |
8fa58fc9 CAW |
1773 | (define-public python-pytest-xdist |
1774 | (package | |
1775 | (name "python-pytest-xdist") | |
1776 | (version "1.14") | |
1777 | (source | |
1778 | (origin | |
1779 | (method url-fetch) | |
1780 | (uri (pypi-uri "pytest-xdist" version ".zip")) | |
1781 | (sha256 | |
1782 | (base32 | |
de585a7e HG |
1783 | "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja")) |
1784 | (modules '((guix build utils))) | |
1785 | (snippet | |
1786 | '(begin | |
1787 | ;; Remove pre-compiled .pyc files from source. | |
1788 | (for-each delete-file-recursively | |
1789 | (find-files "." "__pycache__" #:directories? #t)) | |
1790 | (for-each delete-file (find-files "." "\\.pyc$")) | |
1791 | #t)))) | |
8fa58fc9 CAW |
1792 | (build-system python-build-system) |
1793 | (native-inputs | |
1794 | `(("unzip" ,unzip) | |
8fa58fc9 | 1795 | ("python-setuptools-scm" ,python-setuptools-scm))) |
f22efa01 | 1796 | (propagated-inputs |
c4516ad2 | 1797 | `(("python-execnet" ,python-execnet) |
8fa58fc9 CAW |
1798 | ("python-pytest" ,python-pytest) |
1799 | ("python-py" ,python-py))) | |
1800 | (home-page | |
1801 | "https://github.com/pytest-dev/pytest-xdist") | |
1802 | (synopsis | |
1803 | "Plugin for py.test with distributed testing and loop-on-failing modes") | |
1804 | (description | |
1805 | "The pytest-xdist plugin extends py.test with some unique test execution | |
1806 | modes: parallelization, running tests in boxed subprocesses, the ability | |
1807 | to run tests repeatedly when failed, and the ability to run tests on multiple | |
1808 | Python interpreters or platforms. It uses rsync to copy the existing | |
1809 | program code to a remote location, executes there, and then syncs the | |
1810 | result back.") | |
f210e944 | 1811 | (license license:expat))) |
8fa58fc9 CAW |
1812 | |
1813 | (define-public python2-pytest-xdist | |
f210e944 | 1814 | (package-with-python2 python-pytest-xdist)) |
8fa58fc9 | 1815 | |
84d24017 DT |
1816 | (define-public python-scripttest |
1817 | (package | |
1818 | (name "python-scripttest") | |
1819 | (version "1.3") | |
1820 | (source | |
1821 | (origin | |
1822 | (method url-fetch) | |
1823 | (uri (string-append | |
1824 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" | |
1825 | version ".tar.gz")) | |
1826 | (sha256 | |
1827 | (base32 | |
1828 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) | |
1829 | (build-system python-build-system) | |
521b7772 | 1830 | (native-inputs |
f3b98f4f | 1831 | `(("python-pytest" ,python-pytest))) |
84d24017 DT |
1832 | (home-page "http://pythonpaste.org/scripttest/") |
1833 | (synopsis "Python library to test command-line scripts") | |
1834 | (description "Scripttest is a Python helper library for testing | |
1835 | interactive command-line applications. With it you can run a script in a | |
1836 | subprocess and see the output as well as any file modifications.") | |
bd3fa666 | 1837 | (license license:expat))) |
84d24017 DT |
1838 | |
1839 | (define-public python2-scripttest | |
1840 | (package-with-python2 python-scripttest)) | |
1841 | ||
d8fa80e1 DT |
1842 | (define-public python-testtools |
1843 | (package | |
1844 | (name "python-testtools") | |
1845 | (version "1.0.0") | |
1846 | (source | |
1847 | (origin | |
1848 | (method url-fetch) | |
1849 | (uri (string-append | |
1850 | "https://pypi.python.org/packages/source/t/testtools/testtools-" | |
1851 | version ".tar.gz")) | |
1852 | (sha256 | |
1853 | (base32 | |
1854 | "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx")))) | |
1855 | (build-system python-build-system) | |
0e88cbf8 | 1856 | (propagated-inputs |
f22efa01 HG |
1857 | `(("python-mimeparse" ,python-mimeparse) |
1858 | ("python-extras" ,python-extras))) | |
d8fa80e1 DT |
1859 | (home-page "https://github.com/testing-cabal/testtools") |
1860 | (synopsis | |
1861 | "Extensions to the Python standard library unit testing framework") | |
1862 | (description | |
1863 | "Testtools extends the Python standard library unit testing framework to | |
1864 | provide matchers, more debugging information, and cross-Python | |
1865 | compatibility.") | |
3f641af0 | 1866 | (license license:psfl))) |
d8fa80e1 DT |
1867 | |
1868 | (define-public python2-testtools | |
1869 | (package-with-python2 python-testtools)) | |
1870 | ||
5bf3afea DT |
1871 | (define-public python-testscenarios |
1872 | (package | |
1873 | (name "python-testscenarios") | |
1874 | (version "0.4") | |
1875 | (source | |
1876 | (origin | |
1877 | (method url-fetch) | |
1878 | (uri (string-append | |
1879 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" | |
1880 | version ".tar.gz")) | |
1881 | (sha256 | |
1882 | (base32 | |
1883 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) | |
1884 | (build-system python-build-system) | |
f22efa01 | 1885 | (propagated-inputs |
8e73d3ba | 1886 | `(("python-testtools" ,python-testtools))) |
5bf3afea DT |
1887 | (home-page "https://launchpad.net/testscenarios") |
1888 | (synopsis "Pyunit extension for dependency injection") | |
1889 | (description | |
1890 | "Testscenarios provides clean dependency injection for Python unittest | |
1891 | style tests.") | |
3f641af0 | 1892 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
5bf3afea DT |
1893 | |
1894 | (define-public python2-testscenarios | |
1895 | (package-with-python2 python-testscenarios)) | |
1896 | ||
dac79ecc DT |
1897 | (define-public python-testresources |
1898 | (package | |
1899 | (name "python-testresources") | |
1900 | (version "0.2.7") | |
1901 | (source | |
1902 | (origin | |
1903 | (method url-fetch) | |
1904 | (uri (string-append | |
1905 | "https://pypi.python.org/packages/source/t/testresources/testresources-" | |
1906 | version ".tar.gz")) | |
1907 | (sha256 | |
1908 | (base32 | |
1909 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) | |
1910 | (build-system python-build-system) | |
dac79ecc DT |
1911 | (home-page "https://launchpad.net/testresources") |
1912 | (synopsis | |
1913 | "Pyunit extension for managing test resources") | |
1914 | (description | |
1915 | "Testresources is an extension to Python's unittest to allow declarative | |
1916 | use of resources by test cases.") | |
3f641af0 | 1917 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
dac79ecc DT |
1918 | |
1919 | (define-public python2-testresources | |
1920 | (package-with-python2 python-testresources)) | |
1921 | ||
070ab058 DT |
1922 | (define-public python-subunit |
1923 | (package | |
1924 | (name "python-subunit") | |
1925 | (version "0.0.21") | |
1926 | (source | |
1927 | (origin | |
1928 | (method url-fetch) | |
1929 | (uri (string-append | |
1930 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" | |
1931 | version ".tar.gz")) | |
1932 | (sha256 | |
1933 | (base32 | |
1934 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) | |
1935 | (build-system python-build-system) | |
f22efa01 | 1936 | (propagated-inputs |
b52ad371 HG |
1937 | `(("python-extras" ,python-extras) |
1938 | ("python-mimeparse" ,python-mimeparse))) | |
1939 | (native-inputs | |
1940 | `(("python-testscenarios" ,python-testscenarios))) | |
070ab058 DT |
1941 | (home-page "http://launchpad.net/subunit") |
1942 | (synopsis "Python implementation of the subunit protocol") | |
1943 | (description | |
1944 | "Python-subunit is a Python implementation of the subunit test streaming | |
1945 | protocol.") | |
3f641af0 | 1946 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
070ab058 DT |
1947 | |
1948 | (define-public python2-subunit | |
1949 | (package-with-python2 python-subunit)) | |
1950 | ||
d2a8db92 HG |
1951 | ;; Recent versions of python-fixtures and python-testrepository need |
1952 | ;; python-pbr for packaging, which itself needs these two packages for | |
1953 | ;; testing. | |
1954 | ;; To fix this circular dependency, we use a build of python-pbr, based on the | |
1955 | ;; same source, just without any test dependencies and with tests disabled. | |
1956 | ;; python-pbr-minmal is then used to package python-fixtures and | |
1957 | ;; python-testrepository. | |
1958 | ;; Strictly speaking we currently could remove the test-requirements from the | |
1959 | ;; normal python-pbr package (and save this package) since test are disabled | |
1960 | ;; there anyway. But this may change in future. | |
1961 | (define python-pbr-minimal | |
cd49454b | 1962 | (package |
d2a8db92 HG |
1963 | (name "python-pbr-minimal") |
1964 | (version "1.8.1") | |
7787ef76 CR |
1965 | (source |
1966 | (origin | |
1967 | (method url-fetch) | |
d2a8db92 | 1968 | (uri (pypi-uri "pbr" version)) |
7787ef76 CR |
1969 | (sha256 |
1970 | (base32 | |
d2a8db92 | 1971 | "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) |
7787ef76 CR |
1972 | (build-system python-build-system) |
1973 | (arguments | |
d2a8db92 HG |
1974 | `(#:tests? #f)) |
1975 | (home-page "http://docs.openstack.org/developer/pbr/") | |
1976 | (synopsis "Minimal build of python-pbr used for bootstrapping") | |
7787ef76 | 1977 | (description |
d2a8db92 | 1978 | "Used only for bootstrapping python2-pbr, you should not need this.") |
3f641af0 | 1979 | (license license:asl2.0))) |
7787ef76 | 1980 | |
d2a8db92 HG |
1981 | (define python2-pbr-minimal |
1982 | (package-with-python2 python-pbr-minimal)) | |
7787ef76 | 1983 | |
1ef09c0c | 1984 | (define-public python-pbr |
e25f0174 | 1985 | (package |
d2a8db92 | 1986 | (inherit python-pbr-minimal) |
e25f0174 | 1987 | (name "python-pbr") |
e25f0174 BW |
1988 | (arguments |
1989 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
1990 | (propagated-inputs | |
d2a8db92 HG |
1991 | `(("git" ,git))) ;; pbr actually uses the "git" binary. |
1992 | (native-inputs | |
e25f0174 | 1993 | `(("python-fixtures" ,python-fixtures) |
d2a8db92 | 1994 | ;; discover, coverage, hacking, subunit |
e25f0174 | 1995 | ("python-mock" ,python-mock) |
d2a8db92 | 1996 | ("python-six" ,python-six) |
e25f0174 BW |
1997 | ("python-sphinx" ,python-sphinx) |
1998 | ("python-testrepository" ,python-testrepository) | |
1999 | ("python-testresources" ,python-testresources) | |
2000 | ("python-testscenarios" ,python-testscenarios) | |
2001 | ("python-testtools" ,python-testtools) | |
2002 | ("python-virtualenv" ,python-virtualenv))) | |
d2a8db92 | 2003 | (synopsis "Enhance the default behavior of Python’s setuptools") |
e25f0174 BW |
2004 | (description |
2005 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
d2a8db92 HG |
2006 | and sensible default behaviors into your setuptools run. It will set |
2007 | versions, process requirements files and generate AUTHORS and ChangeLog file | |
2008 | from git information. | |
2009 | "))) | |
1ef09c0c BW |
2010 | |
2011 | (define-public python2-pbr | |
e25f0174 | 2012 | (package-with-python2 python-pbr)) |
1ef09c0c | 2013 | |
7787ef76 CR |
2014 | (define-public python-fixtures |
2015 | (package | |
2016 | (name "python-fixtures") | |
13fcc6df | 2017 | (version "1.4.0") |
7787ef76 CR |
2018 | (source |
2019 | (origin | |
2020 | (method url-fetch) | |
13fcc6df | 2021 | (uri (pypi-uri "fixtures" version)) |
7787ef76 CR |
2022 | (sha256 |
2023 | (base32 | |
13fcc6df | 2024 | "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y")))) |
7787ef76 CR |
2025 | (build-system python-build-system) |
2026 | (propagated-inputs | |
ae92cadd | 2027 | `(("python-six" ,python-six))) |
e7881f3d | 2028 | (native-inputs |
d2a8db92 | 2029 | `(("python-pbr-minimal" ,python-pbr-minimal) |
7787ef76 | 2030 | ("python-testtools" ,python-testtools))) |
7787ef76 CR |
2031 | (home-page "https://launchpad.net/python-fixtures") |
2032 | (synopsis "Python test fixture library") | |
2033 | (description | |
2034 | "Fixtures provides a way to create reusable state, useful when writing | |
2035 | Python tests.") | |
3f641af0 | 2036 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
7787ef76 | 2037 | |
cd49454b DT |
2038 | (define-public python2-fixtures |
2039 | (package-with-python2 python-fixtures)) | |
2040 | ||
b24a0c00 DT |
2041 | (define-public python-testrepository |
2042 | (package | |
2043 | (name "python-testrepository") | |
2044 | (version "0.0.20") | |
2045 | (source | |
2046 | (origin | |
2047 | (method url-fetch) | |
2048 | (uri (string-append | |
2049 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" | |
2050 | version ".tar.gz")) | |
2051 | (sha256 | |
2052 | (base32 | |
2053 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) | |
2054 | (build-system python-build-system) | |
05de40c5 | 2055 | (propagated-inputs |
b2e66edf HG |
2056 | `(("python-fixtures" ,python-fixtures) |
2057 | ("python-subunit" ,python-subunit) | |
b52ad371 HG |
2058 | ("python-testtools" ,python-testtools))) |
2059 | (native-inputs | |
2060 | `(("python-pbr-minimal" ,python-pbr-minimal) ;; same as for building fixture | |
b24a0c00 DT |
2061 | ("python-mimeparse" ,python-mimeparse))) |
2062 | (home-page "https://launchpad.net/testrepository") | |
2063 | (synopsis "Database for Python test results") | |
2064 | (description "Testrepository provides a database of test results which can | |
2065 | be used as part of a developer's workflow to check things such as what tests | |
2066 | have failed since the last commit or what tests are currently failing.") | |
3f641af0 | 2067 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
b24a0c00 DT |
2068 | |
2069 | (define-public python2-testrepository | |
2070 | (package-with-python2 python-testrepository)) | |
2071 | ||
243a009a DT |
2072 | (define-public python-coverage |
2073 | (package | |
2074 | (name "python-coverage") | |
4d4cf3dd | 2075 | (version "4.1") |
243a009a DT |
2076 | (source |
2077 | (origin | |
2078 | (method url-fetch) | |
82a3c582 | 2079 | (uri (pypi-uri "coverage" version)) |
243a009a DT |
2080 | (sha256 |
2081 | (base32 | |
4d4cf3dd | 2082 | "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1")))) |
243a009a | 2083 | (build-system python-build-system) |
243a009a DT |
2084 | (home-page "http://nedbatchelder.com/code/coverage") |
2085 | (synopsis "Code coverage measurement for Python") | |
2086 | (description | |
2087 | "Coverage measures code coverage, typically during test execution. It | |
2088 | uses the code analysis tools and tracing hooks provided in the Python standard | |
2089 | library to determine which lines are executable, and which have been | |
2090 | executed.") | |
3f641af0 | 2091 | (license license:bsd-3))) |
243a009a DT |
2092 | |
2093 | (define-public python2-coverage | |
2094 | (package-with-python2 python-coverage)) | |
2095 | ||
12f839fd EF |
2096 | (define-public python-cov-core |
2097 | (package | |
2098 | (name "python-cov-core") | |
2099 | (version "1.15.0") | |
2100 | (source | |
2101 | (origin | |
2102 | (method url-fetch) | |
2103 | (uri (pypi-uri "cov-core" version)) | |
2104 | (sha256 | |
2105 | (base32 | |
2106 | "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a")))) | |
2107 | (build-system python-build-system) | |
2108 | (native-inputs | |
2109 | `(("python-coverage" ,python-coverage))) | |
2110 | (home-page "https://github.com/schlamar/cov-core") | |
2111 | (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov") | |
2112 | (description | |
2113 | "This is a library package for use by pytest-cov, nose-cov and nose2-cov. | |
2114 | It is useful for developing coverage plugins for these testing frameworks.") | |
f210e944 | 2115 | (license license:expat))) |
12f839fd EF |
2116 | |
2117 | (define-public python2-cov-core | |
f210e944 | 2118 | (package-with-python2 python-cov-core)) |
12f839fd | 2119 | |
041358fb DT |
2120 | (define-public python-discover |
2121 | (package | |
2122 | (name "python-discover") | |
2123 | (version "0.4.0") | |
2124 | (source | |
2125 | (origin | |
2126 | (method url-fetch) | |
2127 | (uri (string-append | |
2128 | "https://pypi.python.org/packages/source/d/discover/discover-" | |
2129 | version ".tar.gz")) | |
2130 | (sha256 | |
2131 | (base32 | |
2132 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) | |
2133 | (build-system python-build-system) | |
041358fb DT |
2134 | (home-page "http://pypi.python.org/pypi/discover/") |
2135 | (synopsis | |
2136 | "Python test discovery for unittest") | |
2137 | (description | |
2138 | "Discover provides test discovery for unittest, a feature that has been | |
e881752c | 2139 | backported from Python 2.7 for Python 2.4+.") |
3f641af0 | 2140 | (license license:bsd-3))) |
041358fb DT |
2141 | |
2142 | (define-public python2-discover | |
2143 | (package-with-python2 python-discover)) | |
2144 | ||
a480bc41 EB |
2145 | (define-public behave |
2146 | (package | |
2147 | (name "behave") | |
287cfd1a | 2148 | (version "1.2.5") |
a480bc41 EB |
2149 | (source (origin |
2150 | (method url-fetch) | |
287cfd1a | 2151 | (uri (pypi-uri "behave" version ".tar.bz2")) |
a480bc41 EB |
2152 | (sha256 |
2153 | (base32 | |
287cfd1a | 2154 | "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c")))) |
a480bc41 | 2155 | (build-system python-build-system) |
f22efa01 | 2156 | (propagated-inputs |
f3b98f4f | 2157 | `(("python-six" ,python-six) |
a480bc41 EB |
2158 | ("python-parse" ,python-parse) |
2159 | ("python-parse-type" ,python-parse-type))) | |
2160 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and | |
2161 | ;PyHamcrest>=1.8 | |
2162 | (home-page "http://github.com/behave/behave") | |
2163 | (synopsis "Python behavior-driven development") | |
2164 | (description | |
2165 | "Behave is a tool for behavior-driven development in python. | |
2166 | Behavior-driven development (or BDD) is an agile software development | |
2167 | technique that encourages collaboration between developers, QA and | |
2168 | non-technical or business participants in a software project. Behave uses | |
2169 | tests written in a natural language style, backed up by Python code.") | |
3f641af0 | 2170 | (license license:x11))) |
c7303d3c DT |
2171 | |
2172 | (define-public python-exif-read | |
2173 | (package | |
2174 | (name "python-exif-read") | |
2a2d0981 | 2175 | (version "2.1.2") |
c7303d3c DT |
2176 | (source (origin |
2177 | (method url-fetch) | |
2a2d0981 | 2178 | (uri (pypi-uri "ExifRead" version)) |
c7303d3c DT |
2179 | (sha256 |
2180 | (base32 | |
2a2d0981 | 2181 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
c7303d3c | 2182 | (build-system python-build-system) |
c7303d3c DT |
2183 | (arguments `(#:tests? #f)) ; no tests |
2184 | (home-page "https://github.com/ianare/exif-py") | |
2185 | (synopsis "Python library to extract EXIF data from image files") | |
2186 | (description | |
2187 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg | |
2188 | files.") | |
3f641af0 | 2189 | (license license:bsd-3))) |
c7303d3c DT |
2190 | |
2191 | (define-public python2-exif-read | |
2192 | (package-with-python2 python-exif-read)) | |
d5f89b22 DT |
2193 | |
2194 | (define-public python-pyld | |
2195 | (package | |
2196 | (name "python-pyld") | |
af1ab773 | 2197 | (version "0.6.8") |
d5f89b22 DT |
2198 | (source (origin |
2199 | (method url-fetch) | |
af1ab773 | 2200 | (uri (pypi-uri "PyLD" version)) |
d5f89b22 DT |
2201 | (sha256 |
2202 | (base32 | |
af1ab773 | 2203 | "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad")))) |
d5f89b22 | 2204 | (build-system python-build-system) |
d5f89b22 DT |
2205 | (arguments `(#:tests? #f)) ; no tests |
2206 | (home-page "http://github.com/digitalbazaar/pyld") | |
2207 | (synopsis "Python implementation of the JSON-LD specification") | |
2208 | (description | |
2209 | "PyLD is an implementation of the JSON-LD specification.") | |
3f641af0 | 2210 | (license license:bsd-3))) |
d5f89b22 DT |
2211 | |
2212 | (define-public python2-pyld | |
2213 | (package-with-python2 python-pyld)) | |
3a1f9a68 DT |
2214 | |
2215 | (define-public python-certifi | |
2216 | (package | |
2217 | (name "python-certifi") | |
b2a2232c | 2218 | (version "2016.8.31") |
3a1f9a68 DT |
2219 | (source (origin |
2220 | (method url-fetch) | |
9a41f443 | 2221 | (uri (pypi-uri "certifi" version)) |
3a1f9a68 DT |
2222 | (sha256 |
2223 | (base32 | |
b2a2232c | 2224 | "06c9dcyv8ss050gkv5xjivbxhm6qm0s9vzy4r33wqabgv118lw7p")))) |
3a1f9a68 | 2225 | (build-system python-build-system) |
3a1f9a68 DT |
2226 | (arguments `(#:tests? #f)) ; no tests |
2227 | (home-page "http://python-requests.org/") | |
2228 | (synopsis "Python CA certificate bundle") | |
2229 | (description | |
2230 | "Certifi is a Python library that contains a CA certificate bundle, which | |
2231 | is used by the Requests library to verify HTTPS requests.") | |
3f641af0 | 2232 | (license license:asl2.0))) |
3a1f9a68 DT |
2233 | |
2234 | (define-public python2-certifi | |
2235 | (package-with-python2 python-certifi)) | |
e6cfbd36 | 2236 | |
12c270dd RW |
2237 | (define-public python-click |
2238 | (package | |
2239 | (name "python-click") | |
43accb58 | 2240 | (version "6.6") |
12c270dd RW |
2241 | (source |
2242 | (origin | |
2243 | (method url-fetch) | |
375f224b | 2244 | (uri (pypi-uri "click" version)) |
12c270dd | 2245 | (sha256 |
43accb58 LF |
2246 | (base32 |
2247 | "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) | |
12c270dd | 2248 | (build-system python-build-system) |
e2ab5a09 BW |
2249 | (arguments |
2250 | `(#:phases | |
2251 | (modify-phases %standard-phases | |
2252 | (add-after 'unpack 'fix-paths | |
2253 | (lambda* (#:key inputs #:allow-other-keys) | |
2254 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
2255 | "cross-libc" "libc")))) | |
2256 | (substitute* "click/_unicodefun.py" | |
2257 | (("'locale'") | |
2258 | (string-append "'" glibc "/bin/locale'")))) | |
2259 | #t))))) | |
12c270dd RW |
2260 | (home-page "http://click.pocoo.org") |
2261 | (synopsis "Command line library for Python") | |
2262 | (description | |
2263 | "Click is a Python package for creating command line interfaces in a | |
2264 | composable way with as little code as necessary. Its name stands for | |
2265 | \"Command Line Interface Creation Kit\". It's highly configurable but comes | |
2266 | with sensible defaults out of the box.") | |
3f641af0 | 2267 | (license license:bsd-3))) |
12c270dd RW |
2268 | |
2269 | (define-public python2-click | |
2270 | (package-with-python2 python-click)) | |
2271 | ||
addc808d EF |
2272 | (define-public python-wheel |
2273 | (package | |
2274 | (name "python-wheel") | |
40981b5c | 2275 | (version "0.29.0") |
e1ba0749 EF |
2276 | (source |
2277 | (origin | |
2278 | (method url-fetch) | |
2279 | (uri (pypi-uri "wheel" version)) | |
2280 | (sha256 | |
2281 | (base32 | |
40981b5c | 2282 | "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy")))) |
e1ba0749 EF |
2283 | (build-system python-build-system) |
2284 | (native-inputs | |
f3b98f4f | 2285 | `(("python-jsonschema" ,python-jsonschema) |
e1ba0749 EF |
2286 | ("python-pytest-cov" ,python-pytest-cov))) |
2287 | (home-page "https://bitbucket.org/pypa/wheel/") | |
2288 | (synopsis "Format for built Python packages") | |
2289 | (description | |
2290 | "A wheel is a ZIP-format archive with a specially formatted filename and | |
2291 | the @code{.whl} extension. It is designed to contain all the files for a PEP | |
2292 | 376 compatible install in a way that is very close to the on-disk format. Many | |
2293 | packages will be properly installed with only the @code{Unpack} step and the | |
2294 | unpacked archive preserves enough information to @code{Spread} (copy data and | |
2295 | scripts to their final locations) at any later time. Wheel files can be | |
2296 | installed with a newer @code{pip} or with wheel's own command line utility.") | |
8ad4ae20 LF |
2297 | (license license:expat) |
2298 | (properties `((python2-variant . ,(delay python2-wheel)))))) | |
addc808d EF |
2299 | |
2300 | (define-public python2-wheel | |
8ad4ae20 LF |
2301 | (let ((wheel (package-with-python2 |
2302 | (strip-python2-variant python-wheel)))) | |
264ae686 | 2303 | (package (inherit wheel) |
8ad4ae20 LF |
2304 | (native-inputs `(("python2-functools32" ,python2-functools32) |
2305 | ,@(package-native-inputs wheel)))))) | |
2306 | ||
addc808d | 2307 | |
ae641128 | 2308 | (define-public python-requests |
e6cfbd36 | 2309 | (package |
ae641128 | 2310 | (name "python-requests") |
74a066f9 | 2311 | (version "2.9.1") |
e6cfbd36 DT |
2312 | (source (origin |
2313 | (method url-fetch) | |
5d691657 | 2314 | (uri (pypi-uri "requests" version)) |
e6cfbd36 DT |
2315 | (sha256 |
2316 | (base32 | |
74a066f9 | 2317 | "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5")))) |
e6cfbd36 | 2318 | (build-system python-build-system) |
5d691657 | 2319 | (native-inputs |
f3b98f4f | 2320 | `(("python-py" ,python-py) |
5d691657 EF |
2321 | ("python-pytest" ,python-pytest) |
2322 | ("python-pytest-cov" ,python-pytest-cov) | |
2323 | ("python-wheel" ,python-wheel))) | |
e6cfbd36 DT |
2324 | (home-page "http://python-requests.org/") |
2325 | (synopsis "Python HTTP library") | |
2326 | (description | |
2327 | "Requests is a Python HTTP client library. It aims to be easier to use | |
2328 | than Python’s urllib2 library.") | |
3f641af0 | 2329 | (license license:asl2.0))) |
864b5211 | 2330 | |
e9005180 DT |
2331 | ;; Some software requires an older version of Requests, notably Docker |
2332 | ;; Compose. | |
2333 | (define-public python-requests-2.7 | |
2334 | (package (inherit python-requests) | |
2335 | (version "2.7.0") | |
2336 | (source (origin | |
2337 | (method url-fetch) | |
2338 | (uri (pypi-uri "requests" version)) | |
2339 | (sha256 | |
2340 | (base32 | |
2341 | "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) | |
2342 | ||
ae641128 | 2343 | (define-public python2-requests |
8ad4ae20 | 2344 | (package-with-python2 python-requests)) |
ae641128 | 2345 | |
ea521b42 DT |
2346 | (define-public python-vcversioner |
2347 | (package | |
2348 | (name "python-vcversioner") | |
538fe019 | 2349 | (version "2.16.0.0") |
ea521b42 DT |
2350 | (source |
2351 | (origin | |
2352 | (method url-fetch) | |
2353 | (uri (pypi-uri "vcversioner" version)) | |
2354 | (sha256 | |
2355 | (base32 | |
538fe019 | 2356 | "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns")))) |
ea521b42 | 2357 | (build-system python-build-system) |
ea521b42 DT |
2358 | (synopsis "Python library for version number discovery") |
2359 | (description "Vcversioner is a Python library that inspects tagging | |
2360 | information in a variety of version control systems in order to discover | |
2361 | version numbers.") | |
2362 | (home-page "https://github.com/habnabit/vcversioner") | |
f210e944 | 2363 | (license license:isc))) |
ea521b42 DT |
2364 | |
2365 | (define-public python2-vcversioner | |
f210e944 | 2366 | (package-with-python2 python-vcversioner)) |
ae641128 | 2367 | |
864b5211 DT |
2368 | (define-public python-jsonschema |
2369 | (package | |
2370 | (name "python-jsonschema") | |
b3667afb | 2371 | (version "2.5.1") |
864b5211 DT |
2372 | (source (origin |
2373 | (method url-fetch) | |
2374 | (uri | |
2375 | (string-append | |
2376 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" | |
2377 | version ".tar.gz")) | |
2378 | (sha256 | |
2379 | (base32 | |
b3667afb | 2380 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
864b5211 | 2381 | (build-system python-build-system) |
8bcd6b91 EF |
2382 | (arguments |
2383 | '(#:phases | |
2384 | (modify-phases %standard-phases | |
2385 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
eaba9d66 | 2386 | (native-inputs |
8bcd6b91 EF |
2387 | `(("python-nose" ,python-nose) |
2388 | ("python-vcversioner" ,python-vcversioner))) | |
2389 | (home-page "https://github.com/Julian/jsonschema") | |
864b5211 DT |
2390 | (synopsis "Implementation of JSON Schema for Python") |
2391 | (description | |
2392 | "Jsonschema is an implementation of JSON Schema for Python.") | |
a14600ec LF |
2393 | (license license:expat) |
2394 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) | |
864b5211 DT |
2395 | |
2396 | (define-public python2-jsonschema | |
a14600ec LF |
2397 | (let ((jsonschema (package-with-python2 |
2398 | (strip-python2-variant python-jsonschema)))) | |
264ae686 | 2399 | (package (inherit jsonschema) |
eaba9d66 | 2400 | (native-inputs |
8bcd6b91 | 2401 | `(("python2-mock" ,python2-mock) |
eaba9d66 MB |
2402 | ,@(package-native-inputs jsonschema))) |
2403 | (propagated-inputs | |
2404 | `(("python2-functools32" ,python2-functools32)))))) | |
850189b8 DT |
2405 | |
2406 | (define-public python-unidecode | |
2407 | (package | |
2408 | (name "python-unidecode") | |
8925d4f3 | 2409 | (version "0.04.18") |
850189b8 DT |
2410 | (source (origin |
2411 | (method url-fetch) | |
8925d4f3 | 2412 | (uri (pypi-uri "Unidecode" version)) |
850189b8 DT |
2413 | (sha256 |
2414 | (base32 | |
8925d4f3 | 2415 | "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi")))) |
850189b8 | 2416 | (build-system python-build-system) |
850189b8 DT |
2417 | (home-page "https://pypi.python.org/pypi/Unidecode") |
2418 | (synopsis "ASCII transliterations of Unicode text") | |
2419 | (description | |
2420 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is | |
2421 | useful when integrating with legacy code that doesn't support Unicode, or for | |
2422 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII | |
2423 | machine identifiers from human-readable Unicode strings that should still be | |
2424 | somewhat intelligeble.") | |
3f641af0 | 2425 | (license license:gpl2+))) |
850189b8 DT |
2426 | |
2427 | (define-public python2-unidecode | |
2428 | (package-with-python2 python-unidecode)) | |
6d45fef4 DT |
2429 | |
2430 | (define-public python-pyjwt | |
2431 | (package | |
2432 | (name "python-pyjwt") | |
eb31d4b4 | 2433 | (version "1.4.0") |
6d45fef4 DT |
2434 | (source |
2435 | (origin | |
2436 | (method url-fetch) | |
eb31d4b4 | 2437 | (uri (pypi-uri "PyJWT" version)) |
6d45fef4 DT |
2438 | (sha256 |
2439 | (base32 | |
eb31d4b4 | 2440 | "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1")))) |
6d45fef4 | 2441 | (build-system python-build-system) |
eb31d4b4 | 2442 | (native-inputs |
f3b98f4f | 2443 | `(("python-pytest-runner" ,python-pytest-runner))) |
6d45fef4 DT |
2444 | (arguments |
2445 | '(#:tests? #f)) ; test suite doesn't work | |
2446 | (home-page "http://github.com/progrium/pyjwt") | |
2447 | (synopsis "JSON Web Token implementation in Python") | |
2448 | (description | |
2449 | "PyJWT is a JSON Web Token implementation written in Python.") | |
bd3fa666 | 2450 | (license license:expat))) |
6d45fef4 DT |
2451 | |
2452 | (define-public python2-pyjwt | |
2453 | (package-with-python2 python-pyjwt)) | |
2454 | ||
2cec1f6f DT |
2455 | (define-public python-oauthlib |
2456 | (package | |
2457 | (name "python-oauthlib") | |
bde2171d | 2458 | (version "1.0.3") |
2cec1f6f DT |
2459 | (source (origin |
2460 | (method url-fetch) | |
bde2171d | 2461 | (uri (pypi-uri "oauthlib" version)) |
2cec1f6f DT |
2462 | (sha256 |
2463 | (base32 | |
bde2171d | 2464 | "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg")))) |
2cec1f6f | 2465 | (build-system python-build-system) |
bde2171d | 2466 | (native-inputs |
59f151ec | 2467 | `(("python-coverage" ,python-coverage) |
2cec1f6f DT |
2468 | ("python-nose" ,python-nose) |
2469 | ("python-mock" ,python-mock))) | |
f22efa01 | 2470 | (propagated-inputs |
bde2171d EF |
2471 | `(("python-blinker" ,python-blinker) |
2472 | ("python-cryptography" ,python-cryptography) | |
2473 | ("python-pyjwt" ,python-pyjwt))) | |
2cec1f6f DT |
2474 | (home-page "https://github.com/idan/oauthlib") |
2475 | (synopsis "OAuth implementation for Python") | |
2476 | (description | |
2477 | "Oauthlib is a generic, spec-compliant, thorough implementation of the | |
2478 | OAuth request-signing logic.") | |
3f641af0 | 2479 | (license license:bsd-3) |
59f151ec | 2480 | (properties `((python2-variant . ,(delay python2-oauthlib)))))) |
2cec1f6f DT |
2481 | |
2482 | (define-public python2-oauthlib | |
59f151ec | 2483 | (let ((base (package-with-python2 (strip-python2-variant python-oauthlib)))) |
2cec1f6f DT |
2484 | (package |
2485 | (inherit base) | |
00e10c6e | 2486 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
59f151ec | 2487 | ,@(package-native-inputs base)))))) |
ec5dbb5c DT |
2488 | |
2489 | (define-public python-itsdangerous | |
2490 | (package | |
2491 | (name "python-itsdangerous") | |
2492 | (version "0.24") | |
2493 | (source | |
2494 | (origin | |
2495 | (method url-fetch) | |
2496 | (uri (string-append | |
2497 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" | |
2498 | version ".tar.gz")) | |
2499 | (sha256 | |
2500 | (base32 | |
2501 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) | |
2502 | (build-system python-build-system) | |
ec5dbb5c DT |
2503 | (home-page "http://github.com/mitsuhiko/itsdangerous") |
2504 | (synopsis "Python library for passing data to/from untrusted environments") | |
2505 | (description | |
2506 | "Itsdangerous provides various helpers to pass trusted data to untrusted | |
2507 | environments and back.") | |
f210e944 | 2508 | (license license:bsd-3))) |
ec5dbb5c DT |
2509 | |
2510 | (define-public python2-itsdangerous | |
f210e944 | 2511 | (package-with-python2 python-itsdangerous)) |
5731cae3 | 2512 | |
8d12be1e RW |
2513 | (define-public python-pyyaml |
2514 | (package | |
2515 | (name "python-pyyaml") | |
2516 | (version "3.11") | |
2517 | (source | |
2518 | (origin | |
2519 | (method url-fetch) | |
2520 | (uri (string-append | |
2521 | "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-" | |
2522 | version ".tar.gz")) | |
2523 | (sha256 | |
2524 | (base32 | |
2525 | "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63")))) | |
2526 | (build-system python-build-system) | |
2527 | (inputs | |
2528 | `(("libyaml" ,libyaml))) | |
8d12be1e RW |
2529 | (home-page "http://pyyaml.org/wiki/PyYAML") |
2530 | (synopsis "YAML parser and emitter for Python") | |
2531 | (description | |
2532 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a | |
2533 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension | |
2534 | API, and sensible error messages. PyYAML supports standard YAML tags and | |
2535 | provides Python-specific tags that allow to represent an arbitrary Python | |
2536 | object.") | |
2537 | (license license:expat))) | |
2538 | ||
2539 | (define-public python2-pyyaml | |
2540 | (package-with-python2 python-pyyaml)) | |
2541 | ||
5731cae3 DT |
2542 | (define-public python-virtualenv |
2543 | (package | |
2544 | (name "python-virtualenv") | |
58d04dba | 2545 | (version "15.0.3") |
5731cae3 DT |
2546 | (source |
2547 | (origin | |
2548 | (method url-fetch) | |
17804240 | 2549 | (uri (pypi-uri "virtualenv" version)) |
5731cae3 DT |
2550 | (sha256 |
2551 | (base32 | |
58d04dba | 2552 | "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d")))) |
5731cae3 | 2553 | (build-system python-build-system) |
17804240 EF |
2554 | (arguments |
2555 | `(#:phases | |
2556 | (modify-phases %standard-phases | |
58d04dba RW |
2557 | (replace 'check |
2558 | (lambda _ | |
2559 | ;; Disable failing test. See upstream bug report | |
2560 | ;; https://github.com/pypa/virtualenv/issues/957 | |
2561 | (substitute* "tests/test_virtualenv.py" | |
2562 | (("skipif.*") "skipif(True, reason=\"Guix\")\n")) | |
2563 | (zero? (system* "py.test"))))))) | |
e7881f3d | 2564 | (native-inputs |
f3b98f4f | 2565 | `(("python-mock" ,python-mock) |
17804240 | 2566 | ("python-pytest" ,python-pytest))) |
5731cae3 DT |
2567 | (home-page "https://virtualenv.pypa.io/") |
2568 | (synopsis "Virtual Python environment builder") | |
2569 | (description | |
2570 | "Virtualenv is a tool to create isolated Python environments.") | |
bd3fa666 | 2571 | (license license:expat))) |
5731cae3 DT |
2572 | |
2573 | (define-public python2-virtualenv | |
2574 | (package-with-python2 python-virtualenv)) | |
8176d4d5 DT |
2575 | |
2576 | (define-public python-markupsafe | |
2577 | (package | |
2578 | (name "python-markupsafe") | |
2579 | (version "0.23") | |
2580 | (source | |
2581 | (origin | |
2582 | (method url-fetch) | |
2583 | (uri (string-append | |
2584 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" | |
2585 | version ".tar.gz")) | |
2586 | (sha256 | |
2587 | (base32 | |
2588 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) | |
2589 | (build-system python-build-system) | |
8176d4d5 DT |
2590 | (home-page "http://github.com/mitsuhiko/markupsafe") |
2591 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") | |
2592 | (description | |
2593 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation | |
2594 | for Python.") | |
3f641af0 | 2595 | (license license:bsd-3))) |
8176d4d5 DT |
2596 | |
2597 | (define-public python2-markupsafe | |
2598 | (package-with-python2 python-markupsafe)) | |
fe34f0d1 DT |
2599 | |
2600 | (define-public python-jinja2 | |
2601 | (package | |
2602 | (name "python-jinja2") | |
e98149b3 | 2603 | (version "2.8") |
fe34f0d1 DT |
2604 | (source |
2605 | (origin | |
2606 | (method url-fetch) | |
e98149b3 | 2607 | (uri (pypi-uri "Jinja2" version)) |
fe34f0d1 DT |
2608 | (sha256 |
2609 | (base32 | |
e98149b3 | 2610 | "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw")))) |
fe34f0d1 | 2611 | (build-system python-build-system) |
f22efa01 | 2612 | (propagated-inputs |
f3b98f4f | 2613 | `(("python-markupsafe" ,python-markupsafe))) |
fe34f0d1 DT |
2614 | (home-page "http://jinja.pocoo.org/") |
2615 | (synopsis "Python template engine") | |
2616 | (description | |
2617 | "Jinja2 is a small but fast and easy to use stand-alone template engine | |
2618 | written in pure Python.") | |
3f641af0 | 2619 | (license license:bsd-3))) |
fe34f0d1 DT |
2620 | |
2621 | (define-public python2-jinja2 | |
2622 | (package-with-python2 python-jinja2)) | |
3580ab8b | 2623 | |
f7d17ac7 EE |
2624 | (define-public python-pystache |
2625 | (package | |
2626 | (name "python-pystache") | |
2627 | (version "0.5.4") | |
2628 | (source (origin | |
2629 | (method url-fetch) | |
2630 | (uri (pypi-uri "pystache" version)) | |
2631 | (sha256 | |
2632 | (base32 | |
2633 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) | |
2634 | (build-system python-build-system) | |
f7d17ac7 EE |
2635 | (home-page "http://defunkt.io/pystache/") |
2636 | (synopsis "Python logic-less template engine") | |
2637 | (description | |
2638 | "Pystache is a Python implementation of the framework agnostic, | |
2639 | logic-free templating system Mustache.") | |
2640 | (license license:expat))) | |
2641 | ||
2642 | (define-public python2-pystache | |
2643 | (package-with-python2 python-pystache)) | |
2644 | ||
1285119b RW |
2645 | (define-public python-joblib |
2646 | (package | |
2647 | (name "python-joblib") | |
f34ef331 | 2648 | (version "0.10.3") |
1285119b RW |
2649 | (source (origin |
2650 | (method url-fetch) | |
f34ef331 | 2651 | (uri (pypi-uri "joblib" version)) |
1285119b RW |
2652 | (sha256 |
2653 | (base32 | |
f34ef331 | 2654 | "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9")))) |
1285119b | 2655 | (build-system python-build-system) |
a8dd960a RW |
2656 | (arguments |
2657 | `(#:phases | |
2658 | (modify-phases %standard-phases | |
2659 | (add-before 'check 'disable-failing-tests | |
2660 | (lambda _ | |
2661 | ;; This numpydoc tests fails for unknown reasons | |
2662 | (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py") | |
2663 | ;; This numpydoc test depends on matplotlib, which is not a | |
2664 | ;; required input. | |
2665 | (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py") | |
2666 | ;; These tests fail to execute sys.executable | |
2667 | (substitute* "joblib/test/test_parallel.py" | |
2668 | (("import nose" line) | |
2669 | (string-append "from nose.plugins.skip import SkipTest\n" line)) | |
2670 | (("def test_nested_parallel_warnings" line) | |
2671 | (string-append "@SkipTest\n" line)) | |
2672 | (("def test_parallel_with_interactively_defined_functions" line) | |
2673 | (string-append "@SkipTest\n" line))) | |
2674 | #t))))) | |
1285119b | 2675 | (native-inputs |
f3b98f4f | 2676 | `(("python-nose" ,python-nose) |
f34ef331 RW |
2677 | ("python-sphinx" ,python-sphinx) |
2678 | ("python-docutils" ,python-docutils) | |
2679 | ("python-numpydoc" ,python-numpydoc))) | |
1285119b RW |
2680 | (home-page "http://pythonhosted.org/joblib/") |
2681 | (synopsis "Using Python functions as pipeline jobs") | |
2682 | (description | |
2683 | "Joblib is a set of tools to provide lightweight pipelining in Python. | |
2684 | In particular, joblib offers: transparent disk-caching of the output values | |
2685 | and lazy re-evaluation (memoize pattern), easy simple parallel computing | |
2686 | logging and tracing of the execution.") | |
3f641af0 | 2687 | (license license:bsd-3))) |
1285119b RW |
2688 | |
2689 | (define-public python2-joblib | |
2690 | (package-with-python2 python-joblib)) | |
2691 | ||
3580ab8b DT |
2692 | (define-public python-docutils |
2693 | (package | |
2694 | (name "python-docutils") | |
2695 | (version "0.12") | |
2696 | (source | |
2697 | (origin | |
2698 | (method url-fetch) | |
2699 | (uri (string-append | |
2700 | "https://pypi.python.org/packages/source/d/docutils/docutils-" | |
2701 | version ".tar.gz")) | |
2702 | (sha256 | |
2703 | (base32 | |
2704 | "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7")))) | |
2705 | (build-system python-build-system) | |
3580ab8b DT |
2706 | (arguments |
2707 | '(#:tests? #f)) ; no setup.py test command | |
2708 | (home-page "http://docutils.sourceforge.net/") | |
2709 | (synopsis "Python Documentation Utilities") | |
2710 | (description | |
2711 | "Docutils is a modular system for processing documentation into useful | |
2712 | formats, such as HTML, XML, and LaTeX. For input Docutils supports | |
2713 | reStructuredText.") | |
2714 | ;; Most of the source code is public domain, but some source files are | |
2715 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. | |
3f641af0 | 2716 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
3580ab8b DT |
2717 | |
2718 | (define-public python2-docutils | |
2719 | (package-with-python2 python-docutils)) | |
fb35b7c0 DT |
2720 | |
2721 | (define-public python-pygments | |
2722 | (package | |
2723 | (name "python-pygments") | |
9f442285 | 2724 | (version "2.0.2") |
fb35b7c0 DT |
2725 | (source |
2726 | (origin | |
2727 | (method url-fetch) | |
9f442285 | 2728 | (uri (pypi-uri "Pygments" version)) |
fb35b7c0 DT |
2729 | (sha256 |
2730 | (base32 | |
9f442285 | 2731 | "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k")))) |
fb35b7c0 | 2732 | (build-system python-build-system) |
fb35b7c0 DT |
2733 | (home-page "http://pygments.org/") |
2734 | (synopsis "Syntax highlighting") | |
2735 | (description | |
2736 | "Pygments is a syntax highlighting package written in Python.") | |
3f641af0 | 2737 | (license license:bsd-2))) |
fb35b7c0 DT |
2738 | |
2739 | (define-public python2-pygments | |
2740 | (package-with-python2 python-pygments)) | |
9dd6078d DT |
2741 | |
2742 | (define-public python-sphinx | |
2743 | (package | |
2744 | (name "python-sphinx") | |
2745 | (version "1.2.3") | |
2746 | (source | |
2747 | (origin | |
2748 | (method url-fetch) | |
2749 | (uri (string-append | |
2750 | "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" | |
2751 | version ".tar.gz")) | |
2752 | (sha256 | |
2753 | (base32 | |
2754 | "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) | |
2755 | (build-system python-build-system) | |
f22efa01 | 2756 | (propagated-inputs |
f3b98f4f | 2757 | `(("python-jinja2" ,python-jinja2) |
9dd6078d DT |
2758 | ("python-docutils" ,python-docutils) |
2759 | ("python-pygments" ,python-pygments))) | |
2760 | (home-page "http://sphinx-doc.org/") | |
2761 | (synopsis "Python documentation generator") | |
2762 | (description "Sphinx is a tool that makes it easy to create documentation | |
2763 | for Python projects or other documents consisting of multiple reStructuredText | |
2764 | sources.") | |
3f641af0 | 2765 | (license license:bsd-3))) |
9dd6078d DT |
2766 | |
2767 | (define-public python2-sphinx | |
2768 | (package-with-python2 python-sphinx)) | |
6888830b | 2769 | |
ad320b20 RW |
2770 | (define-public python-sphinx-rtd-theme |
2771 | (package | |
2772 | (name "python-sphinx-rtd-theme") | |
2773 | (version "0.1.6") | |
2774 | (source | |
2775 | (origin | |
2776 | (method url-fetch) | |
2777 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
2778 | "sphinx_rtd_theme/sphinx_rtd_theme-" | |
2779 | version ".tar.gz")) | |
2780 | (sha256 | |
2781 | (base32 | |
2782 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) | |
2783 | (build-system python-build-system) | |
ad320b20 RW |
2784 | (home-page "https://github.com/snide/sphinx_rtd_theme/") |
2785 | (synopsis "ReadTheDocs.org theme for Sphinx") | |
2786 | (description "A theme for Sphinx used by ReadTheDocs.org.") | |
bd3fa666 | 2787 | (license license:expat))) |
ad320b20 RW |
2788 | |
2789 | (define-public python2-sphinx-rtd-theme | |
2790 | (package-with-python2 python-sphinx-rtd-theme)) | |
2791 | ||
f4de5b3b CAW |
2792 | (define-public python-feedgenerator |
2793 | (package | |
2794 | (name "python-feedgenerator") | |
f0412aa2 | 2795 | (version "1.8") |
f4de5b3b | 2796 | (source |
f4de5b3b | 2797 | (origin |
f0412aa2 EF |
2798 | (method url-fetch) |
2799 | (uri (pypi-uri "feedgenerator" version)) | |
f4de5b3b CAW |
2800 | (sha256 |
2801 | (base32 | |
f0412aa2 | 2802 | "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0")))) |
f4de5b3b | 2803 | (build-system python-build-system) |
dae73d9b | 2804 | (propagated-inputs |
f3b98f4f | 2805 | `(("python-pytz" ,python-pytz) |
f4de5b3b | 2806 | ("python-six" ,python-six))) |
f0412aa2 | 2807 | (home-page "https://github.com/getpelican/feedgenerator") |
f4de5b3b CAW |
2808 | (synopsis |
2809 | "Standalone version of Django's Atom/RSS feed generator") | |
2810 | (description | |
2811 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, | |
2812 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") | |
3f641af0 | 2813 | (license license:bsd-3))) |
f4de5b3b CAW |
2814 | |
2815 | (define-public python2-feedgenerator | |
2816 | (package-with-python2 python-feedgenerator)) | |
2817 | ||
59ad30e3 CAW |
2818 | (define-public python-blinker |
2819 | (package | |
2820 | (name "python-blinker") | |
7fb9ff4d | 2821 | (version "1.4") |
59ad30e3 CAW |
2822 | (source |
2823 | (origin | |
2824 | (method url-fetch) | |
7fb9ff4d | 2825 | (uri (pypi-uri "blinker" version)) |
59ad30e3 CAW |
2826 | (sha256 |
2827 | (base32 | |
7fb9ff4d | 2828 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
59ad30e3 | 2829 | (build-system python-build-system) |
59ad30e3 CAW |
2830 | ;; No "test" command supplied to setuptools, so unless there's another way |
2831 | ;; to run tests, we're skipping them! | |
2832 | (arguments '(#:tests? #f)) | |
2833 | (home-page "http://pythonhosted.org/blinker/") | |
2834 | (synopsis "Fast, simple object-to-object and broadcast signaling") | |
2835 | (description | |
2836 | "Blinker provides a fast dispatching system that allows any number of | |
2837 | interested parties to subscribe to events, or \"signals\".") | |
2838 | (license license:expat))) | |
2839 | ||
2840 | (define-public python2-blinker | |
2841 | (package-with-python2 python-blinker)) | |
2842 | ||
b8050e71 CAW |
2843 | (define-public pelican |
2844 | (package | |
2845 | (name "pelican") | |
11f97c27 | 2846 | (version "3.6.3") |
b8050e71 CAW |
2847 | (source |
2848 | (origin | |
2849 | (method url-fetch) | |
11f97c27 | 2850 | (uri (pypi-uri "pelican" version)) |
b8050e71 CAW |
2851 | (sha256 |
2852 | (base32 | |
11f97c27 | 2853 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
b8050e71 | 2854 | (build-system python-build-system) |
f22efa01 | 2855 | (propagated-inputs |
b8050e71 CAW |
2856 | `(("python-feedgenerator" ,python-feedgenerator) |
2857 | ("python-jinja2" ,python-jinja2) | |
2858 | ("python-pygments" ,python-pygments) | |
2859 | ("python-docutils" ,python-docutils) | |
2860 | ("python-pytz" ,python-pytz) | |
2861 | ("python-blinker" ,python-blinker) | |
2862 | ("python-unidecode" ,python-unidecode) | |
2863 | ("python-six" ,python-six) | |
2864 | ("python-dateutil-2" ,python-dateutil-2))) | |
2865 | (home-page "http://getpelican.com/") | |
2866 | (arguments | |
2867 | `(;; XXX Requires a lot more packages to do unit tests :P | |
2868 | #:tests? #f | |
2869 | #:phases (modify-phases %standard-phases | |
2870 | (add-before | |
2871 | 'install 'adjust-requires | |
2872 | ;; Since feedgenerator is installed from git, it doesn't | |
2873 | ;; conform to the version requirements. | |
2874 | ;; | |
2875 | ;; We *do have* "feedgenerator >= 1.6", but strip off the | |
2876 | ;; version requirement so setuptools doesn't get confused. | |
2877 | (lambda _ | |
2878 | (substitute* "setup.py" | |
2879 | (("['\"]feedgenerator.*?['\"]") | |
2880 | "'feedgenerator'"))))))) | |
2881 | (synopsis "Python-based static site publishing system") | |
2882 | (description | |
2883 | "Pelican is a tool to generate a static blog from reStructuredText, | |
2884 | Markdown input files, and more. Pelican uses Jinja2 for templating | |
2885 | and is very extensible.") | |
3f641af0 | 2886 | (license license:agpl3+))) |
b8050e71 | 2887 | |
240ca4aa RW |
2888 | (define-public python-scikit-learn |
2889 | (package | |
2890 | (name "python-scikit-learn") | |
be0a4c26 | 2891 | (version "0.16.1") |
240ca4aa RW |
2892 | (source |
2893 | (origin | |
2894 | (method url-fetch) | |
2895 | (uri (string-append | |
2896 | "https://github.com/scikit-learn/scikit-learn/archive/" | |
2897 | version ".tar.gz")) | |
7e21b9fb | 2898 | (file-name (string-append name "-" version ".tar.gz")) |
240ca4aa RW |
2899 | (sha256 |
2900 | (base32 | |
be0a4c26 | 2901 | "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih")))) |
240ca4aa RW |
2902 | (build-system python-build-system) |
2903 | (arguments | |
2904 | `(#:phases | |
2905 | (alist-cons-before | |
2f6b3d2e RW |
2906 | 'check 'set-HOME |
2907 | ;; some tests require access to "$HOME" | |
2908 | (lambda _ (setenv "HOME" "/tmp")) | |
2909 | ;; Tests can only be run after the library has been installed and not | |
2910 | ;; within the source directory. | |
2911 | (alist-cons-after | |
2912 | 'install 'check | |
2913 | (lambda _ | |
2914 | (with-directory-excursion "/tmp" | |
2915 | ;; With Python 3 one test of 3334 fails | |
2916 | ;; (sklearn.tests.test_common.test_transformers); see | |
2917 | ;; https://github.com/scikit-learn/scikit-learn/issues/3693 | |
2918 | (system* "nosetests" "-v" "sklearn"))) | |
2919 | (alist-delete 'check %standard-phases))))) | |
240ca4aa | 2920 | (inputs |
328bb95d HG |
2921 | `(("openblas" ,openblas))) |
2922 | (native-inputs | |
2923 | `(("python-nose" ,python-nose))) | |
240ca4aa RW |
2924 | (propagated-inputs |
2925 | `(("python-numpy" ,python-numpy) | |
2926 | ("python-scipy" ,python-scipy))) | |
2927 | (home-page "http://scikit-learn.org/") | |
2928 | (synopsis "Machine Learning in Python") | |
2929 | (description | |
2930 | "Scikit-learn provides simple and efficient tools for data | |
2931 | mining and data analysis.") | |
25a2f81f EF |
2932 | (license license:bsd-3) |
2933 | (properties `((python2-variant . ,(delay python2-scikit-learn)))))) | |
240ca4aa RW |
2934 | |
2935 | (define-public python2-scikit-learn | |
25a2f81f | 2936 | (package-with-python2 (strip-python2-variant python-scikit-learn))) |
240ca4aa | 2937 | |
12f8f9bb RW |
2938 | (define-public python-scikit-image |
2939 | (package | |
2940 | (name "python-scikit-image") | |
2941 | (version "0.11.3") | |
2942 | (source | |
2943 | (origin | |
2944 | (method url-fetch) | |
2945 | (uri (string-append | |
2946 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" | |
2947 | version ".tar.gz")) | |
2948 | (sha256 | |
2949 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) | |
2950 | (build-system python-build-system) | |
2951 | (propagated-inputs | |
2952 | `(("python-matplotlib" ,python-matplotlib) | |
2953 | ("python-networkx" ,python-networkx) | |
2954 | ("python-numpy" ,python-numpy) | |
2955 | ("python-scipy" ,python-scipy) | |
2956 | ("python-six" ,python-six) | |
2957 | ("python-pillow" ,python-pillow))) | |
2958 | (native-inputs | |
f3b98f4f | 2959 | `(("python-cython" ,python-cython))) |
12f8f9bb RW |
2960 | (home-page "http://scikit-image.org/") |
2961 | (synopsis "Image processing in Python") | |
2962 | (description | |
e881752c | 2963 | "Scikit-image is a collection of algorithms for image processing.") |
2b031d3f EF |
2964 | (license license:bsd-3) |
2965 | (properties `((python2-variant . ,(delay python2-scikit-image)))))) | |
12f8f9bb RW |
2966 | |
2967 | (define-public python2-scikit-image | |
2b031d3f EF |
2968 | (let ((scikit-image (package-with-python2 |
2969 | (strip-python2-variant python-scikit-image)))) | |
12f8f9bb RW |
2970 | (package (inherit scikit-image) |
2971 | (native-inputs | |
2972 | `(("python2-mock" ,python2-mock) | |
2973 | ,@(package-native-inputs scikit-image))) | |
2974 | (propagated-inputs | |
2975 | `(("python2-pytz" ,python2-pytz) | |
2b031d3f | 2976 | ,@(package-propagated-inputs scikit-image)))))) |
12f8f9bb | 2977 | |
5394a6a6 RW |
2978 | (define-public python-redis |
2979 | (package | |
2980 | (name "python-redis") | |
2981 | (version "2.10.3") | |
2982 | (source | |
2983 | (origin | |
2984 | (method url-fetch) | |
2985 | (uri (string-append | |
2986 | "https://pypi.python.org/packages/source/r/redis/redis-" | |
2987 | version ".tar.gz")) | |
2988 | (sha256 | |
2989 | (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4")))) | |
2990 | (build-system python-build-system) | |
2991 | ;; Tests require a running Redis server | |
2992 | (arguments '(#:tests? #f)) | |
2993 | (native-inputs | |
f3b98f4f | 2994 | `(("python-pytest" ,python-pytest))) |
5394a6a6 RW |
2995 | (home-page "https://github.com/andymccurdy/redis-py") |
2996 | (synopsis "Redis Python client") | |
2997 | (description | |
2998 | "This package provides a Python interface to the Redis key-value store.") | |
2999 | (license license:expat))) | |
3000 | ||
3001 | (define-public python2-redis | |
3002 | (package-with-python2 python-redis)) | |
3003 | ||
748cef5b RW |
3004 | (define-public python-rq |
3005 | (package | |
3006 | (name "python-rq") | |
3007 | (version "0.5.2") | |
3008 | (source | |
3009 | (origin | |
3010 | (method url-fetch) | |
3011 | (uri (string-append | |
3012 | "https://pypi.python.org/packages/source/r/rq/rq-" | |
3013 | version ".tar.gz")) | |
3014 | (sha256 | |
3015 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) | |
3016 | (build-system python-build-system) | |
3017 | (propagated-inputs | |
3018 | `(("python-click" ,python-click) | |
3019 | ("python-redis" ,python-redis))) | |
748cef5b RW |
3020 | (home-page "http://python-rq.org/") |
3021 | (synopsis "Simple job queues for Python") | |
3022 | (description | |
3023 | "RQ (Redis Queue) is a simple Python library for queueing jobs and | |
3024 | processing them in the background with workers. It is backed by Redis and it | |
3025 | is designed to have a low barrier to entry.") | |
3f641af0 | 3026 | (license license:bsd-2))) |
748cef5b RW |
3027 | |
3028 | (define-public python2-rq | |
3029 | (package-with-python2 python-rq)) | |
3030 | ||
6888830b FB |
3031 | (define-public python-cython |
3032 | (package | |
3033 | (name "python-cython") | |
dd22efef | 3034 | (version "0.24.1") |
6888830b FB |
3035 | (source |
3036 | (origin | |
3037 | (method url-fetch) | |
56918e26 | 3038 | (uri (pypi-uri "Cython" version)) |
6888830b FB |
3039 | (sha256 |
3040 | (base32 | |
dd22efef | 3041 | "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044")))) |
6888830b FB |
3042 | (build-system python-build-system) |
3043 | ;; we need the full python package and not just the python-wrapper | |
3044 | ;; because we need libpython3.3m.so | |
3045 | (inputs | |
3046 | `(("python" ,python))) | |
3047 | (arguments | |
3048 | `(#:phases | |
b92f651b EF |
3049 | (modify-phases %standard-phases |
3050 | (add-before 'check 'set-HOME | |
3051 | ;; some tests require access to "$HOME/.cython" | |
3052 | (lambda _ (setenv "HOME" "/tmp"))) | |
3053 | (replace 'check | |
3054 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))))))) | |
6888830b FB |
3055 | (home-page "http://cython.org/") |
3056 | (synopsis "C extensions for Python") | |
3057 | (description "Cython is an optimising static compiler for both the Python | |
3058 | programming language and the extended Cython programming language. It makes | |
3059 | writing C extensions for Python as easy as Python itself.") | |
3f641af0 | 3060 | (license license:asl2.0) |
48b311b1 | 3061 | (properties `((python2-variant . ,(delay python2-cython)))))) |
6888830b FB |
3062 | |
3063 | (define-public python2-cython | |
48b311b1 LC |
3064 | (package (inherit (package-with-python2 |
3065 | (strip-python2-variant python-cython))) | |
6888830b FB |
3066 | (name "python2-cython") |
3067 | (inputs | |
3068 | `(("python-2" ,python-2))))) ; this is not automatically changed | |
0da98533 | 3069 | |
ee5fb7ee AV |
3070 | ;; The RPython toolchain currently does not support Python 3. |
3071 | (define-public python2-rpython | |
3072 | (package | |
3073 | (name "python2-rpython") | |
3074 | (version "0.1.4") | |
3075 | (source | |
3076 | (origin | |
3077 | (method url-fetch) | |
3078 | (uri (pypi-uri "rpython" version)) | |
3079 | (sha256 | |
3080 | (base32 | |
3081 | "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc")))) | |
3082 | (build-system python-build-system) | |
3083 | (arguments `(#:python ,python-2)) | |
3084 | (native-inputs | |
f3b98f4f | 3085 | `(("python2-pytest" ,python2-pytest))) ; needed for running tests |
ee5fb7ee AV |
3086 | (home-page "https://rpython.readthedocs.org") |
3087 | (synopsis "Framework for implementing interpreters and virtual machines") | |
3088 | (description "RPython is a translation and support framework for | |
3089 | producing implementations of dynamic languages, emphasizing a clean separation | |
3090 | between language specification and implementation aspects.") | |
3091 | (license license:expat))) | |
3092 | ||
0da98533 FB |
3093 | ;; This version of numpy is missing the documentation and is only used to |
3094 | ;; build matplotlib which is required to build numpy's documentation. | |
3095 | (define python-numpy-bootstrap | |
3096 | (package | |
3097 | (name "python-numpy-bootstrap") | |
ef9b4c04 | 3098 | (version "1.10.4") |
0da98533 FB |
3099 | (source |
3100 | (origin | |
3101 | (method url-fetch) | |
de67e922 | 3102 | (uri (string-append "mirror://sourceforge/numpy/NumPy/" version |
0da98533 FB |
3103 | "/numpy-" version ".tar.gz")) |
3104 | (sha256 | |
3105 | (base32 | |
ef9b4c04 | 3106 | "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp")))) |
0da98533 FB |
3107 | (build-system python-build-system) |
3108 | (inputs | |
328bb95d | 3109 | `(("openblas" ,openblas) |
cba256f8 | 3110 | ("lapack" ,lapack))) |
0da98533 | 3111 | (native-inputs |
2efabc55 HG |
3112 | `(("python-nose" ,python-nose) |
3113 | ("gfortran" ,gfortran))) | |
0da98533 FB |
3114 | (arguments |
3115 | `(#:phases | |
2efabc55 HG |
3116 | (modify-phases %standard-phases |
3117 | (add-before 'build 'set-environment-variables | |
3118 | (lambda* (#:key inputs #:allow-other-keys) | |
dbdfe515 RW |
3119 | (call-with-output-file "site.cfg" |
3120 | (lambda (port) | |
cba256f8 RW |
3121 | (format port |
3122 | "[openblas] | |
dbdfe515 RW |
3123 | libraries = openblas |
3124 | library_dirs = ~a/lib | |
3125 | include_dirs = ~a/include | |
cba256f8 | 3126 | |
2efabc55 HG |
3127 | # backslash-n to make emacs happy |
3128 | \n[lapack] | |
cba256f8 RW |
3129 | lapack_libs = lapack |
3130 | library_dirs = ~a/lib | |
3131 | include_dirs = ~a/include | |
3132 | " | |
3133 | (assoc-ref inputs "openblas") | |
3134 | (assoc-ref inputs "openblas") | |
3135 | (assoc-ref inputs "lapack") | |
3136 | (assoc-ref inputs "lapack")))) | |
dbdfe515 RW |
3137 | ;; Use "gcc" executable, not "cc". |
3138 | (substitute* "numpy/distutils/system_info.py" | |
3139 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") | |
3140 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) | |
2efabc55 | 3141 | #t)) |
6a843168 FB |
3142 | ;; Tests can only be run after the library has been installed and not |
3143 | ;; within the source directory. | |
2efabc55 HG |
3144 | (delete 'check) |
3145 | (add-after 'install 'check | |
3146 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3147 | ;; Make installed package available for running the tests | |
3148 | (add-installed-pythonpath inputs outputs) | |
6a843168 | 3149 | (with-directory-excursion "/tmp" |
89b5c60e | 3150 | (zero? (system* "python" "-c" |
2efabc55 | 3151 | "import numpy; numpy.test(verbose=2)")))))))) |
0da98533 FB |
3152 | (home-page "http://www.numpy.org/") |
3153 | (synopsis "Fundamental package for scientific computing with Python") | |
3154 | (description "NumPy is the fundamental package for scientific computing | |
e881752c | 3155 | with Python. It contains among other things: a powerful N-dimensional array |
0da98533 FB |
3156 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
3157 | and Fortran code, useful linear algebra, Fourier transform, and random number | |
3158 | capabilities.") | |
3f641af0 | 3159 | (license license:bsd-3))) |
0da98533 FB |
3160 | |
3161 | (define python2-numpy-bootstrap | |
3162 | (package-with-python2 python-numpy-bootstrap)) | |
15bfe6d6 | 3163 | |
3a1bfe18 RW |
3164 | (define-public python2-fastlmm |
3165 | (package | |
3166 | (name "python2-fastlmm") | |
b074e7d4 | 3167 | (version "0.2.21") |
3a1bfe18 RW |
3168 | (source |
3169 | (origin | |
3170 | (method url-fetch) | |
b074e7d4 | 3171 | (uri (pypi-uri "fastlmm" version ".zip")) |
3a1bfe18 RW |
3172 | (sha256 |
3173 | (base32 | |
b074e7d4 | 3174 | "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m")))) |
3a1bfe18 RW |
3175 | (build-system python-build-system) |
3176 | (arguments | |
3177 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3178 | (propagated-inputs | |
3179 | `(("python2-numpy" ,python2-numpy) | |
3180 | ("python2-scipy" ,python2-scipy) | |
3181 | ("python2-matplotlib" ,python2-matplotlib) | |
3182 | ("python2-pandas" ,python2-pandas) | |
3183 | ("python2-scikit-learn" ,python2-scikit-learn) | |
3a1bfe18 RW |
3184 | ("python2-pysnptools" ,python2-pysnptools))) |
3185 | (native-inputs | |
3186 | `(("unzip" ,unzip) | |
2efabc55 | 3187 | ("python2-cython" ,python2-cython) |
f3b98f4f | 3188 | ("python2-mock" ,python2-mock))) |
3a1bfe18 RW |
3189 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") |
3190 | (synopsis "Perform genome-wide association studies on large data sets") | |
3191 | (description | |
3192 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed | |
3193 | Models, is a program for performing both single-SNP and SNP-set genome-wide | |
3194 | association studies (GWAS) on extremely large data sets.") | |
3f641af0 | 3195 | (license license:asl2.0))) |
3a1bfe18 | 3196 | |
2ee8869a FB |
3197 | (define-public python-numpy |
3198 | (package (inherit python-numpy-bootstrap) | |
3199 | (name "python-numpy") | |
3200 | (outputs '("out" "doc")) | |
89b5c60e | 3201 | (inputs |
2efabc55 HG |
3202 | `(("which" ,which))) |
3203 | (propagated-inputs | |
3204 | `(("python-matplotlib" ,python-matplotlib) | |
2ee8869a | 3205 | ("python-pyparsing" ,python-pyparsing) |
2ee8869a FB |
3206 | ,@(package-inputs python-numpy-bootstrap))) |
3207 | (native-inputs | |
3208 | `(("pkg-config" ,pkg-config) | |
2efabc55 HG |
3209 | ("python-sphinx" ,python-sphinx) |
3210 | ("python-numpydoc" ,python-numpydoc) | |
2ee8869a FB |
3211 | ("texlive" ,texlive) |
3212 | ("texinfo" ,texinfo) | |
3213 | ("perl" ,perl) | |
3214 | ,@(package-native-inputs python-numpy-bootstrap))) | |
3215 | (arguments | |
89b5c60e | 3216 | `(,@(substitute-keyword-arguments |
2ee8869a FB |
3217 | (package-arguments python-numpy-bootstrap) |
3218 | ((#:phases phases) | |
3219 | `(alist-cons-after | |
3220 | 'install 'install-doc | |
2efabc55 HG |
3221 | (lambda* (#:key inputs outputs #:allow-other-keys) |
3222 | ;; Make installed package available for building the | |
3223 | ;; documentation | |
3224 | (add-installed-pythonpath inputs outputs) | |
2ee8869a | 3225 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
89b5c60e AE |
3226 | (doc (string-append |
3227 | data "/doc/" ,name "-" | |
2ee8869a FB |
3228 | ,(package-version python-numpy-bootstrap))) |
3229 | (info (string-append data "/info")) | |
3230 | (html (string-append doc "/html")) | |
3231 | (pyver ,(string-append "PYVER="))) | |
3232 | (with-directory-excursion "doc" | |
3233 | (mkdir-p html) | |
3234 | (system* "make" "html" pyver) | |
3235 | (system* "make" "latex" "PAPER=a4" pyver) | |
89b5c60e | 3236 | (system* "make" "-C" "build/latex" |
2ee8869a FB |
3237 | "all-pdf" "PAPER=a4" pyver) |
3238 | ;; FIXME: Generation of the info file fails. | |
3239 | ;; (system* "make" "info" pyver) | |
3240 | ;; (mkdir-p info) | |
3241 | ;; (copy-file "build/texinfo/numpy.info" | |
3242 | ;; (string-append info "/numpy.info")) | |
3243 | (for-each (lambda (file) | |
3244 | (copy-file (string-append "build/latex" file) | |
3245 | (string-append doc file))) | |
3246 | '("/numpy-ref.pdf" "/numpy-user.pdf")) | |
3247 | (with-directory-excursion "build/html" | |
3248 | (for-each (lambda (file) | |
3249 | (let* ((dir (dirname file)) | |
3250 | (tgt-dir (string-append html "/" dir))) | |
3251 | (unless (equal? "." dir) | |
3252 | (mkdir-p tgt-dir)) | |
96c46210 | 3253 | (install-file file html))) |
2ee8869a FB |
3254 | (find-files "." ".*")))))) |
3255 | ,phases))))))) | |
3256 | ||
764c077b | 3257 | (define-public python2-numpy |
57b7b8cd | 3258 | (package-with-python2 python-numpy)) |
2ee8869a | 3259 | |
15bfe6d6 FB |
3260 | (define-public python-pyparsing |
3261 | (package | |
3262 | (name "python-pyparsing") | |
e0669289 | 3263 | (version "2.0.3") |
15bfe6d6 FB |
3264 | (source |
3265 | (origin | |
3266 | (method url-fetch) | |
de67e922 LF |
3267 | (uri (string-append "mirror://sourceforge/pyparsing/pyparsing" |
3268 | "/pyparsing-" version | |
15bfe6d6 FB |
3269 | "/pyparsing-" version ".tar.gz")) |
3270 | (sha256 | |
3271 | (base32 | |
e0669289 | 3272 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
15bfe6d6 FB |
3273 | (build-system python-build-system) |
3274 | (outputs '("out" "doc")) | |
3275 | (arguments | |
3276 | `(#:tests? #f ; no test target | |
3277 | #:modules ((guix build python-build-system) | |
3278 | (guix build utils)) | |
3279 | #:phases | |
3280 | (alist-cons-after | |
3281 | 'install 'install-doc | |
3282 | (lambda* (#:key outputs #:allow-other-keys) | |
89b5c60e | 3283 | (let* ((doc (string-append (assoc-ref outputs "doc") |
15bfe6d6 FB |
3284 | "/share/doc/" ,name "-" ,version)) |
3285 | (html-doc (string-append doc "/html")) | |
3286 | (examples (string-append doc "/examples"))) | |
3287 | (mkdir-p html-doc) | |
3288 | (mkdir-p examples) | |
89b5c60e | 3289 | (for-each |
15bfe6d6 | 3290 | (lambda (dir tgt) |
89b5c60e | 3291 | (map (lambda (file) |
96c46210 | 3292 | (install-file file tgt)) |
15bfe6d6 FB |
3293 | (find-files dir ".*"))) |
3294 | (list "docs" "htmldoc" "examples") | |
3295 | (list doc html-doc examples)))) | |
3296 | %standard-phases))) | |
3297 | (home-page "http://pyparsing.wikispaces.com") | |
3298 | (synopsis "Python parsing class library") | |
3299 | (description | |
3300 | "The pyparsing module is an alternative approach to creating and | |
3301 | executing simple grammars, vs. the traditional lex/yacc approach, or the use | |
3302 | of regular expressions. The pyparsing module provides a library of classes | |
3303 | that client code uses to construct the grammar directly in Python code.") | |
bd3fa666 | 3304 | (license license:expat))) |
15bfe6d6 FB |
3305 | |
3306 | (define-public python2-pyparsing | |
3307 | (package-with-python2 python-pyparsing)) | |
3308 | ||
ec00de35 FB |
3309 | (define-public python-numpydoc |
3310 | (package | |
3311 | (name "python-numpydoc") | |
3312 | (version "0.5") | |
3313 | (source | |
3314 | (origin | |
3315 | (method url-fetch) | |
89b5c60e | 3316 | (uri (string-append |
ec00de35 FB |
3317 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
3318 | version ".tar.gz")) | |
3319 | (sha256 | |
3320 | (base32 | |
5e4d8f67 AE |
3321 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
3322 | (modules '((guix build utils))) | |
3323 | (snippet | |
3324 | '(begin | |
3325 | ;; Drop a test requiring matplotlib, which we cannot add as an | |
3326 | ;; input since it would create a circular dependency: Extend the | |
3327 | ;; test for Python 3, where it is already dropped, to Python 2. | |
3328 | (substitute* "numpydoc/tests/test_plot_directive.py" | |
3329 | (("3") "2")))))) | |
ec00de35 | 3330 | (build-system python-build-system) |
328bb95d | 3331 | (native-inputs |
f3b98f4f | 3332 | `(("python-docutils" ,python-docutils) |
ec00de35 FB |
3333 | ("python-sphinx" ,python-sphinx) |
3334 | ("python-nose" ,python-nose))) | |
3335 | (home-page "https://pypi.python.org/pypi/numpydoc") | |
3336 | (synopsis | |
3337 | "Numpy's Sphinx extensions") | |
3338 | (description | |
3339 | "Sphinx extension to support docstrings in Numpy format.") | |
3f641af0 | 3340 | (license license:bsd-2))) |
ec00de35 FB |
3341 | |
3342 | (define-public python2-numpydoc | |
5e4d8f67 | 3343 | (package-with-python2 python-numpydoc)) |
1c65314c | 3344 | |
1e656049 RW |
3345 | (define-public python-numexpr |
3346 | (package | |
3347 | (name "python-numexpr") | |
26112c0a | 3348 | (version "2.6.0") |
1e656049 RW |
3349 | (source |
3350 | (origin | |
3351 | (method url-fetch) | |
26112c0a | 3352 | (uri (pypi-uri "numexpr" version)) |
1e656049 RW |
3353 | (sha256 |
3354 | (base32 | |
26112c0a | 3355 | "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag")))) |
1e656049 RW |
3356 | (build-system python-build-system) |
3357 | (arguments `(#:tests? #f)) ; no tests included | |
3358 | (propagated-inputs | |
3359 | `(("python-numpy" ,python-numpy))) | |
3360 | (home-page "https://github.com/pydata/numexpr") | |
3361 | (synopsis "Fast numerical expression evaluator for NumPy") | |
3362 | (description | |
3363 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, | |
3364 | expressions that operate on arrays are accelerated and use less memory than | |
3365 | doing the same calculation in Python. In addition, its multi-threaded | |
3366 | capabilities can make use of all your cores, which may accelerate | |
3367 | computations, most specially if they are not memory-bounded (e.g. those using | |
3368 | transcendental functions).") | |
f210e944 | 3369 | (license license:expat))) |
1e656049 RW |
3370 | |
3371 | (define-public python2-numexpr | |
f210e944 | 3372 | (package-with-python2 python-numexpr)) |
1e656049 | 3373 | |
1c65314c FB |
3374 | (define-public python-matplotlib |
3375 | (package | |
3376 | (name "python-matplotlib") | |
1bbc659f | 3377 | (version "1.4.3") |
1c65314c FB |
3378 | (source |
3379 | (origin | |
3380 | (method url-fetch) | |
de67e922 LF |
3381 | (uri (string-append "mirror://sourceforge/matplotlib/matplotlib" |
3382 | "/matplotlib-" version | |
1c65314c FB |
3383 | "/matplotlib-" version ".tar.gz")) |
3384 | (sha256 | |
3385 | (base32 | |
1bbc659f | 3386 | "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av")) |
fc1adab1 | 3387 | (patches (search-patches "matplotlib-setupext-tk.patch")))) |
1c65314c FB |
3388 | (build-system python-build-system) |
3389 | (outputs '("out" "doc")) | |
25f9a068 FB |
3390 | (propagated-inputs ; the following packages are all needed at run time |
3391 | `(("python-pyparsing" ,python-pyparsing) | |
3392 | ("python-pygobject" ,python-pygobject) | |
3393 | ("gobject-introspection" ,gobject-introspection) | |
1bbc659f | 3394 | ("python-tkinter" ,python "tk") |
ca33a3ad HG |
3395 | ("python-dateutil" ,python-dateutil-2) |
3396 | ("python-numpy" ,python-numpy-bootstrap) | |
3397 | ("python-pillow" ,python-pillow) | |
3398 | ("python-pytz" ,python-pytz) | |
3399 | ("python-six" ,python-six) | |
25f9a068 FB |
3400 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
3401 | ;; from 'gtk+') provides the required 'typelib' files used by | |
3402 | ;; 'gobject-introspection'. The location of these files is set with the | |
3403 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this | |
3404 | ;; is done automatically by a 'native-search-path' procedure. However, | |
3405 | ;; at run-time the user must set this variable as follows: | |
3406 | ;; | |
3407 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 | |
25f9a068 FB |
3408 | ("gtk+" ,gtk+) |
3409 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of | |
3410 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' | |
3411 | ;; object. For this reason we need to import both libraries. | |
3412 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo | |
3413 | ("python-pycairo" ,python-pycairo) | |
3414 | ("python-cairocffi" ,python-cairocffi))) | |
1c65314c | 3415 | (inputs |
ca33a3ad | 3416 | `(("libpng" ,libpng) |
1c65314c FB |
3417 | ("imagemagick" ,imagemagick) |
3418 | ("freetype" ,freetype) | |
25f9a068 FB |
3419 | ("cairo" ,cairo) |
3420 | ("glib" ,glib) | |
1c65314c | 3421 | ;; FIXME: Add backends when available. |
1c65314c FB |
3422 | ;("python-wxpython" ,python-wxpython) |
3423 | ;("python-pyqt" ,python-pyqt) | |
1bbc659f FB |
3424 | ("tcl" ,tcl) |
3425 | ("tk" ,tk))) | |
1c65314c FB |
3426 | (native-inputs |
3427 | `(("pkg-config" ,pkg-config) | |
ca33a3ad HG |
3428 | ("python-sphinx" ,python-sphinx) |
3429 | ("python-numpydoc" ,python-numpydoc) | |
3430 | ("python-nose" ,python-nose) | |
3431 | ("python-mock" ,python-mock) | |
1c65314c FB |
3432 | ("texlive" ,texlive) |
3433 | ("texinfo" ,texinfo))) | |
3434 | (arguments | |
3435 | `(#:phases | |
25f9a068 FB |
3436 | (alist-cons-before |
3437 | 'build 'configure-environment | |
3438 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3439 | (let ((cairo (assoc-ref inputs "cairo")) | |
3440 | (gtk+ (assoc-ref inputs "gtk+"))) | |
3441 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' | |
3442 | ;; has not effect. | |
25f9a068 FB |
3443 | (setenv "LD_LIBRARY_PATH" |
3444 | (string-append cairo "/lib:" gtk+ "/lib")) | |
3445 | (setenv "HOME" (getcwd)) | |
3446 | (call-with-output-file "setup.cfg" | |
3447 | (lambda (port) | |
1bbc659f FB |
3448 | (format port "[directories]~% |
3449 | basedirlist = ~a,~a~% | |
57b7b8cd | 3450 | [rc_options]~% |
1bbc659f FB |
3451 | backend = TkAgg~%" |
3452 | (assoc-ref inputs "tcl") | |
3453 | (assoc-ref inputs "tk")))))) | |
25f9a068 FB |
3454 | (alist-cons-after |
3455 | 'install 'install-doc | |
ca33a3ad | 3456 | (lambda* (#:key inputs outputs #:allow-other-keys) |
25f9a068 FB |
3457 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
3458 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3459 | (info (string-append data "/info")) | |
3460 | (html (string-append doc "/html"))) | |
ca33a3ad HG |
3461 | ;; Make installed package available for building the |
3462 | ;; documentation | |
3463 | (add-installed-pythonpath inputs outputs) | |
25f9a068 | 3464 | (with-directory-excursion "doc" |
25f9a068 FB |
3465 | ;; Produce pdf in 'A4' format. |
3466 | (substitute* (find-files "." "conf\\.py") | |
3467 | (("latex_paper_size = 'letter'") | |
3468 | "latex_paper_size = 'a4'")) | |
3469 | (mkdir-p html) | |
3470 | (mkdir-p info) | |
3471 | ;; The doc recommends to run the 'html' target twice. | |
3472 | (system* "python" "make.py" "html") | |
3473 | (system* "python" "make.py" "html") | |
18b31516 | 3474 | (copy-recursively "build/html" html) |
25f9a068 FB |
3475 | (system* "python" "make.py" "latex") |
3476 | (system* "python" "make.py" "texinfo") | |
18b31516 FB |
3477 | (symlink (string-append html "/_images") |
3478 | (string-append info "/matplotlib-figures")) | |
3479 | (with-directory-excursion "build/texinfo" | |
3480 | (substitute* "matplotlib.texi" | |
3481 | (("@image\\{([^,]*)" all file) | |
3482 | (string-append "@image{matplotlib-figures/" file))) | |
3483 | (symlink (string-append html "/_images") | |
3484 | "./matplotlib-figures") | |
3485 | (system* "makeinfo" "--no-split" | |
3486 | "-o" "matplotlib.info" "matplotlib.texi")) | |
25f9a068 FB |
3487 | (copy-file "build/texinfo/matplotlib.info" |
3488 | (string-append info "/matplotlib.info")) | |
3489 | (copy-file "build/latex/Matplotlib.pdf" | |
18b31516 | 3490 | (string-append doc "/Matplotlib.pdf"))))) |
25f9a068 | 3491 | %standard-phases)))) |
1c65314c FB |
3492 | (home-page "http://matplotlib.org") |
3493 | (synopsis "2D plotting library for Python") | |
3494 | (description | |
3495 | "Matplotlib is a Python 2D plotting library which produces publication | |
3496 | quality figures in a variety of hardcopy formats and interactive environments | |
3497 | across platforms. Matplotlib can be used in Python scripts, the python and | |
3498 | ipython shell, web application servers, and six graphical user interface | |
3499 | toolkits.") | |
3f641af0 | 3500 | (license license:psfl) |
57b7b8cd | 3501 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) |
1c65314c | 3502 | |
764c077b | 3503 | (define-public python2-matplotlib |
57b7b8cd LC |
3504 | (let ((matplotlib (package-with-python2 |
3505 | (strip-python2-variant python-matplotlib)))) | |
764c077b | 3506 | (package (inherit matplotlib) |
88c26834 AE |
3507 | ;; Make sure to use special packages for Python 2 instead |
3508 | ;; of those automatically rewritten by package-with-python2. | |
89b5c60e | 3509 | (propagated-inputs |
7ca0dbc3 | 3510 | `(("python2-pycairo" ,python2-pycairo) |
764c077b | 3511 | ("python2-pygobject-2" ,python2-pygobject-2) |
1bbc659f FB |
3512 | ("python2-tkinter" ,python-2 "tk") |
3513 | ,@(fold alist-delete (package-propagated-inputs matplotlib) | |
3514 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) | |
94914805 | 3515 | |
0dde6232 RW |
3516 | (define-public python2-pysnptools |
3517 | (package | |
3518 | (name "python2-pysnptools") | |
a800018e | 3519 | (version "0.3.9") |
0dde6232 RW |
3520 | (source |
3521 | (origin | |
3522 | (method url-fetch) | |
3f2e9675 | 3523 | (uri (pypi-uri "pysnptools" version ".zip")) |
0dde6232 RW |
3524 | (sha256 |
3525 | (base32 | |
a800018e | 3526 | "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2")))) |
0dde6232 RW |
3527 | (build-system python-build-system) |
3528 | (arguments | |
3529 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3530 | (propagated-inputs | |
3531 | `(("python2-numpy" ,python2-numpy) | |
3532 | ("python2-scipy" ,python2-scipy) | |
b72ac1b5 HG |
3533 | ("python2-pandas" ,python2-pandas))) |
3534 | (native-inputs | |
3535 | `(("python2-cython" ,python2-cython))) | |
0dde6232 | 3536 | (native-inputs |
f3b98f4f | 3537 | `(("unzip" ,unzip))) |
0dde6232 RW |
3538 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") |
3539 | (synopsis "Library for reading and manipulating genetic data") | |
3540 | (description | |
3541 | "PySnpTools is a library for reading and manipulating genetic data. It | |
3542 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of | |
3543 | those files. It can also efficiently manipulate ranges of integers using set | |
3544 | operators such as union, intersection, and difference.") | |
3f641af0 | 3545 | (license license:asl2.0))) |
0dde6232 | 3546 | |
c9b1b4f9 RW |
3547 | (define-public python-rpy2 |
3548 | (package | |
3549 | (name "python-rpy2") | |
ec3bcbc7 | 3550 | (version "2.7.6") |
c9b1b4f9 RW |
3551 | (source |
3552 | (origin | |
3553 | (method url-fetch) | |
ec3bcbc7 | 3554 | (uri (pypi-uri "rpy2" version)) |
c9b1b4f9 RW |
3555 | (sha256 |
3556 | (base32 | |
ec3bcbc7 | 3557 | "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) |
c9b1b4f9 | 3558 | (build-system python-build-system) |
482d9591 HG |
3559 | (propagated-inputs |
3560 | `(("python-six" ,python-six))) | |
c9b1b4f9 | 3561 | (inputs |
482d9591 | 3562 | `(("readline" ,readline) |
c9b1b4f9 RW |
3563 | ("icu4c" ,icu4c) |
3564 | ("pcre" ,pcre) | |
3565 | ("r" ,r))) | |
3566 | (native-inputs | |
f3b98f4f | 3567 | `(("zlib" ,zlib))) |
c9b1b4f9 RW |
3568 | (home-page "http://rpy.sourceforge.net/") |
3569 | (synopsis "Python interface to the R language") | |
3570 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a | |
3571 | low-level interface to R from Python, a proposed high-level interface, | |
3572 | including wrappers to graphical libraries, as well as R-like structures and | |
3573 | functions.") | |
3f641af0 | 3574 | (license license:gpl3+))) |
c9b1b4f9 RW |
3575 | |
3576 | (define-public python2-rpy2 | |
3577 | (let ((rpy2 (package-with-python2 python-rpy2))) | |
3578 | (package (inherit rpy2) | |
3579 | (native-inputs | |
3580 | `(("python2-singledispatch" ,python2-singledispatch) | |
3581 | ,@(package-native-inputs rpy2)))))) | |
3582 | ||
bb986599 FB |
3583 | (define-public python-scipy |
3584 | (package | |
3585 | (name "python-scipy") | |
ba8a0824 | 3586 | (version "0.16.0") |
bb986599 FB |
3587 | (source |
3588 | (origin | |
3589 | (method url-fetch) | |
de67e922 LF |
3590 | ; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz |
3591 | (uri (string-append "mirror://sourceforge/scipy/scipy/" version | |
da6ce3f1 | 3592 | "/scipy-" version ".tar.xz")) |
bb986599 FB |
3593 | (sha256 |
3594 | (base32 | |
ba8a0824 | 3595 | "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2")))) |
bb986599 | 3596 | (build-system python-build-system) |
dd86c0d1 | 3597 | (propagated-inputs |
bb986599 FB |
3598 | `(("python-numpy" ,python-numpy) |
3599 | ("python-matplotlib" ,python-matplotlib) | |
dd86c0d1 RW |
3600 | ("python-pyparsing" ,python-pyparsing))) |
3601 | (inputs | |
3602 | `(("lapack" ,lapack) | |
719b01c1 | 3603 | ("openblas" ,openblas))) |
bb986599 | 3604 | (native-inputs |
dd86c0d1 RW |
3605 | `(("python-nose" ,python-nose) |
3606 | ("python-sphinx" ,python-sphinx) | |
5248d49e | 3607 | ("python-numpydoc" ,python-numpydoc) |
dd86c0d1 | 3608 | ("gfortran" ,gfortran) |
bb986599 FB |
3609 | ("texlive" ,texlive) |
3610 | ("perl" ,perl))) | |
3611 | (outputs '("out" "doc")) | |
3612 | (arguments | |
3613 | `(#:phases | |
3614 | (alist-cons-before | |
719b01c1 | 3615 | 'build 'configure-openblas |
bb986599 | 3616 | (lambda* (#:key inputs #:allow-other-keys) |
719b01c1 RW |
3617 | (call-with-output-file "site.cfg" |
3618 | (lambda (port) | |
3619 | (format port | |
3620 | "[blas] | |
3621 | libraries = openblas | |
3622 | library_dirs = ~a/lib | |
3623 | include_dirs = ~a/include | |
d548e6aa HG |
3624 | |
3625 | # backslash-n to make emacs happy | |
3626 | \n[atlas] | |
719b01c1 RW |
3627 | library_dirs = ~a/lib |
3628 | atlas_libs = openblas | |
3629 | " | |
3630 | (assoc-ref inputs "openblas") | |
3631 | (assoc-ref inputs "openblas") | |
3632 | (assoc-ref inputs "openblas")))) | |
3633 | #t) | |
bb986599 FB |
3634 | (alist-cons-after |
3635 | 'install 'install-doc | |
d548e6aa | 3636 | (lambda* (#:key inputs outputs #:allow-other-keys) |
bb986599 FB |
3637 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
3638 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3639 | (html (string-append doc "/html")) | |
3640 | (pyver ,(string-append "PYVER="))) | |
d548e6aa HG |
3641 | ;; Make installed package available for building the |
3642 | ;; documentation | |
3643 | (add-installed-pythonpath inputs outputs) | |
bb986599 | 3644 | (with-directory-excursion "doc" |
bb986599 FB |
3645 | ;; Fix generation of images for mathematical expressions. |
3646 | (substitute* (find-files "source" "conf\\.py") | |
3647 | (("pngmath_use_preview = True") | |
3648 | "pngmath_use_preview = False")) | |
3649 | (mkdir-p html) | |
3650 | (system* "make" "html" pyver) | |
3651 | (system* "make" "latex" "PAPER=a4" pyver) | |
3652 | (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver) | |
3653 | (copy-file "build/latex/scipy-ref.pdf" | |
3654 | (string-append doc "/scipy-ref.pdf")) | |
3655 | (with-directory-excursion "build/html" | |
3656 | (for-each (lambda (file) | |
3657 | (let* ((dir (dirname file)) | |
3658 | (tgt-dir (string-append html "/" dir))) | |
96c46210 | 3659 | (install-file file html))) |
bb986599 FB |
3660 | (find-files "." ".*")))))) |
3661 | ;; Tests can only be run after the library has been installed and not | |
3662 | ;; within the source directory. | |
3663 | (alist-cons-after | |
3664 | 'install 'check | |
89b5c60e | 3665 | (lambda _ |
bb986599 FB |
3666 | (with-directory-excursion "/tmp" |
3667 | (zero? (system* "python" "-c" "import scipy; scipy.test()")))) | |
89b5c60e AE |
3668 | (alist-delete |
3669 | 'check | |
4f9ff21e RW |
3670 | (alist-cons-after |
3671 | 'unpack 'fix-tests | |
3672 | (lambda _ | |
3673 | (substitute* "scipy/integrate/tests/test_quadpack.py" | |
3674 | (("libm.so") "libm.so.6")) | |
3675 | #t) | |
3676 | %standard-phases))))))) | |
bb986599 FB |
3677 | (home-page "http://www.scipy.org/") |
3678 | (synopsis "The Scipy library provides efficient numerical routines") | |
3679 | (description "The SciPy library is one of the core packages that make up | |
3680 | the SciPy stack. It provides many user-friendly and efficient numerical | |
3681 | routines such as routines for numerical integration and optimization.") | |
3f641af0 | 3682 | (license license:bsd-3))) |
bb986599 | 3683 | |
764c077b | 3684 | (define-public python2-scipy |
57b7b8cd | 3685 | (package-with-python2 python-scipy)) |
bb986599 | 3686 | |
73acc193 | 3687 | (define-public python-socksipy-branch |
3688 | (package | |
3689 | (name "python-socksipy-branch") | |
3690 | (version "1.01") | |
3691 | (source | |
3692 | (origin | |
3693 | (method url-fetch) | |
3694 | (uri (pypi-uri "SocksiPy-branch" version)) | |
3695 | (sha256 | |
3696 | (base32 | |
3697 | "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) | |
3698 | (build-system python-build-system) | |
3699 | (arguments | |
3700 | `(#:tests? #f)) ; There are no tests | |
3701 | (home-page "https://code.google.com/archive/p/socksipy-branch/") | |
3702 | (synopsis "Python SOCKS module") | |
3703 | (description | |
3704 | "SocksiPy - A Python SOCKS client module. It provides a | |
3705 | socket-like interface that supports connections to any TCP | |
3706 | service through the use of a SOCKS4, SOCKS5 or HTTP proxy. | |
3707 | The original version was developed by Dan Haim, this is a | |
3708 | branch created by Mario Vilas to address some open issues, | |
3709 | as the original project seems to have been abandoned circa 2007.") | |
3710 | (license license:bsd-3))) | |
3711 | ||
3712 | (define-public python2-socksipy-branch | |
3713 | (package-with-python2 python-socksipy-branch)) | |
3714 | ||
94914805 EB |
3715 | (define-public python-sqlalchemy |
3716 | (package | |
3717 | (name "python-sqlalchemy") | |
a4ba286b | 3718 | (version "1.0.12") |
94914805 EB |
3719 | (source |
3720 | (origin | |
3721 | (method url-fetch) | |
3722 | (uri (string-append "https://pypi.python.org/packages/source/S/" | |
3723 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) | |
3724 | (sha256 | |
3725 | (base32 | |
a4ba286b | 3726 | "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6")))) |
94914805 EB |
3727 | (build-system python-build-system) |
3728 | (native-inputs | |
3729 | `(("python-cython" ,python-cython) ;for c extensions | |
3730 | ("python-pytest" ,python-pytest) | |
3731 | ("python-mock" ,python-mock))) ;for tests | |
3732 | (arguments | |
3733 | `(#:phases (alist-replace | |
3734 | 'check | |
3735 | (lambda _ (zero? (system* "py.test"))) | |
3736 | %standard-phases))) | |
3737 | (home-page "http://www.sqlalchemy.org") | |
3738 | (synopsis "Database abstraction library") | |
3739 | (description | |
3740 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that | |
3741 | gives application developers the full power and flexibility of SQL. It | |
3742 | provides a full suite of well known enterprise-level persistence patterns, | |
3743 | designed for efficient and high-performing database access, adapted into a | |
3744 | simple and Pythonic domain language.") | |
3f641af0 | 3745 | (license license:x11))) |
94914805 EB |
3746 | |
3747 | (define-public python2-sqlalchemy | |
3748 | (package-with-python2 python-sqlalchemy)) | |
c937562e | 3749 | |
4a093330 DM |
3750 | (define-public python-pycodestyle |
3751 | (package | |
3752 | (name "python-pycodestyle") | |
3753 | (version "2.0.0") | |
3754 | (source | |
3755 | (origin | |
3756 | (method url-fetch) | |
3757 | (uri (pypi-uri "pycodestyle" version)) | |
3758 | (sha256 | |
3759 | (base32 | |
3760 | "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p")))) | |
3761 | (build-system python-build-system) | |
3762 | (home-page "https://pycodestyle.readthedocs.io/") | |
3763 | (synopsis "Python style guide checker") | |
3764 | (description "@code{pycodestyle} (formerly pep8) is a tool to check | |
3765 | Python code against some of the style conventions in | |
3766 | @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.") | |
f210e944 | 3767 | (license license:expat))) |
4a093330 DM |
3768 | |
3769 | (define-public python2-pycodestyle | |
f210e944 | 3770 | (package-with-python2 python-pycodestyle)) |
b91912c4 DM |
3771 | |
3772 | (define-public python-orderedmultidict | |
3773 | (package | |
3774 | (name "python-orderedmultidict") | |
3775 | (version "0.7.10") | |
3776 | (source | |
3777 | (origin | |
3778 | (method url-fetch) | |
3779 | (uri (pypi-uri "orderedmultidict" version)) | |
3780 | (sha256 | |
3781 | (base32 | |
3782 | "1gvqk0jd432wsn88kq4svad68xz3r012jfpnhh9in7bqrkyxidky")))) | |
3783 | (build-system python-build-system) | |
3784 | (arguments | |
3785 | `(#:phases | |
3786 | (modify-phases %standard-phases | |
3787 | (add-after 'unpack 'fix-tests | |
3788 | (lambda _ | |
3789 | ;; The package uses nosetest for running the tests. | |
3790 | ;; Adding this initfile allows to run the test suite | |
3791 | ;; without requiring nosetest. | |
3792 | (zero? (system* "touch" "tests/__init__.py"))))))) | |
3793 | (propagated-inputs | |
3794 | `(("python-six" ,python-six))) | |
3795 | (native-inputs | |
3796 | `(("python-pycodestyle" ,python-pycodestyle))) | |
3797 | (home-page "https://github.com/gruns/orderedmultidict") | |
3798 | (synopsis "Python Ordered Multivalue Dictionary - omdict") | |
3799 | (description "This package contains a library for ordered multivalue | |
3800 | dictionaries. A multivalue dictionary is a dictionary that can store | |
3801 | multiple values for the same key. An ordered multivalue dictionary is a | |
3802 | multivalue dictionary that retains the order of insertions and deletions.") | |
f210e944 | 3803 | (license license:unlicense))) |
b91912c4 DM |
3804 | |
3805 | (define-public python2-orderedmultidict | |
f210e944 | 3806 | (package-with-python2 python-orderedmultidict)) |
9dede065 DM |
3807 | |
3808 | (define-public python-furl | |
3809 | (package | |
3810 | (name "python-furl") | |
3811 | (version "0.5.6") | |
3812 | (source | |
3813 | (origin | |
3814 | (method url-fetch) | |
3815 | (uri (pypi-uri "furl" version)) | |
3816 | (sha256 | |
3817 | (base32 | |
3818 | "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc")))) | |
3819 | (build-system python-build-system) | |
3820 | (propagated-inputs | |
3821 | `(("python-six" ,python-six) | |
3822 | ("python-orderedmultidict" ,python-orderedmultidict))) | |
3823 | (native-inputs | |
3824 | `(("python-pycodestyle" ,python-pycodestyle))) | |
3825 | (home-page "https://github.com/gruns/furl") | |
3826 | (synopsis "URL manipulation in Python") | |
3827 | (description "Furl provides an easy-to-use alternative to the | |
3828 | @code{urllib} and @code{urlparse} modules for manipulating URLs.") | |
f210e944 | 3829 | (license license:unlicense))) |
9dede065 DM |
3830 | |
3831 | (define-public python2-furl | |
f210e944 | 3832 | (package-with-python2 python-furl)) |
462bf271 DM |
3833 | |
3834 | (define-public python-flask-babel | |
3835 | (package | |
3836 | (name "python-flask-babel") | |
3837 | (version "0.11.1") | |
3838 | (source | |
3839 | (origin | |
3840 | (method url-fetch) | |
3841 | (uri (pypi-uri "Flask-Babel" version)) | |
3842 | (sha256 | |
3843 | (base32 | |
3844 | "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj")))) | |
3845 | (build-system python-build-system) | |
3846 | (propagated-inputs | |
3847 | `(("python-flask" ,python-flask) | |
3848 | ("python-babel" ,python-babel) | |
3849 | ("python-jinja2" ,python-jinja2) | |
3850 | ("python-pytz" ,python-pytz))) | |
3851 | (home-page "https://github.com/python-babel/flask-babel") | |
3852 | (synopsis "Add i18n/l10n support to Flask applications") | |
3853 | (description "This package implements internationalization and localization | |
3854 | support for Flask. This is based on the Python babel module as well as pytz - | |
3855 | both of which are installed automatically if you install this library.") | |
f210e944 | 3856 | (license license:bsd-3))) |
462bf271 DM |
3857 | |
3858 | (define-public python2-flask-babel | |
f210e944 | 3859 | (package-with-python2 python-flask-babel)) |
4a093330 | 3860 | |
de2966cf EF |
3861 | (define-public python-sqlalchemy-utils |
3862 | (package | |
3863 | (name "python-sqlalchemy-utils") | |
3864 | (version "0.32.9") | |
3865 | (source | |
3866 | (origin | |
3867 | (method url-fetch) | |
3868 | (uri (pypi-uri "SQLAlchemy-Utils" version)) | |
3869 | (sha256 | |
3870 | (base32 | |
3871 | "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98")))) | |
3872 | (build-system python-build-system) | |
c22b4f87 | 3873 | (propagated-inputs |
de2966cf EF |
3874 | `(("python-six" ,python-six) |
3875 | ("python-sqlalchemy" ,python-sqlalchemy))) | |
26d07efb DM |
3876 | (native-inputs |
3877 | `(("python-pytest" ,python-pytest))) | |
de2966cf EF |
3878 | (home-page "https://github.com/kvesteri/sqlalchemy-utils") |
3879 | (synopsis "Various utility functions for SQLAlchemy") | |
3880 | (description | |
3881 | "SQLAlchemy-utils provides various utility functions and custom data types | |
6a686b18 DM |
3882 | for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python. |
3883 | ||
3884 | You might also want to install the following optional dependencies: | |
3885 | @enumerate | |
3886 | @item @code{python-passlib} | |
3887 | @item @code{python-babel} | |
3888 | @item @code{python-cryptography} | |
3889 | @item @code{python-pytz} | |
3890 | @item @code{python-psycopg2} | |
3891 | @item @code{python-furl} | |
3892 | @item @code{python-flask-babel} | |
3893 | @end enumerate | |
3894 | ") | |
de2966cf EF |
3895 | (license license:bsd-3))) |
3896 | ||
3897 | (define-public python2-sqlalchemy-utils | |
f210e944 | 3898 | (package-with-python2 python-sqlalchemy-utils)) |
de2966cf | 3899 | |
af5a4602 CAW |
3900 | (define-public python-alembic |
3901 | (package | |
3902 | (name "python-alembic") | |
bb484529 | 3903 | (version "0.8.7") |
af5a4602 CAW |
3904 | (source |
3905 | (origin | |
3906 | (method url-fetch) | |
3907 | (uri (pypi-uri "alembic" version)) | |
3908 | (sha256 | |
3909 | (base32 | |
bb484529 | 3910 | "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z")))) |
af5a4602 CAW |
3911 | (build-system python-build-system) |
3912 | (native-inputs | |
3913 | `(("python-mock" ,python-mock) | |
3914 | ("python-pytest-cov" ,python-pytest-cov))) | |
3915 | (propagated-inputs | |
3916 | `(("python-sqlalchemy" ,python-sqlalchemy) | |
3917 | ("python-mako" ,python-mako) | |
3918 | ("python-editor" ,python-editor))) | |
3919 | (home-page "http://bitbucket.org/zzzeek/alembic") | |
3920 | (synopsis | |
3921 | "Database migration tool for SQLAlchemy") | |
3922 | (description | |
3923 | "Alembic is a lightweight database migration tool for usage with the | |
3924 | SQLAlchemy Database Toolkit for Python.") | |
f210e944 | 3925 | (license license:expat))) |
af5a4602 CAW |
3926 | |
3927 | (define-public python2-alembic | |
f210e944 | 3928 | (package-with-python2 python-alembic)) |
af5a4602 | 3929 | |
1671c07c EB |
3930 | (define-public python-distutils-extra |
3931 | (package | |
3932 | (name "python-distutils-extra") | |
3933 | (version "2.38") | |
3934 | (source | |
3935 | (origin | |
3936 | (method url-fetch) | |
3937 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" | |
3938 | version "/+download/python-distutils-extra-" | |
3939 | version ".tar.gz")) | |
3940 | (sha256 | |
3941 | (base32 | |
3942 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) | |
3943 | (build-system python-build-system) | |
1671c07c EB |
3944 | (home-page "https://launchpad.net/python-distutils-extra/") |
3945 | (synopsis "Enhancements to Python's distutils") | |
3946 | (description | |
3947 | "The python-distutils-extra module enables you to easily integrate | |
3948 | gettext support, themed icons, and scrollkeeper-based documentation into | |
3949 | Python's distutils.") | |
3f641af0 | 3950 | (license license:gpl2))) |
1671c07c EB |
3951 | |
3952 | (define-public python2-distutils-extra | |
3953 | (package-with-python2 python-distutils-extra)) | |
ea5456c8 EB |
3954 | |
3955 | (define-public python2-elib.intl | |
3956 | (package | |
3957 | (name "python2-elib.intl") | |
3958 | (version "0.0.3") | |
3959 | (source | |
3960 | (origin | |
3961 | ;; This project doesn't tag releases or publish tarballs, so we take | |
3962 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. | |
3963 | (method git-fetch) | |
3964 | (uri (git-reference | |
3965 | (url "https://github.com/dieterv/elib.intl.git") | |
3966 | (commit "d09997cfef"))) | |
3967 | (sha256 | |
3968 | (base32 | |
3969 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) | |
3970 | (build-system python-build-system) | |
ea5456c8 EB |
3971 | (arguments |
3972 | ;; incompatible with Python 3 (exception syntax) | |
3973 | `(#:python ,python-2 | |
b41a05ce | 3974 | #:tests? #f)) |
ea5456c8 EB |
3975 | (home-page "https://github.com/dieterv/elib.intl") |
3976 | (synopsis "Enhanced internationalization for Python") | |
3977 | (description | |
3978 | "The elib.intl module provides enhanced internationalization (I18N) | |
3979 | services for your Python modules and applications.") | |
3f641af0 | 3980 | (license license:lgpl3+))) |
ea5456c8 | 3981 | |
c937562e EB |
3982 | (define-public python-pillow |
3983 | (package | |
3984 | (name "python-pillow") | |
aba5182c | 3985 | (version "3.3.3") |
c937562e EB |
3986 | (source |
3987 | (origin | |
3988 | (method url-fetch) | |
f1d9231d | 3989 | (uri (pypi-uri "Pillow" version)) |
c937562e EB |
3990 | (sha256 |
3991 | (base32 | |
aba5182c | 3992 | "0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj")))) |
c937562e EB |
3993 | (build-system python-build-system) |
3994 | (native-inputs | |
f3b98f4f | 3995 | `(("python-nose" ,python-nose))) |
c937562e | 3996 | (inputs |
5ff408d9 SB |
3997 | `(("freetype" ,freetype) |
3998 | ("lcms" ,lcms) | |
c937562e EB |
3999 | ("zlib" ,zlib) |
4000 | ("libjpeg" ,libjpeg) | |
4001 | ("openjpeg" ,openjpeg) | |
5ff408d9 SB |
4002 | ("libtiff" ,libtiff) |
4003 | ("libwebp" ,libwebp))) | |
f54d6bac | 4004 | ;; Note: setuptools used at runtime for pkg_resources |
c937562e | 4005 | (arguments |
e5358a6b | 4006 | `(#:phases (modify-phases %standard-phases |
e5358a6b LC |
4007 | (add-after |
4008 | 'install 'check-installed | |
6151120a | 4009 | (lambda* (#:key outputs inputs #:allow-other-keys) |
e5358a6b LC |
4010 | (begin |
4011 | (setenv "HOME" (getcwd)) | |
6151120a HG |
4012 | ;; Make installed package available for running the |
4013 | ;; tests | |
4014 | (add-installed-pythonpath inputs outputs) | |
e5358a6b LC |
4015 | (and (zero? (system* "python" "selftest.py" |
4016 | "--installed")) | |
4017 | (zero? (system* "python" "test-installed.py")))))) | |
4018 | (delete 'check)))) | |
c937562e EB |
4019 | (home-page "https://pypi.python.org/pypi/Pillow") |
4020 | (synopsis "Fork of the Python Imaging Library") | |
4021 | (description | |
4022 | "The Python Imaging Library adds image processing capabilities to your | |
4023 | Python interpreter. This library provides extensive file format support, an | |
4024 | efficient internal representation, and fairly powerful image processing | |
4025 | capabilities. The core image library is designed for fast access to data | |
4026 | stored in a few basic pixel formats. It should provide a solid foundation for | |
4027 | a general image processing tool.") | |
3f641af0 | 4028 | (license (license:x11-style |
c937562e EB |
4029 | "http://www.pythonware.com/products/pil/license.htm" |
4030 | "The PIL Software License")))) | |
4031 | ||
4032 | (define-public python2-pillow | |
4033 | (package-with-python2 python-pillow)) | |
bb986599 | 4034 | |
a415f036 FB |
4035 | (define-public python-pycparser |
4036 | (package | |
4037 | (name "python-pycparser") | |
38eb6919 | 4038 | (version "2.14") |
a415f036 FB |
4039 | (source |
4040 | (origin | |
4041 | (method url-fetch) | |
38eb6919 | 4042 | (uri (pypi-uri "pycparser" version)) |
a415f036 FB |
4043 | (sha256 |
4044 | (base32 | |
38eb6919 | 4045 | "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr")))) |
a415f036 FB |
4046 | (outputs '("out" "doc")) |
4047 | (build-system python-build-system) | |
4048 | (native-inputs | |
f3b98f4f | 4049 | `(("pkg-config" ,pkg-config))) |
a415f036 | 4050 | (arguments |
89b5c60e | 4051 | `(#:phases |
a415f036 FB |
4052 | (alist-replace |
4053 | 'check | |
4054 | (lambda _ | |
4055 | (with-directory-excursion "tests" | |
4056 | (zero? (system* "python" "all_tests.py")))) | |
4057 | (alist-cons-after | |
4058 | 'install 'install-doc | |
4059 | (lambda* (#:key outputs #:allow-other-keys) | |
4060 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4061 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4062 | (examples (string-append doc "/examples"))) | |
4063 | (mkdir-p examples) | |
4064 | (for-each (lambda (file) | |
4065 | (copy-file (string-append "." file) | |
4066 | (string-append doc file))) | |
4067 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
4068 | (copy-recursively "examples" examples))) | |
4069 | %standard-phases)))) | |
4070 | (home-page "https://github.com/eliben/pycparser") | |
4071 | (synopsis "C parser in Python") | |
4072 | (description | |
4073 | "Pycparser is a complete parser of the C language, written in pure Python | |
4074 | using the PLY parsing library. It parses C code into an AST and can serve as | |
4075 | a front-end for C compilers or analysis tools.") | |
3f641af0 | 4076 | (license license:bsd-3))) |
a415f036 FB |
4077 | |
4078 | (define-public python2-pycparser | |
4079 | (package-with-python2 python-pycparser)) | |
57c3f716 FB |
4080 | |
4081 | (define-public python-cffi | |
4082 | (package | |
4083 | (name "python-cffi") | |
2d3a437c | 4084 | (version "1.4.2") |
57c3f716 FB |
4085 | (source |
4086 | (origin | |
4087 | (method url-fetch) | |
2d3a437c | 4088 | (uri (pypi-uri "cffi" version)) |
89b5c60e | 4089 | (sha256 |
2d3a437c | 4090 | (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) |
57c3f716 FB |
4091 | (build-system python-build-system) |
4092 | (outputs '("out" "doc")) | |
4093 | (inputs | |
4094 | `(("libffi" ,libffi))) | |
4095 | (propagated-inputs ; required at run-time | |
4096 | `(("python-pycparser" ,python-pycparser))) | |
4097 | (native-inputs | |
4098 | `(("pkg-config" ,pkg-config) | |
4099 | ("python-sphinx" ,python-sphinx) | |
f3b98f4f | 4100 | ("python-pytest" ,python-pytest))) |
57c3f716 | 4101 | (arguments |
4179f952 | 4102 | `(#:phases |
57c3f716 FB |
4103 | (alist-cons-after |
4104 | 'install 'install-doc | |
4105 | (lambda* (#:key outputs #:allow-other-keys) | |
4106 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4107 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4108 | (html (string-append doc "/html"))) | |
4109 | (with-directory-excursion "doc" | |
4110 | (system* "make" "html") | |
4111 | (mkdir-p html) | |
4112 | (copy-recursively "build/html" html)) | |
4113 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) | |
4114 | %standard-phases))) | |
4115 | (home-page "http://cffi.readthedocs.org") | |
4116 | (synopsis "Foreign function interface for Python") | |
4117 | (description | |
4118 | "Foreign Function Interface for Python calling C code.") | |
bd3fa666 | 4119 | (license license:expat))) |
57c3f716 FB |
4120 | |
4121 | (define-public python2-cffi | |
4122 | (package-with-python2 python-cffi)) | |
6fa14469 FB |
4123 | |
4124 | (define-public python-xcffib | |
4125 | (package | |
4126 | (name "python-xcffib") | |
4127 | (version "0.1.9") | |
4128 | (source | |
4129 | (origin | |
4130 | (method url-fetch) | |
4131 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
4132 | "xcffib/xcffib-" version ".tar.gz")) | |
4133 | (sha256 | |
4134 | (base32 | |
4135 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) | |
4136 | (build-system python-build-system) | |
4137 | (inputs | |
482d9591 | 4138 | `(("libxcb" ,libxcb))) |
6fa14469 | 4139 | (propagated-inputs |
482d9591 HG |
4140 | `(("python-cffi" ,python-cffi) ; used at run time |
4141 | ("python-six" ,python-six))) | |
6fa14469 | 4142 | (arguments |
89b5c60e | 4143 | `(#:phases |
6fa14469 FB |
4144 | (alist-cons-after |
4145 | 'install 'install-doc | |
4146 | (lambda* (#:key outputs #:allow-other-keys) | |
4147 | (let ((doc (string-append (assoc-ref outputs "out") "/share" | |
4148 | "/doc/" ,name "-" ,version))) | |
4149 | (mkdir-p doc) | |
4150 | (copy-file "README.md" | |
4151 | (string-append doc "/README.md")))) | |
4152 | %standard-phases))) | |
4153 | (home-page "https://github.com/tych0/xcffib") | |
4154 | (synopsis "XCB Python bindings") | |
4155 | (description | |
4156 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds | |
4157 | support for Python 3 and PyPy. It is based on cffi.") | |
bd3fa666 | 4158 | (license license:expat))) |
6fa14469 FB |
4159 | |
4160 | (define-public python2-xcffib | |
4161 | (package-with-python2 python-xcffib)) | |
4162 | ||
9e099723 FB |
4163 | (define-public python-cairocffi |
4164 | (package | |
4165 | (name "python-cairocffi") | |
4166 | (version "0.6") | |
4167 | (source | |
4168 | (origin | |
4169 | (method url-fetch) | |
4170 | ;; The archive on pypi is missing the 'utils' directory! | |
4171 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" | |
4172 | version ".tar.gz")) | |
f586c877 | 4173 | (file-name (string-append name "-" version ".tar.gz")) |
9e099723 FB |
4174 | (sha256 |
4175 | (base32 | |
4176 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) | |
4177 | (build-system python-build-system) | |
4178 | (outputs '("out" "doc")) | |
4179 | (inputs | |
4180 | `(("gdk-pixbuf" ,gdk-pixbuf) | |
4181 | ("cairo" ,cairo))) | |
4182 | (native-inputs | |
4183 | `(("pkg-config" ,pkg-config) | |
4184 | ("python-sphinx" ,python-sphinx) | |
f3b98f4f | 4185 | ("python-docutils" ,python-docutils))) |
9e099723 FB |
4186 | (propagated-inputs |
4187 | `(("python-xcffib" ,python-xcffib))) ; used at run time | |
4188 | (arguments | |
89b5c60e | 4189 | `(#:phases |
9e099723 FB |
4190 | (alist-cons-after |
4191 | 'install 'install-doc | |
4192 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4193 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4194 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4195 | (html (string-append doc "/html"))) | |
89b5c60e | 4196 | (setenv "LD_LIBRARY_PATH" |
9e099723 FB |
4197 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
4198 | (assoc-ref inputs "gdk-pixbuf") "/lib")) | |
4199 | (setenv "LANG" "en_US.UTF-8") | |
4200 | (mkdir-p html) | |
4201 | (for-each (lambda (file) | |
4202 | (copy-file (string-append "." file) | |
4203 | (string-append doc file))) | |
4204 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
4205 | (system* "python" "setup.py" "build_sphinx") | |
4206 | (copy-recursively "docs/_build/html" html))) | |
4207 | %standard-phases))) | |
4208 | (home-page "https://github.com/SimonSapin/cairocffi") | |
4209 | (synopsis "Python bindings and object-oriented API for Cairo") | |
4210 | (description | |
4211 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of | |
4212 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector | |
4213 | graphics library with support for multiple backends including image buffers, | |
4214 | PNG, PostScript, PDF, and SVG file output.") | |
3f641af0 | 4215 | (license license:bsd-3))) |
9e099723 FB |
4216 | |
4217 | (define-public python2-cairocffi | |
4218 | (package-with-python2 python-cairocffi)) | |
4219 | ||
3cff95cb RW |
4220 | (define-public python-decorator |
4221 | (package | |
4222 | (name "python-decorator") | |
eb6e2e81 | 4223 | (version "4.0.9") |
3cff95cb RW |
4224 | (source |
4225 | (origin | |
4226 | (method url-fetch) | |
e21338be | 4227 | (uri (pypi-uri "decorator" version)) |
3cff95cb | 4228 | (sha256 |
eb6e2e81 | 4229 | (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh")))) |
3cff95cb RW |
4230 | (build-system python-build-system) |
4231 | (arguments '(#:tests? #f)) ; no test target | |
eb6e2e81 | 4232 | (home-page "https://pypi.python.org/pypi/decorator/") |
3cff95cb RW |
4233 | (synopsis "Python module to simplify usage of decorators") |
4234 | (description | |
4235 | "The aim of the decorator module is to simplify the usage of decorators | |
4236 | for the average programmer, and to popularize decorators usage giving examples | |
4237 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, | |
4238 | etc. The core of this module is a decorator factory.") | |
4239 | (license license:expat))) | |
4240 | ||
4241 | (define-public python2-decorator | |
4242 | (package-with-python2 python-decorator)) | |
4243 | ||
2c0499ad RW |
4244 | (define-public python-drmaa |
4245 | (package | |
4246 | (name "python-drmaa") | |
4247 | (version "0.7.6") | |
4248 | (source | |
4249 | (origin | |
4250 | (method url-fetch) | |
4251 | (uri (string-append | |
4252 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" | |
4253 | version ".tar.gz")) | |
4254 | (sha256 | |
4255 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) | |
4256 | (build-system python-build-system) | |
4257 | ;; The test suite requires libdrmaa which is provided by the cluster | |
4258 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH | |
4259 | ;; should be set to the path of the libdrmaa library. | |
4260 | (arguments '(#:tests? #f)) | |
4261 | (native-inputs | |
f3b98f4f | 4262 | `(("python-nose" ,python-nose))) |
2c0499ad RW |
4263 | (home-page "https://pypi.python.org/pypi/drmaa") |
4264 | (synopsis "Python bindings for the DRMAA library") | |
4265 | (description | |
4266 | "A Python package for Distributed Resource Management (DRM) job | |
4267 | submission and control. This package is an implementation of the DRMAA 1.0 | |
4268 | Python language binding specification.") | |
3f641af0 | 4269 | (license license:bsd-3))) |
2c0499ad RW |
4270 | |
4271 | (define-public python2-drmaa | |
4272 | (package-with-python2 python-drmaa)) | |
4273 | ||
d05c6da0 RW |
4274 | (define-public python-gridmap |
4275 | (package | |
4276 | (name "python-gridmap") | |
4277 | (version "0.13.0") | |
4278 | (source | |
4279 | (origin | |
4280 | (method url-fetch) | |
4281 | (uri (string-append | |
4282 | "https://github.com/pygridtools/gridmap/archive/v" | |
4283 | version ".tar.gz")) | |
4284 | (file-name (string-append name "-" version ".tar.gz")) | |
4285 | (sha256 | |
4286 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) | |
4287 | (build-system python-build-system) | |
f22efa01 | 4288 | (propagated-inputs |
d05c6da0 RW |
4289 | `(("python-psutil" ,python-psutil) |
4290 | ("python-drmaa" ,python-drmaa) | |
4291 | ("python-pyzmq" ,python-pyzmq))) | |
d05c6da0 RW |
4292 | (home-page "https://github.com/pygridtools/gridmap") |
4293 | (synopsis "Create jobs on a cluster directly from Python") | |
4294 | (description | |
4295 | "Gridmap is a Python package to allow you to easily create jobs on the | |
4296 | cluster directly from Python. You can directly map Python functions onto the | |
4297 | cluster without needing to write any wrapper code yourself.") | |
3f641af0 | 4298 | (license license:gpl3+))) |
d05c6da0 RW |
4299 | |
4300 | (define-public python2-gridmap | |
4301 | (package-with-python2 python-gridmap)) | |
4302 | ||
cb6d5c54 RW |
4303 | (define-public python-pexpect |
4304 | (package | |
4305 | (name "python-pexpect") | |
4306 | (version "3.3") | |
4307 | (source | |
4308 | (origin | |
4309 | (method url-fetch) | |
4310 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4311 | "pexpect/pexpect-" version ".tar.gz")) | |
4312 | (sha256 | |
4313 | (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz")))) | |
4314 | (build-system python-build-system) | |
4315 | (arguments | |
4316 | `(#:phases | |
4317 | (modify-phases %standard-phases | |
4318 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
4319 | (native-inputs | |
4320 | `(("python-nose" ,python-nose))) | |
4321 | (home-page "http://pexpect.readthedocs.org/") | |
4322 | (synopsis "Controlling interactive console applications") | |
4323 | (description | |
4324 | "Pexpect is a pure Python module for spawning child applications; | |
4325 | controlling them; and responding to expected patterns in their output. | |
4326 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a | |
4327 | child application and control it as if a human were typing commands.") | |
3f641af0 | 4328 | (license license:isc))) |
cb6d5c54 RW |
4329 | |
4330 | (define-public python2-pexpect | |
4331 | (package-with-python2 python-pexpect)) | |
4332 | ||
229ad120 RW |
4333 | (define-public python-setuptools-scm |
4334 | (package | |
4335 | (name "python-setuptools-scm") | |
42d6d0d0 | 4336 | (version "1.11.1") |
229ad120 RW |
4337 | (source (origin |
4338 | (method url-fetch) | |
383af6b0 | 4339 | (uri (pypi-uri "setuptools_scm" version)) |
229ad120 RW |
4340 | (sha256 |
4341 | (base32 | |
42d6d0d0 | 4342 | "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc")))) |
229ad120 RW |
4343 | (build-system python-build-system) |
4344 | (home-page "https://github.com/pypa/setuptools_scm/") | |
4345 | (synopsis "Manage Python package versions in SCM metadata") | |
4346 | (description | |
383af6b0 | 4347 | "Setuptools_scm handles managing your Python package versions in |
229ad120 RW |
4348 | @dfn{software configuration management} (SCM) metadata instead of declaring |
4349 | them as the version argument or in a SCM managed file.") | |
4350 | (license license:expat))) | |
4351 | ||
4352 | (define-public python2-setuptools-scm | |
4353 | (package-with-python2 python-setuptools-scm)) | |
4354 | ||
b74270ee RW |
4355 | (define-public python-pathpy |
4356 | (package | |
4357 | (name "python-pathpy") | |
4358 | (version "8.1.1") | |
4359 | (source | |
4360 | (origin | |
4361 | (method url-fetch) | |
4362 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4363 | "path.py/path.py-" version ".tar.gz")) | |
4364 | (sha256 | |
4365 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) | |
4366 | (build-system python-build-system) | |
4367 | (propagated-inputs | |
4368 | `(("python-appdirs" ,python-appdirs))) | |
4369 | (native-inputs | |
f3b98f4f | 4370 | `(("python-setuptools-scm" ,python-setuptools-scm) |
b74270ee RW |
4371 | ("python-pytest" ,python-pytest) |
4372 | ("python-pytest-runner" ,python-pytest-runner))) | |
4373 | (home-page "http://github.com/jaraco/path.py") | |
4374 | (synopsis "Python module wrapper for built-in os.path") | |
4375 | (description | |
4376 | "@code{path.py} implements path objects as first-class entities, allowing | |
4377 | common operations on files to be invoked on those path objects directly.") | |
4378 | (license license:expat))) | |
4379 | ||
4380 | (define-public python2-pathpy | |
4381 | (package-with-python2 python-pathpy)) | |
4382 | ||
0d34e01b RW |
4383 | (define-public python-pickleshare |
4384 | (package | |
4385 | (name "python-pickleshare") | |
4386 | (version "0.5") | |
4387 | (source | |
4388 | (origin | |
4389 | (method url-fetch) | |
4390 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4391 | "pickleshare/pickleshare-" version ".tar.gz")) | |
4392 | (sha256 | |
4393 | (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0")))) | |
4394 | (build-system python-build-system) | |
4395 | (propagated-inputs | |
4396 | `(("python-pathpy" ,python-pathpy))) | |
4397 | (home-page "https://github.com/vivainio/pickleshare") | |
4398 | (synopsis "Tiny key value database with concurrency support") | |
4399 | (description | |
4400 | "PickleShare is a small ‘shelve’-like datastore with concurrency support. | |
4401 | Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike | |
4402 | shelve, many processes can access the database simultaneously. Changing a | |
4403 | value in database is immediately visible to other processes accessing the same | |
4404 | database. Concurrency is possible because the values are stored in separate | |
4405 | files. Hence the “database” is a directory where all files are governed by | |
4406 | PickleShare.") | |
4407 | (license license:expat))) | |
4408 | ||
4409 | (define-public python2-pickleshare | |
4410 | (package-with-python2 python-pickleshare)) | |
4411 | ||
cd6e5189 RW |
4412 | (define-public python-simplegeneric |
4413 | (package | |
4414 | (name "python-simplegeneric") | |
4415 | (version "0.8.1") | |
4416 | (source | |
4417 | (origin | |
4418 | (method url-fetch) | |
4419 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
4420 | "simplegeneric/simplegeneric-" version ".zip")) | |
4421 | (sha256 | |
4422 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) | |
4423 | (build-system python-build-system) | |
4424 | (native-inputs | |
f3b98f4f | 4425 | `(("unzip" ,unzip))) |
cd6e5189 RW |
4426 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
4427 | (synopsis "Python module for simple generic functions") | |
4428 | (description | |
4429 | "The simplegeneric module lets you define simple single-dispatch generic | |
4430 | functions, akin to Python’s built-in generic functions like @code{len()}, | |
4431 | @code{iter()} and so on. However, instead of using specially-named methods, | |
4432 | these generic functions use simple lookup tables, akin to those used by | |
4433 | e.g. @code{pickle.dump()} and other generic functions found in the Python | |
4434 | standard library.") | |
3f641af0 | 4435 | (license license:zpl2.1))) |
cd6e5189 RW |
4436 | |
4437 | (define-public python2-simplegeneric | |
4438 | (package-with-python2 python-simplegeneric)) | |
4439 | ||
ddc7d8ed RW |
4440 | (define-public python-ipython-genutils |
4441 | (package | |
4442 | (name "python-ipython-genutils") | |
4443 | (version "0.1.0") | |
4444 | (source | |
4445 | (origin | |
4446 | (method url-fetch) | |
4447 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
4448 | "ipython_genutils/ipython_genutils-" | |
4449 | version ".tar.gz")) | |
4450 | (sha256 | |
4451 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) | |
4452 | (build-system python-build-system) | |
4453 | (arguments `(#:tests? #f)) ; no tests | |
4454 | (home-page "http://ipython.org") | |
4455 | (synopsis "Vestigial utilities from IPython") | |
4456 | (description | |
4457 | "This package provides retired utilities from IPython.") | |
3f641af0 | 4458 | (license license:bsd-3))) |
ddc7d8ed RW |
4459 | |
4460 | (define-public python2-ipython-genutils | |
4461 | (package-with-python2 python-ipython-genutils)) | |
4462 | ||
2b10eb48 RW |
4463 | (define-public python-traitlets |
4464 | (package | |
4465 | (name "python-traitlets") | |
a5ba1481 | 4466 | (version "4.2.0") |
2b10eb48 RW |
4467 | (source |
4468 | (origin | |
4469 | (method url-fetch) | |
cc0c4fde | 4470 | (uri (pypi-uri "traitlets" version)) |
2b10eb48 RW |
4471 | (sha256 |
4472 | (base32 | |
a5ba1481 | 4473 | "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4")))) |
2b10eb48 RW |
4474 | (build-system python-build-system) |
4475 | (arguments | |
4476 | `(#:phases | |
4477 | (modify-phases %standard-phases | |
4478 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
4479 | (propagated-inputs | |
4480 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
4481 | ("python-decorator" ,python-decorator))) | |
4482 | (native-inputs | |
cc0c4fde EF |
4483 | `(("python-mock" ,python-mock) |
4484 | ("python-nose" ,python-nose))) | |
2b10eb48 RW |
4485 | (home-page "http://ipython.org") |
4486 | (synopsis "Configuration system for Python applications") | |
4487 | (description | |
4488 | "Traitlets is a framework that lets Python classes have attributes with | |
4489 | type checking, dynamically calculated default values, and ‘on change’ | |
4490 | callbacks. The package also includes a mechanism to use traitlets for | |
4491 | configuration, loading values from files or from command line arguments. This | |
4492 | is a distinct layer on top of traitlets, so you can use traitlets in your code | |
4493 | without using the configuration machinery.") | |
3f641af0 | 4494 | (license license:bsd-3))) |
2b10eb48 RW |
4495 | |
4496 | (define-public python2-traitlets | |
4497 | (package-with-python2 python-traitlets)) | |
4498 | ||
4263b06f RW |
4499 | (define-public python-jupyter-core |
4500 | (package | |
4501 | (name "python-jupyter-core") | |
4502 | (version "4.2.0") | |
4503 | (source | |
4504 | (origin | |
4505 | (method url-fetch) | |
4506 | (uri (string-append (pypi-uri "jupyter_core" version))) | |
4507 | (sha256 | |
4508 | (base32 | |
4509 | "177d9csqldzhsh6xs1p4nf6lzvhzyg6gklqjf69lxgxyadx87v24")))) | |
4510 | (build-system python-build-system) | |
4511 | ;; FIXME: not sure how to run the tests | |
4512 | (arguments `(#:tests? #f)) | |
4513 | (propagated-inputs | |
4514 | `(("python-traitlets" ,python-traitlets))) | |
4515 | (home-page "http://jupyter.org/") | |
4516 | (synopsis "Jupyter base package") | |
4517 | (description | |
4518 | "Jupyter core is the base package on which Jupyter projects rely.") | |
4519 | (license license:bsd-3))) | |
4520 | ||
4521 | (define-public python2-jupyter-core | |
4522 | (package-with-python2 python-jupyter-core)) | |
4523 | ||
9ff01f2d RW |
4524 | (define-public python-jupyter-client |
4525 | (package | |
4526 | (name "python-jupyter-client") | |
4527 | (version "4.4.0") | |
4528 | (source | |
4529 | (origin | |
4530 | (method url-fetch) | |
4531 | (uri (pypi-uri "jupyter_client" version)) | |
4532 | (sha256 | |
4533 | (base32 | |
4534 | "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9")))) | |
4535 | (build-system python-build-system) | |
4536 | ;; Tests fail because of missing native python kernel which I assume is | |
4537 | ;; provided by the ipython package, which we cannot use because it would | |
4538 | ;; cause a dependency cycle. | |
4539 | (arguments `(#:tests? #f)) | |
4540 | (propagated-inputs | |
4541 | `(("python-pyzmq" ,python-pyzmq) | |
4542 | ("python-traitlets" ,python-traitlets) | |
4543 | ("python-jupyter-core" ,python-jupyter-core))) | |
4544 | (home-page "http://jupyter.org/") | |
4545 | (synopsis "Jupyter protocol implementation and client libraries") | |
4546 | (description | |
4547 | "The @code{jupyter_client} package contains the reference implementation | |
4548 | of the Jupyter protocol. It also provides client and kernel management APIs | |
4549 | for working with kernels, and the @code{jupyter kernelspec} entrypoint for | |
4550 | installing @code{kernelspec}s for use with Jupyter frontends.") | |
4551 | (license license:bsd-3))) | |
4552 | ||
4553 | (define-public python2-jupyter-client | |
4554 | (package-with-python2 python-jupyter-client)) | |
4555 | ||
ab526102 RW |
4556 | (define-public python-ipykernel |
4557 | (package | |
4558 | (name "python-ipykernel") | |
4559 | (version "4.5.0") | |
4560 | (source | |
4561 | (origin | |
4562 | (method url-fetch) | |
4563 | (uri (pypi-uri "ipykernel" version)) | |
4564 | (sha256 | |
4565 | (base32 "15c2bp1x3i6s4xb7vz7742h3kmvdfdfn9n2haywm3mwgvf77jni4")))) | |
4566 | (build-system python-build-system) | |
4567 | ;; The tests load a submodule of IPython. However, IPython itself depends | |
4568 | ;; on ipykernel. | |
4569 | (arguments `(#:tests? #f)) | |
4570 | (propagated-inputs | |
4571 | ;; imported at runtime during connect | |
4572 | `(("python-jupyter-client" ,python-jupyter-client))) | |
4573 | (home-page "http://ipython.org") | |
4574 | (synopsis "IPython Kernel for Jupyter") | |
4575 | (description | |
4576 | "This package provides the IPython kernel for Jupyter.") | |
4577 | (license license:bsd-3))) | |
4578 | ||
4579 | (define-public python2-ipykernel | |
4580 | (package-with-python2 python-ipykernel)) | |
4581 | ||
5ff6effc RW |
4582 | (define-public python-testpath |
4583 | (package | |
4584 | (name "python-testpath") | |
4585 | (version "0.2") | |
4586 | (source | |
4587 | (origin | |
4588 | (method url-fetch) | |
4589 | (uri (string-append "https://github.com/jupyter/testpath/archive/" | |
4590 | version ".tar.gz")) | |
4591 | (file-name (string-append name "-" version ".tar.gz")) | |
4592 | (sha256 | |
4593 | (base32 | |
4594 | "04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55")))) | |
4595 | (build-system python-build-system) | |
4596 | (arguments | |
4597 | `(#:tests? #f ; this package does not even have a setup.py | |
4598 | #:phases | |
4599 | (modify-phases %standard-phases | |
4600 | (delete 'install) | |
4601 | (replace 'build | |
4602 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4603 | (let ((dir (string-append | |
4604 | (assoc-ref outputs "out") | |
4605 | "/lib/python" | |
4606 | (string-take (string-take-right | |
4607 | (assoc-ref inputs "python") 5) 3) | |
4608 | "/site-packages/testpath"))) | |
4609 | (mkdir-p dir) | |
4610 | (copy-recursively "testpath" dir)) | |
4611 | #t))))) | |
4612 | (home-page "https://github.com/takluyver/testpath") | |
4613 | (synopsis "Test utilities for code working with files and commands") | |
4614 | (description | |
4615 | "Testpath is a collection of utilities for Python code working with files | |
4616 | and commands. It contains functions to check things on the filesystem, and | |
4617 | tools for mocking system commands and recording calls to those.") | |
4618 | (license license:expat))) | |
4619 | ||
4620 | (define-public python2-testpath | |
4621 | (package-with-python2 python-testpath)) | |
4622 | ||
ae1ab9fe FB |
4623 | (define-public python-ipython |
4624 | (package | |
4625 | (name "python-ipython") | |
accd5f99 | 4626 | (version "4.0.0") |
ae1ab9fe FB |
4627 | (source |
4628 | (origin | |
fceac880 | 4629 | (method url-fetch) |
accd5f99 | 4630 | (uri (pypi-uri "ipython" version ".tar.gz")) |
fceac880 | 4631 | (sha256 |
accd5f99 | 4632 | (base32 "1npl8g6bfsff9j938ypx0q5fyzy2l8lp0jl8skjjj2zv0z27dlig")))) |
ae1ab9fe FB |
4633 | (build-system python-build-system) |
4634 | (outputs '("out" "doc")) | |
3a0b1b9a FB |
4635 | (propagated-inputs |
4636 | `(("python-pyzmq" ,python-pyzmq) | |
accd5f99 | 4637 | ("python-terminado" ,python-terminado) |
ae1ab9fe | 4638 | ("python-matplotlib" ,python-matplotlib) |
5d26e542 | 4639 | ("python-numpy" ,python-numpy) |
ae1ab9fe | 4640 | ("python-numpydoc" ,python-numpydoc) |
3a0b1b9a FB |
4641 | ("python-jinja2" ,python-jinja2) |
4642 | ("python-mistune" ,python-mistune) | |
accd5f99 RW |
4643 | ("python-pexpect" ,python-pexpect) |
4644 | ("python-pickleshare" ,python-pickleshare) | |
4645 | ("python-simplegeneric" ,python-simplegeneric) | |
3a0b1b9a | 4646 | ("python-jsonschema" ,python-jsonschema) |
accd5f99 RW |
4647 | ("python-traitlets" ,python-traitlets) |
4648 | ("python-ipykernel" ,python-ipykernel) | |
4649 | ("python-pygments" ,python-pygments))) | |
4650 | (inputs | |
4651 | `(("readline" ,readline) | |
4652 | ("which" ,which))) | |
ae1ab9fe FB |
4653 | (native-inputs |
4654 | `(("pkg-config" ,pkg-config) | |
accd5f99 RW |
4655 | ("python-requests" ,python-requests) ;; for tests |
4656 | ("python-testpath" ,python-testpath) | |
4657 | ("python-nose" ,python-nose) | |
ae1ab9fe FB |
4658 | ("python-sphinx" ,python-sphinx) |
4659 | ("texlive" ,texlive) | |
f3b98f4f | 4660 | ("texinfo" ,texinfo))) |
ae1ab9fe | 4661 | (arguments |
89b5c60e | 4662 | `(#:phases |
3a0b1b9a FB |
4663 | (modify-phases %standard-phases |
4664 | (add-after | |
4665 | 'install 'install-doc | |
4666 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4667 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4668 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4669 | (html (string-append doc "/html")) | |
4670 | (man1 (string-append data "/man/man1")) | |
4671 | (info (string-append data "/info")) | |
4672 | (examples (string-append doc "/examples"))) | |
afd3d931 | 4673 | (setenv "LANG" "en_US.utf8") |
eee5cd04 HG |
4674 | ;; Make installed package available for running the tests |
4675 | (add-installed-pythonpath inputs outputs) | |
3a0b1b9a | 4676 | (with-directory-excursion "docs" |
accd5f99 RW |
4677 | ;; FIXME: pdf fails to build |
4678 | ;;(system* "make" "pdf" "PAPER=a4") | |
4679 | (system* "make" "html") | |
3a0b1b9a FB |
4680 | (system* "make" "info")) |
4681 | (copy-recursively "docs/man" man1) | |
4682 | (copy-recursively "examples" examples) | |
accd5f99 | 4683 | (copy-recursively "docs/build/html" html) |
3a0b1b9a FB |
4684 | ;; (copy-file "docs/build/latex/ipython.pdf" |
4685 | ;; (string-append doc "/ipython.pdf")) | |
4686 | (mkdir-p info) | |
4687 | (copy-file "docs/build/texinfo/ipython.info" | |
4688 | (string-append info "/ipython.info")) | |
4689 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) | |
4690 | ;; Tests can only be run after the library has been installed and not | |
4691 | ;; within the source directory. | |
4692 | (delete 'check) | |
4693 | (add-after | |
4694 | 'install 'check | |
eee5cd04 | 4695 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) |
3a0b1b9a FB |
4696 | (if tests? |
4697 | (with-directory-excursion "/tmp" | |
eee5cd04 HG |
4698 | ;; Make installed package available for running the tests |
4699 | (add-installed-pythonpath inputs outputs) | |
3a0b1b9a FB |
4700 | (setenv "HOME" "/tmp/") ;; required by a test |
4701 | (zero? (system* (string-append (assoc-ref outputs "out") | |
4702 | "/bin/iptest")))) | |
4703 | #t))) | |
4704 | (add-before | |
4705 | 'install 'fix-tests | |
4706 | (lambda* (#:key inputs #:allow-other-keys) | |
4707 | (substitute* "./IPython/utils/_process_posix.py" | |
4708 | (("/usr/bin/env', 'which") (which "which"))) | |
4709 | (substitute* "./IPython/core/tests/test_inputtransformer.py" | |
4710 | (("#!/usr/bin/env python") | |
4711 | (string-append "#!" (which "python")))) | |
4712 | ;; Disable 1 failing test | |
4713 | (substitute* "./IPython/core/tests/test_magic.py" | |
4714 | (("def test_dirops\\(\\):" all) | |
4715 | (string-append "@dec.skipif(True)\n" all)))))))) | |
ae1ab9fe FB |
4716 | (home-page "http://ipython.org") |
4717 | (synopsis "IPython is a tool for interactive computing in Python") | |
4718 | (description | |
4719 | "IPython provides a rich architecture for interactive computing with: | |
4720 | Powerful interactive shells, a browser-based notebook, support for interactive | |
4721 | data visualization, embeddable interpreters and tools for parallel | |
4722 | computing.") | |
135ba811 EF |
4723 | (license license:bsd-3) |
4724 | (properties `((python2-variant . ,(delay python2-ipython)))))) | |
ae1ab9fe FB |
4725 | |
4726 | (define-public python2-ipython | |
135ba811 | 4727 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
3a0b1b9a FB |
4728 | (package |
4729 | (inherit ipython) | |
4730 | ;; FIXME: some tests are failing | |
4731 | (arguments | |
4732 | `(#:tests? #f ,@(package-arguments ipython))) | |
3a0b1b9a | 4733 | ;; FIXME: add pyreadline once available. |
89b5c60e | 4734 | (inputs |
135ba811 EF |
4735 | `(("python2-mock" ,python2-mock) |
4736 | ,@(package-inputs ipython)))))) | |
03411993 AE |
4737 | |
4738 | (define-public python-isodate | |
4739 | (package | |
4740 | (name "python-isodate") | |
b6785c2e | 4741 | (version "0.5.4") |
03411993 AE |
4742 | (source |
4743 | (origin | |
4744 | (method url-fetch) | |
b6785c2e | 4745 | (uri (pypi-uri "isodate" version)) |
03411993 AE |
4746 | (sha256 |
4747 | (base32 | |
b6785c2e | 4748 | "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422")))) |
03411993 | 4749 | (build-system python-build-system) |
03411993 AE |
4750 | (home-page |
4751 | "http://cheeseshop.python.org/pypi/isodate") | |
4752 | (synopsis | |
4753 | "Python date parser and formatter") | |
4754 | (description | |
4755 | "Python-isodate is a python module for parsing and formatting | |
4756 | ISO 8601 dates, time and duration.") | |
3f641af0 | 4757 | (license license:bsd-3))) |
03411993 AE |
4758 | |
4759 | (define-public python2-isodate | |
4760 | (package-with-python2 python-isodate)) | |
673ab897 AE |
4761 | |
4762 | (define-public python-html5lib | |
4763 | (package | |
4764 | (name "python-html5lib") | |
fee04c19 | 4765 | (version "1.0b8") |
673ab897 AE |
4766 | (source |
4767 | (origin | |
4768 | (method url-fetch) | |
fee04c19 | 4769 | (uri (pypi-uri "html5lib" version)) |
673ab897 AE |
4770 | (sha256 |
4771 | (base32 | |
fee04c19 | 4772 | "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q")))) |
673ab897 | 4773 | (build-system python-build-system) |
3dd75476 AE |
4774 | (propagated-inputs |
4775 | `(("python-six" ,python-six))) ; required to "import html5lib" | |
673ab897 AE |
4776 | (arguments |
4777 | `(#:test-target "check")) | |
4778 | (home-page | |
4779 | "https://github.com/html5lib/html5lib-python") | |
4780 | (synopsis | |
4781 | "Python HTML parser based on the WHATWG HTML specifcation") | |
4782 | (description | |
4783 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation | |
4784 | and written in Python.") | |
bd3fa666 | 4785 | (license license:expat))) |
673ab897 AE |
4786 | |
4787 | (define-public python2-html5lib | |
4788 | (package-with-python2 python-html5lib)) | |
e99f4211 | 4789 | |
8ee62c97 RW |
4790 | ;; Needed for python-bleach, a dependency of python-notebook |
4791 | (define-public python-html5lib-0.9 | |
4792 | (package | |
4793 | (inherit python-html5lib) | |
4794 | (version "0.999") | |
4795 | (source | |
4796 | (origin | |
4797 | (method url-fetch) | |
4798 | (uri (pypi-uri "html5lib" version)) | |
4799 | (sha256 | |
4800 | (base32 | |
4801 | "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263")))))) | |
4802 | ||
4803 | (define-public python2-html5lib-0.9 | |
4804 | (package-with-python2 python-html5lib-0.9)) | |
4805 | ||
e99f4211 MW |
4806 | (define-public python-urwid |
4807 | (package | |
4808 | (name "python-urwid") | |
51ff41f6 | 4809 | (version "1.3.1") |
e99f4211 MW |
4810 | (source |
4811 | (origin | |
4812 | (method url-fetch) | |
b97c1bfd | 4813 | (uri (pypi-uri "urwid" version)) |
e99f4211 MW |
4814 | (sha256 |
4815 | (base32 | |
51ff41f6 | 4816 | "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng")))) |
e99f4211 | 4817 | (build-system python-build-system) |
b97c1bfd LF |
4818 | (arguments |
4819 | `(#:phases | |
4820 | (modify-phases %standard-phases | |
4821 | ;; Disable failing test. Bug filed upstream: | |
4822 | ;; https://github.com/wardi/urwid/issues/164 | |
51ff41f6 | 4823 | ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3. |
b97c1bfd LF |
4824 | (add-after 'unpack 'disable-failing-test |
4825 | (lambda _ | |
4826 | (substitute* "urwid/tests/test_event_loops.py" | |
4827 | (("test_remove_watch_file") | |
4828 | "disable_remove_watch_file"))))))) | |
e99f4211 MW |
4829 | (home-page "http://urwid.org") |
4830 | (synopsis "Console user interface library for Python") | |
4831 | (description | |
4832 | "Urwid is a curses-based UI/widget library for Python. It includes many | |
4833 | features useful for text console applications.") | |
3f641af0 | 4834 | (license license:lgpl2.1+))) |
e99f4211 MW |
4835 | |
4836 | (define-public python2-urwid | |
4837 | (package-with-python2 python-urwid)) | |
d95a56c6 | 4838 | |
47d0b292 TS |
4839 | (define-public python-urwidtrees |
4840 | (package | |
4841 | (name "python-urwidtrees") | |
37ec4623 | 4842 | (version "1.0.2") |
47d0b292 TS |
4843 | (source |
4844 | (origin | |
4845 | (method url-fetch) | |
37ec4623 TS |
4846 | ;; package author intends on distributing via github rather than pypi: |
4847 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 | |
4848 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" | |
4849 | version ".tar.gz")) | |
4850 | (file-name (string-append name "-" version ".tar.gz")) | |
47d0b292 TS |
4851 | (sha256 |
4852 | (base32 | |
37ec4623 | 4853 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
47d0b292 TS |
4854 | (build-system python-build-system) |
4855 | (arguments | |
4856 | '(#:tests? #f)) ; no tests | |
f22efa01 | 4857 | (propagated-inputs `(("python-urwid" ,python-urwid))) |
47d0b292 TS |
4858 | (home-page "https://github.com/pazz/urwidtrees") |
4859 | (synopsis "Tree widgets for urwid") | |
4860 | (description "Urwidtrees is a Widget Container API for the @code{urwid} | |
4861 | toolkit. Use it to build trees of widgets.") | |
3f641af0 | 4862 | (license license:gpl3+))) |
47d0b292 TS |
4863 | |
4864 | (define-public python2-urwidtrees | |
4865 | (package-with-python2 python-urwidtrees)) | |
4866 | ||
d95a56c6 PAR |
4867 | (define-public python-dbus |
4868 | (package | |
4869 | (name "python-dbus") | |
4870 | (version "1.2.0") | |
4871 | (source | |
4872 | (origin | |
4873 | (method url-fetch) | |
4874 | (uri (string-append | |
5cc3096c | 4875 | "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-" |
d95a56c6 PAR |
4876 | version ".tar.gz")) |
4877 | (sha256 | |
4878 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) | |
4879 | (build-system gnu-build-system) | |
6717c879 SB |
4880 | (arguments |
4881 | '(#:phases | |
4882 | (modify-phases %standard-phases | |
4883 | (add-before | |
4884 | 'check 'pre-check | |
4885 | (lambda _ | |
4886 | ;; XXX: For the missing '/etc/machine-id'. | |
4887 | (substitute* "test/run-test.sh" | |
4888 | (("DBUS_FATAL_WARNINGS=1") | |
4889 | "DBUS_FATAL_WARNINGS=0")) | |
4890 | #t))))) | |
d95a56c6 PAR |
4891 | (native-inputs |
4892 | `(("pkg-config" ,pkg-config))) | |
4893 | (inputs | |
4894 | `(("python" ,python) | |
2e88d113 | 4895 | ("dbus-glib" ,dbus-glib))) |
d95a56c6 PAR |
4896 | (synopsis "Python bindings for D-bus") |
4897 | (description "python-dbus provides bindings for libdbus, the reference | |
4898 | implementation of D-Bus.") | |
4899 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") | |
bd3fa666 | 4900 | (license license:expat))) |
b52af02b MW |
4901 | |
4902 | (define-public python2-dbus | |
4903 | (package (inherit python-dbus) | |
4904 | (name "python2-dbus") | |
4905 | (inputs `(("python" ,python-2) | |
4906 | ,@(alist-delete "python" | |
4907 | (package-inputs python-dbus) | |
4908 | equal?))) | |
4909 | ;; FIXME: on Python 2, the test_utf8 fails with: | |
4910 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" | |
4911 | (arguments `(#:tests? #f)))) | |
a6ac8332 AE |
4912 | |
4913 | (define-public python-apsw | |
4914 | (package | |
4915 | (name "python-apsw") | |
917708c2 | 4916 | (version "3.9.2-r1") |
a6ac8332 AE |
4917 | (source |
4918 | (origin | |
4919 | (method url-fetch) | |
917708c2 | 4920 | (uri (pypi-uri "apsw" version)) |
a6ac8332 AE |
4921 | (sha256 |
4922 | (base32 | |
917708c2 | 4923 | "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs")))) |
a6ac8332 AE |
4924 | (build-system python-build-system) |
4925 | (inputs | |
f3b98f4f | 4926 | `(("sqlite" ,sqlite))) |
a6ac8332 AE |
4927 | (arguments |
4928 | `(#:phases | |
4929 | ;; swap check and install phases | |
4930 | (alist-cons-after | |
4931 | 'install 'check | |
4932 | (assoc-ref %standard-phases 'check) | |
4933 | (alist-delete | |
4934 | 'check | |
4935 | %standard-phases)))) | |
4936 | (home-page "https://github.com/rogerbinns/apsw/") | |
4937 | (synopsis "Another Python SQLite Wrapper") | |
4938 | (description "APSW is a Python wrapper for the SQLite | |
4939 | embedded relational database engine. In contrast to other wrappers such as | |
4940 | pysqlite it focuses on being a minimal layer over SQLite attempting just to | |
4941 | translate the complete SQLite API into Python.") | |
abde5f37 | 4942 | (license license:zlib))) |
a6ac8332 AE |
4943 | |
4944 | (define-public python2-apsw | |
4945 | (package-with-python2 python-apsw)) | |
26b307e2 AE |
4946 | |
4947 | (define-public python-lxml | |
4948 | (package | |
4949 | (name "python-lxml") | |
d58a3203 | 4950 | (version "3.6.0") |
26b307e2 AE |
4951 | (source |
4952 | (origin | |
4953 | (method url-fetch) | |
97bbc480 | 4954 | (uri (pypi-uri "lxml" version)) |
26b307e2 | 4955 | (sha256 |
d58a3203 EF |
4956 | (base32 |
4957 | "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w")))) | |
26b307e2 AE |
4958 | (build-system python-build-system) |
4959 | (inputs | |
4960 | `(("libxml2" ,libxml2) | |
f3b98f4f | 4961 | ("libxslt" ,libxslt))) |
26b307e2 AE |
4962 | (home-page "http://lxml.de/") |
4963 | (synopsis | |
4964 | "Python XML processing library") | |
4965 | (description | |
4966 | "The lxml XML toolkit is a Pythonic binding for the C libraries | |
4967 | libxml2 and libxslt.") | |
3f641af0 | 4968 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
26b307e2 AE |
4969 | |
4970 | (define-public python2-lxml | |
4971 | (package-with-python2 python-lxml)) | |
4ed20663 | 4972 | |
b32a1e47 CAW |
4973 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
4974 | ;; and pypi seems to put it under its own name, so I guess we should too | |
4975 | (define-public python-beautifulsoup4 | |
4976 | (package | |
4977 | (name "python-beautifulsoup4") | |
67fd4a12 | 4978 | (version "4.5.1") |
b32a1e47 CAW |
4979 | (source |
4980 | (origin | |
4981 | (method url-fetch) | |
4982 | (uri (pypi-uri "beautifulsoup4" version)) | |
4983 | (sha256 | |
4984 | (base32 | |
67fd4a12 | 4985 | "1qgmhw65ncsgccjhslgkkszif47q6gvxwqv4mim17agxd81p951w")))) |
b32a1e47 | 4986 | (build-system python-build-system) |
5f37f0b6 LF |
4987 | (arguments |
4988 | `(#:phases | |
4989 | (modify-phases %standard-phases | |
4990 | ;; The Python 2 source is the definitive source of beautifulsoup4. We | |
4991 | ;; must use this conversion script when building with Python 3. The | |
4992 | ;; conversion script also runs the tests. | |
4993 | ;; For more information, see the file 'convert-py3k' in the source | |
4994 | ;; distribution. | |
4995 | (replace 'check | |
4996 | (lambda _ (zero? (system* "./convert-py3k"))))))) | |
b32a1e47 CAW |
4997 | (home-page |
4998 | "http://www.crummy.com/software/BeautifulSoup/bs4/") | |
4999 | (synopsis | |
5000 | "Python screen-scraping library") | |
5001 | (description | |
5002 | "Beautiful Soup is a Python library designed for rapidly setting up | |
5003 | screen-scraping projects. It offers Pythonic idioms for navigating, | |
5004 | searching, and modifying a parse tree, providing a toolkit for | |
5005 | dissecting a document and extracting what you need. It automatically | |
5006 | converts incoming documents to Unicode and outgoing documents to UTF-8.") | |
f210e944 | 5007 | (license license:expat))) |
b32a1e47 CAW |
5008 | |
5009 | (define-public python2-beautifulsoup4 | |
5010 | (package | |
5011 | (inherit (package-with-python2 | |
5012 | (strip-python2-variant python-beautifulsoup4))) | |
5f37f0b6 | 5013 | (arguments `(#:python ,python-2)))) |
b32a1e47 | 5014 | |
092e86f5 AE |
5015 | (define-public python2-cssutils |
5016 | (package | |
5017 | (name "python2-cssutils") | |
58d1d816 | 5018 | (version "1.0.1") |
092e86f5 AE |
5019 | (source |
5020 | (origin | |
5021 | (method url-fetch) | |
58d1d816 | 5022 | (uri (pypi-uri "cssutils" version)) |
092e86f5 | 5023 | (sha256 |
58d1d816 EF |
5024 | (base32 |
5025 | "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) | |
092e86f5 AE |
5026 | (build-system python-build-system) |
5027 | (native-inputs | |
5028 | `(("python2-mock" ,python2-mock) ; for the tests | |
5029 | ("unzip" ,unzip))) ; for unpacking the source | |
092e86f5 AE |
5030 | (arguments |
5031 | `(#:python ,python-2 ; Otherwise tests fail with a syntax error. | |
5032 | #:tests? #f ; The tests apparently download an external URL. | |
da6dd842 | 5033 | )) |
092e86f5 AE |
5034 | (home-page "http://cthedot.de/cssutils/") |
5035 | (synopsis | |
5036 | "CSS Cascading Style Sheets library for Python") | |
5037 | (description | |
5038 | "Cssutils is a Python package for parsing and building CSS | |
5039 | Cascading Style Sheets. Currently it provides a DOM only and no rendering | |
5040 | options.") | |
3f641af0 | 5041 | (license license:lgpl3+))) |
880ff77c AE |
5042 | |
5043 | (define-public python-cssselect | |
5044 | (package | |
5045 | (name "python-cssselect") | |
d5ccd9ab | 5046 | (version "0.9.2") |
880ff77c AE |
5047 | (source |
5048 | (origin | |
5049 | (method url-fetch) | |
d5ccd9ab | 5050 | (uri (pypi-uri "cssselect" version)) |
880ff77c | 5051 | (sha256 |
d5ccd9ab EF |
5052 | (base32 |
5053 | "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) | |
880ff77c | 5054 | (build-system python-build-system) |
880ff77c AE |
5055 | (arguments |
5056 | ;; tests fail with message | |
5057 | ;; AttributeError: 'module' object has no attribute 'tests' | |
5058 | `(#:tests? #f)) | |
5059 | (home-page | |
5060 | "https://pythonhosted.org/cssselect/") | |
5061 | (synopsis | |
5062 | "CSS3 selector parser and translator to XPath 1.0") | |
5063 | (description | |
5064 | "Cssselect ia a Python module that parses CSS3 Selectors and translates | |
5065 | them to XPath 1.0 expressions. Such expressions can be used in lxml or | |
5066 | another XPath engine to find the matching elements in an XML or HTML document.") | |
3f641af0 | 5067 | (license license:bsd-3))) |
880ff77c AE |
5068 | |
5069 | (define-public python2-cssselect | |
5070 | (package-with-python2 python-cssselect)) | |
60357f99 AE |
5071 | |
5072 | (define-public python-netifaces | |
5073 | (package | |
5074 | (name "python-netifaces") | |
5075 | (version "0.10.4") | |
5076 | (source | |
5077 | (origin | |
5078 | (method url-fetch) | |
5079 | (uri (string-append | |
5080 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" | |
5081 | version | |
5082 | ".tar.gz")) | |
5083 | (sha256 | |
5084 | (base32 | |
5085 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) | |
5086 | (build-system python-build-system) | |
60357f99 AE |
5087 | (home-page |
5088 | "https://bitbucket.org/al45tair/netifaces") | |
5089 | (synopsis | |
5090 | "Python module for portable network interface information") | |
5091 | (description | |
5092 | "Netifaces is a Python module providing information on network | |
5093 | interfaces in an easy and portable manner.") | |
5094 | (license license:expat))) | |
5095 | ||
5096 | (define-public python2-netifaces | |
5097 | (package-with-python2 python-netifaces)) | |
92cb152b | 5098 | |
32f77c04 RW |
5099 | (define-public python-networkx |
5100 | (package | |
5101 | (name "python-networkx") | |
a4d9609c | 5102 | (version "1.11") |
32f77c04 RW |
5103 | (source |
5104 | (origin | |
5105 | (method url-fetch) | |
a4d9609c | 5106 | (uri (pypi-uri "networkx" version)) |
32f77c04 | 5107 | (sha256 |
a4d9609c | 5108 | (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd")))) |
32f77c04 RW |
5109 | (build-system python-build-system) |
5110 | ;; python-decorator is needed at runtime | |
5111 | (propagated-inputs | |
5112 | `(("python-decorator" ,python-decorator))) | |
5113 | (native-inputs | |
f3b98f4f | 5114 | `(("python-nose" ,python-nose))) |
32f77c04 RW |
5115 | (home-page "http://networkx.github.io/") |
5116 | (synopsis "Python module for creating and manipulating graphs and networks") | |
5117 | (description | |
5118 | "NetworkX is a Python package for the creation, manipulation, and study | |
5119 | of the structure, dynamics, and functions of complex networks.") | |
3f641af0 | 5120 | (license license:bsd-3))) |
32f77c04 RW |
5121 | |
5122 | (define-public python2-networkx | |
5123 | (package-with-python2 python-networkx)) | |
5124 | ||
92cb152b RW |
5125 | (define-public snakemake |
5126 | (package | |
5127 | (name "snakemake") | |
5128 | (version "3.2.1") | |
5129 | (source | |
5130 | (origin | |
5131 | (method url-fetch) | |
5132 | (uri (string-append | |
5133 | "https://pypi.python.org/packages/source/s/snakemake/snakemake-" | |
5134 | version ".tar.gz")) | |
5135 | (sha256 | |
5136 | (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91")))) | |
5137 | (build-system python-build-system) | |
92cb152b RW |
5138 | (home-page "https://bitbucket.org/johanneskoester/snakemake") |
5139 | (synopsis "Python-based execution environment for make-like workflows") | |
5140 | (description | |
5141 | "Snakemake aims to reduce the complexity of creating workflows by | |
5142 | providing a clean and modern domain specific specification language (DSL) in | |
5143 | Python style, together with a fast and comfortable execution environment.") | |
5144 | (license license:expat))) | |
a1920bc9 | 5145 | |
35de1fbd RW |
5146 | (define-public python-seaborn |
5147 | (package | |
5148 | (name "python-seaborn") | |
fc899d4f | 5149 | (version "0.7.0") |
35de1fbd RW |
5150 | (source |
5151 | (origin | |
5152 | (method url-fetch) | |
fc899d4f | 5153 | (uri (pypi-uri "seaborn" version)) |
35de1fbd | 5154 | (sha256 |
fc899d4f | 5155 | (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m")))) |
35de1fbd RW |
5156 | (build-system python-build-system) |
5157 | (propagated-inputs | |
5158 | `(("python-pandas" ,python-pandas) | |
5159 | ("python-matplotlib" ,python-matplotlib) | |
5160 | ("python-scipy" ,python-scipy))) | |
35de1fbd RW |
5161 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
5162 | (synopsis "Statistical data visualization") | |
5163 | (description | |
5164 | "Seaborn is a library for making attractive and informative statistical | |
5165 | graphics in Python. It is built on top of matplotlib and tightly integrated | |
5166 | with the PyData stack, including support for numpy and pandas data structures | |
5167 | and statistical routines from scipy and statsmodels.") | |
3f641af0 | 5168 | (license license:bsd-3) |
fc899d4f | 5169 | (properties `((python2-variant . ,(delay python2-seaborn)))))) |
35de1fbd RW |
5170 | |
5171 | (define-public python2-seaborn | |
fc899d4f EF |
5172 | (let ((base (package-with-python2 (strip-python2-variant python-seaborn)))) |
5173 | (package | |
5174 | (inherit base) | |
5175 | (propagated-inputs `(("python2-pytz" ,python2-pytz) | |
00e10c6e | 5176 | ,@(package-propagated-inputs base)))))) |
35de1fbd | 5177 | |
90fc547f RW |
5178 | (define-public python-sympy |
5179 | (package | |
5180 | (name "python-sympy") | |
5181 | (version "0.7.6") | |
5182 | (source | |
5183 | (origin | |
5184 | (method url-fetch) | |
5185 | (uri (string-append | |
5186 | "https://github.com/sympy/sympy/releases/download/sympy-" | |
5187 | version "/sympy-" version ".tar.gz")) | |
5188 | (sha256 | |
5189 | (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz")))) | |
5190 | (build-system python-build-system) | |
90fc547f RW |
5191 | (home-page "http://www.sympy.org/") |
5192 | (synopsis "Python library for symbolic mathematics") | |
5193 | (description | |
5194 | "SymPy is a Python library for symbolic mathematics. It aims to become a | |
5195 | full-featured computer algebra system (CAS) while keeping the code as simple | |
5196 | as possible in order to be comprehensible and easily extensible.") | |
3f641af0 | 5197 | (license license:bsd-3))) |
90fc547f RW |
5198 | |
5199 | (define-public python2-sympy | |
5200 | (package-with-python2 python-sympy)) | |
5201 | ||
e8c9b010 SR |
5202 | (define-public python-q |
5203 | (package | |
5204 | (name "python-q") | |
5205 | (version "2.6") | |
5206 | (source | |
5207 | (origin | |
5208 | (method url-fetch) | |
5209 | (uri (pypi-uri "q" version)) | |
5210 | (sha256 | |
5211 | (base32 | |
5212 | "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) | |
5213 | (build-system python-build-system) | |
5214 | (home-page "https://github.com/zestyping/q") | |
5215 | (synopsis "Quick-and-dirty debugging output for tired programmers") | |
5216 | (description | |
5217 | "q is a Python module for \"print\" style of debugging Python code. It | |
5218 | provides convenient short API for print out of values, tracebacks, and | |
5219 | falling into the Python interpreter.") | |
f210e944 | 5220 | (license license:asl2.0))) |
e8c9b010 SR |
5221 | |
5222 | (define-public python2-q | |
f210e944 | 5223 | (package-with-python2 python-q)) |
e8c9b010 | 5224 | |
a1920bc9 FB |
5225 | (define-public python-testlib |
5226 | (package | |
5227 | (name "python-testlib") | |
5228 | (version "0.6.5") | |
5229 | (source | |
5230 | (origin | |
5231 | (method url-fetch) | |
5232 | (uri (string-append | |
5233 | "https://pypi.python.org/packages/source/t/testlib/testlib-" | |
5234 | version ".zip")) | |
5235 | (sha256 | |
5236 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) | |
5237 | (build-system python-build-system) | |
a1920bc9 FB |
5238 | (native-inputs |
5239 | `(("unzip" ,unzip))) | |
5240 | (arguments | |
5241 | `(#:phases | |
5242 | (alist-replace | |
5243 | 'unpack | |
5244 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
5245 | (let ((unzip (string-append (assoc-ref inputs "unzip") | |
5246 | "/bin/unzip")) | |
5247 | (source (assoc-ref inputs "source"))) | |
5248 | (and (zero? (system* unzip source)) | |
5249 | (chdir (string-append "testlib-" ,version))))) | |
5250 | %standard-phases))) | |
5251 | (synopsis "Python micro test suite harness") | |
5252 | (description "A micro unittest suite harness for Python.") | |
5253 | (home-page "https://github.com/trentm/testlib") | |
1cb9c006 | 5254 | (license license:expat))) |
a1920bc9 FB |
5255 | |
5256 | (define-public python2-testlib | |
5257 | (package-with-python2 python-testlib)) | |
db62afa5 LC |
5258 | |
5259 | (define-public python2-xlib | |
5260 | (package | |
5261 | (name "python2-xlib") | |
5262 | (version "0.14") | |
5263 | (source (origin | |
5264 | (method url-fetch) | |
de67e922 LF |
5265 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
5266 | "/" version "/" | |
db62afa5 LC |
5267 | "python-xlib-" version ".tar.gz")) |
5268 | (sha256 | |
5269 | (base32 | |
5270 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) | |
5271 | (build-system python-build-system) | |
5272 | (arguments | |
5273 | `(#:python ,python-2 ;Python 2 only | |
5274 | #:tests? #f)) ;no tests | |
db62afa5 LC |
5275 | (home-page "http://python-xlib.sourceforge.net/") |
5276 | (synopsis "Python X11 client library") | |
5277 | (description | |
5278 | "The Python X Library is intended to be a fully functional X client | |
5279 | library for Python programs. It is useful to implement low-level X clients. | |
5280 | It is written entirely in Python.") | |
3f641af0 | 5281 | (license license:gpl2+))) |
0234ca06 DT |
5282 | |
5283 | (define-public python-singledispatch | |
5284 | (package | |
5285 | (name "python-singledispatch") | |
5286 | (version "3.4.0.3") | |
5287 | (source | |
5288 | (origin | |
5289 | (method url-fetch) | |
bdb67d84 | 5290 | (uri (pypi-uri "singledispatch" version)) |
0234ca06 DT |
5291 | (sha256 |
5292 | (base32 | |
5293 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) | |
5294 | (build-system python-build-system) | |
5e1c9d24 HG |
5295 | (native-inputs |
5296 | `(("python-six" ,python-six))) ; required for conversion, not at run-time | |
0234ca06 DT |
5297 | (home-page |
5298 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") | |
5299 | (synopsis "Backport of singledispatch feature from Python 3.4") | |
5300 | (description | |
5301 | "This library brings functools.singledispatch from Python 3.4 to Python | |
5302 | 2.6-3.3.") | |
5303 | (license license:expat))) | |
5304 | ||
5305 | (define-public python2-singledispatch | |
5306 | (package-with-python2 python-singledispatch)) | |
feaae484 | 5307 | |
310d218f RW |
5308 | (define-public python-tornado |
5309 | (package | |
5310 | (name "python-tornado") | |
a724924b | 5311 | (version "4.3") |
310d218f RW |
5312 | (source |
5313 | (origin | |
5314 | (method url-fetch) | |
a724924b | 5315 | (uri (pypi-uri "tornado" version)) |
310d218f | 5316 | (sha256 |
a724924b | 5317 | (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9")))) |
310d218f | 5318 | (build-system python-build-system) |
310d218f | 5319 | (native-inputs |
b455439b | 5320 | `(("python-certifi" ,python-certifi))) |
f22efa01 | 5321 | (propagated-inputs |
b455439b | 5322 | `(("python-backports-abc" ,python-backports-abc))) |
f4a4a718 | 5323 | (home-page "http://www.tornadoweb.org/") |
310d218f RW |
5324 | (synopsis "Python web framework and asynchronous networking library") |
5325 | (description | |
5326 | "Tornado is a Python web framework and asynchronous networking library, | |
5327 | originally developed at FriendFeed. By using non-blocking network I/O, | |
5328 | Tornado can scale to tens of thousands of open connections, making it ideal | |
5329 | for long polling, WebSockets, and other applications that require a long-lived | |
5330 | connection to each user.") | |
3f641af0 | 5331 | (license license:asl2.0) |
b455439b | 5332 | (properties `((python2-variant . ,(delay python2-tornado)))))) |
310d218f RW |
5333 | |
5334 | (define-public python2-tornado | |
b455439b | 5335 | (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) |
310d218f | 5336 | (package (inherit tornado) |
f22efa01 | 5337 | (propagated-inputs |
310d218f RW |
5338 | `(("python2-backport-ssl-match-hostname" |
5339 | ,python2-backport-ssl-match-hostname) | |
b455439b | 5340 | ("python2-singledispatch" ,python2-singledispatch) |
f22efa01 | 5341 | ,@(package-propagated-inputs tornado)))))) |
310d218f | 5342 | |
6b59fc10 EF |
5343 | ;; the python- version can be removed with python-3.5 |
5344 | (define-public python-backports-abc | |
5345 | (package | |
5346 | (name "python-backports-abc") | |
5347 | (version "0.4") | |
5348 | (source | |
5349 | (origin | |
5350 | (method url-fetch) | |
5351 | (uri (pypi-uri "backports_abc" version)) | |
5352 | (sha256 | |
5353 | (base32 | |
5354 | "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb")))) | |
5355 | (build-system python-build-system) | |
6b59fc10 | 5356 | (home-page "https://github.com/cython/backports_abc") |
66e07664 | 5357 | (synopsis "Backport of additions to the 'collections.abc' module") |
6b59fc10 EF |
5358 | (description |
5359 | "Python-backports-abc provides a backport of additions to the | |
5360 | 'collections.abc' module in Python-3.5.") | |
3f641af0 | 5361 | (license license:psfl))) |
6b59fc10 EF |
5362 | |
5363 | (define-public python2-backports-abc | |
5364 | (package-with-python2 python-backports-abc)) | |
5365 | ||
feaae484 SB |
5366 | (define-public python-waf |
5367 | (package | |
5368 | (name "python-waf") | |
7dd55dfe | 5369 | (version "1.9.5") |
feaae484 SB |
5370 | (source (origin |
5371 | (method url-fetch) | |
bae67829 | 5372 | (uri (string-append "https://waf.io/" |
feaae484 SB |
5373 | "waf-" version ".tar.bz2")) |
5374 | (sha256 | |
5375 | (base32 | |
7dd55dfe | 5376 | "1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg")))) |
feaae484 SB |
5377 | (build-system python-build-system) |
5378 | (arguments | |
5379 | '(#:phases | |
5380 | (modify-phases %standard-phases | |
5381 | (replace 'build | |
7dd55dfe EF |
5382 | (lambda _ |
5383 | (zero? (system* "python" "waf-light" "configure" "build")))) | |
feaae484 | 5384 | (replace 'check |
7dd55dfe EF |
5385 | (lambda _ |
5386 | (zero? (system* "python" "waf" "--version")))) | |
feaae484 | 5387 | (replace 'install |
7dd55dfe EF |
5388 | (lambda _ |
5389 | (copy-file "waf" %output)))))) | |
5390 | (home-page "http://waf.io/") | |
feaae484 SB |
5391 | (synopsis "Python-based build system") |
5392 | (description | |
5393 | "Waf is a Python-based framework for configuring, compiling and installing | |
5394 | applications.") | |
3f641af0 | 5395 | (license license:bsd-3))) |
feaae484 SB |
5396 | |
5397 | (define-public python2-waf | |
5398 | (package-with-python2 python-waf)) | |
45203542 RW |
5399 | |
5400 | (define-public python-pyzmq | |
5401 | (package | |
5402 | (name "python-pyzmq") | |
3655ee76 | 5403 | (version "15.1.0") |
45203542 RW |
5404 | (source |
5405 | (origin | |
5406 | (method url-fetch) | |
3655ee76 | 5407 | (uri (pypi-uri "pyzmq" version)) |
45203542 | 5408 | (sha256 |
3655ee76 | 5409 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
45203542 RW |
5410 | (build-system python-build-system) |
5411 | (arguments | |
5412 | `(#:configure-flags | |
5413 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) | |
5414 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext | |
5415 | ;; --inplace' for 'python setup.py test' to work. | |
5416 | #:tests? #f)) | |
5417 | (inputs | |
5418 | `(("zeromq" ,zeromq))) | |
5419 | (native-inputs | |
5420 | `(("pkg-config" ,pkg-config) | |
f3b98f4f | 5421 | ("python-nose" ,python-nose))) |
45203542 RW |
5422 | (home-page "http://github.com/zeromq/pyzmq") |
5423 | (synopsis "Python bindings for 0MQ") | |
5424 | (description | |
5425 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") | |
3f641af0 | 5426 | (license license:bsd-4))) |
45203542 RW |
5427 | |
5428 | (define-public python2-pyzmq | |
5429 | (package-with-python2 python-pyzmq)) | |
d889e6c4 CR |
5430 | |
5431 | (define-public python-pep8 | |
5432 | (package | |
5433 | (name "python-pep8") | |
db251311 | 5434 | (version "1.7.0") |
d889e6c4 CR |
5435 | (source |
5436 | (origin | |
5437 | (method url-fetch) | |
db251311 | 5438 | (uri (pypi-uri "pep8" version)) |
d889e6c4 CR |
5439 | (sha256 |
5440 | (base32 | |
db251311 | 5441 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
d889e6c4 | 5442 | (build-system python-build-system) |
d889e6c4 CR |
5443 | (home-page "http://pep8.readthedocs.org/") |
5444 | (synopsis "Python style guide checker") | |
5445 | (description | |
5446 | "This tools checks Python code against some of the style conventions in | |
5447 | PEP 8.") | |
5448 | (license license:expat))) | |
5449 | ||
5450 | (define-public python2-pep8 | |
5451 | (package-with-python2 python-pep8)) | |
e31d7f44 CR |
5452 | |
5453 | (define-public python-pyflakes | |
5454 | (package | |
5455 | (name "python-pyflakes") | |
2abc3972 | 5456 | (version "1.0.0") |
e31d7f44 CR |
5457 | (source |
5458 | (origin | |
5459 | (method url-fetch) | |
2abc3972 | 5460 | (uri (pypi-uri "pyflakes" version)) |
e31d7f44 CR |
5461 | (sha256 |
5462 | (base32 | |
2abc3972 | 5463 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
e31d7f44 | 5464 | (build-system python-build-system) |
e31d7f44 CR |
5465 | (home-page |
5466 | "https://github.com/pyflakes/pyflakes") | |
5467 | (synopsis "Passive checker of Python programs") | |
5468 | (description | |
5469 | "Pyflakes statically checks Python source code for common errors.") | |
5470 | (license license:expat))) | |
a59e017c | 5471 | |
7261d9eb CR |
5472 | (define-public python2-pyflakes |
5473 | (package-with-python2 python-pyflakes)) | |
5474 | ||
a59e017c CR |
5475 | (define-public python-mccabe |
5476 | (package | |
5477 | (name "python-mccabe") | |
c6ebd40d | 5478 | (version "0.4.0") |
a59e017c CR |
5479 | (source |
5480 | (origin | |
5481 | (method url-fetch) | |
c6ebd40d | 5482 | (uri (pypi-uri "mccabe" version)) |
a59e017c CR |
5483 | (sha256 |
5484 | (base32 | |
c6ebd40d | 5485 | "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) |
a59e017c | 5486 | (build-system python-build-system) |
328bb95d | 5487 | (native-inputs |
c6ebd40d | 5488 | `(("python-pytest" ,python-pytest) |
f3b98f4f | 5489 | ("python-pytest-runner" ,python-pytest-runner))) |
a59e017c CR |
5490 | (home-page "https://github.com/flintwork/mccabe") |
5491 | (synopsis "McCabe checker, plugin for flake8") | |
5492 | (description | |
5493 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic | |
5494 | complexity of Python source code.") | |
7362371d | 5495 | (license license:expat))) |
a59e017c CR |
5496 | |
5497 | (define-public python2-mccabe | |
5498 | (package-with-python2 python-mccabe)) | |
e8df8f47 | 5499 | |
7477fbb1 CR |
5500 | (define-public python-mccabe-0.2.1 |
5501 | (package (inherit python-mccabe) | |
5502 | (version "0.2.1") | |
5503 | (source | |
5504 | (origin | |
5505 | (method url-fetch) | |
5506 | (uri (pypi-uri "mccabe" version)) | |
5507 | (sha256 | |
5508 | (base32 | |
f3b98f4f | 5509 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))))) |
7477fbb1 CR |
5510 | |
5511 | (define-public python2-mccabe-0.2.1 | |
5512 | (package-with-python2 python-mccabe-0.2.1)) | |
5513 | ||
e8df8f47 CR |
5514 | ;; Flake8 2.4.1 requires an older version of pep8. |
5515 | ;; This should be removed ASAP. | |
5516 | (define-public python-pep8-1.5.7 | |
5517 | (package (inherit python-pep8) | |
5518 | (version "1.5.7") | |
5519 | (source | |
5520 | (origin | |
5521 | (method url-fetch) | |
5522 | (uri (string-append | |
5523 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
5524 | version | |
5525 | ".tar.gz")) | |
5526 | (sha256 | |
5527 | (base32 | |
5528 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))))) | |
5529 | ||
5530 | (define-public python2-pep8-1.5.7 | |
5531 | (package-with-python2 python-pep8-1.5.7)) | |
5532 | ||
5533 | ;; Flake8 2.4.1 requires an older version of pyflakes. | |
5534 | ;; This should be removed ASAP. | |
5535 | (define-public python-pyflakes-0.8.1 | |
5536 | (package (inherit python-pyflakes) | |
5537 | (version "0.8.1") | |
5538 | (source | |
5539 | (origin | |
5540 | (method url-fetch) | |
5541 | (uri (string-append | |
5542 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
5543 | version | |
5544 | ".tar.gz")) | |
5545 | (sha256 | |
5546 | (base32 | |
5547 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))))) | |
5548 | ||
5549 | (define-public python2-pyflakes-0.8.1 | |
7261d9eb | 5550 | (package-with-python2 python-pyflakes-0.8.1)) |
e8df8f47 CR |
5551 | |
5552 | (define-public python-flake8 | |
5553 | (package | |
5554 | (name "python-flake8") | |
43789136 | 5555 | (version "2.5.4") |
e8df8f47 CR |
5556 | (source |
5557 | (origin | |
5558 | (method url-fetch) | |
1b995533 | 5559 | (uri (pypi-uri "flake8" version)) |
e8df8f47 CR |
5560 | (sha256 |
5561 | (base32 | |
43789136 | 5562 | "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")))) |
e8df8f47 | 5563 | (build-system python-build-system) |
482d9591 | 5564 | (propagated-inputs |
f3b98f4f | 5565 | `(("python-pep8" ,python-pep8) |
43789136 | 5566 | ("python-pyflakes" ,python-pyflakes) |
482d9591 | 5567 | ("python-mccabe" ,python-mccabe))) |
328bb95d HG |
5568 | (native-inputs |
5569 | `(("python-mock" ,python-mock) ; TODO: only required for < 3.3 | |
e8df8f47 CR |
5570 | ("python-nose" ,python-nose))) |
5571 | (home-page "https://gitlab.com/pycqa/flake8") | |
5572 | (synopsis | |
5573 | "The modular source code checker: pep8, pyflakes and co") | |
5574 | (description | |
5575 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") | |
5576 | (license license:expat))) | |
5577 | ||
5578 | (define-public python2-flake8 | |
5579 | (package-with-python2 python-flake8)) | |
61b9ac53 | 5580 | |
abf21efc CR |
5581 | ;; This will only be needed by the python-hacking package and will not be |
5582 | ;; necessary once python-hacking > 0.10.2 is released. | |
5583 | (define-public python-flake8-2.2.4 | |
5584 | (package (inherit python-flake8) | |
482d9591 | 5585 | (propagated-inputs |
f3b98f4f | 5586 | `(("python-pep8" ,python-pep8-1.5.7) |
abf21efc | 5587 | ("python-pyflakes" ,python-pyflakes-0.8.1) |
482d9591 | 5588 | ("python-mccabe" ,python-mccabe-0.2.1))) |
328bb95d | 5589 | (native-inputs |
482d9591 | 5590 | `(("python-mock" ,python-mock) |
abf21efc CR |
5591 | ("python-nose" ,python-nose))) |
5592 | (version "2.2.4") | |
5593 | (source | |
5594 | (origin | |
5595 | (method url-fetch) | |
5596 | (uri (pypi-uri "flake8" version)) | |
5597 | (sha256 | |
5598 | (base32 | |
5599 | "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8")))))) | |
5600 | ||
5601 | (define-public python2-flake8-2.2.4 | |
5602 | (package-with-python2 python-flake8-2.2.4)) | |
5603 | ||
61b9ac53 FB |
5604 | (define-public python-mistune |
5605 | (package | |
5606 | (name "python-mistune") | |
5607 | (version "0.7") | |
5608 | (source | |
5609 | (origin | |
5610 | (method url-fetch) | |
5611 | (uri (string-append | |
5612 | "https://pypi.python.org/packages/source/m/mistune/mistune-" | |
5613 | version | |
5614 | ".tar.gz")) | |
5615 | (sha256 | |
5616 | (base32 | |
5617 | "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx")))) | |
5618 | (build-system python-build-system) | |
328bb95d | 5619 | (native-inputs |
f3b98f4f | 5620 | `(("python-nose" ,python-nose) |
61b9ac53 FB |
5621 | ("python-cython" ,python-cython))) |
5622 | (home-page "https://github.com/lepture/mistune") | |
5623 | (synopsis "Markdown parser in pure Python") | |
5624 | (description "This package provides a fast markdown parser in pure | |
5625 | Python.") | |
3f641af0 | 5626 | (license license:bsd-3))) |
61b9ac53 FB |
5627 | |
5628 | (define-public python2-mistune | |
5629 | (package-with-python2 python-mistune)) | |
6d992d07 | 5630 | |
b9893908 EE |
5631 | (define-public python-markdown |
5632 | (package | |
5633 | (name "python-markdown") | |
5634 | (version "2.6.5") | |
5635 | (source | |
5636 | (origin | |
5637 | (method url-fetch) | |
5638 | (uri (pypi-uri "Markdown" version)) | |
5639 | (sha256 | |
5640 | (base32 | |
5641 | "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d")))) | |
5642 | (build-system python-build-system) | |
5643 | (arguments | |
5644 | `(#:phases | |
5645 | (modify-phases %standard-phases | |
5646 | (replace 'check | |
5647 | (lambda _ | |
5648 | (zero? (system* "python" "run-tests.py"))))))) | |
5649 | (native-inputs | |
5650 | `(("python-nose" ,python-nose) | |
5651 | ("python-pyyaml" ,python-pyyaml))) | |
5652 | (home-page "https://pythonhosted.org/Markdown/") | |
5653 | (synopsis "Python implementation of Markdown") | |
5654 | (description | |
5655 | "This package provides a Python implementation of John Gruber's | |
5656 | Markdown. The library features international input, various Markdown | |
5657 | extensions, and several HTML output formats. A command line wrapper | |
5658 | markdown_py is also provided to convert Markdown files to HTML.") | |
3f641af0 | 5659 | (license license:bsd-3))) |
b9893908 EE |
5660 | |
5661 | (define-public python2-markdown | |
5662 | (package-with-python2 python-markdown)) | |
5663 | ||
6d992d07 FB |
5664 | (define-public python-ptyprocess |
5665 | (package | |
5666 | (name "python-ptyprocess") | |
5667 | (version "0.5") | |
5668 | (source | |
5669 | (origin | |
5670 | (method url-fetch) | |
5671 | (uri (string-append | |
5672 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" | |
5673 | version ".tar.gz")) | |
5674 | (sha256 | |
5675 | (base32 | |
5676 | "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw")))) | |
5677 | (build-system python-build-system) | |
328bb95d | 5678 | (native-inputs |
f3b98f4f | 5679 | `(("python-nose" ,python-nose))) |
6d992d07 FB |
5680 | (arguments |
5681 | `(#:phases | |
5682 | (modify-phases %standard-phases | |
5683 | (replace 'check | |
5684 | (lambda _ | |
5685 | (zero? (system* "nosetests"))))))) | |
5686 | (home-page "https://github.com/pexpect/ptyprocess") | |
5687 | (synopsis "Run a subprocess in a pseudo terminal") | |
5688 | (description | |
5689 | "This package provides a Python library used to launch a subprocess in a | |
5690 | pseudo terminal (pty), and interact with both the process and its pty.") | |
3f641af0 | 5691 | (license license:isc))) |
6d992d07 FB |
5692 | |
5693 | (define-public python2-ptyprocess | |
5694 | (package-with-python2 python-ptyprocess)) | |
4aadb1df FB |
5695 | |
5696 | (define-public python-terminado | |
5697 | (package | |
5698 | (name "python-terminado") | |
783fb0a3 | 5699 | (version "0.6") |
4aadb1df FB |
5700 | (source |
5701 | (origin | |
5702 | (method url-fetch) | |
783fb0a3 | 5703 | (uri (pypi-uri "terminado" version)) |
4aadb1df FB |
5704 | (sha256 |
5705 | (base32 | |
783fb0a3 | 5706 | "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) |
4aadb1df FB |
5707 | (build-system python-build-system) |
5708 | (propagated-inputs | |
5709 | `(("python-tornado" ,python-tornado) | |
5710 | ("python-ptyprocess" ,python-ptyprocess))) | |
783fb0a3 EF |
5711 | (native-inputs |
5712 | `(("python-nose" ,python-nose))) | |
4aadb1df FB |
5713 | (arguments |
5714 | `(#:phases | |
5715 | (modify-phases %standard-phases | |
5716 | (replace 'check | |
5717 | (lambda _ | |
5718 | (zero? (system* "nosetests"))))))) | |
5719 | (home-page "https://github.com/takluyver/terminado") | |
5720 | (synopsis "Terminals served to term.js using Tornado websockets") | |
5721 | (description "This package provides a Tornado websocket backend for the | |
5722 | term.js Javascript terminal emulator library.") | |
3f641af0 | 5723 | (license license:bsd-2) |
783fb0a3 | 5724 | (properties `((python2-variant . ,(delay python2-terminado)))))) |
4aadb1df FB |
5725 | |
5726 | (define-public python2-terminado | |
783fb0a3 | 5727 | (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) |
4aadb1df | 5728 | (package (inherit terminado) |
783fb0a3 EF |
5729 | (propagated-inputs |
5730 | `(("python2-backport-ssl-match-hostname" | |
5731 | ,python2-backport-ssl-match-hostname) | |
00e10c6e | 5732 | ,@(package-propagated-inputs terminado)))))) |
5faa5ce4 | 5733 | |
d582eaac SB |
5734 | (define-public python-fonttools |
5735 | (package | |
5736 | (name "python-fonttools") | |
5737 | (version "2.5") | |
5738 | (source (origin | |
5739 | (method url-fetch) | |
5740 | (uri (string-append | |
5741 | "https://pypi.python.org/packages/source/F/FontTools/" | |
5742 | "fonttools-" version ".tar.gz")) | |
5743 | (sha256 | |
5744 | (base32 | |
5745 | "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) | |
5746 | (build-system python-build-system) | |
9e8c6a37 HG |
5747 | (arguments |
5748 | '(#:test-target "check" | |
5749 | #:phases | |
5750 | (modify-phases %standard-phases | |
5751 | (add-after 'unpack 'patch-setuppy | |
5752 | ;; Remove the undocumented "extra_path" argument, which adds an | |
5753 | ;; intervening directories between site-packages and the package | |
5754 | ;; directory. | |
5755 | (lambda _ | |
5756 | (substitute* "setup.py" | |
5757 | (("^[ \t]*extra_path *= *'FontTools',") "")) | |
5758 | #t))))) | |
d582eaac SB |
5759 | (home-page "http://github.com/behdad/fonttools") |
5760 | (synopsis "Tools to manipulate font files") | |
5761 | (description | |
5762 | "FontTools/TTX is a library to manipulate font files from Python. It | |
9e8c6a37 | 5763 | supports reading and writing of TrueType/OpenType fonts, reading and writing |
d582eaac SB |
5764 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package |
5765 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and | |
5766 | from an XML-based format.") | |
3f641af0 DC |
5767 | (license (license:non-copyleft |
5768 | "file://LICENSE.txt" | |
5769 | "See LICENSE.txt in the distribution.")))) | |
d582eaac SB |
5770 | |
5771 | (define-public python2-fonttools | |
5772 | (package-with-python2 python-fonttools)) | |
75710da6 | 5773 | |
5faa5ce4 RW |
5774 | (define-public python-ly |
5775 | (package | |
5776 | (name "python-ly") | |
5135354f | 5777 | (version "0.9.4") |
5faa5ce4 RW |
5778 | (source |
5779 | (origin | |
5780 | (method url-fetch) | |
5135354f RW |
5781 | (uri (string-append "https://pypi.python.org/packages/57/4f/" |
5782 | "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" | |
5783 | "/python-ly-" version ".tar.gz")) | |
5faa5ce4 RW |
5784 | (sha256 |
5785 | (base32 | |
5135354f | 5786 | "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62")))) |
5faa5ce4 | 5787 | (build-system python-build-system) |
5faa5ce4 RW |
5788 | (synopsis "Tool and library for manipulating LilyPond files") |
5789 | (description "This package provides a Python library to parse, manipulate | |
5790 | or create documents in LilyPond format. A command line program ly is also | |
5791 | provided that can be used to do various manipulations with LilyPond files.") | |
5792 | (home-page "https://pypi.python.org/pypi/python-ly") | |
3f641af0 | 5793 | (license license:gpl2+))) |
7e7b27d9 CR |
5794 | |
5795 | (define-public python-appdirs | |
5796 | (package | |
5797 | (name "python-appdirs") | |
5798 | (version "1.4.0") | |
5799 | (source | |
5800 | (origin | |
5801 | (method url-fetch) | |
5802 | (uri (string-append | |
5803 | "https://pypi.python.org/packages/source/a/appdirs/appdirs-" | |
5804 | version | |
5805 | ".tar.gz")) | |
5806 | (sha256 | |
5807 | (base32 | |
5808 | "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg")))) | |
5809 | (build-system python-build-system) | |
7e7b27d9 CR |
5810 | (home-page "http://github.com/ActiveState/appdirs") |
5811 | (synopsis | |
5812 | "Determine platform-specific dirs, e.g. a \"user data dir\"") | |
5813 | (description | |
5814 | "This module provides a portable way of finding out where user data | |
5815 | should be stored on various operating systems.") | |
5816 | (license license:expat))) | |
5817 | ||
5818 | (define-public python2-appdirs | |
5819 | (package-with-python2 python-appdirs)) | |
89b2e0b0 LF |
5820 | |
5821 | (define-public python-llfuse | |
5822 | (package | |
5823 | (name "python-llfuse") | |
e36ace36 | 5824 | (version "1.1.1") |
89b2e0b0 LF |
5825 | (source (origin |
5826 | (method url-fetch) | |
5827 | (uri (string-append | |
5828 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
5829 | "llfuse-" version ".tar.bz2")) | |
5830 | (sha256 | |
5831 | (base32 | |
e36ace36 | 5832 | "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v")))) |
89b2e0b0 LF |
5833 | (build-system python-build-system) |
5834 | (inputs | |
5835 | `(("fuse" ,fuse) | |
5836 | ("attr" ,attr))) | |
5837 | (native-inputs | |
f3b98f4f | 5838 | `(("pkg-config" ,pkg-config))) |
89b2e0b0 LF |
5839 | (synopsis "Python bindings for FUSE") |
5840 | (description | |
5841 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") | |
5842 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") | |
3f641af0 | 5843 | (license license:lgpl2.0+) |
cd0569c4 | 5844 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
89b2e0b0 LF |
5845 | |
5846 | (define-public python2-llfuse | |
cd0569c4 LF |
5847 | (package (inherit (package-with-python2 |
5848 | (strip-python2-variant python-llfuse))) | |
5849 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) | |
5850 | ||
5851 | ;; For attic-0.16 | |
5852 | (define-public python-llfuse-0.41 | |
5853 | (package (inherit python-llfuse) | |
229b3661 | 5854 | (version "0.41.1") |
cd0569c4 LF |
5855 | (source (origin |
5856 | (method url-fetch) | |
5857 | (uri (string-append | |
5858 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
5859 | "llfuse-" version ".tar.bz2")) | |
5860 | (sha256 | |
5861 | (base32 | |
229b3661 | 5862 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
cd0569c4 LF |
5863 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
5864 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. | |
3f641af0 | 5865 | (license (list license:expat license:lgpl2.0+)))) |
641c9871 LF |
5866 | |
5867 | (define-public python-msgpack | |
5868 | (package | |
5869 | (name "python-msgpack") | |
aed625bd | 5870 | (version "0.4.8") |
641c9871 LF |
5871 | (source (origin |
5872 | (method url-fetch) | |
ae831df4 | 5873 | (uri (pypi-uri "msgpack-python" version)) |
641c9871 LF |
5874 | (sha256 |
5875 | (base32 | |
aed625bd | 5876 | "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs")))) |
641c9871 | 5877 | (build-system python-build-system) |
641c9871 LF |
5878 | (synopsis "MessagePack (de)serializer") |
5879 | (description "MessagePack is a fast, compact binary serialization format, | |
5880 | suitable for similar data to JSON. This package provides CPython bindings for | |
5881 | reading and writing MessagePack data.") | |
5882 | (home-page "https://pypi.python.org/pypi/msgpack-python/") | |
f210e944 | 5883 | (license license:asl2.0))) |
bd74be7b LF |
5884 | |
5885 | (define-public python2-msgpack | |
f210e944 | 5886 | (package-with-python2 python-msgpack)) |
641c9871 | 5887 | |
6e5e39f4 CR |
5888 | (define-public python-netaddr |
5889 | (package | |
5890 | (name "python-netaddr") | |
5891 | (version "0.7.18") | |
5892 | (source | |
5893 | (origin | |
5894 | (method url-fetch) | |
5895 | (uri (string-append | |
5896 | "https://pypi.python.org/packages/source/n/netaddr/netaddr-" | |
5897 | version | |
5898 | ".tar.gz")) | |
5899 | (sha256 | |
5900 | (base32 | |
5901 | "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) | |
5902 | (build-system python-build-system) | |
5903 | (arguments `(#:tests? #f)) ;; No tests. | |
6e5e39f4 CR |
5904 | (home-page "https://github.com/drkjam/netaddr/") |
5905 | (synopsis "Pythonic manipulation of network addresses") | |
5906 | (description | |
5907 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI | |
5908 | and MAC network addresses.") | |
3f641af0 | 5909 | (license license:bsd-3))) |
6e5e39f4 CR |
5910 | |
5911 | (define-public python2-netaddr | |
5912 | (package-with-python2 python-netaddr)) | |
8c692a52 CR |
5913 | |
5914 | (define-public python-wrapt | |
5915 | (package | |
5916 | (name "python-wrapt") | |
5917 | (version "1.10.5") | |
5918 | (source | |
5919 | (origin | |
5920 | (method url-fetch) | |
5921 | (uri (string-append | |
5922 | "https://pypi.python.org/packages/source/w/wrapt/wrapt-" | |
5923 | version | |
5924 | ".tar.gz")) | |
5925 | (sha256 | |
5926 | (base32 | |
5927 | "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) | |
5928 | (build-system python-build-system) | |
5929 | (arguments | |
5930 | ;; Tests are not included in the tarball, they are only available in the | |
5931 | ;; git repository. | |
5932 | `(#:tests? #f)) | |
8c692a52 CR |
5933 | (home-page "https://github.com/GrahamDumpleton/wrapt") |
5934 | (synopsis "Module for decorators, wrappers and monkey patching") | |
5935 | (description | |
5936 | "The aim of the wrapt module is to provide a transparent object proxy for | |
5937 | Python, which can be used as the basis for the construction of function | |
5938 | wrappers and decorator functions.") | |
3f641af0 | 5939 | (license license:bsd-2))) |
8c692a52 CR |
5940 | |
5941 | (define-public python2-wrapt | |
5942 | (package-with-python2 python-wrapt)) | |
b85c85be CR |
5943 | |
5944 | (define-public python-iso8601 | |
5945 | (package | |
5946 | (name "python-iso8601") | |
fe84bc9a | 5947 | (version "0.1.11") |
b85c85be CR |
5948 | (source |
5949 | (origin | |
5950 | (method url-fetch) | |
fe84bc9a | 5951 | (uri (pypi-uri "iso8601" version)) |
b85c85be | 5952 | (sha256 |
fe84bc9a EF |
5953 | (base32 |
5954 | "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8")))) | |
b85c85be | 5955 | (build-system python-build-system) |
b85c85be CR |
5956 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") |
5957 | (synopsis "Module to parse ISO 8601 dates") | |
5958 | (description | |
5959 | "This module parses the most common forms of ISO 8601 date strings (e.g. | |
5960 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") | |
5961 | (license license:expat))) | |
5962 | ||
5963 | (define-public python2-iso8601 | |
5964 | (package-with-python2 python-iso8601)) | |
5e412b63 CR |
5965 | |
5966 | (define-public python-monotonic | |
5967 | (package | |
5968 | (name "python-monotonic") | |
5969 | (version "0.3") | |
5970 | (source | |
5971 | (origin | |
5972 | (method url-fetch) | |
5973 | (uri (string-append | |
5974 | "https://pypi.python.org/packages/source/m/monotonic/monotonic-" | |
5975 | version | |
5976 | ".tar.gz")) | |
5977 | (sha256 | |
5978 | (base32 | |
5979 | "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) | |
5980 | (build-system python-build-system) | |
5e412b63 CR |
5981 | (home-page "https://github.com/atdt/monotonic") |
5982 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") | |
5983 | (description | |
5984 | "This module provides a monotonic() function which returns the value (in | |
5985 | fractional seconds) of a clock which never goes backwards.") | |
3f641af0 | 5986 | (license license:asl2.0))) |
5e412b63 CR |
5987 | |
5988 | (define-public python2-monotonic | |
5989 | (package-with-python2 python-monotonic)) | |
de34afac CR |
5990 | |
5991 | (define-public python-webob | |
5992 | (package | |
5993 | (name "python-webob") | |
b8834c21 | 5994 | (version "1.5.1") |
de34afac CR |
5995 | (source |
5996 | (origin | |
5997 | (method url-fetch) | |
b8834c21 | 5998 | (uri (pypi-uri "WebOb" version)) |
de34afac CR |
5999 | (sha256 |
6000 | (base32 | |
b8834c21 | 6001 | "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) |
de34afac | 6002 | (build-system python-build-system) |
328bb95d | 6003 | (native-inputs |
f3b98f4f | 6004 | `(("python-nose" ,python-nose))) |
de34afac CR |
6005 | (home-page "http://webob.org/") |
6006 | (synopsis "WSGI request and response object") | |
6007 | (description | |
6008 | "WebOb provides wrappers around the WSGI request environment, and an | |
6009 | object to help create WSGI responses.") | |
6010 | (license license:expat))) | |
6011 | ||
6012 | (define-public python2-webob | |
6013 | (package-with-python2 python-webob)) | |
350ba0a3 | 6014 | |
02a8a187 BW |
6015 | (define-public python-xlrd |
6016 | (package | |
6017 | (name "python-xlrd") | |
c2ad4d70 | 6018 | (version "1.0.0") |
02a8a187 BW |
6019 | (source (origin |
6020 | (method url-fetch) | |
e775f48e | 6021 | (uri (pypi-uri "xlrd" version)) |
02a8a187 BW |
6022 | (sha256 |
6023 | (base32 | |
c2ad4d70 | 6024 | "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g")))) |
02a8a187 BW |
6025 | (build-system python-build-system) |
6026 | (arguments | |
6027 | `(#:phases | |
6028 | (modify-phases %standard-phases | |
c2ad4d70 | 6029 | ;; Current test in setup.py does not work as of 1.0.0, so use nose to |
02a8a187 BW |
6030 | ;; run tests instead for now. |
6031 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
f3b98f4f | 6032 | (native-inputs `(("python-nose" ,python-nose))) |
02a8a187 BW |
6033 | (home-page "http://www.python-excel.org/") |
6034 | (synopsis "Library for extracting data from Excel files") | |
6035 | (description "This packages provides a library to extract data from | |
c598e35c | 6036 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
02a8a187 BW |
6037 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
6038 | Unicode-aware. It is not intended as an end-user tool.") | |
3f641af0 | 6039 | (license license:bsd-3))) |
02a8a187 BW |
6040 | |
6041 | (define-public python2-xlrd | |
6042 | (package-with-python2 python-xlrd)) | |
6043 | ||
350ba0a3 CR |
6044 | (define-public python-prettytable |
6045 | (package | |
6046 | (name "python-prettytable") | |
6047 | (version "0.7.2") | |
6048 | (source | |
6049 | (origin | |
6050 | (method url-fetch) | |
6051 | (uri (string-append | |
6052 | "https://pypi.python.org/packages/source/P/PrettyTable/" | |
6053 | "prettytable-" version ".tar.bz2")) | |
6054 | (sha256 | |
6055 | (base32 | |
6056 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) | |
6057 | (build-system python-build-system) | |
350ba0a3 CR |
6058 | (home-page "http://code.google.com/p/prettytable/") |
6059 | (synopsis "Display tabular data in an ASCII table format") | |
6060 | (description | |
6061 | "A library designed to represent tabular data in visually appealing ASCII | |
6062 | tables. PrettyTable allows for selection of which columns are to be printed, | |
6063 | independent alignment of columns (left or right justified or centred) and | |
6064 | printing of sub-tables by specifying a row range.") | |
3f641af0 | 6065 | (license license:bsd-3))) |
350ba0a3 CR |
6066 | |
6067 | (define-public python2-prettytable | |
6068 | (package-with-python2 python-prettytable)) | |
7a8ac75a | 6069 | |
9f8ee3fe RW |
6070 | (define-public python-tables |
6071 | (package | |
6072 | (name "python-tables") | |
6073 | (version "3.2.2") | |
6074 | (source | |
6075 | (origin | |
6076 | (method url-fetch) | |
6077 | (uri (pypi-uri "tables" version)) | |
6078 | (sha256 | |
6079 | (base32 | |
6080 | "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m")))) | |
6081 | (build-system python-build-system) | |
6082 | (arguments | |
6083 | `(;; FIXME: python-build-system does not pass configure-flags to "build" | |
6084 | ;; or "check", so we must override the build and check phases. | |
6085 | #:phases | |
6086 | (modify-phases %standard-phases | |
6087 | (add-after 'unpack 'use-gcc | |
6088 | (lambda _ | |
6089 | (substitute* "setup.py" | |
6090 | (("compiler = new_compiler\\(\\)" line) | |
6091 | (string-append line | |
6092 | "\ncompiler.set_executables(compiler='gcc'," | |
6093 | "compiler_so='gcc'," | |
6094 | "linker_exe='gcc'," | |
6095 | "linker_so='gcc -shared')"))) | |
6096 | #t)) | |
6097 | (replace 'build | |
6098 | (lambda* (#:key inputs #:allow-other-keys) | |
6099 | (zero? (system* "python" "setup.py" "build" | |
6100 | (string-append "--hdf5=" | |
6101 | (assoc-ref inputs "hdf5")))))) | |
6102 | (replace 'check | |
6103 | (lambda* (#:key inputs #:allow-other-keys) | |
6104 | (zero? (system* "python" "setup.py" "check" | |
6105 | (string-append "--hdf5=" | |
6106 | (assoc-ref inputs "hdf5"))))))))) | |
6107 | (propagated-inputs | |
6108 | `(("python-numexpr" ,python-numexpr) | |
6109 | ("python-numpy" ,python-numpy))) | |
6110 | (native-inputs | |
f3b98f4f | 6111 | `(("python-cython" ,python-cython) |
9f8ee3fe RW |
6112 | ("pkg-config" ,pkg-config))) |
6113 | (inputs | |
6114 | `(("hdf5" ,hdf5) | |
6115 | ("bzip2" ,bzip2) | |
6116 | ("zlib" ,zlib))) | |
6117 | (home-page "http://www.pytables.org/") | |
6118 | (synopsis "Hierarchical datasets for Python") | |
6119 | (description "PyTables is a package for managing hierarchical datasets and | |
6120 | designed to efficently cope with extremely large amounts of data.") | |
3f641af0 | 6121 | (license license:bsd-3))) |
9f8ee3fe RW |
6122 | |
6123 | (define-public python2-tables | |
6124 | (package-with-python2 python-tables)) | |
6125 | ||
7a8ac75a RW |
6126 | (define-public python-pyasn1 |
6127 | (package | |
6128 | (name "python-pyasn1") | |
caa0edb3 | 6129 | (version "0.1.9") |
7a8ac75a RW |
6130 | (source |
6131 | (origin | |
6132 | (method url-fetch) | |
caa0edb3 | 6133 | (uri (pypi-uri "pyasn1" version)) |
7a8ac75a RW |
6134 | (sha256 |
6135 | (base32 | |
caa0edb3 | 6136 | "0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45")))) |
7a8ac75a RW |
6137 | (build-system python-build-system) |
6138 | (home-page "http://pyasn1.sourceforge.net/") | |
6139 | (synopsis "ASN.1 types and codecs") | |
6140 | (description | |
6141 | "This is an implementation of ASN.1 types and codecs in Python. It is | |
6142 | suitable for a wide range of protocols based on the ASN.1 specification.") | |
3f641af0 | 6143 | (license license:bsd-2))) |
7a8ac75a RW |
6144 | |
6145 | (define-public python2-pyasn1 | |
6146 | (package-with-python2 python-pyasn1)) | |
9a49a535 | 6147 | |
5988c299 EF |
6148 | (define-public python-pyasn1-modules |
6149 | (package | |
6150 | (name "python-pyasn1-modules") | |
6151 | (version "0.0.8") | |
6152 | (source | |
6153 | (origin | |
6154 | (method url-fetch) | |
6155 | (uri (pypi-uri "pyasn1-modules" version)) | |
6156 | (sha256 | |
6157 | (base32 | |
6158 | "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) | |
6159 | (build-system python-build-system) | |
5988c299 EF |
6160 | (propagated-inputs |
6161 | `(("python-pyasn1" ,python-pyasn1))) | |
6162 | (home-page "http://sourceforge.net/projects/pyasn1/") | |
6163 | (synopsis "ASN.1 codec implementations") | |
6164 | (description | |
6165 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and | |
6166 | implementations of ASN.1-based codecs and protocols.") | |
3f641af0 | 6167 | (license license:bsd-3))) |
5988c299 EF |
6168 | |
6169 | (define-public python2-pyasn1-modules | |
6170 | (package-with-python2 python-pyasn1-modules)) | |
6171 | ||
520af157 | 6172 | (define-public python-ipaddress |
9a49a535 | 6173 | (package |
520af157 DC |
6174 | (name "python-ipaddress") |
6175 | (version "1.0.16") | |
6176 | (source (origin | |
6177 | (method url-fetch) | |
6178 | (uri (pypi-uri "ipaddress" version)) | |
6179 | (sha256 | |
6180 | (base32 | |
6181 | "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas")))) | |
9a49a535 | 6182 | (build-system python-build-system) |
9a49a535 RW |
6183 | (home-page "https://github.com/phihag/ipaddress") |
6184 | (synopsis "IP address manipulation library") | |
6185 | (description | |
520af157 DC |
6186 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
6187 | in Python. This library is used to create, poke at, and manipulate IPv4 and | |
6188 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress | |
6189 | module to older versions of Python.") | |
f210e944 | 6190 | (license license:psfl))) |
520af157 DC |
6191 | |
6192 | (define-public python2-ipaddress | |
f210e944 | 6193 | (package-with-python2 python-ipaddress)) |
3f00e078 | 6194 | |
4a238186 HG |
6195 | (define-public python2-ipaddr |
6196 | (package | |
6197 | (name "python2-ipaddr") | |
6198 | (version "2.1.11") | |
6199 | (source | |
6200 | (origin | |
6201 | (method url-fetch) | |
6202 | (uri (pypi-uri "ipaddr" version)) | |
6203 | (sha256 | |
6204 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) | |
6205 | (build-system python-build-system) | |
6206 | (arguments | |
6207 | `(#:python ,python-2 ;version 2 only | |
6208 | #:phases | |
6209 | (modify-phases %standard-phases | |
6210 | (replace 'check | |
6211 | (lambda* _ | |
6212 | (zero? (system* "python" "ipaddr_test.py"))))))) | |
6213 | (home-page "https://github.com/google/ipaddr-py") | |
6214 | (synopsis "IP address manipulation library") | |
6215 | (description | |
6216 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and | |
6217 | IPv6 addresses and networks. | |
6218 | ||
6219 | For new implementations you may prefer to use the standard module | |
6220 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older | |
6221 | versions of Python.") | |
3f641af0 | 6222 | (license license:asl2.0))) |
4a238186 | 6223 | |
3f00e078 RW |
6224 | (define-public python-idna |
6225 | (package | |
6226 | (name "python-idna") | |
6227 | (version "2.0") | |
6228 | (source | |
6229 | (origin | |
6230 | (method url-fetch) | |
6231 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
6232 | "idna/idna-" version ".tar.gz")) | |
6233 | (sha256 | |
6234 | (base32 | |
6235 | "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n")))) | |
6236 | (build-system python-build-system) | |
3f00e078 RW |
6237 | (home-page "https://github.com/kjd/idna") |
6238 | (synopsis "Internationalized domain names in applications") | |
6239 | (description | |
6240 | "This is a library to support the Internationalised Domain Names in | |
6241 | Applications (IDNA) protocol as specified in RFC 5891. This version of the | |
6242 | protocol is often referred to as “IDNA2008” and can produce different results | |
6243 | from the earlier standard from 2003. The library is also intended to act as a | |
6244 | suitable drop-in replacement for the “encodings.idna” module that comes with | |
6245 | the Python standard library but currently only supports the older 2003 | |
6246 | specification.") | |
3f641af0 | 6247 | (license license:bsd-4))) |
3f00e078 RW |
6248 | |
6249 | (define-public python2-idna | |
6250 | (package-with-python2 python-idna)) | |
36ebf972 RW |
6251 | |
6252 | (define-public python-pretend | |
6253 | (package | |
6254 | (name "python-pretend") | |
6255 | (version "1.0.8") | |
6256 | (source | |
6257 | (origin | |
6258 | (method url-fetch) | |
6259 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
6260 | "pretend/pretend-" version ".tar.gz")) | |
6261 | (sha256 | |
6262 | (base32 | |
6263 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) | |
6264 | (build-system python-build-system) | |
36ebf972 RW |
6265 | (home-page "https://github.com/alex/pretend") |
6266 | (synopsis "Library for stubbing in Python") | |
6267 | (description | |
6268 | "Pretend is a library to make stubbing with Python easier. Stubbing is a | |
6269 | technique for writing tests. You may hear the term mixed up with mocks, | |
6270 | fakes, or doubles. Basically, a stub is an object that returns pre-canned | |
6271 | responses, rather than doing any computation.") | |
3f641af0 | 6272 | (license license:bsd-3))) |
36ebf972 RW |
6273 | |
6274 | (define-public python2-pretend | |
6275 | (package-with-python2 python-pretend)) | |
aa759a51 RW |
6276 | |
6277 | (define-public python-cryptography-vectors | |
6278 | (package | |
6279 | (name "python-cryptography-vectors") | |
912dcbad | 6280 | (version "1.5.3") |
aa759a51 RW |
6281 | (source |
6282 | (origin | |
6283 | (method url-fetch) | |
9c509ca9 | 6284 | (uri (pypi-uri "cryptography_vectors" version)) |
aa759a51 RW |
6285 | (sha256 |
6286 | (base32 | |
912dcbad | 6287 | "1bnd1bricyhxa27rhr0ljk0kacxzvysd3ar2j2hlv13a2k6zw4z5")))) |
aa759a51 | 6288 | (build-system python-build-system) |
aa759a51 | 6289 | (home-page "https://github.com/pyca/cryptography") |
66e07664 | 6290 | (synopsis "Test vectors for the cryptography package") |
aa759a51 RW |
6291 | (description |
6292 | "This package contains test vectors for the cryptography package.") | |
6293 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 6294 | (license (list license:bsd-3 license:asl2.0)))) |
aa759a51 RW |
6295 | |
6296 | (define-public python2-cryptography-vectors | |
6297 | (package-with-python2 python-cryptography-vectors)) | |
88b47cb0 RW |
6298 | |
6299 | (define-public python-cryptography | |
6300 | (package | |
6301 | (name "python-cryptography") | |
912dcbad | 6302 | (version "1.5.3") |
88b47cb0 RW |
6303 | (source |
6304 | (origin | |
6305 | (method url-fetch) | |
9c509ca9 | 6306 | (uri (pypi-uri "cryptography" version)) |
88b47cb0 RW |
6307 | (sha256 |
6308 | (base32 | |
912dcbad | 6309 | "1raanvkdfw5ai56ymlij6ghc4k126fs7jx948ig7yn4vj6ndv0ng")))) |
88b47cb0 | 6310 | (build-system python-build-system) |
470613f9 LF |
6311 | (arguments |
6312 | `(#:phases | |
6313 | (modify-phases %standard-phases | |
6314 | (add-before 'check 'disable-failing-test | |
6315 | (lambda _ | |
6316 | ;; This test is known to fail with OpenSSL >= 1.0.2i and older | |
6317 | ;; versions of python-cryptography: | |
6318 | ;; https://github.com/pyca/cryptography/issues/3196 | |
6319 | ;; TODO: Try re-enabling the test when upgrading | |
6320 | ;; python-cryptography. | |
6321 | (substitute* "tests/hazmat/backends/test_openssl.py" | |
6322 | (("def test_numeric_string_x509_name_entry") | |
6323 | "@pytest.mark.xfail\n def test_numeric_string_x509_name_entry")) | |
6324 | #t))))) | |
88b47cb0 RW |
6325 | (inputs |
6326 | `(("openssl" ,openssl))) | |
6327 | (propagated-inputs | |
6328 | `(("python-cffi" ,python-cffi) | |
6329 | ("python-six" ,python-six) | |
6330 | ("python-pyasn1" ,python-pyasn1) | |
88b47cb0 RW |
6331 | ("python-idna" ,python-idna) |
6332 | ("python-iso8601" ,python-iso8601))) | |
6333 | (native-inputs | |
6334 | `(("python-cryptography-vectors" ,python-cryptography-vectors) | |
ce6c13ee | 6335 | ("python-hypothesis" ,python-hypothesis) |
88b47cb0 | 6336 | ("python-pretend" ,python-pretend) |
ce6c13ee EF |
6337 | ("python-pyasn1" ,python-pyasn1) |
6338 | ("python-pyasn1-modules" ,python-pyasn1-modules) | |
912dcbad MB |
6339 | ("python-pytz" ,python-pytz) |
6340 | ("python-pytest" ,python-pytest-2.9.2))) | |
88b47cb0 RW |
6341 | (home-page "https://github.com/pyca/cryptography") |
6342 | (synopsis "Cryptographic recipes and primitives for Python") | |
6343 | (description | |
6344 | "cryptography is a package which provides cryptographic recipes and | |
6345 | primitives to Python developers. It aims to be the “cryptographic standard | |
6346 | library” for Python. The package includes both high level recipes, and low | |
6347 | level interfaces to common cryptographic algorithms such as symmetric ciphers, | |
6348 | message digests and key derivation functions.") | |
6349 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 6350 | (license (list license:bsd-3 license:asl2.0)) |
519e2f4f | 6351 | (properties `((python2-variant . ,(delay python2-cryptography)))))) |
88b47cb0 RW |
6352 | |
6353 | (define-public python2-cryptography | |
519e2f4f LF |
6354 | (let ((crypto (package-with-python2 |
6355 | (strip-python2-variant python-cryptography)))) | |
88b47cb0 RW |
6356 | (package (inherit crypto) |
6357 | (propagated-inputs | |
6358 | `(("python2-ipaddress" ,python2-ipaddress) | |
ce6c13ee EF |
6359 | ("python2-backport-ssl-match-hostname" |
6360 | ,python2-backport-ssl-match-hostname) | |
68f1cdec | 6361 | ("python2-enum34" ,python2-enum34) |
88b47cb0 | 6362 | ,@(package-propagated-inputs crypto)))))) |
5af999b8 RW |
6363 | |
6364 | (define-public python-pyopenssl | |
6365 | (package | |
6366 | (name "python-pyopenssl") | |
eb68d268 | 6367 | (version "16.1.0") |
5af999b8 RW |
6368 | (source |
6369 | (origin | |
6370 | (method url-fetch) | |
eb68d268 | 6371 | (uri (pypi-uri "pyOpenSSL" version)) |
5af999b8 RW |
6372 | (sha256 |
6373 | (base32 | |
eb68d268 | 6374 | "0prm06zz7hl6bk5s2lqzw25lq6smayfv2fgiliw2rbqxlyiavxw8")))) |
5af999b8 | 6375 | (build-system python-build-system) |
5af999b8 RW |
6376 | (propagated-inputs |
6377 | `(("python-cryptography" ,python-cryptography) | |
6378 | ("python-six" ,python-six))) | |
6379 | (inputs | |
6380 | `(("openssl" ,openssl))) | |
5af999b8 RW |
6381 | (home-page "https://github.com/pyca/pyopenssl") |
6382 | (synopsis "Python wrapper module around the OpenSSL library") | |
6383 | (description | |
6384 | "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL | |
6385 | library.") | |
3f641af0 | 6386 | (license license:asl2.0))) |
5af999b8 RW |
6387 | |
6388 | (define-public python2-pyopenssl | |
519e2f4f | 6389 | (package-with-python2 python-pyopenssl)) |
643725a1 CR |
6390 | |
6391 | (define-public python-pip | |
6392 | (package | |
6393 | (name "python-pip") | |
6fb54e3b | 6394 | (version "8.0.2") |
643725a1 CR |
6395 | (source |
6396 | (origin | |
6397 | (method url-fetch) | |
6fb54e3b | 6398 | (uri (pypi-uri "pip" version)) |
643725a1 CR |
6399 | (sha256 |
6400 | (base32 | |
6fb54e3b | 6401 | "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26")))) |
643725a1 CR |
6402 | (build-system python-build-system) |
6403 | (inputs | |
f3b98f4f | 6404 | `(("python-virtualenv" ,python-virtualenv) |
643725a1 CR |
6405 | ;; Tests |
6406 | ("python-mock" ,python-mock) | |
6407 | ("python-pytest" ,python-pytest) | |
6408 | ("python-scripttest" ,python-scripttest))) | |
6409 | (home-page "https://pip.pypa.io/") | |
6410 | (synopsis | |
6411 | "Package manager for Python software") | |
6412 | (description | |
6413 | "Pip is a package manager for Python software, that finds packages on the | |
6414 | Python Package Index (PyPI).") | |
6415 | (license license:expat))) | |
6416 | ||
6417 | (define-public python2-pip | |
6418 | (package-with-python2 python-pip)) | |
d8c4998f LC |
6419 | |
6420 | (define-public python-tlsh | |
6421 | (package | |
6422 | (name "python-tlsh") | |
99b00dc7 | 6423 | (version "3.4.4") |
d8c4998f LC |
6424 | (home-page "https://github.com/trendmicro/tlsh") |
6425 | (source (origin | |
99b00dc7 EF |
6426 | (method url-fetch) |
6427 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" | |
6428 | version ".tar.gz")) | |
d8c4998f LC |
6429 | (sha256 |
6430 | (base32 | |
99b00dc7 EF |
6431 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
6432 | (file-name (string-append name "-" version ".tar.gz")))) | |
d8c4998f LC |
6433 | (build-system cmake-build-system) |
6434 | (arguments | |
6435 | '(#:out-of-source? #f | |
6436 | #:phases (modify-phases %standard-phases | |
6437 | (replace | |
6438 | 'install | |
6439 | (lambda* (#:key outputs #:allow-other-keys) | |
6440 | ;; Build and install the Python bindings. The underlying | |
6441 | ;; C++ library is apparently not meant to be installed. | |
6442 | (let ((out (assoc-ref outputs "out"))) | |
6443 | (with-directory-excursion "py_ext" | |
6444 | (and (system* "python" "setup.py" "build") | |
6445 | (system* "python" "setup.py" "install" | |
6446 | (string-append "--prefix=" out)))))))))) | |
6447 | (inputs `(("python" ,python-wrapper))) ;for the bindings | |
6448 | (synopsis "Fuzzy matching library for Python") | |
6449 | (description | |
6450 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. | |
6451 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash | |
6452 | value which can be used for similarity comparisons. Similar objects have | |
6453 | similar hash values, which allows for the detection of similar objects by | |
6454 | comparing their hash values. The byte stream should have a sufficient amount | |
6455 | of complexity; for example, a byte stream of identical bytes will not generate | |
6456 | a hash value.") | |
3f641af0 | 6457 | (license license:asl2.0))) |
d8c4998f LC |
6458 | |
6459 | (define-public python2-tlsh | |
6460 | (package | |
6461 | (inherit python-tlsh) | |
6462 | (name "python2-tlsh") | |
6463 | (inputs `(("python" ,python-2))))) | |
d96034ed | 6464 | |
67f66812 BW |
6465 | (define-public python-termcolor |
6466 | (package | |
6467 | (name "python-termcolor") | |
6468 | (version "1.1.0") | |
6469 | (source | |
6470 | (origin | |
6471 | (method url-fetch) | |
6472 | (uri (pypi-uri "python-termcolor" version)) | |
6473 | (sha256 | |
6474 | (base32 | |
6475 | "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) | |
6476 | (build-system python-build-system) | |
6477 | (arguments | |
6478 | ;; There are no tests. | |
6479 | `(#:tests? #f)) | |
6480 | (home-page "http://pypi.python.org/pypi/termcolor") | |
6481 | (synopsis "ANSII Color formatting for terminal output") | |
6482 | (description | |
6483 | "This package provides ANSII Color formatting for output in terminals.") | |
6484 | (license license:expat))) | |
6485 | ||
6486 | (define-public python2-termcolor | |
6487 | (package-with-python2 python-termcolor)) | |
6488 | ||
d96034ed LC |
6489 | (define-public python-libarchive-c |
6490 | (package | |
6491 | (name "python-libarchive-c") | |
03fd001c | 6492 | (version "2.2") |
d96034ed LC |
6493 | (source (origin |
6494 | (method url-fetch) | |
03fd001c | 6495 | (uri (pypi-uri "libarchive-c" version)) |
d96034ed LC |
6496 | (sha256 |
6497 | (base32 | |
03fd001c | 6498 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
d96034ed LC |
6499 | (build-system python-build-system) |
6500 | (arguments | |
6501 | '(#:phases (modify-phases %standard-phases | |
6502 | (add-before | |
6503 | 'build 'reference-libarchive | |
6504 | (lambda* (#:key inputs #:allow-other-keys) | |
6505 | ;; Retain the absolute file name of libarchive.so. | |
6506 | (let ((libarchive (assoc-ref inputs "libarchive"))) | |
6507 | (substitute* "libarchive/ffi.py" | |
6508 | (("find_library\\('archive'\\)") | |
6509 | (string-append "'" libarchive | |
b41a05ce | 6510 | "/lib/libarchive.so'"))))))))) |
d96034ed | 6511 | (inputs |
f3b98f4f | 6512 | `(("libarchive" ,libarchive))) |
d96034ed LC |
6513 | (home-page "https://github.com/Changaco/python-libarchive-c") |
6514 | (synopsis "Python interface to libarchive") | |
6515 | (description | |
6516 | "This package provides Python bindings to libarchive, a C library to | |
6517 | access possibly compressed archives in many different formats. It uses | |
6518 | Python's @code{ctypes} foreign function interface (FFI).") | |
3f641af0 | 6519 | (license license:lgpl2.0+))) |
d96034ed LC |
6520 | |
6521 | (define-public python2-libarchive-c | |
6522 | (package-with-python2 python-libarchive-c)) | |
5e1c9367 LC |
6523 | |
6524 | (define-public python-file | |
6525 | (package | |
6526 | (inherit file) | |
6527 | (name "python-file") | |
7ffa5d4a LF |
6528 | (source (origin |
6529 | (inherit (package-source file)) | |
6530 | ;; This patch should not be applied to python2-file. | |
6531 | (patches (search-patches "python-file-double-encoding-bug.patch")))) | |
5e1c9367 LC |
6532 | (build-system python-build-system) |
6533 | (arguments | |
6534 | '(#:tests? #f ;no tests | |
00bf74be | 6535 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
5e1c9367 LC |
6536 | #:phases (modify-phases %standard-phases |
6537 | (add-before 'build 'change-directory | |
6538 | (lambda _ | |
6539 | (chdir "python") | |
6540 | #t)) | |
6541 | (add-before 'build 'set-library-file-name | |
6542 | (lambda* (#:key inputs #:allow-other-keys) | |
6543 | (let ((file (assoc-ref inputs "file"))) | |
6544 | (substitute* "magic.py" | |
6545 | (("find_library\\('magic'\\)") | |
6546 | (string-append "'" file "/lib/libmagic.so'"))) | |
6547 | #t)))))) | |
6548 | (inputs `(("file" ,file))) | |
6549 | (self-native-input? #f) | |
daeeea71 CM |
6550 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
6551 | this module and the python-magic module both provide a \"magic.py\" file; | |
6552 | these two modules, which are different and were developed separately, both | |
f210e944 | 6553 | serve the same purpose: provide Python bindings for libmagic."))) |
5e1c9367 LC |
6554 | |
6555 | (define-public python2-file | |
f210e944 | 6556 | (package-with-python2 python-file)) |
85d4aeac LC |
6557 | |
6558 | (define-public python-debian | |
6559 | (package | |
6560 | (name "python-debian") | |
6561 | (version "0.1.23") | |
6562 | (source | |
6563 | (origin | |
6564 | (method url-fetch) | |
6565 | (uri (string-append | |
6566 | "https://pypi.python.org/packages/source/p/python-debian/python-debian-" | |
6567 | version ".tar.gz")) | |
6568 | (sha256 | |
6569 | (base32 | |
6570 | "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh")))) | |
6571 | (build-system python-build-system) | |
f22efa01 | 6572 | (propagated-inputs |
85d4aeac | 6573 | `(("python-six" ,python-six))) |
85d4aeac LC |
6574 | (home-page "http://packages.debian.org/sid/python-debian") |
6575 | (synopsis "Debian package related modules") | |
6576 | (description | |
5c7bdc9a LC |
6577 | ;; XXX: Use @enumerate instead of @itemize to work around |
6578 | ;; <http://bugs.gnu.org/21772>. | |
85d4aeac LC |
6579 | "This package provides Python modules that abstract many formats of |
6580 | Debian-related files, such as: | |
6581 | ||
5c7bdc9a | 6582 | @enumerate |
85d4aeac LC |
6583 | @item Debtags information; |
6584 | @item @file{debian/changelog} files; | |
6585 | @item packages files, pdiffs; | |
6586 | @item control files of single or multiple RFC822-style paragraphs---e.g. | |
6587 | @file{debian/control}, @file{.changes}, @file{.dsc}; | |
6588 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to | |
6589 | contained files and meta-information. | |
5c7bdc9a | 6590 | @end enumerate\n") |
85d4aeac LC |
6591 | |
6592 | ;; Modules are either GPLv2+ or GPLv3+. | |
3f641af0 | 6593 | (license license:gpl3+))) |
85d4aeac LC |
6594 | |
6595 | (define-public python2-debian | |
6596 | (package-with-python2 python-debian)) | |
816a6538 | 6597 | |
2d321bb2 RW |
6598 | (define-public python-nbformat |
6599 | (package | |
6600 | (name "python-nbformat") | |
6601 | (version "4.1.0") | |
6602 | (source | |
6603 | (origin | |
6604 | (method url-fetch) | |
6605 | (uri (pypi-uri "nbformat" version)) | |
6606 | (sha256 | |
6607 | (base32 | |
6608 | "0mq8iki3d4mnx7wy05phss7x98mds4fqydin8lcagidp1knw1xnv")))) | |
6609 | (build-system python-build-system) | |
6610 | (arguments `(#:tests? #f)) ; no test target | |
6611 | (propagated-inputs | |
6612 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
6613 | ("python-jsonschema" ,python-jsonschema) | |
6614 | ("python-jupyter-core" ,python-jupyter-core) | |
6615 | ("python-traitlets" ,python-traitlets))) | |
2d321bb2 RW |
6616 | (home-page "http://jupyter.org") |
6617 | (synopsis "Jupyter Notebook format") | |
6618 | (description "This package provides the reference implementation of the | |
6619 | Jupyter Notebook format and Python APIs for working with notebooks.") | |
6620 | (license license:bsd-3))) | |
6621 | ||
6622 | (define-public python2-nbformat | |
6623 | (package-with-python2 python-nbformat)) | |
6624 | ||
55436048 RW |
6625 | (define-public python-bleach |
6626 | (package | |
6627 | (name "python-bleach") | |
6628 | (version "1.4.3") | |
6629 | (source | |
6630 | (origin | |
6631 | (method url-fetch) | |
6632 | (uri (pypi-uri "bleach" version)) | |
6633 | (sha256 | |
6634 | (base32 | |
6635 | "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj")))) | |
6636 | (build-system python-build-system) | |
6637 | (propagated-inputs | |
6638 | `(("python-html5lib" ,python-html5lib-0.9) | |
55436048 RW |
6639 | ("python-six" ,python-six))) |
6640 | (native-inputs | |
6641 | `(("python-nose" ,python-nose))) | |
6642 | (home-page "http://github.com/jsocol/bleach") | |
6643 | (synopsis "Whitelist-based HTML-sanitizing tool") | |
6644 | (description "Bleach is an easy whitelist-based HTML-sanitizing tool.") | |
6645 | (license license:asl2.0))) | |
6646 | ||
6647 | (define-public python2-bleach | |
6648 | (package-with-python2 python-bleach)) | |
6649 | ||
60590a3a RW |
6650 | (define-public python-entrypoints |
6651 | (package | |
6652 | (name "python-entrypoints") | |
6653 | (version "0.2.2") | |
6654 | (source | |
6655 | (origin | |
6656 | (method url-fetch) | |
6657 | (uri (string-append "https://github.com/takluyver/entrypoints/archive/" | |
6658 | version ".tar.gz")) | |
6659 | (file-name (string-append name "-" version ".tar.gz")) | |
6660 | (sha256 | |
6661 | (base32 | |
6662 | "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5")))) | |
6663 | (build-system python-build-system) | |
6664 | ;; The package does not come with a setup.py file, so we have to generate | |
6665 | ;; one ourselves. | |
6666 | (arguments | |
6667 | `(#:tests? #f | |
6668 | #:phases | |
6669 | (modify-phases %standard-phases | |
6670 | (add-after 'unpack 'create-setup.py | |
6671 | (lambda _ | |
6672 | (call-with-output-file "setup.py" | |
6673 | (lambda (port) | |
6674 | (format port "\ | |
6675 | from setuptools import setup | |
6676 | setup(name='entrypoints', version='~a', py_modules=['entrypoints']) | |
6677 | " ,version)))))))) | |
6678 | (home-page "https://github.com/takluyver/entrypoints") | |
6679 | (synopsis "Discover and load entry points from installed Python packages") | |
6680 | (description "Entry points are a way for Python packages to advertise | |
6681 | objects with some common interface. The most common examples are | |
6682 | @code{console_scripts} entry points, which define shell commands by | |
6683 | identifying a Python function to run. The @code{entrypoints} module contains | |
6684 | functions to find and load entry points.") | |
6685 | (license license:expat))) | |
6686 | ||
6687 | (define-public python2-entrypoints | |
6688 | (package-with-python2 python-entrypoints)) | |
6689 | ||
c60898a8 RW |
6690 | (define-public python-nbconvert |
6691 | (package | |
6692 | (name "python-nbconvert") | |
6693 | (version "5.0.0b1") | |
6694 | (source | |
6695 | (origin | |
6696 | (method url-fetch) | |
6697 | (uri (pypi-uri "nbconvert" version)) | |
6698 | (sha256 | |
6699 | (base32 | |
6700 | "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp")))) | |
6701 | (build-system python-build-system) | |
6702 | ;; The "bdist_egg" target is disabled by default, causing the installation | |
6703 | ;; to fail. | |
6704 | (arguments `(#:configure-flags (list "bdist_egg"))) | |
6705 | (propagated-inputs | |
6706 | `(("python-bleach" ,python-bleach) | |
6707 | ("python-entrypoints" ,python-entrypoints) | |
6708 | ("python-jinja2" ,python-jinja2) | |
6709 | ("python-jupyter-core" ,python-jupyter-core) | |
6710 | ("python-mistune" ,python-mistune) | |
6711 | ("python-nbformat" ,python-nbformat) | |
6712 | ("python-pygments" ,python-pygments) | |
c60898a8 RW |
6713 | ("python-traitlets" ,python-traitlets))) |
6714 | (home-page "http://jupyter.org") | |
6715 | (synopsis "Converting Jupyter Notebooks") | |
6716 | (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts | |
6717 | notebooks to various other formats via Jinja templates. It allows you to | |
6718 | convert an @code{.ipynb} notebook file into various static formats including: | |
6719 | ||
6720 | @enumerate | |
6721 | @item HTML | |
6722 | @item LaTeX | |
6723 | @item PDF | |
6724 | @item Reveal JS | |
6725 | @item Markdown (md) | |
6726 | @item ReStructured Text (rst) | |
6727 | @item executable script | |
6728 | @end enumerate\n") | |
6729 | (license license:bsd-3))) | |
6730 | ||
6731 | (define-public python2-nbconvert | |
6732 | (package-with-python2 python-nbconvert)) | |
6733 | ||
a0d62280 RW |
6734 | (define-public python-notebook |
6735 | (package | |
6736 | (name "python-notebook") | |
6737 | (version "4.2.3") | |
6738 | (source (origin | |
6739 | (method url-fetch) | |
6740 | (uri (pypi-uri "notebook" version)) | |
6741 | (sha256 | |
6742 | (base32 | |
6743 | "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r")))) | |
6744 | (build-system python-build-system) | |
6745 | (arguments | |
6746 | `(#:phases | |
6747 | (modify-phases %standard-phases | |
6748 | (replace 'check | |
6749 | (lambda _ | |
6750 | ;; HOME must be set for tests | |
6751 | (setenv "HOME" "/tmp") | |
6752 | (zero? (system* "nosetests"))))))) | |
6753 | (propagated-inputs | |
6754 | `(("python-jupyter-core" ,python-jupyter-core) | |
6755 | ("python-nbformat" ,python-nbformat) | |
6756 | ("python-nbconvert" ,python-nbconvert) | |
6757 | ("python-ipython" ,python-ipython))) | |
6758 | (native-inputs | |
6759 | `(("python-nose" ,python-nose) | |
6760 | ("python-sphinx" ,python-sphinx) | |
6761 | ("python-requests" ,python-requests))) | |
6762 | (home-page "http://jupyter.org/") | |
6763 | (synopsis "Web-based notebook environment for interactive computing") | |
6764 | (description | |
6765 | "The Jupyter HTML notebook is a web-based notebook environment for | |
6766 | interactive computing.") | |
6767 | (license license:bsd-3))) | |
6768 | ||
6769 | (define-public python2-notebook | |
6770 | (package-with-python2 python-notebook)) | |
6771 | ||
d55724ed RW |
6772 | (define-public python-widgetsnbextension |
6773 | (package | |
6774 | (name "python-widgetsnbextension") | |
6775 | (version "1.2.6") | |
6776 | (source | |
6777 | (origin | |
6778 | (method url-fetch) | |
6779 | (uri (pypi-uri "widgetsnbextension" version)) | |
6780 | (sha256 | |
6781 | (base32 | |
6782 | "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666")))) | |
6783 | (build-system python-build-system) | |
6784 | (propagated-inputs | |
6785 | `(("python-notebook" ,python-notebook))) | |
6786 | (native-inputs | |
f3b98f4f | 6787 | `(("python-nose" ,python-nose))) |
d55724ed RW |
6788 | (home-page "http://ipython.org") |
6789 | (synopsis "IPython HTML widgets for Jupyter") | |
6790 | (description "This package provides interactive HTML widgets for Jupyter | |
6791 | notebooks.") | |
6792 | (license license:bsd-3))) | |
6793 | ||
6794 | (define-public python2-widgetsnbextension | |
6795 | (package-with-python2 python-widgetsnbextension)) | |
6796 | ||
4fe2e344 RW |
6797 | (define-public python-ipywidgets |
6798 | (package | |
6799 | (name "python-ipywidgets") | |
6800 | (version "5.2.2") | |
6801 | (source | |
6802 | (origin | |
6803 | (method url-fetch) | |
6804 | (uri (pypi-uri "ipywidgets" version)) | |
6805 | (sha256 | |
6806 | (base32 | |
6807 | "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms")))) | |
6808 | (build-system python-build-system) | |
6809 | ;; FIXME: it's not clear how to run the tests. | |
6810 | (arguments `(#:tests? #f)) | |
6811 | (propagated-inputs | |
6812 | `(("python-ipykernel" ,python-ipykernel) | |
6813 | ("python-ipython" ,python-ipython) | |
4fe2e344 RW |
6814 | ("python-traitlets" ,python-traitlets) |
6815 | ("python-widgetsnbextension" ,python-widgetsnbextension))) | |
6816 | (home-page "http://ipython.org") | |
6817 | (synopsis "IPython HTML widgets for Jupyter") | |
6818 | (description "Ipywidgets are interactive HTML widgets for Jupyter | |
6819 | notebooks and the IPython kernel. Notebooks come alive when interactive | |
6820 | widgets are used. Users gain control of their data and can visualize changes | |
6821 | in the data.") | |
6822 | (license license:bsd-3))) | |
6823 | ||
6824 | (define-public python2-ipywidgets | |
6825 | (package-with-python2 python-ipywidgets)) | |
6826 | ||
8ceebf8f RW |
6827 | (define-public python-jupyter-console |
6828 | (package | |
6829 | (name "python-jupyter-console") | |
6830 | (version "5.0.0") | |
6831 | (source | |
6832 | (origin | |
6833 | (method url-fetch) | |
6834 | (uri (pypi-uri "jupyter_console" version)) | |
6835 | (sha256 | |
6836 | (base32 | |
6837 | "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx")))) | |
6838 | (build-system python-build-system) | |
6839 | ;; FIXME: it's not clear how to run the tests. | |
6840 | (arguments `(#:tests? #f)) | |
6841 | (propagated-inputs | |
6842 | `(("python-ipykernel" ,python-ipykernel) | |
6843 | ("python-ipython" ,python-ipython) | |
6844 | ("python-jupyter-client" ,python-jupyter-client) | |
6845 | ("python-prompt-toolkit" ,python-prompt-toolkit) | |
f3b98f4f | 6846 | ("python-pygments" ,python-pygments))) |
8ceebf8f RW |
6847 | (home-page "https://jupyter.org") |
6848 | (synopsis "Jupyter terminal console") | |
6849 | (description "This package provides a terminal-based console frontend for | |
6850 | Jupyter kernels. It also allows for console-based interaction with non-Python | |
6851 | Jupyter kernels such as IJulia and IRKernel.") | |
6852 | (license license:bsd-3))) | |
6853 | ||
6854 | (define-public python2-jupyter-console | |
6855 | (package-with-python2 python-jupyter-console)) | |
6856 | ||
c27ae827 RW |
6857 | (define-public jupyter |
6858 | (package | |
6859 | (name "jupyter") | |
6860 | (version "1.0.0") | |
6861 | (source | |
6862 | (origin | |
6863 | (method url-fetch) | |
6864 | (uri (pypi-uri "jupyter" version)) | |
6865 | (sha256 | |
6866 | (base32 | |
6867 | "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r")))) | |
6868 | (build-system python-build-system) | |
6869 | ;; FIXME: it's not clear how to run the tests. | |
6870 | (arguments `(#:tests? #f)) | |
6871 | (propagated-inputs | |
6872 | `(("python-ipykernel" ,python-ipykernel) | |
6873 | ("python-ipywidgets" ,python-ipywidgets) | |
6874 | ("python-jupyter-console" ,python-jupyter-console) | |
6875 | ("python-nbconvert" ,python-nbconvert) | |
f3b98f4f | 6876 | ("python-notebook" ,python-notebook))) |
c27ae827 RW |
6877 | (home-page "http://jupyter.org") |
6878 | (synopsis "Web application for interactive documents") | |
6879 | (description | |
6880 | "The Jupyter Notebook is a web application that allows you to create and | |
6881 | share documents that contain live code, equations, visualizations and | |
6882 | explanatory text. Uses include: data cleaning and transformation, numerical | |
6883 | simulation, statistical modeling, machine learning and much more.") | |
6884 | (license license:bsd-3))) | |
6885 | ||
816a6538 LC |
6886 | (define-public python-chardet |
6887 | (package | |
6888 | (name "python-chardet") | |
6889 | (version "2.3.0") | |
6890 | (source | |
6891 | (origin | |
6892 | (method url-fetch) | |
6893 | (uri (string-append | |
6894 | "https://pypi.python.org/packages/source/c/chardet/chardet-" | |
6895 | version | |
6896 | ".tar.gz")) | |
6897 | (sha256 | |
6898 | (base32 | |
6899 | "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5")))) | |
6900 | (build-system python-build-system) | |
816a6538 LC |
6901 | (home-page "https://github.com/chardet/chardet") |
6902 | (synopsis "Universal encoding detector for Python 2 and 3") | |
6903 | (description | |
6904 | "This package provides @code{chardet}, a Python module that can | |
6905 | automatically detect a wide range of file encodings.") | |
3f641af0 | 6906 | (license license:lgpl2.1+))) |
816a6538 LC |
6907 | |
6908 | (define-public python2-chardet | |
6909 | (package-with-python2 python-chardet)) | |
2fc5f186 | 6910 | |
1872f1bb KM |
6911 | (define-public python-docopt |
6912 | (package | |
6913 | (name "python-docopt") | |
6914 | (version "0.6.2") | |
6915 | (source | |
6916 | (origin | |
6917 | (method url-fetch) | |
6918 | ;; The release on PyPI does not include tests. | |
6919 | (uri (string-append | |
6920 | "https://github.com/docopt/docopt/archive/" | |
6921 | version ".tar.gz")) | |
6922 | (file-name (string-append name "-" version ".tar.gz")) | |
6923 | (sha256 | |
6924 | (base32 | |
6925 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) | |
6926 | (build-system python-build-system) | |
6927 | (native-inputs | |
f3b98f4f | 6928 | `(("python-pytest" ,python-pytest))) |
1872f1bb KM |
6929 | (arguments |
6930 | `(#:phases (alist-replace | |
6931 | 'check | |
6932 | (lambda _ (zero? (system* "py.test"))) | |
6933 | %standard-phases))) | |
6934 | (home-page "http://docopt.org") | |
6935 | (synopsis "Command-line interface description language for Python") | |
6936 | (description "This library allows the user to define a command-line | |
6937 | interface from a program's help message rather than specifying it | |
6938 | programatically with command-line parsers like @code{getopt} and | |
6939 | @code{argparse}.") | |
6940 | (license license:expat))) | |
6941 | ||
6942 | (define-public python2-docopt | |
6943 | (package-with-python2 python-docopt)) | |
6944 | ||
2fc5f186 LF |
6945 | (define-public python-zope-event |
6946 | (package | |
6947 | (name "python-zope-event") | |
6948 | (version "4.1.0") | |
6949 | (source | |
6950 | (origin | |
6951 | (method url-fetch) | |
6952 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6953 | "/zope.event/zope.event-" version ".tar.gz")) | |
6954 | (sha256 | |
6955 | (base32 | |
6956 | "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) | |
6957 | (build-system python-build-system) | |
2fc5f186 LF |
6958 | (home-page "http://pypi.python.org/pypi/zope.event") |
6959 | (synopsis "Event publishing system for Python") | |
6960 | (description "Zope.event provides an event publishing API, intended for | |
6961 | use by applications which are unaware of any subscribers to their events. It | |
6962 | is a simple event-dispatching system on which more sophisticated event | |
6963 | dispatching systems can be built.") | |
3f641af0 | 6964 | (license license:zpl2.1))) |
2fc5f186 LF |
6965 | |
6966 | (define-public python2-zope-event | |
6967 | (package-with-python2 python-zope-event)) | |
97abe268 LF |
6968 | |
6969 | (define-public python-zope-interface | |
6970 | (package | |
6971 | (name "python-zope-interface") | |
6972 | (version "4.1.3") | |
6973 | (source | |
6974 | (origin | |
6975 | (method url-fetch) | |
6976 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6977 | "/zope.interface/zope.interface-" version ".tar.gz")) | |
6978 | (sha256 | |
6979 | (base32 | |
6980 | "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) | |
6981 | (build-system python-build-system) | |
6982 | (propagated-inputs | |
6983 | `(("python-zope-event" ,python-zope-event))) | |
6984 | (home-page "https://github.com/zopefoundation/zope.interface") | |
6985 | (synopsis "Python implementation of the \"design by contract\" | |
6986 | methodology") | |
6987 | (description "Zope.interface provides an implementation of \"object | |
6988 | interfaces\" for Python. Interfaces are a mechanism for labeling objects as | |
6989 | conforming to a given API or contract.") | |
3f641af0 | 6990 | (license license:zpl2.1))) |
97abe268 LF |
6991 | |
6992 | (define-public python2-zope-interface | |
6993 | (package-with-python2 python-zope-interface)) | |
81f2373c LF |
6994 | |
6995 | (define-public python-zope-exceptions | |
6996 | (package | |
6997 | (name "python-zope-exceptions") | |
6998 | (version "4.0.8") | |
6999 | (source | |
7000 | (origin | |
7001 | (method url-fetch) | |
7002 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7003 | "/zope.exceptions/zope.exceptions-" | |
7004 | version ".tar.gz")) | |
7005 | (sha256 | |
7006 | (base32 | |
7007 | "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) | |
7008 | (build-system python-build-system) | |
7009 | (arguments | |
7010 | '(#:tests? #f)) ; circular dependency with zope.testrunner | |
7011 | (propagated-inputs | |
7012 | `(("python-zope-interface" ,python-zope-interface))) | |
7013 | (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") | |
7014 | (synopsis "Zope exceptions") | |
7015 | (description "Zope.exceptions provides general-purpose exception types | |
7016 | that have uses outside of the Zope framework.") | |
3f641af0 | 7017 | (license license:zpl2.1))) |
81f2373c LF |
7018 | |
7019 | (define-public python2-zope-exceptions | |
7020 | (package-with-python2 python-zope-exceptions)) | |
900e3c0e LF |
7021 | |
7022 | (define-public python-zope-testing | |
7023 | (package | |
7024 | (name "python-zope-testing") | |
7025 | (version "4.5.0") | |
7026 | (source | |
7027 | (origin | |
7028 | (method url-fetch) | |
7029 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7030 | "/zope.testing/zope.testing-" version ".tar.gz")) | |
7031 | (sha256 | |
7032 | (base32 | |
b02f7a21 HG |
7033 | "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")) |
7034 | (modules '((guix build utils))) | |
7035 | (snippet | |
7036 | '(begin | |
7037 | ;; Remove pre-compiled .pyc files backup files from source. | |
7038 | (for-each delete-file (find-files "." "(\\.pyc|~)$")) | |
7039 | #t)))) | |
900e3c0e LF |
7040 | (build-system python-build-system) |
7041 | (native-inputs | |
7042 | `(("python-zope-exceptions" ,python-zope-exceptions))) | |
7043 | (propagated-inputs | |
7044 | `(("python-zope-interface" ,python-zope-interface))) | |
7045 | (home-page "http://pypi.python.org/pypi/zope.testing") | |
7046 | (synopsis "Zope testing helpers") | |
7047 | (description "Zope.testing provides a number of testing utilities for HTML | |
7048 | forms, HTTP servers, regular expressions, and more.") | |
3f641af0 | 7049 | (license license:zpl2.1))) |
900e3c0e LF |
7050 | |
7051 | (define-public python2-zope-testing | |
7052 | (package-with-python2 python-zope-testing)) | |
01614c4f LF |
7053 | |
7054 | (define-public python-zope-testrunner | |
7055 | (package | |
7056 | (name "python-zope-testrunner") | |
7057 | (version "4.4.9") | |
7058 | (source | |
7059 | (origin | |
7060 | (method url-fetch) | |
7061 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7062 | "/zope.testrunner/zope.testrunner-" | |
7063 | version ".zip")) | |
7064 | (sha256 | |
7065 | (base32 | |
7066 | "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) | |
7067 | (build-system python-build-system) | |
7068 | (native-inputs | |
7069 | `(("python-six" ,python-six) | |
e408ffc3 | 7070 | ;("python-zope-interface" ,python-zope-interface) |
01614c4f LF |
7071 | ("python-zope-exceptions" ,python-zope-exceptions) |
7072 | ("python-zope-testing" ,python-zope-testing) | |
7073 | ("unzip" ,unzip))) | |
7074 | (propagated-inputs | |
7075 | `(("python-zope-interface" ,python-zope-interface))) | |
7076 | (home-page "http://pypi.python.org/pypi/zope.testrunner") | |
7077 | (synopsis "Zope testrunner script") | |
7078 | (description "Zope.testrunner provides a script for running Python | |
7079 | tests.") | |
3f641af0 | 7080 | (license license:zpl2.1))) |
01614c4f LF |
7081 | |
7082 | (define-public python2-zope-testrunner | |
7083 | (let ((base (package-with-python2 python-zope-testrunner))) | |
7084 | (package | |
7085 | (inherit base) | |
7086 | (native-inputs | |
7087 | (append (package-native-inputs base) | |
7088 | `(("python2-subunit" ,python2-subunit) | |
7089 | ("python2-mimeparse" ,python2-mimeparse))))))) | |
6a5c710c LF |
7090 | |
7091 | (define-public python-zope-i18nmessageid | |
7092 | (package | |
7093 | (name "python-zope-i18nmessageid") | |
7094 | (version "4.0.3") | |
7095 | (source | |
7096 | (origin | |
7097 | (method url-fetch) | |
7098 | (uri (string-append | |
7099 | "https://pypi.python.org/packages/source/z" | |
7100 | "/zope.i18nmessageid/zope.i18nmessageid-" | |
7101 | version ".tar.gz")) | |
7102 | (sha256 | |
7103 | (base32 | |
7104 | "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) | |
7105 | (build-system python-build-system) | |
6a5c710c LF |
7106 | (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") |
7107 | (synopsis "Message identifiers for internationalization") | |
7108 | (description "Zope.i18nmessageid provides facilities for declaring | |
7109 | internationalized messages within program source text.") | |
3f641af0 | 7110 | (license license:zpl2.1))) |
6a5c710c LF |
7111 | |
7112 | (define-public python2-zope-i18nmessageid | |
7113 | (package-with-python2 python-zope-i18nmessageid)) | |
71fb09f3 LF |
7114 | |
7115 | (define-public python-zope-schema | |
7116 | (package | |
7117 | (name "python-zope-schema") | |
7118 | (version "4.4.2") | |
7119 | (source | |
7120 | (origin | |
7121 | (method url-fetch) | |
7122 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7123 | "/zope.schema/zope.schema-" version ".tar.gz")) | |
7124 | (sha256 | |
7125 | (base32 | |
7126 | "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) | |
7127 | (build-system python-build-system) | |
7128 | (propagated-inputs | |
7129 | `(("python-zope-event" ,python-zope-event) | |
7130 | ("python-zope-interface" ,python-zope-interface))) | |
7131 | (native-inputs | |
47f77210 HG |
7132 | `(("python-zope-testing" ,python-zope-testing) |
7133 | ("python-coverage" ,python-coverage) | |
7134 | ("python-nose" ,python-nose))) | |
71fb09f3 LF |
7135 | (home-page "http://pypi.python.org/pypi/zope.schema") |
7136 | (synopsis "Zope data schemas") | |
7137 | (description "Zope.scheme provides extensions to zope.interface for | |
7138 | defining data schemas.") | |
3f641af0 | 7139 | (license license:zpl2.1))) |
71fb09f3 LF |
7140 | |
7141 | (define-public python2-zope-schema | |
7142 | (package-with-python2 python-zope-schema)) | |
fbac9b17 LF |
7143 | |
7144 | (define-public python-zope-configuration | |
7145 | (package | |
7146 | (name "python-zope-configuration") | |
7147 | (version "4.0.3") | |
7148 | (source (origin | |
7149 | (method url-fetch) | |
7150 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7151 | "/zope.configuration/zope.configuration-" | |
7152 | version ".tar.gz")) | |
7153 | (sha256 | |
7154 | (base32 | |
7155 | "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) | |
7156 | (build-system python-build-system) | |
7157 | (propagated-inputs | |
7158 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
7159 | ("python-zope-schema" ,python-zope-schema))) | |
7160 | (home-page "http://pypi.python.org/pypi/zope.configuration") | |
7161 | (synopsis "Zope Configuration Markup Language") | |
7162 | (description "Zope.configuration implements ZCML, the Zope Configuration | |
7163 | Markup Language.") | |
3f641af0 | 7164 | (license license:zpl2.1))) |
fbac9b17 LF |
7165 | |
7166 | (define-public python2-zope-configuration | |
7167 | (package-with-python2 python-zope-configuration)) | |
2ad52086 LF |
7168 | |
7169 | (define-public python-zope-proxy | |
7170 | (package | |
7171 | (name "python-zope-proxy") | |
7172 | (version "4.1.6") | |
7173 | (source | |
7174 | (origin | |
7175 | (method url-fetch) | |
7176 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7177 | "/zope.proxy/zope.proxy-" version ".tar.gz")) | |
7178 | (sha256 | |
7179 | (base32 | |
7180 | "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) | |
7181 | (build-system python-build-system) | |
7182 | (propagated-inputs | |
7183 | `(("python-zope-interface" ,python-zope-interface))) | |
7184 | (home-page "http://pypi.python.org/pypi/zope.proxy") | |
7185 | (synopsis "Generic, transparent proxies") | |
7186 | (description "Zope.proxy provides generic, transparent proxies for Python. | |
7187 | Proxies are special objects which serve as mostly-transparent wrappers around | |
7188 | another object, intervening in the apparent behavior of the wrapped object | |
7189 | only when necessary to apply the policy (e.g., access checking, location | |
7190 | brokering, etc.) for which the proxy is responsible.") | |
3f641af0 | 7191 | (license license:zpl2.1))) |
2ad52086 LF |
7192 | |
7193 | (define-public python2-zope-proxy | |
7194 | (package-with-python2 python-zope-proxy)) | |
f404b5ea LF |
7195 | |
7196 | (define-public python-zope-location | |
7197 | (package | |
7198 | (name "python-zope-location") | |
7199 | (version "4.0.3") | |
7200 | (source | |
7201 | (origin | |
7202 | (method url-fetch) | |
7203 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7204 | "/zope.location/zope.location-" version ".tar.gz")) | |
7205 | (sha256 | |
7206 | (base32 | |
7207 | "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) | |
7208 | (build-system python-build-system) | |
7209 | (native-inputs | |
7210 | `(("python-zope-proxy" ,python-zope-proxy) | |
7211 | ("python-zope-schema" ,python-zope-schema))) | |
7212 | (home-page "http://pypi.python.org/pypi/zope.location/") | |
7213 | (synopsis "Zope location library") | |
7214 | (description "Zope.location implements the concept of \"locations\" in | |
7215 | Zope3, which are are special objects that have a structural location.") | |
3f641af0 | 7216 | (license license:zpl2.1))) |
f404b5ea LF |
7217 | |
7218 | (define-public python2-zope-location | |
7219 | (package-with-python2 python-zope-location)) | |
d4b77f36 LF |
7220 | |
7221 | (define-public python-zope-security | |
7222 | (package | |
7223 | (name "python-zope-security") | |
7224 | (version "4.0.3") | |
7225 | (source | |
7226 | (origin | |
7227 | (method url-fetch) | |
7228 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7229 | "/zope.security/zope.security-" version ".tar.gz")) | |
7230 | (sha256 | |
7231 | (base32 | |
7232 | "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) | |
7233 | (build-system python-build-system) | |
7234 | (propagated-inputs | |
7235 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
7236 | ("python-zope-component" ,python-zope-component) | |
7237 | ("python-zope-location" ,python-zope-location) | |
7238 | ("python-zope-proxy" ,python-zope-proxy) | |
7239 | ("python-zope-schema" ,python-zope-schema) | |
7240 | ("python-zope-testrunner" ,python-zope-testrunner) | |
7241 | ("python-zope-testing" ,python-zope-testing))) | |
7242 | (home-page "http://pypi.python.org/pypi/zope.security") | |
7243 | (synopsis "Zope security framework") | |
7244 | (description "Zope.security provides a generic mechanism to implement | |
7245 | security policies on Python objects.") | |
3f641af0 | 7246 | (license license:zpl2.1))) |
d4b77f36 LF |
7247 | |
7248 | (define-public python2-zope-security | |
04417662 EF |
7249 | (let ((zope-security (package-with-python2 python-zope-security))) |
7250 | (package (inherit zope-security) | |
7251 | (propagated-inputs | |
7252 | `(("python2-zope-testrunner" ,python2-zope-testrunner) | |
7253 | ,@(alist-delete | |
7254 | "python-zope-testrunner" | |
7255 | (package-propagated-inputs zope-security))))))) | |
a6b61b27 LF |
7256 | |
7257 | (define-public python-zope-component | |
7258 | (package | |
7259 | (name "python-zope-component") | |
7260 | (version "4.2.2") | |
7261 | (source | |
7262 | (origin | |
7263 | (method url-fetch) | |
7264 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7265 | "/zope.component/zope.component-" version ".tar.gz")) | |
7266 | (sha256 | |
7267 | (base32 | |
7268 | "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18")))) | |
7269 | (build-system python-build-system) | |
7270 | (arguments | |
7271 | ;; Skip tests due to circular dependency with python-zope-security. | |
7272 | '(#:tests? #f)) | |
7273 | (native-inputs | |
7274 | `(("python-zope-testing" ,python-zope-testing))) | |
7275 | (propagated-inputs | |
7276 | `(("python-zope-event" ,python-zope-event) | |
7277 | ("python-zope-interface" ,python-zope-interface) | |
7278 | ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
7279 | ("python-zope-configuration" ,python-zope-configuration))) | |
7280 | (home-page "https://github.com/zopefoundation/zope.component") | |
7281 | (synopsis "Zope Component Architecture") | |
7282 | (description "Zope.component represents the core of the Zope Component | |
7283 | Architecture. Together with the zope.interface package, it provides | |
7284 | facilities for defining, registering and looking up components.") | |
3f641af0 | 7285 | (license license:zpl2.1))) |
a6b61b27 LF |
7286 | |
7287 | (define-public python2-zope-component | |
7288 | (package-with-python2 python-zope-component)) | |
3859ac12 | 7289 | |
1ae44b80 | 7290 | (define-public python-pythondialog |
b5f218be | 7291 | (package |
1ae44b80 | 7292 | (name "python-pythondialog") |
42c4b246 | 7293 | (version "3.4.0") |
b5f218be LF |
7294 | (source |
7295 | (origin | |
7296 | (method url-fetch) | |
1ae44b80 | 7297 | (uri (pypi-uri "pythondialog" version)) |
b5f218be LF |
7298 | (sha256 |
7299 | (base32 | |
1ae44b80 | 7300 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
b5f218be LF |
7301 | (build-system python-build-system) |
7302 | (arguments | |
7303 | `(#:phases | |
7304 | (modify-phases %standard-phases | |
7305 | (add-after 'unpack 'patch-path | |
7306 | (lambda* (#:key inputs #:allow-other-keys) | |
7307 | (let* ((dialog (assoc-ref inputs "dialog"))) | |
7308 | ;; Since this library really wants to grovel the search path, we | |
7309 | ;; must hardcode dialog's store path into it. | |
7310 | (substitute* "dialog.py" | |
7311 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") | |
7312 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) | |
7313 | #t)))) | |
b5f218be LF |
7314 | #:tests? #f)) ; no test suite |
7315 | (propagated-inputs | |
7316 | `(("dialog" ,dialog))) | |
7317 | (home-page "http://pythondialog.sourceforge.net/") | |
7318 | (synopsis "Python interface to the UNIX dialog utility") | |
7319 | (description "A Python wrapper for the dialog utility. Its purpose is to | |
7320 | provide an easy to use, pythonic and comprehensive Python interface to dialog. | |
7321 | This allows one to make simple text-mode user interfaces on Unix-like systems") | |
3f641af0 | 7322 | (license license:lgpl2.1) |
1ae44b80 LF |
7323 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
7324 | ||
7325 | (define-public python2-pythondialog | |
7326 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) | |
7327 | (package | |
7328 | (inherit base) | |
7329 | (version (package-version python-pythondialog)) | |
7330 | (source (origin | |
7331 | (method url-fetch) | |
7332 | (uri (pypi-uri "python2-pythondialog" version)) | |
7333 | (sha256 | |
7334 | (base32 | |
7335 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) | |
b5f218be | 7336 | |
3859ac12 LF |
7337 | (define-public python-pyrfc3339 |
7338 | (package | |
7339 | (name "python-pyrfc3339") | |
d9aa097b | 7340 | (version "1.0") |
3859ac12 LF |
7341 | (source |
7342 | (origin | |
7343 | (method url-fetch) | |
d9aa097b | 7344 | (uri (pypi-uri "pyRFC3339" version)) |
3859ac12 LF |
7345 | (sha256 |
7346 | (base32 | |
d9aa097b | 7347 | "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd")))) |
3859ac12 LF |
7348 | (build-system python-build-system) |
7349 | (propagated-inputs | |
7350 | `(("python-pytz" ,python-pytz))) | |
7351 | (native-inputs | |
f3b98f4f | 7352 | `(("python-nose" ,python-nose))) |
3859ac12 LF |
7353 | (home-page "https://github.com/kurtraschke/pyRFC3339") |
7354 | (synopsis "Python timestamp library") | |
7355 | (description "Python library for generating and parsing RFC 3339-compliant | |
7356 | timestamps.") | |
7357 | (license license:expat))) | |
7358 | ||
7359 | (define-public python2-pyrfc3339 | |
7360 | (package-with-python2 python-pyrfc3339)) | |
5eea2005 LF |
7361 | |
7362 | (define-public python-werkzeug | |
7363 | (package | |
7364 | (name "python-werkzeug") | |
0580e383 | 7365 | (version "0.11.11") |
5eea2005 LF |
7366 | (source |
7367 | (origin | |
7368 | (method url-fetch) | |
4b47cbfa | 7369 | (uri (pypi-uri "Werkzeug" version)) |
5eea2005 LF |
7370 | (sha256 |
7371 | (base32 | |
0580e383 | 7372 | "1rgpq8a2qv26d75v9j3b074inirlyy6y4b5x4rxblp202jy4cb77")))) |
5eea2005 LF |
7373 | (build-system python-build-system) |
7374 | (native-inputs | |
7375 | `(("python-pytest" ,python-pytest))) | |
7376 | (home-page "http://werkzeug.pocoo.org/") | |
7377 | (synopsis "Utilities for WSGI applications") | |
7378 | (description "One of the most advanced WSGI utility modules. It includes a | |
7379 | powerful debugger, full-featured request and response objects, HTTP utilities to | |
7380 | handle entity tags, cache control headers, HTTP dates, cookie handling, file | |
7381 | uploads, a powerful URL routing system and a bunch of community-contributed | |
7382 | addon modules.") | |
3f641af0 | 7383 | (license license:x11))) |
5eea2005 LF |
7384 | |
7385 | (define-public python2-werkzeug | |
7386 | (package-with-python2 python-werkzeug)) | |
99fffa8a LF |
7387 | |
7388 | (define-public python-configobj | |
7389 | (package | |
7390 | (name "python-configobj") | |
7391 | (version "5.0.6") | |
7392 | (source (origin | |
7393 | (method url-fetch) | |
7394 | (uri (string-append | |
7395 | "https://pypi.python.org/packages/source/c/configobj/" | |
7396 | "configobj-" version ".tar.gz")) | |
7397 | (sha256 | |
7398 | (base32 | |
7399 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) | |
7400 | ;; Patch setup.py so it looks for python-setuptools, which is | |
7401 | ;; required to parse the keyword 'install_requires' in setup.py. | |
fc1adab1 | 7402 | (patches (search-patches "python-configobj-setuptools.patch")))) |
99fffa8a LF |
7403 | (build-system python-build-system) |
7404 | (native-inputs | |
f3b98f4f | 7405 | `(("python-six" ,python-six))) |
99fffa8a LF |
7406 | (synopsis "Config file reading, writing and validation") |
7407 | (description "ConfigObj is a simple but powerful config file reader and | |
7408 | writer: an ini file round tripper. Its main feature is that it is very easy to | |
7409 | use, with a straightforward programmer’s interface and a simple syntax for | |
7410 | config files.") | |
7411 | (home-page "https://github.com/DiffSK/configobj") | |
3f641af0 | 7412 | (license license:bsd-3))) |
99fffa8a LF |
7413 | |
7414 | (define-public python2-configobj | |
7415 | (package-with-python2 python-configobj)) | |
79e8a291 LF |
7416 | |
7417 | (define-public python-configargparse | |
7418 | (package | |
7419 | (name "python-configargparse") | |
7420 | (version "0.10.0") | |
7421 | (source (origin | |
7422 | (method url-fetch) | |
7423 | (uri (string-append | |
7424 | "https://pypi.python.org/packages/source/C/ConfigArgParse/" | |
7425 | "ConfigArgParse-" version ".tar.gz")) | |
7426 | (sha256 | |
7427 | (base32 | |
7428 | "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v")))) | |
7429 | (build-system python-build-system) | |
7430 | (arguments | |
7431 | ;; FIXME: Bug in test suite filed upstream: | |
7432 | ;; https://github.com/bw2/ConfigArgParse/issues/32 | |
7433 | '(#:tests? #f)) | |
7434 | (synopsis "Replacement for argparse") | |
7435 | (description "A drop-in replacement for argparse that allows options to also | |
7436 | be set via config files and/or environment variables.") | |
7437 | (home-page "https://github.com/bw2/ConfigArgParse") | |
7438 | (license license:expat))) | |
7439 | ||
7440 | (define-public python2-configargparse | |
7441 | (package-with-python2 python-configargparse)) | |
ab41f979 LF |
7442 | |
7443 | (define-public python-ndg-httpsclient | |
7444 | (package | |
7445 | (name "python-ndg-httpsclient") | |
7446 | (version "0.4.0") | |
7447 | (source (origin | |
7448 | (method url-fetch) | |
7449 | (uri (string-append | |
7450 | "https://pypi.python.org/packages/source/n/ndg-httpsclient/" | |
7451 | "ndg_httpsclient-" version ".tar.gz")) | |
7452 | (sha256 | |
7453 | (base32 | |
7454 | "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8")))) | |
7455 | (build-system python-build-system) | |
a39cc016 LF |
7456 | (arguments |
7457 | '(;; The tests appear to require networking. | |
7458 | #:tests? #f)) | |
ab41f979 LF |
7459 | (propagated-inputs |
7460 | `(("python-pyopenssl" ,python-pyopenssl))) | |
7461 | (synopsis "HTTPS support for Python's httplib and urllib2") | |
7462 | (description "This is a HTTPS client implementation for httplib and urllib2 | |
7463 | based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation | |
7464 | over the default provided with Python and importantly enables full verification | |
7465 | of the SSL peer.") | |
7466 | (home-page "https://github.com/cedadev/ndg_httpsclient/") | |
3f641af0 | 7467 | (license license:bsd-3))) |
ab41f979 LF |
7468 | |
7469 | ;; python2-openssl requires special care, so package-with-python2 is | |
7470 | ;; insufficient. | |
7471 | (define-public python2-ndg-httpsclient | |
7472 | (package (inherit python-ndg-httpsclient) | |
7473 | (name "python2-ndg-httpsclient") | |
7474 | (arguments `(#:python ,python-2)) | |
7475 | (propagated-inputs | |
7476 | `(("python2-pyopenssl" ,python2-pyopenssl))))) | |
03f964a5 CM |
7477 | |
7478 | (define-public python-contextlib2 | |
7479 | (package | |
7480 | (name "python-contextlib2") | |
7481 | (version "0.4.0") | |
7482 | (source | |
7483 | (origin | |
7484 | (method url-fetch) | |
7485 | (uri (pypi-uri "contextlib2" version)) | |
7486 | (sha256 | |
7487 | (base32 | |
7488 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) | |
7489 | (build-system python-build-system) | |
7490 | (arguments | |
7491 | `(#:phases | |
7492 | (modify-phases %standard-phases | |
7493 | (replace 'check | |
7494 | (lambda _ (zero? | |
7495 | (system* | |
b3546174 | 7496 | "python" "test_contextlib2.py" "-v"))))))) |
03f964a5 CM |
7497 | (home-page "http://contextlib2.readthedocs.org/") |
7498 | (synopsis "Tools for decorators and context managers") | |
7499 | (description "This module is primarily a backport of the Python | |
7500 | 3.2 contextlib to earlier Python versions. Like contextlib, it | |
7501 | provides utilities for common tasks involving decorators and context | |
7502 | managers. It also contains additional features that are not part of | |
7503 | the standard library.") | |
3f641af0 | 7504 | (license license:psfl))) |
03f964a5 CM |
7505 | |
7506 | (define-public python2-contextlib2 | |
7507 | (package-with-python2 python-contextlib2)) | |
210bf497 DT |
7508 | |
7509 | (define-public python-texttable | |
7510 | (package | |
7511 | (name "python-texttable") | |
7512 | (version "0.8.4") | |
7513 | (source | |
7514 | (origin | |
7515 | (method url-fetch) | |
7516 | (uri (pypi-uri "texttable" version)) | |
7517 | (sha256 | |
7518 | (base32 | |
7519 | "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) | |
7520 | (build-system python-build-system) | |
7521 | (arguments '(#:tests? #f)) ; no tests | |
7522 | (home-page "https://github.com/foutaise/texttable/") | |
7523 | (synopsis "Python module for creating simple ASCII tables") | |
7524 | (description "Texttable is a Python module for creating simple ASCII | |
7525 | tables.") | |
3f641af0 | 7526 | (license license:lgpl2.1+))) |
210bf497 DT |
7527 | |
7528 | (define-public python2-texttable | |
7529 | (package-with-python2 python-texttable)) | |
67c52bb3 DT |
7530 | |
7531 | (define-public python-websocket-client | |
7532 | (package | |
7533 | (name "python-websocket-client") | |
6b810897 | 7534 | (version "0.37.0") |
67c52bb3 DT |
7535 | (source |
7536 | (origin | |
7537 | (method url-fetch) | |
6b810897 | 7538 | (uri (pypi-uri "websocket_client" version)) |
67c52bb3 DT |
7539 | (sha256 |
7540 | (base32 | |
6b810897 | 7541 | "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) |
67c52bb3 DT |
7542 | (build-system python-build-system) |
7543 | (native-inputs | |
7544 | `(("python-six" ,python-six))) ; for tests | |
67c52bb3 DT |
7545 | (home-page "https://github.com/liris/websocket-client") |
7546 | (synopsis "WebSocket client for Python") | |
7547 | (description "The Websocket-client module provides the low level APIs for | |
7548 | WebSocket usage in Python programs.") | |
3f641af0 | 7549 | (license license:lgpl2.1+))) |
67c52bb3 DT |
7550 | |
7551 | (define-public python2-websocket-client | |
7552 | (package-with-python2 python-websocket-client)) | |
5c6eea2a LF |
7553 | |
7554 | (define-public python-atomicwrites | |
7555 | (package | |
7556 | (name "python-atomicwrites") | |
4e92d76a | 7557 | (version "1.1.0") |
5c6eea2a LF |
7558 | (source (origin |
7559 | (method url-fetch) | |
7560 | (uri (pypi-uri "atomicwrites" version)) | |
7561 | (sha256 | |
7562 | (base32 | |
4e92d76a | 7563 | "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0")))) |
5c6eea2a LF |
7564 | (build-system python-build-system) |
7565 | (synopsis "Atomic file writes in Python") | |
7566 | (description "Library for atomic file writes using platform dependent tools | |
8f65585b | 7567 | for atomic file system operations.") |
5c6eea2a | 7568 | (home-page "https://github.com/untitaker/python-atomicwrites") |
f210e944 | 7569 | (license license:expat))) |
9bb6d184 LF |
7570 | |
7571 | (define-public python2-atomicwrites | |
f210e944 | 7572 | (package-with-python2 python-atomicwrites)) |
561bb3cb LF |
7573 | |
7574 | (define-public python-requests-toolbelt | |
7575 | (package | |
7576 | (name "python-requests-toolbelt") | |
c02af1c8 | 7577 | (version "0.6.2") |
561bb3cb LF |
7578 | (source (origin |
7579 | (method url-fetch) | |
c02af1c8 LF |
7580 | (uri (string-append |
7581 | "https://pypi.python.org/packages/" | |
7582 | "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" | |
7583 | "requests-toolbelt-" version ".tar.gz")) | |
561bb3cb LF |
7584 | (sha256 |
7585 | (base32 | |
c02af1c8 | 7586 | "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) |
561bb3cb | 7587 | (build-system python-build-system) |
759aadd4 LF |
7588 | (native-inputs |
7589 | `(("python-betamax" ,python-betamax) | |
7590 | ("python-mock" ,python-mock) | |
7591 | ("python-pytest" ,python-pytest))) | |
561bb3cb LF |
7592 | (propagated-inputs |
7593 | `(("python-requests" ,python-requests))) | |
7594 | (synopsis "Extensions to python-requests") | |
7595 | (description "This is a toolbelt of useful classes and functions to be used | |
7596 | with python-requests.") | |
7597 | (home-page "https://github.com/sigmavirus24/requests-toolbelt") | |
3f641af0 | 7598 | (license license:asl2.0))) |
d1deb90b LF |
7599 | |
7600 | (define-public python-click-threading | |
7601 | (package | |
7602 | (name "python-click-threading") | |
3d2e0dbc | 7603 | (version "0.2.0") |
d1deb90b LF |
7604 | (source (origin |
7605 | (method url-fetch) | |
3d2e0dbc LF |
7606 | (uri (string-append |
7607 | "https://pypi.python.org/packages/" | |
7608 | "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/" | |
7609 | "click-threading-" version ".tar.gz")) | |
d1deb90b LF |
7610 | (sha256 |
7611 | (base32 | |
3d2e0dbc | 7612 | "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j")))) |
d1deb90b LF |
7613 | (build-system python-build-system) |
7614 | (propagated-inputs | |
7615 | `(("python-click" ,python-click))) | |
7616 | (synopsis "Utilities for multithreading in Click") | |
7617 | (description "This package provides utilities for multithreading in Click | |
7618 | applications.") | |
7619 | (home-page "https://github.com/click-contrib/click-threading") | |
7620 | (license license:expat))) | |
7b17cab9 LF |
7621 | |
7622 | (define-public python-click-log | |
7623 | (package | |
7624 | (name "python-click-log") | |
a9da8fec | 7625 | (version "0.1.3") |
7b17cab9 LF |
7626 | (source (origin |
7627 | (method url-fetch) | |
7628 | (uri (pypi-uri "click-log" version)) | |
7629 | (sha256 | |
7630 | (base32 | |
a9da8fec | 7631 | "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx")))) |
7b17cab9 LF |
7632 | (build-system python-build-system) |
7633 | (propagated-inputs | |
7634 | `(("python-click" ,python-click))) | |
7635 | (synopsis "Logging for click applications") | |
7636 | (description "This package provides a Python library for logging Click | |
7637 | applications.") | |
7638 | (home-page "https://github.com/click-contrib/click-log") | |
7639 | (license license:expat))) | |
7b3a4ee4 LF |
7640 | |
7641 | (define-public python-apipkg | |
7642 | (package | |
7643 | (name "python-apipkg") | |
7644 | (version "1.4") | |
7645 | (source (origin | |
7646 | (method url-fetch) | |
7647 | (uri (pypi-uri "apipkg" version)) | |
7648 | (sha256 | |
7649 | (base32 | |
7650 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) | |
7651 | (build-system python-build-system) | |
328bb95d | 7652 | (native-inputs |
7b3a4ee4 LF |
7653 | `(("python-pytest" ,python-pytest))) |
7654 | (synopsis "Namespace control and lazy-import mechanism") | |
7655 | (description "With apipkg you can control the exported namespace of a Python | |
7656 | package and greatly reduce the number of imports for your users. It is a small | |
7657 | pure Python module that works on virtually all Python versions.") | |
7658 | (home-page "https://bitbucket.org/hpk42/apipkg") | |
f210e944 | 7659 | (license license:expat))) |
e08739c3 CAW |
7660 | |
7661 | (define-public python2-apipkg | |
f210e944 | 7662 | (package-with-python2 python-apipkg)) |
848964fe LF |
7663 | |
7664 | (define-public python-execnet | |
7665 | (package | |
7666 | (name "python-execnet") | |
7667 | (version "1.4.1") | |
7668 | (source (origin | |
7669 | (method url-fetch) | |
7670 | (uri (pypi-uri "execnet" version)) | |
7671 | (sha256 | |
7672 | (base32 | |
7673 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) | |
7674 | (build-system python-build-system) | |
ca0eee9d LF |
7675 | (arguments |
7676 | `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed | |
7677 | ;; The two test failures are caused by the lack of an `ssh` executable. | |
7678 | ;; The test suite can be run with pytest after the 'install' phase. | |
7679 | #:tests? #f)) | |
848964fe | 7680 | (native-inputs |
ca0eee9d LF |
7681 | `(("python-pytest" ,python-pytest) |
7682 | ("python-setuptools-scm" ,python-setuptools-scm))) | |
f22efa01 | 7683 | (propagated-inputs |
848964fe LF |
7684 | `(("python-apipkg" ,python-apipkg))) |
7685 | (synopsis "Rapid multi-Python deployment") | |
7686 | (description "Execnet provides a share-nothing model with | |
7687 | channel-send/receive communication for distributing execution across many | |
7688 | Python interpreters across version, platform and network barriers. It has a | |
7689 | minimal and fast API targetting the following uses: | |
7690 | @enumerate | |
7691 | @item distribute tasks to (many) local or remote CPUs | |
7692 | @item write and deploy hybrid multi-process applications | |
7693 | @item write scripts to administer multiple environments | |
7694 | @end enumerate") | |
7695 | (home-page "http://codespeak.net/execnet/") | |
f210e944 | 7696 | (license license:expat))) |
16c84f90 CAW |
7697 | |
7698 | (define-public python2-execnet | |
f210e944 | 7699 | (package-with-python2 python-execnet)) |
6720dbb4 LF |
7700 | |
7701 | ;;; The software provided by this package was integrated into pytest 2.8. | |
7702 | (define-public python-pytest-cache | |
7703 | (package | |
7704 | (name "python-pytest-cache") | |
7705 | (version "1.0") | |
7706 | (source (origin | |
7707 | (method url-fetch) | |
7708 | (uri (pypi-uri "pytest-cache" version)) | |
7709 | (sha256 | |
7710 | (base32 | |
7711 | "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) | |
7712 | (build-system python-build-system) | |
f22efa01 | 7713 | (propagated-inputs |
630d938f EF |
7714 | `(("python-apipkg" ,python-apipkg) |
7715 | ("python-execnet" ,python-execnet) | |
7716 | ("python-py" ,python-py) | |
7717 | ("python-pytest" ,python-pytest))) | |
6720dbb4 LF |
7718 | (synopsis "Py.test plugin with mechanisms for caching across test runs") |
7719 | (description "The pytest-cache plugin provides tools to rerun failures from | |
7720 | the last py.test invocation.") | |
7721 | (home-page "https://bitbucket.org/hpk42/pytest-cache/") | |
f210e944 | 7722 | (license license:expat))) |
0adc21c2 EF |
7723 | |
7724 | (define-public python2-pytest-cache | |
f210e944 | 7725 | (package-with-python2 python-pytest-cache)) |
d7e729fe LF |
7726 | |
7727 | (define-public python-pytest-localserver | |
7728 | (package | |
7729 | (name "python-pytest-localserver") | |
29f20168 | 7730 | (version "0.3.5") |
d7e729fe LF |
7731 | (source (origin |
7732 | (method url-fetch) | |
29f20168 | 7733 | (uri (pypi-uri "pytest-localserver" version)) |
d7e729fe LF |
7734 | (sha256 |
7735 | (base32 | |
29f20168 | 7736 | "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p")))) |
d7e729fe LF |
7737 | (build-system python-build-system) |
7738 | (arguments | |
7739 | `(#:phases (modify-phases %standard-phases | |
7740 | (replace 'check | |
7741 | (lambda _ | |
7742 | (zero? (system* "py.test" "--genscript=runtests.py")) | |
7743 | (zero? (system* "py.test"))))))) | |
7744 | (native-inputs | |
d7e729fe LF |
7745 | `(("python-pytest" ,python-pytest) |
7746 | ("python-requests" ,python-requests) | |
9ba40f05 | 7747 | ("python-six" ,python-six))) |
f22efa01 | 7748 | (propagated-inputs |
9ba40f05 | 7749 | `(("python-werkzeug" ,python-werkzeug))) |
d7e729fe LF |
7750 | (synopsis "Py.test plugin to test server connections locally") |
7751 | (description "Pytest-localserver is a plugin for the pytest testing | |
7752 | framework which enables you to test server connections locally.") | |
7753 | (home-page "https://pypi.python.org/pypi/pytest-localserver") | |
7754 | (license license:expat))) | |
28cecbb7 LF |
7755 | |
7756 | (define-public python-wsgi-intercept | |
7757 | (package | |
7758 | (name "python-wsgi-intercept") | |
909fbd2b | 7759 | (version "1.2.2") |
28cecbb7 LF |
7760 | (source (origin |
7761 | (method url-fetch) | |
909fbd2b LF |
7762 | (uri (string-append |
7763 | "https://pypi.python.org/packages/" | |
7764 | "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/" | |
7765 | "wsgi_intercept-" version ".tar.gz")) | |
28cecbb7 LF |
7766 | (sha256 |
7767 | (base32 | |
909fbd2b | 7768 | "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) |
28cecbb7 LF |
7769 | (build-system python-build-system) |
7770 | (native-inputs | |
9d813ec1 | 7771 | `(("python-pytest" ,python-pytest) |
8757f050 LF |
7772 | ("python-six" ,python-six) |
7773 | ("python-urllib3" ,python-urllib3))) | |
28cecbb7 LF |
7774 | (propagated-inputs |
7775 | `(("python-httplib2" ,python-httplib2) | |
7776 | ("python-requests" ,python-requests))) | |
7777 | (synopsis "Puts a WSGI application in place of a real URI for testing") | |
7778 | (description "Wsgi_intercept installs a WSGI application in place of a real | |
7779 | URI for testing. Testing a WSGI application normally involves starting a | |
7780 | server at a local host and port, then pointing your test code to that address. | |
7781 | Instead, this library lets you intercept calls to any specific host/port | |
7782 | combination and redirect them into a WSGI application importable by your test | |
7783 | program. Thus, you can avoid spawning multiple processes or threads to test | |
7784 | your Web app.") | |
7785 | (home-page "https://github.com/cdent/wsgi-intercept") | |
7786 | (license license:expat))) | |
89b8a551 LF |
7787 | |
7788 | (define-public python-pytest-xprocess | |
7789 | (package | |
7790 | (name "python-pytest-xprocess") | |
7791 | (version "0.9.1") | |
7792 | (source (origin | |
7793 | (method url-fetch) | |
7794 | (uri (pypi-uri "pytest-xprocess" version)) | |
7795 | (sha256 | |
7796 | (base32 | |
7797 | "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) | |
7798 | (build-system python-build-system) | |
7799 | (propagated-inputs | |
7800 | `(("python-pytest" ,python-pytest) | |
7801 | ("python-pytest-cache" ,python-pytest-cache) | |
7802 | ("python-psutil" ,python-psutil))) | |
7803 | (synopsis "Pytest plugin to manage external processes across test runs") | |
7804 | (description "Pytest-xprocess is an experimental py.test plugin for managing | |
7805 | processes across test runs.") | |
7806 | (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") | |
7807 | (license license:expat))) | |
5c299bf0 LF |
7808 | |
7809 | (define-public python-icalendar | |
7810 | (package | |
7811 | (name "python-icalendar") | |
f2f53353 | 7812 | (version "3.10") |
5c299bf0 LF |
7813 | (source (origin |
7814 | (method url-fetch) | |
7815 | (uri (pypi-uri "icalendar" version)) | |
7816 | (sha256 | |
7817 | (base32 | |
f2f53353 | 7818 | "01amnk3621s7fagfla86npd25knbqirchg7h1jpqxqp103d02bs7")))) |
5c299bf0 LF |
7819 | (build-system python-build-system) |
7820 | (propagated-inputs | |
7821 | `(("python-dateutil-2" ,python-dateutil-2) | |
7822 | ("python-pytz" ,python-pytz))) | |
7823 | (synopsis "Python library for parsing iCalendar files") | |
7824 | (description "The icalendar package is a parser/generator of iCalendar | |
7825 | files for use with Python.") | |
7826 | (home-page "https://github.com/collective/icalendar") | |
3f641af0 | 7827 | (license license:bsd-2))) |
6bbbb53e LF |
7828 | |
7829 | (define-public python-sphinxcontrib-newsfeed | |
7830 | (package | |
7831 | (name "python-sphinxcontrib-newsfeed") | |
7832 | (version "0.1.4") | |
7833 | (source (origin | |
7834 | (method url-fetch) | |
7835 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) | |
7836 | (sha256 | |
7837 | (base32 | |
7838 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) | |
7839 | (build-system python-build-system) | |
7840 | (propagated-inputs | |
7841 | `(("python-docutils" ,python-docutils) | |
7842 | ("python-sphinx" ,python-sphinx))) | |
7843 | (synopsis "News Feed extension for Sphinx") | |
7844 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple | |
7845 | Blog, News or Announcements section to a Sphinx website.") | |
7846 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") | |
3f641af0 | 7847 | (license license:bsd-2))) |
2216e15c SB |
7848 | |
7849 | (define-public python-args | |
7850 | (package | |
7851 | (name "python-args") | |
7852 | (version "0.1.0") | |
7853 | (source (origin | |
7854 | (method url-fetch) | |
7855 | (uri (pypi-uri "args" version)) | |
7856 | (sha256 | |
7857 | (base32 | |
7858 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) | |
7859 | (build-system python-build-system) | |
2216e15c SB |
7860 | (home-page "https://github.com/kennethreitz/args") |
7861 | (synopsis "Command-line argument parser") | |
7862 | (description | |
7863 | "This library provides a Python module to parse command-line arguments.") | |
3f641af0 | 7864 | (license license:bsd-3))) |
2216e15c SB |
7865 | |
7866 | (define-public python2-args | |
7867 | (package-with-python2 python-args)) | |
c06a3de9 SB |
7868 | |
7869 | (define-public python-clint | |
7870 | (package | |
7871 | (name "python-clint") | |
7872 | (version "0.5.1") | |
7873 | (source (origin | |
7874 | (method url-fetch) | |
7875 | (uri (pypi-uri "clint" version)) | |
7876 | (sha256 | |
7877 | (base32 | |
7878 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) | |
7879 | (build-system python-build-system) | |
f22efa01 | 7880 | (propagated-inputs |
f3b98f4f | 7881 | `(("python-args" ,python-args))) |
c06a3de9 SB |
7882 | (home-page "https://github.com/kennethreitz/clint") |
7883 | (synopsis "Command-line interface tools") | |
7884 | (description | |
7885 | "Clint is a Python module filled with a set of tools for developing | |
7886 | command-line applications, including tools for colored and indented | |
7887 | output, progress bar display, and pipes.") | |
3f641af0 | 7888 | (license license:isc))) |
c06a3de9 SB |
7889 | |
7890 | (define-public python2-clint | |
7891 | (package-with-python2 python-clint)) | |
4ecdeef8 SB |
7892 | |
7893 | (define-public python-astor | |
7894 | (package | |
7895 | (name "python-astor") | |
7896 | (version "0.5") | |
7897 | (source (origin | |
7898 | (method url-fetch) | |
7899 | (uri (pypi-uri "astor" version)) | |
7900 | (sha256 | |
7901 | (base32 | |
7902 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) | |
7903 | (build-system python-build-system) | |
4ecdeef8 SB |
7904 | (home-page "https://github.com/berkerpeksag/astor") |
7905 | (synopsis "Read and write Python ASTs") | |
7906 | (description | |
7907 | "Astor is designed to allow easy manipulation of Python source via the | |
7908 | Abstract Syntax Tree.") | |
3f641af0 | 7909 | (license license:bsd-3))) |
4ecdeef8 SB |
7910 | |
7911 | (define-public python2-astor | |
7912 | (package-with-python2 python-astor)) | |
e224b7d0 SB |
7913 | |
7914 | (define-public python-rply | |
7915 | (package | |
7916 | (name "python-rply") | |
7917 | (version "0.7.4") | |
7918 | (source (origin | |
7919 | (method url-fetch) | |
7920 | (uri (pypi-uri "rply" version)) | |
7921 | (sha256 | |
7922 | (base32 | |
7923 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) | |
7924 | (build-system python-build-system) | |
f22efa01 | 7925 | (propagated-inputs |
f3b98f4f | 7926 | `(("python-appdirs" ,python-appdirs))) |
e224b7d0 SB |
7927 | (home-page "https://github.com/alex/rply") |
7928 | (synopsis "Parser generator for Python") | |
7929 | (description | |
7930 | "This package provides a pure Python based parser generator, that also | |
7931 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, | |
7932 | with a new public API, and RPython support.") | |
3f641af0 | 7933 | (license license:bsd-3))) |
e224b7d0 SB |
7934 | |
7935 | (define-public python2-rply | |
7936 | (package-with-python2 python-rply)) | |
c3e919d7 SB |
7937 | |
7938 | (define-public python-hy | |
7939 | (package | |
7940 | (name "python-hy") | |
7941 | (version "0.11.1") | |
7942 | (source (origin | |
7943 | (method url-fetch) | |
7944 | (uri (pypi-uri "hy" version)) | |
7945 | (sha256 | |
7946 | (base32 | |
7947 | "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) | |
7948 | (build-system python-build-system) | |
f22efa01 | 7949 | (propagated-inputs |
c3e919d7 SB |
7950 | `(("python-astor" ,python-astor) |
7951 | ("python-clint" ,python-clint) | |
f3b98f4f | 7952 | ("python-rply" ,python-rply))) |
c3e919d7 SB |
7953 | (home-page "http://hylang.org/") |
7954 | (synopsis "Lisp frontend to Python") | |
7955 | (description | |
7956 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms | |
7957 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of | |
7958 | Python at your fingertips, in Lisp form.") | |
7959 | (license license:expat))) | |
7960 | ||
7961 | (define-public python2-hy | |
7962 | (package-with-python2 python-hy)) | |
7a5b944e | 7963 | |
81f7f297 EF |
7964 | (define-public python-rauth |
7965 | (package | |
7966 | (name "python-rauth") | |
7967 | (version "0.7.2") | |
7968 | (source | |
7969 | (origin | |
7970 | (method url-fetch) | |
7971 | (uri (pypi-uri "rauth" version)) | |
7972 | (sha256 | |
7973 | (base32 | |
7974 | "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) | |
7975 | (build-system python-build-system) | |
7976 | (arguments | |
7977 | `(#:test-target "check")) | |
f22efa01 | 7978 | (propagated-inputs |
81f7f297 EF |
7979 | `(("python-requests" ,python-requests))) |
7980 | (home-page "https://github.com/litl/rauth") | |
7981 | (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") | |
7982 | (description | |
7983 | "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also | |
7984 | provides service wrappers for convenient connection initialization and | |
7985 | authenticated session objects providing things like keep-alive.") | |
0848d8d3 EF |
7986 | (license license:expat) |
7987 | (properties `((python2-variant . ,(delay python2-rauth)))))) | |
81f7f297 EF |
7988 | |
7989 | (define-public python2-rauth | |
0848d8d3 EF |
7990 | (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) |
7991 | (package | |
7992 | (inherit base) | |
00e10c6e | 7993 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
0848d8d3 | 7994 | ,@(package-native-inputs base)))))) |
81f7f297 | 7995 | |
1abe448d EF |
7996 | (define-public python2-functools32 |
7997 | (package | |
7998 | (name "python2-functools32") | |
7999 | (version "3.2.3-2") | |
8000 | (source | |
8001 | (origin | |
8002 | (method url-fetch) | |
8003 | (uri (pypi-uri "functools32" version)) | |
8004 | (sha256 | |
8005 | (base32 | |
8006 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) | |
8007 | (build-system python-build-system) | |
8008 | (arguments | |
8009 | `(#:python ,python-2 | |
8010 | #:tests? #f)) ; no test target | |
1abe448d EF |
8011 | (home-page "https://github.com/MiCHiLU/python-functools32") |
8012 | (synopsis | |
8013 | "Backport of the functools module from Python 3.2.3") | |
8014 | (description | |
8015 | "This package is a backport of the @code{functools} module from Python | |
8016 | 3.2.3 for use with older versions of Python and PyPy.") | |
8017 | (license license:expat))) | |
8018 | ||
877889f3 | 8019 | (define-public python2-futures |
7a5b944e | 8020 | (package |
877889f3 | 8021 | (name "python2-futures") |
7a5b944e EF |
8022 | (version "3.0.3") |
8023 | (source | |
8024 | (origin | |
8025 | (method url-fetch) | |
8026 | (uri (pypi-uri "futures" version)) | |
8027 | (sha256 | |
8028 | (base32 | |
8029 | "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) | |
8030 | (build-system python-build-system) | |
877889f3 | 8031 | (arguments `(#:python ,python-2)) |
7a5b944e EF |
8032 | (home-page "https://github.com/agronholm/pythonfutures") |
8033 | (synopsis | |
8034 | "Backport of the concurrent.futures package from Python 3.2") | |
8035 | (description | |
8036 | "The concurrent.futures module provides a high-level interface for | |
8037 | asynchronously executing callables. This package backports the | |
8038 | concurrent.futures package from Python 3.2") | |
3f641af0 | 8039 | (license license:bsd-3))) |
7a5b944e | 8040 | |
5cb2fe44 EF |
8041 | (define-public python-promise |
8042 | (package | |
8043 | (name "python-promise") | |
8044 | (version "0.4.2") | |
8045 | (source | |
8046 | (origin | |
8047 | (method url-fetch) | |
8048 | (uri (pypi-uri "promise" version)) | |
8049 | (sha256 | |
8050 | (base32 | |
8051 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) | |
8052 | (build-system python-build-system) | |
8053 | ;; Tests wants python-futures, which is a python2 only program, and | |
8054 | ;; can't be found by python-promise at test time. | |
8055 | (arguments `(#:tests? #f)) | |
8056 | (home-page "https://github.com/syrusakbary/promise") | |
8057 | (synopsis "Promises/A+ implementation for Python") | |
8058 | (description | |
8059 | "Promises/A+ implementation for Python") | |
8060 | (properties `((python2-variant . ,(delay python2-promise)))) | |
8061 | (license license:expat))) | |
8062 | ||
8063 | (define-public python2-promise | |
8064 | (let ((promise (package-with-python2 | |
8065 | (strip-python2-variant python-promise)))) | |
8066 | (package (inherit promise) | |
8067 | (arguments (substitute-keyword-arguments (package-arguments promise) | |
8068 | ((#:tests? _) #t))) | |
8069 | (native-inputs | |
8070 | `(("python2-futures" ,python2-futures) | |
8071 | ("python2-pytest" ,python2-pytest) | |
5cb2fe44 EF |
8072 | ,@(package-native-inputs promise)))))) |
8073 | ||
c18f6368 EF |
8074 | (define-public python-urllib3 |
8075 | (package | |
8076 | (name "python-urllib3") | |
6178274d | 8077 | (version "1.18.1") |
c18f6368 EF |
8078 | (source |
8079 | (origin | |
8080 | (method url-fetch) | |
8081 | (uri (pypi-uri "urllib3" version)) | |
8082 | (sha256 | |
8083 | (base32 | |
6178274d | 8084 | "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam")))) |
c18f6368 EF |
8085 | (build-system python-build-system) |
8086 | (arguments `(#:tests? #f)) | |
8087 | (native-inputs | |
f3b98f4f | 8088 | `(;; some packages for tests |
c18f6368 EF |
8089 | ("python-nose" ,python-nose) |
8090 | ("python-mock" ,python-mock) | |
8091 | ("python-tornado" ,python-tornado))) | |
8092 | (propagated-inputs | |
8093 | `(;; packages for https security | |
8094 | ("python-certifi" ,python-certifi) | |
8095 | ("python-ndg-httpsclient" ,python-ndg-httpsclient) | |
8096 | ("python-pyasn1" ,python-pyasn1) | |
8097 | ("python-pyopenssl" ,python-pyopenssl))) | |
6178274d | 8098 | (home-page "https://urllib3.readthedocs.org/") |
c18f6368 EF |
8099 | (synopsis "HTTP library with thread-safe connection pooling") |
8100 | (description | |
8101 | "Urllib3 supports features left out of urllib and urllib2 libraries. It | |
8102 | can reuse the same socket connection for multiple requests, it can POST files, | |
8103 | supports url redirection and retries, and also gzip and deflate decoding.") | |
8104 | (license license:expat))) | |
8105 | ||
8106 | (define-public python2-urllib3 | |
8107 | (package-with-python2 python-urllib3)) | |
2b2f2fc1 DT |
8108 | |
8109 | (define-public python-colorama | |
8110 | (package | |
8111 | (name "python-colorama") | |
8112 | (version "0.3.3") | |
8113 | (source | |
8114 | (origin | |
8115 | (method url-fetch) | |
8116 | (uri (pypi-uri "colorama" version)) | |
8117 | (sha256 | |
8118 | (base32 | |
8119 | "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb")))) | |
8120 | (build-system python-build-system) | |
2b2f2fc1 DT |
8121 | (synopsis "colored terminal text rendering for Python") |
8122 | (description "Colorama is a Python library for rendering colored terminal | |
8123 | text.") | |
8124 | (home-page "https://pypi.python.org/pypi/colorama") | |
3f641af0 | 8125 | (license license:bsd-3))) |
2b2f2fc1 DT |
8126 | |
8127 | (define-public python2-colorama | |
8128 | (package-with-python2 python-colorama)) | |
f5bcec6e DT |
8129 | |
8130 | (define-public python-rsa | |
8131 | (package | |
8132 | (name "python-rsa") | |
ecd68c53 | 8133 | (version "3.4.2") |
f5bcec6e DT |
8134 | (source |
8135 | (origin | |
8136 | (method url-fetch) | |
8137 | (uri (pypi-uri "rsa" version)) | |
8138 | (sha256 | |
8139 | (base32 | |
ecd68c53 | 8140 | "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5")))) |
f5bcec6e | 8141 | (build-system python-build-system) |
f22efa01 | 8142 | (propagated-inputs |
f3b98f4f | 8143 | `(("python-pyasn1" ,python-pyasn1))) |
f5bcec6e DT |
8144 | (synopsis "Pure-Python RSA implementation") |
8145 | (description "Python-RSA is a pure-Python RSA implementation. It supports | |
8146 | encryption and decryption, signing and verifying signatures, and key | |
8147 | generation according to PKCS#1 version 1.5. It can be used as a Python | |
8148 | library as well as on the command line.") | |
8149 | (home-page "http://stuvel.eu/rsa") | |
3f641af0 | 8150 | (license license:asl2.0))) |
f5bcec6e DT |
8151 | |
8152 | (define-public python2-rsa | |
8153 | (package-with-python2 python-rsa)) | |
c0aacfa5 DT |
8154 | |
8155 | (define-public python-pluggy | |
8156 | (package | |
8157 | (name "python-pluggy") | |
8158 | (version "0.3.1") | |
8159 | (source | |
8160 | (origin | |
8161 | (method url-fetch) | |
8162 | (uri (pypi-uri "pluggy" version)) | |
8163 | (sha256 | |
8164 | (base32 | |
8165 | "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m")))) | |
8166 | (build-system python-build-system) | |
c0aacfa5 DT |
8167 | (synopsis "Plugin and hook calling mechanism for Python") |
8168 | (description "Pluggy is an extraction of the plugin manager as used by | |
8169 | Pytest but stripped of Pytest specific details.") | |
8170 | (home-page "https://pypi.python.org/pypi/pluggy") | |
8171 | (license license:expat))) | |
8172 | ||
8173 | (define-public python2-pluggy | |
8174 | (package-with-python2 python-pluggy)) | |
a4af21ca DT |
8175 | |
8176 | (define-public python-tox | |
8177 | (package | |
8178 | (name "python-tox") | |
8179 | (version "2.3.1") | |
8180 | (source | |
8181 | (origin | |
8182 | (method url-fetch) | |
8183 | (uri (pypi-uri "tox" version)) | |
8184 | (sha256 | |
8185 | (base32 | |
8186 | "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz")))) | |
8187 | (build-system python-build-system) | |
8188 | (arguments | |
8189 | ;; FIXME: Tests require a newer version of pytest, but upgrading our | |
8190 | ;; pytest breaks other packages. | |
8191 | '(#:tests? #f)) | |
482d9591 HG |
8192 | (propagated-inputs |
8193 | `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0 | |
a4af21ca | 8194 | ("python-py" ,python-py) |
482d9591 | 8195 | ("python-virtualenv" ,python-virtualenv))) |
328bb95d HG |
8196 | (native-inputs |
8197 | `(("python-pytest" ,python-pytest))) ; >= 2.3.5 | |
a4af21ca DT |
8198 | (home-page "http://tox.testrun.org/") |
8199 | (synopsis "Virtualenv-based automation of test activities") | |
8200 | (description "Tox is a generic virtualenv management and test command line | |
8201 | tool. It can be used to check that a package installs correctly with | |
8202 | different Python versions and interpreters, or run tests in each type of | |
8203 | supported environment, or act as a frontend to continuous integration | |
8204 | servers.") | |
8205 | (license license:expat))) | |
8206 | ||
8207 | (define-public python2-tox | |
8208 | (package-with-python2 python-tox)) | |
ba9da248 DT |
8209 | |
8210 | (define-public python-jmespath | |
8211 | (package | |
8212 | (name "python-jmespath") | |
8213 | (version "0.9.0") | |
8214 | (source | |
8215 | (origin | |
8216 | (method url-fetch) | |
8217 | (uri (pypi-uri "jmespath" version)) | |
8218 | (sha256 | |
8219 | (base32 | |
8220 | "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8")))) | |
8221 | (build-system python-build-system) | |
ba9da248 DT |
8222 | (synopsis "JSON Matching Expressions") |
8223 | (description "JMESPath (pronounced “james path”) is a Python library that | |
8224 | allows one to declaratively specify how to extract elements from a JSON | |
8225 | document.") | |
8226 | (home-page "https://github.com/jmespath/jmespath.py") | |
8227 | (license license:expat))) | |
8228 | ||
8229 | (define-public python2-jmespath | |
8230 | (package-with-python2 python-jmespath)) | |
935fcd5c DT |
8231 | |
8232 | (define-public python-botocore | |
8233 | (package | |
8234 | (name "python-botocore") | |
e09f952d | 8235 | (version "1.4.62") |
935fcd5c DT |
8236 | (source |
8237 | (origin | |
8238 | (method url-fetch) | |
8239 | (uri (pypi-uri "botocore" version)) | |
8240 | (sha256 | |
8241 | (base32 | |
e09f952d | 8242 | "1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj")))) |
935fcd5c | 8243 | (build-system python-build-system) |
482d9591 | 8244 | (propagated-inputs |
935fcd5c DT |
8245 | `(("python-dateutil" ,python-dateutil-2) |
8246 | ("python-docutils" ,python-docutils) | |
482d9591 HG |
8247 | ("python-jmespath" ,python-jmespath))) |
8248 | (inputs | |
8249 | `(("python-mock" ,python-mock) | |
935fcd5c | 8250 | ("python-nose" ,python-nose) |
482d9591 | 8251 | ("behave" ,behave) |
935fcd5c | 8252 | ("python-tox" ,python-tox) |
482d9591 | 8253 | ("python-wheel" ,python-wheel))) |
935fcd5c DT |
8254 | (home-page "https://github.com/boto/botocore") |
8255 | (synopsis "Low-level interface to AWS") | |
8256 | (description "Botocore is a Python library that provides a low-level | |
8257 | interface to the Amazon Web Services (AWS) API.") | |
3f641af0 | 8258 | (license license:asl2.0))) |
935fcd5c DT |
8259 | |
8260 | (define-public python2-botocore | |
8261 | (package-with-python2 python-botocore)) | |
f861b8b8 DT |
8262 | |
8263 | (define-public awscli | |
8264 | (package | |
8265 | (name "awscli") | |
d5ccf71e | 8266 | (version "1.11.5") |
f861b8b8 DT |
8267 | (source |
8268 | (origin | |
8269 | (method url-fetch) | |
d5ccf71e | 8270 | (uri (pypi-uri name version)) |
f861b8b8 DT |
8271 | (sha256 |
8272 | (base32 | |
d5ccf71e | 8273 | "0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg")))) |
f861b8b8 | 8274 | (build-system python-build-system) |
482d9591 | 8275 | (propagated-inputs |
f861b8b8 | 8276 | `(("python-colorama" ,python-colorama) |
482d9591 HG |
8277 | ("python-botocore" ,python-botocore) |
8278 | ("python-s3transfer" ,python-s3transfer) | |
f861b8b8 | 8279 | ("python-docutils" ,python-docutils) |
482d9591 HG |
8280 | ("python-rsa" ,python-rsa))) |
8281 | (inputs | |
8282 | `(("python-mock" ,python-mock) | |
f861b8b8 | 8283 | ("python-nose" ,python-nose) |
f861b8b8 DT |
8284 | ("python-sphinx" ,python-sphinx) |
8285 | ("python-tox" ,python-tox) | |
482d9591 | 8286 | ("python-wheel" ,python-wheel))) |
f861b8b8 DT |
8287 | (home-page "http://aws.amazon.com/cli/") |
8288 | (synopsis "Command line client for AWS") | |
8289 | (description "AWS CLI provides a unified command line interface to the | |
8290 | Amazon Web Services (AWS) API.") | |
3f641af0 | 8291 | (license license:asl2.0))) |
6a44697d LF |
8292 | |
8293 | (define-public python-hypothesis | |
8294 | (package | |
8295 | (name "python-hypothesis") | |
bea6d94d | 8296 | (version "3.1.0") |
6a44697d LF |
8297 | (source (origin |
8298 | (method url-fetch) | |
8299 | (uri (pypi-uri "hypothesis" version)) | |
8300 | (sha256 | |
8301 | (base32 | |
bea6d94d | 8302 | "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw")))) |
6a44697d | 8303 | (build-system python-build-system) |
6a44697d LF |
8304 | (propagated-inputs |
8305 | `(("python-flake8" ,python-flake8) | |
8306 | ("python-pytest" ,python-pytest))) | |
8307 | (synopsis "Library for property based testing") | |
8308 | (description "Hypothesis is a library for testing your Python code against a | |
8309 | much larger range of examples than you would ever want to write by hand. It’s | |
8310 | based on the Haskell library, Quickcheck, and is designed to integrate | |
8311 | seamlessly into your existing Python unit testing work flow.") | |
8312 | (home-page "https://github.com/DRMacIver/hypothesis") | |
3f641af0 | 8313 | (license license:mpl2.0) |
6f068e08 | 8314 | (properties `((python2-variant . ,(delay python2-hypothesis)))))) |
6a44697d LF |
8315 | |
8316 | (define-public python2-hypothesis | |
6f068e08 EF |
8317 | (let ((hypothesis (package-with-python2 |
8318 | (strip-python2-variant python-hypothesis)))) | |
8319 | (package (inherit hypothesis) | |
8320 | (native-inputs | |
f3b98f4f | 8321 | `(("python2-enum34" ,python2-enum34)))))) |
7517e73c LF |
8322 | |
8323 | (define-public python-pytest-subtesthack | |
8324 | (package | |
8325 | (name "python-pytest-subtesthack") | |
8326 | (version "0.1.1") | |
8327 | (source (origin | |
8328 | (method url-fetch) | |
8329 | (uri (pypi-uri "pytest-subtesthack" version)) | |
8330 | (sha256 | |
8331 | (base32 | |
8332 | "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x")))) | |
8333 | (build-system python-build-system) | |
7517e73c LF |
8334 | (propagated-inputs |
8335 | `(("python-pytest" ,python-pytest))) | |
8336 | (synopsis "Set-up and tear-down fixtures for unit tests") | |
8337 | (description "This plugin allows you to set up and tear down fixtures within | |
8338 | unit test functions that use @code{py.test}. This is useful for using | |
8339 | @command{hypothesis} inside py.test, as @command{hypothesis} will call the test | |
8340 | function multiple times, without setting up or tearing down fixture state as is | |
8341 | normally the case.") | |
8342 | (home-page "https://github.com/untitaker/pytest-subtesthack/") | |
3f641af0 | 8343 | (license license:unlicense))) |
7517e73c LF |
8344 | |
8345 | (define-public python2-pytest-subtesthack | |
8346 | (package-with-python2 python-pytest-subtesthack)) | |
0bdc1671 CAW |
8347 | |
8348 | (define-public python2-xdo | |
8349 | (package | |
8350 | (name "python2-xdo") | |
8351 | (version "0.2") | |
8352 | (source (origin | |
8353 | (method url-fetch) | |
8354 | (uri (string-append | |
8355 | "http://http.debian.net/debian/pool/main/p/python-xdo/" | |
8356 | "python-xdo_" version ".orig.tar.gz")) | |
8357 | (sha256 | |
8358 | (base32 | |
8359 | "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4")))) | |
8360 | (build-system python-build-system) | |
8361 | (arguments | |
8362 | `(#:python ,python-2 | |
8363 | #:tests? #f)) ; no tests provided | |
8364 | (inputs | |
8365 | `(("xdotool" ,xdotool) | |
8366 | ("libX11" ,libx11))) | |
8367 | (home-page "https://tracker.debian.org/pkg/python-xdo") | |
8368 | (synopsis "Python library for simulating X11 keyboard/mouse input") | |
8369 | (description "Provides bindings to libxdo for manipulating X11 via simulated | |
8370 | input. (Note that this is mostly a legacy library; you may wish to look at | |
8371 | python-xdo for newer bindings.)") | |
3f641af0 | 8372 | (license license:bsd-3))) |
0bdc1671 | 8373 | |
cb34dc6c CAW |
8374 | (define-public python-wtforms |
8375 | (package | |
8376 | (name "python-wtforms") | |
8377 | (version "2.1") | |
8378 | (source | |
8379 | (origin | |
8380 | (method url-fetch) | |
8381 | (uri (pypi-uri "WTForms" version ".zip")) | |
8382 | (sha256 | |
8383 | (base32 | |
8384 | "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) | |
8385 | (build-system python-build-system) | |
13c4d874 EF |
8386 | (arguments |
8387 | '(#:phases | |
8388 | (modify-phases %standard-phases | |
8389 | (add-after 'unpack 'remove-django-test | |
8390 | ;; Don't fail the tests when the inputs for the optional tests cannot be found. | |
8391 | (lambda _ | |
8392 | (substitute* | |
8393 | "tests/runtests.py" | |
8394 | (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "") | |
8395 | (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") "")) | |
8396 | #t))))) | |
cb34dc6c CAW |
8397 | (native-inputs |
8398 | `(("unzip" ,unzip))) | |
8399 | (home-page "http://wtforms.simplecodes.com/") | |
8400 | (synopsis | |
8401 | "Form validation and rendering library for Python web development") | |
8402 | (description | |
8403 | "WTForms is a flexible forms validation and rendering library | |
8404 | for Python web development. It is very similar to the web form API | |
8405 | available in Django, but is a standalone package.") | |
f210e944 | 8406 | (license license:bsd-3))) |
cb34dc6c CAW |
8407 | |
8408 | (define-public python2-wtforms | |
f210e944 | 8409 | (package-with-python2 python-wtforms)) |
50aaec25 DT |
8410 | |
8411 | (define-public python-mako | |
8412 | (package | |
8413 | (name "python-mako") | |
8414 | (version "1.0.3") | |
8415 | (source | |
8416 | (origin | |
8417 | (method url-fetch) | |
8418 | (uri (pypi-uri "Mako" version)) | |
8419 | (sha256 | |
8420 | (base32 | |
8421 | "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n")))) | |
8422 | (build-system python-build-system) | |
482d9591 HG |
8423 | (propagated-inputs |
8424 | `(("python-markupsafe" ,python-markupsafe))) | |
50aaec25 | 8425 | (native-inputs |
482d9591 | 8426 | `(("python-mock" ,python-mock) |
50aaec25 DT |
8427 | ("python-nose" ,python-nose))) |
8428 | (home-page "http://www.makotemplates.org/") | |
8429 | (synopsis "Templating language for Python") | |
8430 | (description "Mako is a templating language for Python that compiles | |
8431 | templates into Python modules.") | |
f210e944 | 8432 | (license license:expat))) |
50aaec25 DT |
8433 | |
8434 | (define-public python2-mako | |
f210e944 | 8435 | (package-with-python2 python-mako)) |
ae00a41f CAW |
8436 | |
8437 | (define-public python-waitress | |
8438 | (package | |
8439 | (name "python-waitress") | |
8440 | (version "0.8.10") | |
8441 | (source | |
8442 | (origin | |
8443 | (method url-fetch) | |
8444 | (uri (pypi-uri "waitress" version)) | |
8445 | (sha256 | |
8446 | (base32 | |
8447 | "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w")))) | |
8448 | (build-system python-build-system) | |
8449 | (home-page "https://github.com/Pylons/waitress") | |
8450 | (synopsis "Waitress WSGI server") | |
8451 | (description "Waitress is meant to be a production-quality pure-Python WSGI | |
8452 | server with very acceptable performance.") | |
f210e944 | 8453 | (license license:zpl2.1))) |
ae00a41f CAW |
8454 | |
8455 | (define-public python2-waitress | |
f210e944 | 8456 | (package-with-python2 python-waitress)) |
778a284b CAW |
8457 | |
8458 | (define-public python-wsgiproxy2 | |
8459 | (package | |
8460 | (name "python-wsgiproxy2") | |
8461 | (version "0.4.2") | |
8462 | (source | |
8463 | (origin | |
8464 | (method url-fetch) | |
8465 | (uri (pypi-uri "WSGIProxy2" version ".zip")) | |
8466 | (sha256 | |
8467 | (base32 | |
8468 | "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) | |
8469 | (build-system python-build-system) | |
e359b31a LF |
8470 | (arguments |
8471 | '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully | |
8472 | ;; support Python 3: | |
8473 | ;; https://github.com/benoitc/restkit/issues/140 | |
8474 | #:tests? #f)) | |
778a284b CAW |
8475 | (native-inputs |
8476 | `(("unzip" ,unzip) | |
8477 | ("python-nose" ,python-nose) | |
8478 | ("python-coverage" ,python-coverage))) | |
8479 | (propagated-inputs | |
8480 | `(("python-six" ,python-six) | |
8481 | ("python-webob" ,python-webob))) | |
8482 | (home-page | |
8483 | "https://github.com/gawel/WSGIProxy2/") | |
8484 | (synopsis "WSGI Proxy with various http client backends") | |
8485 | (description "WSGI turns HTTP requests into WSGI function calls. | |
8486 | WSGIProxy turns WSGI function calls into HTTP requests. | |
8487 | It also includes code to sign requests and pass private data, | |
8488 | and to spawn subprocesses to handle requests.") | |
f210e944 | 8489 | (license license:expat))) |
778a284b CAW |
8490 | |
8491 | (define-public python2-wsgiproxy2 | |
f210e944 | 8492 | (package-with-python2 python-wsgiproxy2)) |
bb7518b1 CAW |
8493 | |
8494 | (define-public python-pastedeploy | |
8495 | (package | |
8496 | (name "python-pastedeploy") | |
8497 | (version "1.5.2") | |
8498 | (source | |
8499 | (origin | |
8500 | (method url-fetch) | |
8501 | (uri (pypi-uri "PasteDeploy" version)) | |
8502 | (sha256 | |
8503 | (base32 | |
8504 | "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) | |
8505 | (build-system python-build-system) | |
8506 | (native-inputs | |
8507 | `(("python-nose" ,python-nose))) | |
f54d6bac | 8508 | ;; Note: setuptools used at runtime for pkg_resources |
bb7518b1 CAW |
8509 | (home-page "http://pythonpaste.org/deploy/") |
8510 | (synopsis | |
8511 | "Load, configure, and compose WSGI applications and servers") | |
8512 | (description | |
8513 | "This tool provides code to load WSGI applications and servers from URIs; | |
8514 | these URIs can refer to Python Eggs for INI-style configuration files. Paste | |
8515 | Script provides commands to serve applications based on this configuration | |
8516 | file.") | |
8517 | (license license:expat))) | |
8518 | ||
8519 | (define-public python2-pastedeploy | |
8520 | (package-with-python2 python-pastedeploy)) | |
1cf53652 | 8521 | |
c4a7904c CAW |
8522 | (define-public python-paste |
8523 | (package | |
8524 | (name "python-paste") | |
8525 | (version "2.0.2") | |
8526 | (source | |
8527 | (origin | |
8528 | (method url-fetch) | |
8529 | (uri (pypi-uri "Paste" version)) | |
8530 | (sha256 | |
8531 | (base32 | |
8532 | "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d")) | |
fc1adab1 AK |
8533 | (patches (search-patches "python-paste-remove-website-test.patch" |
8534 | "python-paste-remove-timing-test.patch")))) | |
c4a7904c CAW |
8535 | (build-system python-build-system) |
8536 | (native-inputs | |
8537 | `(("python-nose" ,python-nose))) | |
f3b98f4f | 8538 | ;; Note: setuptools used at runtime for pkg_resources |
c4a7904c | 8539 | (propagated-inputs |
f3b98f4f | 8540 | `(("python-six" ,python-six))) |
c4a7904c CAW |
8541 | (arguments |
8542 | '(;; Tests don't pass on Python 3, but work fine on Python 2. | |
8543 | ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken, | |
8544 | ;; but is usable enough for the minimal amount it's used in MediaGoblin | |
8545 | ;; still... things should be better by the next Paste release.) | |
8546 | #:tests? #f)) | |
8547 | (home-page "http://pythonpaste.org") | |
8548 | (synopsis | |
8549 | "Python web development tools, focusing on WSGI") | |
8550 | (description | |
8551 | "Paste provides a variety of web development tools and middleware which | |
8552 | can be nested together to build web applications. Paste's design closely | |
8553 | follows ideas flowing from WSGI (Web Standard Gateway Interface).") | |
8554 | (license license:expat) | |
8555 | (properties `((python2-variant . ,(delay python2-paste)))))) | |
8556 | ||
8557 | (define-public python2-paste | |
8558 | (let ((paste (package-with-python2 | |
8559 | (strip-python2-variant python-paste)))) | |
8560 | (package | |
8561 | (inherit paste) | |
8562 | (arguments | |
8563 | ;; Tests are back for Python 2! | |
8564 | `(#:tests? #t | |
8565 | ,@(package-arguments paste)))))) | |
8566 | ||
a8f20f63 CAW |
8567 | (define-public python-pastescript |
8568 | (package | |
8569 | (name "python-pastescript") | |
8570 | (version "2.0.2") | |
8571 | (source | |
8572 | (origin | |
8573 | (method url-fetch) | |
8574 | (uri (pypi-uri "PasteScript" version)) | |
8575 | (sha256 | |
8576 | (base32 | |
8577 | "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0")))) | |
8578 | (build-system python-build-system) | |
8579 | (native-inputs | |
8580 | `(("python-nose" ,python-nose))) | |
f3b98f4f | 8581 | ;; Note: setuptools used at runtime for pkg_resources |
a8f20f63 | 8582 | (propagated-inputs |
f3b98f4f | 8583 | `(("python-paste" ,python-paste) |
a8f20f63 CAW |
8584 | ("python-pastedeploy" ,python-pastedeploy))) |
8585 | (home-page "http://pythonpaste.org/script/") | |
8586 | (arguments | |
8587 | '(;; Unfortunately, this requires the latest unittest2, | |
8588 | ;; but that requires traceback2 which requires linecache2 which requires | |
8589 | ;; unittest2. So we're skipping tests for now. | |
8590 | ;; (Note: Apparently linetest2 only needs unittest2 for its tests, | |
8591 | ;; so in theory we could get around this situation somehow.) | |
8592 | #:tests? #f)) | |
8593 | (synopsis | |
8594 | "Pluggable command line tool for serving web applications and more") | |
8595 | (description | |
8596 | "PasteScript is a plugin-friendly command line tool which provides a | |
8597 | variety of features, from launching web applications to bootstrapping project | |
8598 | layouts.") | |
8599 | (license license:expat))) | |
8600 | ||
8601 | (define-public python2-pastescript | |
8602 | (package-with-python2 python-pastescript)) | |
8603 | ||
1cf53652 CAW |
8604 | (define-public python-pyquery |
8605 | (package | |
8606 | (name "python-pyquery") | |
aab76e80 | 8607 | (version "1.2.13") |
1cf53652 CAW |
8608 | (source |
8609 | (origin | |
8610 | (method url-fetch) | |
8611 | (uri (pypi-uri "pyquery" version)) | |
8612 | (sha256 | |
8613 | (base32 | |
aab76e80 | 8614 | "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv")))) |
1cf53652 | 8615 | (build-system python-build-system) |
2ddbfa8c LF |
8616 | (native-inputs |
8617 | `(("python-webob" ,python-webob) | |
8618 | ("python-webtest" ,python-webtest))) | |
1cf53652 CAW |
8619 | (propagated-inputs |
8620 | `(("python-lxml" ,python-lxml) | |
8621 | ("python-cssselect" ,python-cssselect))) | |
8622 | (home-page "https://github.com/gawel/pyquery") | |
8623 | (synopsis "Make jQuery-like queries on xml documents") | |
8624 | (description "pyquery allows you to make jQuery queries on xml documents. | |
8625 | The API is as much as possible the similar to jQuery. pyquery uses lxml for | |
8626 | fast xml and html manipulation.") | |
f210e944 | 8627 | (license license:bsd-3))) |
1cf53652 CAW |
8628 | |
8629 | (define-public python2-pyquery | |
f210e944 | 8630 | (package-with-python2 python-pyquery)) |
aa6313d6 CAW |
8631 | |
8632 | (define-public python-webtest | |
8633 | (package | |
8634 | (name "python-webtest") | |
8635 | (version "2.0.20") | |
8636 | (source | |
8637 | (origin | |
8638 | (method url-fetch) | |
8639 | (uri (pypi-uri "WebTest" version)) | |
8640 | (sha256 | |
8641 | (base32 | |
8642 | "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv")))) | |
8643 | (build-system python-build-system) | |
8644 | (arguments | |
8645 | `(;; Unfortunately we have to disable tests! | |
8646 | ;; This release of WebTest is pinned to python-nose < 1.3, | |
8647 | ;; but older versions of python-nose are plagued with the following | |
8648 | ;; bug(s), which rears its ugly head during test execution: | |
8649 | ;; https://github.com/nose-devs/nose/issues/759 | |
8650 | ;; https://github.com/nose-devs/nose/pull/811 | |
8651 | #:tests? #f)) | |
8652 | ;; Commented out code is no good, but in this case, once tests | |
8653 | ;; are ready to be enabled again, we should put the following | |
8654 | ;; in place: | |
8655 | ;; (native-inputs | |
8656 | ;; `(("python-nose" ,python-nose) ; technially < 1.3, | |
8657 | ;; ; but see above comment | |
8658 | ;; ("python-coverage" ,python-coverage) | |
8659 | ;; ("python-mock" ,python-mock) | |
8660 | ;; ("python-pastedeploy" ,python-pastedeploy) | |
8661 | ;; ("python-wsgiproxy2" ,python-wsgiproxy2) | |
8662 | ;; ("python-pyquery" ,python-pyquery))) | |
8663 | (propagated-inputs | |
8664 | `(("python-waitress" ,python-waitress) | |
8665 | ("python-webob" ,python-webob) | |
8666 | ("python-six" ,python-six) | |
8667 | ("python-beautifulsoup4" ,python-beautifulsoup4))) | |
8668 | (home-page "http://webtest.pythonpaste.org/") | |
8669 | (synopsis "Helper to test WSGI applications") | |
8670 | (description "Webtest allows you to test your Python web applications | |
8671 | without starting an HTTP server. It supports anything that supports the | |
8672 | minimum of WSGI.") | |
f210e944 | 8673 | (license license:expat))) |
aa6313d6 CAW |
8674 | |
8675 | (define-public python2-webtest | |
f210e944 | 8676 | (package-with-python2 python-webtest)) |
4cb122cd CAW |
8677 | |
8678 | (define-public python-anyjson | |
8679 | (package | |
8680 | (name "python-anyjson") | |
8681 | (version "0.3.3") | |
8682 | (source | |
8683 | (origin | |
8684 | (method url-fetch) | |
8685 | (uri (pypi-uri "anyjson" version)) | |
8686 | (sha256 | |
8687 | (base32 | |
8688 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) | |
8689 | (build-system python-build-system) | |
8690 | (arguments | |
8691 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. | |
8692 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or | |
8693 | ;; whatever) so this transformation needs to be done before the tests | |
8694 | ;; can be run. Maybe we could add a build step to transform beforehand | |
8695 | ;; but it could be annoying/difficult. | |
8696 | ;; We can enable tests for the Python 2 version, though, and do below. | |
8697 | #:tests? #f)) | |
8698 | (home-page "http://bitbucket.org/runeh/anyjson/") | |
8699 | (synopsis | |
8700 | "Wraps best available JSON implementation in a common interface") | |
8701 | (description | |
8702 | "Anyjson loads whichever is the fastest JSON module installed | |
8703 | and provides a uniform API regardless of which JSON implementation is used.") | |
3f641af0 | 8704 | (license license:bsd-3) |
4cb122cd CAW |
8705 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
8706 | ||
8707 | (define-public python2-anyjson | |
8708 | (let ((anyjson (package-with-python2 | |
8709 | (strip-python2-variant python-anyjson)))) | |
8710 | (package | |
8711 | (inherit anyjson) | |
8712 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! | |
8713 | #:tests? #t | |
8714 | ,@(package-arguments anyjson))) | |
00e10c6e | 8715 | (native-inputs `(("python2-nose" ,python2-nose)))))) |
8dfceab7 CAW |
8716 | |
8717 | (define-public python-amqp | |
8718 | (package | |
8719 | (name "python-amqp") | |
8720 | (version "1.4.9") | |
8721 | (source | |
8722 | (origin | |
8723 | (method url-fetch) | |
8724 | (uri (pypi-uri "amqp" version)) | |
8725 | (sha256 | |
8726 | (base32 | |
8727 | "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid")))) | |
8728 | (build-system python-build-system) | |
8729 | (native-inputs | |
8730 | `(("python-nose" ,python-nose) | |
8731 | ("python-mock" ,python-mock))) | |
8732 | (home-page "http://github.com/celery/py-amqp") | |
8733 | (synopsis | |
8734 | "Low-level AMQP client for Python (fork of amqplib)") | |
8735 | (description | |
8736 | "This is a fork of amqplib which was originally written by Barry Pederson. | |
8737 | It is maintained by the Celery project, and used by kombu as a pure python | |
8738 | alternative when librabbitmq is not available.") | |
3f641af0 | 8739 | (license license:lgpl2.1+) |
8dfceab7 CAW |
8740 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
8741 | ||
8742 | (define-public python2-amqp | |
8743 | (let ((amqp (package-with-python2 | |
8744 | (strip-python2-variant python-amqp)))) | |
8745 | (package | |
8746 | (inherit amqp) | |
8747 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems | |
8748 | ;; unmaintained. Weirdly, does not do this on the python 3 | |
8749 | ;; version? | |
8750 | #:tests? #f | |
00e10c6e | 8751 | ,@(package-arguments amqp)))))) |
7d387305 CAW |
8752 | |
8753 | (define-public python-kombu | |
8754 | (package | |
8755 | (name "python-kombu") | |
0cb59822 | 8756 | (version "3.0.37") |
7d387305 CAW |
8757 | (source |
8758 | (origin | |
8759 | (method url-fetch) | |
8760 | (uri (pypi-uri "kombu" version)) | |
8761 | (sha256 | |
8762 | (base32 | |
0cb59822 | 8763 | "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70")))) |
7d387305 CAW |
8764 | (build-system python-build-system) |
8765 | (native-inputs | |
8766 | `(("python-mock" ,python-mock) | |
8767 | ("python-nose" ,python-nose))) | |
8768 | (propagated-inputs | |
8769 | `(("python-anyjson" ,python-anyjson) | |
0cb59822 LF |
8770 | ("python-amqp" ,python-amqp) |
8771 | ("python-redis" ,python-redis))) | |
7d387305 CAW |
8772 | (home-page "http://kombu.readthedocs.org") |
8773 | (synopsis "Message passing library for Python") | |
8774 | (description "The aim of Kombu is to make messaging in Python as easy as | |
8775 | possible by providing an idiomatic high-level interface for the AMQ protocol, | |
8776 | and also provide proven and tested solutions to common messaging problems. | |
8777 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for | |
8778 | message orientation, queuing, routing, reliability and security, for which the | |
8779 | RabbitMQ messaging server is the most popular implementation.") | |
3f641af0 | 8780 | (license license:bsd-3) |
7d387305 CAW |
8781 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
8782 | ||
8783 | (define-public python2-kombu | |
8784 | (let ((kombu (package-with-python2 | |
8785 | (strip-python2-variant python-kombu)))) | |
8786 | (package | |
8787 | (inherit kombu) | |
328bb95d HG |
8788 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
8789 | ,@(package-native-inputs kombu)))))) | |
b6f0b9fb CAW |
8790 | |
8791 | (define-public python-billiard | |
8792 | (package | |
8793 | (name "python-billiard") | |
a6bb9e44 | 8794 | (version "3.3.0.23") |
b6f0b9fb CAW |
8795 | (source |
8796 | (origin | |
8797 | (method url-fetch) | |
8798 | (uri (pypi-uri "billiard" version)) | |
8799 | (sha256 | |
8800 | (base32 | |
a6bb9e44 | 8801 | "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9")))) |
b6f0b9fb CAW |
8802 | (build-system python-build-system) |
8803 | (native-inputs | |
8804 | `(("python-nose" ,python-nose))) | |
8805 | (home-page "http://github.com/celery/billiard") | |
8806 | (synopsis | |
8807 | "Python multiprocessing fork with improvements and bugfixes") | |
8808 | (description | |
8809 | "Billiard is a fork of the Python 2.7 multiprocessing package. The | |
8810 | multiprocessing package itself is a renamed and updated version of R Oudkerk's | |
8811 | pyprocessing package. This standalone variant is intended to be compatible with | |
8812 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") | |
3f641af0 | 8813 | (license license:bsd-3) |
b6f0b9fb CAW |
8814 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
8815 | ||
8816 | (define-public python2-billiard | |
8817 | (let ((billiard (package-with-python2 | |
8818 | (strip-python2-variant python-billiard)))) | |
8819 | (package | |
8820 | (inherit billiard) | |
00e10c6e | 8821 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
b6f0b9fb CAW |
8822 | ("python2-mock" ,python2-mock) |
8823 | ,@(package-native-inputs billiard)))))) | |
22df6419 CAW |
8824 | |
8825 | (define-public python-celery | |
8826 | (package | |
8827 | (name "python-celery") | |
9ebe87fe | 8828 | (version "3.1.24") |
22df6419 CAW |
8829 | (source |
8830 | (origin | |
8831 | (method url-fetch) | |
8832 | (uri (pypi-uri "celery" version)) | |
8833 | (sha256 | |
8834 | (base32 | |
9ebe87fe | 8835 | "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r")))) |
22df6419 | 8836 | (build-system python-build-system) |
9ebe87fe LF |
8837 | (arguments |
8838 | `(#:phases | |
8839 | (modify-phases %standard-phases | |
8840 | ;; These tests break with Python 3.5: | |
8841 | ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295 | |
8842 | (replace 'check | |
8843 | (lambda _ | |
8844 | (zero? | |
8845 | (system* "nosetests" "--exclude=^test_safe_to_remove.*"))))))) | |
22df6419 CAW |
8846 | (native-inputs |
8847 | `(("python-nose" ,python-nose))) | |
f22efa01 | 8848 | (propagated-inputs |
22df6419 | 8849 | `(("python-pytz" ,python-pytz) |
a64cbb6f EF |
8850 | ("python-amqp" ,python-amqp) |
8851 | ("python-anyjson" ,python-anyjson) | |
22df6419 CAW |
8852 | ("python-billiard" ,python-billiard) |
8853 | ("python-kombu" ,python-kombu))) | |
8854 | (home-page "http://celeryproject.org") | |
8855 | (synopsis "Distributed Task Queue") | |
8856 | (description "Celery is an asynchronous task queue/job queue based on | |
8857 | distributed message passing. It is focused on real-time operation, but | |
8858 | supports scheduling as well. The execution units, called tasks, are executed | |
8859 | concurrently on a single or more worker servers using multiprocessing, | |
8860 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or | |
8861 | synchronously (wait until ready).") | |
3f641af0 | 8862 | (license license:bsd-3) |
22df6419 CAW |
8863 | (properties `((python2-variant . ,(delay python2-celery)))))) |
8864 | ||
8865 | (define-public python2-celery | |
8866 | (let ((celery (package-with-python2 | |
8867 | (strip-python2-variant python-celery)))) | |
8868 | (package | |
8869 | (inherit celery) | |
00e10c6e | 8870 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
22df6419 CAW |
8871 | ("python2-mock" ,python2-mock) |
8872 | ,@(package-native-inputs celery)))))) | |
97e32948 CAW |
8873 | |
8874 | (define-public python-translitcodec | |
8875 | (package | |
8876 | (name "python-translitcodec") | |
8877 | (version "0.4.0") | |
8878 | (source | |
8879 | (origin | |
8880 | (method url-fetch) | |
8881 | (uri (pypi-uri "translitcodec" version)) | |
8882 | (sha256 | |
8883 | (base32 | |
8884 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) | |
8885 | (build-system python-build-system) | |
8886 | (arguments | |
8887 | `(#:tests? #f)) ; no tests provided | |
8888 | (home-page | |
8889 | "https://github.com/claudep/translitcodec") | |
8890 | (synopsis | |
8891 | "Unicode to 8-bit charset transliteration codec") | |
8892 | (description | |
8893 | "This package contains codecs for transliterating ISO 10646 texts into | |
8894 | best-effort representations using smaller coded character sets (ASCII, | |
8895 | ISO 8859, etc.).") | |
f210e944 | 8896 | (license license:expat))) |
97e32948 CAW |
8897 | |
8898 | (define-public python2-translitcodec | |
f210e944 | 8899 | (package-with-python2 python-translitcodec)) |
0c3b90d4 CAW |
8900 | |
8901 | (define-public python-editor | |
8902 | (package | |
8903 | (name "python-editor") | |
8904 | (version "0.5") | |
8905 | (source | |
8906 | (origin | |
8907 | (method url-fetch) | |
8908 | (uri (pypi-uri "python-editor" version)) | |
8909 | (sha256 | |
8910 | (base32 | |
8911 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) | |
8912 | (build-system python-build-system) | |
8913 | (home-page | |
8914 | "https://github.com/fmoo/python-editor") | |
8915 | (synopsis | |
8916 | "Programmatically open an editor, capture the result") | |
8917 | (description | |
8918 | "python-editor is a library that provides the editor module for | |
8919 | programmatically interfacing with your system's $EDITOR.") | |
f210e944 | 8920 | (license license:asl2.0))) |
0c3b90d4 CAW |
8921 | |
8922 | (define-public python2-editor | |
f210e944 | 8923 | (package-with-python2 python-editor)) |
3276517c LF |
8924 | |
8925 | (define-public python-sphinxcontrib-programoutput | |
8926 | (package | |
8927 | (name "python-sphinxcontrib-programoutput") | |
8928 | (version "0.8") | |
8929 | (source (origin | |
8930 | (method url-fetch) | |
8931 | (uri (pypi-uri "sphinxcontrib-programoutput" version)) | |
8932 | (sha256 | |
8933 | (base32 | |
8934 | "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp")))) | |
8935 | (build-system python-build-system) | |
8936 | (propagated-inputs | |
8937 | `(("python-docutils" ,python-docutils) | |
8938 | ("python-sphinx" ,python-sphinx))) | |
8939 | (synopsis "Sphinx extension to include program output") | |
8940 | (description "A Sphinx extension to literally insert the output of arbitrary | |
8941 | commands into documents, helping you to keep your command examples up to date.") | |
8942 | (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput") | |
f210e944 | 8943 | (license license:bsd-2))) |
3276517c LF |
8944 | |
8945 | (define-public python2-sphinxcontrib-programoutput | |
f210e944 | 8946 | (package-with-python2 python-sphinxcontrib-programoutput)) |
548d7165 LF |
8947 | |
8948 | (define-public python-sphinx-repoze-autointerface | |
8949 | (package | |
8950 | (name "python-sphinx-repoze-autointerface") | |
328ae341 | 8951 | (version "0.8") |
548d7165 LF |
8952 | (source (origin |
8953 | (method url-fetch) | |
8954 | (uri (pypi-uri "repoze.sphinx.autointerface" version)) | |
8955 | (sha256 | |
8956 | (base32 | |
328ae341 | 8957 | "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f")))) |
548d7165 LF |
8958 | (build-system python-build-system) |
8959 | (propagated-inputs | |
8960 | `(("python-docutils" ,python-docutils) | |
8961 | ("python-sphinx" ,python-sphinx) | |
8962 | ("python-zope-interface" ,python-zope-interface))) | |
8963 | (synopsis "Auto-generate Sphinx API docs from Zope interfaces") | |
8964 | (description "This package defines an extension for the Sphinx documentation | |
8965 | system. The extension allows generation of API documentation by | |
8966 | introspection of @code{zope.interface} instances in code.") | |
8967 | (home-page "https://github.com/repoze/repoze.sphinx.autointerface") | |
3f641af0 | 8968 | (license license:repoze))) |
548d7165 LF |
8969 | |
8970 | (define-public python2-sphinx-repoze-autointerface | |
8971 | (package-with-python2 python-sphinx-repoze-autointerface)) | |
b31fbea5 DM |
8972 | |
8973 | (define-public python-psycopg2 | |
8974 | (package | |
8975 | (name "python-psycopg2") | |
8976 | (version "2.6.1") | |
8977 | (source | |
8978 | (origin | |
8979 | (method url-fetch) | |
8980 | (uri (pypi-uri "psycopg2" version)) | |
8981 | (sha256 | |
8982 | (base32 | |
8983 | "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva")))) | |
8984 | (build-system python-build-system) | |
8985 | (arguments | |
8986 | ;; Tests would require a postgresql database "psycopg2_test" | |
8987 | ;; and a running postgresql database management service. | |
8988 | `(#:tests? #f)) ; TODO re-enable after providing a test-db. | |
8989 | (inputs | |
8990 | `(("postgresql" ,postgresql))) ; libpq | |
8991 | (home-page "http://initd.org/psycopg/") | |
8992 | (synopsis "Python PostgreSQL adapter") | |
8993 | (description | |
8994 | "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") | |
f210e944 | 8995 | (license license:lgpl3+))) |
b31fbea5 DM |
8996 | |
8997 | (define-public python2-psycopg2 | |
f210e944 | 8998 | (package-with-python2 python-psycopg2)) |
eed1a61f LF |
8999 | |
9000 | (define-public python-vobject | |
9001 | (package | |
9002 | (name "python-vobject") | |
9bed9b15 | 9003 | (version "0.9.2") |
eed1a61f LF |
9004 | (source (origin |
9005 | (method url-fetch) | |
9006 | (uri (pypi-uri "vobject" version)) | |
9007 | (sha256 | |
9008 | (base32 | |
9bed9b15 | 9009 | "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb")))) |
eed1a61f | 9010 | (build-system python-build-system) |
a9871b7b LF |
9011 | (arguments |
9012 | '(;; The test suite relies on some non-portable Windows interfaces. | |
9013 | #:tests? #f)) | |
f22efa01 | 9014 | (propagated-inputs |
eed1a61f LF |
9015 | `(("python-dateutil-2" ,python-dateutil-2) |
9016 | ("python-pyicu" ,python-pyicu))) | |
9017 | (synopsis "Parse and generate vCard and vCalendar files") | |
9018 | (description "Vobject is intended to be a full featured Python package for | |
9019 | parsing and generating vCard and vCalendar files. Currently, iCalendar files | |
9020 | are supported and well tested. vCard 3.0 files are supported, and all data | |
9021 | should be imported, but only a few components are understood in a sophisticated | |
9022 | way.") | |
9023 | (home-page "http://eventable.github.io/vobject/") | |
f210e944 | 9024 | (license license:asl2.0))) |
eed1a61f LF |
9025 | |
9026 | (define-public python2-vobject | |
f210e944 | 9027 | (package-with-python2 python-vobject)) |
cedac813 LF |
9028 | |
9029 | (define-public python-munkres | |
9030 | (package | |
9031 | (name "python-munkres") | |
9032 | (version "1.0.7") | |
9033 | (source (origin | |
9034 | (method url-fetch) | |
9035 | (uri (pypi-uri "munkres" version)) | |
9036 | (sha256 | |
9037 | (base32 | |
9038 | "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik")))) | |
9039 | (build-system python-build-system) | |
9040 | (arguments | |
9041 | '(#:tests? #f)) ; no test suite | |
9042 | (home-page "http://software.clapper.org/munkres/") | |
9043 | (synopsis "Implementation of the Munkres algorithm") | |
9044 | (description "The Munkres module provides an implementation of the Munkres | |
9045 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), | |
9046 | useful for solving the Assignment Problem.") | |
3f641af0 | 9047 | (license license:bsd-3))) |
cedac813 LF |
9048 | |
9049 | (define-public python2-munkres | |
9050 | (package-with-python2 python-munkres)) | |
f3b3d78f LF |
9051 | |
9052 | (define-public python-flask | |
9053 | (package | |
9054 | (name "python-flask") | |
9055 | (version "0.10.1") | |
9056 | (source (origin | |
9057 | (method url-fetch) | |
9058 | (uri (pypi-uri "Flask" version)) | |
9059 | (sha256 | |
9060 | (base32 | |
9061 | "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc")))) | |
9062 | (build-system python-build-system) | |
9063 | (propagated-inputs | |
9064 | `(("python-itsdangerous" ,python-itsdangerous) | |
9065 | ("python-jinja2" ,python-jinja2) | |
9066 | ("python-werkzeug" ,python-werkzeug))) | |
9067 | (home-page "https://github.com/mitsuhiko/flask/") | |
9068 | (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") | |
9069 | (description "Flask is a micro web framework based on the Werkzeug toolkit | |
9070 | and Jinja2 template engine. It is called a micro framework because it does not | |
9071 | presume or force a developer to use a particular tool or library.") | |
f210e944 | 9072 | (license license:bsd-3))) |
f3b3d78f LF |
9073 | |
9074 | (define-public python2-flask | |
f210e944 | 9075 | (package-with-python2 python-flask)) |
603d665b LF |
9076 | |
9077 | (define-public python-cookies | |
9078 | (package | |
9079 | (name "python-cookies") | |
9080 | (version "2.2.1") | |
9081 | (source (origin | |
9082 | (method url-fetch) | |
9083 | (uri (pypi-uri "cookies" version)) | |
9084 | (sha256 | |
9085 | (base32 | |
9086 | "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) | |
9087 | (build-system python-build-system) | |
9088 | (arguments | |
9089 | `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 | |
9090 | #:tests? #f)) | |
9091 | (native-inputs | |
9092 | `(("python-pytest" ,python2-pytest))) | |
9093 | (synopsis "HTTP cookie parser and renderer") | |
9094 | (description "A RFC 6265-compliant HTTP cookie parser and renderer in | |
9095 | Python.") | |
9096 | (home-page "https://gitlab.com/sashahart/cookies") | |
f210e944 | 9097 | (license license:expat))) |
603d665b LF |
9098 | |
9099 | (define-public python2-cookies | |
f210e944 | 9100 | (package-with-python2 python-cookies)) |
0efde7d6 LF |
9101 | |
9102 | (define-public python-responses | |
9103 | (package | |
9104 | (name "python-responses") | |
9105 | (version "0.5.1") | |
9106 | (source (origin | |
9107 | (method url-fetch) | |
9108 | (uri (pypi-uri "responses" version)) | |
9109 | (sha256 | |
9110 | (base32 | |
9111 | "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) | |
9112 | (build-system python-build-system) | |
9113 | (arguments | |
9114 | `(;; Test suite is not distributed: | |
9115 | ;; https://github.com/getsentry/responses/issues/38 | |
9116 | #:tests? #f)) | |
9117 | (native-inputs | |
9118 | `(("python-cookies" ,python-cookies) | |
9119 | ("python-mock" ,python-mock))) | |
9120 | (propagated-inputs | |
9121 | `(("python-requests" ,python-requests) | |
9122 | ("python-six" ,python-six))) | |
9123 | (home-page "https://github.com/getsentry/responses") | |
9124 | (synopsis "Utility for mocking out the `requests` Python library") | |
9125 | (description "A utility library for mocking out the `requests` Python | |
9126 | library.") | |
f210e944 | 9127 | (license license:asl2.0))) |
0efde7d6 LF |
9128 | |
9129 | (define-public python2-responses | |
f210e944 | 9130 | (package-with-python2 python-responses)) |
76b94885 | 9131 | |
b7afd018 RW |
9132 | (define-public python-whoosh |
9133 | (package | |
9134 | (name "python-whoosh") | |
9135 | (version "2.7.4") | |
9136 | (source | |
9137 | (origin | |
9138 | (method url-fetch) | |
9139 | (uri (pypi-uri "Whoosh" version)) | |
9140 | (sha256 | |
9141 | (base32 | |
9142 | "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw")))) | |
9143 | (build-system python-build-system) | |
9144 | (native-inputs | |
f3b98f4f | 9145 | `(("python-pytest" ,python-pytest))) |
b7afd018 RW |
9146 | (home-page "http://bitbucket.org/mchaput/whoosh") |
9147 | (synopsis "Full text indexing, search, and spell checking library") | |
9148 | (description | |
9149 | "Whoosh is a fast, pure-Python full text indexing, search, and spell | |
9150 | checking library.") | |
9151 | (license license:bsd-2))) | |
9152 | ||
9153 | (define-public python2-whoosh | |
9154 | (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh)))) | |
9155 | (package (inherit whoosh) | |
9156 | (propagated-inputs | |
9157 | `(("python2-backport-ssl-match-hostname" | |
9158 | ,python2-backport-ssl-match-hostname) | |
9159 | ,@(package-propagated-inputs whoosh)))))) | |
9160 | ||
76b94885 LF |
9161 | (define-public python-pathlib |
9162 | (package | |
9163 | (name "python-pathlib") | |
9164 | (version "1.0.1") | |
9165 | (source (origin | |
9166 | (method url-fetch) | |
9167 | (uri (pypi-uri "pathlib" version)) | |
9168 | (sha256 | |
9169 | (base32 | |
9170 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) | |
9171 | (build-system python-build-system) | |
92a312dc RW |
9172 | ;; The tests depend on the internal "test" module, which does not provide |
9173 | ;; a stable interface. | |
9174 | (arguments `(#:tests? #f)) | |
76b94885 | 9175 | (home-page "https://pathlib.readthedocs.org/") |
8f65585b JD |
9176 | (synopsis "Object-oriented file system paths") |
9177 | (description "Pathlib offers a set of classes to handle file system paths. | |
76b94885 LF |
9178 | It offers the following advantages over using string objects: |
9179 | ||
9180 | @enumerate | |
9181 | @item No more cumbersome use of os and os.path functions. Everything can | |
9182 | be done easily through operators, attribute accesses, and method calls. | |
9183 | @item Embodies the semantics of different path types. For example, | |
9184 | comparing Windows paths ignores casing. | |
9185 | @item Well-defined semantics, eliminating any inconsistencies or | |
9186 | ambiguities (forward vs. backward slashes, etc.). | |
7a8894e8 HG |
9187 | @end enumerate |
9188 | ||
9189 | Note: In Python 3.4, pathlib is now part of the standard library. For other | |
9190 | Python versions please consider python-pathlib2 instead, which tracks the | |
9191 | standard library module. This module (python-pathlib) isn't maintained | |
9192 | anymore.") | |
76b94885 LF |
9193 | (license license:expat))) |
9194 | ||
9195 | (define-public python2-pathlib | |
9196 | (package-with-python2 python-pathlib)) | |
25a7db0a | 9197 | |
b7703c81 HG |
9198 | (define-public python2-pathlib2 |
9199 | (package | |
9200 | (name "python2-pathlib2") | |
9201 | (version "2.1.0") | |
9202 | (source (origin | |
9203 | (method url-fetch) | |
9204 | (uri (pypi-uri "pathlib2" version)) | |
9205 | (sha256 | |
9206 | (base32 | |
9207 | "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy")))) | |
9208 | (build-system python-build-system) | |
49a531f5 HG |
9209 | ;; We only need the the Python 2 variant, since for Python 3 our minimum |
9210 | ;; version is 3.4 which already includes this package as part of the | |
9211 | ;; standard library. | |
b7703c81 HG |
9212 | (arguments |
9213 | `(#:python ,python-2)) | |
9214 | (native-inputs | |
f3b98f4f | 9215 | `(("python2-six" ,python2-six))) |
b7703c81 HG |
9216 | (home-page "http://pypi.python.org/pypi/pathlib2/") |
9217 | (synopsis "Object-oriented file system paths - backport of standard | |
9218 | pathlib module") | |
9219 | (description "The goal of pathlib2 is to provide a backport of standard | |
9220 | pathlib module which tracks the standard library module, so all the newest | |
9221 | features of the standard pathlib can be used also on older Python versions. | |
9222 | ||
9223 | Pathlib offers a set of classes to handle file system paths. It offers the | |
9224 | following advantages over using string objects: | |
9225 | ||
9226 | @enumerate | |
9227 | @item No more cumbersome use of os and os.path functions. Everything can | |
9228 | be done easily through operators, attribute accesses, and method calls. | |
9229 | @item Embodies the semantics of different path types. For example, | |
9230 | comparing Windows paths ignores casing. | |
9231 | @item Well-defined semantics, eliminating any inconsistencies or | |
9232 | ambiguities (forward vs. backward slashes, etc.). | |
9233 | @end enumerate") | |
9234 | (license license:expat))) | |
9235 | ||
25a7db0a LF |
9236 | (define-public python-jellyfish |
9237 | (package | |
9238 | (name "python-jellyfish") | |
9239 | (version "0.5.3") | |
9240 | (source (origin | |
9241 | (method url-fetch) | |
9242 | (uri (pypi-uri "jellyfish" version)) | |
9243 | (sha256 | |
9244 | (base32 | |
9245 | "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07")))) | |
9246 | (build-system python-build-system) | |
9247 | (native-inputs | |
9248 | `(("python-pytest" ,python-pytest))) | |
9249 | (home-page "https://github.com/jamesturk/jellyfish") | |
9250 | (synopsis "Approximate and phonetic matching of strings") | |
9251 | (description "Jellyfish uses a variety of string comparison and phonetic | |
9252 | encoding algorithms to do fuzzy string matching.") | |
3f641af0 | 9253 | (license license:bsd-2) |
25a7db0a LF |
9254 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
9255 | ||
9256 | (define-public python2-jellyfish | |
9257 | (let ((jellyfish (package-with-python2 | |
9258 | (strip-python2-variant python-jellyfish)))) | |
9259 | (package (inherit jellyfish) | |
00e10c6e | 9260 | (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv) |
25a7db0a | 9261 | ,@(package-native-inputs jellyfish)))))) |
13edb0e5 LF |
9262 | |
9263 | (define-public python2-unicodecsv | |
9264 | (package | |
9265 | (name "python2-unicodecsv") | |
9266 | (version "0.14.1") | |
9267 | (source (origin | |
9268 | (method url-fetch) | |
9269 | ;; The test suite is not included in the PyPi release. | |
9270 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 | |
9271 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" | |
9272 | "archive/" version ".tar.gz")) | |
9273 | (file-name (string-append name "-" version ".tar.gz")) | |
9274 | (sha256 | |
9275 | (base32 | |
9276 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) | |
9277 | (build-system python-build-system) | |
9278 | (arguments | |
9279 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. | |
9280 | #:python ,python-2)) | |
9281 | (native-inputs | |
f3b98f4f | 9282 | `(("python2-unittest2" ,python2-unittest2))) |
13edb0e5 LF |
9283 | (home-page "https://github.com/jdunck/python-unicodecsv") |
9284 | (synopsis "Unicode CSV module for Python 2") | |
9285 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV | |
9286 | module, adding support for Unicode strings.") | |
3f641af0 | 9287 | (license license:bsd-2))) |
064503aa LF |
9288 | |
9289 | (define-public python-rarfile | |
9290 | (package | |
9291 | (name "python-rarfile") | |
9292 | (version "2.7") | |
9293 | (source (origin | |
9294 | (method url-fetch) | |
9295 | (uri (pypi-uri "rarfile" version)) | |
9296 | (sha256 | |
9297 | (base32 | |
9298 | "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527")) | |
9299 | ;; https://github.com/markokr/rarfile/pull/17/ | |
fc1adab1 | 9300 | (patches (search-patches "python-rarfile-fix-tests.patch")))) |
064503aa LF |
9301 | (build-system python-build-system) |
9302 | (arguments | |
9303 | '(#:phases | |
9304 | (modify-phases %standard-phases | |
9305 | (replace 'check | |
9306 | ;; Many tests fail, but the installation proceeds. | |
9307 | (lambda _ (zero? (system* "make" "-C" "test" "test"))))))) | |
9308 | (native-inputs | |
9309 | `(("which" ,which))) ; required for tests | |
9310 | (propagated-inputs | |
9311 | `(("libarchive" ,libarchive))) | |
9312 | (home-page "https://github.com/markokr/rarfile") | |
9313 | (synopsis "RAR archive reader for Python") | |
9314 | (description "This is Python module for RAR archive reading. The interface | |
9315 | is made as zipfile like as possible.") | |
3f641af0 | 9316 | (license license:isc))) |
064503aa LF |
9317 | |
9318 | (define-public python2-rarfile | |
9319 | (package-with-python2 python-rarfile)) | |
daeeea71 CM |
9320 | |
9321 | (define-public python-magic | |
9322 | (package | |
9323 | (name "python-magic") | |
9324 | (version "0.4.3") | |
9325 | (source | |
9326 | (origin | |
9327 | (method url-fetch) | |
9328 | (uri (string-append "https://github.com/ahupp/python-magic/archive/" | |
9329 | version ".tar.gz")) | |
9330 | (sha256 | |
9331 | (base32 | |
9332 | "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) | |
9333 | (file-name (string-append name "-" version "-checkout")))) | |
9334 | (build-system python-build-system) | |
9335 | (arguments | |
9336 | ;; The tests are unreliable, so don't run them. The tests fail | |
9337 | ;; under Python3 because they were written for Python2 and | |
9338 | ;; contain import statements that do not work in Python3. One of | |
9339 | ;; the tests fails under Python2 because its assertions are | |
9340 | ;; overly stringent; it relies on comparing output strings which | |
9341 | ;; are brittle and can change depending on the version of | |
9342 | ;; libmagic being used and the system on which the test is | |
9343 | ;; running. In my case, under GuixSD 0.10.0, only one test | |
9344 | ;; failed, and it seems to have failed only because the version | |
9345 | ;; of libmagic that is packaged in Guix outputs a slightly | |
9346 | ;; different (but not wrong) string than the one that the test | |
9347 | ;; expected. | |
9348 | '(#:tests? #f | |
9349 | #:phases (modify-phases %standard-phases | |
9350 | ;; Replace a specific method call with a hard-coded | |
9351 | ;; path to the necessary libmagic.so file in the | |
9352 | ;; store. If we don't do this, then the method call | |
9353 | ;; will fail to find the libmagic.so file, which in | |
9354 | ;; turn will cause any application using | |
9355 | ;; python-magic to fail. | |
9356 | (add-before 'build 'hard-code-path-to-libmagic | |
9357 | (lambda* (#:key inputs #:allow-other-keys) | |
9358 | (let ((file (assoc-ref inputs "file"))) | |
9359 | (substitute* "magic.py" | |
9360 | (("ctypes.util.find_library\\('magic'\\)") | |
9361 | (string-append "'" file "/lib/libmagic.so'"))) | |
77432686 LF |
9362 | #t))) |
9363 | (add-before 'install 'disable-egg-compression | |
9364 | (lambda _ | |
9365 | (let ((port (open-file "setup.cfg" "a"))) | |
9366 | (display "\n[easy_install]\nzip_ok = 0\n" | |
9367 | port) | |
9368 | (close-port port) | |
9369 | #t)))))) | |
daeeea71 CM |
9370 | (inputs |
9371 | ;; python-magic needs to be able to find libmagic.so. | |
9372 | `(("file" ,file))) | |
9373 | (home-page "https://github.com/ahupp/python-magic") | |
9374 | (synopsis "File type identification using libmagic") | |
9375 | (description | |
9376 | "This module uses ctypes to access the libmagic file type | |
9377 | identification library. It makes use of the local magic database and | |
9378 | supports both textual and MIME-type output. Note that this module and | |
9379 | the python-file module both provide a \"magic.py\" file; these two | |
9380 | modules, which are different and were developed separately, both serve | |
9381 | the same purpose: to provide Python bindings for libmagic.") | |
9382 | (license license:expat))) | |
9383 | ||
9384 | (define-public python2-magic | |
9385 | (package-with-python2 python-magic)) | |
12af303f CM |
9386 | |
9387 | (define-public python2-s3cmd | |
9388 | (package | |
9389 | (name "python2-s3cmd") | |
9390 | (version "1.6.1") | |
9391 | (source | |
9392 | (origin | |
9393 | (method url-fetch) | |
de67e922 | 9394 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
12af303f CM |
9395 | "s3cmd-" version ".tar.gz")) |
9396 | (sha256 | |
9397 | (base32 | |
9398 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) | |
9399 | (build-system python-build-system) | |
9400 | (arguments | |
9401 | ;; s3cmd is written for python2 only and contains no tests. | |
9402 | `(#:python ,python-2 | |
9403 | #:tests? #f)) | |
f22efa01 | 9404 | (propagated-inputs |
12af303f CM |
9405 | `(("python2-dateutil" ,python2-dateutil) |
9406 | ;; The python-file package also provides a magic.py module. | |
9407 | ;; This is an unfortunate state of affairs; however, s3cmd | |
9408 | ;; fails to install if it cannot find specifically the | |
9409 | ;; python-magic package. Thus we include it, instead of using | |
9410 | ;; python-file. Ironically, s3cmd sometimes works better | |
9411 | ;; without libmagic bindings at all: | |
9412 | ;; https://github.com/s3tools/s3cmd/issues/198 | |
9413 | ("python2-magic" ,python2-magic))) | |
9414 | (home-page "http://s3tools.org/s3cmd") | |
9415 | (synopsis "Command line tool for S3-compatible storage services") | |
9416 | (description | |
9417 | "S3cmd is a command line tool for uploading, retrieving and managing data | |
9418 | in storage services that are compatible with the Amazon Simple Storage | |
9419 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, | |
9420 | GnuPG encryption, and more. It also supports management of Amazon's | |
9421 | CloudFront content delivery network.") | |
3f641af0 | 9422 | (license license:gpl2+))) |
4323a5f0 AE |
9423 | |
9424 | (define-public python-pkgconfig | |
9425 | (package | |
9426 | (name "python-pkgconfig") | |
9427 | (version "1.1.0") | |
9428 | (source | |
9429 | (origin | |
9430 | (method url-fetch) | |
9431 | (uri (pypi-uri "pkgconfig" version)) | |
9432 | (sha256 | |
9433 | (base32 | |
9434 | "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) | |
9435 | (build-system python-build-system) | |
9436 | (native-inputs | |
f3b98f4f | 9437 | `(("python-nose" ,python-nose))) |
4323a5f0 AE |
9438 | (inputs |
9439 | `(("pkg-config" ,pkg-config))) | |
9440 | (arguments | |
9441 | `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3, | |
9442 | ;; and on Python 2 they need the dl module deprecated since Python 2.6. | |
9443 | #:tests? #f | |
4323a5f0 AE |
9444 | ;; Hard-code the path to pkg-config. |
9445 | #:phases | |
9446 | (modify-phases %standard-phases | |
9447 | (add-before | |
9448 | 'build 'patch | |
9449 | (lambda _ | |
9450 | (substitute* "pkgconfig/pkgconfig.py" | |
9451 | (("cmd = 'pkg-config") | |
9452 | (string-append "cmd = '" (which "pkg-config")))) | |
9453 | #t))))) | |
9454 | (home-page "http://github.com/matze/pkgconfig") | |
9455 | (synopsis "Python interface for pkg-config") | |
9456 | (description "This module provides a Python interface to pkg-config. It | |
9457 | can be used to find all pkg-config packages, check if a package exists, | |
9458 | check if a package meets certain version requirements, query CFLAGS and | |
9459 | LDFLAGS and parse the output to build extensions with setup.py.") | |
a0c6a36b | 9460 | (license license:expat))) |
4323a5f0 AE |
9461 | |
9462 | (define-public python2-pkgconfig | |
9463 | (package-with-python2 python-pkgconfig)) | |
9464 | ||
2e697322 BW |
9465 | (define-public python-bz2file |
9466 | (package | |
9467 | (name "python-bz2file") | |
9468 | (version "0.98") | |
9469 | (source | |
9470 | (origin | |
9471 | (method url-fetch) | |
9472 | (uri (pypi-uri "bz2file" version)) | |
9473 | (sha256 | |
9474 | (base32 | |
9475 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) | |
9476 | (build-system python-build-system) | |
9477 | (arguments | |
124df723 | 9478 | `(#:tests? #f)) ; Tests use deprecated python modules. |
2e697322 BW |
9479 | (home-page "https://github.com/nvawda/bz2file") |
9480 | (synopsis "Read and write bzip2-compressed files") | |
9481 | (description | |
9482 | "Bz2file is a Python library for reading and writing bzip2-compressed | |
9483 | files. It contains a drop-in replacement for the I/O interface in the | |
9484 | standard library's @code{bz2} module, including features from the latest | |
9485 | development version of CPython that are not available in older releases.") | |
3f641af0 | 9486 | (license license:asl2.0) |
2e697322 BW |
9487 | (properties `((python2-variant . ,(delay python2-bz2file)))))) |
9488 | ||
9489 | (define-public python2-bz2file | |
9490 | (let ((base (package-with-python2 | |
9491 | (strip-python2-variant python-bz2file)))) | |
9492 | (package | |
9493 | (inherit base) | |
124df723 | 9494 | (arguments |
752bb447 BW |
9495 | `(#:python ,python-2 |
9496 | #:phases | |
124df723 BW |
9497 | (modify-phases %standard-phases |
9498 | ;; 'python setup.py test' does not work as of 0.98. | |
9499 | ;; There is only the one test file, so we run it directly. | |
9500 | (replace 'check | |
9501 | (lambda _ (zero? (system* "python" | |
9502 | "test_bz2file.py")))))))))) | |
2e697322 | 9503 | |
da4ac1aa BW |
9504 | (define-public python-future |
9505 | (package | |
9506 | (name "python-future") | |
9507 | (version "0.15.2") | |
9508 | (source | |
9509 | (origin | |
9510 | (method url-fetch) | |
9511 | (uri (pypi-uri "future" version)) | |
9512 | (sha256 | |
9513 | (base32 | |
9514 | "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx")))) | |
9515 | (build-system python-build-system) | |
9516 | ;; Many tests connect to the network or are otherwise flawed. | |
9517 | ;; https://github.com/PythonCharmers/python-future/issues/210 | |
9518 | (arguments | |
9519 | `(#:tests? #f)) | |
9520 | (home-page "http://python-future.org") | |
9521 | (synopsis "Single-source support for Python 3 and 2") | |
9522 | (description | |
9523 | "@code{python-future} is the missing compatibility layer between Python 2 and | |
9524 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase | |
9525 | to support both Python 2 and Python 3 with minimal overhead.") | |
f210e944 | 9526 | (license license:expat))) |
da4ac1aa BW |
9527 | |
9528 | (define-public python2-future | |
f210e944 | 9529 | (package-with-python2 python-future)) |
da4ac1aa | 9530 | |
8e451885 AE |
9531 | (define-public python-cysignals |
9532 | (package | |
9533 | (name "python-cysignals") | |
9534 | (version "1.1.0") | |
9535 | (source | |
9536 | (origin | |
9537 | (method url-fetch) | |
9538 | (uri (pypi-uri "cysignals" version ".tar.bz2")) | |
9539 | (sha256 | |
9540 | (base32 | |
9541 | "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6")))) | |
9542 | (build-system python-build-system) | |
9543 | (native-inputs | |
9544 | `(("python-cython" ,python-cython) | |
8e451885 AE |
9545 | ("python-sphinx" ,python-sphinx))) |
9546 | (inputs | |
9547 | `(("pari-gp" ,pari-gp))) | |
9548 | (arguments | |
9549 | `(#:modules ((guix build python-build-system) | |
9550 | ((guix build gnu-build-system) #:prefix gnu:) | |
9551 | (guix build utils)) | |
9552 | ;; FIXME: Tests are executed after installation and currently fail | |
9553 | ;; when not installing into standard locations; the author is working | |
9554 | ;; on a fix. | |
9555 | #:tests? #f | |
9556 | #:phases | |
9557 | (modify-phases %standard-phases | |
9558 | (add-before | |
9559 | 'build 'configure | |
9560 | (assoc-ref gnu:%standard-phases 'configure))))) | |
9561 | (home-page | |
9562 | "https://github.com/sagemath/cysignals") | |
9563 | (synopsis | |
9564 | "Handling of interrupts and signals for Cython") | |
9565 | (description | |
9566 | "The cysignals package provides mechanisms to handle interrupts (and | |
9567 | other signals and errors) in Cython code, using two related approaches, | |
9568 | for mixed Cython/Python code or external C libraries and pure Cython code, | |
9569 | respectively.") | |
3f641af0 | 9570 | (license license:lgpl3+))) |
8e451885 AE |
9571 | |
9572 | (define-public python2-cysignals | |
9573 | (package-with-python2 python-cysignals)) | |
9574 | ||
63bcec71 DM |
9575 | (define-public python2-shedskin |
9576 | (package | |
9577 | (name "python2-shedskin") | |
9578 | (version "0.9.4") | |
9579 | (source | |
9580 | (origin | |
9581 | (method url-fetch) | |
9582 | (uri (string-append "https://github.com/shedskin/shedskin/" | |
9583 | "releases/download/v" version | |
9584 | "/shedskin-" version ".tgz")) | |
9585 | (sha256 | |
9586 | (base32 | |
9587 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) | |
9588 | (build-system python-build-system) | |
9589 | (arguments | |
9590 | `(#:python ,python-2 | |
9591 | #:phases (modify-phases %standard-phases | |
9592 | (add-after 'unpack 'fix-resulting-include-libs | |
9593 | (lambda* (#:key inputs #:allow-other-keys) | |
9594 | (let ((libgc (assoc-ref inputs "libgc")) | |
9595 | (pcre (assoc-ref inputs "pcre"))) | |
9596 | (substitute* "shedskin/makefile.py" | |
9597 | (("variable == 'CCFLAGS':[ ]*") | |
9598 | (string-append "variable == 'CCFLAGS':\n" | |
9599 | " line += ' -I " pcre "/include" | |
9600 | " -I " libgc "/include'")) | |
9601 | (("variable == 'LFLAGS':[ ]*") | |
9602 | (string-append "variable == 'LFLAGS':\n" | |
9603 | " line += ' -L" pcre "/lib" | |
9604 | " -L " libgc "/lib'"))) | |
9605 | #t)))))) | |
63bcec71 DM |
9606 | (inputs `(("pcre" ,pcre) |
9607 | ("libgc" ,libgc))) | |
9608 | (home-page "https://shedskin.github.io/") | |
9609 | (synopsis "Experimental Python-2 to C++ Compiler") | |
9610 | (description (string-append "This is an experimental compiler for a subset of | |
9611 | Python. It generates C++ code and a Makefile.")) | |
3f641af0 | 9612 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
88bb4197 LG |
9613 | |
9614 | (define-public python2-rope | |
9615 | (package | |
9616 | (name "python2-rope") | |
9617 | (version "0.10.3") | |
9618 | (source | |
9619 | (origin | |
9620 | (method url-fetch) | |
9621 | (uri (pypi-uri "rope" version)) | |
9622 | (sha256 | |
9623 | (base32 | |
9624 | "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) | |
9625 | (arguments | |
9626 | ;; Rope is currently python-2 only. | |
9627 | ;; https://github.com/python-rope/rope/issues/57 | |
9628 | `(#:python ,python-2)) | |
9629 | (build-system python-build-system) | |
9630 | (native-inputs | |
f3b98f4f | 9631 | `(("python2-unittest2" ,python2-unittest2))) |
88bb4197 LG |
9632 | (home-page "https://github.com/python-rope/rope") |
9633 | (synopsis "Refactoring library for Python") | |
9634 | (description "Rope is a refactoring library for Python. It facilitates | |
9635 | the renaming, moving and extracting of attributes, functions, modules, fields | |
9636 | and parameters in Python 2 source code. These refactorings can also be applied | |
9637 | to occurences in strings and comments.") | |
3f641af0 | 9638 | (license license:gpl2))) |
6ba8ca17 TČ |
9639 | |
9640 | (define-public python-py3status | |
9641 | (package | |
9642 | (name "python-py3status") | |
d2262d70 | 9643 | (version "3.1") |
6ba8ca17 TČ |
9644 | (source |
9645 | (origin | |
9646 | (method url-fetch) | |
9647 | (uri (pypi-uri "py3status" version)) | |
9648 | (sha256 | |
9649 | (base32 | |
d2262d70 | 9650 | "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) |
6ba8ca17 | 9651 | (build-system python-build-system) |
6ba8ca17 TČ |
9652 | (home-page "https://github.com/ultrabug/py3status") |
9653 | (synopsis "Extensible i3status wrapper written in Python") | |
9654 | (description "py3status is an i3status wrapper which extends i3status | |
9655 | functionality in a modular way, allowing you to extend your panel with your | |
9656 | own code, responding to click events and updating clock every second.") | |
3f641af0 | 9657 | (license license:bsd-3))) |
b8fdbca3 HG |
9658 | |
9659 | (define-public python-tblib | |
9660 | (package | |
9661 | (name "python-tblib") | |
9662 | (version "1.3.0") | |
9663 | (source (origin | |
9664 | (method url-fetch) | |
9665 | (uri (pypi-uri "tblib" version)) | |
9666 | (sha256 (base32 | |
9667 | "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi")))) | |
9668 | (build-system python-build-system) | |
9669 | (arguments | |
9670 | `(#:phases | |
9671 | (modify-phases %standard-phases | |
9672 | (replace 'check | |
9673 | (lambda _ | |
9674 | ;; Upstream runs tests after installation and the package itself | |
9675 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be | |
9676 | ;; found. | |
9677 | (setenv "PYTHONPATH" | |
9678 | (string-append (getcwd) "/build/lib:" | |
9679 | (getenv "PYTHONPATH"))) | |
9680 | (zero? (system* "py.test" "-vv" "tests" "README.rst"))))))) | |
9681 | (native-inputs | |
9682 | `(("python-pytest" ,python-pytest) | |
b8fdbca3 HG |
9683 | ("python-six" ,python-six))) |
9684 | (home-page "https://github.com/ionelmc/python-tblib") | |
9685 | (synopsis "Traceback serialization library") | |
9686 | (description | |
9687 | "Traceback serialization allows you to: | |
9688 | ||
9689 | @enumerate | |
9690 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in | |
9691 | different processes. This allows better error handling when running code over | |
9692 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). | |
9693 | ||
9694 | @item Parse traceback strings and raise with the parsed tracebacks. | |
9695 | @end itemize") | |
3f641af0 | 9696 | (license license:bsd-3))) |
b8fdbca3 HG |
9697 | |
9698 | (define-public python2-tblib | |
9699 | (package-with-python2 python-tblib)) | |
1a024de4 HG |
9700 | |
9701 | (define-public python-sqlparse | |
9702 | (package | |
9703 | (name "python-sqlparse") | |
9704 | (version "0.1.19") | |
9705 | (source (origin | |
9706 | (method url-fetch) | |
9707 | (uri (pypi-uri "sqlparse" version)) | |
9708 | (sha256 | |
9709 | (base32 | |
9710 | "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) | |
9711 | (build-system python-build-system) | |
9712 | (arguments | |
9713 | `(#:phases | |
9714 | (modify-phases %standard-phases | |
9715 | (replace 'check | |
9716 | (lambda* _ | |
9717 | ;; setup.py-integrated 2to3 only affects the build files, but | |
9718 | ;; py.test is using the source files. So we need to convert them | |
9719 | ;; manually. | |
9720 | (when (zero? (system* "python3")) | |
9721 | (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")) | |
9722 | (zero? (system* "py.test"))))))) | |
9723 | (native-inputs | |
f3b98f4f | 9724 | `(("python-pytest" ,python-pytest))) |
1a024de4 HG |
9725 | (home-page "https://github.com/andialbrecht/sqlparse") |
9726 | (synopsis "Non-validating SQL parser") | |
9727 | (description "Sqlparse is a non-validating SQL parser for Python. It | |
9728 | provides support for parsing, splitting and formatting SQL statements.") | |
3f641af0 | 9729 | (license license:bsd-3))) |
1a024de4 HG |
9730 | |
9731 | (define-public python2-sqlparse | |
9732 | (package-with-python2 python-sqlparse)) | |
68b9d242 SB |
9733 | |
9734 | (define-public python-greenlet | |
9735 | (package | |
9736 | (name "python-greenlet") | |
9737 | (version "0.4.9") | |
9738 | (source (origin | |
9739 | (method url-fetch) | |
9740 | (uri (pypi-uri "greenlet" version)) | |
9741 | (sha256 | |
9742 | (base32 | |
9743 | "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr")))) | |
9744 | (build-system python-build-system) | |
68b9d242 SB |
9745 | (home-page "https://greenlet.readthedocs.io/") |
9746 | (synopsis "Lightweight in-process concurrent programming") | |
9747 | (description | |
9748 | "Greenlet package is a spin-off of Stackless, a version of CPython | |
9749 | that supports micro-threads called \"tasklets\". Tasklets run | |
9750 | pseudo-concurrently (typically in a single or a few OS-level threads) and | |
9751 | are synchronized with data exchanges on \"channels\".") | |
3f641af0 | 9752 | (license (list license:psfl license:expat)))) |
68b9d242 SB |
9753 | |
9754 | (define-public python2-greenlet | |
9755 | (package-with-python2 python-greenlet)) | |
d79a343b SB |
9756 | |
9757 | (define-public python-gevent | |
9758 | (package | |
9759 | (name "python-gevent") | |
9760 | (version "1.1.1") | |
9761 | (source (origin | |
9762 | (method url-fetch) | |
9763 | (uri (pypi-uri "gevent" version)) | |
9764 | (sha256 | |
9765 | (base32 | |
9766 | "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf")) | |
9767 | (modules '((guix build utils))) | |
9768 | (snippet | |
9769 | '(begin | |
9770 | ;; unbunding libev and c-ares | |
9771 | (for-each delete-file-recursively '("libev" "c-ares")) | |
9772 | ;; fixing testsuite | |
9773 | (call-with-output-file "greentest/__init__.py" noop) | |
9774 | (substitute* "greentest/testrunner.py" | |
9775 | (("import util") "from . import util") | |
9776 | (("from util import log") "from .util import log")))))) | |
9777 | (build-system python-build-system) | |
9778 | (propagated-inputs | |
9779 | `(("python-greenlet" ,python-greenlet))) | |
9780 | (native-inputs | |
f3b98f4f | 9781 | `(("python-six" ,python-six))) |
d79a343b SB |
9782 | (inputs |
9783 | `(("c-ares" ,c-ares) | |
9784 | ("libev" ,libev))) | |
9785 | (home-page "http://www.gevent.org/") | |
9786 | (synopsis "Coroutine-based network library") | |
9787 | (description | |
9788 | "gevent is a coroutine-based Python networking library that uses greenlet | |
9789 | to provide a high-level synchronous API on top of the libev event loop.") | |
9790 | (license license:expat))) | |
9791 | ||
9792 | (define-public python2-gevent | |
9793 | (package-with-python2 python-gevent)) | |
da3aeeb6 SB |
9794 | |
9795 | (define-public python-twisted | |
9796 | (package | |
9797 | (name "python-twisted") | |
9798 | (version "16.2.0") | |
9799 | (source (origin | |
9800 | (method url-fetch) | |
8ea8e8d3 | 9801 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
da3aeeb6 SB |
9802 | (sha256 |
9803 | (base32 | |
9804 | "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450")))) | |
9805 | (build-system python-build-system) | |
45912170 SB |
9806 | (propagated-inputs |
9807 | `(("python-zope-interface" ,python-zope-interface))) | |
da3aeeb6 SB |
9808 | (home-page "https://twistedmatrix.com/") |
9809 | (synopsis "Asynchronous networking framework written in Python") | |
9810 | (description | |
9811 | "Twisted is an extensible framework for Python programming, with special | |
9812 | focus on event-based network programming and multiprotocol integration.") | |
9813 | (license license:expat))) | |
9814 | ||
9815 | (define-public python2-twisted | |
9816 | (package-with-python2 python-twisted)) | |
d0b6fed6 | 9817 | |
4d3fa5a4 EF |
9818 | (define-public python-pika |
9819 | (package | |
9820 | (name "python-pika") | |
9821 | (version "0.10.0") | |
9822 | (source | |
9823 | (origin | |
9824 | (method url-fetch) | |
9825 | (uri (pypi-uri "pika" version)) | |
9826 | (sha256 | |
9827 | (base32 | |
9828 | "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) | |
9829 | (build-system python-build-system) | |
9830 | (native-inputs | |
269d9172 LF |
9831 | `(("python-pyev" ,python-pyev) |
9832 | ("python-tornado" ,python-tornado) | |
9833 | ("python-twisted" ,python-twisted))) | |
4d3fa5a4 EF |
9834 | (home-page "https://pika.readthedocs.org") |
9835 | (synopsis "Pure Python AMQP Client Library") | |
9836 | (description | |
9837 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing | |
9838 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying | |
9839 | network support library.") | |
9840 | (license license:bsd-3))) | |
9841 | ||
9842 | (define-public python2-pika | |
9843 | (package-with-python2 python-pika)) | |
9844 | ||
d0b6fed6 DM |
9845 | (define-public python-ply |
9846 | (package | |
9847 | (name "python-ply") | |
9848 | (version "3.8") | |
9849 | (source | |
9850 | (origin | |
9851 | (method url-fetch) | |
9852 | (uri (string-append | |
9853 | "https://pypi.python.org/packages/" | |
9854 | "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5" | |
9855 | "/ply-" version ".tar.gz")) | |
9856 | (sha256 | |
9857 | (base32 | |
9858 | "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7")))) | |
9859 | (build-system python-build-system) | |
9860 | (home-page "http://www.dabeaz.com/ply/") | |
9861 | (synopsis "Python Lex & Yacc") | |
9862 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. | |
9863 | It uses LR parsing and does extensive error checking.") | |
f210e944 | 9864 | (license license:bsd-3))) |
d0b6fed6 DM |
9865 | |
9866 | (define-public python2-ply | |
f210e944 | 9867 | (package-with-python2 python-ply)) |
d951bd54 SB |
9868 | |
9869 | (define-public python-tabulate | |
9870 | (package | |
9871 | (name "python-tabulate") | |
9872 | (version "0.7.5") | |
9873 | (source (origin | |
9874 | (method url-fetch) | |
9875 | (uri (pypi-uri "tabulate" version)) | |
9876 | (sha256 | |
9877 | (base32 | |
9878 | "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch")) | |
9879 | ;; Fix tests | |
9880 | (modules '((guix build utils))) | |
9881 | (snippet '(substitute* '("test/test_cli.py" | |
9882 | "test/test_input.py" | |
9883 | "test/test_output.py" | |
9884 | "test/test_regression.py") | |
9885 | (("from common") "from nose.tools"))))) | |
9886 | (build-system python-build-system) | |
9887 | (native-inputs | |
f3b98f4f | 9888 | `(;; For testing |
d951bd54 SB |
9889 | ("python-nose" ,python-nose))) |
9890 | (home-page "https://bitbucket.org/astanin/python-tabulate") | |
9891 | (synopsis "Pretty-print tabular data") | |
9892 | (description | |
9893 | "Tabulate is a library and command-line utility to pretty-print tabular | |
9894 | data in Python.") | |
9895 | (license license:expat))) | |
9896 | ||
9897 | (define-public python2-tabulate | |
9898 | (package-with-python2 python-tabulate)) | |
1c4c8a33 SB |
9899 | |
9900 | (define-public python-kazoo | |
9901 | (package | |
9902 | (name "python-kazoo") | |
9903 | (version "2.2.1") | |
9904 | (source | |
9905 | (origin | |
9906 | (method url-fetch) | |
9907 | (uri (pypi-uri "kazoo" version)) | |
9908 | (sha256 | |
9909 | (base32 | |
9910 | "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj")))) | |
9911 | (build-system python-build-system) | |
9912 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper | |
c18899e8 SB |
9913 | (propagated-inputs |
9914 | `(("python-six" ,python-six))) | |
1c4c8a33 SB |
9915 | (home-page "https://kazoo.readthedocs.org") |
9916 | (synopsis "High-level Zookeeper client library") | |
9917 | (description | |
9918 | "Kazoo is a Python client library for the Apache Zookeeper distributed | |
9919 | application service. It is designed to be easy to use and to avoid common | |
9920 | programming errors.") | |
3f641af0 | 9921 | (license license:asl2.0))) |
1c4c8a33 SB |
9922 | |
9923 | (define-public python2-kazoo | |
9924 | (package-with-python2 python-kazoo)) | |
45dda35e SB |
9925 | |
9926 | (define-public python-pykafka | |
9927 | (package | |
9928 | (name "python-pykafka") | |
9929 | (version "2.4.0") | |
9930 | (source (origin | |
9931 | (method url-fetch) | |
c6bccf71 EF |
9932 | (uri (string-append |
9933 | "https://pypi.python.org/packages/8b/3e/" | |
9934 | "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/" | |
9935 | "pykafka-" version ".tar.gz")) | |
45dda35e SB |
9936 | (sha256 |
9937 | (base32 | |
9938 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) | |
9939 | (build-system python-build-system) | |
9940 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. | |
c8fa3d9b | 9941 | (propagated-inputs |
45dda35e SB |
9942 | `(("python-gevent" ,python-gevent) |
9943 | ("python-kazoo" ,python-kazoo) | |
45dda35e SB |
9944 | ("python-tabulate" ,python-tabulate))) |
9945 | (inputs | |
9946 | `(("librdkafka" ,librdkafka))) | |
9947 | (home-page "https://pykafka.readthedocs.io/") | |
9948 | (synopsis "Apache Kafka client for Python") | |
9949 | (description | |
9950 | "PyKafka is a client for the Apache Kafka distributed messaging system. | |
9951 | It includes Python implementations of Kafka producers and consumers, which | |
9952 | are optionally backed by a C extension built on librdkafka.") | |
3f641af0 | 9953 | (license license:asl2.0))) |
45dda35e SB |
9954 | |
9955 | (define-public python2-pykafka | |
9956 | (package-with-python2 python-pykafka)) | |
a44fd439 DM |
9957 | |
9958 | (define-public python-wcwidth | |
9959 | (package | |
9960 | (name "python-wcwidth") | |
9961 | (version "0.1.6") | |
9962 | (source | |
9963 | (origin | |
9964 | (method url-fetch) | |
9965 | (uri (string-append | |
9966 | "https://pypi.python.org/packages/" | |
9967 | "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/" | |
9968 | "wcwidth-" version ".tar.gz")) | |
9969 | (sha256 | |
9970 | (base32 | |
9971 | "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw")))) | |
9972 | (build-system python-build-system) | |
9973 | (home-page "https://github.com/jquast/wcwidth") | |
66e07664 | 9974 | (synopsis "Measure number of terminal column cells of wide-character codes") |
a44fd439 DM |
9975 | (description "Wcwidth measures the number of terminal column cells of |
9976 | wide-character codes. It is useful for those implementing a terminal emulator, | |
9977 | or programs that carefully produce output to be interpreted by one. It is a | |
9978 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions | |
9979 | specified in POSIX.1-2001 and POSIX.1-2008.") | |
f210e944 | 9980 | (license license:expat))) |
a44fd439 DM |
9981 | |
9982 | (define-public python2-wcwidth | |
f210e944 | 9983 | (package-with-python2 python-wcwidth)) |
0de78c95 DP |
9984 | |
9985 | (define-public python2-jsonrpclib | |
9986 | (package | |
9987 | (name "python2-jsonrpclib") | |
9988 | (version "0.1.7") | |
9989 | (source (origin | |
9990 | (method url-fetch) | |
9991 | (uri (string-append | |
9992 | "https://pypi.python.org/packages/source/j/jsonrpclib/" | |
9993 | "jsonrpclib-" version ".tar.gz")) | |
9994 | (sha256 | |
9995 | (base32 | |
9996 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) | |
9997 | (build-system python-build-system) | |
0de78c95 DP |
9998 | (arguments |
9999 | `(#:tests? #f | |
10000 | #:python ,python-2)) | |
10001 | (home-page "https://github.com/joshmarshall/jsonrpclib/") | |
10002 | (synopsis "Implementation of JSON-RPC specification for Python") | |
10003 | (description | |
10004 | "This library is an implementation of the JSON-RPC specification. | |
10005 | It supports both the original 1.0 specification, as well as the | |
10006 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, | |
10007 | etc.") | |
3f641af0 | 10008 | (license license:asl2.0))) |
9250b0f3 SB |
10009 | |
10010 | (define-public python-chai | |
10011 | (package | |
10012 | (name "python-chai") | |
10013 | (version "1.1.1") | |
10014 | (source (origin | |
10015 | (method url-fetch) | |
10016 | (uri (pypi-uri "chai" version)) | |
10017 | (sha256 | |
10018 | (base32 | |
10019 | "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) | |
10020 | (build-system python-build-system) | |
9250b0f3 SB |
10021 | (home-page "https://github.com/agoragames/chai") |
10022 | (synopsis "Mocking framework for Python") | |
10023 | (description | |
10024 | "Chai provides an api for mocking, stubbing and spying your python | |
10025 | objects, patterned after the Mocha library for Ruby.") | |
3f641af0 | 10026 | (license license:bsd-3))) |
9250b0f3 SB |
10027 | |
10028 | (define-public python2-chai | |
10029 | (package-with-python2 python-chai)) | |
10030 | ||
ae43baa8 SB |
10031 | (define-public python-arrow |
10032 | (package | |
10033 | (name "python-arrow") | |
10034 | (version "0.8.0") | |
10035 | (source (origin | |
10036 | (method url-fetch) | |
10037 | (uri (pypi-uri "arrow" version)) | |
10038 | (sha256 | |
10039 | (base32 | |
10040 | "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j")))) | |
10041 | (build-system python-build-system) | |
10042 | (native-inputs | |
f3b98f4f | 10043 | `(;; For testing |
ae43baa8 SB |
10044 | ("python-chai" ,python-chai) |
10045 | ("python-simplejson" ,python-simplejson))) | |
36aed736 SB |
10046 | (propagated-inputs |
10047 | `(("python-dateutil" ,python-dateutil-2))) | |
ae43baa8 SB |
10048 | (home-page "https://github.com/crsmithdev/arrow/") |
10049 | (synopsis "Dates and times for Python") | |
10050 | (description | |
10051 | "Arrow is a Python library to creating, manipulating, formatting and | |
10052 | converting dates, times, and timestamps. It implements and updates the | |
10053 | datetime type.") | |
3f641af0 | 10054 | (license license:asl2.0))) |
ae43baa8 SB |
10055 | |
10056 | (define-public python2-arrow | |
10057 | (package-with-python2 python-arrow)) | |
10058 | ||
1f2b62a4 SB |
10059 | (define-public python-inflection |
10060 | (package | |
10061 | (name "python-inflection") | |
10062 | (version "0.3.1") | |
10063 | (source | |
10064 | (origin (method url-fetch) | |
10065 | (uri (pypi-uri "inflection" version)) | |
10066 | (sha256 | |
10067 | (base32 | |
10068 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) | |
10069 | (build-system python-build-system) | |
1f2b62a4 SB |
10070 | (home-page "http://github.com/jpvanhal/inflection") |
10071 | (synopsis "Python string transformation library") | |
10072 | (description | |
10073 | "Inflection is a string transformation library. It singularizes | |
10074 | and pluralizes English words, and transforms strings from CamelCase to | |
10075 | underscored string.") | |
10076 | (license license:expat))) | |
10077 | ||
10078 | (define-public python2-inflection | |
10079 | (package-with-python2 python-inflection)) | |
10080 | ||
18995566 SB |
10081 | (define-public python-pylev |
10082 | (package | |
10083 | (name "python-pylev") | |
10084 | (version "1.3.0") | |
10085 | (source (origin | |
10086 | (method url-fetch) | |
10087 | (uri (pypi-uri "pylev" version)) | |
10088 | (sha256 | |
10089 | (base32 | |
10090 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) | |
10091 | (build-system python-build-system) | |
18995566 SB |
10092 | (home-page "http://github.com/toastdriven/pylev") |
10093 | (synopsis "Levenshtein distance implementation in Python") | |
10094 | (description "Pure Python Levenshtein implementation, based off the | |
10095 | Wikipedia code samples at | |
10096 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") | |
3f641af0 | 10097 | (license license:bsd-3))) |
18995566 SB |
10098 | |
10099 | (define-public python2-pylev | |
10100 | (package-with-python2 python-pylev)) | |
10101 | ||
f5deff7a SB |
10102 | (define-public python-cleo |
10103 | (package | |
10104 | (name "python-cleo") | |
10105 | (version "0.4.1") | |
10106 | (source (origin | |
10107 | (method url-fetch) | |
10108 | (uri (pypi-uri "cleo" version)) | |
10109 | (sha256 | |
10110 | (base32 | |
10111 | "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva")))) | |
10112 | (build-system python-build-system) | |
10113 | (native-inputs | |
f3b98f4f | 10114 | `(;; For testing |
f5deff7a SB |
10115 | ("python-mock" ,python-mock) |
10116 | ("python-pytest" ,python-pytest))) | |
9403150a SB |
10117 | (propagated-inputs |
10118 | `(("python-psutil" ,python-psutil) | |
10119 | ("python-pylev" ,python-pylev))) | |
f5deff7a SB |
10120 | (home-page "https://github.com/sdispater/cleo") |
10121 | (synopsis "Command-line arguments library for Python") | |
10122 | (description | |
10123 | "Cleo allows you to create command-line commands with signature in | |
10124 | docstring and colored output.") | |
10125 | (license license:expat))) | |
10126 | ||
10127 | (define-public python2-cleo | |
10128 | (package-with-python2 python-cleo)) | |
10129 | ||
77cadb43 SB |
10130 | (define-public python-lazy-object-proxy |
10131 | (package | |
10132 | (name "python-lazy-object-proxy") | |
10133 | (version "1.2.2") | |
10134 | (source (origin | |
10135 | (method url-fetch) | |
10136 | (uri (pypi-uri "lazy-object-proxy" version)) | |
10137 | (sha256 | |
10138 | (base32 | |
10139 | "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) | |
10140 | (build-system python-build-system) | |
77cadb43 SB |
10141 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") |
10142 | (synopsis "Lazy object proxy for python") | |
10143 | (description | |
10144 | "Lazy object proxy is an object that wraps a callable but defers the call | |
10145 | until the object is actually required, and caches the result of said call.") | |
3f641af0 | 10146 | (license license:bsd-2))) |
77cadb43 SB |
10147 | |
10148 | (define-public python2-lazy-object-proxy | |
10149 | (package-with-python2 python-lazy-object-proxy)) | |
10150 | ||
5477e05f SB |
10151 | (define-public python-dnspython |
10152 | (package | |
10153 | (name "python-dnspython") | |
6c514128 | 10154 | (version "1.15.0") |
5477e05f SB |
10155 | (source (origin |
10156 | (method url-fetch) | |
10157 | (uri (string-append "http://www.dnspython.org/kits/" | |
10158 | version "/dnspython-" version ".tar.gz")) | |
10159 | (sha256 | |
10160 | (base32 | |
6c514128 | 10161 | "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i")))) |
5477e05f SB |
10162 | (build-system python-build-system) |
10163 | (arguments '(#:tests? #f)) ; XXX: requires internet access | |
5477e05f SB |
10164 | (home-page "http://www.dnspython.org") |
10165 | (synopsis "DNS toolkit for Python") | |
10166 | (description | |
10167 | "dnspython is a DNS toolkit for Python. It supports almost all record | |
10168 | types. It can be used for queries, zone transfers, and dynamic updates. | |
10169 | It supports TSIG authenticated messages and EDNS0.") | |
10170 | (license license:expat))) | |
10171 | ||
10172 | (define-public python2-dnspython | |
10173 | (package-with-python2 python-dnspython)) | |
10174 | ||
22711e25 SB |
10175 | (define-public python-email-validator |
10176 | (package | |
10177 | (name "python-email-validator") | |
10178 | (version "1.0.1") | |
10179 | (source | |
10180 | (origin (method url-fetch) | |
10181 | (uri (pypi-uri "email_validator" version)) | |
10182 | (sha256 | |
10183 | (base32 | |
10184 | "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw")))) | |
10185 | (build-system python-build-system) | |
10186 | (arguments | |
10187 | '(#:phases | |
10188 | (modify-phases %standard-phases | |
10189 | (add-before 'build 'use-dnspython | |
10190 | (lambda _ | |
10191 | (substitute* "setup.py" | |
10192 | (("dnspython3") "dnspython")) | |
10193 | #t))))) | |
d42560bd | 10194 | (propagated-inputs |
22711e25 | 10195 | `(("python-dnspython" ,python-dnspython) |
d42560bd | 10196 | ("python-idna" ,python-idna))) |
22711e25 SB |
10197 | (home-page "https://github.com/JoshData/python-email-validator") |
10198 | (synopsis "Email address validation library for Python") | |
10199 | (description | |
10200 | "This library validates email address syntax and deliverability.") | |
3f641af0 | 10201 | (license license:cc0))) |
22711e25 SB |
10202 | |
10203 | (define-public python2-email-validator | |
10204 | (package-with-python2 python-email-validator)) | |
10205 | ||
8987d91e SB |
10206 | (define-public python-ukpostcodeparser |
10207 | (package | |
10208 | (name "python-ukpostcodeparser") | |
10209 | (version "1.0.3") | |
10210 | (source (origin | |
10211 | (method url-fetch) | |
10212 | (uri (pypi-uri "UkPostcodeParser" version)) | |
10213 | (sha256 | |
10214 | (base32 | |
10215 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) | |
10216 | (build-system python-build-system) | |
8987d91e SB |
10217 | (home-page "https://github.com/hamstah/ukpostcodeparser") |
10218 | (synopsis "UK Postcode parser for Python") | |
10219 | (description | |
10220 | "This library provides the @code{parse_uk_postcode} function for | |
10221 | parsing UK postcodes.") | |
10222 | (license license:expat))) | |
10223 | ||
10224 | (define-public python2-ukpostcodeparser | |
10225 | (package-with-python2 python-ukpostcodeparser)) | |
ea92ae01 SB |
10226 | |
10227 | (define-public python-fake-factory | |
10228 | (package | |
10229 | (name "python-fake-factory") | |
7adc698f | 10230 | (version "0.7.2") |
ea92ae01 SB |
10231 | (source (origin |
10232 | (method url-fetch) | |
10233 | (uri (pypi-uri "fake-factory" version)) | |
10234 | (sha256 | |
10235 | (base32 | |
7adc698f | 10236 | "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g")))) |
ea92ae01 | 10237 | (build-system python-build-system) |
ea92ae01 | 10238 | (native-inputs |
f3b98f4f | 10239 | `(;; For testing |
ea92ae01 SB |
10240 | ("python-email-validator" ,python-email-validator) |
10241 | ("python-mock" ,python-mock) | |
10242 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) | |
bbcd7297 SB |
10243 | (propagated-inputs |
10244 | `(("python-dateutil" ,python-dateutil-2) | |
10245 | ("python-six" ,python-six))) | |
7adc698f | 10246 | (home-page "https://github.com/joke2k/faker") |
ea92ae01 SB |
10247 | (synopsis "Python package that generates fake data") |
10248 | (description | |
10249 | "Faker is a Python package that generates fake data such as names, | |
10250 | addresses, and phone numbers.") | |
10251 | (license license:expat) | |
10252 | (properties `((python2-variant . ,(delay python2-fake-factory)))))) | |
10253 | ||
10254 | (define-public python2-fake-factory | |
10255 | (let ((base (package-with-python2 (strip-python2-variant | |
10256 | python-fake-factory)))) | |
10257 | (package | |
10258 | (inherit base) | |
24c9aa18 | 10259 | (propagated-inputs |
ea92ae01 | 10260 | `(("python2-ipaddress" ,python2-ipaddress) |
24c9aa18 | 10261 | ,@(package-propagated-inputs base)))))) |
ea92ae01 | 10262 | |
b49504fd SB |
10263 | (define-public python-pyaml |
10264 | (package | |
10265 | (name "python-pyaml") | |
10266 | (version "15.8.2") | |
10267 | (source (origin | |
10268 | (method url-fetch) | |
10269 | (uri (pypi-uri "pyaml" version)) | |
10270 | (sha256 | |
10271 | (base32 | |
10272 | "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w")))) | |
10273 | (build-system python-build-system) | |
b49504fd SB |
10274 | (propagated-inputs |
10275 | `(("python-pyyaml" ,python-pyyaml))) | |
10276 | (home-page "https://github.com/mk-fg/pretty-yaml") | |
10277 | (synopsis "YAML pretty-print library for Python") | |
10278 | (description | |
10279 | "pyaml is a PyYAML based python module to produce pretty and readable | |
10280 | YAML-serialized data.") | |
3f641af0 | 10281 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))) |
b49504fd SB |
10282 | |
10283 | (define-public python2-pyaml | |
10284 | (package-with-python2 python-pyaml)) | |
10285 | ||
347175a2 SB |
10286 | (define-public python-flexmock |
10287 | (package | |
10288 | (name "python-flexmock") | |
10289 | (version "0.10.2") | |
10290 | (source (origin | |
10291 | (method url-fetch) | |
10292 | (uri (pypi-uri "flexmock" version)) | |
10293 | (sha256 | |
10294 | (base32 | |
10295 | "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy")))) | |
10296 | (build-system python-build-system) | |
347175a2 SB |
10297 | (home-page "https://flexmock.readthedocs.org") |
10298 | (synopsis "Testing library for Python") | |
10299 | (description | |
10300 | "flexmock is a testing library for Python that makes it easy to create | |
10301 | mocks, stubs and fakes.") | |
3f641af0 | 10302 | (license license:bsd-3))) |
347175a2 SB |
10303 | |
10304 | (define-public python2-flexmock | |
10305 | (package-with-python2 python-flexmock)) | |
10306 | ||
5a744191 SB |
10307 | (define-public python-orator |
10308 | (package | |
10309 | (name "python-orator") | |
10310 | (version "0.8.2") | |
10311 | (source (origin | |
10312 | (method url-fetch) | |
10313 | (uri (pypi-uri "orator" version)) | |
10314 | (sha256 | |
10315 | (base32 | |
10316 | "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) | |
10317 | (build-system python-build-system) | |
10318 | (arguments '(#:tests? #f)) ; no tests | |
b2676030 | 10319 | (propagated-inputs |
5a744191 SB |
10320 | `(("python-arrow" ,python-arrow) |
10321 | ("python-blinker" ,python-blinker) | |
10322 | ("python-cleo" ,python-cleo) | |
10323 | ("python-fake-factory" ,python-fake-factory) | |
10324 | ("python-inflection" ,python-inflection) | |
10325 | ("python-lazy-object-proxy" ,python-lazy-object-proxy) | |
10326 | ("python-pyaml" ,python-pyaml) | |
5a744191 SB |
10327 | ("python-simplejson" ,python-simplejson) |
10328 | ("python-wrapt" ,python-wrapt))) | |
10329 | (home-page "https://orator-orm.com/") | |
10330 | (synopsis "ActiveRecord ORM for Python") | |
10331 | (description | |
10332 | "Orator provides a simple ActiveRecord-like Object Relational Mapping | |
10333 | implementation for Python.") | |
10334 | (license license:expat) | |
10335 | (properties `((python2-variant . ,(delay python2-orator)))))) | |
10336 | ||
10337 | (define-public python2-orator | |
10338 | (let ((base (package-with-python2 (strip-python2-variant python-orator)))) | |
10339 | (package | |
10340 | (inherit base) | |
06961617 | 10341 | (propagated-inputs |
5a744191 | 10342 | `(("python2-ipaddress" ,python2-ipaddress) |
06961617 | 10343 | ,@(package-propagated-inputs base)))))) |
f4155188 DM |
10344 | |
10345 | (define-public python-prompt-toolkit | |
10346 | (package | |
10347 | (name "python-prompt-toolkit") | |
d15e2ef0 | 10348 | (version "1.0.7") |
f4155188 DM |
10349 | (source |
10350 | (origin | |
10351 | (method url-fetch) | |
d15e2ef0 | 10352 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
f4155188 DM |
10353 | (sha256 |
10354 | (base32 | |
d15e2ef0 | 10355 | "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg")))) |
f4155188 | 10356 | (build-system python-build-system) |
bae18710 LF |
10357 | (arguments |
10358 | '(#:tests? #f)) ; The test suite uses some Windows-specific data types. | |
f22efa01 HG |
10359 | (propagated-inputs |
10360 | `(("python-wcwidth" ,python-wcwidth) | |
10361 | ("python-pygments" ,python-pygments))) | |
f4155188 DM |
10362 | (native-inputs `(("python-six" ,python-six))) |
10363 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") | |
10364 | (synopsis "Library for building command line interfaces in Python") | |
10365 | (description | |
10366 | "Prompt-Toolkit is a library for building interactive command line | |
10367 | interfaces in Python. It's like GNU Readline but it also features syntax | |
10368 | highlighting while typing, out-of-the-box multi-line input editing, advanced | |
10369 | code completion, incremental search, support for Chinese double-width | |
10370 | characters, mouse support, and auto suggestions.") | |
f210e944 | 10371 | (license license:bsd-3))) |
f4155188 DM |
10372 | |
10373 | (define-public python2-prompt-toolkit | |
f210e944 | 10374 | (package-with-python2 python-prompt-toolkit)) |
a502dfbf DM |
10375 | |
10376 | (define-public python-jedi | |
10377 | (package | |
10378 | (name "python-jedi") | |
10379 | (version "0.9.0") | |
10380 | (source | |
10381 | (origin | |
10382 | (method url-fetch) | |
10383 | (uri (pypi-uri "jedi" version)) | |
10384 | (sha256 | |
10385 | (base32 | |
10386 | "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) | |
10387 | (build-system python-build-system) | |
10388 | (home-page "https://github.com/davidhalter/jedi") | |
10389 | (synopsis | |
10390 | "Autocompletion for Python that can be used for text editors") | |
10391 | (description | |
10392 | "Jedi is an autocompletion tool for Python that can be used for text editors.") | |
f210e944 | 10393 | (license license:expat))) |
a502dfbf DM |
10394 | |
10395 | (define-public python2-jedi | |
f210e944 | 10396 | (package-with-python2 python-jedi)) |
c2f0dc6e DM |
10397 | |
10398 | (define-public ptpython | |
10399 | (package | |
10400 | (name "ptpython") | |
10401 | (version "0.34") | |
10402 | (source (origin | |
10403 | (method url-fetch) | |
10404 | (uri (pypi-uri "ptpython" version)) | |
10405 | (sha256 | |
10406 | (base32 | |
10407 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) | |
10408 | (build-system python-build-system) | |
f22efa01 | 10409 | (propagated-inputs |
c2f0dc6e DM |
10410 | `(("python-docopt" ,python-docopt) |
10411 | ("python-jedi" ,python-jedi) | |
10412 | ("python-prompt-toolkit" ,python-prompt-toolkit) | |
f3b98f4f | 10413 | ("python-pygments" ,python-pygments))) |
c2f0dc6e DM |
10414 | (home-page "https://github.com/jonathanslenders/ptpython") |
10415 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") | |
10416 | (description | |
10417 | "ptpython is a Python read-eval-print loop with IDE-like features. | |
10418 | It supports syntax highlighting, multiline editing, autocompletion, mouse, | |
10419 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters | |
10420 | etc.") | |
3f641af0 | 10421 | (license license:bsd-3) |
c2f0dc6e DM |
10422 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
10423 | ||
10424 | (define-public ptpython-2 | |
10425 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) | |
10426 | (package | |
10427 | (inherit base) | |
10428 | (name "ptpython2")))) | |
b227f0be | 10429 | |
b04a52a6 DJ |
10430 | (define-public python-requests-oauthlib |
10431 | (package | |
10432 | (name "python-requests-oauthlib") | |
10433 | (version "0.6.2") | |
10434 | (source | |
10435 | (origin | |
10436 | (method url-fetch) | |
10437 | (uri (pypi-uri "requests-oauthlib" version)) | |
10438 | (sha256 | |
10439 | (base32 | |
10440 | "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) | |
10441 | (build-system python-build-system) | |
10442 | (arguments | |
10443 | `(#:phases | |
10444 | (modify-phases %standard-phases | |
10445 | ;; removes tests that require network access | |
10446 | (add-before 'check 'pre-check | |
10447 | (lambda _ | |
10448 | (delete-file "tests/test_core.py") | |
10449 | #t))))) | |
10450 | (native-inputs | |
10451 | `(("python-requests-mock" ,python-requests-mock) | |
10452 | ("python-mock" ,python-mock))) | |
f22efa01 | 10453 | (propagated-inputs |
b04a52a6 DJ |
10454 | `(("python-oauthlib" ,python-oauthlib) |
10455 | ("python-requests" ,python-requests))) | |
10456 | (home-page | |
10457 | "https://github.com/requests/requests-oauthlib") | |
10458 | (synopsis | |
10459 | "OAuthlib authentication support for Requests") | |
10460 | (description | |
10461 | "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to | |
10462 | provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") | |
f210e944 | 10463 | (license license:isc))) |
b04a52a6 DJ |
10464 | |
10465 | (define-public python2-requests-oauthlib | |
f210e944 | 10466 | (package-with-python2 python-requests-oauthlib)) |
b04a52a6 | 10467 | |
b227f0be | 10468 | (define-public python-stem |
10469 | (package | |
10470 | (name "python-stem") | |
10471 | (version "1.4.1b") | |
10472 | (source | |
10473 | (origin | |
10474 | (method url-fetch) | |
10475 | (uri (pypi-uri "stem" version ".tar.bz2")) | |
10476 | (sha256 | |
10477 | (base32 | |
10478 | "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7")))) | |
10479 | (build-system python-build-system) | |
10480 | (arguments | |
10481 | `(#:phases | |
10482 | (modify-phases %standard-phases | |
10483 | (replace 'check | |
10484 | (lambda _ | |
10485 | (zero? (system* "./run_tests.py" "--unit"))))))) | |
10486 | (native-inputs | |
10487 | `(("python-mock" ,python-mock) | |
10488 | ("python-pep8" ,python-pep8) | |
10489 | ("python-pyflakes" ,python-pyflakes))) | |
f22efa01 | 10490 | (propagated-inputs |
b227f0be | 10491 | `(("python-pycrypto" ,python-pycrypto))) |
10492 | (home-page "https://stem.torproject.org/") | |
10493 | (synopsis | |
10494 | "Python controller library that allows applications to interact with Tor") | |
10495 | (description | |
10496 | "Stem is a Python controller library for Tor. With it you can use Tor's | |
10497 | control protocol to script against the Tor process and read descriptor data | |
10498 | relays publish about themselves.") | |
3f641af0 | 10499 | (license license:lgpl3))) |
b227f0be | 10500 | |
10501 | (define-public python2-stem | |
10502 | (package-with-python2 python-stem)) | |
517a6c0c DM |
10503 | |
10504 | (define-public python-pyserial | |
10505 | (package | |
10506 | (name "python-pyserial") | |
10507 | (version "3.1.1") | |
10508 | (source | |
10509 | (origin | |
10510 | (method url-fetch) | |
10511 | (uri (pypi-uri "pyserial" version)) | |
10512 | (sha256 | |
10513 | (base32 | |
10514 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) | |
10515 | (build-system python-build-system) | |
10516 | (home-page | |
10517 | "https://github.com/pyserial/pyserial") | |
10518 | (synopsis "Python Serial Port Bindings") | |
10519 | (description "@code{pyserial} provide serial port bindings for Python. It | |
10520 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS | |
10521 | and/or Xon/Xoff. The port is accessed in RAW mode.") | |
f210e944 | 10522 | (license license:bsd-3))) |
517a6c0c DM |
10523 | |
10524 | (define-public python2-pyserial | |
f210e944 | 10525 | (package-with-python2 python-pyserial)) |
6eb7af2a DJ |
10526 | |
10527 | (define-public python-kivy | |
10528 | (package | |
10529 | (name "python-kivy") | |
10530 | (version "1.9.1") | |
10531 | (source | |
10532 | (origin | |
10533 | (method url-fetch) | |
10534 | (uri (pypi-uri "kivy" version)) | |
10535 | (file-name (string-append name "-" version ".tar.gz")) | |
10536 | (sha256 | |
10537 | (base32 | |
10538 | "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19")))) | |
10539 | (build-system python-build-system) | |
10540 | (arguments | |
10541 | `(#:tests? #f ; Tests require many optional packages | |
10542 | #:phases | |
10543 | (modify-phases %standard-phases | |
10544 | (replace 'build (lambda _ (zero? (system* "make" "force")))) | |
10545 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths | |
10546 | (lambda* (#:key inputs #:allow-other-keys) | |
10547 | (setenv "KIVY_SDL2_PATH" | |
10548 | (string-append (assoc-ref inputs "sdl-union") | |
10549 | "/include/SDL2")) | |
10550 | #t))))) | |
10551 | (native-inputs | |
f2516de2 HG |
10552 | `(("pkg-config" ,pkg-config) |
10553 | ("python-cython" ,python-cython))) | |
6eb7af2a | 10554 | (inputs |
f2516de2 | 10555 | `(("gstreamer" ,gstreamer) |
6eb7af2a DJ |
10556 | ("mesa" ,mesa) |
10557 | ("sdl-union" | |
10558 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) | |
10559 | (home-page "http://kivy.org") | |
10560 | (synopsis | |
10561 | "Multitouch application framework") | |
10562 | (description | |
10563 | "A software library for rapid development of | |
10564 | hardware-accelerated multitouch applications.") | |
10565 | (license license:expat))) | |
10566 | ||
10567 | (define-public python2-kivy | |
10568 | (package-with-python2 python-kivy)) | |
10569 | ||
10570 | (define-public python-kivy-next | |
10571 | (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe") | |
10572 | (revision "1")) | |
10573 | (package (inherit python-kivy) | |
10574 | (name "python-kivy-next") | |
d80a71eb | 10575 | (version (string-append "1.9.1-" revision "." |
6eb7af2a DJ |
10576 | (string-take commit 7))) |
10577 | (source | |
10578 | (origin | |
10579 | (method git-fetch) | |
10580 | (uri (git-reference | |
10581 | (url "https://github.com/kivy/kivy") | |
10582 | (commit commit))) | |
10583 | (file-name (string-append name "-" version "-checkout")) | |
10584 | (sha256 | |
10585 | (base32 | |
10586 | "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p"))))))) | |
10587 | ||
10588 | (define-public python2-kivy-next | |
10589 | (package-with-python2 python-kivy-next)) | |
8794bd8b DC |
10590 | |
10591 | (define-public python-binaryornot | |
10592 | (package | |
10593 | (name "python-binaryornot") | |
10594 | (version "0.4.0") | |
10595 | (source (origin | |
10596 | (method url-fetch) | |
10597 | (uri (pypi-uri "binaryornot" version)) | |
10598 | (sha256 | |
10599 | (base32 | |
10600 | "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) | |
10601 | (build-system python-build-system) | |
f22efa01 | 10602 | (propagated-inputs |
8794bd8b DC |
10603 | `(("python-chardet" ,python-chardet) |
10604 | ("python-hypothesis" ,python-hypothesis))) | |
10605 | (home-page "https://github.com/audreyr/binaryornot") | |
10606 | (synopsis "Package to check if a file is binary or text") | |
10607 | (description "Ultra-lightweight pure Python package to check if a file is | |
10608 | binary or text.") | |
10609 | (license license:bsd-3) | |
10610 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) | |
10611 | ||
10612 | (define-public python2-binaryornot | |
10613 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) | |
10614 | (package (inherit base) | |
f22efa01 | 10615 | (propagated-inputs |
8794bd8b | 10616 | `(("python2-enum34" ,python2-enum34) |
f22efa01 | 10617 | ,@(package-propagated-inputs base)))))) |
a9ac982a DC |
10618 | |
10619 | (define-public python-nltk | |
10620 | (package | |
10621 | (name "python-nltk") | |
10622 | (version "3.2.1") | |
10623 | (source (origin | |
10624 | (method url-fetch) | |
10625 | (uri (pypi-uri "nltk" version)) | |
10626 | (sha256 | |
10627 | (base32 | |
10628 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) | |
10629 | (build-system python-build-system) | |
59f12985 LF |
10630 | (arguments |
10631 | '(;; The tests require some extra resources to be downloaded. | |
10632 | ;; TODO Try packaging these resources. | |
10633 | #:tests? #f)) | |
a9ac982a DC |
10634 | (home-page "http://nltk.org/") |
10635 | (synopsis "Natural Language Toolkit") | |
10636 | (description "It provides interfaces to over 50 corpora and lexical | |
10637 | resources such as WordNet, along with a suite of text processing libraries | |
10638 | for classification, tokenization, stemming, tagging, parsing, and semantic | |
10639 | reasoning, wrappers for natural language processing libraries.") | |
f210e944 | 10640 | (license license:asl2.0))) |
a9ac982a DC |
10641 | |
10642 | (define-public python2-nltk | |
f210e944 | 10643 | (package-with-python2 python-nltk)) |
691cd90d DC |
10644 | |
10645 | (define-public python-pymongo | |
10646 | (package | |
10647 | (name "python-pymongo") | |
10648 | (version "3.3.0") | |
10649 | (source (origin | |
10650 | (method url-fetch) | |
10651 | (uri (pypi-uri "pymongo" version)) | |
10652 | (sha256 | |
10653 | (base32 | |
10654 | "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) | |
10655 | (build-system python-build-system) | |
f22efa01 | 10656 | (propagated-inputs |
691cd90d DC |
10657 | `(("python-certifi" ,python-certifi))) |
10658 | (home-page "http://github.com/mongodb/mongo-python-driver") | |
10659 | (synopsis "Python driver for MongoDB") | |
10660 | (description "Python driver for MongoDB.") | |
f210e944 | 10661 | (license license:asl2.0))) |
691cd90d DC |
10662 | |
10663 | (define-public python2-pymongo | |
f210e944 | 10664 | (package-with-python2 python-pymongo)) |
6a6c9d43 DC |
10665 | |
10666 | (define-public python-sh | |
10667 | (package | |
10668 | (name "python-sh") | |
10669 | (version "1.11") | |
10670 | (source (origin | |
10671 | (method url-fetch) | |
10672 | (uri (pypi-uri "sh" version)) | |
10673 | (sha256 | |
10674 | (base32 | |
10675 | "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) | |
10676 | (build-system python-build-system) | |
10677 | (arguments | |
10678 | `(#:tests? #f)) ; no tests | |
10679 | (home-page "https://github.com/amoffat/sh") | |
10680 | (synopsis "Python subprocess interface") | |
10681 | (description "Abstracts process invocation by providing a function | |
10682 | interface for programs.") | |
f210e944 | 10683 | (license license:expat))) |
6a6c9d43 DC |
10684 | |
10685 | (define-public python2-sh | |
f210e944 | 10686 | (package-with-python2 python-sh)) |
05b59190 | 10687 | |
25702397 EF |
10688 | (define-public python-consul |
10689 | (package | |
10690 | (name "python-consul") | |
10691 | (version "0.6.1") | |
10692 | (source | |
10693 | (origin | |
10694 | (method url-fetch) | |
10695 | (uri (pypi-uri "python-consul" version)) | |
10696 | (sha256 | |
10697 | (base32 | |
10698 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) | |
10699 | (build-system python-build-system) | |
10700 | (native-inputs | |
10701 | `(("python-pytest" ,python-pytest) | |
10702 | ("python-requests" ,python-requests) | |
10703 | ("python-six" ,python-six))) | |
10704 | (home-page "https://github.com/cablehead/python-consul") | |
10705 | (synopsis "Python client for Consul") | |
10706 | (description | |
10707 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service | |
10708 | discovery, monitoring and configuration.") | |
10709 | (license license:expat))) | |
10710 | ||
10711 | (define-public python2-consul | |
f210e944 | 10712 | (package-with-python2 python-consul)) |
25702397 | 10713 | |
05b59190 DC |
10714 | (define-public python-schematics |
10715 | (package | |
10716 | (name "python-schematics") | |
10717 | (version "1.1.1") | |
10718 | (source | |
10719 | (origin | |
10720 | (method url-fetch) | |
10721 | (uri (string-append | |
10722 | "https://github.com/schematics/schematics/archive/v" version ".tar.gz")) | |
10723 | (file-name (string-append name "-" version ".tar.gz")) | |
10724 | (sha256 | |
10725 | (base32 | |
10726 | "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l")))) | |
10727 | (build-system python-build-system) | |
f22efa01 | 10728 | (propagated-inputs |
05b59190 DC |
10729 | `(("python-six" ,python-six))) |
10730 | (arguments | |
10731 | `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed | |
10732 | ; version requirements (eg python-coveralls) | |
10733 | (home-page "https://github.com/schematics/schematics") | |
10734 | (synopsis "Python Data Structures for Humans") | |
10735 | (description "Python Data Structures for Humans.") | |
f210e944 | 10736 | (license license:bsd-3))) |
05b59190 DC |
10737 | |
10738 | (define-public python2-schematics | |
f210e944 | 10739 | (package-with-python2 python-schematics)) |
d6907ff7 DC |
10740 | |
10741 | (define-public python-publicsuffix | |
10742 | (package | |
10743 | (name "python-publicsuffix") | |
10744 | (version "1.1.0") | |
10745 | (source (origin | |
10746 | (method url-fetch) | |
10747 | (uri (pypi-uri "publicsuffix" version)) | |
10748 | (sha256 | |
10749 | (base32 | |
10750 | "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf")))) | |
10751 | (build-system python-build-system) | |
10752 | (arguments | |
10753 | `(#:tests? #f)) ; tests use the internet | |
10754 | (home-page "https://www.tablix.org/~avian/git/publicsuffix.git") | |
10755 | (synopsis "Get suffix for a domain name") | |
10756 | (description "Get a public suffix for a domain name using the Public Suffix | |
10757 | List.") | |
f210e944 | 10758 | (license license:expat))) |
d6907ff7 DC |
10759 | |
10760 | (define-public python2-publicsuffix | |
f210e944 | 10761 | (package-with-python2 python-publicsuffix)) |
b2319996 DC |
10762 | |
10763 | (define-public python-publicsuffix2 | |
10764 | (package | |
10765 | (name "python-publicsuffix2") | |
10766 | (version "2.20160621") | |
10767 | (source | |
10768 | (origin | |
10769 | (method url-fetch) | |
10770 | (uri (pypi-uri "publicsuffix2" version ".tar.bz2")) | |
10771 | (sha256 | |
10772 | (base32 | |
10773 | "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) | |
10774 | (build-system python-build-system) | |
10797a0a LF |
10775 | (arguments |
10776 | '(#:tests? #f)) ; The test suite requires network access. | |
b2319996 DC |
10777 | (home-page "https://github.com/pombredanne/python-publicsuffix2") |
10778 | (synopsis "Get a public suffix for a domain name using the Public Suffix List") | |
10779 | (description "Get a public suffix for a domain name using the Public Suffix | |
10780 | List. Forked from and using the same API as the publicsuffix package.") | |
f210e944 | 10781 | (license (list license:expat license:mpl2.0)))) |
b2319996 DC |
10782 | |
10783 | (define-public python2-publicsuffix2 | |
f210e944 | 10784 | (package-with-python2 python-publicsuffix2)) |
81f1515d DC |
10785 | |
10786 | (define-public python-url | |
10787 | (package | |
10788 | (name "python-url") | |
10789 | (version "0.2.0") | |
10790 | (source (origin | |
10791 | (method url-fetch) | |
10792 | (uri (pypi-uri "url" version)) | |
10793 | (sha256 | |
10794 | (base32 | |
10795 | "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) | |
10796 | (build-system python-build-system) | |
f22efa01 | 10797 | (propagated-inputs |
81f1515d DC |
10798 | `(("python-publicsuffix" ,python-publicsuffix))) |
10799 | (native-inputs | |
10800 | `(("python-coverage" ,python-coverage) | |
10801 | ("python-nose" ,python-nose))) | |
10802 | (arguments | |
10803 | `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" | |
10804 | (home-page "http://github.com/seomoz/url-py") | |
10805 | (synopsis "URL Parsing") | |
10806 | (description "Library for parsing urls.") | |
10807 | (license license:expat) | |
10808 | (properties `((python2-variant . ,(delay python2-url)))))) | |
10809 | ||
10810 | (define-public python2-url | |
10811 | (let ((base (package-with-python2 (strip-python2-variant python-url)))) | |
10812 | (package (inherit base) | |
f22efa01 | 10813 | (propagated-inputs |
f210e944 | 10814 | `(("python2-publicsuffix" ,python2-publicsuffix)))))) |
974ee2c1 TS |
10815 | |
10816 | (define-public python-freezegun | |
10817 | (package | |
10818 | (name "python-freezegun") | |
10819 | (version "0.3.7") | |
10820 | (source | |
10821 | (origin | |
10822 | (method url-fetch) | |
10823 | (uri (pypi-uri "freezegun" version)) | |
10824 | (sha256 | |
10825 | (base32 | |
10826 | "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w")))) | |
10827 | (build-system python-build-system) | |
10828 | (native-inputs | |
10829 | `(("python-mock" ,python-mock) | |
10830 | ("python-nose" ,python-nose) | |
10831 | ("python-coverage" ,python-coverage) | |
10832 | ("python-dateutil-2" ,python-dateutil-2))) | |
f22efa01 | 10833 | (propagated-inputs |
974ee2c1 TS |
10834 | `(("python-six" ,python-six))) |
10835 | (arguments | |
10836 | `(#:phases (modify-phases %standard-phases | |
10837 | ;; The tests are normally executed via `make test`, but the PyPi | |
10838 | ;; package does not include the Makefile. | |
10839 | (replace 'check | |
10840 | (lambda _ | |
10841 | (zero? (system* "nosetests" "./tests/"))))))) | |
10842 | (home-page "https://github.com/spulec/freezegun") | |
10843 | (synopsis "Test utility for mocking the datetime module") | |
10844 | (description | |
10845 | "FreezeGun is a library that allows your python tests to travel through | |
10846 | time by mocking the datetime module.") | |
10847 | (license license:asl2.0))) | |
10848 | ||
10849 | (define-public python2-freezegun | |
f210e944 HG |
10850 | (package-with-python2 python-freezegun)) |
10851 | ||
dddcb25c MB |
10852 | |
10853 | (define-public python-odfpy | |
10854 | (package | |
10855 | (name "python-odfpy") | |
10856 | (version "1.3.3") | |
10857 | (source (origin | |
10858 | (method url-fetch) | |
10859 | (uri (pypi-uri "odfpy" version)) | |
10860 | (sha256 | |
10861 | (base32 | |
10862 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) | |
10863 | (arguments | |
10864 | `(#:modules ((srfi srfi-1) | |
10865 | (guix build python-build-system) | |
10866 | (guix build utils)) | |
10867 | #:phases | |
10868 | (modify-phases %standard-phases | |
10869 | (replace 'check | |
10870 | ;; The test runner invokes python2 and python3 for test*.py. | |
10871 | ;; To avoid having both in inputs, we replicate it here. | |
10872 | (lambda _ | |
10873 | (every (lambda (test-file) | |
10874 | (zero? (system* "python" test-file))) | |
10875 | (find-files "tests" "^test.*\\.py$"))))))) | |
10876 | (build-system python-build-system) | |
10877 | (home-page "https://github.com/eea/odfpy") | |
10878 | (synopsis "Python API and tools to manipulate OpenDocument files") | |
10879 | (description "Collection of libraries and utility programs written in | |
10880 | Python to manipulate OpenDocument 1.2 files.") | |
10881 | (license | |
10882 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a | |
10883 | ;; number of files with other licenses. | |
10884 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) | |
10885 | ||
10886 | (define-public python2-odfpy | |
10887 | (package-with-python2 python-odfpy)) | |
b30565bd MB |
10888 | |
10889 | (define-public python-cachecontrol | |
10890 | (package | |
10891 | (name "python-cachecontrol") | |
10892 | (version "0.11.6") | |
10893 | (source | |
10894 | (origin | |
10895 | (method url-fetch) | |
10896 | ;; Pypi does not have tests. | |
10897 | (uri (string-append | |
10898 | "https://github.com/ionrock/cachecontrol/archive/v" | |
10899 | version ".tar.gz")) | |
10900 | (file-name (string-append name "-" version ".tar.gz")) | |
10901 | (sha256 | |
10902 | (base32 | |
10903 | "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) | |
10904 | (build-system python-build-system) | |
10905 | (arguments | |
10906 | `(#:phases | |
10907 | (modify-phases %standard-phases | |
10908 | (replace 'check | |
10909 | (lambda _ | |
10910 | ;; Drop test that requires internet access. | |
10911 | (delete-file "tests/test_regressions.py") | |
10912 | (setenv "PYTHONPATH" | |
10913 | (string-append (getcwd) "/build/lib:" | |
10914 | (getenv "PYTHONPATH"))) | |
10915 | (zero? (system* "py.test" "-vv"))))))) | |
10916 | (native-inputs | |
10917 | `(("python-pytest" ,python-pytest) | |
10918 | ("python-redis" ,python-redis) | |
10919 | ("python-webtest" ,python-webtest) | |
10920 | ("python-mock" ,python-mock))) | |
10921 | (propagated-inputs | |
10922 | `(("python-requests" ,python-requests) | |
10923 | ("python-lockfile" ,python-lockfile))) | |
10924 | (home-page "https://github.com/ionrock/cachecontrol") | |
10925 | (synopsis "The httplib2 caching algorithms for use with requests") | |
10926 | (description "CacheControl is a port of the caching algorithms in | |
10927 | @code{httplib2} for use with @code{requests} session objects.") | |
f210e944 | 10928 | (license license:asl2.0))) |
b30565bd MB |
10929 | |
10930 | (define-public python2-cachecontrol | |
f210e944 | 10931 | (package-with-python2 python-cachecontrol)) |
243db824 DM |
10932 | |
10933 | (define-public python-lit | |
10934 | (package | |
10935 | (name "python-lit") | |
10936 | (version "0.5.0") | |
10937 | (source | |
10938 | (origin | |
10939 | (method url-fetch) | |
10940 | (uri (pypi-uri "lit" version)) | |
10941 | (sha256 | |
10942 | (base32 | |
10943 | "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y")))) | |
10944 | (build-system python-build-system) | |
10945 | (home-page "http://llvm.org/") | |
10946 | (synopsis "LLVM Software Testing Tool") | |
10947 | (description "@code{lit} is a portable tool for executing LLVM and Clang | |
10948 | style test suites, summarizing their results, and providing indication of | |
10949 | failures.") | |
f210e944 | 10950 | (license license:ncsa))) |
243db824 DM |
10951 | |
10952 | (define-public python2-lit | |
f210e944 | 10953 | (package-with-python2 python-lit)) |
66f95b20 MB |
10954 | |
10955 | (define-public python-pytest-pep8 | |
10956 | (package | |
10957 | (name "python-pytest-pep8") | |
10958 | (version "1.0.6") | |
10959 | (source (origin | |
10960 | (method url-fetch) | |
10961 | (uri (pypi-uri "pytest-pep8" version)) | |
10962 | (sha256 | |
10963 | (base32 | |
10964 | "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) | |
10965 | (build-system python-build-system) | |
10966 | (arguments | |
b41a05ce | 10967 | `(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues #8 and #12. |
66f95b20 MB |
10968 | (native-inputs |
10969 | `(("python-pytest" ,python-pytest))) | |
10970 | (propagated-inputs | |
10971 | `(("python-pep8" ,python-pep8))) | |
10972 | (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") | |
10973 | (synopsis "Py.test plugin to check PEP8 requirements") | |
10974 | (description "Pytest plugin for checking PEP8 compliance.") | |
f210e944 | 10975 | (license license:expat))) |
66f95b20 MB |
10976 | |
10977 | (define-public python2-pytest-pep8 | |
f210e944 | 10978 | (package-with-python2 python-pytest-pep8)) |
df94a6b5 MB |
10979 | |
10980 | (define-public python-pytest-flakes | |
10981 | (package | |
10982 | (name "python-pytest-flakes") | |
10983 | (version "1.0.1") | |
10984 | (source (origin | |
10985 | (method url-fetch) | |
10986 | (uri (pypi-uri "pytest-flakes" version)) | |
10987 | (sha256 | |
10988 | (base32 | |
10989 | "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) | |
10990 | (build-system python-build-system) | |
10991 | (arguments | |
b41a05ce | 10992 | `(#:phases |
df94a6b5 MB |
10993 | (modify-phases %standard-phases |
10994 | (delete 'check) | |
10995 | (add-after 'install 'check | |
05c2fd36 HG |
10996 | (lambda* (#:key outputs inputs #:allow-other-keys) |
10997 | ;; It's easier to run tests after install. | |
10998 | ;; Make installed package available for running the tests | |
10999 | (add-installed-pythonpath inputs outputs) | |
df94a6b5 MB |
11000 | (zero? (system* "py.test" "-vv"))))))) |
11001 | (native-inputs | |
11002 | `(("python-coverage" ,python-coverage) | |
11003 | ("python-pytest" ,python-pytest) | |
11004 | ("python-pytest-cache" ,python-pytest-cache) | |
11005 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
11006 | (propagated-inputs | |
11007 | `(("python-pyflakes" ,python-pyflakes))) | |
11008 | (home-page "https://github.com/fschulze/pytest-flakes") | |
11009 | (synopsis "Py.test plugin to check source code with pyflakes") | |
11010 | (description "Pytest plugin for checking Python source code with pyflakes.") | |
f210e944 | 11011 | (license license:expat))) |
df94a6b5 MB |
11012 | |
11013 | (define-public python2-pytest-flakes | |
f210e944 | 11014 | (package-with-python2 python-pytest-flakes)) |
5467ea62 MB |
11015 | |
11016 | (define-public python-natsort | |
11017 | (package | |
11018 | (name "python-natsort") | |
11019 | (version "5.0.1") | |
11020 | (source (origin | |
11021 | (method url-fetch) | |
11022 | (uri (pypi-uri "natsort" version)) | |
11023 | (sha256 | |
11024 | (base32 | |
11025 | "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja")))) | |
11026 | (build-system python-build-system) | |
11027 | (arguments | |
11028 | `(#:phases | |
11029 | (modify-phases %standard-phases | |
11030 | (add-before 'check 'set-cachedir | |
11031 | ;; Tests require write access to $HOME by default | |
11032 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) | |
11033 | (native-inputs | |
11034 | `(("python-hypothesis" ,python-hypothesis) | |
11035 | ("python-pytest-cache" ,python-pytest-cache) | |
11036 | ("python-pytest-cov" ,python-pytest-cov) | |
11037 | ("python-pytest-flakes" ,python-pytest-flakes) | |
11038 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
11039 | (propagated-inputs ; TODO: Add python-fastnumbers. | |
11040 | `(("python-pyicu" ,python-pyicu))) | |
11041 | (home-page "https://github.com/SethMMorton/natsort") | |
11042 | (synopsis "Natural sorting for python and shell") | |
11043 | (description | |
11044 | "Natsort lets you apply natural sorting on lists instead of | |
11045 | lexicographical. If you use the built-in @code{sorted} method in python | |
11046 | on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be | |
11047 | returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a | |
11048 | function @code{natsorted} that identifies numbers and sorts them separately | |
11049 | from strings. It can also sort version numbers, real numbers, mixed types | |
11050 | and more, and comes with a shell command @command{natsort} that exposes this | |
11051 | functionality in the command line.") | |
11052 | (license license:expat) | |
11053 | (properties `((python2-variant . ,(delay python2-natsort)))))) | |
11054 | ||
11055 | (define-public python2-natsort | |
11056 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) | |
11057 | (package (inherit base) | |
11058 | (native-inputs | |
00e10c6e | 11059 | `(("python2-pathlib" ,python2-pathlib) |
5467ea62 MB |
11060 | ("python2-mock" ,python2-mock) |
11061 | ("python2-enum34" ,python2-enum34) | |
11062 | ,@(package-native-inputs base)))))) | |
4efb9c54 SR |
11063 | |
11064 | (define-public python-glances | |
11065 | (package | |
11066 | (name "python-glances") | |
11067 | (version "2.7.1") | |
11068 | (source | |
11069 | (origin | |
11070 | (method url-fetch) | |
11071 | (uri (pypi-uri "Glances" version)) | |
11072 | (sha256 | |
11073 | (base32 | |
11074 | "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) | |
11075 | (build-system python-build-system) | |
f22efa01 | 11076 | (propagated-inputs |
4efb9c54 SR |
11077 | `(("python-psutil" ,python-psutil))) |
11078 | (home-page | |
11079 | "https://github.com/nicolargo/glances") | |
11080 | (synopsis | |
11081 | "A cross-platform curses-based monitoring tool") | |
11082 | (description | |
11083 | "Glances is a curses-based monitoring tool for a wide variety of platforms. | |
11084 | Glances uses the PsUtil library to get information from your system. It monitors | |
11085 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") | |
f210e944 | 11086 | (license license:lgpl3+))) |
4efb9c54 SR |
11087 | |
11088 | (define-public python2-glances | |
f210e944 | 11089 | (package-with-python2 python-glances)) |
05b7a593 EF |
11090 | |
11091 | (define-public python-graphql-core | |
11092 | (package | |
11093 | (name "python-graphql-core") | |
11094 | (version "0.5.3") | |
11095 | (source | |
11096 | (origin | |
11097 | (method url-fetch) | |
11098 | (uri (pypi-uri "graphql-core" version)) | |
11099 | (sha256 | |
11100 | (base32 | |
11101 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) | |
11102 | (build-system python-build-system) | |
11103 | (arguments | |
326f8285 LF |
11104 | `(#:tests? #f ; Tests require the unpackaged pytest-benchmark. |
11105 | #:phases | |
05b7a593 EF |
11106 | (modify-phases %standard-phases |
11107 | (add-after 'unpack 'patch-hardcoded-version | |
11108 | (lambda _ (substitute* | |
11109 | "setup.py" | |
11110 | (("'gevent==1.1rc1'") "'gevent'")) | |
11111 | #t))))) | |
11112 | (native-inputs | |
11113 | `(("python-gevent" ,python-gevent) | |
11114 | ("python-mock" ,python-mock) | |
11115 | ("python-pytest-mock" ,python-pytest-mock))) | |
f22efa01 | 11116 | (propagated-inputs |
05b7a593 EF |
11117 | `(("python-promise" ,python-promise) |
11118 | ("python-six" ,python-six))) | |
11119 | (home-page "https://github.com/graphql-python/graphql-core") | |
11120 | (synopsis "GraphQL implementation for Python") | |
11121 | (description | |
11122 | "GraphQL implementation for Python. GraphQL is a data query language and | |
11123 | runtime designed and used to request and deliver data to mobile and web apps. | |
11124 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} | |
11125 | to Python.") | |
05b7a593 EF |
11126 | (license license:expat))) |
11127 | ||
11128 | (define-public python2-graphql-core | |
f210e944 | 11129 | (package-with-python2 python-graphql-core)) |
7ee51575 EF |
11130 | |
11131 | (define-public python-graphql-relay | |
11132 | (package | |
11133 | (name "python-graphql-relay") | |
11134 | (version "0.4.4") | |
11135 | (source | |
11136 | (origin | |
11137 | (method url-fetch) | |
11138 | (uri (pypi-uri "graphql-relay" version)) | |
11139 | (sha256 | |
11140 | (base32 | |
11141 | "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi")))) | |
11142 | (build-system python-build-system) | |
11143 | (native-inputs | |
11144 | `(("python-pytest" ,python-pytest))) | |
f22efa01 | 11145 | (propagated-inputs |
7ee51575 EF |
11146 | `(("python-graphql-core" ,python-graphql-core) |
11147 | ("python-promise" ,python-promise) | |
11148 | ("python-six" ,python-six))) | |
11149 | (home-page "https://github.com/graphql-python/graphql-relay-py") | |
11150 | (synopsis "Relay implementation for Python") | |
11151 | (description | |
11152 | "This is a library to allow the easy creation of Relay-compliant servers | |
11153 | using the GraphQL Python reference implementation of a GraphQL server. It | |
11154 | should be noted that the code is a exact port of the original | |
11155 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} | |
11156 | from Facebook.") | |
7ee51575 EF |
11157 | (license license:expat))) |
11158 | ||
11159 | (define-public python2-graphql-relay | |
f210e944 | 11160 | (package-with-python2 python-graphql-relay)) |
ddc63a56 EF |
11161 | |
11162 | (define-public python-graphene | |
11163 | (package | |
11164 | (name "python-graphene") | |
11165 | (version "0.10.2") | |
11166 | (source | |
11167 | (origin | |
11168 | (method url-fetch) | |
11169 | (uri (pypi-uri "graphene" version)) | |
11170 | (sha256 | |
11171 | (base32 | |
11172 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) | |
11173 | (build-system python-build-system) | |
11174 | (native-inputs | |
11175 | `(("python-django-filter" ,python-django-filter) | |
11176 | ("python-mock" ,python-mock) | |
11177 | ("python-psycopg2" ,python-psycopg2) | |
11178 | ("python-pytest-django" ,python-pytest-django) | |
11179 | ("python-sqlalchemy-utils" ,python-sqlalchemy-utils))) | |
f22efa01 | 11180 | (propagated-inputs |
ddc63a56 EF |
11181 | `(("python-graphql-core" ,python-graphql-core) |
11182 | ("python-graphql-relay" ,python-graphql-relay) | |
11183 | ("python-iso8601" ,python-iso8601) | |
11184 | ("python-promise" ,python-promise) | |
11185 | ("python-six" ,python-six))) | |
11186 | (home-page "http://graphene-python.org/") | |
11187 | (synopsis "GraphQL Framework for Python") | |
11188 | (description | |
11189 | "Graphene is a Python library for building GraphQL schemas/types. | |
11190 | A GraphQL schema describes your data model, and provides a GraphQL server | |
11191 | with an associated set of resolve methods that know how to fetch data.") | |
11192 | (properties `((python2-variant . ,(delay python2-graphene)))) | |
11193 | (license license:expat))) | |
11194 | ||
11195 | (define-public python2-graphene | |
11196 | (let ((base (package-with-python2 | |
11197 | (strip-python2-variant python-graphene)))) | |
11198 | (package (inherit base) | |
11199 | (native-inputs | |
00e10c6e | 11200 | `(("python2-sqlalchemy" ,python2-sqlalchemy) |
ddc63a56 | 11201 | ,@(package-native-inputs base)))))) |
d488d5d6 EF |
11202 | |
11203 | (define-public python-nautilus | |
11204 | (package | |
11205 | (name "python-nautilus") | |
11206 | (version "0.4.9") | |
11207 | (source | |
11208 | (origin | |
11209 | (method url-fetch) | |
11210 | (uri (pypi-uri "nautilus" version)) | |
11211 | (sha256 | |
11212 | (base32 | |
11213 | "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) | |
11214 | (build-system python-build-system) | |
11215 | (arguments `(#:tests? #f)) ; fails to import test modules | |
f22efa01 | 11216 | (propagated-inputs |
d488d5d6 EF |
11217 | `(("python-bcrypt" ,python-bcrypt) |
11218 | ("python-click" ,python-click) | |
11219 | ("python-consul" ,python-consul) | |
11220 | ("python-graphql-core" ,python-graphql-core) | |
11221 | ("python-graphql-relay" ,python-graphql-relay) | |
11222 | ("python-graphene" ,python-graphene) | |
11223 | ("python-jinja2" ,python-jinja2) | |
11224 | ("python-nose2" ,python-nose2) | |
11225 | ("python-peewee" ,python-peewee) | |
11226 | ("python-pika" ,python-pika) | |
11227 | ("python-pycparser" ,python-pycparser) | |
11228 | ("python-requests" ,python-requests) | |
11229 | ("python-tornado" ,python-tornado) | |
11230 | ("python-wtforms" ,python-wtforms))) | |
11231 | (home-page "https://github.com/AlecAivazis/nautilus") | |
11232 | (synopsis "Library for creating microservice applications") | |
11233 | (description | |
11234 | "Nautilus is a framework for flux based microservices that looks to | |
11235 | provide extendible implementations of common aspects of a cloud so that you can | |
11236 | focus on building massively scalable web applications.") | |
11237 | (license license:expat))) | |
94cffc63 | 11238 | |
66d3f50a LF |
11239 | (define-public python-betamax |
11240 | (package | |
11241 | (name "python-betamax") | |
11242 | (version "0.8.0") | |
11243 | (source | |
11244 | (origin | |
11245 | (method url-fetch) | |
11246 | (uri (pypi-uri "betamax" version)) | |
11247 | (sha256 | |
11248 | (base32 | |
11249 | "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42")))) | |
11250 | (build-system python-build-system) | |
11251 | (arguments | |
11252 | '(;; Many tests fail because they require networking. | |
11253 | #:tests? #f)) | |
11254 | (inputs | |
11255 | `(("python-requests" ,python-requests))) | |
11256 | (home-page "https://github.com/sigmavirus24/betamax") | |
11257 | (synopsis "Record HTTP interactions with python-requests") | |
11258 | (description "Betamax will record your test suite's HTTP interactions and | |
11259 | replay them during future tests. It is designed to work with python-requests.") | |
f210e944 | 11260 | (license license:expat))) |
66d3f50a LF |
11261 | |
11262 | (define-public python2-betamax | |
f210e944 | 11263 | (package-with-python2 python-betamax)) |
ca0635b4 | 11264 | |
94cffc63 LF |
11265 | (define-public python-s3transfer |
11266 | (package | |
11267 | (name "python-s3transfer") | |
11268 | (version "0.1.8") | |
11269 | (source (origin | |
11270 | (method url-fetch) | |
11271 | (uri (pypi-uri "s3transfer" version)) | |
11272 | (sha256 | |
11273 | (base32 | |
11274 | "1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy")))) | |
11275 | (build-system python-build-system) | |
fad8bf97 LF |
11276 | (arguments |
11277 | `(#:phases | |
11278 | (modify-phases %standard-phases | |
11279 | (replace 'check | |
11280 | (lambda _ | |
11281 | ;; 7 of the 'integration' tests require network access or login | |
11282 | ;; credentials. | |
11283 | (zero? (system* "nosetests" "--exclude=integration"))))))) | |
94cffc63 | 11284 | (native-inputs |
fad8bf97 LF |
11285 | `(("python-docutils" ,python-docutils) |
11286 | ("python-mock" ,python-mock) | |
11287 | ("python-nose" ,python-nose))) | |
f22efa01 | 11288 | (propagated-inputs |
94cffc63 LF |
11289 | `(("python-botocore" ,python-botocore))) |
11290 | (synopsis "Amazon S3 Transfer Manager") | |
11291 | (description "S3transfer is a Python library for managing Amazon S3 | |
11292 | transfers.") | |
11293 | (home-page "https://github.com/boto/s3transfer") | |
11294 | (license license:asl2.0) | |
11295 | (properties `((python2-variant . ,(delay python2-s3transfer)))))) | |
11296 | ||
11297 | (define-public python2-s3transfer | |
11298 | (let ((base (package-with-python2 (strip-python2-variant python-s3transfer)))) | |
11299 | (package | |
11300 | (inherit base) | |
11301 | (native-inputs | |
11302 | `(("python2-futures" ,python2-futures) | |
94cffc63 | 11303 | ,@(package-native-inputs base)))))) |
8ab59181 HG |
11304 | |
11305 | (define-public python-setproctitle | |
11306 | (package | |
11307 | (name "python-setproctitle") | |
11308 | (version "1.1.10") | |
11309 | (source | |
11310 | (origin | |
11311 | (method url-fetch) | |
11312 | (uri (pypi-uri "setproctitle" version)) | |
11313 | (sha256 | |
11314 | (base32 | |
11315 | "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) | |
11316 | (build-system python-build-system) | |
11317 | (arguments | |
11318 | '(#:phases | |
11319 | (modify-phases %standard-phases | |
11320 | (add-before 'check 'patch-Makefile | |
11321 | ;; Stricly this is only required for the python2 variant. | |
11322 | ;; But adding a phase in an inherited package seems to be | |
11323 | ;; cumbersum. So we patch even for python3. | |
11324 | (lambda _ | |
11325 | (let ((nose (assoc-ref %build-inputs "python2-nose"))) | |
11326 | (when nose | |
11327 | (substitute* "Makefile" | |
11328 | (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") | |
11329 | (string-append nose "/bin/nosetests ")))) | |
11330 | #t))) | |
11331 | (replace 'check | |
11332 | (lambda _ | |
11333 | (setenv "PYTHON" (or (which "python3") (which "python"))) | |
11334 | (setenv "PYCONFIG" (or (which "python3-config") | |
11335 | (which "python-config"))) | |
11336 | (setenv "CC" "gcc") | |
11337 | ;; No need to extend PYTHONPATH to find the built package, since | |
11338 | ;; the Makefile will build anyway | |
11339 | (zero? (system* "make" "check"))))))) | |
11340 | (native-inputs | |
11341 | `(("procps" ,procps))) ; required for tests | |
11342 | (home-page | |
11343 | "https://github.com/dvarrazzo/py-setproctitle") | |
11344 | (synopsis | |
11345 | "Setproctitle implementation for Python to customize the process title") | |
11346 | (description "The library allows a process to change its title (as displayed | |
11347 | by system tools such as ps and top). | |
11348 | ||
11349 | Changing the title is mostly useful in multi-process systems, for | |
11350 | example when a master process is forked: changing the children's title | |
11351 | allows to identify the task each process is busy with. The technique | |
11352 | is used by PostgreSQL and the OpenSSH Server for example.") | |
11353 | (license license:bsd-3) | |
11354 | (properties `((python2-variant . ,(delay python2-setproctitle)))))) | |
11355 | ||
11356 | (define-public python2-setproctitle | |
11357 | (let ((base (package-with-python2 | |
11358 | (strip-python2-variant python-setproctitle)))) | |
11359 | (package | |
11360 | (inherit base) | |
11361 | (native-inputs `(("python2-nose" ,python2-nose) | |
11362 | ,@(package-native-inputs base)))))) | |
162e42d8 HG |
11363 | |
11364 | (define-public python-validictory | |
11365 | (package | |
11366 | (name "python-validictory") | |
11367 | (version "1.0.1") | |
11368 | (source | |
11369 | (origin | |
11370 | (method url-fetch) | |
11371 | (uri (pypi-uri "validictory" version)) | |
11372 | (sha256 | |
11373 | (base32 | |
11374 | "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q")))) | |
11375 | (build-system python-build-system) | |
11376 | (arguments | |
11377 | '(#:phases | |
11378 | (modify-phases %standard-phases | |
11379 | (add-after 'unpack 'bootstrap | |
11380 | ;; Move the tests out of the package directory to avoid | |
11381 | ;; packaging them. | |
11382 | (lambda* _ | |
11383 | (rename-file "validictory/tests" "tests") | |
11384 | (delete-file "tests/__init__.py"))) | |
11385 | (replace 'check | |
11386 | (lambda _ | |
11387 | ;; Extend PYTHONPATH so the built package will be found. | |
11388 | (setenv "PYTHONPATH" | |
11389 | (string-append (getcwd) "/build/lib:" | |
11390 | (getenv "PYTHONPATH"))) | |
11391 | (zero? (system* "py.test" "-vv" ))))))) | |
11392 | (native-inputs | |
11393 | `(("python-pytest" ,python-pytest))) | |
11394 | (home-page | |
11395 | "https://github.com/jamesturk/validictory") | |
11396 | (synopsis "General purpose Python data validator") | |
11397 | (description "It allows validation of arbitrary Python data structures. | |
11398 | ||
11399 | The schema format is based on the JSON Schema | |
11400 | proposal (http://json-schema.org), so combined with json the library is also | |
11401 | useful as a validator for JSON data.") | |
f210e944 | 11402 | (license license:expat))) |
162e42d8 HG |
11403 | |
11404 | (define-public python2-validictory | |
f210e944 | 11405 | (package-with-python2 python-validictory)) |
0990edfe DM |
11406 | |
11407 | (define-public python-aniso8601 | |
11408 | (package | |
11409 | (name "python-aniso8601") | |
11410 | (version "1.1.0") | |
11411 | (source | |
11412 | (origin | |
11413 | (method url-fetch) | |
11414 | (uri (pypi-uri "aniso8601" version)) | |
11415 | (sha256 | |
11416 | (base32 | |
11417 | "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g")))) | |
11418 | (build-system python-build-system) | |
11419 | (propagated-inputs | |
11420 | `(("python-dateutil-2" ,python-dateutil-2))) | |
11421 | (home-page | |
11422 | "https://bitbucket.org/nielsenb/aniso8601") | |
11423 | (synopsis | |
11424 | "Python library for parsing ISO 8601 strings") | |
11425 | (description | |
11426 | "This package contains a library for parsing ISO 8601 datetime strings.") | |
11427 | (license license:bsd-3))) | |
999d964d DM |
11428 | |
11429 | (define-public python-flask-restful | |
11430 | (package | |
11431 | (name "python-flask-restful") | |
11432 | (version "0.3.5") | |
11433 | (source | |
11434 | (origin | |
11435 | (method url-fetch) | |
11436 | (uri (pypi-uri "Flask-RESTful" version)) | |
11437 | (sha256 | |
11438 | (base32 | |
11439 | "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c")))) | |
11440 | (build-system python-build-system) | |
11441 | (propagated-inputs | |
11442 | `(("python-aniso8601" ,python-aniso8601) | |
11443 | ("python-flask" ,python-flask) | |
11444 | ("python-pycrypto" ,python-pycrypto) | |
11445 | ("python-pytz" ,python-pytz))) | |
11446 | (native-inputs | |
11447 | `(;; Optional dependency of Flask. Tests need it. | |
11448 | ("python-blinker" ,python-blinker) | |
11449 | ("python-mock" ,python-mock) ; For tests | |
11450 | ("python-nose" ,python-nose) ; For tests | |
11451 | ("python-sphinx" ,python-sphinx))) | |
11452 | (home-page | |
11453 | "https://www.github.com/flask-restful/flask-restful/") | |
11454 | (synopsis | |
11455 | "Flask module for creating REST APIs") | |
11456 | (description | |
11457 | "This package contains a Flask module for creating REST APIs.") | |
11458 | (license license:bsd-3))) | |
31288222 DM |
11459 | |
11460 | (define-public python-flask-basicauth | |
11461 | (package | |
11462 | (name "python-flask-basicauth") | |
11463 | (version "0.2.0") | |
11464 | (source | |
11465 | (origin | |
11466 | (method url-fetch) | |
11467 | (uri (pypi-uri "Flask-BasicAuth" version)) | |
11468 | (sha256 | |
11469 | (base32 | |
11470 | "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) | |
11471 | (build-system python-build-system) | |
11472 | (propagated-inputs | |
11473 | `(("python-flask" ,python-flask))) | |
11474 | (home-page | |
11475 | "https://github.com/jpvanhal/flask-basicauth") | |
11476 | (synopsis | |
11477 | "HTTP basic access authentication for Flask") | |
11478 | (description | |
11479 | "This package provides HTTP basic access authentication for Flask.") | |
11480 | (license license:bsd-3))) | |
903276d0 DM |
11481 | |
11482 | (define-public python-flask-sqlalchemy | |
11483 | (package | |
11484 | (name "python-flask-sqlalchemy") | |
11485 | (version "2.1") | |
11486 | (source | |
11487 | (origin | |
11488 | (method url-fetch) | |
11489 | (uri (pypi-uri "Flask-SQLAlchemy" version)) | |
11490 | (sha256 | |
11491 | (base32 | |
11492 | "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965")))) | |
11493 | (build-system python-build-system) | |
11494 | (propagated-inputs | |
11495 | `(("python-flask" ,python-flask) | |
11496 | ("python-sqlalchemy" ,python-sqlalchemy))) | |
11497 | (home-page | |
11498 | "http://github.com/mitsuhiko/flask-sqlalchemy") | |
11499 | (synopsis | |
11500 | "Module adding SQLAlchemy support to your Flask application") | |
11501 | (description | |
11502 | "This package adds SQLAlchemy support to your Flask application.") | |
11503 | (license license:bsd-3))) | |
329b4b3b LF |
11504 | |
11505 | (define-public python-pyev | |
11506 | (package | |
11507 | (name "python-pyev") | |
11508 | (version "0.9.0") | |
11509 | (source | |
11510 | (origin | |
11511 | (method url-fetch) | |
11512 | (uri (pypi-uri "pyev" version)) | |
11513 | (sha256 | |
11514 | (base32 | |
11515 | "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx")))) | |
11516 | (build-system python-build-system) | |
11517 | (arguments | |
11518 | `(#:tests? #f ; no test suite | |
11519 | #:phases | |
11520 | (modify-phases %standard-phases | |
11521 | (add-after 'unpack 'patch | |
11522 | (lambda* (#:key inputs #:allow-other-keys) | |
11523 | (let ((libev (string-append (assoc-ref inputs "libev") | |
11524 | "/lib/libev.so.4"))) | |
11525 | (substitute* "setup.py" | |
11526 | (("libev_dll_name = find_library\\(\\\"ev\\\"\\)") | |
11527 | (string-append "libev_dll_name = \"" libev "\""))))))))) | |
11528 | (inputs | |
11529 | `(("libev" ,libev))) | |
11530 | (home-page "http://pythonhosted.org/pyev/") | |
11531 | (synopsis "Python libev interface") | |
11532 | (description "Pyev provides a Python interface to libev.") | |
11533 | (license license:gpl3))) | |
11534 | ||
11535 | (define-public python2-pyev | |
11536 | (package-with-python2 python-pyev)) | |
45b4f127 DM |
11537 | |
11538 | (define-public python-imagesize | |
11539 | (package | |
11540 | (name "python-imagesize") | |
11541 | (version "0.7.1") | |
11542 | (source | |
11543 | (origin | |
11544 | (method url-fetch) | |
11545 | (uri (pypi-uri "imagesize" version)) | |
11546 | (sha256 | |
11547 | (base32 | |
11548 | "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) | |
11549 | (build-system python-build-system) | |
9422c98a LF |
11550 | (arguments |
11551 | '(;; Test files are not distributed on PyPi: | |
11552 | ;; https://github.com/shibukawa/imagesize_py/issues/7 | |
11553 | #:tests? #f)) | |
45b4f127 DM |
11554 | (home-page "https://github.com/shibukawa/imagesize_py") |
11555 | (synopsis "Gets image size of files in variaous formats in Python") | |
11556 | (description | |
11557 | "This package allows determination of image size from | |
11558 | PNG, JPEG, JPEG2000 and GIF files in pure Python.") | |
f210e944 | 11559 | (license license:expat))) |
45b4f127 DM |
11560 | |
11561 | (define-public python2-imagesize | |
f210e944 | 11562 | (package-with-python2 python-imagesize)) |
2f6dd9cd AI |
11563 | |
11564 | (define-public python-axolotl-curve25519 | |
11565 | (package | |
11566 | (name "python-axolotl-curve25519") | |
11567 | (version "0.1") | |
11568 | (source | |
11569 | (origin | |
11570 | (method git-fetch) | |
11571 | (uri (git-reference | |
11572 | (url "git://github.com/tgalal/python-axolotl-curve25519") | |
11573 | (commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2"))) | |
11574 | (file-name (string-append name "-" version "-checkout")) | |
11575 | (sha256 | |
11576 | (base32 | |
11577 | "0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra")))) | |
11578 | (build-system python-build-system) | |
11579 | (arguments | |
11580 | `(;; Prevent creation of the egg. This works around | |
11581 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 | |
11582 | #:configure-flags '("--root=/"))) | |
2f6dd9cd AI |
11583 | (home-page "https://github.com/tgalal/python-axolotl-curve25519") |
11584 | (synopsis "Python wrapper for curve25519 library") | |
11585 | (description "This is a python wrapper for the curve25519 library | |
11586 | with ed25519 signatures. The C code was pulled from | |
11587 | libaxolotl-android. At the moment this wrapper is meant for use by | |
11588 | python-axolotl.") | |
11589 | (license (list license:gpl3 ; Most files | |
683cdbf5 | 11590 | license:bsd-3)))) ; curve/curve25519-donna.c |
2f6dd9cd AI |
11591 | |
11592 | (define-public python2-axolotl-curve25519 | |
11593 | (package-with-python2 python-axolotl-curve25519)) | |
06ff0837 AI |
11594 | |
11595 | (define-public python-axolotl | |
11596 | (package | |
11597 | (name "python-axolotl") | |
11598 | (version "0.1.35") | |
11599 | (source | |
11600 | (origin | |
11601 | (method url-fetch) | |
11602 | (uri (string-append | |
11603 | "https://github.com/tgalal/python-axolotl/archive/" | |
11604 | version ".tar.gz")) | |
11605 | (file-name (string-append name "-" version ".tar.gz")) | |
11606 | (sha256 | |
11607 | (base32 "1z8d89p7v40p4bwywjm9h4z28fdvra79ddw06azlkrfjbl7dxmz8")))) | |
11608 | (build-system python-build-system) | |
11609 | (arguments | |
11610 | `(#:phases | |
11611 | (modify-phases %standard-phases | |
11612 | ;; Don't install tests | |
11613 | (add-before 'install 'remove-tests | |
11614 | (lambda _ | |
11615 | (for-each delete-file-recursively | |
11616 | '("axolotl/tests" "build/lib/axolotl/tests")) | |
11617 | #t))) | |
11618 | ;; Prevent creation of the egg. This works around | |
11619 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 | |
11620 | #:configure-flags '("--root=/"))) | |
06ff0837 AI |
11621 | (propagated-inputs |
11622 | `(("python-axolotl-curve25519" ,python-axolotl-curve25519) | |
11623 | ("python-dateutil" ,python-dateutil) | |
11624 | ("python-protobuf" ,python-protobuf) | |
11625 | ("python-pycrypto" ,python-pycrypto))) | |
11626 | (home-page "https://github.com/tgalal/python-axolotl") | |
11627 | (synopsis "Python port of libaxolotl-android") | |
11628 | (description "This is a python port of libaxolotl-android. This | |
11629 | is a ratcheting forward secrecy protocol that works in synchronous and | |
11630 | asynchronous messaging environments.") | |
11631 | (license license:gpl3))) | |
11632 | ||
11633 | (define-public python2-axolotl | |
11634 | (package-with-python2 python-axolotl)) | |
e2fca490 DM |
11635 | |
11636 | (define-public python-termstyle | |
11637 | (package | |
11638 | (name "python-termstyle") | |
11639 | (version "0.1.11") | |
11640 | (source | |
11641 | (origin | |
11642 | (method url-fetch) | |
11643 | (uri (pypi-uri "termstyle" version)) | |
11644 | (sha256 | |
11645 | (base32 | |
11646 | "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g")))) | |
11647 | (build-system python-build-system) | |
11648 | (home-page "http://github.com/gfxmonk/termstyle") | |
11649 | (synopsis "Console text coloring for Python") | |
11650 | (description "This package provides console text coloring for Python.") | |
11651 | (license license:bsd-3))) | |
1e6112d8 DM |
11652 | |
11653 | (define-public python-rednose | |
11654 | (package | |
11655 | (name "python-rednose") | |
11656 | (version "1.2.1") | |
11657 | (source | |
11658 | (origin | |
11659 | (method url-fetch) | |
11660 | (uri (pypi-uri "rednose" version)) | |
11661 | (sha256 | |
11662 | (base32 | |
11663 | "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0")))) | |
11664 | (build-system python-build-system) | |
11665 | (arguments | |
11666 | `(#:phases | |
11667 | (modify-phases %standard-phases | |
11668 | (add-after 'unpack 'fix-deps | |
11669 | (lambda _ | |
11670 | ;; See <https://github.com/JBKahn/rednose/issues/12> | |
11671 | (substitute* "setup.py" | |
11672 | (("python-termstyle") "termstyle")) | |
11673 | #t))))) | |
11674 | (propagated-inputs | |
11675 | `(("python-colorama" ,python-colorama) | |
11676 | ("python-termstyle" ,python-termstyle))) | |
11677 | (native-inputs | |
11678 | `(("python-six" ,python-six) | |
11679 | ("python-nose" ,python-nose))) | |
11680 | (home-page "https://github.com/JBKahn/rednose") | |
11681 | (synopsis "Colored output for Python nosetests") | |
11682 | (description "This package provides colored output for the | |
11683 | @command{nosetests} command of the Python Nose unit test framework.") | |
11684 | (license license:bsd-3))) | |
0a7f17f0 DM |
11685 | |
11686 | (define-public python-flask-restplus | |
11687 | (package | |
11688 | (name "python-flask-restplus") | |
11689 | (version "0.9.2") | |
11690 | (source | |
11691 | (origin | |
11692 | (method url-fetch) | |
11693 | (uri (pypi-uri "flask-restplus" version)) | |
11694 | (sha256 | |
11695 | (base32 | |
11696 | "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4")))) | |
11697 | (build-system python-build-system) | |
11698 | (propagated-inputs | |
11699 | `(("python-aniso8601" ,python-aniso8601) | |
11700 | ("python-flask" ,python-flask) | |
11701 | ("python-jsonschema" ,python-jsonschema) | |
11702 | ("python-pytz" ,python-pytz) | |
11703 | ("python-six" ,python-six))) | |
11704 | (native-inputs | |
11705 | `(("python-tzlocal" ,python-tzlocal) | |
11706 | ("python-blinker" ,python-blinker) | |
11707 | ("python-nose" ,python-nose) | |
11708 | ("python-rednose" ,python-rednose))) | |
11709 | (home-page "https://github.com/noirbizarre/flask-restplus") | |
11710 | (synopsis "Framework for documented API development with Flask") | |
11711 | (description "This package provides a framework for API development with | |
11712 | the Flask web framework in Python. It is similar to package | |
11713 | @code{python-flask-restful} but supports the @code{python-swagger} | |
11714 | documentation builder.") | |
11715 | (license license:expat))) |