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> |
4dcb135e | 6 | ;;; Copyright © 2014, 2017 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> |
7637de23 | 14 | ;;; Copyright © 2015, 2016, 2017 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> |
6bd9ad69 | 26 | ;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net> |
6eb7af2a | 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
3f641af0 | 28 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
df893a38 | 29 | ;;; Copyright © 2016, 2017 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> |
5220022a | 34 | ;;; Copyright © 2016, 2017 Julien Lepiller <julien@lepiller.eu> |
819939cb | 35 | ;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
ec074213 | 36 | ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be> |
916aafa4 | 37 | ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au> |
1a917fc9 | 38 | ;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com> |
a01b6da7 NK |
39 | ;;; |
40 | ;;; This file is part of GNU Guix. | |
41 | ;;; | |
42 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
43 | ;;; under the terms of the GNU General Public License as published by | |
44 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
45 | ;;; your option) any later version. | |
46 | ;;; | |
47 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
48 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
49 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
50 | ;;; GNU General Public License for more details. | |
51 | ;;; | |
52 | ;;; You should have received a copy of the GNU General Public License | |
53 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
54 | ||
1ffa7090 | 55 | (define-module (gnu packages python) |
3f641af0 | 56 | #:use-module ((guix licenses) #:prefix license:) |
3fdc99da | 57 | #:use-module (gnu packages) |
8e451885 | 58 | #:use-module (gnu packages algebra) |
d79a343b | 59 | #:use-module (gnu packages adns) |
89b2e0b0 | 60 | #:use-module (gnu packages attr) |
d96034ed | 61 | #:use-module (gnu packages backup) |
3969ca54 | 62 | #:use-module (gnu packages bash) |
1ffa7090 | 63 | #:use-module (gnu packages compression) |
4ed20663 | 64 | #:use-module (gnu packages databases) |
ddc63a56 | 65 | #:use-module (gnu packages django) |
5e1c9367 | 66 | #:use-module (gnu packages file) |
4ed20663 | 67 | #:use-module (gnu packages fontutils) |
4ed20663 AE |
68 | #:use-module (gnu packages gcc) |
69 | #:use-module (gnu packages ghostscript) | |
6eb7af2a | 70 | #:use-module (gnu packages gl) |
4ed20663 | 71 | #:use-module (gnu packages glib) |
c227458a | 72 | #:use-module (gnu packages graphviz) |
6eb7af2a | 73 | #:use-module (gnu packages gstreamer) |
4ed20663 | 74 | #:use-module (gnu packages gtk) |
421a80a2 | 75 | #:use-module (gnu packages icu4c) |
c937562e | 76 | #:use-module (gnu packages image) |
4ed20663 | 77 | #:use-module (gnu packages imagemagick) |
d79a343b | 78 | #:use-module (gnu packages libevent) |
b10ab723 | 79 | #:use-module (gnu packages libffi) |
89b2e0b0 | 80 | #:use-module (gnu packages linux) |
ed118043 | 81 | #:use-module (gnu packages man) |
0da98533 | 82 | #:use-module (gnu packages maths) |
4ed20663 | 83 | #:use-module (gnu packages multiprecision) |
45203542 | 84 | #:use-module (gnu packages networking) |
be7134bf | 85 | #:use-module (gnu packages ncurses) |
b04a52a6 | 86 | #:use-module (gnu packages openstack) |
d488d5d6 | 87 | #:use-module (gnu packages password-utils) |
c9b1b4f9 | 88 | #:use-module (gnu packages pcre) |
4ed20663 | 89 | #:use-module (gnu packages perl) |
b10ab723 | 90 | #:use-module (gnu packages pkg-config) |
06ff0837 | 91 | #:use-module (gnu packages protobuf) |
4535a93a | 92 | #:use-module (gnu packages qt) |
4ed20663 | 93 | #:use-module (gnu packages readline) |
6eb7af2a | 94 | #:use-module (gnu packages sdl) |
80ce42bd | 95 | #:use-module (gnu packages shells) |
c9b1b4f9 | 96 | #:use-module (gnu packages statistics) |
8f9ac901 | 97 | #:use-module (gnu packages tex) |
1c65314c | 98 | #:use-module (gnu packages texinfo) |
cc2b77df | 99 | #:use-module (gnu packages tls) |
e25f0174 | 100 | #:use-module (gnu packages version-control) |
02f8f804 | 101 | #:use-module (gnu packages video) |
8d12be1e | 102 | #:use-module (gnu packages web) |
ce0614dd | 103 | #:use-module (gnu packages base) |
26b307e2 | 104 | #:use-module (gnu packages xml) |
6fa14469 | 105 | #:use-module (gnu packages xorg) |
0bdc1671 | 106 | #:use-module (gnu packages xdisorg) |
4ed20663 | 107 | #:use-module (gnu packages zip) |
afa181ff | 108 | #:use-module (gnu packages tcl) |
63bcec71 | 109 | #:use-module (gnu packages bdw-gc) |
a01b6da7 NK |
110 | #:use-module (guix packages) |
111 | #:use-module (guix download) | |
ea5456c8 | 112 | #:use-module (guix git-download) |
11bb85a1 | 113 | #:use-module (guix utils) |
acc26ff1 | 114 | #:use-module (guix build-system gnu) |
d8c4998f | 115 | #:use-module (guix build-system cmake) |
898238b9 | 116 | #:use-module (guix build-system python) |
1c65314c FB |
117 | #:use-module (guix build-system trivial) |
118 | #:use-module (srfi srfi-1)) | |
a01b6da7 | 119 | |
45848023 | 120 | (define-public python-2.7 |
a01b6da7 NK |
121 | (package |
122 | (name "python") | |
f0499100 | 123 | (version "2.7.12") |
a01b6da7 NK |
124 | (source |
125 | (origin | |
126 | (method url-fetch) | |
9b43a0ff | 127 | (uri (string-append "https://www.python.org/ftp/python/" |
a01b6da7 NK |
128 | version "/Python-" version ".tar.xz")) |
129 | (sha256 | |
130 | (base32 | |
f0499100 | 131 | "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp")) |
c3052d6b ML |
132 | (patches (search-patches "python-2.7-search-paths.patch" |
133 | "python-2-deterministic-build-info.patch" | |
15e57f57 | 134 | "python-2.7-site-prefixes.patch" |
c3052d6b | 135 | "python-2.7-source-date-epoch.patch")) |
10a42aa2 EF |
136 | (modules '((guix build utils))) |
137 | ;; suboptimal to delete failing tests here, but if we delete them in the | |
138 | ;; arguments then we need to make sure to strip out that phase when it | |
139 | ;; gets inherited by python and python-minimal. | |
140 | (snippet | |
141 | '(begin | |
142 | (for-each delete-file | |
143 | '("Lib/test/test_compileall.py" | |
f0499100 | 144 | "Lib/test/test_ctypes.py" ; fails on mips64el |
10a42aa2 EF |
145 | "Lib/test/test_distutils.py" |
146 | "Lib/test/test_import.py" | |
147 | "Lib/test/test_shutil.py" | |
148 | "Lib/test/test_socket.py" | |
1bb163b0 | 149 | "Lib/test/test_subprocess.py")) |
10a42aa2 | 150 | #t)))) |
02f0c3b2 LC |
151 | (outputs '("out" |
152 | "tk")) ;tkinter; adds 50 MiB to the closure | |
a01b6da7 | 153 | (build-system gnu-build-system) |
3fdc99da | 154 | (arguments |
10a42aa2 | 155 | `(;; 356 tests OK. |
e7e7a1eb EF |
156 | ;; 6 tests failed: |
157 | ;; test_compileall test_distutils test_import test_shutil test_socket | |
158 | ;; test_subprocess | |
159 | ;; 39 tests skipped: | |
ff6f33cf ED |
160 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 |
161 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk | |
e7e7a1eb EF |
162 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses |
163 | ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl | |
164 | ;; test_kqueue test_linuxaudiodev test_macos test_macostools | |
165 | ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet | |
166 | ;; test_socketserver test_startfile test_sunaudiodev test_timeout | |
167 | ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet | |
168 | ;; test_winreg test_winsound test_zipfile64 | |
169 | ;; 4 skips unexpected on linux2: | |
170 | ;; test_bsddb test_bsddb3 test_gdb test_ioctl | |
af807dea | 171 | #:test-target "test" |
3fdc99da | 172 | #:configure-flags |
6a20289d LC |
173 | (list "--enable-shared" ;allow embedding |
174 | "--with-system-ffi" ;build ctypes | |
aaf75c89 | 175 | "--with-ensurepip=install" ;install pip and setuptools |
6a20289d LC |
176 | (string-append "LDFLAGS=-Wl,-rpath=" |
177 | (assoc-ref %outputs "out") "/lib")) | |
fd982732 | 178 | |
d2cc9c7c LC |
179 | #:modules ((ice-9 ftw) (ice-9 match) |
180 | (guix build utils) (guix build gnu-build-system)) | |
fd982732 | 181 | #:phases |
46472ecd MW |
182 | (modify-phases %standard-phases |
183 | (add-before | |
184 | 'configure 'patch-lib-shells | |
185 | (lambda _ | |
186 | ;; Filter for existing files, since some may not exist in all | |
187 | ;; versions of python that are built with this recipe. | |
188 | (substitute* (filter file-exists? | |
189 | '("Lib/subprocess.py" | |
190 | "Lib/popen2.py" | |
191 | "Lib/distutils/tests/test_spawn.py" | |
192 | "Lib/test/test_subprocess.py")) | |
193 | (("/bin/sh") (which "sh"))) | |
dedc8320 LC |
194 | |
195 | ;; Use zero as the timestamp in .pyc files so that builds are | |
196 | ;; deterministic. TODO: Remove it when this variable is set in | |
197 | ;; gnu-build-system.scm. | |
a665996f | 198 | (setenv "SOURCE_DATE_EPOCH" "1") |
46472ecd | 199 | #t)) |
5b4e2791 LC |
200 | (add-before 'configure 'do-not-record-configure-flags |
201 | (lambda* (#:key configure-flags #:allow-other-keys) | |
202 | ;; Remove configure flags from the installed '_sysconfigdata.py' | |
203 | ;; and 'Makefile' so we don't end up keeping references to the | |
204 | ;; build tools. | |
205 | ;; | |
206 | ;; Preserve at least '--with-system-ffi' since otherwise the | |
207 | ;; thing tries to build libffi, fails, and we end up with a | |
208 | ;; Python that lacks ctypes. | |
209 | (substitute* "configure" | |
210 | (("^CONFIG_ARGS=.*$") | |
211 | (format #f "CONFIG_ARGS='~a'\n" | |
212 | (if (member "--with-system-ffi" configure-flags) | |
213 | "--with-system-ffi" | |
214 | "")))) | |
215 | #t)) | |
46472ecd MW |
216 | (add-before |
217 | 'check 'pre-check | |
218 | (lambda _ | |
219 | ;; 'Lib/test/test_site.py' needs a valid $HOME | |
220 | (setenv "HOME" (getcwd)) | |
221 | #t)) | |
222 | (add-after | |
223 | 'unpack 'set-source-file-times-to-1980 | |
224 | ;; XXX One of the tests uses a ZIP library to pack up some of the | |
225 | ;; source tree, and fails with "ZIP does not support timestamps | |
226 | ;; before 1980". Work around this by setting the file times in the | |
227 | ;; source tree to sometime in early 1980. | |
228 | (lambda _ | |
229 | (let ((circa-1980 (* 10 366 24 60 60))) | |
230 | (ftw "." (lambda (file stat flag) | |
231 | (utime file circa-1980 circa-1980) | |
232 | #t)) | |
02f0c3b2 | 233 | #t))) |
9ffe61b0 LC |
234 | (add-after 'install 'remove-tests |
235 | ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* | |
236 | ;; because these files are used by some libraries out there. | |
237 | (lambda* (#:key outputs #:allow-other-keys) | |
238 | (let ((out (assoc-ref outputs "out"))) | |
239 | (match (scandir (string-append out "/lib") | |
240 | (lambda (name) | |
241 | (string-prefix? "python" name))) | |
242 | ((pythonX.Y) | |
243 | (let ((testdir (string-append out "/lib/" pythonX.Y | |
244 | "/test"))) | |
245 | (with-directory-excursion testdir | |
246 | (for-each delete-file-recursively | |
247 | (scandir testdir | |
248 | (match-lambda | |
249 | ((or "." "..") #f) | |
250 | (file | |
251 | (not | |
252 | (string-prefix? "test_support." | |
253 | file)))))) | |
254 | (call-with-output-file "__init__.py" (const #t)) | |
255 | #t))))))) | |
216c283b LC |
256 | (add-before 'strip 'make-libraries-writable |
257 | (lambda* (#:key outputs #:allow-other-keys) | |
258 | ;; Make .so files writable so they can be stripped. | |
259 | (let ((out (assoc-ref outputs "out"))) | |
260 | (for-each (lambda (file) | |
261 | (chmod file #o755)) | |
262 | (find-files (string-append out "/lib") | |
263 | "\\.so")) | |
264 | #t))) | |
02f0c3b2 LC |
265 | (add-after 'install 'move-tk-inter |
266 | (lambda* (#:key outputs #:allow-other-keys) | |
267 | ;; When Tkinter support is built move it to a separate output so | |
268 | ;; that the main output doesn't contain a reference to Tcl/Tk. | |
269 | (let ((out (assoc-ref outputs "out")) | |
270 | (tk (assoc-ref outputs "tk"))) | |
271 | (when tk | |
272 | (match (find-files out "tkinter.*\\.so") | |
273 | ((tkinter.so) | |
274 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we | |
275 | ;; want it under TK/lib/pythonX.Y/site-packages. | |
276 | (let* ((len (string-length out)) | |
277 | (target (string-append | |
278 | tk "/" | |
279 | (string-drop | |
280 | (dirname (dirname tkinter.so)) | |
281 | len) | |
282 | "/site-packages"))) | |
283 | (install-file tkinter.so target) | |
284 | (delete-file tkinter.so))))) | |
285 | #t)))))) | |
a01b6da7 | 286 | (inputs |
3fdc99da CR |
287 | `(("bzip2" ,bzip2) |
288 | ("gdbm" ,gdbm) | |
b10ab723 | 289 | ("libffi" ,libffi) ; for ctypes |
b88e1b0a | 290 | ("sqlite" ,sqlite) ; for sqlite extension |
a01b6da7 | 291 | ("openssl" ,openssl) |
3fdc99da | 292 | ("readline" ,readline) |
afa181ff LC |
293 | ("zlib" ,zlib) |
294 | ("tcl" ,tcl) | |
295 | ("tk" ,tk))) ; for tkinter | |
b10ab723 CR |
296 | (native-inputs |
297 | `(("pkg-config" ,pkg-config))) | |
9be8d7c8 LC |
298 | (native-search-paths |
299 | (list (search-path-specification | |
300 | (variable "PYTHONPATH") | |
af070955 | 301 | (files '("lib/python2.7/site-packages"))))) |
f0499100 | 302 | (home-page "https://www.python.org") |
afa181ff | 303 | (synopsis "High-level, dynamically-typed programming language") |
a01b6da7 NK |
304 | (description |
305 | "Python is a remarkably powerful dynamic programming language that | |
306 | is used in a wide variety of application domains. Some of its key | |
307 | distinguishing features include: clear, readable syntax; strong | |
308 | introspection capabilities; intuitive object orientation; natural | |
309 | expression of procedural code; full modularity, supporting hierarchical | |
310 | packages; exception-based error handling; and very high level dynamic | |
311 | data types.") | |
3f641af0 | 312 | (license license:psfl))) |
acc26ff1 | 313 | |
45848023 HG |
314 | ;; Current 2.x version. |
315 | (define-public python-2 python-2.7) | |
316 | ||
72df6680 | 317 | (define-public python-3.5 |
b24d1cfc | 318 | (package (inherit python-2) |
72df6680 | 319 | (version "3.5.2") |
717003e3 LC |
320 | (source (origin |
321 | (method url-fetch) | |
322 | (uri (string-append "https://www.python.org/ftp/python/" | |
323 | version "/Python-" version ".tar.xz")) | |
fc1adab1 AK |
324 | (patches (search-patches |
325 | "python-fix-tests.patch" | |
72df6680 | 326 | "python-3.5-fix-tests.patch" |
fc1adab1 AK |
327 | "python-3-deterministic-build-info.patch" |
328 | "python-3-search-paths.patch")) | |
717003e3 LC |
329 | (patch-flags '("-p0")) |
330 | (sha256 | |
331 | (base32 | |
72df6680 | 332 | "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400")))) |
1f434457 MW |
333 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
334 | ((#:tests? _) #t))) | |
1aebc0cb AE |
335 | (native-search-paths |
336 | (list (search-path-specification | |
337 | (variable "PYTHONPATH") | |
0e05d01e SB |
338 | (files (list (string-append "lib/python" |
339 | (version-major+minor version) | |
340 | "/site-packages")))))))) | |
f26a77ff | 341 | |
72df6680 LF |
342 | (define-public python-3.4 |
343 | (package (inherit python-3.5) | |
344 | (version "3.4.5") | |
345 | (source (origin | |
346 | (method url-fetch) | |
347 | (uri (string-append "https://www.python.org/ftp/python/" | |
348 | version "/Python-" version ".tar.xz")) | |
349 | (patches (search-patches | |
350 | "python-fix-tests.patch" | |
351 | "python-3.4-fix-tests.patch" | |
352 | "python-3-deterministic-build-info.patch" | |
353 | "python-3-search-paths.patch")) | |
354 | (patch-flags '("-p0")) | |
355 | (sha256 | |
356 | (base32 | |
357 | "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f")))))) | |
358 | ||
45848023 | 359 | ;; Current 3.x version. |
72df6680 | 360 | (define-public python-3 python-3.5) |
45848023 HG |
361 | |
362 | ;; Current major version. | |
363 | (define-public python python-3) | |
364 | ||
95288fcc LC |
365 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
366 | ;; Python (Tk -> libxcb -> Python.) | |
367 | ||
368 | (define-public python2-minimal | |
369 | (package (inherit python-2) | |
370 | (name "python-minimal") | |
02f0c3b2 | 371 | (outputs '("out")) |
95288fcc LC |
372 | (arguments |
373 | (substitute-keyword-arguments (package-arguments python-2) | |
c5a05e31 LC |
374 | ((#:configure-flags cf) |
375 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
376 | (inputs '()))) ;none of the optional dependencies |
377 | ||
378 | (define-public python-minimal | |
898238b9 | 379 | (package (inherit python) |
95288fcc | 380 | (name "python-minimal") |
02f0c3b2 | 381 | (outputs '("out")) |
95288fcc | 382 | |
d0b73960 | 383 | ;; Build fails due to missing ctypes without libffi. |
95288fcc LC |
384 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; |
385 | ;; zlib is required by 'zipimport', used by pip. | |
d0b73960 CAW |
386 | (inputs `(("libffi" ,libffi) |
387 | ("openssl" ,openssl) | |
95288fcc LC |
388 | ("zlib" ,zlib))))) |
389 | ||
64cb064c LC |
390 | (define* (wrap-python3 python |
391 | #:optional | |
392 | (name (string-append (package-name python) "-wrapper"))) | |
898238b9 | 393 | (package (inherit python) |
95288fcc | 394 | (name name) |
898238b9 AE |
395 | (source #f) |
396 | (build-system trivial-build-system) | |
02f0c3b2 | 397 | (outputs '("out")) |
3969ca54 | 398 | (inputs `(("bash" ,bash))) |
3c0f2329 | 399 | (propagated-inputs `(("python" ,python))) |
898238b9 AE |
400 | (arguments |
401 | `(#:modules ((guix build utils)) | |
402 | #:builder | |
403 | (begin | |
404 | (use-modules (guix build utils)) | |
405 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) | |
406 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) | |
407 | (mkdir-p bin) | |
408 | (for-each | |
409 | (lambda (old new) | |
410 | (symlink (string-append python old) | |
411 | (string-append bin "/" new))) | |
3969ca54 SB |
412 | `("python3" ,"pydoc3" ,"idle3" ,"pip3") |
413 | `("python" ,"pydoc" ,"idle" ,"pip")) | |
414 | ;; python-config outputs search paths based upon its location, | |
415 | ;; use a bash wrapper to avoid changing its outputs. | |
416 | (let ((bash (string-append (assoc-ref %build-inputs "bash") | |
417 | "/bin/bash")) | |
418 | (old (string-append python "python3-config")) | |
419 | (new (string-append bin "/python-config"))) | |
420 | (with-output-to-file new | |
421 | (lambda () | |
422 | (format #t "#!~a~%" bash) | |
423 | (format #t "exec \"~a\" \"$@\"~%" old) | |
424 | (chmod new #o755) | |
425 | #t))))))) | |
0d56e3e1 LC |
426 | (synopsis "Wrapper for the Python 3 commands") |
427 | (description | |
428 | "This package provides wrappers for the commands of Python@tie{}3.x such | |
429 | that they can be invoked under their usual name---e.g., @command{python} | |
430 | instead of @command{python3}."))) | |
431 | ||
95288fcc LC |
432 | (define-public python-wrapper (wrap-python3 python)) |
433 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) | |
898238b9 | 434 | |
aaf625b8 RW |
435 | (define-public python-psutil |
436 | (package | |
437 | (name "python-psutil") | |
88535a44 | 438 | (version "4.3.0") |
aaf625b8 RW |
439 | (source |
440 | (origin | |
441 | (method url-fetch) | |
f56777be | 442 | (uri (pypi-uri "psutil" version)) |
aaf625b8 RW |
443 | (sha256 |
444 | (base32 | |
88535a44 | 445 | "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6")))) |
aaf625b8 | 446 | (build-system python-build-system) |
fb08c4fe MB |
447 | (arguments |
448 | ;; FIXME: some tests does not return and times out. | |
449 | '(#:tests? #f)) | |
88535a44 | 450 | (home-page "https://www.github.com/giampaolo/psutil") |
aaf625b8 RW |
451 | (synopsis "Library for retrieving information on running processes") |
452 | (description | |
453 | "psutil (Python system and process utilities) is a library for retrieving | |
454 | information on running processes and system utilization (CPU, memory, disks, | |
455 | network) in Python. It is useful mainly for system monitoring, profiling and | |
456 | limiting process resources and management of running processes. It implements | |
457 | many functionalities offered by command line tools such as: ps, top, lsof, | |
458 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, | |
459 | pidof, tty, taskset, pmap.") | |
3f641af0 | 460 | (license license:bsd-3))) |
aaf625b8 RW |
461 | |
462 | (define-public python2-psutil | |
463 | (package-with-python2 python-psutil)) | |
898238b9 | 464 | |
f9da1d8a ED |
465 | (define-public python-passlib |
466 | (package | |
467 | (name "python-passlib") | |
3b86a385 | 468 | (version "1.7.1") |
f9da1d8a ED |
469 | (source |
470 | (origin | |
471 | (method url-fetch) | |
690e8c66 | 472 | (uri (pypi-uri "passlib" version)) |
f9da1d8a ED |
473 | (sha256 |
474 | (base32 | |
3b86a385 | 475 | "1q2khqpj9rlcgdmkypjdq1kswvhjf72bq0zk2cv669cc2dj8z51x")))) |
f9da1d8a ED |
476 | (build-system python-build-system) |
477 | (native-inputs | |
f3b98f4f | 478 | `(("python-nose" ,python-nose))) |
f22efa01 | 479 | (propagated-inputs |
f9da1d8a ED |
480 | `(("python-py-bcrypt" ,python-py-bcrypt))) |
481 | (arguments | |
482 | `(#:phases | |
483 | (alist-cons-before | |
484 | 'check 'set-PYTHON_EGG_CACHE | |
485 | ;; some tests require access to "$HOME/.cython" | |
486 | (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp")) | |
487 | %standard-phases))) | |
488 | (home-page "https://bitbucket.org/ecollins/passlib") | |
489 | (synopsis | |
490 | "Comprehensive password hashing framework") | |
491 | (description | |
492 | "Passlib is a password hashing library for Python 2 & 3, which provides | |
493 | cross-platform implementations of over 30 password hashing algorithms, as well | |
494 | as a framework for managing existing password hashes. It's designed to be | |
495 | useful for a wide range of tasks, from verifying a hash found in /etc/shadow, | |
496 | to providing full-strength password hashing for multi-user application.") | |
3f641af0 | 497 | (license license:bsd-3))) |
f9da1d8a ED |
498 | |
499 | (define-public python2-passlib | |
500 | (package-with-python2 python-passlib)) | |
501 | ||
feb0d9c3 ED |
502 | (define-public python-py-bcrypt |
503 | (package | |
504 | (name "python-py-bcrypt") | |
505 | (version "0.4") | |
506 | (source | |
507 | (origin | |
508 | (method url-fetch) | |
509 | (uri (string-append | |
510 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" | |
511 | version | |
512 | ".tar.gz")) | |
513 | (sha256 | |
514 | (base32 | |
515 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) | |
516 | (build-system python-build-system) | |
feb0d9c3 ED |
517 | (home-page "https://code.google.com/p/py-bcrypt") |
518 | (synopsis | |
519 | "Bcrypt password hashing and key derivation") | |
520 | (description | |
521 | "A python wrapper of OpenBSD's Blowfish password hashing code. This | |
522 | system hashes passwords using a version of Bruce Schneier's Blowfish block | |
523 | cipher with modifications designed to raise the cost of off-line password | |
524 | cracking and frustrate fast hardware implementation. The computation cost of | |
525 | the algorithm is parametised, so it can be increased as computers get faster. | |
526 | The intent is to make a compromise of a password database less likely to | |
527 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using | |
528 | John the Ripper).") | |
529 | ;; "sha2.c" is under BSD-3; | |
530 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; | |
531 | ;; the rest is under ISC. | |
3f641af0 | 532 | (license (list license:isc license:bsd-3 license:bsd-4)))) |
feb0d9c3 ED |
533 | |
534 | (define-public python2-py-bcrypt | |
535 | (package-with-python2 python-py-bcrypt)) | |
536 | ||
537 | ||
429fdea1 ED |
538 | (define-public python-paramiko |
539 | (package | |
540 | (name "python-paramiko") | |
81b9bbbd | 541 | (version "1.16.0") |
429fdea1 ED |
542 | (source |
543 | (origin | |
544 | (method url-fetch) | |
81b9bbbd | 545 | (uri (pypi-uri "paramiko" version)) |
429fdea1 ED |
546 | (sha256 |
547 | (base32 | |
81b9bbbd | 548 | "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj")))) |
429fdea1 | 549 | (build-system python-build-system) |
49910e6a MB |
550 | (arguments |
551 | '(;; FIXME: One test fails with "EOFError not raised by connect". | |
552 | #:tests? #f)) | |
553 | ;; #:phases | |
554 | ;; (modify-phases %standard-phases | |
555 | ;; (replace 'check | |
556 | ;; (lambda _ | |
557 | ;; (zero? (system* "python" "test.py"))))))) | |
a3fc12da | 558 | (propagated-inputs |
f22efa01 HG |
559 | `(("python-pycrypto" ,python-pycrypto) |
560 | ("python-ecdsa" ,python-ecdsa))) | |
429fdea1 ED |
561 | (home-page "http://www.paramiko.org/") |
562 | (synopsis "SSHv2 protocol library") | |
563 | (description "Paramiko is a python implementation of the SSHv2 protocol, | |
564 | providing both client and server functionality. While it leverages a Python C | |
565 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure | |
566 | Python interface around SSH networking concepts.") | |
3f641af0 | 567 | (license license:lgpl2.1+))) |
429fdea1 ED |
568 | |
569 | (define-public python2-paramiko | |
570 | (package-with-python2 python-paramiko)) | |
571 | ||
572 | ||
de73dbf6 ED |
573 | (define-public python-httplib2 |
574 | (package | |
575 | (name "python-httplib2") | |
286f1bac | 576 | (version "0.9.2") |
de73dbf6 ED |
577 | (source |
578 | (origin | |
579 | (method url-fetch) | |
286f1bac | 580 | (uri (pypi-uri "httplib2" version)) |
de73dbf6 ED |
581 | (sha256 |
582 | (base32 | |
286f1bac | 583 | "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) |
de73dbf6 | 584 | (build-system python-build-system) |
286f1bac | 585 | (home-page "https://github.com/jcgregorio/httplib2") |
de73dbf6 ED |
586 | (synopsis "Comprehensive HTTP client library") |
587 | (description | |
588 | "A comprehensive HTTP client library supporting many features left out of | |
589 | other HTTP libraries.") | |
590 | (license license:expat))) | |
591 | ||
592 | (define-public python2-httplib2 | |
593 | (package-with-python2 python-httplib2)) | |
594 | ||
67039875 ED |
595 | (define-public python-ecdsa |
596 | (package | |
597 | (name "python-ecdsa") | |
598 | (version "0.13") | |
599 | (source | |
600 | (origin | |
601 | (method url-fetch) | |
602 | (uri (string-append | |
603 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" | |
604 | version | |
605 | ".tar.gz")) | |
606 | (sha256 | |
607 | (base32 | |
608 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) | |
609 | (build-system python-build-system) | |
67039875 ED |
610 | (inputs |
611 | `(("openssl" ,openssl))) | |
612 | (home-page | |
613 | "http://github.com/warner/python-ecdsa") | |
614 | (synopsis | |
615 | "ECDSA cryptographic signature library (pure python)") | |
616 | (description | |
617 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic | |
618 | Curve Digital Signature Algorithm), implemented purely in Python. With this | |
619 | library, you can quickly create keypairs (signing key and verifying key), sign | |
620 | messages, and verify the signatures. The keys and signatures are very short, | |
621 | making them easy to handle and incorporate into other protocols.") | |
622 | (license license:expat))) | |
623 | ||
624 | (define-public python2-ecdsa | |
625 | (package-with-python2 python-ecdsa)) | |
626 | ||
52323f32 ED |
627 | (define-public python-ccm |
628 | (package | |
629 | (name "python-ccm") | |
db5567f7 | 630 | (version "2.1.6") |
52323f32 ED |
631 | (source |
632 | (origin | |
633 | (method url-fetch) | |
db5567f7 | 634 | (uri (pypi-uri "ccm" version)) |
52323f32 ED |
635 | (sha256 |
636 | (base32 | |
db5567f7 | 637 | "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n")))) |
52323f32 | 638 | (build-system python-build-system) |
f22efa01 | 639 | (propagated-inputs |
52323f32 | 640 | `(("python-pyyaml" ,python-pyyaml) |
e165f137 HG |
641 | ;; Not listed in setup.py, but used in ccmlib/node.py for full |
642 | ;; functionality | |
643 | ("python-psutil" ,python-psutil) | |
52323f32 ED |
644 | ("python-six" ,python-six))) |
645 | (home-page "https://github.com/pcmanus/ccm") | |
d9a6e221 HG |
646 | (synopsis "Cassandra Cluster Manager for Apache Cassandra clusters on |
647 | localhost") | |
648 | (description "Cassandra Cluster Manager is a development tool for testing | |
649 | local Cassandra clusters. It creates, launches and removes Cassandra clusters | |
650 | on localhost.") | |
3f641af0 | 651 | (license license:asl2.0))) |
52323f32 ED |
652 | |
653 | (define-public python2-ccm | |
654 | (package-with-python2 python-ccm)) | |
655 | ||
89114f39 | 656 | (define-public python-pytz |
acc26ff1 | 657 | (package |
89114f39 | 658 | (name "python-pytz") |
a5f92ca0 | 659 | (version "2016.10") |
acc26ff1 CR |
660 | (source |
661 | (origin | |
662 | (method url-fetch) | |
61c9babb | 663 | (uri (pypi-uri "pytz" version ".tar.bz2")) |
acc26ff1 CR |
664 | (sha256 |
665 | (base32 | |
a5f92ca0 | 666 | "0az099cyp6p5xbsvfcdacj4hvxncbwm2ayn3h55mcp07zb2b45kh")))) |
acc26ff1 | 667 | (build-system python-build-system) |
8498b8cf | 668 | (arguments `(#:tests? #f)) ; no test target |
b01bbbcf | 669 | (home-page "http://pythonhosted.org/pytz") |
9e771e3b | 670 | (synopsis "Python timezone library") |
acc26ff1 CR |
671 | (description |
672 | "This library allows accurate and cross platform timezone calculations | |
673 | using Python 2.4 or higher and provides access to the Olson timezone database.") | |
b01bbbcf | 674 | (license license:expat))) |
5ace6e2f | 675 | |
89114f39 | 676 | (define-public python2-pytz |
11bb85a1 | 677 | (package-with-python2 python-pytz)) |
89114f39 | 678 | |
fc50e9c6 | 679 | |
89114f39 | 680 | (define-public python-babel |
5ace6e2f | 681 | (package |
89114f39 | 682 | (name "python-babel") |
ffb1e98d | 683 | (version "2.3.4") |
5ace6e2f CR |
684 | (source |
685 | (origin | |
686 | (method url-fetch) | |
b850a6d8 | 687 | (uri (pypi-uri "Babel" version)) |
5ace6e2f CR |
688 | (sha256 |
689 | (base32 | |
ffb1e98d | 690 | "0x98qqqw35xllpcama013a9788ly84z8dm1w2wwfpxh2710c8df5")))) |
5ace6e2f | 691 | (build-system python-build-system) |
f22efa01 | 692 | (propagated-inputs |
f3b98f4f | 693 | `(("python-pytz" ,python-pytz))) |
8498b8cf | 694 | (arguments `(#:tests? #f)) ; no test target |
e1804763 | 695 | (home-page "http://babel.pocoo.org/") |
5ace6e2f CR |
696 | (synopsis |
697 | "Tools for internationalizing Python applications") | |
698 | (description | |
699 | "Babel is composed of two major parts: | |
700 | - tools to build and work with gettext message catalogs | |
701 | - a Python interface to the CLDR (Common Locale Data Repository), providing | |
702 | access to various locale display names, localized number and date formatting, | |
703 | etc. ") | |
3f641af0 | 704 | (license license:bsd-3))) |
89114f39 AE |
705 | |
706 | (define-public python2-babel | |
11bb85a1 | 707 | (package-with-python2 python-babel)) |
73adf220 | 708 | |
ed377cc6 RW |
709 | (define-public python2-backport-ssl-match-hostname |
710 | (package | |
711 | (name "python2-backport-ssl-match-hostname") | |
f2d06d46 | 712 | (version "3.5.0.1") |
ed377cc6 RW |
713 | (source |
714 | (origin | |
715 | (method url-fetch) | |
716 | (uri (string-append | |
717 | "https://pypi.python.org/packages/source/b/" | |
718 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" | |
719 | version ".tar.gz")) | |
720 | (sha256 | |
721 | (base32 | |
f2d06d46 | 722 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
ed377cc6 | 723 | (build-system python-build-system) |
f2d06d46 EF |
724 | (arguments |
725 | `(#:python ,python-2 | |
726 | #:tests? #f)) ; no test target | |
f2d06d46 EF |
727 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
728 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") | |
ed377cc6 RW |
729 | (description |
730 | "This backport brings the ssl.match_hostname() function to users of | |
731 | earlier versions of Python. The function checks the hostname in the | |
732 | certificate returned by the server to which a connection has been established, | |
733 | and verifies that it matches the intended target hostname.") | |
3f641af0 | 734 | (license license:psfl))) |
ed377cc6 | 735 | |
d205f895 TD |
736 | (define-public python-hdf4 |
737 | (package | |
738 | (name "python-hdf4") | |
739 | (version "0.9") | |
740 | (source | |
741 | (origin | |
742 | (method url-fetch) | |
743 | (uri (pypi-uri name version)) | |
744 | (sha256 | |
745 | (base32 | |
746 | "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks")))) | |
747 | (build-system python-build-system) | |
748 | (native-inputs `(("nose" ,python-nose))) | |
749 | (propagated-inputs `(("numpy" ,python-numpy))) | |
750 | (inputs | |
751 | `(("hdf4" ,hdf4) | |
752 | ("libjpeg" ,libjpeg) | |
753 | ("zlib" ,zlib))) | |
754 | (arguments | |
755 | `(#:phases | |
756 | (modify-phases %standard-phases | |
757 | (replace 'check | |
758 | (lambda _ | |
759 | ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes | |
760 | ;; on to import numpy. Somehow this works on their CI system. | |
761 | ;; Let's just manage PYTHONPATH here instead. | |
762 | (substitute* "runexamples.sh" | |
763 | (("export PYTHONPATH=.*") "")) | |
764 | (setenv "PYTHONPATH" | |
765 | (string-append (getcwd) ":" | |
766 | (getenv "PYTHONPATH"))) | |
767 | (and (zero? (system* "./runexamples.sh")) | |
768 | (zero? (system* "nosetests" "-v")))))))) | |
769 | (home-page "https://github.com/fhs/python-hdf4") | |
770 | (synopsis "Python interface to the NCSA HDF4 library") | |
771 | (description | |
772 | "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library, | |
773 | which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s. | |
774 | NetCDF files can also be read and modified. Python-HDF4 is a fork of | |
775 | @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.") | |
776 | (license license:expat))) | |
777 | ||
778 | (define-public python2-hdf4 | |
779 | (package-with-python2 python-hdf4)) | |
780 | ||
ef5cbf9b RW |
781 | (define-public python-h5py |
782 | (package | |
783 | (name "python-h5py") | |
fe147c41 | 784 | (version "2.6.0") |
ef5cbf9b RW |
785 | (source |
786 | (origin | |
787 | (method url-fetch) | |
fe147c41 | 788 | (uri (pypi-uri "h5py" version)) |
ef5cbf9b RW |
789 | (sha256 |
790 | (base32 | |
fe147c41 | 791 | "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj")))) |
ef5cbf9b | 792 | (build-system python-build-system) |
797e1401 RW |
793 | (arguments |
794 | `(#:tests? #f ; no test target | |
795 | #:phases | |
796 | (modify-phases %standard-phases | |
797 | (add-after 'unpack 'fix-hdf5-paths | |
798 | (lambda* (#:key inputs #:allow-other-keys) | |
799 | (let ((prefix (assoc-ref inputs "hdf5"))) | |
800 | (substitute* "setup_build.py" | |
801 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") | |
802 | (string-append "['" prefix "/lib" "']")) | |
803 | (("'/opt/local/include', '/usr/local/include'") | |
804 | (string-append "'" prefix "/include" "'"))) | |
805 | (substitute* "setup_configure.py" | |
806 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") | |
807 | (string-append "['" prefix "/lib" "']"))) | |
808 | #t)))))) | |
3c4010b1 | 809 | (propagated-inputs |
69866690 HG |
810 | `(("python-six" ,python-six) |
811 | ("python-numpy" ,python-numpy))) | |
ef5cbf9b | 812 | (inputs |
69866690 | 813 | `(("hdf5" ,hdf5))) |
ef5cbf9b | 814 | (native-inputs |
fe147c41 EF |
815 | `(("python-cython" ,python-cython) |
816 | ("python-pkgconfig" ,python-pkgconfig))) | |
ef5cbf9b RW |
817 | (home-page "http://www.h5py.org/") |
818 | (synopsis "Read and write HDF5 files from Python") | |
819 | (description | |
820 | "The h5py package provides both a high- and low-level interface to the | |
821 | HDF5 library from Python. The low-level interface is intended to be a | |
822 | complete wrapping of the HDF5 API, while the high-level component supports | |
823 | access to HDF5 files, datasets and groups using established Python and NumPy | |
824 | concepts.") | |
9820a028 | 825 | (license license:bsd-3))) |
ef5cbf9b RW |
826 | |
827 | (define-public python2-h5py | |
9820a028 | 828 | (package-with-python2 python-h5py)) |
ef5cbf9b | 829 | |
ea8450c8 TD |
830 | (define-public python-netcdf4 |
831 | (package | |
832 | (name "python-netcdf4") | |
d5a97839 | 833 | (version "1.2.7") |
ea8450c8 TD |
834 | (source |
835 | (origin | |
836 | (method url-fetch) | |
837 | (uri (pypi-uri "netCDF4" version)) | |
838 | (sha256 | |
839 | (base32 | |
d5a97839 | 840 | "1fllizmnpw0zkzzm4j9pgamarlzfn3kmv9zrm0w65q1y31h9ni0c")))) |
ea8450c8 TD |
841 | (build-system python-build-system) |
842 | (native-inputs | |
843 | `(("python-cython" ,python-cython))) | |
844 | (propagated-inputs | |
845 | `(("python-numpy" ,python-numpy))) | |
846 | (inputs | |
847 | `(("netcdf" ,netcdf) | |
848 | ("hdf4" ,hdf4) | |
849 | ("hdf5" ,hdf5))) | |
850 | (arguments | |
851 | '(#:phases | |
852 | (modify-phases %standard-phases | |
853 | (replace 'check | |
854 | (lambda _ | |
855 | (setenv "NO_NET" "1") ; disable opendap tests | |
856 | (with-directory-excursion "test" | |
857 | (setenv "PYTHONPATH" ; find and add the library we just built | |
858 | (string-append | |
859 | (car (find-files "../build" "lib.*" | |
860 | #:directories? #:t | |
861 | #:fail-on-error? #:t)) | |
862 | ":" (getenv "PYTHONPATH"))) | |
863 | (zero? (system* "python" "run_all.py")))))))) | |
864 | (home-page | |
865 | "https://github.com/Unidata/netcdf4-python") | |
866 | (synopsis "Python/numpy interface to the netCDF library") | |
867 | (description "Netcdf4-python is a Python interface to the netCDF C | |
868 | library. netCDF version 4 has many features not found in earlier | |
869 | versions of the library and is implemented on top of HDF5. This module | |
870 | can read and write files in both the new netCDF 4 and the old netCDF 3 | |
871 | format, and can create files that are readable by HDF5 clients. The | |
872 | API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar | |
873 | to users of that module.") | |
874 | ;; The software is mainly ISC, but includes some files covered | |
875 | ;; by the Expat license. | |
876 | (license (list license:isc license:expat)))) | |
877 | ||
878 | (define-public python2-netcdf4 | |
879 | (package-with-python2 python-netcdf4)) | |
880 | ||
c1448c69 EB |
881 | (define-public python-lockfile |
882 | (package | |
883 | (name "python-lockfile") | |
692add53 | 884 | (version "0.12.2") |
c1448c69 EB |
885 | (source |
886 | (origin | |
887 | (method url-fetch) | |
888 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" | |
889 | "lockfile-" version ".tar.gz")) | |
890 | (sha256 | |
891 | (base32 | |
692add53 | 892 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
c1448c69 EB |
893 | (build-system python-build-system) |
894 | (arguments '(#:test-target "check")) | |
692add53 BW |
895 | (native-inputs |
896 | `(("python-pbr" ,python-pbr))) | |
6a8f26a4 | 897 | (home-page "https://launchpad.net/pylockfile") |
c1448c69 EB |
898 | (synopsis "Platform-independent file locking module") |
899 | (description | |
900 | "The lockfile package exports a LockFile class which provides a simple | |
901 | API for locking files.") | |
f210e944 | 902 | (license license:expat))) |
c1448c69 EB |
903 | |
904 | (define-public python2-lockfile | |
f210e944 | 905 | (package-with-python2 python-lockfile)) |
c1448c69 | 906 | |
5a1a4bf6 EB |
907 | (define-public python-mock |
908 | (package | |
909 | (name "python-mock") | |
910 | (version "1.0.1") | |
911 | (source | |
912 | (origin | |
913 | (method url-fetch) | |
6b7877e1 | 914 | (uri (pypi-uri "mock" version)) |
5a1a4bf6 EB |
915 | (sha256 |
916 | (base32 | |
917 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) | |
918 | (build-system python-build-system) | |
919 | (arguments '(#:test-target "check")) | |
6b7877e1 | 920 | (home-page "https://github.com/testing-cabal/mock") |
9e771e3b | 921 | (synopsis "Python mocking and patching library for testing") |
5a1a4bf6 EB |
922 | (description |
923 | "Mock is a library for testing in Python. It allows you to replace parts | |
924 | of your system under test with mock objects and make assertions about how they | |
925 | have been used.") | |
bd3fa666 | 926 | (license license:expat))) |
5a1a4bf6 EB |
927 | |
928 | (define-public python2-mock | |
929 | (package-with-python2 python-mock)) | |
930 | ||
fc50e9c6 | 931 | |
73adf220 AE |
932 | (define-public python-setuptools |
933 | (package | |
934 | (name "python-setuptools") | |
d660f7be | 935 | (version "31.0.0") |
73adf220 AE |
936 | (source |
937 | (origin | |
938 | (method url-fetch) | |
d660f7be | 939 | (uri (pypi-uri "setuptools" version)) |
73adf220 AE |
940 | (sha256 |
941 | (base32 | |
d660f7be | 942 | "0ypybh4hx3bv4vhg2dc74xpj1g56ggnaffm87k4abhwjwq6wq608")) |
e0ed4579 HG |
943 | (modules '((guix build utils))) |
944 | (snippet | |
945 | '(begin | |
946 | ;; Remove included binaries which are used to build self-extracting | |
947 | ;; installers for Windows. | |
948 | ;; TODO: Find some way to build them ourself so we can include them. | |
949 | (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$")) | |
950 | #t)))) | |
73adf220 | 951 | (build-system python-build-system) |
d3d656c5 AE |
952 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
953 | ;; One could bootstrap with an internal untested setuptools. | |
73adf220 | 954 | (arguments |
824af8ca | 955 | `(#:tests? #f)) |
73adf220 AE |
956 | (home-page "https://pypi.python.org/pypi/setuptools") |
957 | (synopsis | |
958 | "Library designed to facilitate packaging Python projects") | |
959 | (description | |
960 | "Setuptools is a fully-featured, stable library designed to facilitate | |
961 | packaging Python projects, where packaging includes: | |
962 | Python package and module definitions, | |
963 | distribution package metadata, | |
964 | test hooks, | |
965 | project installation, | |
966 | platform-specific details, | |
967 | Python 3 support.") | |
d660f7be MB |
968 | ;; TODO: setuptools now bundles the following libraries: |
969 | ;; packaging, pyparsing, six and appdirs. How to unbundle? | |
970 | (license (list license:psfl ; setuptools itself | |
971 | license:expat ; six, appdirs, pyparsing | |
972 | license:asl2.0 ; packaging is dual ASL2/BSD-2 | |
973 | license:bsd-2)))) | |
73adf220 AE |
974 | |
975 | (define-public python2-setuptools | |
976 | (package-with-python2 python-setuptools)) | |
fc50e9c6 | 977 | |
aa21c764 | 978 | ;;; Pycrypto is abandoned upstream: |
1194575b | 979 | ;;; |
aa21c764 | 980 | ;;; https://github.com/dlitz/pycrypto/issues/173 |
1194575b | 981 | ;;; |
aa21c764 | 982 | ;;; TODO Remove this package from GNU Guix. |
cafc3f5a EB |
983 | (define-public python-pycrypto |
984 | (package | |
985 | (name "python-pycrypto") | |
986 | (version "2.6.1") | |
987 | (source | |
988 | (origin | |
989 | (method url-fetch) | |
aa21c764 LF |
990 | (uri (pypi-uri "pycrypto" version)) |
991 | (patches (search-patches "python-pycrypto-CVE-2013-7459.patch")) | |
cafc3f5a EB |
992 | (sha256 |
993 | (base32 | |
994 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) | |
995 | (build-system python-build-system) | |
cafc3f5a EB |
996 | (inputs |
997 | `(("python" ,python) | |
998 | ("gmp" ,gmp))) | |
999 | (arguments | |
1000 | `(#:phases | |
1001 | (alist-cons-before | |
1002 | 'build 'set-build-env | |
1003 | ;; pycrypto runs an autoconf configure script behind the scenes | |
1004 | (lambda _ | |
1005 | (setenv "CONFIG_SHELL" (which "bash"))) | |
1006 | %standard-phases))) | |
1007 | (home-page "http://www.pycrypto.org/") | |
1008 | (synopsis "Cryptographic modules for Python") | |
1009 | (description | |
1010 | "Pycrypto is a collection of both secure hash functions (such as SHA256 | |
1011 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, | |
35b9e423 | 1012 | etc.). The package is structured to make adding new modules easy.") |
3f641af0 | 1013 | (license license:public-domain))) |
cafc3f5a | 1014 | |
345f0611 | 1015 | (define-public python2-pycrypto |
1c0059da EF |
1016 | (let ((pycrypto (package-with-python2 python-pycrypto))) |
1017 | (package (inherit pycrypto) | |
1018 | (inputs | |
1019 | `(("python" ,python-2) | |
1020 | ,@(alist-delete | |
1021 | "python" | |
1022 | (package-inputs pycrypto))))))) | |
345f0611 | 1023 | |
de959250 | 1024 | (define-public python-eventlet |
1025 | (package | |
1026 | (name "python-eventlet") | |
1027 | (version "0.20.1") | |
1028 | (source | |
1029 | (origin | |
1030 | (method url-fetch) | |
1031 | (uri (pypi-uri "eventlet" version)) | |
1032 | (sha256 | |
1033 | (base32 | |
1034 | "0f3q55mq4n021wb7qa53pz3ix6i2py64sap66vsaqm2scjw83m9s")))) | |
1035 | (build-system python-build-system) | |
1036 | (propagated-inputs | |
1037 | `(("python-greenlet" ,python-greenlet))) | |
1038 | (home-page "http://eventlet.net") | |
1039 | (synopsis "Concurrent networking library for Python") | |
1040 | (description | |
1041 | "Eventlet is a concurrent networking library for Python that | |
1042 | allows you to change how you run your code, not how you write it. | |
1043 | It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. | |
1044 | Coroutines ensure that the developer uses a blocking style of programming | |
1045 | that is similar to threading, but provide the benefits of non-blocking I/O. | |
1046 | The event dispatch is implicit, which means you can easily use @code{Eventlet} | |
1047 | from the Python interpreter, or as a small part of a larger application.") | |
1048 | (license license:expat))) | |
1049 | ||
1050 | (define-public python2-eventlet | |
1051 | (let ((base (package-with-python2 | |
1052 | (strip-python2-variant python-eventlet)))) | |
1053 | (package (inherit base) | |
1054 | (propagated-inputs | |
1055 | `(("python2-enum34" ,python2-enum34) | |
1056 | ,@(package-propagated-inputs base)))))) | |
1057 | ||
cafc3f5a EB |
1058 | (define-public python-keyring |
1059 | (package | |
1060 | (name "python-keyring") | |
13f3ff35 | 1061 | (version "8.7") |
cafc3f5a EB |
1062 | (source |
1063 | (origin | |
1064 | (method url-fetch) | |
664e6c3a | 1065 | (uri (pypi-uri "keyring" version)) |
cafc3f5a EB |
1066 | (sha256 |
1067 | (base32 | |
13f3ff35 | 1068 | "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx")))) |
cafc3f5a EB |
1069 | (build-system python-build-system) |
1070 | (native-inputs | |
13f3ff35 | 1071 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
f22efa01 | 1072 | (propagated-inputs |
cafc3f5a EB |
1073 | `(("python-pycrypto" ,python-pycrypto))) |
1074 | (arguments | |
664e6c3a | 1075 | `(#:tests? #f)) ;TODO: tests require pytest |
190ba6c2 | 1076 | (home-page "https://github.com/jaraco/keyring") |
cafc3f5a EB |
1077 | (synopsis "Store and access your passwords safely") |
1078 | (description | |
1079 | "The Python keyring lib provides a easy way to access the system keyring | |
35b9e423 | 1080 | service from python. It can be used in any application that needs safe |
cafc3f5a EB |
1081 | password storage.") |
1082 | ;; "MIT" and PSF dual license | |
f210e944 | 1083 | (license license:x11))) |
cafc3f5a | 1084 | |
d7af1069 | 1085 | (define-public python2-keyring |
f210e944 | 1086 | (package-with-python2 python-keyring)) |
d7af1069 | 1087 | |
a480bc41 EB |
1088 | (define-public python-six |
1089 | (package | |
1090 | (name "python-six") | |
b6ab89ef | 1091 | (version "1.10.0") |
a480bc41 EB |
1092 | (source |
1093 | (origin | |
1094 | (method url-fetch) | |
b6ab89ef | 1095 | (uri (pypi-uri "six" version)) |
a480bc41 EB |
1096 | (sha256 |
1097 | (base32 | |
b6ab89ef | 1098 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
a480bc41 | 1099 | (build-system python-build-system) |
4fd129ee MB |
1100 | (native-inputs |
1101 | `(("python-py" ,python-py) | |
1102 | ("python-pytest" ,python-pytest))) | |
a480bc41 EB |
1103 | (home-page "http://pypi.python.org/pypi/six/") |
1104 | (synopsis "Python 2 and 3 compatibility utilities") | |
1105 | (description | |
35b9e423 | 1106 | "Six is a Python 2 and 3 compatibility library. It provides utility |
a480bc41 EB |
1107 | functions for smoothing over the differences between the Python versions with |
1108 | the goal of writing Python code that is compatible on both Python versions. | |
35b9e423 | 1109 | Six supports every Python version since 2.5. It is contained in only one |
a480bc41 | 1110 | Python file, so it can be easily copied into your project.") |
3f641af0 | 1111 | (license license:x11))) |
a480bc41 | 1112 | |
0c20025c AE |
1113 | (define-public python2-six |
1114 | (package-with-python2 python-six)) | |
1115 | ||
22d7360b | 1116 | (define-public python-dateutil |
cafc3f5a EB |
1117 | (package |
1118 | (name "python-dateutil") | |
6bd9ad69 | 1119 | (version "2.5.3") |
cafc3f5a EB |
1120 | (source |
1121 | (origin | |
1122 | (method url-fetch) | |
394b8060 | 1123 | (uri (pypi-uri "python-dateutil" version)) |
cafc3f5a EB |
1124 | (sha256 |
1125 | (base32 | |
6bd9ad69 | 1126 | "1v9j9fmf8g911yg6k01xa2db6dx3wv73zkk7fncsj7vagjqgs20l")))) |
cafc3f5a | 1127 | (build-system python-build-system) |
f22efa01 | 1128 | (propagated-inputs |
394b8060 | 1129 | `(("python-six" ,python-six))) |
b5a5fb19 | 1130 | (home-page "https://dateutil.readthedocs.io/en/stable/") |
cafc3f5a EB |
1131 | (synopsis "Extensions to the standard datetime module") |
1132 | (description | |
1133 | "The dateutil module provides powerful extensions to the standard | |
1134 | datetime module, available in Python 2.3+.") | |
f210e944 | 1135 | (license license:bsd-3))) |
cafc3f5a | 1136 | |
fc50e9c6 AE |
1137 | (define-public python2-dateutil |
1138 | (package-with-python2 python-dateutil)) | |
1d08c01f | 1139 | |
cafc3f5a EB |
1140 | (define-public python-parsedatetime |
1141 | (package | |
1142 | (name "python-parsedatetime") | |
eebf6f01 | 1143 | (version "2.1") |
cafc3f5a EB |
1144 | (source |
1145 | (origin | |
1146 | (method url-fetch) | |
eebf6f01 | 1147 | (uri (pypi-uri "parsedatetime" version)) |
cafc3f5a EB |
1148 | (sha256 |
1149 | (base32 | |
eebf6f01 | 1150 | "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p")))) |
cafc3f5a EB |
1151 | (build-system python-build-system) |
1152 | (native-inputs | |
eebf6f01 EF |
1153 | `(("python-nose" ,python-nose) |
1154 | ("python-pyicu" ,python-pyicu))) | |
cafc3f5a EB |
1155 | (home-page "http://github.com/bear/parsedatetime/") |
1156 | (synopsis | |
1157 | "Parse human-readable date/time text") | |
1158 | (description | |
e881752c | 1159 | "Parse human-readable date/time text.") |
f210e944 | 1160 | (license license:asl2.0))) |
cafc3f5a | 1161 | |
38b8f9b2 | 1162 | (define-public python2-parsedatetime |
f210e944 | 1163 | (package-with-python2 python-parsedatetime)) |
38b8f9b2 | 1164 | |
d072efcb RW |
1165 | (define-public python-pandas |
1166 | (package | |
1167 | (name "python-pandas") | |
8e086048 | 1168 | (version "0.19.2") |
d072efcb RW |
1169 | (source |
1170 | (origin | |
1b96f069 | 1171 | (method url-fetch) |
8e086048 | 1172 | (uri (pypi-uri "pandas" version)) |
1b96f069 | 1173 | (sha256 |
8e086048 | 1174 | (base32 "0540cnbwy2hc4hv2sxfs8i47xi91qzvzxfn80dl785ibiicly3vg")))) |
d072efcb | 1175 | (build-system python-build-system) |
d072efcb | 1176 | (propagated-inputs |
f22efa01 HG |
1177 | `(("python-numpy" ,python-numpy) |
1178 | ("python-pytz" ,python-pytz) | |
22d7360b | 1179 | ("python-dateutil" ,python-dateutil))) |
d072efcb | 1180 | (native-inputs |
abcc7a0e HG |
1181 | `(("python-nose" ,python-nose) |
1182 | ("python-cython" ,python-cython))) | |
d072efcb RW |
1183 | (home-page "http://pandas.pydata.org") |
1184 | (synopsis "Data structures for data analysis, time series, and statistics") | |
1185 | (description | |
1186 | "Pandas is a Python package providing fast, flexible, and expressive data | |
1187 | structures designed to make working with structured (tabular, | |
1188 | multidimensional, potentially heterogeneous) and time series data both easy | |
1189 | and intuitive. It aims to be the fundamental high-level building block for | |
1190 | doing practical, real world data analysis in Python.") | |
f210e944 | 1191 | (license license:bsd-3))) |
d072efcb RW |
1192 | |
1193 | (define-public python2-pandas | |
f210e944 | 1194 | (package-with-python2 python-pandas)) |
d072efcb | 1195 | |
cafc3f5a EB |
1196 | (define-public python-tzlocal |
1197 | (package | |
1198 | (name "python-tzlocal") | |
ed80839b | 1199 | (version "1.2.2") |
cafc3f5a EB |
1200 | (source |
1201 | (origin | |
1202 | (method url-fetch) | |
226d3331 | 1203 | (uri (pypi-uri "tzlocal" version)) |
cafc3f5a EB |
1204 | (sha256 |
1205 | (base32 | |
ed80839b | 1206 | "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb")))) |
cafc3f5a | 1207 | (build-system python-build-system) |
f22efa01 HG |
1208 | (propagated-inputs |
1209 | `(("python-pytz" ,python-pytz))) | |
cafc3f5a EB |
1210 | (home-page "https://github.com/regebro/tzlocal") |
1211 | (synopsis | |
35b9e423 | 1212 | "Local timezone information for Python") |
cafc3f5a EB |
1213 | (description |
1214 | "Tzlocal returns a tzinfo object with the local timezone information. | |
1215 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
1216 | get the local timezone information, unless you know the zoneinfo name, and | |
1217 | under several distributions that's hard or impossible to figure out.") | |
3f641af0 | 1218 | (license license:cc0))) |
cafc3f5a | 1219 | |
1d08c01f AE |
1220 | (define-public python2-pysqlite |
1221 | (package | |
1222 | (name "python2-pysqlite") | |
e80aaeb4 | 1223 | (version "2.8.3") |
1d08c01f AE |
1224 | (source |
1225 | (origin | |
1226 | (method url-fetch) | |
fe476868 | 1227 | (uri (pypi-uri "pysqlite" version)) |
1d08c01f AE |
1228 | (sha256 |
1229 | (base32 | |
e80aaeb4 | 1230 | "1424gwq9sil2ffmnizk60q36vydkv8rxs6m7xs987kz8cdc37lqp")))) |
1d08c01f AE |
1231 | (build-system python-build-system) |
1232 | (inputs | |
1233 | `(("sqlite" ,sqlite))) | |
1234 | (arguments | |
1235 | `(#:python ,python-2 ; incompatible with Python 3 | |
1236 | #:tests? #f)) ; no test target | |
fe476868 | 1237 | (home-page "http://github.com/ghaering/pysqlite") |
7a03af70 | 1238 | (synopsis "SQLite bindings for Python") |
1d08c01f AE |
1239 | (description |
1240 | "Pysqlite provides SQLite bindings for Python that comply to the | |
1241 | Database API 2.0T.") | |
ed0cdf83 | 1242 | (license license:zlib))) |
1d08c01f | 1243 | |
2875caf5 AE |
1244 | |
1245 | (define-public python2-mechanize | |
1246 | (package | |
1247 | (name "python2-mechanize") | |
1248 | (version "0.2.5") | |
1249 | (source | |
1250 | (origin | |
1251 | (method url-fetch) | |
1252 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" | |
1253 | version ".tar.gz")) | |
1254 | (sha256 | |
1255 | (base32 | |
1256 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) | |
1257 | (build-system python-build-system) | |
2875caf5 AE |
1258 | (arguments |
1259 | `(#:python ,python-2 ; apparently incompatible with Python 3 | |
1260 | #:tests? #f)) | |
1261 | ;; test fails with message | |
1262 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' | |
1263 | ;; (python-3.3.2) or | |
1264 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' | |
1265 | ;; (python-2.7.5). | |
1266 | ;; The source code is from March 2011 and probably not up-to-date | |
1267 | ;; with respect to python unit tests. | |
1268 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") | |
1269 | (synopsis | |
1270 | "Stateful programmatic web browsing in Python") | |
1271 | (description | |
1272 | "Mechanize implements stateful programmatic web browsing in Python, | |
1273 | after Andy Lester’s Perl module WWW::Mechanize.") | |
3f641af0 DC |
1274 | (license (license:non-copyleft |
1275 | "file://COPYING" | |
1276 | "See COPYING in the distribution.")))) | |
2875caf5 | 1277 | |
0352532e AE |
1278 | |
1279 | (define-public python-simplejson | |
1280 | (package | |
1281 | (name "python-simplejson") | |
b2e6e150 | 1282 | (version "3.10.0") |
0352532e AE |
1283 | (source |
1284 | (origin | |
1285 | (method url-fetch) | |
988d1bad | 1286 | (uri (pypi-uri "simplejson" version)) |
0352532e AE |
1287 | (sha256 |
1288 | (base32 | |
b2e6e150 | 1289 | "1qhwsykjlb85igb4cfl6v6gkprzbbg8gyqdd7zscc8w3x0ifcfwm")))) |
0352532e AE |
1290 | (build-system python-build-system) |
1291 | (home-page "http://simplejson.readthedocs.org/en/latest/") | |
1292 | (synopsis | |
1293 | "Json library for Python") | |
1294 | (description | |
e881752c AK |
1295 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
1296 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange | |
1297 | format. | |
0352532e AE |
1298 | |
1299 | Simplejson exposes an API familiar to users of the standard library marshal | |
1300 | and pickle modules. It is the externally maintained version of the json | |
1301 | library contained in Python 2.6, but maintains compatibility with Python 2.5 | |
1302 | and (currently) has significant performance advantages, even without using | |
1303 | the optional C extension for speedups. Simplejson is also supported on | |
1304 | Python 3.3+.") | |
3f641af0 | 1305 | (license license:x11))) |
0352532e AE |
1306 | |
1307 | (define-public python2-simplejson | |
1308 | (package-with-python2 python-simplejson)) | |
421a80a2 AE |
1309 | |
1310 | ||
ed07b08d | 1311 | (define-public python-pyicu |
421a80a2 | 1312 | (package |
ed07b08d | 1313 | (name "python-pyicu") |
2e161eaf | 1314 | (version "1.9.5") |
421a80a2 AE |
1315 | (source |
1316 | (origin | |
1317 | (method url-fetch) | |
2e161eaf | 1318 | (uri (pypi-uri "PyICU" version)) |
421a80a2 AE |
1319 | (sha256 |
1320 | (base32 | |
2e161eaf | 1321 | "16rmxy9y0qhqqna2v49i7nzwm09as699rbyvh4raw7w602w55c3k")))) |
421a80a2 | 1322 | (build-system python-build-system) |
dc027d40 MB |
1323 | (arguments |
1324 | '(#:phases | |
1325 | (modify-phases %standard-phases | |
1326 | (add-before 'check 'delete-failing-test | |
1327 | (lambda _ | |
1328 | ;; XXX: These tests require locales that are unavailable | |
1329 | ;; in the build environment. | |
1330 | (delete-file "test/test_DateTimeParserGenerator.py") | |
1331 | #t))))) | |
421a80a2 AE |
1332 | (inputs |
1333 | `(("icu4c" ,icu4c))) | |
421a80a2 | 1334 | (home-page "http://pyicu.osafoundation.org/") |
9e771e3b | 1335 | (synopsis "Python extension wrapping the ICU C++ API") |
421a80a2 AE |
1336 | (description |
1337 | "PyICU is a python extension wrapping the ICU C++ API.") | |
f210e944 | 1338 | (license license:x11))) |
ed07b08d LF |
1339 | |
1340 | (define-public python2-pyicu | |
f210e944 | 1341 | (package-with-python2 python-pyicu)) |
cc20a22a LC |
1342 | |
1343 | (define-public python2-dogtail | |
1344 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and | |
1345 | ;; spaces in indentation" with Python 3. | |
1346 | (package | |
1347 | (name "python2-dogtail") | |
1348 | (version "0.8.2") | |
1349 | (source (origin | |
1350 | (method url-fetch) | |
1351 | (uri (string-append | |
1352 | "https://fedorahosted.org/released/dogtail/dogtail-" | |
1353 | version ".tar.gz")) | |
1354 | (sha256 | |
1355 | (base32 | |
1356 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) | |
1357 | (build-system python-build-system) | |
1358 | (arguments `(#:python ,python-2 | |
1359 | #:tests? #f)) ; invalid command "test" | |
1360 | (home-page "https://fedorahosted.org/dogtail/") | |
1003fbcf | 1361 | (synopsis "GUI test tool and automation framework written in Python") |
cc20a22a | 1362 | (description |
35b9e423 | 1363 | "Dogtail is a GUI test tool and automation framework written in Python. |
cc20a22a LC |
1364 | It uses Accessibility (a11y) technologies to communicate with desktop |
1365 | applications. dogtail scripts are written in Python and executed like any | |
1366 | other Python program.") | |
3f641af0 | 1367 | (license license:gpl2+))) |
515e6878 | 1368 | |
011b18c3 LC |
1369 | (define-public python2-empy |
1370 | (package | |
1371 | (name "python2-empy") | |
1372 | (version "3.3") | |
1373 | (source (origin | |
1374 | (method url-fetch) | |
1375 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" | |
1376 | version ".tar.gz")) | |
1377 | (sha256 | |
1378 | (base32 | |
1379 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) | |
1380 | (build-system python-build-system) | |
1381 | (arguments | |
1382 | `(#:python ,python-2 | |
1383 | #:phases (alist-replace | |
1384 | 'check | |
1385 | (lambda _ | |
1386 | (zero? (system* "./test.sh"))) | |
1387 | %standard-phases))) | |
1388 | (home-page "http://www.alcyone.com/software/empy/") | |
1389 | (synopsis "Templating system for Python") | |
1390 | (description | |
1391 | "EmPy is a system for embedding Python expressions and statements in | |
1392 | template text; it takes an EmPy source file, processes it, and produces | |
1393 | output. This is accomplished via expansions, which are special signals to the | |
1cd4027c | 1394 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
011b18c3 LC |
1395 | EmPy can expand arbitrary Python expressions and statements in this way, as |
1396 | well as a variety of special forms. Textual data not explicitly delimited in | |
1397 | this way is sent unaffected to the output, allowing Python to be used in | |
1398 | effect as a markup language. Also supported are callbacks via hooks, | |
1399 | recording and playback via diversions, and dynamic, chainable filters. The | |
1400 | system is highly configurable via command line options and embedded | |
1401 | commands.") | |
3f641af0 | 1402 | (license license:lgpl2.1+))) |
011b18c3 | 1403 | |
8deeda0c LC |
1404 | (define-public python2-element-tree |
1405 | (package | |
1406 | (name "python2-element-tree") | |
1407 | (version "1.2.6") | |
1408 | (source (origin | |
1409 | (method url-fetch) | |
1410 | (uri (string-append | |
1411 | "http://effbot.org/media/downloads/elementtree-" | |
1412 | version "-20050316.tar.gz")) | |
1413 | (sha256 | |
1414 | (base32 | |
1415 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) | |
1416 | (build-system python-build-system) | |
1417 | (arguments | |
1418 | `(#:python ,python-2 ; seems to be part of Python 3 | |
1419 | #:tests? #f)) ; no 'test' sub-command | |
1420 | (synopsis "Toolkit for XML processing in Python") | |
1421 | (description | |
1422 | "ElementTree is a Python library supporting lightweight XML processing.") | |
1423 | (home-page "http://effbot.org/zone/element-index.htm") | |
3f641af0 DC |
1424 | (license (license:x11-style |
1425 | "http://docs.python.org/2/license.html" | |
1426 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) | |
8deeda0c LC |
1427 | |
1428 | (define-public python2-pybugz | |
1429 | (package | |
1430 | (name "python2-pybugz") | |
1431 | (version "0.6.11") | |
1432 | (source (origin | |
1433 | (method url-fetch) | |
1434 | (uri (string-append | |
1435 | "http://bits.liquidx.net/projects/pybugz/pybugz-" | |
1436 | version ".tar.gz")) | |
1437 | (sha256 | |
1438 | (base32 | |
6f194a1e | 1439 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
fc1adab1 AK |
1440 | (patches (search-patches "pybugz-stty.patch" |
1441 | "pybugz-encode-error.patch")))) | |
8deeda0c LC |
1442 | (build-system python-build-system) |
1443 | (arguments | |
1444 | `(#:python ,python-2 ; SyntaxError with Python 3 | |
1445 | #:tests? #f)) ; no 'test' sub-command | |
f22efa01 HG |
1446 | (propagated-inputs |
1447 | `(("element-tree" ,python2-element-tree))) | |
8deeda0c LC |
1448 | (synopsis "Python and command-line interface to Bugzilla") |
1449 | (description | |
1450 | "PyBugz is a Python library and command-line tool to query the Bugzilla | |
1451 | bug tracking system. It is meant as an aid to speed up interaction with the | |
1452 | bug tracker.") | |
1453 | (home-page "http://www.liquidx.net/pybugz/") | |
3f641af0 | 1454 | (license license:gpl2))) |
8deeda0c | 1455 | |
a480bc41 EB |
1456 | (define-public python-enum34 |
1457 | (package | |
1458 | (name "python-enum34") | |
d39ae1e5 | 1459 | (version "1.1.0") |
a480bc41 EB |
1460 | (source |
1461 | (origin | |
1462 | (method url-fetch) | |
d39ae1e5 | 1463 | (uri (pypi-uri "enum34" version)) |
a480bc41 EB |
1464 | (sha256 |
1465 | (base32 | |
d39ae1e5 | 1466 | "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp")))) |
a480bc41 | 1467 | (build-system python-build-system) |
a480bc41 EB |
1468 | (arguments |
1469 | `(#:phases | |
1470 | (alist-replace | |
1471 | 'check | |
1472 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) | |
1473 | %standard-phases))) | |
1474 | (home-page "https://pypi.python.org/pypi/enum34") | |
1475 | (synopsis "Backported Python 3.4 Enum") | |
1476 | (description | |
1477 | "Enum34 is the new Python stdlib enum module available in Python 3.4 | |
1478 | backported for previous versions of Python from 2.4 to 3.3.") | |
3f641af0 | 1479 | (license license:bsd-3))) |
a480bc41 | 1480 | |
820acd1b LF |
1481 | (define-public python2-enum34 |
1482 | (package-with-python2 python-enum34)) | |
1483 | ||
a480bc41 EB |
1484 | (define-public python-parse-type |
1485 | (package | |
1486 | (name "python-parse-type") | |
1487 | (version "0.3.4") | |
1488 | (source | |
1489 | (origin | |
1490 | (method url-fetch) | |
1491 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1492 | "parse_type/parse_type-" version ".tar.gz")) | |
1493 | (sha256 | |
1494 | (base32 | |
1495 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) | |
1496 | (build-system python-build-system) | |
f22efa01 | 1497 | (propagated-inputs |
f3b98f4f | 1498 | `(("python-six" ,python-six) |
68f1cdec | 1499 | ("python-parse" ,python-parse))) |
a480bc41 EB |
1500 | (arguments '(#:tests? #f)) ;TODO: tests require pytest |
1501 | (home-page "https://github.com/jenisys/parse_type") | |
1502 | (synopsis "Extended parse module") | |
1503 | (description | |
1504 | "Parse_type extends the python parse module.") | |
3f641af0 | 1505 | (license license:bsd-3))) |
a480bc41 EB |
1506 | |
1507 | (define-public python-parse | |
1508 | (package | |
1509 | (name "python-parse") | |
eb3d3503 | 1510 | (version "1.6.6") |
a480bc41 EB |
1511 | (source |
1512 | (origin | |
1513 | (method url-fetch) | |
eb3d3503 | 1514 | (uri (pypi-uri "parse" version)) |
a480bc41 EB |
1515 | (sha256 |
1516 | (base32 | |
aa6c09ed EF |
1517 | "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi")) |
1518 | (patches (search-patches "python-parse-too-many-fields.patch")))) | |
a480bc41 EB |
1519 | (build-system python-build-system) |
1520 | (arguments | |
1521 | `(#:phases | |
f9a65318 EF |
1522 | (modify-phases %standard-phases |
1523 | (replace 'check | |
1524 | (lambda _ (zero? (system* "python" "test_parse.py"))))))) | |
a480bc41 EB |
1525 | (home-page "https://github.com/r1chardj0n3s/parse") |
1526 | (synopsis "Parse strings") | |
1527 | (description | |
1528 | "Parse strings using a specification based on the Python format() | |
1529 | syntax.") | |
3f641af0 | 1530 | (license license:x11))) |
a480bc41 | 1531 | |
d3eff97a JL |
1532 | (define-public python-polib |
1533 | (package | |
1534 | (name "python-polib") | |
1535 | (version "1.0.8") | |
1536 | (source (origin | |
1537 | (method url-fetch) | |
1538 | (uri (pypi-uri "polib" version)) | |
1539 | (sha256 | |
1540 | (base32 | |
1541 | "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss")))) | |
1542 | (build-system python-build-system) | |
1543 | (home-page "https://bitbucket.org/izi/polib/wiki/Home") | |
1544 | (synopsis "Manipulate, create and modify gettext files") | |
1545 | (description "Polib can manipulate any gettext format (po, pot and mo) | |
1546 | files. It can be used to create po files from scratch or to modify | |
1547 | existing ones.") | |
1548 | (license license:expat))) | |
1549 | ||
1550 | (define-public python2-polib | |
1551 | (let ((base (package-with-python2 (strip-python2-variant python-polib)))) | |
1552 | (package | |
1553 | (inherit base) | |
1554 | (arguments `(,@(package-arguments base) | |
1555 | ;; Tests don't work with python2. | |
1556 | #:tests? #f))))) | |
a480bc41 | 1557 | |
515e6878 LC |
1558 | (define-public scons |
1559 | (package | |
1560 | (name "scons") | |
a3f61425 | 1561 | (version "2.3.4") |
515e6878 LC |
1562 | (source (origin |
1563 | (method url-fetch) | |
de67e922 LF |
1564 | (uri (string-append "mirror://sourceforge/scons/scons/" version |
1565 | "/scons-" version ".tar.gz")) | |
515e6878 LC |
1566 | (sha256 |
1567 | (base32 | |
a3f61425 | 1568 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
515e6878 LC |
1569 | (build-system python-build-system) |
1570 | (arguments | |
1571 | ;; With Python 3.x, fails to build with a syntax error. | |
1572 | `(#:python ,python-2 | |
b3e8b4bd | 1573 | #:use-setuptools? #f ; still relies on distutils |
515e6878 LC |
1574 | #:tests? #f)) ; no 'python setup.py test' command |
1575 | (home-page "http://scons.org/") | |
1576 | (synopsis "Software construction tool written in Python") | |
1577 | (description | |
1578 | "SCons is a software construction tool. Think of SCons as an improved, | |
1579 | cross-platform substitute for the classic Make utility with integrated | |
1580 | functionality similar to autoconf/automake and compiler caches such as ccache. | |
1581 | In short, SCons is an easier, more reliable and faster way to build | |
1582 | software.") | |
3f641af0 | 1583 | (license license:x11))) |
011b18c3 | 1584 | |
c15a5c0e DT |
1585 | (define-public python-extras |
1586 | (package | |
1587 | (name "python-extras") | |
1588 | (version "0.0.3") | |
1589 | (source | |
1590 | (origin | |
1591 | (method url-fetch) | |
1592 | (uri (string-append | |
1593 | "https://pypi.python.org/packages/source/e/extras/extras-" | |
1594 | version ".tar.gz")) | |
1595 | (sha256 | |
1596 | (base32 | |
1597 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) | |
1598 | (build-system python-build-system) | |
c15a5c0e DT |
1599 | (arguments |
1600 | ;; error in setup.cfg: command 'test' has no such option 'buffer' | |
1601 | '(#:tests? #f)) | |
1602 | (home-page "https://github.com/testing-cabal/extras") | |
1603 | (synopsis "Useful extensions to the Python standard library") | |
1604 | (description | |
1605 | "Extras is a set of extensions to the Python standard library.") | |
bd3fa666 | 1606 | (license license:expat))) |
c15a5c0e DT |
1607 | |
1608 | (define-public python2-extras | |
1609 | (package-with-python2 python-extras)) | |
1610 | ||
56ea0efd DT |
1611 | (define-public python-mimeparse |
1612 | (package | |
1613 | (name "python-mimeparse") | |
1614 | (version "0.1.4") | |
1615 | (source | |
1616 | (origin | |
1617 | (method url-fetch) | |
1618 | (uri (string-append | |
1619 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" | |
1620 | version ".tar.gz")) | |
1621 | (sha256 | |
1622 | (base32 | |
1623 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) | |
1624 | (build-system python-build-system) | |
56ea0efd DT |
1625 | (arguments |
1626 | '(#:tests? #f)) ; no setup.py test command | |
1627 | (home-page | |
1628 | "https://github.com/dbtsai/python-mimeparse") | |
9e771e3b | 1629 | (synopsis "Python library for parsing MIME types") |
56ea0efd DT |
1630 | (description |
1631 | "Mimeparse provides basic functions for parsing MIME type names and | |
1632 | matching them against a list of media-ranges.") | |
bd3fa666 | 1633 | (license license:expat))) |
56ea0efd DT |
1634 | |
1635 | (define-public python2-mimeparse | |
1636 | (package-with-python2 python-mimeparse)) | |
1637 | ||
4435427e DT |
1638 | (define-public python-nose |
1639 | (package | |
1640 | (name "python-nose") | |
f7cb9841 | 1641 | (version "1.3.7") |
4435427e DT |
1642 | (source |
1643 | (origin | |
1644 | (method url-fetch) | |
f7cb9841 | 1645 | (uri (pypi-uri "nose" version)) |
4435427e DT |
1646 | (sha256 |
1647 | (base32 | |
f7cb9841 | 1648 | "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi")))) |
4435427e | 1649 | (build-system python-build-system) |
4435427e DT |
1650 | (arguments |
1651 | '(#:tests? #f)) ; FIXME: test suite fails | |
1652 | (home-page "http://readthedocs.org/docs/nose/") | |
1653 | (synopsis "Python testing library") | |
1654 | (description | |
1655 | "Nose extends the unittest library to make testing easier.") | |
3f641af0 | 1656 | (license license:lgpl2.0+))) |
4435427e DT |
1657 | |
1658 | (define-public python2-nose | |
1659 | (package-with-python2 python-nose)) | |
1660 | ||
0aea283a EF |
1661 | (define-public python-nose2 |
1662 | (package | |
1663 | (name "python-nose2") | |
1664 | (version "0.6.5") | |
1665 | (source | |
1666 | (origin | |
1667 | (method url-fetch) | |
1668 | (uri (pypi-uri "nose2" version)) | |
1669 | (sha256 | |
1670 | (base32 | |
1671 | "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7")))) | |
1672 | (build-system python-build-system) | |
1673 | (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector' | |
f22efa01 | 1674 | (propagated-inputs |
0aea283a EF |
1675 | `(("python-cov-core" ,python-cov-core) |
1676 | ("python-pytest-cov" ,python-pytest-cov) | |
1677 | ("python-six" ,python-six))) | |
1678 | (home-page "https://github.com/nose-devs/nose2") | |
1679 | (synopsis "Next generation of nicer testing for Python") | |
1680 | (description | |
1681 | "Nose2 is the next generation of nicer testing for Python, based on the | |
1682 | plugins branch of unittest2. Nose2 aims to improve on nose by providing a | |
1683 | better plugin api, being easier for users to configure, and simplifying internal | |
1684 | interfaces and processes.") | |
1685 | (license license:bsd-2))) | |
1686 | ||
1687 | (define-public python2-nose2 | |
1688 | (package-with-python2 python-nose2)) | |
1689 | ||
6cd9c356 DT |
1690 | (define-public python-unittest2 |
1691 | (package | |
1692 | (name "python-unittest2") | |
1693 | (version "0.5.1") | |
1694 | (source | |
1695 | (origin | |
1696 | (method url-fetch) | |
1697 | (uri (string-append | |
1698 | "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-" | |
1699 | version ".tar.gz")) | |
1700 | (sha256 | |
1701 | (base32 | |
1702 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) | |
1703 | (build-system python-build-system) | |
6cd9c356 DT |
1704 | (home-page "http://pypi.python.org/pypi/unittest2") |
1705 | (synopsis "Python unit testing library") | |
1706 | (description | |
1707 | "Unittest2 is a replacement for the unittest module in the Python | |
1708 | standard library.") | |
3f641af0 | 1709 | (license license:psfl))) |
6cd9c356 DT |
1710 | |
1711 | (define-public python2-unittest2 | |
1712 | (package (inherit python-unittest2) | |
1713 | (name "python2-unittest2") | |
1714 | (version "0.5.1") | |
1715 | (source | |
1716 | (origin | |
1717 | (method url-fetch) | |
1718 | (uri (string-append | |
1719 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" | |
1720 | version ".tar.gz")) | |
1721 | (sha256 | |
1722 | (base32 | |
1723 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) | |
6cd9c356 DT |
1724 | (arguments |
1725 | `(#:python ,python-2 | |
1726 | #:tests? #f)))) ; no setup.py test command | |
1727 | ||
02f8f804 | 1728 | (define-public python-pafy |
1729 | (package | |
1730 | (name "python-pafy") | |
1731 | (version "0.5.2") | |
1732 | (source | |
1733 | (origin | |
1734 | (method url-fetch) | |
1735 | (uri (pypi-uri "pafy" version)) | |
1736 | (sha256 | |
1737 | (base32 | |
1738 | "1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i")))) | |
1739 | (build-system python-build-system) | |
ed3fee5f | 1740 | (arguments |
1741 | `(#:tests? #f)) ; Currently pafy can not find itself in the tests | |
02f8f804 | 1742 | (propagated-inputs |
1743 | ;; Youtube-dl is a python package which is imported in the file | |
1744 | ;; "backend_youtube_dl.py", therefore it needs to be propagated. | |
1745 | `(("youtube-dl" ,youtube-dl))) | |
1746 | (home-page "https://np1.github.io/pafy/") | |
1747 | (synopsis "Retrieve YouTube content and metadata") | |
1748 | (description | |
1749 | "@code{pafy} is a python library to retrieve YouTube content and metadata.") | |
1750 | (license license:lgpl3+))) | |
1751 | ||
542ad60f DT |
1752 | (define-public python-py |
1753 | (package | |
1754 | (name "python-py") | |
71c8a804 | 1755 | (version "1.4.31") |
542ad60f DT |
1756 | (source |
1757 | (origin | |
1758 | (method url-fetch) | |
71c8a804 | 1759 | (uri (pypi-uri "py" version)) |
542ad60f DT |
1760 | (sha256 |
1761 | (base32 | |
71c8a804 | 1762 | "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56")))) |
542ad60f | 1763 | (build-system python-build-system) |
dcb0da7b MB |
1764 | (arguments |
1765 | ;; FIXME: "ImportError: 'test' module incorrectly imported from | |
1766 | ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'. | |
1767 | ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'. | |
1768 | ;; Is this module globally installed?" | |
1769 | '(#:tests? #f)) | |
542ad60f DT |
1770 | (home-page "http://pylib.readthedocs.org/") |
1771 | (synopsis "Python library for parsing, I/O, instrospection, and logging") | |
1772 | (description | |
1773 | "Py is a Python library for file name parsing, .ini file parsing, I/O, | |
1774 | code introspection, and logging.") | |
bd3fa666 | 1775 | (license license:expat))) |
542ad60f DT |
1776 | |
1777 | (define-public python2-py | |
1778 | (package-with-python2 python-py)) | |
1779 | ||
855d4761 DT |
1780 | (define-public python-pytest |
1781 | (package | |
1782 | (name "python-pytest") | |
61a4332d | 1783 | (version "2.7.3") |
855d4761 DT |
1784 | (source |
1785 | (origin | |
1786 | (method url-fetch) | |
1787 | (uri (string-append | |
1788 | "https://pypi.python.org/packages/source/p/pytest/pytest-" | |
1789 | version ".tar.gz")) | |
1790 | (sha256 | |
1791 | (base32 | |
61a4332d | 1792 | "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm")) |
855d4761 DT |
1793 | (modules '((guix build utils))) |
1794 | (snippet | |
1795 | ;; One of the tests involves the /usr directory, so it fails. | |
1796 | '(substitute* "testing/test_argcomplete.py" | |
1797 | (("def test_remove_dir_prefix\\(self\\):") | |
1798 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) | |
1799 | (build-system python-build-system) | |
482d9591 HG |
1800 | (propagated-inputs |
1801 | `(("python-py" ,python-py))) | |
e7881f3d | 1802 | (native-inputs |
482d9591 | 1803 | `(("python-nose" ,python-nose) |
855d4761 DT |
1804 | ("python-mock" ,python-mock))) |
1805 | (home-page "http://pytest.org") | |
1806 | (synopsis "Python testing library") | |
1807 | (description | |
1808 | "Pytest is a testing tool that provides auto-discovery of test modules | |
1809 | and functions, detailed info on failing assert statements, modular fixtures, | |
1810 | and many external plugins.") | |
bd3fa666 | 1811 | (license license:expat))) |
855d4761 DT |
1812 | |
1813 | (define-public python2-pytest | |
1814 | (package-with-python2 python-pytest)) | |
1815 | ||
fca4ff35 LF |
1816 | ;; This package is used by Borg until we can upgrade all our Python packages to |
1817 | ;; use a more recent pytest. | |
1818 | (define-public python-pytest-2.9.2 | |
1819 | (package | |
1820 | (inherit python-pytest) | |
1821 | (name "python-pytest") | |
1822 | (version "2.9.2") | |
1823 | (source (origin | |
1824 | (method url-fetch) | |
1825 | (uri (pypi-uri "pytest" version)) | |
1826 | (sha256 | |
1827 | (base32 | |
1828 | "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j")))) | |
1829 | (arguments | |
1830 | `(#:phases | |
1831 | (modify-phases %standard-phases | |
1832 | (add-before 'check 'disable-invalid-test | |
1833 | (lambda _ | |
1834 | (substitute* "testing/test_argcomplete.py" | |
1835 | (("def test_remove_dir_prefix" line) | |
1836 | (string-append "@pytest.mark.skip" | |
1837 | "(reason=\"Assumes that /usr exists.\")\n " | |
1838 | line))) | |
1839 | #t))))))) | |
1840 | ||
358c3d61 EF |
1841 | (define-public python-pytest-cov |
1842 | (package | |
1843 | (name "python-pytest-cov") | |
545f4a1c | 1844 | (version "2.2.1") |
358c3d61 EF |
1845 | (source |
1846 | (origin | |
1847 | (method url-fetch) | |
1848 | (uri (pypi-uri "pytest-cov" version)) | |
1849 | (sha256 | |
545f4a1c EF |
1850 | (base32 |
1851 | "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8")))) | |
10468636 | 1852 | (build-system python-build-system) |
ce40b383 HG |
1853 | (arguments |
1854 | `(#:phases | |
1855 | (modify-phases %standard-phases | |
1856 | (replace 'check | |
1857 | (lambda _ | |
1858 | ;; options taken from tox.ini | |
1859 | ;; TODO: make "--restructuredtext" tests pass. They currently fail | |
1860 | ;; with "Duplicate implicit target name" | |
1861 | (zero? (system* "python" "./setup.py" "check" | |
1862 | "--strict" "--metadata"))))))) | |
f22efa01 | 1863 | (propagated-inputs |
10468636 EF |
1864 | `(("python-coverage" ,python-coverage) |
1865 | ("python-pytest" ,python-pytest))) | |
10468636 EF |
1866 | (home-page "https://github.com/pytest-dev/pytest-cov") |
1867 | (synopsis "Pytest plugin for measuring coverage") | |
1868 | (description | |
1869 | "Pytest-cov produces coverage reports. It supports centralised testing and | |
1870 | distributed testing in both @code{load} and @code{each} modes. It also | |
1871 | supports coverage of subprocesses.") | |
f210e944 | 1872 | (license license:expat))) |
358c3d61 EF |
1873 | |
1874 | (define-public python2-pytest-cov | |
f210e944 | 1875 | (package-with-python2 python-pytest-cov)) |
358c3d61 | 1876 | |
6784f2e3 RW |
1877 | (define-public python-pytest-runner |
1878 | (package | |
1879 | (name "python-pytest-runner") | |
1880 | (version "2.6.2") | |
1881 | (source | |
1882 | (origin | |
1883 | (method url-fetch) | |
54cd239b | 1884 | (uri (pypi-uri "pytest-runner" version)) |
6784f2e3 RW |
1885 | (sha256 |
1886 | (base32 | |
1887 | "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) | |
1888 | (build-system python-build-system) | |
1889 | (arguments | |
1890 | `(#:phases | |
1891 | (modify-phases %standard-phases | |
1892 | ;; The fancy way of setting the version with setuptools_scm does not | |
1893 | ;; seem to work here. | |
1894 | (add-after 'unpack 'set-version | |
1895 | (lambda _ | |
1896 | (substitute* "docs/conf.py" | |
1897 | (("version = setuptools_scm\\.get_version\\(root='\\.\\.')") | |
1898 | (string-append "version = \"" ,version "\""))) | |
1899 | #t))))) | |
1900 | (native-inputs | |
1901 | `(("python-pytest" ,python-pytest) | |
1902 | ("python-setuptools-scm" ,python-setuptools-scm))) | |
54cd239b | 1903 | (home-page "https://github.com/pytest-dev/pytest-runner") |
6784f2e3 RW |
1904 | (synopsis "Invoke py.test as a distutils command") |
1905 | (description | |
1906 | "This package provides a @command{pytest-runner} command that | |
1907 | @file{setup.py} files can use to run tests.") | |
f210e944 | 1908 | (license license:expat))) |
54cd239b EF |
1909 | |
1910 | (define-public python2-pytest-runner | |
f210e944 | 1911 | (package-with-python2 python-pytest-runner)) |
6784f2e3 | 1912 | |
44547e51 EF |
1913 | (define-public python-pytest-mock |
1914 | (package | |
1915 | (name "python-pytest-mock") | |
1916 | (version "1.2") | |
1917 | (source | |
1918 | (origin | |
1919 | (method url-fetch) | |
1920 | (uri (pypi-uri "pytest-mock" version ".zip")) | |
1921 | (sha256 | |
1922 | (base32 | |
1923 | "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp")))) | |
1924 | (build-system python-build-system) | |
1925 | (native-inputs | |
1926 | `(("unzip" ,unzip))) | |
f22efa01 | 1927 | (propagated-inputs |
d5e41cf2 | 1928 | `(("python-pytest" ,python-pytest))) |
44547e51 EF |
1929 | (home-page "https://github.com/pytest-dev/pytest-mock/") |
1930 | (synopsis "Thin-wrapper around the mock package for easier use with py.test") | |
1931 | (description | |
1932 | "This plugin installs a @code{mocker} fixture which is a thin-wrapper | |
1933 | around the patching API provided by the @code{mock} package, but with the | |
1934 | benefit of not having to worry about undoing patches at the end of a test. | |
1935 | The mocker fixture has the same API as @code{mock.patch}, supporting the | |
1936 | same arguments.") | |
1937 | (properties `((python2-variant . ,(delay python2-pytest-mock)))) | |
1938 | (license license:expat))) | |
1939 | ||
1940 | (define-public python2-pytest-mock | |
1941 | (let ((base (package-with-python2 | |
1942 | (strip-python2-variant python-pytest-mock)))) | |
1943 | (package (inherit base) | |
f22efa01 | 1944 | (propagated-inputs |
44547e51 | 1945 | `(("python2-mock" ,python2-mock) |
f22efa01 | 1946 | ,@(package-propagated-inputs base)))))) |
44547e51 | 1947 | |
8fa58fc9 CAW |
1948 | (define-public python-pytest-xdist |
1949 | (package | |
1950 | (name "python-pytest-xdist") | |
1951 | (version "1.14") | |
1952 | (source | |
1953 | (origin | |
1954 | (method url-fetch) | |
1955 | (uri (pypi-uri "pytest-xdist" version ".zip")) | |
1956 | (sha256 | |
1957 | (base32 | |
de585a7e HG |
1958 | "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja")) |
1959 | (modules '((guix build utils))) | |
1960 | (snippet | |
1961 | '(begin | |
1962 | ;; Remove pre-compiled .pyc files from source. | |
1963 | (for-each delete-file-recursively | |
1964 | (find-files "." "__pycache__" #:directories? #t)) | |
1965 | (for-each delete-file (find-files "." "\\.pyc$")) | |
1966 | #t)))) | |
8fa58fc9 | 1967 | (build-system python-build-system) |
4eb385fb MB |
1968 | (arguments |
1969 | '(#:tests? #f)) ;FIXME: Some tests are failing. | |
1970 | ;; #:phases | |
1971 | ;; (modify-phases %standard-phases | |
1972 | ;; (delete 'check) | |
1973 | ;; (add-after 'install 'check | |
1974 | ;; (lambda* (#:key inputs outputs #:allow-other-keys) | |
1975 | ;; (add-installed-pythonpath inputs outputs) | |
1976 | ;; (zero? (system* "py.test" "-v"))))) | |
8fa58fc9 CAW |
1977 | (native-inputs |
1978 | `(("unzip" ,unzip) | |
8fa58fc9 | 1979 | ("python-setuptools-scm" ,python-setuptools-scm))) |
f22efa01 | 1980 | (propagated-inputs |
c4516ad2 | 1981 | `(("python-execnet" ,python-execnet) |
8fa58fc9 CAW |
1982 | ("python-pytest" ,python-pytest) |
1983 | ("python-py" ,python-py))) | |
1984 | (home-page | |
1985 | "https://github.com/pytest-dev/pytest-xdist") | |
1986 | (synopsis | |
1987 | "Plugin for py.test with distributed testing and loop-on-failing modes") | |
1988 | (description | |
1989 | "The pytest-xdist plugin extends py.test with some unique test execution | |
1990 | modes: parallelization, running tests in boxed subprocesses, the ability | |
1991 | to run tests repeatedly when failed, and the ability to run tests on multiple | |
1992 | Python interpreters or platforms. It uses rsync to copy the existing | |
1993 | program code to a remote location, executes there, and then syncs the | |
1994 | result back.") | |
f210e944 | 1995 | (license license:expat))) |
8fa58fc9 CAW |
1996 | |
1997 | (define-public python2-pytest-xdist | |
f210e944 | 1998 | (package-with-python2 python-pytest-xdist)) |
8fa58fc9 | 1999 | |
84d24017 DT |
2000 | (define-public python-scripttest |
2001 | (package | |
2002 | (name "python-scripttest") | |
2003 | (version "1.3") | |
2004 | (source | |
2005 | (origin | |
2006 | (method url-fetch) | |
2007 | (uri (string-append | |
2008 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" | |
2009 | version ".tar.gz")) | |
2010 | (sha256 | |
2011 | (base32 | |
2012 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) | |
2013 | (build-system python-build-system) | |
521b7772 | 2014 | (native-inputs |
f3b98f4f | 2015 | `(("python-pytest" ,python-pytest))) |
84d24017 DT |
2016 | (home-page "http://pythonpaste.org/scripttest/") |
2017 | (synopsis "Python library to test command-line scripts") | |
2018 | (description "Scripttest is a Python helper library for testing | |
2019 | interactive command-line applications. With it you can run a script in a | |
2020 | subprocess and see the output as well as any file modifications.") | |
bd3fa666 | 2021 | (license license:expat))) |
84d24017 DT |
2022 | |
2023 | (define-public python2-scripttest | |
2024 | (package-with-python2 python-scripttest)) | |
2025 | ||
d8fa80e1 DT |
2026 | (define-public python-testtools |
2027 | (package | |
2028 | (name "python-testtools") | |
7adb9031 | 2029 | (version "1.4.0") |
d8fa80e1 DT |
2030 | (source |
2031 | (origin | |
2032 | (method url-fetch) | |
7adb9031 | 2033 | (uri (pypi-uri "testtools" version)) |
d8fa80e1 DT |
2034 | (sha256 |
2035 | (base32 | |
7adb9031 | 2036 | "1vw8yljnd75d396hhw6s2hrf4cclzy845ifd5am0lxsl235z3i8c")))) |
d8fa80e1 | 2037 | (build-system python-build-system) |
7adb9031 DM |
2038 | (arguments |
2039 | `(#:phases | |
2040 | (modify-phases %standard-phases | |
2041 | (add-after 'unpack 'fix-module-imports | |
2042 | (lambda _ | |
2043 | (substitute* "setup.py" | |
2044 | (("'unittest2>=0.8.0',") "")) | |
2045 | (substitute* '("testtools/testcase.py" | |
2046 | "testtools/testsuite.py" | |
2047 | "testtools/run.py" | |
2048 | "testtools/tests/test_run.py" | |
2049 | "testtools/tests/test_testsuite.py" | |
2050 | "testtools/tests/test_deferredruntest.py") | |
2051 | ;; unittest2 is a backport of Python2.7 features to Python 2.4. | |
2052 | (("import unittest2 as unittest") "import unittest") | |
2053 | (("import unittest2") "import unittest as unittest2") | |
2054 | (("from unittest2 import") "from unittest import")) | |
2055 | (substitute* "testtools/tests/test_testresult.py" | |
2056 | ;; NUL in source code is not allowed (raises ValueError). | |
2057 | (("\\x00\\x04") "\\x04")) | |
2058 | #t))))) | |
0e88cbf8 | 2059 | (propagated-inputs |
f22efa01 HG |
2060 | `(("python-mimeparse" ,python-mimeparse) |
2061 | ("python-extras" ,python-extras))) | |
d8fa80e1 DT |
2062 | (home-page "https://github.com/testing-cabal/testtools") |
2063 | (synopsis | |
2064 | "Extensions to the Python standard library unit testing framework") | |
2065 | (description | |
2066 | "Testtools extends the Python standard library unit testing framework to | |
2067 | provide matchers, more debugging information, and cross-Python | |
2068 | compatibility.") | |
3f641af0 | 2069 | (license license:psfl))) |
d8fa80e1 DT |
2070 | |
2071 | (define-public python2-testtools | |
2072 | (package-with-python2 python-testtools)) | |
2073 | ||
5bf3afea DT |
2074 | (define-public python-testscenarios |
2075 | (package | |
2076 | (name "python-testscenarios") | |
2077 | (version "0.4") | |
2078 | (source | |
2079 | (origin | |
2080 | (method url-fetch) | |
2081 | (uri (string-append | |
2082 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" | |
2083 | version ".tar.gz")) | |
2084 | (sha256 | |
2085 | (base32 | |
2086 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) | |
2087 | (build-system python-build-system) | |
f22efa01 | 2088 | (propagated-inputs |
8e73d3ba | 2089 | `(("python-testtools" ,python-testtools))) |
5bf3afea DT |
2090 | (home-page "https://launchpad.net/testscenarios") |
2091 | (synopsis "Pyunit extension for dependency injection") | |
2092 | (description | |
2093 | "Testscenarios provides clean dependency injection for Python unittest | |
2094 | style tests.") | |
3f641af0 | 2095 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
5bf3afea DT |
2096 | |
2097 | (define-public python2-testscenarios | |
2098 | (package-with-python2 python-testscenarios)) | |
2099 | ||
dac79ecc DT |
2100 | (define-public python-testresources |
2101 | (package | |
2102 | (name "python-testresources") | |
2103 | (version "0.2.7") | |
2104 | (source | |
2105 | (origin | |
2106 | (method url-fetch) | |
2107 | (uri (string-append | |
2108 | "https://pypi.python.org/packages/source/t/testresources/testresources-" | |
2109 | version ".tar.gz")) | |
2110 | (sha256 | |
2111 | (base32 | |
2112 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) | |
2113 | (build-system python-build-system) | |
dac79ecc DT |
2114 | (home-page "https://launchpad.net/testresources") |
2115 | (synopsis | |
2116 | "Pyunit extension for managing test resources") | |
2117 | (description | |
2118 | "Testresources is an extension to Python's unittest to allow declarative | |
2119 | use of resources by test cases.") | |
3f641af0 | 2120 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
dac79ecc DT |
2121 | |
2122 | (define-public python2-testresources | |
2123 | (package-with-python2 python-testresources)) | |
2124 | ||
070ab058 DT |
2125 | (define-public python-subunit |
2126 | (package | |
2127 | (name "python-subunit") | |
2128 | (version "0.0.21") | |
2129 | (source | |
2130 | (origin | |
2131 | (method url-fetch) | |
2132 | (uri (string-append | |
2133 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" | |
2134 | version ".tar.gz")) | |
2135 | (sha256 | |
2136 | (base32 | |
2137 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) | |
2138 | (build-system python-build-system) | |
f22efa01 | 2139 | (propagated-inputs |
b52ad371 HG |
2140 | `(("python-extras" ,python-extras) |
2141 | ("python-mimeparse" ,python-mimeparse))) | |
2142 | (native-inputs | |
2143 | `(("python-testscenarios" ,python-testscenarios))) | |
070ab058 DT |
2144 | (home-page "http://launchpad.net/subunit") |
2145 | (synopsis "Python implementation of the subunit protocol") | |
2146 | (description | |
2147 | "Python-subunit is a Python implementation of the subunit test streaming | |
2148 | protocol.") | |
3f641af0 | 2149 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
070ab058 DT |
2150 | |
2151 | (define-public python2-subunit | |
2152 | (package-with-python2 python-subunit)) | |
2153 | ||
d2a8db92 HG |
2154 | ;; Recent versions of python-fixtures and python-testrepository need |
2155 | ;; python-pbr for packaging, which itself needs these two packages for | |
2156 | ;; testing. | |
2157 | ;; To fix this circular dependency, we use a build of python-pbr, based on the | |
2158 | ;; same source, just without any test dependencies and with tests disabled. | |
2159 | ;; python-pbr-minmal is then used to package python-fixtures and | |
2160 | ;; python-testrepository. | |
2161 | ;; Strictly speaking we currently could remove the test-requirements from the | |
2162 | ;; normal python-pbr package (and save this package) since test are disabled | |
2163 | ;; there anyway. But this may change in future. | |
2164 | (define python-pbr-minimal | |
cd49454b | 2165 | (package |
d2a8db92 | 2166 | (name "python-pbr-minimal") |
5bbb2249 | 2167 | (version "1.10.0") |
7787ef76 CR |
2168 | (source |
2169 | (origin | |
2170 | (method url-fetch) | |
d2a8db92 | 2171 | (uri (pypi-uri "pbr" version)) |
7787ef76 CR |
2172 | (sha256 |
2173 | (base32 | |
a1e3ed6e DM |
2174 | "177kd9kbv1hvf2ban7l3x9ymzbi1md4hkaymwbgnz7ihf312hr0q")) |
2175 | (patches (search-patches "python-pbr-fix-man-page-support.patch")))) | |
7787ef76 CR |
2176 | (build-system python-build-system) |
2177 | (arguments | |
d2a8db92 HG |
2178 | `(#:tests? #f)) |
2179 | (home-page "http://docs.openstack.org/developer/pbr/") | |
2180 | (synopsis "Minimal build of python-pbr used for bootstrapping") | |
7787ef76 | 2181 | (description |
d2a8db92 | 2182 | "Used only for bootstrapping python2-pbr, you should not need this.") |
3f641af0 | 2183 | (license license:asl2.0))) |
7787ef76 | 2184 | |
d2a8db92 HG |
2185 | (define python2-pbr-minimal |
2186 | (package-with-python2 python-pbr-minimal)) | |
7787ef76 | 2187 | |
1ef09c0c | 2188 | (define-public python-pbr |
e25f0174 | 2189 | (package |
d2a8db92 | 2190 | (inherit python-pbr-minimal) |
e25f0174 | 2191 | (name "python-pbr") |
e25f0174 BW |
2192 | (arguments |
2193 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
2194 | (propagated-inputs | |
d2a8db92 HG |
2195 | `(("git" ,git))) ;; pbr actually uses the "git" binary. |
2196 | (native-inputs | |
e25f0174 | 2197 | `(("python-fixtures" ,python-fixtures) |
d2a8db92 | 2198 | ;; discover, coverage, hacking, subunit |
e25f0174 | 2199 | ("python-mock" ,python-mock) |
d2a8db92 | 2200 | ("python-six" ,python-six) |
e25f0174 BW |
2201 | ("python-sphinx" ,python-sphinx) |
2202 | ("python-testrepository" ,python-testrepository) | |
2203 | ("python-testresources" ,python-testresources) | |
2204 | ("python-testscenarios" ,python-testscenarios) | |
2205 | ("python-testtools" ,python-testtools) | |
2206 | ("python-virtualenv" ,python-virtualenv))) | |
d2a8db92 | 2207 | (synopsis "Enhance the default behavior of Python’s setuptools") |
e25f0174 BW |
2208 | (description |
2209 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
d2a8db92 HG |
2210 | and sensible default behaviors into your setuptools run. It will set |
2211 | versions, process requirements files and generate AUTHORS and ChangeLog file | |
2212 | from git information. | |
2213 | "))) | |
1ef09c0c BW |
2214 | |
2215 | (define-public python2-pbr | |
e25f0174 | 2216 | (package-with-python2 python-pbr)) |
1ef09c0c | 2217 | |
7787ef76 CR |
2218 | (define-public python-fixtures |
2219 | (package | |
2220 | (name "python-fixtures") | |
13fcc6df | 2221 | (version "1.4.0") |
7787ef76 CR |
2222 | (source |
2223 | (origin | |
2224 | (method url-fetch) | |
13fcc6df | 2225 | (uri (pypi-uri "fixtures" version)) |
7787ef76 CR |
2226 | (sha256 |
2227 | (base32 | |
13fcc6df | 2228 | "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y")))) |
7787ef76 | 2229 | (build-system python-build-system) |
f6c1ef18 MB |
2230 | (arguments |
2231 | '(#:phases | |
2232 | (modify-phases %standard-phases | |
2233 | (replace 'check | |
2234 | (lambda _ | |
2235 | (zero? (system* "python" "-m" "testtools.run" | |
2236 | "fixtures.test_suite"))))))) | |
7787ef76 | 2237 | (propagated-inputs |
ae92cadd | 2238 | `(("python-six" ,python-six))) |
e7881f3d | 2239 | (native-inputs |
f6c1ef18 MB |
2240 | `(("python-mock" ,python-mock) |
2241 | ("python-pbr-minimal" ,python-pbr-minimal) | |
7787ef76 | 2242 | ("python-testtools" ,python-testtools))) |
7787ef76 CR |
2243 | (home-page "https://launchpad.net/python-fixtures") |
2244 | (synopsis "Python test fixture library") | |
2245 | (description | |
2246 | "Fixtures provides a way to create reusable state, useful when writing | |
2247 | Python tests.") | |
3f641af0 | 2248 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
7787ef76 | 2249 | |
cd49454b DT |
2250 | (define-public python2-fixtures |
2251 | (package-with-python2 python-fixtures)) | |
2252 | ||
b24a0c00 DT |
2253 | (define-public python-testrepository |
2254 | (package | |
2255 | (name "python-testrepository") | |
2256 | (version "0.0.20") | |
2257 | (source | |
2258 | (origin | |
2259 | (method url-fetch) | |
2260 | (uri (string-append | |
2261 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" | |
2262 | version ".tar.gz")) | |
2263 | (sha256 | |
2264 | (base32 | |
2265 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) | |
2266 | (build-system python-build-system) | |
90110ef9 MB |
2267 | (arguments |
2268 | ;; FIXME: Many tests are failing. | |
2269 | '(#:tests? #f)) | |
05de40c5 | 2270 | (propagated-inputs |
b2e66edf HG |
2271 | `(("python-fixtures" ,python-fixtures) |
2272 | ("python-subunit" ,python-subunit) | |
b52ad371 HG |
2273 | ("python-testtools" ,python-testtools))) |
2274 | (native-inputs | |
2275 | `(("python-pbr-minimal" ,python-pbr-minimal) ;; same as for building fixture | |
b24a0c00 DT |
2276 | ("python-mimeparse" ,python-mimeparse))) |
2277 | (home-page "https://launchpad.net/testrepository") | |
2278 | (synopsis "Database for Python test results") | |
2279 | (description "Testrepository provides a database of test results which can | |
2280 | be used as part of a developer's workflow to check things such as what tests | |
2281 | have failed since the last commit or what tests are currently failing.") | |
3f641af0 | 2282 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
b24a0c00 DT |
2283 | |
2284 | (define-public python2-testrepository | |
2285 | (package-with-python2 python-testrepository)) | |
2286 | ||
243a009a DT |
2287 | (define-public python-coverage |
2288 | (package | |
2289 | (name "python-coverage") | |
4d4cf3dd | 2290 | (version "4.1") |
243a009a DT |
2291 | (source |
2292 | (origin | |
2293 | (method url-fetch) | |
82a3c582 | 2294 | (uri (pypi-uri "coverage" version)) |
243a009a DT |
2295 | (sha256 |
2296 | (base32 | |
4d4cf3dd | 2297 | "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1")))) |
243a009a | 2298 | (build-system python-build-system) |
bd10e677 MB |
2299 | (arguments |
2300 | ;; FIXME: 95 tests failed, 539 passed, 6 skipped, 2 errors. | |
2301 | '(#:tests? #f)) | |
243a009a DT |
2302 | (home-page "http://nedbatchelder.com/code/coverage") |
2303 | (synopsis "Code coverage measurement for Python") | |
2304 | (description | |
2305 | "Coverage measures code coverage, typically during test execution. It | |
2306 | uses the code analysis tools and tracing hooks provided in the Python standard | |
2307 | library to determine which lines are executable, and which have been | |
2308 | executed.") | |
3f641af0 | 2309 | (license license:bsd-3))) |
243a009a DT |
2310 | |
2311 | (define-public python2-coverage | |
2312 | (package-with-python2 python-coverage)) | |
2313 | ||
12f839fd EF |
2314 | (define-public python-cov-core |
2315 | (package | |
2316 | (name "python-cov-core") | |
2317 | (version "1.15.0") | |
2318 | (source | |
2319 | (origin | |
2320 | (method url-fetch) | |
2321 | (uri (pypi-uri "cov-core" version)) | |
2322 | (sha256 | |
2323 | (base32 | |
2324 | "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a")))) | |
2325 | (build-system python-build-system) | |
f78e1c27 | 2326 | (propagated-inputs |
12f839fd EF |
2327 | `(("python-coverage" ,python-coverage))) |
2328 | (home-page "https://github.com/schlamar/cov-core") | |
49d5e338 | 2329 | (synopsis "Coverage plugin core for pytest-cov, nose-cov and nose2-cov") |
12f839fd | 2330 | (description |
49d5e338 TGR |
2331 | "This is a library package for use by @code{pytest-cov}, @code{nose-cov} |
2332 | and @code{nose2-cov}. It is useful for developing coverage plugins for these | |
2333 | testing frameworks.") | |
f210e944 | 2334 | (license license:expat))) |
12f839fd EF |
2335 | |
2336 | (define-public python2-cov-core | |
f210e944 | 2337 | (package-with-python2 python-cov-core)) |
12f839fd | 2338 | |
041358fb DT |
2339 | (define-public python-discover |
2340 | (package | |
2341 | (name "python-discover") | |
2342 | (version "0.4.0") | |
2343 | (source | |
2344 | (origin | |
2345 | (method url-fetch) | |
2346 | (uri (string-append | |
2347 | "https://pypi.python.org/packages/source/d/discover/discover-" | |
2348 | version ".tar.gz")) | |
2349 | (sha256 | |
2350 | (base32 | |
2351 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) | |
2352 | (build-system python-build-system) | |
041358fb DT |
2353 | (home-page "http://pypi.python.org/pypi/discover/") |
2354 | (synopsis | |
2355 | "Python test discovery for unittest") | |
2356 | (description | |
2357 | "Discover provides test discovery for unittest, a feature that has been | |
e881752c | 2358 | backported from Python 2.7 for Python 2.4+.") |
3f641af0 | 2359 | (license license:bsd-3))) |
041358fb DT |
2360 | |
2361 | (define-public python2-discover | |
2362 | (package-with-python2 python-discover)) | |
2363 | ||
a480bc41 EB |
2364 | (define-public behave |
2365 | (package | |
2366 | (name "behave") | |
287cfd1a | 2367 | (version "1.2.5") |
a480bc41 EB |
2368 | (source (origin |
2369 | (method url-fetch) | |
287cfd1a | 2370 | (uri (pypi-uri "behave" version ".tar.bz2")) |
a480bc41 EB |
2371 | (sha256 |
2372 | (base32 | |
287cfd1a | 2373 | "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c")))) |
a480bc41 | 2374 | (build-system python-build-system) |
f22efa01 | 2375 | (propagated-inputs |
f3b98f4f | 2376 | `(("python-six" ,python-six) |
a480bc41 EB |
2377 | ("python-parse" ,python-parse) |
2378 | ("python-parse-type" ,python-parse-type))) | |
2379 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and | |
2380 | ;PyHamcrest>=1.8 | |
2381 | (home-page "http://github.com/behave/behave") | |
2382 | (synopsis "Python behavior-driven development") | |
2383 | (description | |
2384 | "Behave is a tool for behavior-driven development in python. | |
2385 | Behavior-driven development (or BDD) is an agile software development | |
2386 | technique that encourages collaboration between developers, QA and | |
2387 | non-technical or business participants in a software project. Behave uses | |
2388 | tests written in a natural language style, backed up by Python code.") | |
3f641af0 | 2389 | (license license:x11))) |
c7303d3c DT |
2390 | |
2391 | (define-public python-exif-read | |
2392 | (package | |
2393 | (name "python-exif-read") | |
2a2d0981 | 2394 | (version "2.1.2") |
c7303d3c DT |
2395 | (source (origin |
2396 | (method url-fetch) | |
2a2d0981 | 2397 | (uri (pypi-uri "ExifRead" version)) |
c7303d3c DT |
2398 | (sha256 |
2399 | (base32 | |
2a2d0981 | 2400 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
c7303d3c | 2401 | (build-system python-build-system) |
c7303d3c DT |
2402 | (arguments `(#:tests? #f)) ; no tests |
2403 | (home-page "https://github.com/ianare/exif-py") | |
2404 | (synopsis "Python library to extract EXIF data from image files") | |
2405 | (description | |
2406 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg | |
2407 | files.") | |
3f641af0 | 2408 | (license license:bsd-3))) |
c7303d3c DT |
2409 | |
2410 | (define-public python2-exif-read | |
2411 | (package-with-python2 python-exif-read)) | |
d5f89b22 DT |
2412 | |
2413 | (define-public python-pyld | |
2414 | (package | |
2415 | (name "python-pyld") | |
8957af32 | 2416 | (version "0.7.1") |
d5f89b22 DT |
2417 | (source (origin |
2418 | (method url-fetch) | |
af1ab773 | 2419 | (uri (pypi-uri "PyLD" version)) |
d5f89b22 DT |
2420 | (sha256 |
2421 | (base32 | |
8957af32 | 2422 | "1m0fs6897vxfkf7awah5i66i7b7smm5fnywf1w50fpzyfbfhr156")))) |
d5f89b22 | 2423 | (build-system python-build-system) |
d5f89b22 DT |
2424 | (arguments `(#:tests? #f)) ; no tests |
2425 | (home-page "http://github.com/digitalbazaar/pyld") | |
2426 | (synopsis "Python implementation of the JSON-LD specification") | |
2427 | (description | |
2428 | "PyLD is an implementation of the JSON-LD specification.") | |
3f641af0 | 2429 | (license license:bsd-3))) |
d5f89b22 DT |
2430 | |
2431 | (define-public python2-pyld | |
2432 | (package-with-python2 python-pyld)) | |
3a1f9a68 DT |
2433 | |
2434 | (define-public python-certifi | |
2435 | (package | |
2436 | (name "python-certifi") | |
28576403 | 2437 | (version "2017.1.23") |
3a1f9a68 DT |
2438 | (source (origin |
2439 | (method url-fetch) | |
9a41f443 | 2440 | (uri (pypi-uri "certifi" version)) |
3a1f9a68 DT |
2441 | (sha256 |
2442 | (base32 | |
28576403 | 2443 | "1klrzl3hgvcf2mjk00g0k3kk1p2z27vzwnxivwar4vhjmjvpz1w1")))) |
3a1f9a68 | 2444 | (build-system python-build-system) |
28576403 | 2445 | (home-page "https://certifi.io/") |
3a1f9a68 DT |
2446 | (synopsis "Python CA certificate bundle") |
2447 | (description | |
2448 | "Certifi is a Python library that contains a CA certificate bundle, which | |
2449 | is used by the Requests library to verify HTTPS requests.") | |
3f641af0 | 2450 | (license license:asl2.0))) |
3a1f9a68 DT |
2451 | |
2452 | (define-public python2-certifi | |
2453 | (package-with-python2 python-certifi)) | |
e6cfbd36 | 2454 | |
12c270dd RW |
2455 | (define-public python-click |
2456 | (package | |
2457 | (name "python-click") | |
d4acb6db | 2458 | (version "6.7") |
12c270dd RW |
2459 | (source |
2460 | (origin | |
2461 | (method url-fetch) | |
375f224b | 2462 | (uri (pypi-uri "click" version)) |
12c270dd | 2463 | (sha256 |
43accb58 | 2464 | (base32 |
d4acb6db | 2465 | "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi")))) |
12c270dd | 2466 | (build-system python-build-system) |
e2ab5a09 BW |
2467 | (arguments |
2468 | `(#:phases | |
2469 | (modify-phases %standard-phases | |
2470 | (add-after 'unpack 'fix-paths | |
2471 | (lambda* (#:key inputs #:allow-other-keys) | |
2472 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
2473 | "cross-libc" "libc")))) | |
2474 | (substitute* "click/_unicodefun.py" | |
2475 | (("'locale'") | |
2476 | (string-append "'" glibc "/bin/locale'")))) | |
97be1bc2 MB |
2477 | #t)) |
2478 | (replace 'check | |
2479 | (lambda _ | |
2480 | (zero? (system* "make" "test"))))))) | |
2481 | (native-inputs | |
2482 | `(("python-pytest" ,python-pytest))) | |
12c270dd RW |
2483 | (home-page "http://click.pocoo.org") |
2484 | (synopsis "Command line library for Python") | |
2485 | (description | |
2486 | "Click is a Python package for creating command line interfaces in a | |
2487 | composable way with as little code as necessary. Its name stands for | |
2488 | \"Command Line Interface Creation Kit\". It's highly configurable but comes | |
2489 | with sensible defaults out of the box.") | |
3f641af0 | 2490 | (license license:bsd-3))) |
12c270dd RW |
2491 | |
2492 | (define-public python2-click | |
2493 | (package-with-python2 python-click)) | |
2494 | ||
addc808d EF |
2495 | (define-public python-wheel |
2496 | (package | |
2497 | (name "python-wheel") | |
0e6df70b | 2498 | (version "0.30.0a0") |
e1ba0749 EF |
2499 | (source |
2500 | (origin | |
2501 | (method url-fetch) | |
2502 | (uri (pypi-uri "wheel" version)) | |
2503 | (sha256 | |
2504 | (base32 | |
0e6df70b | 2505 | "1nm6mn8isny0hr86rhbfrpfj867c0phf001xgsd69xfp9ady1wwq")))) |
e1ba0749 EF |
2506 | (build-system python-build-system) |
2507 | (native-inputs | |
f3b98f4f | 2508 | `(("python-jsonschema" ,python-jsonschema) |
e1ba0749 EF |
2509 | ("python-pytest-cov" ,python-pytest-cov))) |
2510 | (home-page "https://bitbucket.org/pypa/wheel/") | |
2511 | (synopsis "Format for built Python packages") | |
2512 | (description | |
2513 | "A wheel is a ZIP-format archive with a specially formatted filename and | |
2514 | the @code{.whl} extension. It is designed to contain all the files for a PEP | |
2515 | 376 compatible install in a way that is very close to the on-disk format. Many | |
2516 | packages will be properly installed with only the @code{Unpack} step and the | |
2517 | unpacked archive preserves enough information to @code{Spread} (copy data and | |
2518 | scripts to their final locations) at any later time. Wheel files can be | |
2519 | installed with a newer @code{pip} or with wheel's own command line utility.") | |
8ad4ae20 LF |
2520 | (license license:expat) |
2521 | (properties `((python2-variant . ,(delay python2-wheel)))))) | |
addc808d EF |
2522 | |
2523 | (define-public python2-wheel | |
8ad4ae20 LF |
2524 | (let ((wheel (package-with-python2 |
2525 | (strip-python2-variant python-wheel)))) | |
264ae686 | 2526 | (package (inherit wheel) |
8ad4ae20 LF |
2527 | (native-inputs `(("python2-functools32" ,python2-functools32) |
2528 | ,@(package-native-inputs wheel)))))) | |
2529 | ||
addc808d | 2530 | |
ae641128 | 2531 | (define-public python-requests |
e6cfbd36 | 2532 | (package |
ae641128 | 2533 | (name "python-requests") |
da5db988 | 2534 | (version "2.13.0") |
e6cfbd36 DT |
2535 | (source (origin |
2536 | (method url-fetch) | |
5d691657 | 2537 | (uri (pypi-uri "requests" version)) |
e6cfbd36 DT |
2538 | (sha256 |
2539 | (base32 | |
da5db988 | 2540 | "1s0wg4any4dsv5l3hqjxqk2zgb7pdbqhy9rhc8kh3aigfq4ws8jp")))) |
cff0ccf9 | 2541 | ;; TODO: unbundle urllib3 and chardet. |
e6cfbd36 | 2542 | (build-system python-build-system) |
cff0ccf9 MB |
2543 | (arguments |
2544 | ;; FIXME: Some tests require network access. | |
2545 | '(#:tests? #f)) | |
e6cfbd36 DT |
2546 | (home-page "http://python-requests.org/") |
2547 | (synopsis "Python HTTP library") | |
2548 | (description | |
2549 | "Requests is a Python HTTP client library. It aims to be easier to use | |
2550 | than Python’s urllib2 library.") | |
3f641af0 | 2551 | (license license:asl2.0))) |
864b5211 | 2552 | |
e9005180 DT |
2553 | ;; Some software requires an older version of Requests, notably Docker |
2554 | ;; Compose. | |
2555 | (define-public python-requests-2.7 | |
2556 | (package (inherit python-requests) | |
2557 | (version "2.7.0") | |
2558 | (source (origin | |
2559 | (method url-fetch) | |
2560 | (uri (pypi-uri "requests" version)) | |
2561 | (sha256 | |
2562 | (base32 | |
2563 | "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) | |
2564 | ||
ae641128 | 2565 | (define-public python2-requests |
8ad4ae20 | 2566 | (package-with-python2 python-requests)) |
ae641128 | 2567 | |
ea521b42 DT |
2568 | (define-public python-vcversioner |
2569 | (package | |
2570 | (name "python-vcversioner") | |
538fe019 | 2571 | (version "2.16.0.0") |
ea521b42 DT |
2572 | (source |
2573 | (origin | |
2574 | (method url-fetch) | |
2575 | (uri (pypi-uri "vcversioner" version)) | |
2576 | (sha256 | |
2577 | (base32 | |
538fe019 | 2578 | "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns")))) |
ea521b42 | 2579 | (build-system python-build-system) |
ea521b42 DT |
2580 | (synopsis "Python library for version number discovery") |
2581 | (description "Vcversioner is a Python library that inspects tagging | |
2582 | information in a variety of version control systems in order to discover | |
2583 | version numbers.") | |
2584 | (home-page "https://github.com/habnabit/vcversioner") | |
f210e944 | 2585 | (license license:isc))) |
ea521b42 DT |
2586 | |
2587 | (define-public python2-vcversioner | |
f210e944 | 2588 | (package-with-python2 python-vcversioner)) |
ae641128 | 2589 | |
864b5211 DT |
2590 | (define-public python-jsonschema |
2591 | (package | |
2592 | (name "python-jsonschema") | |
b3667afb | 2593 | (version "2.5.1") |
864b5211 DT |
2594 | (source (origin |
2595 | (method url-fetch) | |
2596 | (uri | |
2597 | (string-append | |
2598 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" | |
2599 | version ".tar.gz")) | |
2600 | (sha256 | |
2601 | (base32 | |
b3667afb | 2602 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
864b5211 | 2603 | (build-system python-build-system) |
8bcd6b91 EF |
2604 | (arguments |
2605 | '(#:phases | |
2606 | (modify-phases %standard-phases | |
2607 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
eaba9d66 | 2608 | (native-inputs |
8bcd6b91 EF |
2609 | `(("python-nose" ,python-nose) |
2610 | ("python-vcversioner" ,python-vcversioner))) | |
2611 | (home-page "https://github.com/Julian/jsonschema") | |
864b5211 DT |
2612 | (synopsis "Implementation of JSON Schema for Python") |
2613 | (description | |
2614 | "Jsonschema is an implementation of JSON Schema for Python.") | |
a14600ec LF |
2615 | (license license:expat) |
2616 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) | |
864b5211 DT |
2617 | |
2618 | (define-public python2-jsonschema | |
a14600ec LF |
2619 | (let ((jsonschema (package-with-python2 |
2620 | (strip-python2-variant python-jsonschema)))) | |
264ae686 | 2621 | (package (inherit jsonschema) |
eaba9d66 | 2622 | (native-inputs |
8bcd6b91 | 2623 | `(("python2-mock" ,python2-mock) |
eaba9d66 MB |
2624 | ,@(package-native-inputs jsonschema))) |
2625 | (propagated-inputs | |
2626 | `(("python2-functools32" ,python2-functools32)))))) | |
850189b8 | 2627 | |
9f21414d | 2628 | (define-public python-kitchen |
2629 | (package | |
2630 | (name "python-kitchen") | |
2631 | (version "1.2.4") | |
2632 | (source | |
2633 | (origin | |
2634 | (method url-fetch) | |
2635 | (uri (pypi-uri "kitchen" version)) | |
2636 | (sha256 | |
2637 | (base32 | |
2638 | "0ggv3p4x8jvmmzhp0xm00h6pvh1g0gmycw71rjwagnrj8n23vxrq")))) | |
2639 | (build-system python-build-system) | |
2640 | (propagated-inputs | |
2641 | `(("python-chardet" ,python-chardet))) | |
2642 | (home-page "https://fedorahosted.org/kitchen") | |
2643 | (synopsis "Python API for snippets") | |
2644 | (description "@code{kitchen} module provides a python API for all sorts of | |
2645 | little useful snippets of code that everybody ends up writing for their projects | |
2646 | but never seem big enough to build an independent release. Use kitchen and stop | |
2647 | cutting and pasting that code over and over.") | |
2648 | (license (list license:lgpl2.1+ | |
2649 | ;; subprocess.py, test_subprocess.py, | |
2650 | ;; kitchen/pycompat25/defaultdict.py: | |
2651 | license:psfl)))) | |
2652 | ||
2653 | (define-public python2-kitchen | |
2654 | (package-with-python2 python-kitchen)) | |
2655 | ||
850189b8 DT |
2656 | (define-public python-unidecode |
2657 | (package | |
2658 | (name "python-unidecode") | |
5754fe95 | 2659 | (version "0.04.20") |
850189b8 DT |
2660 | (source (origin |
2661 | (method url-fetch) | |
8925d4f3 | 2662 | (uri (pypi-uri "Unidecode" version)) |
850189b8 DT |
2663 | (sha256 |
2664 | (base32 | |
5754fe95 | 2665 | "1q00i8gpsq3d9r0q8wk4b290fxl0kqlsdk7iadvli45in6s1hi7d")))) |
850189b8 | 2666 | (build-system python-build-system) |
850189b8 DT |
2667 | (home-page "https://pypi.python.org/pypi/Unidecode") |
2668 | (synopsis "ASCII transliterations of Unicode text") | |
2669 | (description | |
2670 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is | |
2671 | useful when integrating with legacy code that doesn't support Unicode, or for | |
2672 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII | |
2673 | machine identifiers from human-readable Unicode strings that should still be | |
2674 | somewhat intelligeble.") | |
3f641af0 | 2675 | (license license:gpl2+))) |
850189b8 DT |
2676 | |
2677 | (define-public python2-unidecode | |
2678 | (package-with-python2 python-unidecode)) | |
6d45fef4 DT |
2679 | |
2680 | (define-public python-pyjwt | |
2681 | (package | |
2682 | (name "python-pyjwt") | |
eb31d4b4 | 2683 | (version "1.4.0") |
6d45fef4 DT |
2684 | (source |
2685 | (origin | |
2686 | (method url-fetch) | |
eb31d4b4 | 2687 | (uri (pypi-uri "PyJWT" version)) |
6d45fef4 DT |
2688 | (sha256 |
2689 | (base32 | |
eb31d4b4 | 2690 | "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1")))) |
6d45fef4 | 2691 | (build-system python-build-system) |
eb31d4b4 | 2692 | (native-inputs |
130fe994 HG |
2693 | `(("python-pytest" ,python-pytest) |
2694 | ("python-pytest-cov" ,python-pytest-cov) | |
2695 | ("python-pytest-runner" ,python-pytest-runner))) | |
6d45fef4 DT |
2696 | (home-page "http://github.com/progrium/pyjwt") |
2697 | (synopsis "JSON Web Token implementation in Python") | |
2698 | (description | |
2699 | "PyJWT is a JSON Web Token implementation written in Python.") | |
bd3fa666 | 2700 | (license license:expat))) |
6d45fef4 DT |
2701 | |
2702 | (define-public python2-pyjwt | |
2703 | (package-with-python2 python-pyjwt)) | |
2704 | ||
a80488c2 | 2705 | (define-public python-pykka |
2706 | (package | |
2707 | (name "python-pykka") | |
2708 | (version "1.2.1") | |
2709 | (source | |
2710 | (origin | |
2711 | (method url-fetch) | |
2712 | (uri (pypi-uri "Pykka" version)) | |
2713 | (sha256 | |
2714 | (base32 | |
2715 | "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8")))) | |
2716 | (build-system python-build-system) | |
2717 | (native-inputs | |
2718 | `(("python-mock" ,python-mock) | |
2719 | ("python-nose" ,python-nose) | |
2720 | ("python-gevent" ,python-gevent) | |
2721 | ("python-eventlet" ,python-eventlet))) | |
2722 | (home-page "https://www.pykka.org/") | |
2723 | (synopsis "Pykka is a Python implementation of the actor model") | |
2724 | (description | |
2725 | "Pykka is a Python implementation of the actor model. | |
2726 | The actor model introduces some simple rules to control the sharing | |
2727 | of state and cooperation between execution units, which makes it | |
2728 | easier to build concurrent applications.") | |
2729 | (license license:asl2.0))) | |
2730 | ||
2731 | (define-public python2-pykka | |
2732 | (package-with-python2 python-pykka)) | |
2733 | ||
2cec1f6f DT |
2734 | (define-public python-oauthlib |
2735 | (package | |
2736 | (name "python-oauthlib") | |
bde2171d | 2737 | (version "1.0.3") |
2cec1f6f DT |
2738 | (source (origin |
2739 | (method url-fetch) | |
bde2171d | 2740 | (uri (pypi-uri "oauthlib" version)) |
2cec1f6f DT |
2741 | (sha256 |
2742 | (base32 | |
bde2171d | 2743 | "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg")))) |
2cec1f6f | 2744 | (build-system python-build-system) |
bde2171d | 2745 | (native-inputs |
bb06aa34 | 2746 | `(("python-nose" ,python-nose) |
c616b5d3 | 2747 | ("python-mock" ,python-mock) |
bde2171d | 2748 | ("python-cryptography" ,python-cryptography) |
bb06aa34 HG |
2749 | ("python-pyjwt" ,python-pyjwt) |
2750 | ("python-blinker" ,python-blinker))) | |
2cec1f6f DT |
2751 | (home-page "https://github.com/idan/oauthlib") |
2752 | (synopsis "OAuth implementation for Python") | |
2753 | (description | |
2754 | "Oauthlib is a generic, spec-compliant, thorough implementation of the | |
2755 | OAuth request-signing logic.") | |
3f641af0 | 2756 | (license license:bsd-3) |
59f151ec | 2757 | (properties `((python2-variant . ,(delay python2-oauthlib)))))) |
2cec1f6f DT |
2758 | |
2759 | (define-public python2-oauthlib | |
59f151ec | 2760 | (let ((base (package-with-python2 (strip-python2-variant python-oauthlib)))) |
2cec1f6f DT |
2761 | (package |
2762 | (inherit base) | |
00e10c6e | 2763 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
59f151ec | 2764 | ,@(package-native-inputs base)))))) |
ec5dbb5c DT |
2765 | |
2766 | (define-public python-itsdangerous | |
2767 | (package | |
2768 | (name "python-itsdangerous") | |
2769 | (version "0.24") | |
2770 | (source | |
2771 | (origin | |
2772 | (method url-fetch) | |
2773 | (uri (string-append | |
2774 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" | |
2775 | version ".tar.gz")) | |
2776 | (sha256 | |
2777 | (base32 | |
2778 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) | |
2779 | (build-system python-build-system) | |
ec5dbb5c DT |
2780 | (home-page "http://github.com/mitsuhiko/itsdangerous") |
2781 | (synopsis "Python library for passing data to/from untrusted environments") | |
2782 | (description | |
2783 | "Itsdangerous provides various helpers to pass trusted data to untrusted | |
2784 | environments and back.") | |
f210e944 | 2785 | (license license:bsd-3))) |
ec5dbb5c DT |
2786 | |
2787 | (define-public python2-itsdangerous | |
f210e944 | 2788 | (package-with-python2 python-itsdangerous)) |
5731cae3 | 2789 | |
8d12be1e RW |
2790 | (define-public python-pyyaml |
2791 | (package | |
2792 | (name "python-pyyaml") | |
bf5e4bc4 | 2793 | (version "3.12") |
8d12be1e RW |
2794 | (source |
2795 | (origin | |
2796 | (method url-fetch) | |
bf5e4bc4 | 2797 | (uri (pypi-uri "PyYAML" version)) |
8d12be1e RW |
2798 | (sha256 |
2799 | (base32 | |
bf5e4bc4 | 2800 | "1aqjl8dk9amd4zr99n8v2qxzgmr2hdvqfma4zh7a41rj6336c9sr")))) |
8d12be1e RW |
2801 | (build-system python-build-system) |
2802 | (inputs | |
2803 | `(("libyaml" ,libyaml))) | |
8d12be1e RW |
2804 | (home-page "http://pyyaml.org/wiki/PyYAML") |
2805 | (synopsis "YAML parser and emitter for Python") | |
2806 | (description | |
2807 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a | |
2808 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension | |
2809 | API, and sensible error messages. PyYAML supports standard YAML tags and | |
2810 | provides Python-specific tags that allow to represent an arbitrary Python | |
2811 | object.") | |
2812 | (license license:expat))) | |
2813 | ||
2814 | (define-public python2-pyyaml | |
2815 | (package-with-python2 python-pyyaml)) | |
2816 | ||
5731cae3 DT |
2817 | (define-public python-virtualenv |
2818 | (package | |
2819 | (name "python-virtualenv") | |
58d04dba | 2820 | (version "15.0.3") |
5731cae3 DT |
2821 | (source |
2822 | (origin | |
2823 | (method url-fetch) | |
17804240 | 2824 | (uri (pypi-uri "virtualenv" version)) |
5731cae3 DT |
2825 | (sha256 |
2826 | (base32 | |
58d04dba | 2827 | "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d")))) |
5731cae3 | 2828 | (build-system python-build-system) |
17804240 EF |
2829 | (arguments |
2830 | `(#:phases | |
2831 | (modify-phases %standard-phases | |
58d04dba RW |
2832 | (replace 'check |
2833 | (lambda _ | |
2834 | ;; Disable failing test. See upstream bug report | |
2835 | ;; https://github.com/pypa/virtualenv/issues/957 | |
2836 | (substitute* "tests/test_virtualenv.py" | |
2837 | (("skipif.*") "skipif(True, reason=\"Guix\")\n")) | |
2838 | (zero? (system* "py.test"))))))) | |
e7881f3d | 2839 | (native-inputs |
f3b98f4f | 2840 | `(("python-mock" ,python-mock) |
17804240 | 2841 | ("python-pytest" ,python-pytest))) |
5731cae3 DT |
2842 | (home-page "https://virtualenv.pypa.io/") |
2843 | (synopsis "Virtual Python environment builder") | |
2844 | (description | |
2845 | "Virtualenv is a tool to create isolated Python environments.") | |
bd3fa666 | 2846 | (license license:expat))) |
5731cae3 DT |
2847 | |
2848 | (define-public python2-virtualenv | |
2849 | (package-with-python2 python-virtualenv)) | |
8176d4d5 DT |
2850 | |
2851 | (define-public python-markupsafe | |
2852 | (package | |
2853 | (name "python-markupsafe") | |
2854 | (version "0.23") | |
2855 | (source | |
2856 | (origin | |
2857 | (method url-fetch) | |
2858 | (uri (string-append | |
2859 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" | |
2860 | version ".tar.gz")) | |
2861 | (sha256 | |
2862 | (base32 | |
2863 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) | |
2864 | (build-system python-build-system) | |
8176d4d5 DT |
2865 | (home-page "http://github.com/mitsuhiko/markupsafe") |
2866 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") | |
2867 | (description | |
2868 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation | |
2869 | for Python.") | |
3f641af0 | 2870 | (license license:bsd-3))) |
8176d4d5 DT |
2871 | |
2872 | (define-public python2-markupsafe | |
2873 | (package-with-python2 python-markupsafe)) | |
fe34f0d1 DT |
2874 | |
2875 | (define-public python-jinja2 | |
2876 | (package | |
2877 | (name "python-jinja2") | |
e98149b3 | 2878 | (version "2.8") |
fe34f0d1 DT |
2879 | (source |
2880 | (origin | |
2881 | (method url-fetch) | |
e98149b3 | 2882 | (uri (pypi-uri "Jinja2" version)) |
fe34f0d1 DT |
2883 | (sha256 |
2884 | (base32 | |
e98149b3 | 2885 | "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw")))) |
fe34f0d1 | 2886 | (build-system python-build-system) |
f22efa01 | 2887 | (propagated-inputs |
f3b98f4f | 2888 | `(("python-markupsafe" ,python-markupsafe))) |
fe34f0d1 DT |
2889 | (home-page "http://jinja.pocoo.org/") |
2890 | (synopsis "Python template engine") | |
2891 | (description | |
2892 | "Jinja2 is a small but fast and easy to use stand-alone template engine | |
2893 | written in pure Python.") | |
3f641af0 | 2894 | (license license:bsd-3))) |
fe34f0d1 DT |
2895 | |
2896 | (define-public python2-jinja2 | |
2897 | (package-with-python2 python-jinja2)) | |
3580ab8b | 2898 | |
f7d17ac7 EE |
2899 | (define-public python-pystache |
2900 | (package | |
2901 | (name "python-pystache") | |
2902 | (version "0.5.4") | |
2903 | (source (origin | |
2904 | (method url-fetch) | |
2905 | (uri (pypi-uri "pystache" version)) | |
2906 | (sha256 | |
2907 | (base32 | |
2908 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) | |
2909 | (build-system python-build-system) | |
8bd5164b MB |
2910 | (arguments |
2911 | '(#:tests? #f)) ; FIXME: Python 3 tests are failing. | |
f7d17ac7 EE |
2912 | (home-page "http://defunkt.io/pystache/") |
2913 | (synopsis "Python logic-less template engine") | |
2914 | (description | |
2915 | "Pystache is a Python implementation of the framework agnostic, | |
2916 | logic-free templating system Mustache.") | |
8bd5164b MB |
2917 | (license license:expat) |
2918 | (properties `((python2-variant . ,(delay python2-pystache)))))) | |
f7d17ac7 EE |
2919 | |
2920 | (define-public python2-pystache | |
8bd5164b MB |
2921 | (package (inherit (package-with-python2 |
2922 | (strip-python2-variant python-pystache))) | |
2923 | (arguments | |
2924 | `(#:python ,python-2 | |
2925 | #:phases | |
2926 | (modify-phases %standard-phases | |
2927 | (replace 'check | |
2928 | (lambda _ | |
2929 | (zero? (system* "python" "test_pystache.py"))))))))) | |
f7d17ac7 | 2930 | |
1285119b RW |
2931 | (define-public python-joblib |
2932 | (package | |
2933 | (name "python-joblib") | |
f34ef331 | 2934 | (version "0.10.3") |
1285119b RW |
2935 | (source (origin |
2936 | (method url-fetch) | |
f34ef331 | 2937 | (uri (pypi-uri "joblib" version)) |
1285119b RW |
2938 | (sha256 |
2939 | (base32 | |
6aa5f1ca HG |
2940 | "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9")) |
2941 | (modules '((guix build utils))) | |
2942 | (snippet | |
2943 | '(begin | |
2944 | ;; Remove pre-compiled .pyc files from source. | |
2945 | (for-each delete-file-recursively | |
2946 | (find-files "." "__pycache__" #:directories? #t)) | |
2947 | (for-each delete-file (find-files "." "\\.pyc$")) | |
2948 | #t)))) | |
1285119b | 2949 | (build-system python-build-system) |
a8dd960a RW |
2950 | (arguments |
2951 | `(#:phases | |
2952 | (modify-phases %standard-phases | |
2953 | (add-before 'check 'disable-failing-tests | |
2954 | (lambda _ | |
2955 | ;; This numpydoc tests fails for unknown reasons | |
2956 | (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py") | |
2957 | ;; This numpydoc test depends on matplotlib, which is not a | |
2958 | ;; required input. | |
2959 | (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py") | |
2960 | ;; These tests fail to execute sys.executable | |
2961 | (substitute* "joblib/test/test_parallel.py" | |
2962 | (("import nose" line) | |
2963 | (string-append "from nose.plugins.skip import SkipTest\n" line)) | |
2964 | (("def test_nested_parallel_warnings" line) | |
2965 | (string-append "@SkipTest\n" line)) | |
2966 | (("def test_parallel_with_interactively_defined_functions" line) | |
2967 | (string-append "@SkipTest\n" line))) | |
2968 | #t))))) | |
f052ec9a | 2969 | ;; Provide nose to enable tests command |
1285119b | 2970 | (native-inputs |
f3b98f4f | 2971 | `(("python-nose" ,python-nose) |
f34ef331 RW |
2972 | ("python-sphinx" ,python-sphinx) |
2973 | ("python-docutils" ,python-docutils) | |
2974 | ("python-numpydoc" ,python-numpydoc))) | |
1285119b RW |
2975 | (home-page "http://pythonhosted.org/joblib/") |
2976 | (synopsis "Using Python functions as pipeline jobs") | |
2977 | (description | |
2978 | "Joblib is a set of tools to provide lightweight pipelining in Python. | |
2979 | In particular, joblib offers: transparent disk-caching of the output values | |
2980 | and lazy re-evaluation (memoize pattern), easy simple parallel computing | |
2981 | logging and tracing of the execution.") | |
3f641af0 | 2982 | (license license:bsd-3))) |
1285119b RW |
2983 | |
2984 | (define-public python2-joblib | |
2985 | (package-with-python2 python-joblib)) | |
2986 | ||
3580ab8b DT |
2987 | (define-public python-docutils |
2988 | (package | |
2989 | (name "python-docutils") | |
00e0ca7c | 2990 | (version "0.13.1") |
3580ab8b DT |
2991 | (source |
2992 | (origin | |
2993 | (method url-fetch) | |
00e0ca7c | 2994 | (uri (pypi-uri "docutils" version)) |
3580ab8b DT |
2995 | (sha256 |
2996 | (base32 | |
00e0ca7c | 2997 | "1gkma47i609jfs7dssxn4y9vsz06qi0l5q41nws0zgkpnrghz33i")))) |
3580ab8b | 2998 | (build-system python-build-system) |
3580ab8b DT |
2999 | (arguments |
3000 | '(#:tests? #f)) ; no setup.py test command | |
3001 | (home-page "http://docutils.sourceforge.net/") | |
3002 | (synopsis "Python Documentation Utilities") | |
3003 | (description | |
3004 | "Docutils is a modular system for processing documentation into useful | |
3005 | formats, such as HTML, XML, and LaTeX. For input Docutils supports | |
3006 | reStructuredText.") | |
3007 | ;; Most of the source code is public domain, but some source files are | |
3008 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. | |
3f641af0 | 3009 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
3580ab8b DT |
3010 | |
3011 | (define-public python2-docutils | |
3012 | (package-with-python2 python-docutils)) | |
fb35b7c0 DT |
3013 | |
3014 | (define-public python-pygments | |
3015 | (package | |
3016 | (name "python-pygments") | |
7d2e758d | 3017 | (version "2.1.3") |
fb35b7c0 DT |
3018 | (source |
3019 | (origin | |
3020 | (method url-fetch) | |
9f442285 | 3021 | (uri (pypi-uri "Pygments" version)) |
fb35b7c0 DT |
3022 | (sha256 |
3023 | (base32 | |
7d2e758d | 3024 | "10axnp2wpjnq9g8wg53fx0c70dfxqrz498jyz8mrdx9a3flwir48")))) |
fb35b7c0 | 3025 | (build-system python-build-system) |
995cb99e MB |
3026 | (arguments |
3027 | ;; FIXME: Tests require sphinx, which depends on this. | |
3028 | '(#:tests? #f)) | |
fb35b7c0 DT |
3029 | (home-page "http://pygments.org/") |
3030 | (synopsis "Syntax highlighting") | |
3031 | (description | |
3032 | "Pygments is a syntax highlighting package written in Python.") | |
3f641af0 | 3033 | (license license:bsd-2))) |
fb35b7c0 DT |
3034 | |
3035 | (define-public python2-pygments | |
3036 | (package-with-python2 python-pygments)) | |
9dd6078d DT |
3037 | |
3038 | (define-public python-sphinx | |
3039 | (package | |
3040 | (name "python-sphinx") | |
c227458a | 3041 | (version "1.5.1") |
9dd6078d DT |
3042 | (source |
3043 | (origin | |
3044 | (method url-fetch) | |
9a8acd00 | 3045 | (uri (pypi-uri "Sphinx" version)) |
9dd6078d DT |
3046 | (sha256 |
3047 | (base32 | |
c227458a | 3048 | "1i8p9idnli4gr0y4x67yakbdk5w6a0xjzhrg6bg51y9d1fi7fslf")))) |
9dd6078d | 3049 | (build-system python-build-system) |
03cb5f9e | 3050 | (arguments |
c227458a DM |
3051 | `(#:phases |
3052 | (modify-phases %standard-phases | |
3053 | (replace 'check | |
3054 | (lambda _ | |
3055 | ;; Requires Internet access. | |
3056 | (delete-file "tests/test_build_linkcheck.py") | |
3057 | (zero? (system* "make" "test"))))))) | |
f22efa01 | 3058 | (propagated-inputs |
9a8acd00 DM |
3059 | `(("python-imagesize" ,python-imagesize) |
3060 | ("python-sphinx-alabaster-theme" | |
3061 | ,python-sphinx-alabaster-theme) | |
3062 | ("python-babel" ,python-babel) | |
3063 | ("python-snowballstemmer" ,python-snowballstemmer) | |
9dd6078d | 3064 | ("python-docutils" ,python-docutils) |
9a8acd00 DM |
3065 | ("python-jinja2" ,python-jinja2) |
3066 | ("python-pygments" ,python-pygments) | |
a10b9810 | 3067 | ("python-requests" ,python-requests) |
9a8acd00 | 3068 | ("python-six" ,python-six))) |
c227458a DM |
3069 | (native-inputs |
3070 | `(("graphviz" ,graphviz) | |
3071 | ("python-html5lib" ,python-html5lib) | |
3072 | ("python-mock" ,python-mock) | |
a10b9810 | 3073 | ("python-nose" ,python-nose))) |
9dd6078d DT |
3074 | (home-page "http://sphinx-doc.org/") |
3075 | (synopsis "Python documentation generator") | |
3076 | (description "Sphinx is a tool that makes it easy to create documentation | |
3077 | for Python projects or other documents consisting of multiple reStructuredText | |
3078 | sources.") | |
9a8acd00 DM |
3079 | (license license:bsd-3) |
3080 | (properties `((python2-variant . ,(delay python2-sphinx)))))) | |
9dd6078d DT |
3081 | |
3082 | (define-public python2-sphinx | |
9a8acd00 DM |
3083 | (let ((base (package-with-python2 (strip-python2-variant python-sphinx)))) |
3084 | (package | |
3085 | (inherit base) | |
3086 | (native-inputs `(("python2-mock" ,python2-mock) | |
c227458a | 3087 | ("python2-enum34" ,python2-enum34) |
9a8acd00 DM |
3088 | ,@(package-native-inputs base))) |
3089 | (propagated-inputs `(("python2-pytz" ,python2-pytz) | |
3090 | ,@(package-propagated-inputs base)))))) | |
6888830b | 3091 | |
ad320b20 RW |
3092 | (define-public python-sphinx-rtd-theme |
3093 | (package | |
3094 | (name "python-sphinx-rtd-theme") | |
3095 | (version "0.1.6") | |
3096 | (source | |
3097 | (origin | |
3098 | (method url-fetch) | |
3099 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
3100 | "sphinx_rtd_theme/sphinx_rtd_theme-" | |
3101 | version ".tar.gz")) | |
3102 | (sha256 | |
3103 | (base32 | |
3104 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) | |
3105 | (build-system python-build-system) | |
9893cff3 | 3106 | (arguments '(#:tests? #f)) ; No tests. |
9d3a15b4 LF |
3107 | (propagated-inputs |
3108 | `(("python-sphinx" ,python-sphinx))) | |
ad320b20 RW |
3109 | (home-page "https://github.com/snide/sphinx_rtd_theme/") |
3110 | (synopsis "ReadTheDocs.org theme for Sphinx") | |
3111 | (description "A theme for Sphinx used by ReadTheDocs.org.") | |
bd3fa666 | 3112 | (license license:expat))) |
ad320b20 RW |
3113 | |
3114 | (define-public python2-sphinx-rtd-theme | |
3115 | (package-with-python2 python-sphinx-rtd-theme)) | |
3116 | ||
fe94cf0c HG |
3117 | (define-public python-rst.linker |
3118 | (package | |
3119 | (name "python-rst.linker") | |
3120 | (version "1.7") | |
3121 | (source | |
3122 | (origin | |
3123 | (method url-fetch) | |
3124 | (uri (pypi-uri "rst.linker" version)) | |
3125 | (sha256 | |
3126 | (base32 | |
3127 | "0bh4lnj2p1nh0wf5pgxgfbrp27xhb1rinahkb5j7s3qprq6qn0sr")))) | |
3128 | (build-system python-build-system) | |
3129 | (propagated-inputs | |
22d7360b | 3130 | `(("python-dateutil" ,python-dateutil) |
fe94cf0c HG |
3131 | ("python-six" ,python-six))) |
3132 | (native-inputs | |
3133 | `(("python-setuptools-scm" ,python-setuptools-scm))) | |
3134 | ;; Test would require path.py, which would introduce a cyclic dependence. | |
3135 | (arguments `(#:tests? #f)) | |
3136 | ;; Note: As of version 1.7 the documentation is not worth building. | |
3137 | (home-page "https://github.com/jaraco/rst.linker") | |
3138 | (synopsis "Sphinx plugin to add links and timestamps") | |
3139 | (description "rst.linker allows to automatically replace text by a | |
3140 | reStructuredText external reference or timestamps. It's primary purpose is to | |
3141 | augment the changelog, but it can be used for other documents, too.") | |
3142 | (license license:expat))) | |
3143 | ||
3144 | (define-public python2-rst.linker | |
3145 | (package-with-python2 python-rst.linker)) | |
3146 | ||
f4de5b3b CAW |
3147 | (define-public python-feedgenerator |
3148 | (package | |
3149 | (name "python-feedgenerator") | |
f0412aa2 | 3150 | (version "1.8") |
f4de5b3b | 3151 | (source |
f4de5b3b | 3152 | (origin |
f0412aa2 EF |
3153 | (method url-fetch) |
3154 | (uri (pypi-uri "feedgenerator" version)) | |
f4de5b3b CAW |
3155 | (sha256 |
3156 | (base32 | |
7c88bcf4 HG |
3157 | "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0")) |
3158 | (modules '((guix build utils))) | |
3159 | (snippet | |
3160 | '(begin | |
3161 | ;; Remove pre-compiled .pyc files from source. | |
3162 | (for-each delete-file-recursively | |
3163 | (find-files "." "__pycache__" #:directories? #t)) | |
3164 | (for-each delete-file (find-files "." "\\.pyc$")) | |
3165 | #t)))) | |
f4de5b3b | 3166 | (build-system python-build-system) |
dae73d9b | 3167 | (propagated-inputs |
f3b98f4f | 3168 | `(("python-pytz" ,python-pytz) |
f4de5b3b | 3169 | ("python-six" ,python-six))) |
f0412aa2 | 3170 | (home-page "https://github.com/getpelican/feedgenerator") |
f4de5b3b CAW |
3171 | (synopsis |
3172 | "Standalone version of Django's Atom/RSS feed generator") | |
3173 | (description | |
3174 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, | |
3175 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") | |
3f641af0 | 3176 | (license license:bsd-3))) |
f4de5b3b CAW |
3177 | |
3178 | (define-public python2-feedgenerator | |
3179 | (package-with-python2 python-feedgenerator)) | |
3180 | ||
59ad30e3 CAW |
3181 | (define-public python-blinker |
3182 | (package | |
3183 | (name "python-blinker") | |
7fb9ff4d | 3184 | (version "1.4") |
59ad30e3 CAW |
3185 | (source |
3186 | (origin | |
3187 | (method url-fetch) | |
7fb9ff4d | 3188 | (uri (pypi-uri "blinker" version)) |
59ad30e3 CAW |
3189 | (sha256 |
3190 | (base32 | |
7fb9ff4d | 3191 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
59ad30e3 | 3192 | (build-system python-build-system) |
59ad30e3 CAW |
3193 | (home-page "http://pythonhosted.org/blinker/") |
3194 | (synopsis "Fast, simple object-to-object and broadcast signaling") | |
3195 | (description | |
3196 | "Blinker provides a fast dispatching system that allows any number of | |
3197 | interested parties to subscribe to events, or \"signals\".") | |
3198 | (license license:expat))) | |
3199 | ||
3200 | (define-public python2-blinker | |
3201 | (package-with-python2 python-blinker)) | |
3202 | ||
b8050e71 CAW |
3203 | (define-public pelican |
3204 | (package | |
3205 | (name "pelican") | |
11f97c27 | 3206 | (version "3.6.3") |
b8050e71 CAW |
3207 | (source |
3208 | (origin | |
3209 | (method url-fetch) | |
11f97c27 | 3210 | (uri (pypi-uri "pelican" version)) |
b8050e71 CAW |
3211 | (sha256 |
3212 | (base32 | |
11f97c27 | 3213 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
b8050e71 | 3214 | (build-system python-build-system) |
f22efa01 | 3215 | (propagated-inputs |
b8050e71 CAW |
3216 | `(("python-feedgenerator" ,python-feedgenerator) |
3217 | ("python-jinja2" ,python-jinja2) | |
3218 | ("python-pygments" ,python-pygments) | |
3219 | ("python-docutils" ,python-docutils) | |
3220 | ("python-pytz" ,python-pytz) | |
3221 | ("python-blinker" ,python-blinker) | |
3222 | ("python-unidecode" ,python-unidecode) | |
3223 | ("python-six" ,python-six) | |
22d7360b | 3224 | ("python-dateutil" ,python-dateutil))) |
b8050e71 CAW |
3225 | (home-page "http://getpelican.com/") |
3226 | (arguments | |
3227 | `(;; XXX Requires a lot more packages to do unit tests :P | |
3228 | #:tests? #f | |
3229 | #:phases (modify-phases %standard-phases | |
3230 | (add-before | |
3231 | 'install 'adjust-requires | |
3232 | ;; Since feedgenerator is installed from git, it doesn't | |
3233 | ;; conform to the version requirements. | |
3234 | ;; | |
3235 | ;; We *do have* "feedgenerator >= 1.6", but strip off the | |
3236 | ;; version requirement so setuptools doesn't get confused. | |
3237 | (lambda _ | |
3238 | (substitute* "setup.py" | |
3239 | (("['\"]feedgenerator.*?['\"]") | |
3240 | "'feedgenerator'"))))))) | |
3241 | (synopsis "Python-based static site publishing system") | |
3242 | (description | |
3243 | "Pelican is a tool to generate a static blog from reStructuredText, | |
3244 | Markdown input files, and more. Pelican uses Jinja2 for templating | |
3245 | and is very extensible.") | |
3f641af0 | 3246 | (license license:agpl3+))) |
b8050e71 | 3247 | |
240ca4aa RW |
3248 | (define-public python-scikit-learn |
3249 | (package | |
3250 | (name "python-scikit-learn") | |
8e401ab6 | 3251 | (version "0.18.1") |
240ca4aa RW |
3252 | (source |
3253 | (origin | |
3254 | (method url-fetch) | |
3255 | (uri (string-append | |
3256 | "https://github.com/scikit-learn/scikit-learn/archive/" | |
3257 | version ".tar.gz")) | |
7e21b9fb | 3258 | (file-name (string-append name "-" version ".tar.gz")) |
240ca4aa RW |
3259 | (sha256 |
3260 | (base32 | |
8e401ab6 | 3261 | "1hwswckdmd27f7k1jvwdc0m4mqrgxl2s245yq1scq34v124bjqgq")))) |
240ca4aa RW |
3262 | (build-system python-build-system) |
3263 | (arguments | |
3264 | `(#:phases | |
4d25c486 MB |
3265 | (modify-phases %standard-phases |
3266 | (delete 'check) | |
3267 | (add-after 'install 'check | |
3268 | ;; Running tests from the source directory requires | |
3269 | ;; an "inplace" build with paths relative to CWD. | |
3270 | ;; http://scikit-learn.org/stable/developers/advanced_installation.html#testing | |
3271 | ;; Use the installed version instead. | |
3272 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3273 | (add-installed-pythonpath inputs outputs) | |
3274 | ;; some tests require access to "$HOME" | |
3275 | (setenv "HOME" "/tmp") | |
3276 | ;; Step out of the source directory just to be sure. | |
3277 | (chdir "..") | |
3278 | (zero? (system* "nosetests" "-v" "sklearn"))))))) | |
240ca4aa | 3279 | (inputs |
328bb95d HG |
3280 | `(("openblas" ,openblas))) |
3281 | (native-inputs | |
8e401ab6 RW |
3282 | `(("python-nose" ,python-nose) |
3283 | ("python-cython" ,python-cython))) | |
240ca4aa RW |
3284 | (propagated-inputs |
3285 | `(("python-numpy" ,python-numpy) | |
3286 | ("python-scipy" ,python-scipy))) | |
3287 | (home-page "http://scikit-learn.org/") | |
3288 | (synopsis "Machine Learning in Python") | |
3289 | (description | |
3290 | "Scikit-learn provides simple and efficient tools for data | |
3291 | mining and data analysis.") | |
1b5241c5 | 3292 | (license license:bsd-3))) |
240ca4aa RW |
3293 | |
3294 | (define-public python2-scikit-learn | |
1b5241c5 | 3295 | (package-with-python2 python-scikit-learn)) |
240ca4aa | 3296 | |
12f8f9bb RW |
3297 | (define-public python-scikit-image |
3298 | (package | |
3299 | (name "python-scikit-image") | |
3300 | (version "0.11.3") | |
3301 | (source | |
3302 | (origin | |
3303 | (method url-fetch) | |
3304 | (uri (string-append | |
3305 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" | |
3306 | version ".tar.gz")) | |
3307 | (sha256 | |
3308 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) | |
3309 | (build-system python-build-system) | |
9026e689 MB |
3310 | (arguments |
3311 | ;; TODO: Some tests require running X11 server. Disable them? | |
3312 | '(#:tests? #f)) | |
b83e2333 | 3313 | ;; See DEPENDS.txt for the list of build and run time requiremnts |
12f8f9bb RW |
3314 | (propagated-inputs |
3315 | `(("python-matplotlib" ,python-matplotlib) | |
3316 | ("python-networkx" ,python-networkx) | |
12f8f9bb | 3317 | ("python-scipy" ,python-scipy) |
12f8f9bb RW |
3318 | ("python-pillow" ,python-pillow))) |
3319 | (native-inputs | |
b83e2333 HG |
3320 | `(("python-numpy" ,python-numpy) |
3321 | ("python-cython" ,python-cython) | |
3322 | ("python-six" ,python-six))) | |
12f8f9bb RW |
3323 | (home-page "http://scikit-image.org/") |
3324 | (synopsis "Image processing in Python") | |
3325 | (description | |
e881752c | 3326 | "Scikit-image is a collection of algorithms for image processing.") |
12733594 | 3327 | (license license:bsd-3))) |
12f8f9bb RW |
3328 | |
3329 | (define-public python2-scikit-image | |
12733594 | 3330 | (package-with-python2 python-scikit-image)) |
12f8f9bb | 3331 | |
5394a6a6 RW |
3332 | (define-public python-redis |
3333 | (package | |
3334 | (name "python-redis") | |
911a8faf | 3335 | (version "2.10.5") |
5394a6a6 RW |
3336 | (source |
3337 | (origin | |
3338 | (method url-fetch) | |
911a8faf | 3339 | (uri (pypi-uri "redis" version)) |
5394a6a6 | 3340 | (sha256 |
911a8faf | 3341 | (base32 "0csmrkxb29x7xs9b51zplwkkq2hwnbh9jns1g85dykn5rxmaxysx")))) |
5394a6a6 RW |
3342 | (build-system python-build-system) |
3343 | ;; Tests require a running Redis server | |
3344 | (arguments '(#:tests? #f)) | |
cf8124b0 HG |
3345 | ;; As long as we are not running test, we do not need this input :-) |
3346 | ;;(native-inputs | |
3347 | ;; `(("python-pytest" ,python-pytest))) | |
5394a6a6 RW |
3348 | (home-page "https://github.com/andymccurdy/redis-py") |
3349 | (synopsis "Redis Python client") | |
3350 | (description | |
3351 | "This package provides a Python interface to the Redis key-value store.") | |
3352 | (license license:expat))) | |
3353 | ||
3354 | (define-public python2-redis | |
3355 | (package-with-python2 python-redis)) | |
3356 | ||
748cef5b RW |
3357 | (define-public python-rq |
3358 | (package | |
3359 | (name "python-rq") | |
3360 | (version "0.5.2") | |
3361 | (source | |
3362 | (origin | |
3363 | (method url-fetch) | |
3364 | (uri (string-append | |
3365 | "https://pypi.python.org/packages/source/r/rq/rq-" | |
3366 | version ".tar.gz")) | |
3367 | (sha256 | |
3368 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) | |
3369 | (build-system python-build-system) | |
3370 | (propagated-inputs | |
3371 | `(("python-click" ,python-click) | |
3372 | ("python-redis" ,python-redis))) | |
748cef5b RW |
3373 | (home-page "http://python-rq.org/") |
3374 | (synopsis "Simple job queues for Python") | |
3375 | (description | |
3376 | "RQ (Redis Queue) is a simple Python library for queueing jobs and | |
3377 | processing them in the background with workers. It is backed by Redis and it | |
3378 | is designed to have a low barrier to entry.") | |
3f641af0 | 3379 | (license license:bsd-2))) |
748cef5b RW |
3380 | |
3381 | (define-public python2-rq | |
3382 | (package-with-python2 python-rq)) | |
3383 | ||
6888830b FB |
3384 | (define-public python-cython |
3385 | (package | |
3386 | (name "python-cython") | |
dd22efef | 3387 | (version "0.24.1") |
6888830b FB |
3388 | (source |
3389 | (origin | |
3390 | (method url-fetch) | |
56918e26 | 3391 | (uri (pypi-uri "Cython" version)) |
6888830b FB |
3392 | (sha256 |
3393 | (base32 | |
dd22efef | 3394 | "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044")))) |
6888830b FB |
3395 | (build-system python-build-system) |
3396 | ;; we need the full python package and not just the python-wrapper | |
3397 | ;; because we need libpython3.3m.so | |
3398 | (inputs | |
3399 | `(("python" ,python))) | |
3400 | (arguments | |
3401 | `(#:phases | |
b92f651b EF |
3402 | (modify-phases %standard-phases |
3403 | (add-before 'check 'set-HOME | |
3404 | ;; some tests require access to "$HOME/.cython" | |
3405 | (lambda _ (setenv "HOME" "/tmp"))) | |
3406 | (replace 'check | |
3407 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))))))) | |
6888830b FB |
3408 | (home-page "http://cython.org/") |
3409 | (synopsis "C extensions for Python") | |
3410 | (description "Cython is an optimising static compiler for both the Python | |
3411 | programming language and the extended Cython programming language. It makes | |
3412 | writing C extensions for Python as easy as Python itself.") | |
3f641af0 | 3413 | (license license:asl2.0) |
48b311b1 | 3414 | (properties `((python2-variant . ,(delay python2-cython)))))) |
6888830b FB |
3415 | |
3416 | (define-public python2-cython | |
48b311b1 LC |
3417 | (package (inherit (package-with-python2 |
3418 | (strip-python2-variant python-cython))) | |
6888830b FB |
3419 | (name "python2-cython") |
3420 | (inputs | |
3421 | `(("python-2" ,python-2))))) ; this is not automatically changed | |
0da98533 | 3422 | |
ee5fb7ee AV |
3423 | ;; The RPython toolchain currently does not support Python 3. |
3424 | (define-public python2-rpython | |
3425 | (package | |
3426 | (name "python2-rpython") | |
3427 | (version "0.1.4") | |
3428 | (source | |
3429 | (origin | |
3430 | (method url-fetch) | |
3431 | (uri (pypi-uri "rpython" version)) | |
3432 | (sha256 | |
3433 | (base32 | |
3434 | "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc")))) | |
3435 | (build-system python-build-system) | |
3436 | (arguments `(#:python ,python-2)) | |
3437 | (native-inputs | |
f3b98f4f | 3438 | `(("python2-pytest" ,python2-pytest))) ; needed for running tests |
ee5fb7ee AV |
3439 | (home-page "https://rpython.readthedocs.org") |
3440 | (synopsis "Framework for implementing interpreters and virtual machines") | |
3441 | (description "RPython is a translation and support framework for | |
3442 | producing implementations of dynamic languages, emphasizing a clean separation | |
3443 | between language specification and implementation aspects.") | |
3444 | (license license:expat))) | |
3445 | ||
0da98533 FB |
3446 | ;; This version of numpy is missing the documentation and is only used to |
3447 | ;; build matplotlib which is required to build numpy's documentation. | |
7ccb71e0 | 3448 | (define-public python-numpy |
0da98533 | 3449 | (package |
7ccb71e0 TD |
3450 | (name "python-numpy") |
3451 | (version "1.12.0") | |
0da98533 FB |
3452 | (source |
3453 | (origin | |
3454 | (method url-fetch) | |
7ccb71e0 TD |
3455 | (uri (string-append |
3456 | "https://github.com/numpy/numpy/archive/v" version ".tar.gz")) | |
3457 | (file-name (string-append name "-" version ".tar.gz")) | |
0da98533 FB |
3458 | (sha256 |
3459 | (base32 | |
7ccb71e0 | 3460 | "025d4j4aakcp8w5i5diqh812cbbjgac7jszx1j56ivrbi1i8vv7d")))) |
0da98533 FB |
3461 | (build-system python-build-system) |
3462 | (inputs | |
328bb95d | 3463 | `(("openblas" ,openblas) |
cba256f8 | 3464 | ("lapack" ,lapack))) |
0da98533 | 3465 | (native-inputs |
7ccb71e0 TD |
3466 | `(("python-cython" ,python-cython) |
3467 | ("python-nose" ,python-nose) | |
2efabc55 | 3468 | ("gfortran" ,gfortran))) |
0da98533 FB |
3469 | (arguments |
3470 | `(#:phases | |
2efabc55 HG |
3471 | (modify-phases %standard-phases |
3472 | (add-before 'build 'set-environment-variables | |
3473 | (lambda* (#:key inputs #:allow-other-keys) | |
dbdfe515 RW |
3474 | (call-with-output-file "site.cfg" |
3475 | (lambda (port) | |
cba256f8 RW |
3476 | (format port |
3477 | "[openblas] | |
dbdfe515 RW |
3478 | libraries = openblas |
3479 | library_dirs = ~a/lib | |
3480 | include_dirs = ~a/include | |
cba256f8 | 3481 | |
2efabc55 HG |
3482 | # backslash-n to make emacs happy |
3483 | \n[lapack] | |
cba256f8 RW |
3484 | lapack_libs = lapack |
3485 | library_dirs = ~a/lib | |
3486 | include_dirs = ~a/include | |
3487 | " | |
3488 | (assoc-ref inputs "openblas") | |
3489 | (assoc-ref inputs "openblas") | |
3490 | (assoc-ref inputs "lapack") | |
3491 | (assoc-ref inputs "lapack")))) | |
dbdfe515 RW |
3492 | ;; Use "gcc" executable, not "cc". |
3493 | (substitute* "numpy/distutils/system_info.py" | |
3494 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") | |
3495 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) | |
2efabc55 | 3496 | #t)) |
6a843168 FB |
3497 | ;; Tests can only be run after the library has been installed and not |
3498 | ;; within the source directory. | |
2efabc55 HG |
3499 | (delete 'check) |
3500 | (add-after 'install 'check | |
3501 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3502 | ;; Make installed package available for running the tests | |
3503 | (add-installed-pythonpath inputs outputs) | |
6a843168 | 3504 | (with-directory-excursion "/tmp" |
89b5c60e | 3505 | (zero? (system* "python" "-c" |
2efabc55 | 3506 | "import numpy; numpy.test(verbose=2)")))))))) |
0da98533 FB |
3507 | (home-page "http://www.numpy.org/") |
3508 | (synopsis "Fundamental package for scientific computing with Python") | |
3509 | (description "NumPy is the fundamental package for scientific computing | |
e881752c | 3510 | with Python. It contains among other things: a powerful N-dimensional array |
0da98533 FB |
3511 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
3512 | and Fortran code, useful linear algebra, Fourier transform, and random number | |
3513 | capabilities.") | |
3f641af0 | 3514 | (license license:bsd-3))) |
0da98533 | 3515 | |
7ccb71e0 TD |
3516 | (define-public python2-numpy |
3517 | (package-with-python2 python-numpy)) | |
15bfe6d6 | 3518 | |
460fccd4 | 3519 | (define-public python-munch |
3520 | (package | |
3521 | (name "python-munch") | |
3522 | (version "2.0.4") | |
3523 | (source | |
3524 | (origin | |
3525 | (method url-fetch) | |
3526 | (uri (pypi-uri "munch" version)) | |
3527 | (sha256 | |
3528 | (base32 | |
3529 | "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l")))) | |
3530 | (build-system python-build-system) | |
3531 | (home-page "https://github.com/Infinidat/munch") | |
3532 | (synopsis "Dot-accessible dictionary") | |
3533 | (description "Munch is a dot-accessible dictionary similar to JavaScript | |
3534 | objects.") | |
3535 | (license license:expat))) | |
3536 | ||
3537 | (define-public python2-munch | |
3538 | (package-with-python2 python-munch)) | |
3539 | ||
3a1bfe18 RW |
3540 | (define-public python2-fastlmm |
3541 | (package | |
3542 | (name "python2-fastlmm") | |
154d0016 | 3543 | (version "0.2.21") |
3a1bfe18 RW |
3544 | (source |
3545 | (origin | |
3546 | (method url-fetch) | |
b074e7d4 | 3547 | (uri (pypi-uri "fastlmm" version ".zip")) |
3a1bfe18 RW |
3548 | (sha256 |
3549 | (base32 | |
154d0016 | 3550 | "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m")))) |
3a1bfe18 RW |
3551 | (build-system python-build-system) |
3552 | (arguments | |
3553 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3554 | (propagated-inputs | |
3555 | `(("python2-numpy" ,python2-numpy) | |
3556 | ("python2-scipy" ,python2-scipy) | |
3557 | ("python2-matplotlib" ,python2-matplotlib) | |
3558 | ("python2-pandas" ,python2-pandas) | |
3559 | ("python2-scikit-learn" ,python2-scikit-learn) | |
3a1bfe18 RW |
3560 | ("python2-pysnptools" ,python2-pysnptools))) |
3561 | (native-inputs | |
3562 | `(("unzip" ,unzip) | |
2efabc55 | 3563 | ("python2-cython" ,python2-cython) |
1b6d7c3f MB |
3564 | ("python2-mock" ,python2-mock) |
3565 | ("python2-nose" ,python2-nose))) | |
3a1bfe18 RW |
3566 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") |
3567 | (synopsis "Perform genome-wide association studies on large data sets") | |
3568 | (description | |
3569 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed | |
3570 | Models, is a program for performing both single-SNP and SNP-set genome-wide | |
3571 | association studies (GWAS) on extremely large data sets.") | |
3f641af0 | 3572 | (license license:asl2.0))) |
3a1bfe18 | 3573 | |
7ccb71e0 TD |
3574 | (define-public python-numpy-documentation |
3575 | (package | |
3576 | (name "python-numpy-documentation") | |
3577 | (version (package-version python-numpy)) | |
3578 | (source (package-source python-numpy)) | |
3579 | (build-system python-build-system) | |
2ee8869a | 3580 | (native-inputs |
7ccb71e0 TD |
3581 | `(("python-matplotlib" ,python-matplotlib) |
3582 | ("python-numpy" ,python-numpy) | |
3583 | ("pkg-config" ,pkg-config) | |
2efabc55 HG |
3584 | ("python-sphinx" ,python-sphinx) |
3585 | ("python-numpydoc" ,python-numpydoc) | |
2ee8869a FB |
3586 | ("texlive" ,texlive) |
3587 | ("texinfo" ,texinfo) | |
3588 | ("perl" ,perl) | |
7ccb71e0 TD |
3589 | ("scipy-sphinx-theme" |
3590 | ,(origin ; The build script expects scipy-sphinx-theme as a git submodule | |
3591 | (method git-fetch) | |
3592 | (uri (git-reference | |
3593 | (url "https://github.com/scipy/scipy-sphinx-theme.git") | |
3594 | (commit "c466764e22"))) | |
3595 | (sha256 | |
3596 | (base32 | |
3597 | "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))) | |
3598 | ,@(package-native-inputs python-numpy))) | |
2ee8869a | 3599 | (arguments |
7ccb71e0 TD |
3600 | `(#:tests? #f ; we're only generating the documentation |
3601 | #:phases | |
3602 | (modify-phases %standard-phases | |
3603 | (delete 'build) | |
3604 | (replace 'install | |
3605 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3606 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) | |
3607 | (doc (string-append | |
3608 | data "/doc/" ,name "-" | |
3609 | ,(package-version python-numpy))) | |
3610 | (info-reader (string-append data "/info")) | |
3611 | (html (string-append doc "/html")) | |
3612 | (scipy-sphinx-theme "scipy-sphinx-theme") | |
3613 | (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme)) | |
3614 | (pyver ,(string-append "PYVER="))) | |
3615 | (with-directory-excursion "doc" | |
3616 | (copy-recursively sphinx-theme-checkout scipy-sphinx-theme) | |
3617 | (mkdir-p html) | |
3618 | (system* "make" "html" pyver) | |
3619 | (system* "make" "latex" "PAPER=a4" pyver) | |
3620 | (system* "make" "-C" "build/latex" | |
3621 | "all-pdf" "PAPER=a4" pyver) | |
3622 | ;; FIXME: Generation of the info file fails. | |
3623 | ;; (system* "make" "info" pyver) | |
3624 | ;; (mkdir-p info) | |
3625 | ;; (copy-file "build/texinfo/numpy.info" | |
3626 | ;; (string-append info "/numpy.info")) | |
3627 | (for-each (lambda (file) | |
3628 | (copy-file (string-append "build/latex" file) | |
3629 | (string-append doc file))) | |
3630 | '("/numpy-ref.pdf" "/numpy-user.pdf")) | |
3631 | (with-directory-excursion "build/html" | |
3632 | (for-each (lambda (file) | |
3633 | (let* ((dir (dirname file)) | |
3634 | (tgt-dir (string-append html "/" dir))) | |
3635 | (unless (equal? "." dir) | |
3636 | (mkdir-p tgt-dir)) | |
3637 | (install-file file html))) | |
3638 | (find-files "." ".*"))))) | |
3639 | #t))))) | |
3640 | (home-page (package-home-page python-numpy)) | |
3641 | (synopsis "Documentation for the python-numpy package") | |
3642 | (description (package-description python-numpy)) | |
3643 | (license (package-license python-numpy)))) | |
2ee8869a | 3644 | |
7ccb71e0 TD |
3645 | (define-public python2-numpy-documentation |
3646 | (let ((numpy-documentation (package-with-python2 python-numpy-documentation))) | |
3647 | (package | |
3648 | (inherit numpy-documentation) | |
3649 | (native-inputs `(("python2-functools32" ,python2-functools32) | |
3650 | ,@(package-native-inputs numpy-documentation)))))) | |
2ee8869a | 3651 | |
0151a8df | 3652 | (define-public python-pygit2 |
3653 | (package | |
3654 | (name "python-pygit2") | |
022c9772 | 3655 | (version "0.25.0") |
0151a8df | 3656 | (source |
3657 | (origin | |
3658 | (method url-fetch) | |
3659 | (uri (pypi-uri "pygit2" version)) | |
3660 | (sha256 | |
3661 | (base32 | |
bb6043fe MB |
3662 | "0wf5rp0fvrw7j3j18dvwjq6xqlbm611wd55aphrfpps0v1gxh3ny")) |
3663 | (patches | |
3664 | (search-patches "python-pygit2-disable-network-tests.patch")))) | |
0151a8df | 3665 | (build-system python-build-system) |
3666 | (propagated-inputs | |
3667 | `(("python-six" ,python-six) | |
3668 | ("python-cffi" ,python-cffi) | |
3669 | ("libgit2" ,libgit2) | |
3670 | ("python-tox" ,python-tox))) | |
3671 | (home-page "https://github.com/libgit2/pygit2") | |
3672 | (synopsis "Python bindings for libgit2") | |
3673 | (description "Pygit2 is a set of Python bindings to the libgit2 shared | |
3674 | library, libgit2 implements Git plumbing.") | |
3675 | ;; GPL2.0 only, with linking exception. | |
3676 | (license license:gpl2))) | |
3677 | ||
3678 | (define-public python2-pygit2 | |
3679 | (package-with-python2 python-pygit2)) | |
3680 | ||
15bfe6d6 FB |
3681 | (define-public python-pyparsing |
3682 | (package | |
3683 | (name "python-pyparsing") | |
e0669289 | 3684 | (version "2.0.3") |
15bfe6d6 FB |
3685 | (source |
3686 | (origin | |
3687 | (method url-fetch) | |
de67e922 LF |
3688 | (uri (string-append "mirror://sourceforge/pyparsing/pyparsing" |
3689 | "/pyparsing-" version | |
15bfe6d6 FB |
3690 | "/pyparsing-" version ".tar.gz")) |
3691 | (sha256 | |
3692 | (base32 | |
e0669289 | 3693 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
15bfe6d6 FB |
3694 | (build-system python-build-system) |
3695 | (outputs '("out" "doc")) | |
3696 | (arguments | |
3697 | `(#:tests? #f ; no test target | |
3698 | #:modules ((guix build python-build-system) | |
3699 | (guix build utils)) | |
3700 | #:phases | |
3701 | (alist-cons-after | |
3702 | 'install 'install-doc | |
3703 | (lambda* (#:key outputs #:allow-other-keys) | |
89b5c60e | 3704 | (let* ((doc (string-append (assoc-ref outputs "doc") |
15bfe6d6 FB |
3705 | "/share/doc/" ,name "-" ,version)) |
3706 | (html-doc (string-append doc "/html")) | |
3707 | (examples (string-append doc "/examples"))) | |
3708 | (mkdir-p html-doc) | |
3709 | (mkdir-p examples) | |
89b5c60e | 3710 | (for-each |
15bfe6d6 | 3711 | (lambda (dir tgt) |
89b5c60e | 3712 | (map (lambda (file) |
96c46210 | 3713 | (install-file file tgt)) |
15bfe6d6 FB |
3714 | (find-files dir ".*"))) |
3715 | (list "docs" "htmldoc" "examples") | |
3716 | (list doc html-doc examples)))) | |
3717 | %standard-phases))) | |
3718 | (home-page "http://pyparsing.wikispaces.com") | |
3719 | (synopsis "Python parsing class library") | |
3720 | (description | |
3721 | "The pyparsing module is an alternative approach to creating and | |
3722 | executing simple grammars, vs. the traditional lex/yacc approach, or the use | |
3723 | of regular expressions. The pyparsing module provides a library of classes | |
3724 | that client code uses to construct the grammar directly in Python code.") | |
bd3fa666 | 3725 | (license license:expat))) |
15bfe6d6 FB |
3726 | |
3727 | (define-public python2-pyparsing | |
3728 | (package-with-python2 python-pyparsing)) | |
3729 | ||
ec00de35 FB |
3730 | (define-public python-numpydoc |
3731 | (package | |
3732 | (name "python-numpydoc") | |
3733 | (version "0.5") | |
3734 | (source | |
3735 | (origin | |
3736 | (method url-fetch) | |
89b5c60e | 3737 | (uri (string-append |
ec00de35 FB |
3738 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
3739 | version ".tar.gz")) | |
3740 | (sha256 | |
3741 | (base32 | |
5e4d8f67 AE |
3742 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
3743 | (modules '((guix build utils))) | |
3744 | (snippet | |
3745 | '(begin | |
3746 | ;; Drop a test requiring matplotlib, which we cannot add as an | |
3747 | ;; input since it would create a circular dependency: Extend the | |
3748 | ;; test for Python 3, where it is already dropped, to Python 2. | |
3749 | (substitute* "numpydoc/tests/test_plot_directive.py" | |
3750 | (("3") "2")))))) | |
ec00de35 | 3751 | (build-system python-build-system) |
fe4a8da4 | 3752 | (propagated-inputs |
213d1745 HG |
3753 | `(("python-sphinx" ,python-sphinx))) |
3754 | (native-inputs | |
3755 | `(("python-nose" ,python-nose))) | |
ec00de35 FB |
3756 | (home-page "https://pypi.python.org/pypi/numpydoc") |
3757 | (synopsis | |
3758 | "Numpy's Sphinx extensions") | |
3759 | (description | |
3760 | "Sphinx extension to support docstrings in Numpy format.") | |
3f641af0 | 3761 | (license license:bsd-2))) |
ec00de35 FB |
3762 | |
3763 | (define-public python2-numpydoc | |
5e4d8f67 | 3764 | (package-with-python2 python-numpydoc)) |
1c65314c | 3765 | |
1e656049 RW |
3766 | (define-public python-numexpr |
3767 | (package | |
3768 | (name "python-numexpr") | |
2ee57340 | 3769 | (version "2.6.1") |
1e656049 RW |
3770 | (source |
3771 | (origin | |
3772 | (method url-fetch) | |
26112c0a | 3773 | (uri (pypi-uri "numexpr" version)) |
1e656049 RW |
3774 | (sha256 |
3775 | (base32 | |
2ee57340 | 3776 | "01lsja72m32z0i5p8rwxbfyzk4mplh72k2a140nwh8vv4wpyfbnv")))) |
1e656049 RW |
3777 | (build-system python-build-system) |
3778 | (arguments `(#:tests? #f)) ; no tests included | |
3779 | (propagated-inputs | |
3780 | `(("python-numpy" ,python-numpy))) | |
3781 | (home-page "https://github.com/pydata/numexpr") | |
3782 | (synopsis "Fast numerical expression evaluator for NumPy") | |
3783 | (description | |
3784 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, | |
3785 | expressions that operate on arrays are accelerated and use less memory than | |
3786 | doing the same calculation in Python. In addition, its multi-threaded | |
3787 | capabilities can make use of all your cores, which may accelerate | |
3788 | computations, most specially if they are not memory-bounded (e.g. those using | |
3789 | transcendental functions).") | |
f210e944 | 3790 | (license license:expat))) |
1e656049 RW |
3791 | |
3792 | (define-public python2-numexpr | |
f210e944 | 3793 | (package-with-python2 python-numexpr)) |
1e656049 | 3794 | |
361d982c MB |
3795 | (define-public python-cycler |
3796 | (package | |
3797 | (name "python-cycler") | |
3798 | (version "0.10.0") | |
3799 | (source (origin | |
3800 | (method url-fetch) | |
3801 | (uri (pypi-uri "cycler" version)) | |
3802 | (sha256 | |
3803 | (base32 | |
3804 | "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd")))) | |
3805 | (build-system python-build-system) | |
3806 | (arguments | |
3807 | ;; XXX: The current version requires 'coveralls' which we don't have. | |
3808 | ;; Enable this for the next release which uses 'python-pytest'. | |
3809 | '(#:tests? #f)) | |
3810 | (propagated-inputs | |
3811 | `(("python-six" ,python-six))) | |
3812 | (home-page "http://matplotlib.org/cycler/") | |
3813 | (synopsis "Composable keyword argument iterator") | |
3814 | (description | |
3815 | "When using @code{matplotlib} and plotting more than one line, it is | |
3816 | common to want to be able to want to be able to cycle over one or more artist | |
3817 | styles; but the plotting logic can quickly become involved. | |
3818 | To address this and enable easy cycling over arbitrary @code{kwargs}, the | |
3819 | @code{Cycler} class was developed.") | |
3820 | (license license:bsd-3))) | |
3821 | ||
3822 | (define-public python2-cycler | |
3823 | (package-with-python2 python-cycler)) | |
3824 | ||
2aa6d3ae TD |
3825 | (define-public python-colorspacious |
3826 | (package | |
3827 | (name "python-colorspacious") | |
3828 | (version "1.1.0") | |
3829 | (source | |
3830 | (origin | |
3831 | (method url-fetch) | |
3832 | (uri (string-append "https://github.com/njsmith/colorspacious/archive/v" | |
3833 | version ".tar.gz")) | |
3834 | (file-name (string-append name "-" version)) | |
3835 | (sha256 | |
3836 | (base32 "1vflh5jm32qb0skza2i8pjacv09w6gq84fqpp2nj77s0rbmzgr4k")))) | |
3837 | (build-system python-build-system) | |
3838 | (propagated-inputs | |
3839 | `(("python-numpy" ,python-numpy))) | |
ba062b3e TD |
3840 | (native-inputs |
3841 | `(("python-nose" ,python-nose))) | |
3842 | (arguments | |
3843 | `(#:phases | |
3844 | (modify-phases %standard-phases | |
3845 | (replace 'check | |
3846 | (lambda _ | |
3847 | (zero? (system* "nosetests" "--all-modules" "-v" "colorspacious"))))))) | |
2aa6d3ae TD |
3848 | (home-page "https://github.com/njsmith/colorspacious") |
3849 | (synopsis "Python library for colorspace conversions") | |
3850 | (description "@code{colorspacious} is a Python library that lets you | |
3851 | convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.") | |
3852 | (license license:expat))) | |
3853 | ||
3854 | (define-public python2-colorspacious | |
3855 | (package-with-python2 python-colorspacious)) | |
3856 | ||
1c65314c FB |
3857 | (define-public python-matplotlib |
3858 | (package | |
3859 | (name "python-matplotlib") | |
4535a93a | 3860 | (version "2.0.0") |
1c65314c FB |
3861 | (source |
3862 | (origin | |
3863 | (method url-fetch) | |
4535a93a TD |
3864 | (uri (string-append |
3865 | "https://github.com/matplotlib/matplotlib/archive/v" version ".tar.gz")) | |
3866 | (file-name (string-append name "-" version ".tar.gz")) | |
1c65314c FB |
3867 | (sha256 |
3868 | (base32 | |
4535a93a | 3869 | "0w3k5m5qb3wsd7yhvmg042xddvligklvcq2visk2c5wnph3hhsln")))) |
1c65314c | 3870 | (build-system python-build-system) |
25f9a068 | 3871 | (propagated-inputs ; the following packages are all needed at run time |
4535a93a TD |
3872 | `(("python-cycler" ,python-cycler) |
3873 | ("python-pyparsing" ,python-pyparsing) | |
25f9a068 FB |
3874 | ("python-pygobject" ,python-pygobject) |
3875 | ("gobject-introspection" ,gobject-introspection) | |
1bbc659f | 3876 | ("python-tkinter" ,python "tk") |
22d7360b | 3877 | ("python-dateutil" ,python-dateutil) |
7ccb71e0 | 3878 | ("python-numpy" ,python-numpy) |
ca33a3ad HG |
3879 | ("python-pillow" ,python-pillow) |
3880 | ("python-pytz" ,python-pytz) | |
3881 | ("python-six" ,python-six) | |
25f9a068 FB |
3882 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
3883 | ;; from 'gtk+') provides the required 'typelib' files used by | |
3884 | ;; 'gobject-introspection'. The location of these files is set with the | |
3885 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this | |
3886 | ;; is done automatically by a 'native-search-path' procedure. However, | |
3887 | ;; at run-time the user must set this variable as follows: | |
3888 | ;; | |
3889 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 | |
25f9a068 FB |
3890 | ("gtk+" ,gtk+) |
3891 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of | |
3892 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' | |
3893 | ;; object. For this reason we need to import both libraries. | |
3894 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo | |
3895 | ("python-pycairo" ,python-pycairo) | |
3896 | ("python-cairocffi" ,python-cairocffi))) | |
1c65314c | 3897 | (inputs |
ca33a3ad | 3898 | `(("libpng" ,libpng) |
1c65314c FB |
3899 | ("imagemagick" ,imagemagick) |
3900 | ("freetype" ,freetype) | |
25f9a068 FB |
3901 | ("cairo" ,cairo) |
3902 | ("glib" ,glib) | |
1c65314c | 3903 | ;; FIXME: Add backends when available. |
1c65314c | 3904 | ;("python-wxpython" ,python-wxpython) |
4535a93a | 3905 | ("python-pyqt" ,python-pyqt) |
1bbc659f FB |
3906 | ("tcl" ,tcl) |
3907 | ("tk" ,tk))) | |
1c65314c FB |
3908 | (native-inputs |
3909 | `(("pkg-config" ,pkg-config) | |
ca33a3ad | 3910 | ("python-nose" ,python-nose) |
4535a93a | 3911 | ("python-mock" ,python-mock))) |
1c65314c FB |
3912 | (arguments |
3913 | `(#:phases | |
42b7009a DM |
3914 | (modify-phases %standard-phases |
3915 | (add-before 'build 'configure-environment | |
3916 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3917 | (let ((cairo (assoc-ref inputs "cairo")) | |
3918 | (gtk+ (assoc-ref inputs "gtk+"))) | |
3919 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' | |
3920 | ;; has not effect. | |
3921 | (setenv "LD_LIBRARY_PATH" | |
3922 | (string-append cairo "/lib:" gtk+ "/lib")) | |
3923 | (setenv "HOME" (getcwd)) | |
3924 | (call-with-output-file "setup.cfg" | |
3925 | (lambda (port) | |
3926 | (format port "[directories]~% | |
1bbc659f | 3927 | basedirlist = ~a,~a~% |
57b7b8cd | 3928 | [rc_options]~% |
1bbc659f | 3929 | backend = TkAgg~%" |
4535a93a TD |
3930 | (assoc-ref inputs "tcl") |
3931 | (assoc-ref inputs "tk"))))) | |
3932 | #t))))) | |
3933 | (home-page "http://matplotlib.org") | |
3934 | (synopsis "2D plotting library for Python") | |
3935 | (description | |
3936 | "Matplotlib is a Python 2D plotting library which produces publication | |
3937 | quality figures in a variety of hardcopy formats and interactive environments | |
3938 | across platforms. Matplotlib can be used in Python scripts, the python and | |
3939 | ipython shell, web application servers, and six graphical user interface | |
3940 | toolkits.") | |
3941 | (license license:psfl) | |
3942 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) | |
3943 | ||
3944 | (define-public python2-matplotlib | |
3945 | (let ((matplotlib (package-with-python2 | |
3946 | (strip-python2-variant python-matplotlib)))) | |
3947 | (package (inherit matplotlib) | |
3948 | ;; Make sure to use special packages for Python 2 instead | |
3949 | ;; of those automatically rewritten by package-with-python2. | |
3950 | (propagated-inputs | |
3951 | `(("python2-pycairo" ,python2-pycairo) | |
3952 | ("python2-functools32" ,python2-functools32) | |
3953 | ("python2-pygobject-2" ,python2-pygobject-2) | |
3954 | ("python2-subprocess32" ,python2-subprocess32) | |
3955 | ("python2-tkinter" ,python-2 "tk") | |
3956 | ,@(fold alist-delete (package-propagated-inputs matplotlib) | |
3957 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) | |
3958 | ||
3959 | (define-public python-matplotlib-documentation | |
3960 | (package | |
3961 | (name "python-matplotlib-documentation") | |
3962 | (version (package-version python-matplotlib)) | |
3963 | (source (package-source python-matplotlib)) | |
3964 | (build-system python-build-system) | |
3965 | (native-inputs | |
3966 | `(("python-matplotlib" ,python-matplotlib) | |
3967 | ("python-colorspacious" ,python-colorspacious) | |
3968 | ("python-sphinx" ,python-sphinx) | |
3969 | ("python-numpydoc" ,python-numpydoc) | |
3970 | ("python-ipython" ,python-ipython) | |
3971 | ("texlive" ,texlive) | |
3972 | ("texinfo" ,texinfo) | |
3973 | ,@(package-native-inputs python-matplotlib))) | |
3974 | (arguments | |
3975 | `(#:tests? #f ; we're only generating documentation | |
3976 | #:phases | |
3977 | (modify-phases %standard-phases | |
3978 | (delete 'build) | |
3979 | (replace 'install | |
42b7009a | 3980 | (lambda* (#:key inputs outputs #:allow-other-keys) |
4535a93a | 3981 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) |
42b7009a DM |
3982 | (doc (string-append data "/doc/" ,name "-" ,version)) |
3983 | (info (string-append data "/info")) | |
3984 | (html (string-append doc "/html"))) | |
3985 | ;; Make installed package available for building the | |
3986 | ;; documentation | |
42b7009a DM |
3987 | (with-directory-excursion "doc" |
3988 | ;; Produce pdf in 'A4' format. | |
3989 | (substitute* (find-files "." "conf\\.py") | |
3990 | (("latex_paper_size = 'letter'") | |
3991 | "latex_paper_size = 'a4'")) | |
3992 | (mkdir-p html) | |
3993 | (mkdir-p info) | |
3994 | ;; The doc recommends to run the 'html' target twice. | |
3995 | (system* "python" "make.py" "html") | |
3996 | (system* "python" "make.py" "html") | |
3997 | (copy-recursively "build/html" html) | |
3998 | (system* "python" "make.py" "latex") | |
3999 | (system* "python" "make.py" "texinfo") | |
18b31516 | 4000 | (symlink (string-append html "/_images") |
42b7009a DM |
4001 | (string-append info "/matplotlib-figures")) |
4002 | (with-directory-excursion "build/texinfo" | |
4003 | (substitute* "matplotlib.texi" | |
4004 | (("@image\\{([^,]*)" all file) | |
4005 | (string-append "@image{matplotlib-figures/" file))) | |
4006 | (symlink (string-append html "/_images") | |
4007 | "./matplotlib-figures") | |
4008 | (system* "makeinfo" "--no-split" | |
4009 | "-o" "matplotlib.info" "matplotlib.texi")) | |
4010 | (copy-file "build/texinfo/matplotlib.info" | |
4011 | (string-append info "/matplotlib.info")) | |
4012 | (copy-file "build/latex/Matplotlib.pdf" | |
4535a93a TD |
4013 | (string-append doc "/Matplotlib.pdf")))) |
4014 | #t))))) | |
4015 | (home-page (package-home-page python-matplotlib)) | |
4016 | (synopsis "Documentation for the python-matplotlib package") | |
4017 | (description (package-description python-matplotlib)) | |
4018 | (license (package-license python-matplotlib)))) | |
1c65314c | 4019 | |
4535a93a TD |
4020 | (define-public python2-matplotlib-documentation |
4021 | (package-with-python2 python-matplotlib-documentation)) | |
94914805 | 4022 | |
0dde6232 RW |
4023 | (define-public python2-pysnptools |
4024 | (package | |
4025 | (name "python2-pysnptools") | |
a800018e | 4026 | (version "0.3.9") |
0dde6232 RW |
4027 | (source |
4028 | (origin | |
4029 | (method url-fetch) | |
3f2e9675 | 4030 | (uri (pypi-uri "pysnptools" version ".zip")) |
0dde6232 RW |
4031 | (sha256 |
4032 | (base32 | |
a800018e | 4033 | "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2")))) |
0dde6232 RW |
4034 | (build-system python-build-system) |
4035 | (arguments | |
4036 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
4037 | (propagated-inputs | |
4038 | `(("python2-numpy" ,python2-numpy) | |
4039 | ("python2-scipy" ,python2-scipy) | |
b72ac1b5 HG |
4040 | ("python2-pandas" ,python2-pandas))) |
4041 | (native-inputs | |
4042 | `(("python2-cython" ,python2-cython))) | |
0dde6232 | 4043 | (native-inputs |
f3b98f4f | 4044 | `(("unzip" ,unzip))) |
0dde6232 RW |
4045 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") |
4046 | (synopsis "Library for reading and manipulating genetic data") | |
4047 | (description | |
4048 | "PySnpTools is a library for reading and manipulating genetic data. It | |
4049 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of | |
4050 | those files. It can also efficiently manipulate ranges of integers using set | |
4051 | operators such as union, intersection, and difference.") | |
3f641af0 | 4052 | (license license:asl2.0))) |
0dde6232 | 4053 | |
c9b1b4f9 RW |
4054 | (define-public python-rpy2 |
4055 | (package | |
4056 | (name "python-rpy2") | |
ec3bcbc7 | 4057 | (version "2.7.6") |
c9b1b4f9 RW |
4058 | (source |
4059 | (origin | |
4060 | (method url-fetch) | |
ec3bcbc7 | 4061 | (uri (pypi-uri "rpy2" version)) |
c9b1b4f9 RW |
4062 | (sha256 |
4063 | (base32 | |
ec3bcbc7 | 4064 | "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) |
c9b1b4f9 | 4065 | (build-system python-build-system) |
444464ec MB |
4066 | (arguments |
4067 | '(#:phases | |
4068 | (modify-phases %standard-phases | |
4069 | (delete 'check) | |
4070 | (add-after 'install 'check | |
4071 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
4072 | ;; It's easier to run tests after install. | |
4073 | ;; Make installed package available for running the tests | |
4074 | (add-installed-pythonpath inputs outputs) | |
4075 | (zero? (system* "python" "-m" "rpy2.tests" "-v"))))))) | |
482d9591 HG |
4076 | (propagated-inputs |
4077 | `(("python-six" ,python-six))) | |
c9b1b4f9 | 4078 | (inputs |
482d9591 | 4079 | `(("readline" ,readline) |
c9b1b4f9 RW |
4080 | ("icu4c" ,icu4c) |
4081 | ("pcre" ,pcre) | |
4082 | ("r" ,r))) | |
4083 | (native-inputs | |
f3b98f4f | 4084 | `(("zlib" ,zlib))) |
c9b1b4f9 RW |
4085 | (home-page "http://rpy.sourceforge.net/") |
4086 | (synopsis "Python interface to the R language") | |
4087 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a | |
4088 | low-level interface to R from Python, a proposed high-level interface, | |
4089 | including wrappers to graphical libraries, as well as R-like structures and | |
4090 | functions.") | |
3f641af0 | 4091 | (license license:gpl3+))) |
c9b1b4f9 RW |
4092 | |
4093 | (define-public python2-rpy2 | |
4094 | (let ((rpy2 (package-with-python2 python-rpy2))) | |
4095 | (package (inherit rpy2) | |
d6abd094 | 4096 | (propagated-inputs |
c9b1b4f9 | 4097 | `(("python2-singledispatch" ,python2-singledispatch) |
d6abd094 | 4098 | ,@(package-propagated-inputs rpy2)))))) |
c9b1b4f9 | 4099 | |
bb986599 FB |
4100 | (define-public python-scipy |
4101 | (package | |
4102 | (name "python-scipy") | |
35093253 | 4103 | (version "0.18.1") |
bb986599 FB |
4104 | (source |
4105 | (origin | |
4106 | (method url-fetch) | |
35093253 TD |
4107 | (uri (string-append "https://github.com/scipy/scipy/archive/v" |
4108 | version ".tar.gz")) | |
4109 | (file-name (string-append name "-" version ".tar.gz")) | |
bb986599 FB |
4110 | (sha256 |
4111 | (base32 | |
35093253 | 4112 | "17slsrfawjp7if6qrlx03zhgp05350ginxx8ddpw9zqx43x905sn")))) |
bb986599 | 4113 | (build-system python-build-system) |
dd86c0d1 | 4114 | (propagated-inputs |
bb986599 FB |
4115 | `(("python-numpy" ,python-numpy) |
4116 | ("python-matplotlib" ,python-matplotlib) | |
dd86c0d1 RW |
4117 | ("python-pyparsing" ,python-pyparsing))) |
4118 | (inputs | |
4119 | `(("lapack" ,lapack) | |
719b01c1 | 4120 | ("openblas" ,openblas))) |
bb986599 | 4121 | (native-inputs |
35093253 TD |
4122 | `(("python-cython" ,python-cython) |
4123 | ("python-nose" ,python-nose) | |
4124 | ("python-sphinx" ,python-sphinx) | |
5248d49e | 4125 | ("python-numpydoc" ,python-numpydoc) |
dd86c0d1 | 4126 | ("gfortran" ,gfortran) |
bb986599 FB |
4127 | ("perl" ,perl))) |
4128 | (outputs '("out" "doc")) | |
4129 | (arguments | |
4130 | `(#:phases | |
16ca6aaa | 4131 | (modify-phases %standard-phases |
16ca6aaa MB |
4132 | (add-before 'build 'configure-openblas |
4133 | (lambda* (#:key inputs #:allow-other-keys) | |
4134 | (call-with-output-file "site.cfg" | |
4135 | (lambda (port) | |
4136 | (format port | |
4137 | "[blas] | |
719b01c1 RW |
4138 | libraries = openblas |
4139 | library_dirs = ~a/lib | |
4140 | include_dirs = ~a/include | |
d548e6aa HG |
4141 | |
4142 | # backslash-n to make emacs happy | |
4143 | \n[atlas] | |
719b01c1 RW |
4144 | library_dirs = ~a/lib |
4145 | atlas_libs = openblas | |
4146 | " | |
16ca6aaa MB |
4147 | (assoc-ref inputs "openblas") |
4148 | (assoc-ref inputs "openblas") | |
4149 | (assoc-ref inputs "openblas")))) | |
db967b64 | 4150 | #t)) |
35093253 TD |
4151 | (add-after 'install 'install-doc |
4152 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4153 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4154 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4155 | (html (string-append doc "/html")) | |
4156 | (pyver ,(string-append "PYVER="))) | |
4157 | ;; Make installed package available for building the | |
4158 | ;; documentation | |
4159 | (add-installed-pythonpath inputs outputs) | |
4160 | (with-directory-excursion "doc" | |
4161 | ;; Fix generation of images for mathematical expressions. | |
4162 | (substitute* (find-files "source" "conf\\.py") | |
4163 | (("pngmath_use_preview = True") | |
4164 | "pngmath_use_preview = False")) | |
4165 | (mkdir-p html) | |
4166 | (system* "make" "html" pyver) | |
4167 | (with-directory-excursion "build/html" | |
4168 | (for-each (lambda (file) | |
4169 | (let* ((dir (dirname file)) | |
4170 | (tgt-dir (string-append html "/" dir))) | |
4171 | (install-file file html))) | |
4172 | (find-files "." ".*"))))) | |
4173 | #t)) | |
4174 | (add-after 'unpack 'fix-tests | |
4175 | (lambda _ | |
4176 | (substitute* "scipy/integrate/tests/test_quadpack.py" | |
4177 | (("libm.so") "libm.so.6")) | |
4178 | #t)) | |
4179 | ;; Tests can only be run after the library has been installed and not | |
4180 | ;; within the source directory. | |
4181 | (delete 'check) | |
4182 | (add-after 'install 'check | |
4183 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4184 | (add-installed-pythonpath inputs outputs) | |
4185 | (with-directory-excursion "/tmp" | |
4186 | (zero? (system* "python" "-c" | |
4187 | "import scipy; scipy.test('full')"))) | |
4188 | #t))))) | |
bb986599 FB |
4189 | (home-page "http://www.scipy.org/") |
4190 | (synopsis "The Scipy library provides efficient numerical routines") | |
4191 | (description "The SciPy library is one of the core packages that make up | |
4192 | the SciPy stack. It provides many user-friendly and efficient numerical | |
4193 | routines such as routines for numerical integration and optimization.") | |
9200fe14 | 4194 | (properties `((python2-variant . ,(delay python2-scipy)))) |
3f641af0 | 4195 | (license license:bsd-3))) |
bb986599 | 4196 | |
764c077b | 4197 | (define-public python2-scipy |
35093253 TD |
4198 | (package-with-python2 |
4199 | (strip-python2-variant python-scipy))) | |
bb986599 | 4200 | |
73acc193 | 4201 | (define-public python-socksipy-branch |
4202 | (package | |
4203 | (name "python-socksipy-branch") | |
4204 | (version "1.01") | |
4205 | (source | |
4206 | (origin | |
4207 | (method url-fetch) | |
4208 | (uri (pypi-uri "SocksiPy-branch" version)) | |
4209 | (sha256 | |
4210 | (base32 | |
4211 | "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) | |
4212 | (build-system python-build-system) | |
4213 | (arguments | |
4214 | `(#:tests? #f)) ; There are no tests | |
4215 | (home-page "https://code.google.com/archive/p/socksipy-branch/") | |
4216 | (synopsis "Python SOCKS module") | |
4217 | (description | |
4218 | "SocksiPy - A Python SOCKS client module. It provides a | |
4219 | socket-like interface that supports connections to any TCP | |
4220 | service through the use of a SOCKS4, SOCKS5 or HTTP proxy. | |
4221 | The original version was developed by Dan Haim, this is a | |
4222 | branch created by Mario Vilas to address some open issues, | |
4223 | as the original project seems to have been abandoned circa 2007.") | |
4224 | (license license:bsd-3))) | |
4225 | ||
4226 | (define-public python2-socksipy-branch | |
4227 | (package-with-python2 python-socksipy-branch)) | |
4228 | ||
94914805 EB |
4229 | (define-public python-sqlalchemy |
4230 | (package | |
4231 | (name "python-sqlalchemy") | |
a4ba286b | 4232 | (version "1.0.12") |
94914805 EB |
4233 | (source |
4234 | (origin | |
4235 | (method url-fetch) | |
4236 | (uri (string-append "https://pypi.python.org/packages/source/S/" | |
4237 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) | |
4238 | (sha256 | |
4239 | (base32 | |
a4ba286b | 4240 | "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6")))) |
94914805 EB |
4241 | (build-system python-build-system) |
4242 | (native-inputs | |
4243 | `(("python-cython" ,python-cython) ;for c extensions | |
4244 | ("python-pytest" ,python-pytest) | |
4245 | ("python-mock" ,python-mock))) ;for tests | |
4246 | (arguments | |
4247 | `(#:phases (alist-replace | |
4248 | 'check | |
4249 | (lambda _ (zero? (system* "py.test"))) | |
4250 | %standard-phases))) | |
4251 | (home-page "http://www.sqlalchemy.org") | |
4252 | (synopsis "Database abstraction library") | |
4253 | (description | |
4254 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that | |
4255 | gives application developers the full power and flexibility of SQL. It | |
4256 | provides a full suite of well known enterprise-level persistence patterns, | |
4257 | designed for efficient and high-performing database access, adapted into a | |
4258 | simple and Pythonic domain language.") | |
3f641af0 | 4259 | (license license:x11))) |
94914805 EB |
4260 | |
4261 | (define-public python2-sqlalchemy | |
4262 | (package-with-python2 python-sqlalchemy)) | |
c937562e | 4263 | |
4a093330 DM |
4264 | (define-public python-pycodestyle |
4265 | (package | |
4266 | (name "python-pycodestyle") | |
4267 | (version "2.0.0") | |
4268 | (source | |
4269 | (origin | |
4270 | (method url-fetch) | |
4271 | (uri (pypi-uri "pycodestyle" version)) | |
4272 | (sha256 | |
4273 | (base32 | |
4274 | "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p")))) | |
4275 | (build-system python-build-system) | |
4276 | (home-page "https://pycodestyle.readthedocs.io/") | |
4277 | (synopsis "Python style guide checker") | |
4278 | (description "@code{pycodestyle} (formerly pep8) is a tool to check | |
4279 | Python code against some of the style conventions in | |
4280 | @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.") | |
f210e944 | 4281 | (license license:expat))) |
4a093330 DM |
4282 | |
4283 | (define-public python2-pycodestyle | |
f210e944 | 4284 | (package-with-python2 python-pycodestyle)) |
b91912c4 DM |
4285 | |
4286 | (define-public python-orderedmultidict | |
4287 | (package | |
4288 | (name "python-orderedmultidict") | |
9e2802cb | 4289 | (version "0.7.11") |
b91912c4 DM |
4290 | (source |
4291 | (origin | |
4292 | (method url-fetch) | |
4293 | (uri (pypi-uri "orderedmultidict" version)) | |
4294 | (sha256 | |
4295 | (base32 | |
9e2802cb | 4296 | "0dls862ibm7qbq4fnvwx0xn1v9hwyzywbff8xjjdr42dd75208yw")))) |
b91912c4 DM |
4297 | (build-system python-build-system) |
4298 | (arguments | |
4299 | `(#:phases | |
4300 | (modify-phases %standard-phases | |
4301 | (add-after 'unpack 'fix-tests | |
4302 | (lambda _ | |
4303 | ;; The package uses nosetest for running the tests. | |
4304 | ;; Adding this initfile allows to run the test suite | |
4305 | ;; without requiring nosetest. | |
4306 | (zero? (system* "touch" "tests/__init__.py"))))))) | |
4307 | (propagated-inputs | |
4308 | `(("python-six" ,python-six))) | |
4309 | (native-inputs | |
4310 | `(("python-pycodestyle" ,python-pycodestyle))) | |
4311 | (home-page "https://github.com/gruns/orderedmultidict") | |
4312 | (synopsis "Python Ordered Multivalue Dictionary - omdict") | |
4313 | (description "This package contains a library for ordered multivalue | |
4314 | dictionaries. A multivalue dictionary is a dictionary that can store | |
4315 | multiple values for the same key. An ordered multivalue dictionary is a | |
4316 | multivalue dictionary that retains the order of insertions and deletions.") | |
f210e944 | 4317 | (license license:unlicense))) |
b91912c4 DM |
4318 | |
4319 | (define-public python2-orderedmultidict | |
f210e944 | 4320 | (package-with-python2 python-orderedmultidict)) |
9dede065 DM |
4321 | |
4322 | (define-public python-furl | |
4323 | (package | |
4324 | (name "python-furl") | |
4325 | (version "0.5.6") | |
4326 | (source | |
4327 | (origin | |
4328 | (method url-fetch) | |
4329 | (uri (pypi-uri "furl" version)) | |
4330 | (sha256 | |
4331 | (base32 | |
4332 | "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc")))) | |
4333 | (build-system python-build-system) | |
4334 | (propagated-inputs | |
4335 | `(("python-six" ,python-six) | |
4336 | ("python-orderedmultidict" ,python-orderedmultidict))) | |
4337 | (native-inputs | |
4338 | `(("python-pycodestyle" ,python-pycodestyle))) | |
4339 | (home-page "https://github.com/gruns/furl") | |
4340 | (synopsis "URL manipulation in Python") | |
4341 | (description "Furl provides an easy-to-use alternative to the | |
4342 | @code{urllib} and @code{urlparse} modules for manipulating URLs.") | |
f210e944 | 4343 | (license license:unlicense))) |
9dede065 DM |
4344 | |
4345 | (define-public python2-furl | |
f210e944 | 4346 | (package-with-python2 python-furl)) |
462bf271 DM |
4347 | |
4348 | (define-public python-flask-babel | |
4349 | (package | |
4350 | (name "python-flask-babel") | |
4351 | (version "0.11.1") | |
4352 | (source | |
4353 | (origin | |
4354 | (method url-fetch) | |
4355 | (uri (pypi-uri "Flask-Babel" version)) | |
4356 | (sha256 | |
4357 | (base32 | |
4358 | "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj")))) | |
4359 | (build-system python-build-system) | |
4360 | (propagated-inputs | |
4361 | `(("python-flask" ,python-flask) | |
4362 | ("python-babel" ,python-babel) | |
4363 | ("python-jinja2" ,python-jinja2) | |
4364 | ("python-pytz" ,python-pytz))) | |
4365 | (home-page "https://github.com/python-babel/flask-babel") | |
4366 | (synopsis "Add i18n/l10n support to Flask applications") | |
4367 | (description "This package implements internationalization and localization | |
4368 | support for Flask. This is based on the Python babel module as well as pytz - | |
4369 | both of which are installed automatically if you install this library.") | |
f210e944 | 4370 | (license license:bsd-3))) |
462bf271 DM |
4371 | |
4372 | (define-public python2-flask-babel | |
f210e944 | 4373 | (package-with-python2 python-flask-babel)) |
4a093330 | 4374 | |
de2966cf EF |
4375 | (define-public python-sqlalchemy-utils |
4376 | (package | |
4377 | (name "python-sqlalchemy-utils") | |
bb4b1706 | 4378 | (version "0.32.11") |
de2966cf EF |
4379 | (source |
4380 | (origin | |
4381 | (method url-fetch) | |
4382 | (uri (pypi-uri "SQLAlchemy-Utils" version)) | |
4383 | (sha256 | |
4384 | (base32 | |
bb4b1706 | 4385 | "1wghyvk73cmq3iqyg3fczw128fv2pan2v76m0xg1bw05h8fhvnk3")))) |
de2966cf | 4386 | (build-system python-build-system) |
35d56b7b MB |
4387 | (arguments |
4388 | '(#:tests? #f)) ; FIXME: Many tests require a running database server. | |
4389 | ;; #:phases | |
4390 | ;; (modify-phases %standard-phases | |
4391 | ;; (replace 'check | |
4392 | ;; (lambda _ | |
4393 | ;; (zero? (system* "py.test" "sqlalchemy_utils" "tests"))))) | |
c22b4f87 | 4394 | (propagated-inputs |
de2966cf EF |
4395 | `(("python-six" ,python-six) |
4396 | ("python-sqlalchemy" ,python-sqlalchemy))) | |
26d07efb | 4397 | (native-inputs |
22d7360b | 4398 | `(("python-dateutil" ,python-dateutil) |
35d56b7b MB |
4399 | ("python-flexmock" ,python-flexmock) |
4400 | ("python-psycopg2" ,python-psycopg2) | |
4401 | ("python-pytest" ,python-pytest) | |
4402 | ("python-pytz" ,python-pytz))) | |
de2966cf EF |
4403 | (home-page "https://github.com/kvesteri/sqlalchemy-utils") |
4404 | (synopsis "Various utility functions for SQLAlchemy") | |
4405 | (description | |
4406 | "SQLAlchemy-utils provides various utility functions and custom data types | |
6a686b18 DM |
4407 | for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python. |
4408 | ||
4409 | You might also want to install the following optional dependencies: | |
4410 | @enumerate | |
4411 | @item @code{python-passlib} | |
4412 | @item @code{python-babel} | |
4413 | @item @code{python-cryptography} | |
4414 | @item @code{python-pytz} | |
4415 | @item @code{python-psycopg2} | |
4416 | @item @code{python-furl} | |
4417 | @item @code{python-flask-babel} | |
4418 | @end enumerate | |
4419 | ") | |
de2966cf EF |
4420 | (license license:bsd-3))) |
4421 | ||
4422 | (define-public python2-sqlalchemy-utils | |
f210e944 | 4423 | (package-with-python2 python-sqlalchemy-utils)) |
de2966cf | 4424 | |
af5a4602 CAW |
4425 | (define-public python-alembic |
4426 | (package | |
4427 | (name "python-alembic") | |
4418990d | 4428 | (version "0.8.10") |
af5a4602 CAW |
4429 | (source |
4430 | (origin | |
4431 | (method url-fetch) | |
4432 | (uri (pypi-uri "alembic" version)) | |
4433 | (sha256 | |
4434 | (base32 | |
4418990d | 4435 | "06br9sfqypnjlal6fsbnky3zb0askwcn3diz8k3kwa0qcblm0fqf")))) |
af5a4602 CAW |
4436 | (build-system python-build-system) |
4437 | (native-inputs | |
4438 | `(("python-mock" ,python-mock) | |
4439 | ("python-pytest-cov" ,python-pytest-cov))) | |
4440 | (propagated-inputs | |
4441 | `(("python-sqlalchemy" ,python-sqlalchemy) | |
4442 | ("python-mako" ,python-mako) | |
4443 | ("python-editor" ,python-editor))) | |
4444 | (home-page "http://bitbucket.org/zzzeek/alembic") | |
4445 | (synopsis | |
4446 | "Database migration tool for SQLAlchemy") | |
4447 | (description | |
4448 | "Alembic is a lightweight database migration tool for usage with the | |
4449 | SQLAlchemy Database Toolkit for Python.") | |
f210e944 | 4450 | (license license:expat))) |
af5a4602 CAW |
4451 | |
4452 | (define-public python2-alembic | |
f210e944 | 4453 | (package-with-python2 python-alembic)) |
af5a4602 | 4454 | |
138adbbe TD |
4455 | (define-public python-autopep8 |
4456 | (package | |
4457 | (name "python-autopep8") | |
4458 | (version "1.2.4") | |
4459 | (source | |
4460 | (origin | |
4461 | (method url-fetch) | |
4462 | (uri (pypi-uri "autopep8" version)) | |
4463 | (sha256 | |
4464 | (base32 | |
4465 | "18parm383lfn42a00wklv3qf20p4v277f1x3cn58x019dqk1xqrq")))) | |
4466 | (build-system python-build-system) | |
4467 | (propagated-inputs | |
4468 | `(("python-pep8" ,python-pep8))) | |
4469 | (home-page "https://github.com/hhatto/autopep8") | |
4470 | (synopsis "Format Python code according to the PEP 8 style guide") | |
4471 | (description | |
4472 | "@code{autopep8} automatically formats Python code to conform to | |
4473 | the PEP 8 style guide. It uses the pycodestyle utility to determine | |
4474 | what parts of the code needs to be formatted. @code{autopep8} is | |
4475 | capable of fixing most of the formatting issues that can be reported | |
4476 | by pycodestyle.") | |
4477 | (license (license:non-copyleft | |
4478 | "https://github.com/hhatto/autopep8/blob/master/LICENSE")))) | |
4479 | ||
4480 | (define-public python2-autopep8 | |
4481 | (package-with-python2 python-autopep8)) | |
4482 | ||
1671c07c EB |
4483 | (define-public python-distutils-extra |
4484 | (package | |
4485 | (name "python-distutils-extra") | |
4486 | (version "2.38") | |
4487 | (source | |
4488 | (origin | |
4489 | (method url-fetch) | |
4490 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" | |
4491 | version "/+download/python-distutils-extra-" | |
4492 | version ".tar.gz")) | |
4493 | (sha256 | |
4494 | (base32 | |
4495 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) | |
4496 | (build-system python-build-system) | |
1671c07c EB |
4497 | (home-page "https://launchpad.net/python-distutils-extra/") |
4498 | (synopsis "Enhancements to Python's distutils") | |
4499 | (description | |
4500 | "The python-distutils-extra module enables you to easily integrate | |
4501 | gettext support, themed icons, and scrollkeeper-based documentation into | |
4502 | Python's distutils.") | |
3f641af0 | 4503 | (license license:gpl2))) |
1671c07c EB |
4504 | |
4505 | (define-public python2-distutils-extra | |
4506 | (package-with-python2 python-distutils-extra)) | |
ea5456c8 EB |
4507 | |
4508 | (define-public python2-elib.intl | |
4509 | (package | |
4510 | (name "python2-elib.intl") | |
4511 | (version "0.0.3") | |
4512 | (source | |
4513 | (origin | |
4514 | ;; This project doesn't tag releases or publish tarballs, so we take | |
4515 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. | |
4516 | (method git-fetch) | |
4517 | (uri (git-reference | |
4518 | (url "https://github.com/dieterv/elib.intl.git") | |
4519 | (commit "d09997cfef"))) | |
4520 | (sha256 | |
4521 | (base32 | |
4522 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) | |
4523 | (build-system python-build-system) | |
ea5456c8 EB |
4524 | (arguments |
4525 | ;; incompatible with Python 3 (exception syntax) | |
4526 | `(#:python ,python-2 | |
b41a05ce | 4527 | #:tests? #f)) |
ea5456c8 EB |
4528 | (home-page "https://github.com/dieterv/elib.intl") |
4529 | (synopsis "Enhanced internationalization for Python") | |
4530 | (description | |
4531 | "The elib.intl module provides enhanced internationalization (I18N) | |
4532 | services for your Python modules and applications.") | |
3f641af0 | 4533 | (license license:lgpl3+))) |
ea5456c8 | 4534 | |
c937562e EB |
4535 | (define-public python-pillow |
4536 | (package | |
4537 | (name "python-pillow") | |
aba5182c | 4538 | (version "3.3.3") |
c937562e EB |
4539 | (source |
4540 | (origin | |
4541 | (method url-fetch) | |
f1d9231d | 4542 | (uri (pypi-uri "Pillow" version)) |
c937562e EB |
4543 | (sha256 |
4544 | (base32 | |
aba5182c | 4545 | "0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj")))) |
c937562e EB |
4546 | (build-system python-build-system) |
4547 | (native-inputs | |
f3b98f4f | 4548 | `(("python-nose" ,python-nose))) |
c937562e | 4549 | (inputs |
5ff408d9 SB |
4550 | `(("freetype" ,freetype) |
4551 | ("lcms" ,lcms) | |
c937562e EB |
4552 | ("zlib" ,zlib) |
4553 | ("libjpeg" ,libjpeg) | |
4554 | ("openjpeg" ,openjpeg) | |
5ff408d9 SB |
4555 | ("libtiff" ,libtiff) |
4556 | ("libwebp" ,libwebp))) | |
c937562e | 4557 | (arguments |
e5358a6b | 4558 | `(#:phases (modify-phases %standard-phases |
e5358a6b LC |
4559 | (add-after |
4560 | 'install 'check-installed | |
6151120a | 4561 | (lambda* (#:key outputs inputs #:allow-other-keys) |
e5358a6b LC |
4562 | (begin |
4563 | (setenv "HOME" (getcwd)) | |
6151120a HG |
4564 | ;; Make installed package available for running the |
4565 | ;; tests | |
4566 | (add-installed-pythonpath inputs outputs) | |
e5358a6b LC |
4567 | (and (zero? (system* "python" "selftest.py" |
4568 | "--installed")) | |
4569 | (zero? (system* "python" "test-installed.py")))))) | |
4570 | (delete 'check)))) | |
c937562e EB |
4571 | (home-page "https://pypi.python.org/pypi/Pillow") |
4572 | (synopsis "Fork of the Python Imaging Library") | |
4573 | (description | |
4574 | "The Python Imaging Library adds image processing capabilities to your | |
4575 | Python interpreter. This library provides extensive file format support, an | |
4576 | efficient internal representation, and fairly powerful image processing | |
4577 | capabilities. The core image library is designed for fast access to data | |
4578 | stored in a few basic pixel formats. It should provide a solid foundation for | |
4579 | a general image processing tool.") | |
3f641af0 | 4580 | (license (license:x11-style |
c937562e EB |
4581 | "http://www.pythonware.com/products/pil/license.htm" |
4582 | "The PIL Software License")))) | |
4583 | ||
4584 | (define-public python2-pillow | |
4585 | (package-with-python2 python-pillow)) | |
bb986599 | 4586 | |
a415f036 FB |
4587 | (define-public python-pycparser |
4588 | (package | |
4589 | (name "python-pycparser") | |
5043b20d | 4590 | (version "2.17") |
a415f036 FB |
4591 | (source |
4592 | (origin | |
4593 | (method url-fetch) | |
38eb6919 | 4594 | (uri (pypi-uri "pycparser" version)) |
a415f036 FB |
4595 | (sha256 |
4596 | (base32 | |
5043b20d | 4597 | "1dkkjri0miidqb1zcqhqljfa34fcy9k5akasgwsv6k622zlk3b0a")))) |
a415f036 FB |
4598 | (outputs '("out" "doc")) |
4599 | (build-system python-build-system) | |
4600 | (native-inputs | |
f3b98f4f | 4601 | `(("pkg-config" ,pkg-config))) |
a415f036 | 4602 | (arguments |
89b5c60e | 4603 | `(#:phases |
819939cb TGR |
4604 | (modify-phases %standard-phases |
4605 | (replace 'check | |
4606 | (lambda _ | |
4607 | (with-directory-excursion "tests" | |
4608 | (zero? (system* "python" "all_tests.py"))))) | |
4609 | (add-after 'install 'install-doc | |
4610 | (lambda* (#:key outputs #:allow-other-keys) | |
4611 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4612 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4613 | (examples (string-append doc "/examples"))) | |
4614 | (mkdir-p examples) | |
4615 | (for-each (lambda (file) | |
4616 | (copy-file (string-append "." file) | |
4617 | (string-append doc file))) | |
4618 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
4619 | (copy-recursively "examples" examples))))))) | |
a415f036 FB |
4620 | (home-page "https://github.com/eliben/pycparser") |
4621 | (synopsis "C parser in Python") | |
4622 | (description | |
4623 | "Pycparser is a complete parser of the C language, written in pure Python | |
4624 | using the PLY parsing library. It parses C code into an AST and can serve as | |
4625 | a front-end for C compilers or analysis tools.") | |
3f641af0 | 4626 | (license license:bsd-3))) |
a415f036 FB |
4627 | |
4628 | (define-public python2-pycparser | |
4629 | (package-with-python2 python-pycparser)) | |
57c3f716 FB |
4630 | |
4631 | (define-public python-cffi | |
4632 | (package | |
4633 | (name "python-cffi") | |
2d3a437c | 4634 | (version "1.4.2") |
57c3f716 FB |
4635 | (source |
4636 | (origin | |
4637 | (method url-fetch) | |
2d3a437c | 4638 | (uri (pypi-uri "cffi" version)) |
89b5c60e | 4639 | (sha256 |
2d3a437c | 4640 | (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) |
57c3f716 FB |
4641 | (build-system python-build-system) |
4642 | (outputs '("out" "doc")) | |
4643 | (inputs | |
4644 | `(("libffi" ,libffi))) | |
4645 | (propagated-inputs ; required at run-time | |
4646 | `(("python-pycparser" ,python-pycparser))) | |
4647 | (native-inputs | |
4648 | `(("pkg-config" ,pkg-config) | |
4649 | ("python-sphinx" ,python-sphinx) | |
f3b98f4f | 4650 | ("python-pytest" ,python-pytest))) |
57c3f716 | 4651 | (arguments |
4179f952 | 4652 | `(#:phases |
57c3f716 FB |
4653 | (alist-cons-after |
4654 | 'install 'install-doc | |
4655 | (lambda* (#:key outputs #:allow-other-keys) | |
4656 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4657 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4658 | (html (string-append doc "/html"))) | |
4659 | (with-directory-excursion "doc" | |
4660 | (system* "make" "html") | |
4661 | (mkdir-p html) | |
4662 | (copy-recursively "build/html" html)) | |
4663 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) | |
4664 | %standard-phases))) | |
4665 | (home-page "http://cffi.readthedocs.org") | |
4666 | (synopsis "Foreign function interface for Python") | |
4667 | (description | |
4668 | "Foreign Function Interface for Python calling C code.") | |
bd3fa666 | 4669 | (license license:expat))) |
57c3f716 FB |
4670 | |
4671 | (define-public python2-cffi | |
4672 | (package-with-python2 python-cffi)) | |
6fa14469 FB |
4673 | |
4674 | (define-public python-xcffib | |
4675 | (package | |
4676 | (name "python-xcffib") | |
4677 | (version "0.1.9") | |
4678 | (source | |
4679 | (origin | |
4680 | (method url-fetch) | |
4681 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
4682 | "xcffib/xcffib-" version ".tar.gz")) | |
4683 | (sha256 | |
4684 | (base32 | |
4685 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) | |
4686 | (build-system python-build-system) | |
4687 | (inputs | |
482d9591 | 4688 | `(("libxcb" ,libxcb))) |
6fa14469 | 4689 | (propagated-inputs |
482d9591 HG |
4690 | `(("python-cffi" ,python-cffi) ; used at run time |
4691 | ("python-six" ,python-six))) | |
6fa14469 | 4692 | (arguments |
e2816ac7 MB |
4693 | `(;; FIXME: Tests cannot load libxcb.so.1 |
4694 | #:tests? #f | |
4695 | #:phases | |
c8cd850c MB |
4696 | (modify-phases %standard-phases |
4697 | (add-after 'install 'install-doc | |
4698 | (lambda* (#:key outputs #:allow-other-keys) | |
4699 | (let ((doc (string-append (assoc-ref outputs "out") "/share" | |
4700 | "/doc/" ,name "-" ,version))) | |
4701 | (mkdir-p doc) | |
4702 | (copy-file "README.md" | |
4703 | (string-append doc "/README.md")) | |
4704 | #t)))))) | |
6fa14469 FB |
4705 | (home-page "https://github.com/tych0/xcffib") |
4706 | (synopsis "XCB Python bindings") | |
4707 | (description | |
4708 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds | |
4709 | support for Python 3 and PyPy. It is based on cffi.") | |
bd3fa666 | 4710 | (license license:expat))) |
6fa14469 FB |
4711 | |
4712 | (define-public python2-xcffib | |
4713 | (package-with-python2 python-xcffib)) | |
4714 | ||
9e099723 FB |
4715 | (define-public python-cairocffi |
4716 | (package | |
4717 | (name "python-cairocffi") | |
4718 | (version "0.6") | |
4719 | (source | |
4720 | (origin | |
4721 | (method url-fetch) | |
4722 | ;; The archive on pypi is missing the 'utils' directory! | |
4723 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" | |
4724 | version ".tar.gz")) | |
f586c877 | 4725 | (file-name (string-append name "-" version ".tar.gz")) |
9e099723 FB |
4726 | (sha256 |
4727 | (base32 | |
4728 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) | |
4729 | (build-system python-build-system) | |
4730 | (outputs '("out" "doc")) | |
4731 | (inputs | |
4732 | `(("gdk-pixbuf" ,gdk-pixbuf) | |
4733 | ("cairo" ,cairo))) | |
4734 | (native-inputs | |
4735 | `(("pkg-config" ,pkg-config) | |
4736 | ("python-sphinx" ,python-sphinx) | |
f3b98f4f | 4737 | ("python-docutils" ,python-docutils))) |
9e099723 FB |
4738 | (propagated-inputs |
4739 | `(("python-xcffib" ,python-xcffib))) ; used at run time | |
4740 | (arguments | |
a792e1aa MB |
4741 | `(;; FIXME: Tests cannot find 'libcairo.so.2'. |
4742 | #:tests? #f | |
4743 | #:phases | |
6734c7ba MB |
4744 | (modify-phases %standard-phases |
4745 | (add-after 'install 'install-doc | |
4746 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4747 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4748 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4749 | (html (string-append doc "/html"))) | |
4750 | (setenv "LD_LIBRARY_PATH" | |
4751 | (string-append (assoc-ref inputs "cairo") "/lib" ":" | |
4752 | (assoc-ref inputs "gdk-pixbuf") "/lib")) | |
4753 | (setenv "LANG" "en_US.UTF-8") | |
4754 | (mkdir-p html) | |
4755 | (for-each (lambda (file) | |
4756 | (copy-file (string-append "." file) | |
4757 | (string-append doc file))) | |
4758 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
4759 | (system* "python" "setup.py" "build_sphinx") | |
4760 | (copy-recursively "docs/_build/html" html) | |
4761 | #t)))))) | |
9e099723 FB |
4762 | (home-page "https://github.com/SimonSapin/cairocffi") |
4763 | (synopsis "Python bindings and object-oriented API for Cairo") | |
4764 | (description | |
4765 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of | |
4766 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector | |
4767 | graphics library with support for multiple backends including image buffers, | |
4768 | PNG, PostScript, PDF, and SVG file output.") | |
3f641af0 | 4769 | (license license:bsd-3))) |
9e099723 FB |
4770 | |
4771 | (define-public python2-cairocffi | |
4772 | (package-with-python2 python-cairocffi)) | |
4773 | ||
3cff95cb RW |
4774 | (define-public python-decorator |
4775 | (package | |
4776 | (name "python-decorator") | |
d79fa7da | 4777 | (version "4.0.10") |
3cff95cb RW |
4778 | (source |
4779 | (origin | |
4780 | (method url-fetch) | |
e21338be | 4781 | (uri (pypi-uri "decorator" version)) |
3cff95cb | 4782 | (sha256 |
d79fa7da | 4783 | (base32 "0w7hg59hlpq74jpyja4yfryap0ccjvchgpkfp20rhj9krgnrhvlw")))) |
3cff95cb RW |
4784 | (build-system python-build-system) |
4785 | (arguments '(#:tests? #f)) ; no test target | |
eb6e2e81 | 4786 | (home-page "https://pypi.python.org/pypi/decorator/") |
3cff95cb RW |
4787 | (synopsis "Python module to simplify usage of decorators") |
4788 | (description | |
4789 | "The aim of the decorator module is to simplify the usage of decorators | |
4790 | for the average programmer, and to popularize decorators usage giving examples | |
4791 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, | |
4792 | etc. The core of this module is a decorator factory.") | |
4793 | (license license:expat))) | |
4794 | ||
4795 | (define-public python2-decorator | |
4796 | (package-with-python2 python-decorator)) | |
4797 | ||
2c0499ad RW |
4798 | (define-public python-drmaa |
4799 | (package | |
4800 | (name "python-drmaa") | |
4801 | (version "0.7.6") | |
4802 | (source | |
4803 | (origin | |
4804 | (method url-fetch) | |
4805 | (uri (string-append | |
4806 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" | |
4807 | version ".tar.gz")) | |
4808 | (sha256 | |
4809 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) | |
4810 | (build-system python-build-system) | |
4811 | ;; The test suite requires libdrmaa which is provided by the cluster | |
4812 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH | |
4813 | ;; should be set to the path of the libdrmaa library. | |
4814 | (arguments '(#:tests? #f)) | |
4815 | (native-inputs | |
f3b98f4f | 4816 | `(("python-nose" ,python-nose))) |
2c0499ad RW |
4817 | (home-page "https://pypi.python.org/pypi/drmaa") |
4818 | (synopsis "Python bindings for the DRMAA library") | |
4819 | (description | |
4820 | "A Python package for Distributed Resource Management (DRM) job | |
4821 | submission and control. This package is an implementation of the DRMAA 1.0 | |
4822 | Python language binding specification.") | |
3f641af0 | 4823 | (license license:bsd-3))) |
2c0499ad RW |
4824 | |
4825 | (define-public python2-drmaa | |
4826 | (package-with-python2 python-drmaa)) | |
4827 | ||
d05c6da0 RW |
4828 | (define-public python-gridmap |
4829 | (package | |
4830 | (name "python-gridmap") | |
4831 | (version "0.13.0") | |
4832 | (source | |
4833 | (origin | |
4834 | (method url-fetch) | |
4835 | (uri (string-append | |
4836 | "https://github.com/pygridtools/gridmap/archive/v" | |
4837 | version ".tar.gz")) | |
4838 | (file-name (string-append name "-" version ".tar.gz")) | |
4839 | (sha256 | |
4840 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) | |
4841 | (build-system python-build-system) | |
ad348f9f MB |
4842 | (arguments |
4843 | '(#:tests? #f)) ; FIXME: Requires python-cherrypy. | |
f22efa01 | 4844 | (propagated-inputs |
d05c6da0 RW |
4845 | `(("python-psutil" ,python-psutil) |
4846 | ("python-drmaa" ,python-drmaa) | |
4847 | ("python-pyzmq" ,python-pyzmq))) | |
d05c6da0 RW |
4848 | (home-page "https://github.com/pygridtools/gridmap") |
4849 | (synopsis "Create jobs on a cluster directly from Python") | |
4850 | (description | |
4851 | "Gridmap is a Python package to allow you to easily create jobs on the | |
4852 | cluster directly from Python. You can directly map Python functions onto the | |
4853 | cluster without needing to write any wrapper code yourself.") | |
3f641af0 | 4854 | (license license:gpl3+))) |
d05c6da0 RW |
4855 | |
4856 | (define-public python2-gridmap | |
4857 | (package-with-python2 python-gridmap)) | |
4858 | ||
cb6d5c54 RW |
4859 | (define-public python-pexpect |
4860 | (package | |
4861 | (name "python-pexpect") | |
ed118043 | 4862 | (version "4.2.1") |
cb6d5c54 RW |
4863 | (source |
4864 | (origin | |
4865 | (method url-fetch) | |
ed118043 | 4866 | (uri (pypi-uri "pexpect" version)) |
cb6d5c54 | 4867 | (sha256 |
ed118043 | 4868 | (base32 "14ls7k99pwvl21zqv65kzrhccv50j89m5ij1hf0slmsvlxjj84rx")))) |
cb6d5c54 RW |
4869 | (build-system python-build-system) |
4870 | (arguments | |
4871 | `(#:phases | |
4872 | (modify-phases %standard-phases | |
ed118043 MB |
4873 | (add-before 'check 'prepare-tests |
4874 | (lambda _ | |
4875 | (substitute* (find-files "tests") | |
4876 | (("/bin/ls") (which "ls")) | |
4877 | (("/bin/echo") (which "echo")) | |
4878 | (("/bin/which") (which "which")) | |
4879 | ;; Many tests try to use the /bin directory which | |
4880 | ;; is not present in the build environment. | |
4881 | ;; Use one that's non-empty and unlikely to change. | |
4882 | (("/bin'") "/dev'")) | |
4883 | ;; XXX: Socket connection test gets "Connection reset by peer". | |
4884 | ;; Why does it not work? Delete for now. | |
4885 | (delete-file "tests/test_socket.py") | |
4886 | #t)) | |
cb6d5c54 RW |
4887 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
4888 | (native-inputs | |
ed118043 MB |
4889 | `(("python-nose" ,python-nose) |
4890 | ("python-pytest" ,python-pytest) | |
4891 | ("man-db" ,man-db) | |
4892 | ("which" ,which))) | |
4893 | (propagated-inputs | |
4894 | `(("python-ptyprocess" ,python-ptyprocess))) | |
cb6d5c54 RW |
4895 | (home-page "http://pexpect.readthedocs.org/") |
4896 | (synopsis "Controlling interactive console applications") | |
4897 | (description | |
4898 | "Pexpect is a pure Python module for spawning child applications; | |
4899 | controlling them; and responding to expected patterns in their output. | |
4900 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a | |
4901 | child application and control it as if a human were typing commands.") | |
3f641af0 | 4902 | (license license:isc))) |
cb6d5c54 RW |
4903 | |
4904 | (define-public python2-pexpect | |
4905 | (package-with-python2 python-pexpect)) | |
4906 | ||
229ad120 RW |
4907 | (define-public python-setuptools-scm |
4908 | (package | |
4909 | (name "python-setuptools-scm") | |
5b1f31ff | 4910 | (version "1.15.0") |
229ad120 RW |
4911 | (source (origin |
4912 | (method url-fetch) | |
383af6b0 | 4913 | (uri (pypi-uri "setuptools_scm" version)) |
229ad120 RW |
4914 | (sha256 |
4915 | (base32 | |
5b1f31ff | 4916 | "0bwyc5markib0i7i2qlyhdzxhiywzxbkfiapldma8m91m82jvwfs")))) |
229ad120 RW |
4917 | (build-system python-build-system) |
4918 | (home-page "https://github.com/pypa/setuptools_scm/") | |
4919 | (synopsis "Manage Python package versions in SCM metadata") | |
4920 | (description | |
383af6b0 | 4921 | "Setuptools_scm handles managing your Python package versions in |
229ad120 RW |
4922 | @dfn{software configuration management} (SCM) metadata instead of declaring |
4923 | them as the version argument or in a SCM managed file.") | |
4924 | (license license:expat))) | |
4925 | ||
4926 | (define-public python2-setuptools-scm | |
4927 | (package-with-python2 python-setuptools-scm)) | |
4928 | ||
b74270ee RW |
4929 | (define-public python-pathpy |
4930 | (package | |
4931 | (name "python-pathpy") | |
4932 | (version "8.1.1") | |
4933 | (source | |
4934 | (origin | |
4935 | (method url-fetch) | |
4936 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4937 | "path.py/path.py-" version ".tar.gz")) | |
4938 | (sha256 | |
4939 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) | |
2887700e | 4940 | (outputs '("out" "doc")) |
b74270ee RW |
4941 | (build-system python-build-system) |
4942 | (propagated-inputs | |
4943 | `(("python-appdirs" ,python-appdirs))) | |
4944 | (native-inputs | |
f3b98f4f | 4945 | `(("python-setuptools-scm" ,python-setuptools-scm) |
2887700e HG |
4946 | ("python-sphinx" ,python-sphinx) |
4947 | ("python-rst.linker" ,python-rst.linker) | |
b74270ee RW |
4948 | ("python-pytest" ,python-pytest) |
4949 | ("python-pytest-runner" ,python-pytest-runner))) | |
2887700e HG |
4950 | (arguments |
4951 | `(#:phases | |
4952 | (modify-phases %standard-phases | |
4953 | (add-after 'build 'build-doc | |
4954 | (lambda _ | |
4955 | (setenv "LANG" "en_US.UTF-8") | |
4956 | (zero? (system* "python" "setup.py" "build_sphinx")))) | |
4957 | (add-after 'install 'install-doc | |
4958 | (lambda* (#:key outputs #:allow-other-keys) | |
4959 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4960 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4961 | (html (string-append doc "/html"))) | |
4962 | (mkdir-p html) | |
4963 | (for-each (lambda (file) | |
4964 | (copy-file file (string-append doc "/" file))) | |
4965 | '("README.rst" "CHANGES.rst")) | |
4966 | (copy-recursively "build/sphinx/html" html))))))) | |
b74270ee RW |
4967 | (home-page "http://github.com/jaraco/path.py") |
4968 | (synopsis "Python module wrapper for built-in os.path") | |
4969 | (description | |
4970 | "@code{path.py} implements path objects as first-class entities, allowing | |
4971 | common operations on files to be invoked on those path objects directly.") | |
4972 | (license license:expat))) | |
4973 | ||
4974 | (define-public python2-pathpy | |
4975 | (package-with-python2 python-pathpy)) | |
4976 | ||
0d34e01b RW |
4977 | (define-public python-pickleshare |
4978 | (package | |
4979 | (name "python-pickleshare") | |
4980 | (version "0.5") | |
4981 | (source | |
4982 | (origin | |
4983 | (method url-fetch) | |
4984 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4985 | "pickleshare/pickleshare-" version ".tar.gz")) | |
4986 | (sha256 | |
4987 | (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0")))) | |
4988 | (build-system python-build-system) | |
4989 | (propagated-inputs | |
4990 | `(("python-pathpy" ,python-pathpy))) | |
4991 | (home-page "https://github.com/vivainio/pickleshare") | |
4992 | (synopsis "Tiny key value database with concurrency support") | |
4993 | (description | |
4994 | "PickleShare is a small ‘shelve’-like datastore with concurrency support. | |
4995 | Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike | |
4996 | shelve, many processes can access the database simultaneously. Changing a | |
4997 | value in database is immediately visible to other processes accessing the same | |
4998 | database. Concurrency is possible because the values are stored in separate | |
4999 | files. Hence the “database” is a directory where all files are governed by | |
5000 | PickleShare.") | |
5001 | (license license:expat))) | |
5002 | ||
5003 | (define-public python2-pickleshare | |
5004 | (package-with-python2 python-pickleshare)) | |
5005 | ||
cd6e5189 RW |
5006 | (define-public python-simplegeneric |
5007 | (package | |
5008 | (name "python-simplegeneric") | |
5009 | (version "0.8.1") | |
5010 | (source | |
5011 | (origin | |
5012 | (method url-fetch) | |
5013 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
5014 | "simplegeneric/simplegeneric-" version ".zip")) | |
5015 | (sha256 | |
5016 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) | |
5017 | (build-system python-build-system) | |
5018 | (native-inputs | |
f3b98f4f | 5019 | `(("unzip" ,unzip))) |
cd6e5189 RW |
5020 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
5021 | (synopsis "Python module for simple generic functions") | |
5022 | (description | |
5023 | "The simplegeneric module lets you define simple single-dispatch generic | |
5024 | functions, akin to Python’s built-in generic functions like @code{len()}, | |
5025 | @code{iter()} and so on. However, instead of using specially-named methods, | |
5026 | these generic functions use simple lookup tables, akin to those used by | |
5027 | e.g. @code{pickle.dump()} and other generic functions found in the Python | |
5028 | standard library.") | |
3f641af0 | 5029 | (license license:zpl2.1))) |
cd6e5189 RW |
5030 | |
5031 | (define-public python2-simplegeneric | |
5032 | (package-with-python2 python-simplegeneric)) | |
5033 | ||
ddc7d8ed | 5034 | (define-public python-ipython-genutils |
c4abbac3 | 5035 | ;; TODO: This package is retired, check if can be removed, see description. |
ddc7d8ed RW |
5036 | (package |
5037 | (name "python-ipython-genutils") | |
5038 | (version "0.1.0") | |
5039 | (source | |
5040 | (origin | |
5041 | (method url-fetch) | |
5042 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
5043 | "ipython_genutils/ipython_genutils-" | |
5044 | version ".tar.gz")) | |
5045 | (sha256 | |
5046 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) | |
5047 | (build-system python-build-system) | |
5048 | (arguments `(#:tests? #f)) ; no tests | |
5049 | (home-page "http://ipython.org") | |
5050 | (synopsis "Vestigial utilities from IPython") | |
5051 | (description | |
c4abbac3 HG |
5052 | "This package provides retired utilities from IPython. No packages |
5053 | outside IPython/Jupyter should depend on it. | |
5054 | ||
5055 | This package shouldn't exist. It contains some common utilities shared by | |
5056 | Jupyter and IPython projects during The Big Split. As soon as possible, those | |
5057 | packages will remove their dependency on this, and this package will go | |
5058 | away.") | |
3f641af0 | 5059 | (license license:bsd-3))) |
ddc7d8ed RW |
5060 | |
5061 | (define-public python2-ipython-genutils | |
5062 | (package-with-python2 python-ipython-genutils)) | |
5063 | ||
2b10eb48 RW |
5064 | (define-public python-traitlets |
5065 | (package | |
5066 | (name "python-traitlets") | |
a5ba1481 | 5067 | (version "4.2.0") |
2b10eb48 RW |
5068 | (source |
5069 | (origin | |
5070 | (method url-fetch) | |
cc0c4fde | 5071 | (uri (pypi-uri "traitlets" version)) |
2b10eb48 RW |
5072 | (sha256 |
5073 | (base32 | |
a5ba1481 | 5074 | "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4")))) |
2b10eb48 RW |
5075 | (build-system python-build-system) |
5076 | (arguments | |
5077 | `(#:phases | |
5078 | (modify-phases %standard-phases | |
5079 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
5080 | (propagated-inputs | |
5081 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
5082 | ("python-decorator" ,python-decorator))) | |
5083 | (native-inputs | |
cc0c4fde EF |
5084 | `(("python-mock" ,python-mock) |
5085 | ("python-nose" ,python-nose))) | |
2b10eb48 RW |
5086 | (home-page "http://ipython.org") |
5087 | (synopsis "Configuration system for Python applications") | |
5088 | (description | |
5089 | "Traitlets is a framework that lets Python classes have attributes with | |
5090 | type checking, dynamically calculated default values, and ‘on change’ | |
5091 | callbacks. The package also includes a mechanism to use traitlets for | |
5092 | configuration, loading values from files or from command line arguments. This | |
5093 | is a distinct layer on top of traitlets, so you can use traitlets in your code | |
5094 | without using the configuration machinery.") | |
3f641af0 | 5095 | (license license:bsd-3))) |
2b10eb48 RW |
5096 | |
5097 | (define-public python2-traitlets | |
5098 | (package-with-python2 python-traitlets)) | |
5099 | ||
4263b06f RW |
5100 | (define-public python-jupyter-core |
5101 | (package | |
5102 | (name "python-jupyter-core") | |
45cc957c | 5103 | (version "4.2.1") |
4263b06f RW |
5104 | (source |
5105 | (origin | |
5106 | (method url-fetch) | |
5107 | (uri (string-append (pypi-uri "jupyter_core" version))) | |
5108 | (sha256 | |
5109 | (base32 | |
45cc957c | 5110 | "1cy7inv218dgh4m1fbzbsiqpz733ylgjrj62jxqpfzs3r2cm7ic9")))) |
4263b06f RW |
5111 | (build-system python-build-system) |
5112 | ;; FIXME: not sure how to run the tests | |
5113 | (arguments `(#:tests? #f)) | |
5114 | (propagated-inputs | |
5115 | `(("python-traitlets" ,python-traitlets))) | |
5116 | (home-page "http://jupyter.org/") | |
5117 | (synopsis "Jupyter base package") | |
5118 | (description | |
5119 | "Jupyter core is the base package on which Jupyter projects rely.") | |
5120 | (license license:bsd-3))) | |
5121 | ||
5122 | (define-public python2-jupyter-core | |
5123 | (package-with-python2 python-jupyter-core)) | |
5124 | ||
9ff01f2d RW |
5125 | (define-public python-jupyter-client |
5126 | (package | |
5127 | (name "python-jupyter-client") | |
5128 | (version "4.4.0") | |
5129 | (source | |
5130 | (origin | |
5131 | (method url-fetch) | |
5132 | (uri (pypi-uri "jupyter_client" version)) | |
5133 | (sha256 | |
5134 | (base32 | |
5135 | "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9")))) | |
5136 | (build-system python-build-system) | |
5137 | ;; Tests fail because of missing native python kernel which I assume is | |
5138 | ;; provided by the ipython package, which we cannot use because it would | |
5139 | ;; cause a dependency cycle. | |
5140 | (arguments `(#:tests? #f)) | |
5141 | (propagated-inputs | |
5142 | `(("python-pyzmq" ,python-pyzmq) | |
5143 | ("python-traitlets" ,python-traitlets) | |
5144 | ("python-jupyter-core" ,python-jupyter-core))) | |
5145 | (home-page "http://jupyter.org/") | |
5146 | (synopsis "Jupyter protocol implementation and client libraries") | |
5147 | (description | |
5148 | "The @code{jupyter_client} package contains the reference implementation | |
5149 | of the Jupyter protocol. It also provides client and kernel management APIs | |
5150 | for working with kernels, and the @code{jupyter kernelspec} entrypoint for | |
5151 | installing @code{kernelspec}s for use with Jupyter frontends.") | |
5152 | (license license:bsd-3))) | |
5153 | ||
5154 | (define-public python2-jupyter-client | |
5155 | (package-with-python2 python-jupyter-client)) | |
5156 | ||
ab526102 RW |
5157 | (define-public python-ipykernel |
5158 | (package | |
5159 | (name "python-ipykernel") | |
f165648e | 5160 | (version "4.5.2") |
ab526102 RW |
5161 | (source |
5162 | (origin | |
5163 | (method url-fetch) | |
5164 | (uri (pypi-uri "ipykernel" version)) | |
5165 | (sha256 | |
f165648e | 5166 | (base32 "0qllv0k6zzv1r1cj1x2ygxmlrrqhbslzj8rc6r6fg3kc1rgz4m2s")))) |
ab526102 RW |
5167 | (build-system python-build-system) |
5168 | ;; The tests load a submodule of IPython. However, IPython itself depends | |
5169 | ;; on ipykernel. | |
5170 | (arguments `(#:tests? #f)) | |
5171 | (propagated-inputs | |
5172 | ;; imported at runtime during connect | |
5173 | `(("python-jupyter-client" ,python-jupyter-client))) | |
5174 | (home-page "http://ipython.org") | |
5175 | (synopsis "IPython Kernel for Jupyter") | |
5176 | (description | |
5177 | "This package provides the IPython kernel for Jupyter.") | |
5178 | (license license:bsd-3))) | |
5179 | ||
5180 | (define-public python2-ipykernel | |
5181 | (package-with-python2 python-ipykernel)) | |
5182 | ||
5ff6effc RW |
5183 | (define-public python-testpath |
5184 | (package | |
5185 | (name "python-testpath") | |
5186 | (version "0.2") | |
5187 | (source | |
5188 | (origin | |
5189 | (method url-fetch) | |
5190 | (uri (string-append "https://github.com/jupyter/testpath/archive/" | |
5191 | version ".tar.gz")) | |
5192 | (file-name (string-append name "-" version ".tar.gz")) | |
5193 | (sha256 | |
5194 | (base32 | |
5195 | "04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55")))) | |
5196 | (build-system python-build-system) | |
5197 | (arguments | |
5198 | `(#:tests? #f ; this package does not even have a setup.py | |
b320f7bf TD |
5199 | #:modules ((guix build python-build-system) |
5200 | (guix build utils) | |
5201 | (srfi srfi-1)) | |
5202 | #:imported-modules (,@%python-build-system-modules | |
5203 | (srfi srfi-1)) | |
5ff6effc RW |
5204 | #:phases |
5205 | (modify-phases %standard-phases | |
5206 | (delete 'install) | |
5207 | (replace 'build | |
b320f7bf TD |
5208 | (lambda* (#:key inputs outputs #:allow-other-keys) |
5209 | (let* ((version (last | |
5210 | (string-split (assoc-ref inputs "python") #\-))) | |
5211 | (x.y (string-join (take (string-split version #\.) 2) | |
5212 | ".")) | |
5213 | (dir (string-append | |
5214 | (assoc-ref outputs "out") | |
5215 | "/lib/python" x.y "/site-packages/testpath"))) | |
5216 | (mkdir-p dir) | |
5217 | (copy-recursively "testpath" dir)) | |
5218 | #t))))) | |
5ff6effc RW |
5219 | (home-page "https://github.com/takluyver/testpath") |
5220 | (synopsis "Test utilities for code working with files and commands") | |
5221 | (description | |
5222 | "Testpath is a collection of utilities for Python code working with files | |
5223 | and commands. It contains functions to check things on the filesystem, and | |
5224 | tools for mocking system commands and recording calls to those.") | |
5225 | (license license:expat))) | |
5226 | ||
5227 | (define-public python2-testpath | |
5228 | (package-with-python2 python-testpath)) | |
5229 | ||
ae1ab9fe FB |
5230 | (define-public python-ipython |
5231 | (package | |
5232 | (name "python-ipython") | |
fb25d348 | 5233 | (version "5.2.2") |
ae1ab9fe FB |
5234 | (source |
5235 | (origin | |
fceac880 | 5236 | (method url-fetch) |
accd5f99 | 5237 | (uri (pypi-uri "ipython" version ".tar.gz")) |
fceac880 | 5238 | (sha256 |
fb25d348 | 5239 | (base32 "1qhjwa9cyz1np7rhv3p4ip13lkgbqsad62l24xkwiq1ic2gwiqbf")))) |
ae1ab9fe FB |
5240 | (build-system python-build-system) |
5241 | (outputs '("out" "doc")) | |
3a0b1b9a FB |
5242 | (propagated-inputs |
5243 | `(("python-pyzmq" ,python-pyzmq) | |
fb25d348 | 5244 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
accd5f99 | 5245 | ("python-terminado" ,python-terminado) |
ae1ab9fe | 5246 | ("python-matplotlib" ,python-matplotlib) |
5d26e542 | 5247 | ("python-numpy" ,python-numpy) |
ae1ab9fe | 5248 | ("python-numpydoc" ,python-numpydoc) |
3a0b1b9a FB |
5249 | ("python-jinja2" ,python-jinja2) |
5250 | ("python-mistune" ,python-mistune) | |
accd5f99 RW |
5251 | ("python-pexpect" ,python-pexpect) |
5252 | ("python-pickleshare" ,python-pickleshare) | |
5253 | ("python-simplegeneric" ,python-simplegeneric) | |
3a0b1b9a | 5254 | ("python-jsonschema" ,python-jsonschema) |
accd5f99 RW |
5255 | ("python-traitlets" ,python-traitlets) |
5256 | ("python-ipykernel" ,python-ipykernel) | |
fb25d348 | 5257 | ("python-nbformat" ,python-nbformat) |
accd5f99 RW |
5258 | ("python-pygments" ,python-pygments))) |
5259 | (inputs | |
5260 | `(("readline" ,readline) | |
5261 | ("which" ,which))) | |
ae1ab9fe | 5262 | (native-inputs |
fb25d348 TD |
5263 | `(("graphviz" ,graphviz) |
5264 | ("pkg-config" ,pkg-config) | |
accd5f99 RW |
5265 | ("python-requests" ,python-requests) ;; for tests |
5266 | ("python-testpath" ,python-testpath) | |
5267 | ("python-nose" ,python-nose) | |
ae1ab9fe | 5268 | ("python-sphinx" ,python-sphinx) |
fb25d348 | 5269 | ("python-shpinx-rtd-theme" ,python-sphinx-rtd-theme) |
ae1ab9fe | 5270 | ("texlive" ,texlive) |
f3b98f4f | 5271 | ("texinfo" ,texinfo))) |
ae1ab9fe | 5272 | (arguments |
89b5c60e | 5273 | `(#:phases |
3a0b1b9a FB |
5274 | (modify-phases %standard-phases |
5275 | (add-after | |
5276 | 'install 'install-doc | |
5277 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
5278 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
5279 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
5280 | (html (string-append doc "/html")) | |
5281 | (man1 (string-append data "/man/man1")) | |
5282 | (info (string-append data "/info")) | |
fb25d348 TD |
5283 | (examples (string-append doc "/examples")) |
5284 | (python-arg (string-append "PYTHON=" (which "python")))) | |
afd3d931 | 5285 | (setenv "LANG" "en_US.utf8") |
eee5cd04 HG |
5286 | ;; Make installed package available for running the tests |
5287 | (add-installed-pythonpath inputs outputs) | |
3a0b1b9a | 5288 | (with-directory-excursion "docs" |
accd5f99 RW |
5289 | ;; FIXME: pdf fails to build |
5290 | ;;(system* "make" "pdf" "PAPER=a4") | |
fb25d348 TD |
5291 | (system* "make" python-arg "html") |
5292 | (system* "make" python-arg "info")) | |
3a0b1b9a FB |
5293 | (copy-recursively "docs/man" man1) |
5294 | (copy-recursively "examples" examples) | |
accd5f99 | 5295 | (copy-recursively "docs/build/html" html) |
3a0b1b9a FB |
5296 | ;; (copy-file "docs/build/latex/ipython.pdf" |
5297 | ;; (string-append doc "/ipython.pdf")) | |
5298 | (mkdir-p info) | |
5299 | (copy-file "docs/build/texinfo/ipython.info" | |
5300 | (string-append info "/ipython.info")) | |
5301 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) | |
5302 | ;; Tests can only be run after the library has been installed and not | |
5303 | ;; within the source directory. | |
5304 | (delete 'check) | |
5305 | (add-after | |
5306 | 'install 'check | |
eee5cd04 | 5307 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) |
3a0b1b9a FB |
5308 | (if tests? |
5309 | (with-directory-excursion "/tmp" | |
eee5cd04 HG |
5310 | ;; Make installed package available for running the tests |
5311 | (add-installed-pythonpath inputs outputs) | |
3a0b1b9a FB |
5312 | (setenv "HOME" "/tmp/") ;; required by a test |
5313 | (zero? (system* (string-append (assoc-ref outputs "out") | |
5314 | "/bin/iptest")))) | |
5315 | #t))) | |
5316 | (add-before | |
5317 | 'install 'fix-tests | |
5318 | (lambda* (#:key inputs #:allow-other-keys) | |
5319 | (substitute* "./IPython/utils/_process_posix.py" | |
5320 | (("/usr/bin/env', 'which") (which "which"))) | |
5321 | (substitute* "./IPython/core/tests/test_inputtransformer.py" | |
5322 | (("#!/usr/bin/env python") | |
5323 | (string-append "#!" (which "python")))) | |
5324 | ;; Disable 1 failing test | |
5325 | (substitute* "./IPython/core/tests/test_magic.py" | |
5326 | (("def test_dirops\\(\\):" all) | |
5327 | (string-append "@dec.skipif(True)\n" all)))))))) | |
ae1ab9fe FB |
5328 | (home-page "http://ipython.org") |
5329 | (synopsis "IPython is a tool for interactive computing in Python") | |
5330 | (description | |
5331 | "IPython provides a rich architecture for interactive computing with: | |
5332 | Powerful interactive shells, a browser-based notebook, support for interactive | |
5333 | data visualization, embeddable interpreters and tools for parallel | |
5334 | computing.") | |
135ba811 EF |
5335 | (license license:bsd-3) |
5336 | (properties `((python2-variant . ,(delay python2-ipython)))))) | |
ae1ab9fe FB |
5337 | |
5338 | (define-public python2-ipython | |
135ba811 | 5339 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
3a0b1b9a FB |
5340 | (package |
5341 | (inherit ipython) | |
3a0b1b9a | 5342 | ;; FIXME: add pyreadline once available. |
fb25d348 TD |
5343 | (propagated-inputs |
5344 | `(("python2-backports-shutil-get-terminal-size" | |
5345 | ,python2-backports-shutil-get-terminal-size) | |
5346 | ("python2-pathlib2" ,python2-pathlib2) | |
5347 | ,@(package-propagated-inputs ipython))) | |
e62600fe | 5348 | (native-inputs |
135ba811 | 5349 | `(("python2-mock" ,python2-mock) |
77a6932a | 5350 | ,@(package-native-inputs ipython)))))) |
03411993 AE |
5351 | |
5352 | (define-public python-isodate | |
5353 | (package | |
5354 | (name "python-isodate") | |
b6785c2e | 5355 | (version "0.5.4") |
03411993 AE |
5356 | (source |
5357 | (origin | |
5358 | (method url-fetch) | |
b6785c2e | 5359 | (uri (pypi-uri "isodate" version)) |
03411993 AE |
5360 | (sha256 |
5361 | (base32 | |
b6785c2e | 5362 | "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422")))) |
03411993 | 5363 | (build-system python-build-system) |
03411993 AE |
5364 | (home-page |
5365 | "http://cheeseshop.python.org/pypi/isodate") | |
5366 | (synopsis | |
5367 | "Python date parser and formatter") | |
5368 | (description | |
5369 | "Python-isodate is a python module for parsing and formatting | |
5370 | ISO 8601 dates, time and duration.") | |
3f641af0 | 5371 | (license license:bsd-3))) |
03411993 AE |
5372 | |
5373 | (define-public python2-isodate | |
5374 | (package-with-python2 python-isodate)) | |
673ab897 AE |
5375 | |
5376 | (define-public python-html5lib | |
5377 | (package | |
5378 | (name "python-html5lib") | |
a14061aa | 5379 | (version "1.0b10") |
673ab897 AE |
5380 | (source |
5381 | (origin | |
5382 | (method url-fetch) | |
fee04c19 | 5383 | (uri (pypi-uri "html5lib" version)) |
673ab897 AE |
5384 | (sha256 |
5385 | (base32 | |
a14061aa | 5386 | "1yd068a5c00wd0ajq0hqimv7fd82lhrw0w3s01vbhy9bbd6xapqd")))) |
673ab897 | 5387 | (build-system python-build-system) |
3dd75476 | 5388 | (propagated-inputs |
4eb6ed28 MB |
5389 | `(("python-six" ,python-six) |
5390 | ("python-webencodings" ,python-webencodings))) | |
673ab897 AE |
5391 | (arguments |
5392 | `(#:test-target "check")) | |
5393 | (home-page | |
5394 | "https://github.com/html5lib/html5lib-python") | |
5395 | (synopsis | |
5396 | "Python HTML parser based on the WHATWG HTML specifcation") | |
5397 | (description | |
5398 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation | |
5399 | and written in Python.") | |
bd3fa666 | 5400 | (license license:expat))) |
673ab897 AE |
5401 | |
5402 | (define-public python2-html5lib | |
5403 | (package-with-python2 python-html5lib)) | |
e99f4211 | 5404 | |
8ee62c97 RW |
5405 | ;; Needed for python-bleach, a dependency of python-notebook |
5406 | (define-public python-html5lib-0.9 | |
5407 | (package | |
5408 | (inherit python-html5lib) | |
5409 | (version "0.999") | |
5410 | (source | |
5411 | (origin | |
5412 | (method url-fetch) | |
5413 | (uri (pypi-uri "html5lib" version)) | |
5414 | (sha256 | |
5415 | (base32 | |
5416 | "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263")))))) | |
5417 | ||
5418 | (define-public python2-html5lib-0.9 | |
5419 | (package-with-python2 python-html5lib-0.9)) | |
5420 | ||
adbca19e MB |
5421 | (define-public python-webencodings |
5422 | (package | |
5423 | (name "python-webencodings") | |
5424 | (version "0.5") | |
5425 | (source (origin | |
5426 | (method url-fetch) | |
5427 | (uri (pypi-uri "webencodings" version)) | |
5428 | (sha256 | |
5429 | (base32 | |
5430 | "015rw7662lkpb9aqiqah2hbizk6w531badqwjpz41rr47glmxid5")))) | |
5431 | (build-system python-build-system) | |
5432 | (arguments | |
5433 | '(#:phases | |
5434 | (modify-phases %standard-phases | |
5435 | (replace 'check | |
5436 | (lambda _ | |
5437 | (zero? (system* "py.test" "-v" "webencodings/tests.py"))))))) | |
5438 | (native-inputs | |
5439 | `(("python-pytest" ,python-pytest))) | |
5440 | (home-page "https://github.com/SimonSapin/python-webencodings") | |
5441 | (synopsis "Character encoding aliases for legacy web content") | |
5442 | (description | |
5443 | "In order to be compatible with legacy web content when interpreting | |
5444 | something like @code{Content-Type: text/html; charset=latin1}, tools need | |
5445 | to use a particular set of aliases for encoding labels as well as some | |
5446 | overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on | |
5447 | the web are actually aliases for @code{windows-1252}, and an @code{UTF-8} | |
5448 | or @code{UTF-16} BOM takes precedence over any other encoding declaration. | |
5449 | The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard | |
5450 | defines all such details so that implementations do not have to | |
5451 | reverse-engineer each other. | |
5452 | ||
5453 | This module implements the Encoding standard and has encoding labels and | |
5454 | BOM detection, but the actual implementation for encoders and decoders | |
5455 | is Python’s.") | |
5456 | (license license:bsd-3))) | |
5457 | ||
5458 | (define-public python2-webencodings | |
5459 | (package-with-python2 python-webencodings)) | |
5460 | ||
e99f4211 MW |
5461 | (define-public python-urwid |
5462 | (package | |
5463 | (name "python-urwid") | |
51ff41f6 | 5464 | (version "1.3.1") |
e99f4211 MW |
5465 | (source |
5466 | (origin | |
5467 | (method url-fetch) | |
b97c1bfd | 5468 | (uri (pypi-uri "urwid" version)) |
e99f4211 MW |
5469 | (sha256 |
5470 | (base32 | |
51ff41f6 | 5471 | "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng")))) |
e99f4211 | 5472 | (build-system python-build-system) |
b97c1bfd LF |
5473 | (arguments |
5474 | `(#:phases | |
5475 | (modify-phases %standard-phases | |
5476 | ;; Disable failing test. Bug filed upstream: | |
5477 | ;; https://github.com/wardi/urwid/issues/164 | |
51ff41f6 | 5478 | ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3. |
b97c1bfd LF |
5479 | (add-after 'unpack 'disable-failing-test |
5480 | (lambda _ | |
5481 | (substitute* "urwid/tests/test_event_loops.py" | |
5482 | (("test_remove_watch_file") | |
5483 | "disable_remove_watch_file"))))))) | |
e99f4211 MW |
5484 | (home-page "http://urwid.org") |
5485 | (synopsis "Console user interface library for Python") | |
5486 | (description | |
5487 | "Urwid is a curses-based UI/widget library for Python. It includes many | |
5488 | features useful for text console applications.") | |
3f641af0 | 5489 | (license license:lgpl2.1+))) |
e99f4211 MW |
5490 | |
5491 | (define-public python2-urwid | |
5492 | (package-with-python2 python-urwid)) | |
d95a56c6 | 5493 | |
5220022a JL |
5494 | (define-public python-openid |
5495 | (package | |
5496 | (name "python-openid") | |
5497 | (version "3.0.10") | |
5498 | (source | |
5499 | (origin | |
5500 | (method url-fetch) | |
5501 | (uri (pypi-uri "python3-openid" version)) | |
5502 | (sha256 | |
5503 | (base32 | |
5504 | "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758")))) | |
5505 | (build-system python-build-system) | |
5506 | (home-page "https://github.com/necaris/python3-openid") | |
5507 | (synopsis "OpenID support for servers and consumers") | |
5508 | (description "This library provides OpenID authentication for Python, both | |
5509 | for clients and servers.") | |
5510 | (license license:asl2.0))) | |
5511 | ||
3ef00f56 | 5512 | (define-public python2-openid |
5513 | (package | |
5514 | (name "python2-openid") | |
5515 | (version "2.2.5") | |
5516 | (source | |
5517 | (origin | |
5518 | (method url-fetch) | |
5519 | (uri (pypi-uri "python-openid" version)) | |
5520 | (sha256 | |
5521 | (base32 | |
5522 | "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj")))) | |
5523 | (build-system python-build-system) | |
5524 | (arguments | |
5525 | ;; Python 3 support is in `python3-openid`, a separate package. | |
5526 | `(#:python ,python-2)) | |
5527 | (home-page "https://github.com/openid/python-openid") | |
5528 | (synopsis "OpenID support for servers and consumers") | |
5529 | (description "This library provides OpenID authentication for Python, both | |
5530 | for clients and servers.") | |
5531 | (license license:asl2.0))) | |
5532 | ||
47d0b292 TS |
5533 | (define-public python-urwidtrees |
5534 | (package | |
5535 | (name "python-urwidtrees") | |
37ec4623 | 5536 | (version "1.0.2") |
47d0b292 TS |
5537 | (source |
5538 | (origin | |
5539 | (method url-fetch) | |
37ec4623 TS |
5540 | ;; package author intends on distributing via github rather than pypi: |
5541 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 | |
5542 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" | |
5543 | version ".tar.gz")) | |
5544 | (file-name (string-append name "-" version ".tar.gz")) | |
47d0b292 TS |
5545 | (sha256 |
5546 | (base32 | |
37ec4623 | 5547 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
47d0b292 TS |
5548 | (build-system python-build-system) |
5549 | (arguments | |
5550 | '(#:tests? #f)) ; no tests | |
f22efa01 | 5551 | (propagated-inputs `(("python-urwid" ,python-urwid))) |
47d0b292 TS |
5552 | (home-page "https://github.com/pazz/urwidtrees") |
5553 | (synopsis "Tree widgets for urwid") | |
5554 | (description "Urwidtrees is a Widget Container API for the @code{urwid} | |
5555 | toolkit. Use it to build trees of widgets.") | |
3f641af0 | 5556 | (license license:gpl3+))) |
47d0b292 TS |
5557 | |
5558 | (define-public python2-urwidtrees | |
5559 | (package-with-python2 python-urwidtrees)) | |
5560 | ||
d95a56c6 PAR |
5561 | (define-public python-dbus |
5562 | (package | |
5563 | (name "python-dbus") | |
5564 | (version "1.2.0") | |
5565 | (source | |
5566 | (origin | |
5567 | (method url-fetch) | |
5568 | (uri (string-append | |
5cc3096c | 5569 | "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-" |
d95a56c6 PAR |
5570 | version ".tar.gz")) |
5571 | (sha256 | |
5572 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) | |
5573 | (build-system gnu-build-system) | |
6717c879 SB |
5574 | (arguments |
5575 | '(#:phases | |
5576 | (modify-phases %standard-phases | |
5577 | (add-before | |
5578 | 'check 'pre-check | |
5579 | (lambda _ | |
5580 | ;; XXX: For the missing '/etc/machine-id'. | |
5581 | (substitute* "test/run-test.sh" | |
5582 | (("DBUS_FATAL_WARNINGS=1") | |
5583 | "DBUS_FATAL_WARNINGS=0")) | |
5584 | #t))))) | |
d95a56c6 PAR |
5585 | (native-inputs |
5586 | `(("pkg-config" ,pkg-config))) | |
5587 | (inputs | |
5588 | `(("python" ,python) | |
2e88d113 | 5589 | ("dbus-glib" ,dbus-glib))) |
d95a56c6 PAR |
5590 | (synopsis "Python bindings for D-bus") |
5591 | (description "python-dbus provides bindings for libdbus, the reference | |
5592 | implementation of D-Bus.") | |
5593 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") | |
bd3fa666 | 5594 | (license license:expat))) |
b52af02b MW |
5595 | |
5596 | (define-public python2-dbus | |
5597 | (package (inherit python-dbus) | |
5598 | (name "python2-dbus") | |
5599 | (inputs `(("python" ,python-2) | |
5600 | ,@(alist-delete "python" | |
5601 | (package-inputs python-dbus) | |
5602 | equal?))) | |
5603 | ;; FIXME: on Python 2, the test_utf8 fails with: | |
5604 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" | |
5605 | (arguments `(#:tests? #f)))) | |
a6ac8332 AE |
5606 | |
5607 | (define-public python-apsw | |
5608 | (package | |
5609 | (name "python-apsw") | |
917708c2 | 5610 | (version "3.9.2-r1") |
a6ac8332 AE |
5611 | (source |
5612 | (origin | |
5613 | (method url-fetch) | |
917708c2 | 5614 | (uri (pypi-uri "apsw" version)) |
a6ac8332 AE |
5615 | (sha256 |
5616 | (base32 | |
917708c2 | 5617 | "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs")))) |
a6ac8332 AE |
5618 | (build-system python-build-system) |
5619 | (inputs | |
f3b98f4f | 5620 | `(("sqlite" ,sqlite))) |
a6ac8332 AE |
5621 | (arguments |
5622 | `(#:phases | |
154d207c MB |
5623 | (modify-phases %standard-phases |
5624 | (delete 'check) | |
5625 | (add-after 'install 'check | |
5626 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
5627 | (add-installed-pythonpath inputs outputs) | |
5628 | (zero? (system* "python" "setup.py" "test"))))))) | |
a6ac8332 AE |
5629 | (home-page "https://github.com/rogerbinns/apsw/") |
5630 | (synopsis "Another Python SQLite Wrapper") | |
5631 | (description "APSW is a Python wrapper for the SQLite | |
5632 | embedded relational database engine. In contrast to other wrappers such as | |
5633 | pysqlite it focuses on being a minimal layer over SQLite attempting just to | |
5634 | translate the complete SQLite API into Python.") | |
abde5f37 | 5635 | (license license:zlib))) |
a6ac8332 AE |
5636 | |
5637 | (define-public python2-apsw | |
5638 | (package-with-python2 python-apsw)) | |
26b307e2 AE |
5639 | |
5640 | (define-public python-lxml | |
5641 | (package | |
5642 | (name "python-lxml") | |
d58a3203 | 5643 | (version "3.6.0") |
26b307e2 AE |
5644 | (source |
5645 | (origin | |
5646 | (method url-fetch) | |
97bbc480 | 5647 | (uri (pypi-uri "lxml" version)) |
26b307e2 | 5648 | (sha256 |
d58a3203 EF |
5649 | (base32 |
5650 | "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w")))) | |
26b307e2 AE |
5651 | (build-system python-build-system) |
5652 | (inputs | |
5653 | `(("libxml2" ,libxml2) | |
f3b98f4f | 5654 | ("libxslt" ,libxslt))) |
26b307e2 AE |
5655 | (home-page "http://lxml.de/") |
5656 | (synopsis | |
5657 | "Python XML processing library") | |
5658 | (description | |
5659 | "The lxml XML toolkit is a Pythonic binding for the C libraries | |
5660 | libxml2 and libxslt.") | |
3f641af0 | 5661 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
26b307e2 AE |
5662 | |
5663 | (define-public python2-lxml | |
5664 | (package-with-python2 python-lxml)) | |
4ed20663 | 5665 | |
b32a1e47 CAW |
5666 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
5667 | ;; and pypi seems to put it under its own name, so I guess we should too | |
5668 | (define-public python-beautifulsoup4 | |
5669 | (package | |
5670 | (name "python-beautifulsoup4") | |
67fd4a12 | 5671 | (version "4.5.1") |
b32a1e47 CAW |
5672 | (source |
5673 | (origin | |
5674 | (method url-fetch) | |
5675 | (uri (pypi-uri "beautifulsoup4" version)) | |
5676 | (sha256 | |
5677 | (base32 | |
67fd4a12 | 5678 | "1qgmhw65ncsgccjhslgkkszif47q6gvxwqv4mim17agxd81p951w")))) |
b32a1e47 | 5679 | (build-system python-build-system) |
5f37f0b6 LF |
5680 | (arguments |
5681 | `(#:phases | |
5682 | (modify-phases %standard-phases | |
5683 | ;; The Python 2 source is the definitive source of beautifulsoup4. We | |
5684 | ;; must use this conversion script when building with Python 3. The | |
5685 | ;; conversion script also runs the tests. | |
5686 | ;; For more information, see the file 'convert-py3k' in the source | |
5687 | ;; distribution. | |
5688 | (replace 'check | |
5689 | (lambda _ (zero? (system* "./convert-py3k"))))))) | |
b32a1e47 CAW |
5690 | (home-page |
5691 | "http://www.crummy.com/software/BeautifulSoup/bs4/") | |
5692 | (synopsis | |
5693 | "Python screen-scraping library") | |
5694 | (description | |
5695 | "Beautiful Soup is a Python library designed for rapidly setting up | |
5696 | screen-scraping projects. It offers Pythonic idioms for navigating, | |
5697 | searching, and modifying a parse tree, providing a toolkit for | |
5698 | dissecting a document and extracting what you need. It automatically | |
5699 | converts incoming documents to Unicode and outgoing documents to UTF-8.") | |
ee94ca11 MB |
5700 | (license license:expat) |
5701 | (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) | |
b32a1e47 CAW |
5702 | |
5703 | (define-public python2-beautifulsoup4 | |
5704 | (package | |
5705 | (inherit (package-with-python2 | |
5706 | (strip-python2-variant python-beautifulsoup4))) | |
5f37f0b6 | 5707 | (arguments `(#:python ,python-2)))) |
b32a1e47 | 5708 | |
4dcb135e | 5709 | (define-public python-cssutils |
092e86f5 | 5710 | (package |
4dcb135e | 5711 | (name "python-cssutils") |
58d1d816 | 5712 | (version "1.0.1") |
092e86f5 AE |
5713 | (source |
5714 | (origin | |
5715 | (method url-fetch) | |
58d1d816 | 5716 | (uri (pypi-uri "cssutils" version)) |
092e86f5 | 5717 | (sha256 |
58d1d816 EF |
5718 | (base32 |
5719 | "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) | |
092e86f5 AE |
5720 | (build-system python-build-system) |
5721 | (native-inputs | |
4dcb135e | 5722 | `(("unzip" ,unzip))) ; for unpacking the source |
092e86f5 | 5723 | (arguments |
4dcb135e | 5724 | `(#:tests? #f)) ;tests require python-pbr < 1.7.0 |
092e86f5 AE |
5725 | (home-page "http://cthedot.de/cssutils/") |
5726 | (synopsis | |
5727 | "CSS Cascading Style Sheets library for Python") | |
5728 | (description | |
5729 | "Cssutils is a Python package for parsing and building CSS | |
5730 | Cascading Style Sheets. Currently it provides a DOM only and no rendering | |
5731 | options.") | |
3f641af0 | 5732 | (license license:lgpl3+))) |
880ff77c | 5733 | |
4dcb135e EB |
5734 | (define-public python2-cssutils |
5735 | (package-with-python2 python-cssutils)) | |
5736 | ||
880ff77c AE |
5737 | (define-public python-cssselect |
5738 | (package | |
5739 | (name "python-cssselect") | |
d5ccd9ab | 5740 | (version "0.9.2") |
880ff77c AE |
5741 | (source |
5742 | (origin | |
5743 | (method url-fetch) | |
d5ccd9ab | 5744 | (uri (pypi-uri "cssselect" version)) |
880ff77c | 5745 | (sha256 |
d5ccd9ab EF |
5746 | (base32 |
5747 | "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) | |
880ff77c | 5748 | (build-system python-build-system) |
880ff77c AE |
5749 | (arguments |
5750 | ;; tests fail with message | |
5751 | ;; AttributeError: 'module' object has no attribute 'tests' | |
5752 | `(#:tests? #f)) | |
5753 | (home-page | |
5754 | "https://pythonhosted.org/cssselect/") | |
5755 | (synopsis | |
5756 | "CSS3 selector parser and translator to XPath 1.0") | |
5757 | (description | |
5758 | "Cssselect ia a Python module that parses CSS3 Selectors and translates | |
5759 | them to XPath 1.0 expressions. Such expressions can be used in lxml or | |
5760 | another XPath engine to find the matching elements in an XML or HTML document.") | |
3f641af0 | 5761 | (license license:bsd-3))) |
880ff77c AE |
5762 | |
5763 | (define-public python2-cssselect | |
5764 | (package-with-python2 python-cssselect)) | |
60357f99 | 5765 | |
03702173 | 5766 | (define-public python-openid-cla |
5767 | (package | |
5768 | (name "python-openid-cla") | |
5769 | (version "1.2") | |
5770 | (source | |
5771 | (origin | |
5772 | (method url-fetch) | |
5773 | (uri (pypi-uri "python-openid-cla" version)) | |
5774 | (sha256 | |
5775 | (base32 | |
5776 | "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr")))) | |
5777 | (build-system python-build-system) | |
019ccdb6 | 5778 | (arguments '(#:tests? #f)) ; No tests. |
03702173 | 5779 | (home-page "https://github.com/puiterwijk/python-openid-cla/") |
5780 | (synopsis "Implementation of the OpenID CLA extension for python-openid") | |
5781 | (description "@code{openid-cla} is an implementation of the OpenID | |
5782 | contributor license agreement extension for python-openid.") | |
5783 | (license license:bsd-3))) | |
5784 | ||
5785 | (define-public python2-openid-cla | |
5786 | (package-with-python2 python-openid-cla)) | |
5787 | ||
a0e41de4 | 5788 | (define-public python-openid-teams |
5789 | (package | |
5790 | (name "python-openid-teams") | |
5791 | (version "1.1") | |
5792 | (source | |
5793 | (origin | |
5794 | (method url-fetch) | |
5795 | (uri (pypi-uri "python-openid-teams" version)) | |
5796 | (sha256 | |
5797 | (base32 | |
5798 | "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969")))) | |
5799 | (build-system python-build-system) | |
ac72d3d2 | 5800 | (arguments '(#:tests? #f)) ; No tests. |
a0e41de4 | 5801 | (home-page "https://github.com/puiterwijk/python-openid-teams/") |
5802 | (synopsis "Implementation of the OpenID teams extension for python-openid") | |
5803 | (description | |
5804 | "@code{openid-teams} is an implementation of the OpenID | |
5805 | teams extension for python-openid.") | |
5806 | (license license:bsd-3))) | |
5807 | ||
5808 | (define-public python2-openid-teams | |
5809 | (package-with-python2 python-openid-teams)) | |
5810 | ||
60357f99 AE |
5811 | (define-public python-netifaces |
5812 | (package | |
5813 | (name "python-netifaces") | |
5814 | (version "0.10.4") | |
5815 | (source | |
5816 | (origin | |
5817 | (method url-fetch) | |
5818 | (uri (string-append | |
5819 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" | |
5820 | version | |
5821 | ".tar.gz")) | |
5822 | (sha256 | |
5823 | (base32 | |
5824 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) | |
5825 | (build-system python-build-system) | |
60357f99 AE |
5826 | (home-page |
5827 | "https://bitbucket.org/al45tair/netifaces") | |
5828 | (synopsis | |
5829 | "Python module for portable network interface information") | |
5830 | (description | |
5831 | "Netifaces is a Python module providing information on network | |
5832 | interfaces in an easy and portable manner.") | |
5833 | (license license:expat))) | |
5834 | ||
5835 | (define-public python2-netifaces | |
5836 | (package-with-python2 python-netifaces)) | |
92cb152b | 5837 | |
32f77c04 RW |
5838 | (define-public python-networkx |
5839 | (package | |
5840 | (name "python-networkx") | |
a4d9609c | 5841 | (version "1.11") |
32f77c04 RW |
5842 | (source |
5843 | (origin | |
5844 | (method url-fetch) | |
a4d9609c | 5845 | (uri (pypi-uri "networkx" version)) |
32f77c04 | 5846 | (sha256 |
a4d9609c | 5847 | (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd")))) |
32f77c04 RW |
5848 | (build-system python-build-system) |
5849 | ;; python-decorator is needed at runtime | |
5850 | (propagated-inputs | |
5851 | `(("python-decorator" ,python-decorator))) | |
5852 | (native-inputs | |
f3b98f4f | 5853 | `(("python-nose" ,python-nose))) |
32f77c04 RW |
5854 | (home-page "http://networkx.github.io/") |
5855 | (synopsis "Python module for creating and manipulating graphs and networks") | |
5856 | (description | |
5857 | "NetworkX is a Python package for the creation, manipulation, and study | |
5858 | of the structure, dynamics, and functions of complex networks.") | |
3f641af0 | 5859 | (license license:bsd-3))) |
32f77c04 RW |
5860 | |
5861 | (define-public python2-networkx | |
5862 | (package-with-python2 python-networkx)) | |
5863 | ||
92cb152b RW |
5864 | (define-public snakemake |
5865 | (package | |
5866 | (name "snakemake") | |
7b93d866 | 5867 | (version "3.9.0") |
92cb152b RW |
5868 | (source |
5869 | (origin | |
5870 | (method url-fetch) | |
7b93d866 | 5871 | (uri (pypi-uri "snakemake" version)) |
92cb152b | 5872 | (sha256 |
7b93d866 | 5873 | (base32 "1d48ql0010v9ls6mac7fz6j391gm4h74a64hqgw89s0vfqgdyzdl")))) |
92cb152b | 5874 | (build-system python-build-system) |
7b93d866 MB |
5875 | (arguments |
5876 | ;; TODO: Package missing test dependencies. | |
5877 | '(#:tests? #f)) | |
5878 | (home-page "https://bitbucket.org/snakemake/snakemake/wiki/Home") | |
92cb152b RW |
5879 | (synopsis "Python-based execution environment for make-like workflows") |
5880 | (description | |
5881 | "Snakemake aims to reduce the complexity of creating workflows by | |
5882 | providing a clean and modern domain specific specification language (DSL) in | |
5883 | Python style, together with a fast and comfortable execution environment.") | |
5884 | (license license:expat))) | |
a1920bc9 | 5885 | |
35de1fbd RW |
5886 | (define-public python-seaborn |
5887 | (package | |
5888 | (name "python-seaborn") | |
ccc18762 | 5889 | (version "0.7.1") |
35de1fbd RW |
5890 | (source |
5891 | (origin | |
5892 | (method url-fetch) | |
fc899d4f | 5893 | (uri (pypi-uri "seaborn" version)) |
35de1fbd | 5894 | (sha256 |
ccc18762 | 5895 | (base32 "0pawrqc3mxpwd5g9pvi9gba02637bh5c8ldpp8izfwpfn52469zs")))) |
35de1fbd | 5896 | (build-system python-build-system) |
6f976df6 MB |
5897 | (arguments |
5898 | '(#:tests? #f)) ; Tests requires a running X11 server. | |
35de1fbd RW |
5899 | (propagated-inputs |
5900 | `(("python-pandas" ,python-pandas) | |
5901 | ("python-matplotlib" ,python-matplotlib) | |
5902 | ("python-scipy" ,python-scipy))) | |
35de1fbd RW |
5903 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
5904 | (synopsis "Statistical data visualization") | |
5905 | (description | |
5906 | "Seaborn is a library for making attractive and informative statistical | |
5907 | graphics in Python. It is built on top of matplotlib and tightly integrated | |
5908 | with the PyData stack, including support for numpy and pandas data structures | |
5909 | and statistical routines from scipy and statsmodels.") | |
3f641af0 | 5910 | (license license:bsd-3) |
fc899d4f | 5911 | (properties `((python2-variant . ,(delay python2-seaborn)))))) |
35de1fbd RW |
5912 | |
5913 | (define-public python2-seaborn | |
fc899d4f EF |
5914 | (let ((base (package-with-python2 (strip-python2-variant python-seaborn)))) |
5915 | (package | |
5916 | (inherit base) | |
5917 | (propagated-inputs `(("python2-pytz" ,python2-pytz) | |
00e10c6e | 5918 | ,@(package-propagated-inputs base)))))) |
35de1fbd | 5919 | |
58a35665 MB |
5920 | (define-public python-mpmath |
5921 | (package | |
5922 | (name "python-mpmath") | |
5923 | (version "0.19") | |
5924 | (source (origin | |
5925 | (method url-fetch) | |
5926 | (uri (string-append "http://mpmath.org/files/mpmath-" | |
5927 | version ".tar.gz")) | |
5928 | (sha256 | |
5929 | (base32 | |
5930 | "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8")))) | |
5931 | (build-system python-build-system) | |
5932 | (arguments | |
5933 | '(#:phases | |
5934 | (modify-phases %standard-phases | |
5935 | (replace 'check | |
5936 | (lambda _ | |
5937 | (zero? | |
5938 | (system* "python" "mpmath/tests/runtests.py" "-local"))))))) | |
5939 | (home-page "http://mpmath.org") | |
5940 | (synopsis "Arbitrary-precision floating-point arithmetic in python") | |
5941 | (description | |
5942 | "@code{mpmath} can be used as an arbitrary-precision substitute for | |
5943 | Python's float/complex types and math/cmath modules, but also does much | |
5944 | more advanced mathematics.") | |
5945 | (license license:bsd-3))) | |
5946 | ||
5947 | (define-public python2-mpmath | |
5948 | (package-with-python2 python-mpmath)) | |
5949 | ||
90fc547f RW |
5950 | (define-public python-sympy |
5951 | (package | |
5952 | (name "python-sympy") | |
52f622ef | 5953 | (version "1.0") |
90fc547f RW |
5954 | (source |
5955 | (origin | |
5956 | (method url-fetch) | |
5957 | (uri (string-append | |
5958 | "https://github.com/sympy/sympy/releases/download/sympy-" | |
5959 | version "/sympy-" version ".tar.gz")) | |
5960 | (sha256 | |
52f622ef | 5961 | (base32 "1bpzjwr9hrr7w88v4vgnj9lr6vxcldc94si13n8xpr1rv08d5b1y")))) |
90fc547f | 5962 | (build-system python-build-system) |
52f622ef MB |
5963 | (propagated-inputs |
5964 | `(("python-mpmath" ,python-mpmath))) | |
90fc547f RW |
5965 | (home-page "http://www.sympy.org/") |
5966 | (synopsis "Python library for symbolic mathematics") | |
5967 | (description | |
5968 | "SymPy is a Python library for symbolic mathematics. It aims to become a | |
5969 | full-featured computer algebra system (CAS) while keeping the code as simple | |
5970 | as possible in order to be comprehensible and easily extensible.") | |
3f641af0 | 5971 | (license license:bsd-3))) |
90fc547f RW |
5972 | |
5973 | (define-public python2-sympy | |
5974 | (package-with-python2 python-sympy)) | |
5975 | ||
e8c9b010 SR |
5976 | (define-public python-q |
5977 | (package | |
5978 | (name "python-q") | |
5979 | (version "2.6") | |
5980 | (source | |
5981 | (origin | |
5982 | (method url-fetch) | |
5983 | (uri (pypi-uri "q" version)) | |
5984 | (sha256 | |
5985 | (base32 | |
5986 | "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) | |
5987 | (build-system python-build-system) | |
5988 | (home-page "https://github.com/zestyping/q") | |
5989 | (synopsis "Quick-and-dirty debugging output for tired programmers") | |
5990 | (description | |
5991 | "q is a Python module for \"print\" style of debugging Python code. It | |
5992 | provides convenient short API for print out of values, tracebacks, and | |
5993 | falling into the Python interpreter.") | |
f210e944 | 5994 | (license license:asl2.0))) |
e8c9b010 SR |
5995 | |
5996 | (define-public python2-q | |
f210e944 | 5997 | (package-with-python2 python-q)) |
e8c9b010 | 5998 | |
a1920bc9 FB |
5999 | (define-public python-testlib |
6000 | (package | |
6001 | (name "python-testlib") | |
6002 | (version "0.6.5") | |
6003 | (source | |
6004 | (origin | |
6005 | (method url-fetch) | |
6006 | (uri (string-append | |
6007 | "https://pypi.python.org/packages/source/t/testlib/testlib-" | |
6008 | version ".zip")) | |
6009 | (sha256 | |
6010 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) | |
6011 | (build-system python-build-system) | |
a1920bc9 | 6012 | (native-inputs |
632735f2 | 6013 | `(("unzip" ,unzip))) ; for unpacking the source |
a1920bc9 FB |
6014 | (synopsis "Python micro test suite harness") |
6015 | (description "A micro unittest suite harness for Python.") | |
6016 | (home-page "https://github.com/trentm/testlib") | |
1cb9c006 | 6017 | (license license:expat))) |
a1920bc9 FB |
6018 | |
6019 | (define-public python2-testlib | |
6020 | (package-with-python2 python-testlib)) | |
db62afa5 LC |
6021 | |
6022 | (define-public python2-xlib | |
6023 | (package | |
6024 | (name "python2-xlib") | |
6025 | (version "0.14") | |
6026 | (source (origin | |
6027 | (method url-fetch) | |
de67e922 LF |
6028 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
6029 | "/" version "/" | |
db62afa5 LC |
6030 | "python-xlib-" version ".tar.gz")) |
6031 | (sha256 | |
6032 | (base32 | |
6033 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) | |
6034 | (build-system python-build-system) | |
6035 | (arguments | |
6036 | `(#:python ,python-2 ;Python 2 only | |
6037 | #:tests? #f)) ;no tests | |
db62afa5 LC |
6038 | (home-page "http://python-xlib.sourceforge.net/") |
6039 | (synopsis "Python X11 client library") | |
6040 | (description | |
6041 | "The Python X Library is intended to be a fully functional X client | |
6042 | library for Python programs. It is useful to implement low-level X clients. | |
6043 | It is written entirely in Python.") | |
3f641af0 | 6044 | (license license:gpl2+))) |
0234ca06 DT |
6045 | |
6046 | (define-public python-singledispatch | |
6047 | (package | |
6048 | (name "python-singledispatch") | |
6049 | (version "3.4.0.3") | |
6050 | (source | |
6051 | (origin | |
6052 | (method url-fetch) | |
bdb67d84 | 6053 | (uri (pypi-uri "singledispatch" version)) |
0234ca06 DT |
6054 | (sha256 |
6055 | (base32 | |
6056 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) | |
6057 | (build-system python-build-system) | |
5e1c9d24 HG |
6058 | (native-inputs |
6059 | `(("python-six" ,python-six))) ; required for conversion, not at run-time | |
0234ca06 DT |
6060 | (home-page |
6061 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") | |
6062 | (synopsis "Backport of singledispatch feature from Python 3.4") | |
6063 | (description | |
6064 | "This library brings functools.singledispatch from Python 3.4 to Python | |
6065 | 2.6-3.3.") | |
6066 | (license license:expat))) | |
6067 | ||
6068 | (define-public python2-singledispatch | |
6069 | (package-with-python2 python-singledispatch)) | |
feaae484 | 6070 | |
310d218f RW |
6071 | (define-public python-tornado |
6072 | (package | |
6073 | (name "python-tornado") | |
a724924b | 6074 | (version "4.3") |
310d218f RW |
6075 | (source |
6076 | (origin | |
6077 | (method url-fetch) | |
a724924b | 6078 | (uri (pypi-uri "tornado" version)) |
310d218f | 6079 | (sha256 |
a724924b | 6080 | (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9")))) |
310d218f | 6081 | (build-system python-build-system) |
3fe2c209 MB |
6082 | (arguments |
6083 | '(;; FIXME: Two tests error out with: | |
6084 | ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b'' | |
6085 | ;; #:phases | |
6086 | ;; (modify-phases %standard-phases | |
6087 | ;; (replace 'check | |
6088 | ;; (lambda _ | |
6089 | ;; ;; 'setup.py test' hits an AssertionError on BSD-specific | |
6090 | ;; ;; "tornado/platform/kqueue.py". This is the supported method: | |
6091 | ;; (zero? (system* "python" "-m" "tornado.test"))))) | |
6092 | #:tests? #f)) | |
310d218f | 6093 | (native-inputs |
b455439b | 6094 | `(("python-certifi" ,python-certifi))) |
f22efa01 | 6095 | (propagated-inputs |
b455439b | 6096 | `(("python-backports-abc" ,python-backports-abc))) |
f4a4a718 | 6097 | (home-page "http://www.tornadoweb.org/") |
310d218f RW |
6098 | (synopsis "Python web framework and asynchronous networking library") |
6099 | (description | |
6100 | "Tornado is a Python web framework and asynchronous networking library, | |
6101 | originally developed at FriendFeed. By using non-blocking network I/O, | |
6102 | Tornado can scale to tens of thousands of open connections, making it ideal | |
6103 | for long polling, WebSockets, and other applications that require a long-lived | |
6104 | connection to each user.") | |
3f641af0 | 6105 | (license license:asl2.0) |
b455439b | 6106 | (properties `((python2-variant . ,(delay python2-tornado)))))) |
310d218f RW |
6107 | |
6108 | (define-public python2-tornado | |
b455439b | 6109 | (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) |
310d218f | 6110 | (package (inherit tornado) |
f22efa01 | 6111 | (propagated-inputs |
310d218f RW |
6112 | `(("python2-backport-ssl-match-hostname" |
6113 | ,python2-backport-ssl-match-hostname) | |
b455439b | 6114 | ("python2-singledispatch" ,python2-singledispatch) |
f22efa01 | 6115 | ,@(package-propagated-inputs tornado)))))) |
310d218f | 6116 | |
6b59fc10 EF |
6117 | ;; the python- version can be removed with python-3.5 |
6118 | (define-public python-backports-abc | |
6119 | (package | |
6120 | (name "python-backports-abc") | |
27f9148e | 6121 | (version "0.5") |
6b59fc10 EF |
6122 | (source |
6123 | (origin | |
6124 | (method url-fetch) | |
6125 | (uri (pypi-uri "backports_abc" version)) | |
6126 | (sha256 | |
6127 | (base32 | |
27f9148e | 6128 | "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3")))) |
6b59fc10 | 6129 | (build-system python-build-system) |
6b59fc10 | 6130 | (home-page "https://github.com/cython/backports_abc") |
66e07664 | 6131 | (synopsis "Backport of additions to the 'collections.abc' module") |
6b59fc10 EF |
6132 | (description |
6133 | "Python-backports-abc provides a backport of additions to the | |
6134 | 'collections.abc' module in Python-3.5.") | |
3f641af0 | 6135 | (license license:psfl))) |
6b59fc10 EF |
6136 | |
6137 | (define-public python2-backports-abc | |
6138 | (package-with-python2 python-backports-abc)) | |
6139 | ||
ec074213 TD |
6140 | (define-public python2-backports-shutil-get-terminal-size |
6141 | (package | |
6142 | (name "python2-backports-shutil-get-terminal-size") | |
6143 | (version "1.0.0") | |
6144 | (source | |
6145 | (origin | |
6146 | (method url-fetch) | |
6147 | (uri (pypi-uri "backports.shutil_get_terminal_size" version)) | |
6148 | (sha256 | |
6149 | (base32 | |
6150 | "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki")))) | |
6151 | (build-system python-build-system) | |
6152 | (arguments | |
c0446791 MB |
6153 | `(#:python ,python-2 |
6154 | #:phases | |
6155 | (modify-phases %standard-phases | |
6156 | (replace 'check | |
6157 | (lambda _ | |
6158 | (zero? (system* "py.test" "-v"))))))) | |
6159 | (native-inputs | |
6160 | `(("python2-pytest" ,python2-pytest))) | |
ec074213 TD |
6161 | (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size") |
6162 | (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}") | |
6163 | (description | |
6164 | "This package provides a backport of the @code{get_terminal_size | |
6165 | function} from Python 3.3's @code{shutil}. | |
6166 | Unlike the original version it is written in pure Python rather than C, | |
6167 | so it might be a tiny bit slower.") | |
6168 | (license license:expat))) | |
6169 | ||
feaae484 SB |
6170 | (define-public python-waf |
6171 | (package | |
6172 | (name "python-waf") | |
7dd55dfe | 6173 | (version "1.9.5") |
feaae484 SB |
6174 | (source (origin |
6175 | (method url-fetch) | |
bae67829 | 6176 | (uri (string-append "https://waf.io/" |
feaae484 SB |
6177 | "waf-" version ".tar.bz2")) |
6178 | (sha256 | |
6179 | (base32 | |
7dd55dfe | 6180 | "1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg")))) |
feaae484 SB |
6181 | (build-system python-build-system) |
6182 | (arguments | |
6183 | '(#:phases | |
6184 | (modify-phases %standard-phases | |
6185 | (replace 'build | |
7dd55dfe EF |
6186 | (lambda _ |
6187 | (zero? (system* "python" "waf-light" "configure" "build")))) | |
feaae484 | 6188 | (replace 'check |
7dd55dfe EF |
6189 | (lambda _ |
6190 | (zero? (system* "python" "waf" "--version")))) | |
feaae484 | 6191 | (replace 'install |
7dd55dfe EF |
6192 | (lambda _ |
6193 | (copy-file "waf" %output)))))) | |
6194 | (home-page "http://waf.io/") | |
feaae484 SB |
6195 | (synopsis "Python-based build system") |
6196 | (description | |
6197 | "Waf is a Python-based framework for configuring, compiling and installing | |
6198 | applications.") | |
3f641af0 | 6199 | (license license:bsd-3))) |
feaae484 SB |
6200 | |
6201 | (define-public python2-waf | |
6202 | (package-with-python2 python-waf)) | |
45203542 RW |
6203 | |
6204 | (define-public python-pyzmq | |
6205 | (package | |
6206 | (name "python-pyzmq") | |
3655ee76 | 6207 | (version "15.1.0") |
45203542 RW |
6208 | (source |
6209 | (origin | |
6210 | (method url-fetch) | |
3655ee76 | 6211 | (uri (pypi-uri "pyzmq" version)) |
45203542 | 6212 | (sha256 |
3655ee76 | 6213 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
45203542 RW |
6214 | (build-system python-build-system) |
6215 | (arguments | |
6216 | `(#:configure-flags | |
6217 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) | |
6218 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext | |
6219 | ;; --inplace' for 'python setup.py test' to work. | |
6220 | #:tests? #f)) | |
6221 | (inputs | |
6222 | `(("zeromq" ,zeromq))) | |
6223 | (native-inputs | |
6224 | `(("pkg-config" ,pkg-config) | |
f3b98f4f | 6225 | ("python-nose" ,python-nose))) |
45203542 RW |
6226 | (home-page "http://github.com/zeromq/pyzmq") |
6227 | (synopsis "Python bindings for 0MQ") | |
6228 | (description | |
6229 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") | |
3f641af0 | 6230 | (license license:bsd-4))) |
45203542 RW |
6231 | |
6232 | (define-public python2-pyzmq | |
6233 | (package-with-python2 python-pyzmq)) | |
d889e6c4 CR |
6234 | |
6235 | (define-public python-pep8 | |
6236 | (package | |
6237 | (name "python-pep8") | |
db251311 | 6238 | (version "1.7.0") |
d889e6c4 CR |
6239 | (source |
6240 | (origin | |
6241 | (method url-fetch) | |
db251311 | 6242 | (uri (pypi-uri "pep8" version)) |
d889e6c4 CR |
6243 | (sha256 |
6244 | (base32 | |
db251311 | 6245 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
d889e6c4 | 6246 | (build-system python-build-system) |
d889e6c4 CR |
6247 | (home-page "http://pep8.readthedocs.org/") |
6248 | (synopsis "Python style guide checker") | |
6249 | (description | |
6250 | "This tools checks Python code against some of the style conventions in | |
6251 | PEP 8.") | |
6252 | (license license:expat))) | |
6253 | ||
6254 | (define-public python2-pep8 | |
6255 | (package-with-python2 python-pep8)) | |
e31d7f44 CR |
6256 | |
6257 | (define-public python-pyflakes | |
6258 | (package | |
6259 | (name "python-pyflakes") | |
2abc3972 | 6260 | (version "1.0.0") |
e31d7f44 CR |
6261 | (source |
6262 | (origin | |
6263 | (method url-fetch) | |
2abc3972 | 6264 | (uri (pypi-uri "pyflakes" version)) |
e31d7f44 CR |
6265 | (sha256 |
6266 | (base32 | |
2abc3972 | 6267 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
e31d7f44 | 6268 | (build-system python-build-system) |
e31d7f44 CR |
6269 | (home-page |
6270 | "https://github.com/pyflakes/pyflakes") | |
6271 | (synopsis "Passive checker of Python programs") | |
6272 | (description | |
6273 | "Pyflakes statically checks Python source code for common errors.") | |
6274 | (license license:expat))) | |
a59e017c | 6275 | |
7261d9eb CR |
6276 | (define-public python2-pyflakes |
6277 | (package-with-python2 python-pyflakes)) | |
6278 | ||
a59e017c CR |
6279 | (define-public python-mccabe |
6280 | (package | |
6281 | (name "python-mccabe") | |
c6ebd40d | 6282 | (version "0.4.0") |
a59e017c CR |
6283 | (source |
6284 | (origin | |
6285 | (method url-fetch) | |
c6ebd40d | 6286 | (uri (pypi-uri "mccabe" version)) |
a59e017c CR |
6287 | (sha256 |
6288 | (base32 | |
c6ebd40d | 6289 | "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) |
a59e017c | 6290 | (build-system python-build-system) |
328bb95d | 6291 | (native-inputs |
c6ebd40d | 6292 | `(("python-pytest" ,python-pytest) |
f3b98f4f | 6293 | ("python-pytest-runner" ,python-pytest-runner))) |
a59e017c CR |
6294 | (home-page "https://github.com/flintwork/mccabe") |
6295 | (synopsis "McCabe checker, plugin for flake8") | |
6296 | (description | |
6297 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic | |
6298 | complexity of Python source code.") | |
7362371d | 6299 | (license license:expat))) |
a59e017c CR |
6300 | |
6301 | (define-public python2-mccabe | |
6302 | (package-with-python2 python-mccabe)) | |
e8df8f47 | 6303 | |
7477fbb1 CR |
6304 | (define-public python-mccabe-0.2.1 |
6305 | (package (inherit python-mccabe) | |
6306 | (version "0.2.1") | |
6307 | (source | |
6308 | (origin | |
6309 | (method url-fetch) | |
6310 | (uri (pypi-uri "mccabe" version)) | |
6311 | (sha256 | |
6312 | (base32 | |
f3b98f4f | 6313 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))))) |
7477fbb1 CR |
6314 | |
6315 | (define-public python2-mccabe-0.2.1 | |
6316 | (package-with-python2 python-mccabe-0.2.1)) | |
6317 | ||
e8df8f47 CR |
6318 | ;; Flake8 2.4.1 requires an older version of pep8. |
6319 | ;; This should be removed ASAP. | |
6320 | (define-public python-pep8-1.5.7 | |
6321 | (package (inherit python-pep8) | |
6322 | (version "1.5.7") | |
6323 | (source | |
6324 | (origin | |
6325 | (method url-fetch) | |
6326 | (uri (string-append | |
6327 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
6328 | version | |
6329 | ".tar.gz")) | |
6330 | (sha256 | |
6331 | (base32 | |
73e3060d MB |
6332 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))) |
6333 | (arguments | |
6334 | ;; XXX Tests not compatible with Python 3.5. | |
6335 | '(#:tests? #f)))) | |
e8df8f47 CR |
6336 | |
6337 | (define-public python2-pep8-1.5.7 | |
6338 | (package-with-python2 python-pep8-1.5.7)) | |
6339 | ||
6340 | ;; Flake8 2.4.1 requires an older version of pyflakes. | |
6341 | ;; This should be removed ASAP. | |
6342 | (define-public python-pyflakes-0.8.1 | |
6343 | (package (inherit python-pyflakes) | |
6344 | (version "0.8.1") | |
6345 | (source | |
6346 | (origin | |
6347 | (method url-fetch) | |
6348 | (uri (string-append | |
6349 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
6350 | version | |
6351 | ".tar.gz")) | |
6352 | (sha256 | |
6353 | (base32 | |
0d84e1ef MB |
6354 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))) |
6355 | (arguments | |
6356 | ;; XXX Tests not compatible with Python 3.5. | |
6357 | '(#:tests? #f)))) | |
e8df8f47 CR |
6358 | |
6359 | (define-public python2-pyflakes-0.8.1 | |
7261d9eb | 6360 | (package-with-python2 python-pyflakes-0.8.1)) |
e8df8f47 CR |
6361 | |
6362 | (define-public python-flake8 | |
6363 | (package | |
6364 | (name "python-flake8") | |
43789136 | 6365 | (version "2.5.4") |
e8df8f47 CR |
6366 | (source |
6367 | (origin | |
6368 | (method url-fetch) | |
1b995533 | 6369 | (uri (pypi-uri "flake8" version)) |
e8df8f47 CR |
6370 | (sha256 |
6371 | (base32 | |
011271c7 HG |
6372 | "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")) |
6373 | (modules '((guix build utils))) | |
6374 | (snippet | |
6375 | '(begin | |
6376 | ;; Remove pre-compiled .pyc files from source. | |
6377 | (for-each delete-file-recursively | |
6378 | (find-files "." "__pycache__" #:directories? #t)) | |
6379 | (for-each delete-file (find-files "." "\\.pyc$")) | |
6380 | #t)))) | |
e8df8f47 | 6381 | (build-system python-build-system) |
482d9591 | 6382 | (propagated-inputs |
f3b98f4f | 6383 | `(("python-pep8" ,python-pep8) |
43789136 | 6384 | ("python-pyflakes" ,python-pyflakes) |
482d9591 | 6385 | ("python-mccabe" ,python-mccabe))) |
328bb95d HG |
6386 | (native-inputs |
6387 | `(("python-mock" ,python-mock) ; TODO: only required for < 3.3 | |
e8df8f47 CR |
6388 | ("python-nose" ,python-nose))) |
6389 | (home-page "https://gitlab.com/pycqa/flake8") | |
6390 | (synopsis | |
6391 | "The modular source code checker: pep8, pyflakes and co") | |
6392 | (description | |
6393 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") | |
6394 | (license license:expat))) | |
6395 | ||
6396 | (define-public python2-flake8 | |
6397 | (package-with-python2 python-flake8)) | |
61b9ac53 | 6398 | |
abf21efc CR |
6399 | ;; This will only be needed by the python-hacking package and will not be |
6400 | ;; necessary once python-hacking > 0.10.2 is released. | |
6401 | (define-public python-flake8-2.2.4 | |
6402 | (package (inherit python-flake8) | |
482d9591 | 6403 | (propagated-inputs |
f3b98f4f | 6404 | `(("python-pep8" ,python-pep8-1.5.7) |
abf21efc | 6405 | ("python-pyflakes" ,python-pyflakes-0.8.1) |
482d9591 | 6406 | ("python-mccabe" ,python-mccabe-0.2.1))) |
328bb95d | 6407 | (native-inputs |
482d9591 | 6408 | `(("python-mock" ,python-mock) |
abf21efc CR |
6409 | ("python-nose" ,python-nose))) |
6410 | (version "2.2.4") | |
6411 | (source | |
6412 | (origin | |
6413 | (method url-fetch) | |
6414 | (uri (pypi-uri "flake8" version)) | |
6415 | (sha256 | |
6416 | (base32 | |
b9c8ccce HG |
6417 | "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8")) |
6418 | (modules '((guix build utils))) | |
6419 | (snippet | |
6420 | '(begin | |
6421 | ;; Remove pre-compiled .pyc files from source. | |
6422 | (for-each delete-file-recursively | |
6423 | (find-files "." "__pycache__" #:directories? #t)) | |
6424 | (for-each delete-file (find-files "." "\\.pyc$")) | |
a717e8a6 MB |
6425 | #t)))) |
6426 | (arguments | |
6427 | ;; XXX Fails with Python 3.5. | |
6428 | '(#:tests? #f)))) | |
abf21efc CR |
6429 | |
6430 | (define-public python2-flake8-2.2.4 | |
6431 | (package-with-python2 python-flake8-2.2.4)) | |
6432 | ||
1f42d824 MFM |
6433 | (define-public python-flake8-polyfill |
6434 | (package | |
6435 | (name "python-flake8-polyfill") | |
6436 | (version "1.0.1") | |
6437 | (source | |
6438 | (origin | |
6439 | (method url-fetch) | |
6440 | (uri (pypi-uri "flake8-polyfill" version)) | |
6441 | (sha256 | |
6442 | (base32 | |
6443 | "02gn2wxvh9vnf7m7dld7ca4l60mg5c370hv3swwppkngwaqmcw67")))) | |
6444 | (build-system python-build-system) | |
2c1cad7a MB |
6445 | (arguments |
6446 | '(#:phases | |
6447 | (modify-phases %standard-phases | |
6448 | (replace 'check | |
6449 | (lambda _ | |
6450 | (setenv "PYTHONPATH" | |
6451 | (string-append (getcwd) "/build/lib:" | |
6452 | (getenv "PYTHONPATH"))) | |
6453 | (zero? (system* "py.test" "-v"))))))) | |
6454 | (native-inputs | |
6455 | `(("python-flake8" ,python-flake8) | |
6456 | ("python-mock" ,python-mock) | |
6457 | ("python-pycodestyle" ,python-pycodestyle) | |
6458 | ("python-pytest" ,python-pytest))) | |
1f42d824 MFM |
6459 | (home-page "https://gitlab.com/pycqa/flake8-polyfill") |
6460 | (synopsis "Polyfill package for Flake8 plugins") | |
6461 | (description | |
6462 | "This package that provides some compatibility helpers for Flake8 | |
6463 | plugins that intend to support Flake8 2.x and 3.x simultaneously.") | |
6464 | (license license:expat))) | |
6465 | ||
6466 | (define-public python2-flake8-polyfill | |
6467 | (package-with-python2 python-flake8-polyfill)) | |
6468 | ||
61b9ac53 FB |
6469 | (define-public python-mistune |
6470 | (package | |
6471 | (name "python-mistune") | |
08b81336 | 6472 | (version "0.7.3") |
61b9ac53 FB |
6473 | (source |
6474 | (origin | |
6475 | (method url-fetch) | |
eff8d773 | 6476 | (uri (pypi-uri "mistune" version)) |
61b9ac53 FB |
6477 | (sha256 |
6478 | (base32 | |
08b81336 | 6479 | "04xpk1zvslhq3xpnf01g3ag0dy9wfv4z28p093r8k49vvxlyil11")))) |
61b9ac53 | 6480 | (build-system python-build-system) |
328bb95d | 6481 | (native-inputs |
f3b98f4f | 6482 | `(("python-nose" ,python-nose) |
61b9ac53 FB |
6483 | ("python-cython" ,python-cython))) |
6484 | (home-page "https://github.com/lepture/mistune") | |
6485 | (synopsis "Markdown parser in pure Python") | |
6486 | (description "This package provides a fast markdown parser in pure | |
6487 | Python.") | |
3f641af0 | 6488 | (license license:bsd-3))) |
61b9ac53 FB |
6489 | |
6490 | (define-public python2-mistune | |
6491 | (package-with-python2 python-mistune)) | |
6d992d07 | 6492 | |
b9893908 EE |
6493 | (define-public python-markdown |
6494 | (package | |
6495 | (name "python-markdown") | |
791ac6a6 | 6496 | (version "2.6.7") |
b9893908 EE |
6497 | (source |
6498 | (origin | |
6499 | (method url-fetch) | |
6500 | (uri (pypi-uri "Markdown" version)) | |
6501 | (sha256 | |
6502 | (base32 | |
791ac6a6 | 6503 | "1h055llfd0ps0ig7qb3v1j9068xv90dc9s7xkhkgz9zg8r4g5sys")))) |
b9893908 EE |
6504 | (build-system python-build-system) |
6505 | (arguments | |
6506 | `(#:phases | |
6507 | (modify-phases %standard-phases | |
6508 | (replace 'check | |
6509 | (lambda _ | |
6510 | (zero? (system* "python" "run-tests.py"))))))) | |
6511 | (native-inputs | |
6512 | `(("python-nose" ,python-nose) | |
6513 | ("python-pyyaml" ,python-pyyaml))) | |
6514 | (home-page "https://pythonhosted.org/Markdown/") | |
6515 | (synopsis "Python implementation of Markdown") | |
6516 | (description | |
6517 | "This package provides a Python implementation of John Gruber's | |
6518 | Markdown. The library features international input, various Markdown | |
6519 | extensions, and several HTML output formats. A command line wrapper | |
6520 | markdown_py is also provided to convert Markdown files to HTML.") | |
3f641af0 | 6521 | (license license:bsd-3))) |
b9893908 EE |
6522 | |
6523 | (define-public python2-markdown | |
6524 | (package-with-python2 python-markdown)) | |
6525 | ||
6d992d07 FB |
6526 | (define-public python-ptyprocess |
6527 | (package | |
6528 | (name "python-ptyprocess") | |
6529 | (version "0.5") | |
6530 | (source | |
6531 | (origin | |
6532 | (method url-fetch) | |
6533 | (uri (string-append | |
6534 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" | |
6535 | version ".tar.gz")) | |
6536 | (sha256 | |
6537 | (base32 | |
6538 | "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw")))) | |
6539 | (build-system python-build-system) | |
328bb95d | 6540 | (native-inputs |
f3b98f4f | 6541 | `(("python-nose" ,python-nose))) |
6d992d07 FB |
6542 | (arguments |
6543 | `(#:phases | |
6544 | (modify-phases %standard-phases | |
6545 | (replace 'check | |
6546 | (lambda _ | |
6547 | (zero? (system* "nosetests"))))))) | |
6548 | (home-page "https://github.com/pexpect/ptyprocess") | |
6549 | (synopsis "Run a subprocess in a pseudo terminal") | |
6550 | (description | |
6551 | "This package provides a Python library used to launch a subprocess in a | |
6552 | pseudo terminal (pty), and interact with both the process and its pty.") | |
3f641af0 | 6553 | (license license:isc))) |
6d992d07 FB |
6554 | |
6555 | (define-public python2-ptyprocess | |
6556 | (package-with-python2 python-ptyprocess)) | |
4aadb1df | 6557 | |
df893a38 MB |
6558 | (define-public python-cram |
6559 | (package | |
6560 | (name "python-cram") | |
6561 | (version "0.7") | |
6562 | (home-page "https://bitheap.org/cram/") | |
6563 | (source (origin | |
6564 | (method url-fetch) | |
6565 | (uri (list (string-append home-page "cram-" | |
6566 | version ".tar.gz") | |
6567 | (pypi-uri "cram" version))) | |
6568 | (sha256 | |
6569 | (base32 | |
6570 | "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx")))) | |
6571 | (arguments | |
6572 | '(#:phases | |
6573 | (modify-phases %standard-phases | |
6574 | (add-after 'unpack 'patch-source | |
6575 | (lambda _ | |
6576 | (substitute* (find-files "cram" ".*\\.py$") | |
6577 | ;; Replace default shell path. | |
6578 | (("/bin/sh") (which "sh"))) | |
6579 | (substitute* (find-files "tests" ".*\\.t$") | |
6580 | (("md5") "md5sum") | |
6581 | (("/bin/bash") (which "bash")) | |
6582 | (("/bin/sh") (which "sh"))) | |
6583 | (substitute* "cram/_test.py" | |
6584 | ;; This hack works around a bug triggered by substituting | |
6585 | ;; the /bin/sh paths. "tests/usage.t" compares the output of | |
6586 | ;; "cram -h", which breaks the output at 80 characters. This | |
6587 | ;; causes the line showing the default shell to break into two | |
6588 | ;; lines, but the test expects a single line... | |
6589 | (("env\\['COLUMNS'\\] = '80'") | |
6590 | "env['COLUMNS'] = '160'")) | |
6591 | #t)) | |
6592 | (delete 'check) | |
6593 | (add-after 'install 'check | |
6594 | ;; The test phase uses the built library and executable. | |
6595 | ;; It's easier to run it after install since the build | |
6596 | ;; directory contains version-specific PATH. | |
6597 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
6598 | (add-installed-pythonpath inputs outputs) | |
6599 | (setenv "PATH" (string-append (getenv "PATH") ":" | |
6600 | (assoc-ref outputs "out") "/bin")) | |
6601 | (zero? (system* "make" "test"))))))) | |
6602 | (build-system python-build-system) | |
6603 | (native-inputs | |
6604 | `(("python-coverage" ,python-coverage) | |
6605 | ("which" ,which))) | |
6606 | (synopsis "Simple testing framework for command line applications") | |
6607 | (description | |
6608 | "Cram is a functional testing framework for command line applications. | |
6609 | Cram tests look like snippets of interactive shell sessions. Cram runs each | |
6610 | command and compares the command output in the test with the command’s actual | |
6611 | output.") | |
6612 | (license license:gpl2+))) | |
6613 | ||
6614 | (define-public python2-cram | |
6615 | (package-with-python2 python-cram)) | |
6616 | ||
4aadb1df FB |
6617 | (define-public python-terminado |
6618 | (package | |
6619 | (name "python-terminado") | |
783fb0a3 | 6620 | (version "0.6") |
4aadb1df FB |
6621 | (source |
6622 | (origin | |
6623 | (method url-fetch) | |
783fb0a3 | 6624 | (uri (pypi-uri "terminado" version)) |
4aadb1df FB |
6625 | (sha256 |
6626 | (base32 | |
783fb0a3 | 6627 | "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) |
4aadb1df FB |
6628 | (build-system python-build-system) |
6629 | (propagated-inputs | |
6630 | `(("python-tornado" ,python-tornado) | |
6631 | ("python-ptyprocess" ,python-ptyprocess))) | |
783fb0a3 EF |
6632 | (native-inputs |
6633 | `(("python-nose" ,python-nose))) | |
4aadb1df FB |
6634 | (arguments |
6635 | `(#:phases | |
6636 | (modify-phases %standard-phases | |
6637 | (replace 'check | |
6638 | (lambda _ | |
6639 | (zero? (system* "nosetests"))))))) | |
6640 | (home-page "https://github.com/takluyver/terminado") | |
6641 | (synopsis "Terminals served to term.js using Tornado websockets") | |
6642 | (description "This package provides a Tornado websocket backend for the | |
6643 | term.js Javascript terminal emulator library.") | |
3f641af0 | 6644 | (license license:bsd-2) |
783fb0a3 | 6645 | (properties `((python2-variant . ,(delay python2-terminado)))))) |
4aadb1df FB |
6646 | |
6647 | (define-public python2-terminado | |
783fb0a3 | 6648 | (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) |
4aadb1df | 6649 | (package (inherit terminado) |
783fb0a3 EF |
6650 | (propagated-inputs |
6651 | `(("python2-backport-ssl-match-hostname" | |
6652 | ,python2-backport-ssl-match-hostname) | |
00e10c6e | 6653 | ,@(package-propagated-inputs terminado)))))) |
5faa5ce4 | 6654 | |
789de5e2 | 6655 | (define-public python-straight-plugin |
6656 | (package | |
6657 | (name "python-straight-plugin") | |
6658 | (version "1.4.1") | |
6659 | (source | |
6660 | (origin | |
6661 | (method url-fetch) | |
6662 | (uri (pypi-uri "straight.plugin" version)) | |
6663 | (sha256 | |
6664 | (base32 | |
6665 | "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62")))) | |
6666 | (build-system python-build-system) | |
6667 | (home-page "https://github.com/ironfroggy/straight.plugin") | |
6668 | (synopsis "Simple namespaced plugin facility") | |
6669 | (description "Straight Plugin provides a type of plugin you can create from | |
6670 | almost any existing Python modules, and an easy way for outside developers to | |
6671 | add functionality and customization to your projects with their own plugins.") | |
6672 | (license license:expat))) | |
6673 | ||
6674 | (define-public python2-straight-plugin | |
6675 | (package-with-python2 python-straight-plugin)) | |
6676 | ||
d582eaac SB |
6677 | (define-public python-fonttools |
6678 | (package | |
6679 | (name "python-fonttools") | |
6680 | (version "2.5") | |
6681 | (source (origin | |
6682 | (method url-fetch) | |
6683 | (uri (string-append | |
6684 | "https://pypi.python.org/packages/source/F/FontTools/" | |
6685 | "fonttools-" version ".tar.gz")) | |
6686 | (sha256 | |
6687 | (base32 | |
6688 | "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) | |
6689 | (build-system python-build-system) | |
9e8c6a37 HG |
6690 | (arguments |
6691 | '(#:test-target "check" | |
6692 | #:phases | |
6693 | (modify-phases %standard-phases | |
6694 | (add-after 'unpack 'patch-setuppy | |
6695 | ;; Remove the undocumented "extra_path" argument, which adds an | |
6696 | ;; intervening directories between site-packages and the package | |
6697 | ;; directory. | |
6698 | (lambda _ | |
6699 | (substitute* "setup.py" | |
6700 | (("^[ \t]*extra_path *= *'FontTools',") "")) | |
6701 | #t))))) | |
d582eaac SB |
6702 | (home-page "http://github.com/behdad/fonttools") |
6703 | (synopsis "Tools to manipulate font files") | |
6704 | (description | |
6705 | "FontTools/TTX is a library to manipulate font files from Python. It | |
9e8c6a37 | 6706 | supports reading and writing of TrueType/OpenType fonts, reading and writing |
d582eaac SB |
6707 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package |
6708 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and | |
6709 | from an XML-based format.") | |
3f641af0 DC |
6710 | (license (license:non-copyleft |
6711 | "file://LICENSE.txt" | |
6712 | "See LICENSE.txt in the distribution.")))) | |
d582eaac SB |
6713 | |
6714 | (define-public python2-fonttools | |
6715 | (package-with-python2 python-fonttools)) | |
75710da6 | 6716 | |
5faa5ce4 RW |
6717 | (define-public python-ly |
6718 | (package | |
6719 | (name "python-ly") | |
5135354f | 6720 | (version "0.9.4") |
5faa5ce4 RW |
6721 | (source |
6722 | (origin | |
6723 | (method url-fetch) | |
5135354f RW |
6724 | (uri (string-append "https://pypi.python.org/packages/57/4f/" |
6725 | "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" | |
6726 | "/python-ly-" version ".tar.gz")) | |
5faa5ce4 RW |
6727 | (sha256 |
6728 | (base32 | |
5135354f | 6729 | "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62")))) |
5faa5ce4 | 6730 | (build-system python-build-system) |
972cf9be MB |
6731 | (arguments |
6732 | ;; FIXME: Some tests need network access. | |
6733 | '(#:tests? #f)) | |
5faa5ce4 RW |
6734 | (synopsis "Tool and library for manipulating LilyPond files") |
6735 | (description "This package provides a Python library to parse, manipulate | |
6736 | or create documents in LilyPond format. A command line program ly is also | |
6737 | provided that can be used to do various manipulations with LilyPond files.") | |
6738 | (home-page "https://pypi.python.org/pypi/python-ly") | |
3f641af0 | 6739 | (license license:gpl2+))) |
7e7b27d9 CR |
6740 | |
6741 | (define-public python-appdirs | |
6742 | (package | |
6743 | (name "python-appdirs") | |
6744 | (version "1.4.0") | |
6745 | (source | |
6746 | (origin | |
6747 | (method url-fetch) | |
6748 | (uri (string-append | |
6749 | "https://pypi.python.org/packages/source/a/appdirs/appdirs-" | |
6750 | version | |
6751 | ".tar.gz")) | |
6752 | (sha256 | |
6753 | (base32 | |
6754 | "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg")))) | |
6755 | (build-system python-build-system) | |
7e7b27d9 CR |
6756 | (home-page "http://github.com/ActiveState/appdirs") |
6757 | (synopsis | |
6758 | "Determine platform-specific dirs, e.g. a \"user data dir\"") | |
6759 | (description | |
6760 | "This module provides a portable way of finding out where user data | |
6761 | should be stored on various operating systems.") | |
6762 | (license license:expat))) | |
6763 | ||
6764 | (define-public python2-appdirs | |
6765 | (package-with-python2 python-appdirs)) | |
89b2e0b0 LF |
6766 | |
6767 | (define-public python-llfuse | |
6768 | (package | |
6769 | (name "python-llfuse") | |
e36ace36 | 6770 | (version "1.1.1") |
89b2e0b0 LF |
6771 | (source (origin |
6772 | (method url-fetch) | |
6773 | (uri (string-append | |
6774 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
6775 | "llfuse-" version ".tar.bz2")) | |
6776 | (sha256 | |
6777 | (base32 | |
e36ace36 | 6778 | "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v")))) |
89b2e0b0 LF |
6779 | (build-system python-build-system) |
6780 | (inputs | |
6781 | `(("fuse" ,fuse) | |
6782 | ("attr" ,attr))) | |
6783 | (native-inputs | |
f3b98f4f | 6784 | `(("pkg-config" ,pkg-config))) |
89b2e0b0 LF |
6785 | (synopsis "Python bindings for FUSE") |
6786 | (description | |
6787 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") | |
6788 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") | |
3f641af0 | 6789 | (license license:lgpl2.0+) |
cd0569c4 | 6790 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
89b2e0b0 LF |
6791 | |
6792 | (define-public python2-llfuse | |
cd0569c4 LF |
6793 | (package (inherit (package-with-python2 |
6794 | (strip-python2-variant python-llfuse))) | |
6795 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) | |
6796 | ||
6797 | ;; For attic-0.16 | |
6798 | (define-public python-llfuse-0.41 | |
6799 | (package (inherit python-llfuse) | |
229b3661 | 6800 | (version "0.41.1") |
cd0569c4 LF |
6801 | (source (origin |
6802 | (method url-fetch) | |
6803 | (uri (string-append | |
6804 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
6805 | "llfuse-" version ".tar.bz2")) | |
6806 | (sha256 | |
6807 | (base32 | |
229b3661 | 6808 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
cd0569c4 LF |
6809 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
6810 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. | |
3f641af0 | 6811 | (license (list license:expat license:lgpl2.0+)))) |
641c9871 LF |
6812 | |
6813 | (define-public python-msgpack | |
6814 | (package | |
6815 | (name "python-msgpack") | |
aed625bd | 6816 | (version "0.4.8") |
641c9871 LF |
6817 | (source (origin |
6818 | (method url-fetch) | |
ae831df4 | 6819 | (uri (pypi-uri "msgpack-python" version)) |
641c9871 LF |
6820 | (sha256 |
6821 | (base32 | |
aed625bd | 6822 | "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs")))) |
641c9871 | 6823 | (build-system python-build-system) |
641c9871 LF |
6824 | (synopsis "MessagePack (de)serializer") |
6825 | (description "MessagePack is a fast, compact binary serialization format, | |
6826 | suitable for similar data to JSON. This package provides CPython bindings for | |
6827 | reading and writing MessagePack data.") | |
6828 | (home-page "https://pypi.python.org/pypi/msgpack-python/") | |
f210e944 | 6829 | (license license:asl2.0))) |
bd74be7b LF |
6830 | |
6831 | (define-public python2-msgpack | |
f210e944 | 6832 | (package-with-python2 python-msgpack)) |
641c9871 | 6833 | |
6e5e39f4 CR |
6834 | (define-public python-netaddr |
6835 | (package | |
6836 | (name "python-netaddr") | |
6837 | (version "0.7.18") | |
6838 | (source | |
6839 | (origin | |
6840 | (method url-fetch) | |
6841 | (uri (string-append | |
6842 | "https://pypi.python.org/packages/source/n/netaddr/netaddr-" | |
6843 | version | |
6844 | ".tar.gz")) | |
6845 | (sha256 | |
6846 | (base32 | |
6847 | "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) | |
6848 | (build-system python-build-system) | |
6849 | (arguments `(#:tests? #f)) ;; No tests. | |
6e5e39f4 CR |
6850 | (home-page "https://github.com/drkjam/netaddr/") |
6851 | (synopsis "Pythonic manipulation of network addresses") | |
6852 | (description | |
6853 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI | |
6854 | and MAC network addresses.") | |
3f641af0 | 6855 | (license license:bsd-3))) |
6e5e39f4 CR |
6856 | |
6857 | (define-public python2-netaddr | |
6858 | (package-with-python2 python-netaddr)) | |
8c692a52 CR |
6859 | |
6860 | (define-public python-wrapt | |
6861 | (package | |
6862 | (name "python-wrapt") | |
6863 | (version "1.10.5") | |
6864 | (source | |
6865 | (origin | |
6866 | (method url-fetch) | |
6867 | (uri (string-append | |
6868 | "https://pypi.python.org/packages/source/w/wrapt/wrapt-" | |
6869 | version | |
6870 | ".tar.gz")) | |
6871 | (sha256 | |
6872 | (base32 | |
6873 | "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) | |
6874 | (build-system python-build-system) | |
6875 | (arguments | |
6876 | ;; Tests are not included in the tarball, they are only available in the | |
6877 | ;; git repository. | |
6878 | `(#:tests? #f)) | |
8c692a52 CR |
6879 | (home-page "https://github.com/GrahamDumpleton/wrapt") |
6880 | (synopsis "Module for decorators, wrappers and monkey patching") | |
6881 | (description | |
6882 | "The aim of the wrapt module is to provide a transparent object proxy for | |
6883 | Python, which can be used as the basis for the construction of function | |
6884 | wrappers and decorator functions.") | |
3f641af0 | 6885 | (license license:bsd-2))) |
8c692a52 CR |
6886 | |
6887 | (define-public python2-wrapt | |
6888 | (package-with-python2 python-wrapt)) | |
b85c85be CR |
6889 | |
6890 | (define-public python-iso8601 | |
6891 | (package | |
6892 | (name "python-iso8601") | |
fe84bc9a | 6893 | (version "0.1.11") |
b85c85be CR |
6894 | (source |
6895 | (origin | |
6896 | (method url-fetch) | |
fe84bc9a | 6897 | (uri (pypi-uri "iso8601" version)) |
b85c85be | 6898 | (sha256 |
fe84bc9a EF |
6899 | (base32 |
6900 | "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8")))) | |
b85c85be | 6901 | (build-system python-build-system) |
63b02364 MB |
6902 | (native-inputs |
6903 | `(("python-pytest" ,python-pytest))) | |
b85c85be CR |
6904 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") |
6905 | (synopsis "Module to parse ISO 8601 dates") | |
6906 | (description | |
6907 | "This module parses the most common forms of ISO 8601 date strings (e.g. | |
6908 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") | |
6909 | (license license:expat))) | |
6910 | ||
6911 | (define-public python2-iso8601 | |
6912 | (package-with-python2 python-iso8601)) | |
5e412b63 CR |
6913 | |
6914 | (define-public python-monotonic | |
6915 | (package | |
6916 | (name "python-monotonic") | |
6917 | (version "0.3") | |
6918 | (source | |
6919 | (origin | |
6920 | (method url-fetch) | |
6921 | (uri (string-append | |
6922 | "https://pypi.python.org/packages/source/m/monotonic/monotonic-" | |
6923 | version | |
6924 | ".tar.gz")) | |
6925 | (sha256 | |
6926 | (base32 | |
6927 | "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) | |
6928 | (build-system python-build-system) | |
5e412b63 CR |
6929 | (home-page "https://github.com/atdt/monotonic") |
6930 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") | |
6931 | (description | |
6932 | "This module provides a monotonic() function which returns the value (in | |
6933 | fractional seconds) of a clock which never goes backwards.") | |
3f641af0 | 6934 | (license license:asl2.0))) |
5e412b63 CR |
6935 | |
6936 | (define-public python2-monotonic | |
6937 | (package-with-python2 python-monotonic)) | |
de34afac CR |
6938 | |
6939 | (define-public python-webob | |
6940 | (package | |
6941 | (name "python-webob") | |
b8834c21 | 6942 | (version "1.5.1") |
de34afac CR |
6943 | (source |
6944 | (origin | |
6945 | (method url-fetch) | |
b8834c21 | 6946 | (uri (pypi-uri "WebOb" version)) |
de34afac CR |
6947 | (sha256 |
6948 | (base32 | |
b8834c21 | 6949 | "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) |
de34afac | 6950 | (build-system python-build-system) |
328bb95d | 6951 | (native-inputs |
f3b98f4f | 6952 | `(("python-nose" ,python-nose))) |
de34afac CR |
6953 | (home-page "http://webob.org/") |
6954 | (synopsis "WSGI request and response object") | |
6955 | (description | |
6956 | "WebOb provides wrappers around the WSGI request environment, and an | |
6957 | object to help create WSGI responses.") | |
6958 | (license license:expat))) | |
6959 | ||
6960 | (define-public python2-webob | |
6961 | (package-with-python2 python-webob)) | |
350ba0a3 | 6962 | |
02a8a187 BW |
6963 | (define-public python-xlrd |
6964 | (package | |
6965 | (name "python-xlrd") | |
c2ad4d70 | 6966 | (version "1.0.0") |
02a8a187 BW |
6967 | (source (origin |
6968 | (method url-fetch) | |
e775f48e | 6969 | (uri (pypi-uri "xlrd" version)) |
02a8a187 BW |
6970 | (sha256 |
6971 | (base32 | |
c2ad4d70 | 6972 | "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g")))) |
02a8a187 BW |
6973 | (build-system python-build-system) |
6974 | (arguments | |
6975 | `(#:phases | |
6976 | (modify-phases %standard-phases | |
c2ad4d70 | 6977 | ;; Current test in setup.py does not work as of 1.0.0, so use nose to |
02a8a187 BW |
6978 | ;; run tests instead for now. |
6979 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
f3b98f4f | 6980 | (native-inputs `(("python-nose" ,python-nose))) |
02a8a187 BW |
6981 | (home-page "http://www.python-excel.org/") |
6982 | (synopsis "Library for extracting data from Excel files") | |
6983 | (description "This packages provides a library to extract data from | |
c598e35c | 6984 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
02a8a187 BW |
6985 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
6986 | Unicode-aware. It is not intended as an end-user tool.") | |
3f641af0 | 6987 | (license license:bsd-3))) |
02a8a187 BW |
6988 | |
6989 | (define-public python2-xlrd | |
6990 | (package-with-python2 python-xlrd)) | |
6991 | ||
350ba0a3 CR |
6992 | (define-public python-prettytable |
6993 | (package | |
6994 | (name "python-prettytable") | |
6995 | (version "0.7.2") | |
6996 | (source | |
6997 | (origin | |
6998 | (method url-fetch) | |
6999 | (uri (string-append | |
7000 | "https://pypi.python.org/packages/source/P/PrettyTable/" | |
7001 | "prettytable-" version ".tar.bz2")) | |
7002 | (sha256 | |
7003 | (base32 | |
7004 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) | |
7005 | (build-system python-build-system) | |
350ba0a3 CR |
7006 | (home-page "http://code.google.com/p/prettytable/") |
7007 | (synopsis "Display tabular data in an ASCII table format") | |
7008 | (description | |
7009 | "A library designed to represent tabular data in visually appealing ASCII | |
7010 | tables. PrettyTable allows for selection of which columns are to be printed, | |
7011 | independent alignment of columns (left or right justified or centred) and | |
7012 | printing of sub-tables by specifying a row range.") | |
3f641af0 | 7013 | (license license:bsd-3))) |
350ba0a3 CR |
7014 | |
7015 | (define-public python2-prettytable | |
7016 | (package-with-python2 python-prettytable)) | |
7a8ac75a | 7017 | |
9f8ee3fe RW |
7018 | (define-public python-tables |
7019 | (package | |
7020 | (name "python-tables") | |
7021 | (version "3.2.2") | |
7022 | (source | |
7023 | (origin | |
7024 | (method url-fetch) | |
7025 | (uri (pypi-uri "tables" version)) | |
7026 | (sha256 | |
7027 | (base32 | |
bac23672 HG |
7028 | "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m")) |
7029 | (modules '((guix build utils))) | |
7030 | (snippet | |
7031 | '(begin | |
7032 | ;; Remove pre-compiled .pyc files from source. | |
7033 | (for-each delete-file-recursively | |
7034 | (find-files "." "__pycache__" #:directories? #t)) | |
7035 | (for-each delete-file (find-files "." "\\.pyc$")) | |
7036 | #t)))) | |
9f8ee3fe RW |
7037 | (build-system python-build-system) |
7038 | (arguments | |
7039 | `(;; FIXME: python-build-system does not pass configure-flags to "build" | |
7040 | ;; or "check", so we must override the build and check phases. | |
7041 | #:phases | |
7042 | (modify-phases %standard-phases | |
7043 | (add-after 'unpack 'use-gcc | |
7044 | (lambda _ | |
7045 | (substitute* "setup.py" | |
7046 | (("compiler = new_compiler\\(\\)" line) | |
7047 | (string-append line | |
7048 | "\ncompiler.set_executables(compiler='gcc'," | |
7049 | "compiler_so='gcc'," | |
7050 | "linker_exe='gcc'," | |
7051 | "linker_so='gcc -shared')"))) | |
7052 | #t)) | |
7053 | (replace 'build | |
7054 | (lambda* (#:key inputs #:allow-other-keys) | |
7055 | (zero? (system* "python" "setup.py" "build" | |
7056 | (string-append "--hdf5=" | |
7057 | (assoc-ref inputs "hdf5")))))) | |
7058 | (replace 'check | |
7059 | (lambda* (#:key inputs #:allow-other-keys) | |
7060 | (zero? (system* "python" "setup.py" "check" | |
7061 | (string-append "--hdf5=" | |
7062 | (assoc-ref inputs "hdf5"))))))))) | |
7063 | (propagated-inputs | |
7064 | `(("python-numexpr" ,python-numexpr) | |
7065 | ("python-numpy" ,python-numpy))) | |
7066 | (native-inputs | |
f3b98f4f | 7067 | `(("python-cython" ,python-cython) |
9f8ee3fe RW |
7068 | ("pkg-config" ,pkg-config))) |
7069 | (inputs | |
7070 | `(("hdf5" ,hdf5) | |
7071 | ("bzip2" ,bzip2) | |
7072 | ("zlib" ,zlib))) | |
7073 | (home-page "http://www.pytables.org/") | |
7074 | (synopsis "Hierarchical datasets for Python") | |
7075 | (description "PyTables is a package for managing hierarchical datasets and | |
7076 | designed to efficently cope with extremely large amounts of data.") | |
3f641af0 | 7077 | (license license:bsd-3))) |
9f8ee3fe RW |
7078 | |
7079 | (define-public python2-tables | |
7080 | (package-with-python2 python-tables)) | |
7081 | ||
7a8ac75a RW |
7082 | (define-public python-pyasn1 |
7083 | (package | |
7084 | (name "python-pyasn1") | |
caa0edb3 | 7085 | (version "0.1.9") |
7a8ac75a RW |
7086 | (source |
7087 | (origin | |
7088 | (method url-fetch) | |
caa0edb3 | 7089 | (uri (pypi-uri "pyasn1" version)) |
7a8ac75a RW |
7090 | (sha256 |
7091 | (base32 | |
caa0edb3 | 7092 | "0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45")))) |
7a8ac75a RW |
7093 | (build-system python-build-system) |
7094 | (home-page "http://pyasn1.sourceforge.net/") | |
7095 | (synopsis "ASN.1 types and codecs") | |
7096 | (description | |
7097 | "This is an implementation of ASN.1 types and codecs in Python. It is | |
7098 | suitable for a wide range of protocols based on the ASN.1 specification.") | |
3f641af0 | 7099 | (license license:bsd-2))) |
7a8ac75a RW |
7100 | |
7101 | (define-public python2-pyasn1 | |
7102 | (package-with-python2 python-pyasn1)) | |
9a49a535 | 7103 | |
5988c299 EF |
7104 | (define-public python-pyasn1-modules |
7105 | (package | |
7106 | (name "python-pyasn1-modules") | |
7107 | (version "0.0.8") | |
7108 | (source | |
7109 | (origin | |
7110 | (method url-fetch) | |
7111 | (uri (pypi-uri "pyasn1-modules" version)) | |
7112 | (sha256 | |
7113 | (base32 | |
7114 | "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) | |
7115 | (build-system python-build-system) | |
5988c299 EF |
7116 | (propagated-inputs |
7117 | `(("python-pyasn1" ,python-pyasn1))) | |
3b3b60d0 | 7118 | (home-page "https://sourceforge.net/projects/pyasn1/") |
5988c299 EF |
7119 | (synopsis "ASN.1 codec implementations") |
7120 | (description | |
7121 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and | |
7122 | implementations of ASN.1-based codecs and protocols.") | |
3f641af0 | 7123 | (license license:bsd-3))) |
5988c299 EF |
7124 | |
7125 | (define-public python2-pyasn1-modules | |
7126 | (package-with-python2 python-pyasn1-modules)) | |
7127 | ||
520af157 | 7128 | (define-public python-ipaddress |
9a49a535 | 7129 | (package |
520af157 DC |
7130 | (name "python-ipaddress") |
7131 | (version "1.0.16") | |
7132 | (source (origin | |
7133 | (method url-fetch) | |
7134 | (uri (pypi-uri "ipaddress" version)) | |
7135 | (sha256 | |
7136 | (base32 | |
7137 | "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas")))) | |
9a49a535 | 7138 | (build-system python-build-system) |
9a49a535 RW |
7139 | (home-page "https://github.com/phihag/ipaddress") |
7140 | (synopsis "IP address manipulation library") | |
7141 | (description | |
520af157 DC |
7142 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
7143 | in Python. This library is used to create, poke at, and manipulate IPv4 and | |
7144 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress | |
7145 | module to older versions of Python.") | |
f210e944 | 7146 | (license license:psfl))) |
520af157 DC |
7147 | |
7148 | (define-public python2-ipaddress | |
f210e944 | 7149 | (package-with-python2 python-ipaddress)) |
3f00e078 | 7150 | |
4a238186 HG |
7151 | (define-public python2-ipaddr |
7152 | (package | |
7153 | (name "python2-ipaddr") | |
7154 | (version "2.1.11") | |
7155 | (source | |
7156 | (origin | |
7157 | (method url-fetch) | |
7158 | (uri (pypi-uri "ipaddr" version)) | |
7159 | (sha256 | |
7160 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) | |
7161 | (build-system python-build-system) | |
7162 | (arguments | |
7163 | `(#:python ,python-2 ;version 2 only | |
7164 | #:phases | |
7165 | (modify-phases %standard-phases | |
7166 | (replace 'check | |
7167 | (lambda* _ | |
7168 | (zero? (system* "python" "ipaddr_test.py"))))))) | |
7169 | (home-page "https://github.com/google/ipaddr-py") | |
7170 | (synopsis "IP address manipulation library") | |
7171 | (description | |
7172 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and | |
7173 | IPv6 addresses and networks. | |
7174 | ||
7175 | For new implementations you may prefer to use the standard module | |
7176 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older | |
7177 | versions of Python.") | |
3f641af0 | 7178 | (license license:asl2.0))) |
4a238186 | 7179 | |
3f00e078 RW |
7180 | (define-public python-idna |
7181 | (package | |
7182 | (name "python-idna") | |
7183 | (version "2.0") | |
7184 | (source | |
7185 | (origin | |
7186 | (method url-fetch) | |
7187 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
7188 | "idna/idna-" version ".tar.gz")) | |
7189 | (sha256 | |
7190 | (base32 | |
7191 | "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n")))) | |
7192 | (build-system python-build-system) | |
3f00e078 RW |
7193 | (home-page "https://github.com/kjd/idna") |
7194 | (synopsis "Internationalized domain names in applications") | |
7195 | (description | |
7196 | "This is a library to support the Internationalised Domain Names in | |
7197 | Applications (IDNA) protocol as specified in RFC 5891. This version of the | |
7198 | protocol is often referred to as “IDNA2008” and can produce different results | |
7199 | from the earlier standard from 2003. The library is also intended to act as a | |
7200 | suitable drop-in replacement for the “encodings.idna” module that comes with | |
7201 | the Python standard library but currently only supports the older 2003 | |
7202 | specification.") | |
3f641af0 | 7203 | (license license:bsd-4))) |
3f00e078 RW |
7204 | |
7205 | (define-public python2-idna | |
7206 | (package-with-python2 python-idna)) | |
36ebf972 RW |
7207 | |
7208 | (define-public python-pretend | |
7209 | (package | |
7210 | (name "python-pretend") | |
7211 | (version "1.0.8") | |
7212 | (source | |
7213 | (origin | |
7214 | (method url-fetch) | |
7215 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
7216 | "pretend/pretend-" version ".tar.gz")) | |
7217 | (sha256 | |
7218 | (base32 | |
7219 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) | |
7220 | (build-system python-build-system) | |
36ebf972 RW |
7221 | (home-page "https://github.com/alex/pretend") |
7222 | (synopsis "Library for stubbing in Python") | |
7223 | (description | |
7224 | "Pretend is a library to make stubbing with Python easier. Stubbing is a | |
7225 | technique for writing tests. You may hear the term mixed up with mocks, | |
7226 | fakes, or doubles. Basically, a stub is an object that returns pre-canned | |
7227 | responses, rather than doing any computation.") | |
3f641af0 | 7228 | (license license:bsd-3))) |
36ebf972 RW |
7229 | |
7230 | (define-public python2-pretend | |
7231 | (package-with-python2 python-pretend)) | |
aa759a51 RW |
7232 | |
7233 | (define-public python-cryptography-vectors | |
7234 | (package | |
7235 | (name "python-cryptography-vectors") | |
27fab2bf | 7236 | (version "1.7.1") |
aa759a51 RW |
7237 | (source |
7238 | (origin | |
7239 | (method url-fetch) | |
9c509ca9 | 7240 | (uri (pypi-uri "cryptography_vectors" version)) |
aa759a51 RW |
7241 | (sha256 |
7242 | (base32 | |
27fab2bf | 7243 | "1x2mz4wggja5ih45c6cw0kzyad4jr8avg327dawjr1gnpdq1psa7")))) |
aa759a51 | 7244 | (build-system python-build-system) |
aa759a51 | 7245 | (home-page "https://github.com/pyca/cryptography") |
66e07664 | 7246 | (synopsis "Test vectors for the cryptography package") |
aa759a51 RW |
7247 | (description |
7248 | "This package contains test vectors for the cryptography package.") | |
7249 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 7250 | (license (list license:bsd-3 license:asl2.0)))) |
aa759a51 RW |
7251 | |
7252 | (define-public python2-cryptography-vectors | |
7253 | (package-with-python2 python-cryptography-vectors)) | |
88b47cb0 RW |
7254 | |
7255 | (define-public python-cryptography | |
7256 | (package | |
7257 | (name "python-cryptography") | |
27fab2bf | 7258 | (version "1.7.1") |
88b47cb0 RW |
7259 | (source |
7260 | (origin | |
7261 | (method url-fetch) | |
9c509ca9 | 7262 | (uri (pypi-uri "cryptography" version)) |
88b47cb0 RW |
7263 | (sha256 |
7264 | (base32 | |
27fab2bf | 7265 | "0k6v7wq4h0yk9r0x0bl2x9fyrg4a6gj5qp4m9mgpk6m481yyygwm")))) |
88b47cb0 RW |
7266 | (build-system python-build-system) |
7267 | (inputs | |
7268 | `(("openssl" ,openssl))) | |
7269 | (propagated-inputs | |
7270 | `(("python-cffi" ,python-cffi) | |
7271 | ("python-six" ,python-six) | |
7272 | ("python-pyasn1" ,python-pyasn1) | |
88b47cb0 RW |
7273 | ("python-idna" ,python-idna) |
7274 | ("python-iso8601" ,python-iso8601))) | |
7275 | (native-inputs | |
7276 | `(("python-cryptography-vectors" ,python-cryptography-vectors) | |
ce6c13ee | 7277 | ("python-hypothesis" ,python-hypothesis) |
88b47cb0 | 7278 | ("python-pretend" ,python-pretend) |
ce6c13ee EF |
7279 | ("python-pyasn1" ,python-pyasn1) |
7280 | ("python-pyasn1-modules" ,python-pyasn1-modules) | |
912dcbad MB |
7281 | ("python-pytz" ,python-pytz) |
7282 | ("python-pytest" ,python-pytest-2.9.2))) | |
88b47cb0 RW |
7283 | (home-page "https://github.com/pyca/cryptography") |
7284 | (synopsis "Cryptographic recipes and primitives for Python") | |
7285 | (description | |
7286 | "cryptography is a package which provides cryptographic recipes and | |
7287 | primitives to Python developers. It aims to be the “cryptographic standard | |
7288 | library” for Python. The package includes both high level recipes, and low | |
7289 | level interfaces to common cryptographic algorithms such as symmetric ciphers, | |
7290 | message digests and key derivation functions.") | |
7291 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 7292 | (license (list license:bsd-3 license:asl2.0)) |
519e2f4f | 7293 | (properties `((python2-variant . ,(delay python2-cryptography)))))) |
88b47cb0 RW |
7294 | |
7295 | (define-public python2-cryptography | |
519e2f4f LF |
7296 | (let ((crypto (package-with-python2 |
7297 | (strip-python2-variant python-cryptography)))) | |
88b47cb0 RW |
7298 | (package (inherit crypto) |
7299 | (propagated-inputs | |
7300 | `(("python2-ipaddress" ,python2-ipaddress) | |
ce6c13ee EF |
7301 | ("python2-backport-ssl-match-hostname" |
7302 | ,python2-backport-ssl-match-hostname) | |
68f1cdec | 7303 | ("python2-enum34" ,python2-enum34) |
88b47cb0 | 7304 | ,@(package-propagated-inputs crypto)))))) |
5af999b8 RW |
7305 | |
7306 | (define-public python-pyopenssl | |
7307 | (package | |
7308 | (name "python-pyopenssl") | |
61684de2 | 7309 | (version "16.2.0") |
5af999b8 RW |
7310 | (source |
7311 | (origin | |
7312 | (method url-fetch) | |
eb68d268 | 7313 | (uri (pypi-uri "pyOpenSSL" version)) |
5af999b8 RW |
7314 | (sha256 |
7315 | (base32 | |
7c6bf660 MB |
7316 | "0vji4yrfshs15xpczbhzhasnjrwcarsqg87n98ixnyafnyxs6ybp")) |
7317 | (patches | |
7318 | (search-patches "python-pyopenssl-skip-network-test.patch")))) | |
5af999b8 | 7319 | (build-system python-build-system) |
30e0229a | 7320 | (arguments |
7c6bf660 MB |
7321 | '(#:phases |
7322 | (modify-phases %standard-phases | |
7323 | (delete 'check) | |
7324 | (add-after 'install 'check | |
7325 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
7326 | (add-installed-pythonpath inputs outputs) | |
7327 | (zero? (system* "py.test" "-v"))))))) | |
5af999b8 RW |
7328 | (propagated-inputs |
7329 | `(("python-cryptography" ,python-cryptography) | |
7330 | ("python-six" ,python-six))) | |
7331 | (inputs | |
7332 | `(("openssl" ,openssl))) | |
30e0229a MB |
7333 | (native-inputs |
7334 | `(("python-pytest" ,python-pytest))) | |
5af999b8 RW |
7335 | (home-page "https://github.com/pyca/pyopenssl") |
7336 | (synopsis "Python wrapper module around the OpenSSL library") | |
7337 | (description | |
7338 | "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL | |
7339 | library.") | |
3f641af0 | 7340 | (license license:asl2.0))) |
5af999b8 RW |
7341 | |
7342 | (define-public python2-pyopenssl | |
519e2f4f | 7343 | (package-with-python2 python-pyopenssl)) |
643725a1 CR |
7344 | |
7345 | (define-public python-pip | |
7346 | (package | |
7347 | (name "python-pip") | |
392c26b0 | 7348 | (version "9.0.1") |
643725a1 CR |
7349 | (source |
7350 | (origin | |
7351 | (method url-fetch) | |
6fb54e3b | 7352 | (uri (pypi-uri "pip" version)) |
643725a1 CR |
7353 | (sha256 |
7354 | (base32 | |
392c26b0 | 7355 | "03clr9c1dih5n9c00c592zzvf6r1ffimywkaq9agcqdllzhl7wh9")))) |
643725a1 | 7356 | (build-system python-build-system) |
392c26b0 MC |
7357 | (arguments |
7358 | '(#:tests? #f)) ; there are no tests in the pypi archive. | |
643725a1 | 7359 | (home-page "https://pip.pypa.io/") |
392c26b0 | 7360 | (synopsis "Package manager for Python software") |
643725a1 | 7361 | (description |
392c26b0 | 7362 | "Pip is a package manager for Python software, that finds packages on the |
643725a1 CR |
7363 | Python Package Index (PyPI).") |
7364 | (license license:expat))) | |
7365 | ||
7366 | (define-public python2-pip | |
7367 | (package-with-python2 python-pip)) | |
d8c4998f LC |
7368 | |
7369 | (define-public python-tlsh | |
7370 | (package | |
7371 | (name "python-tlsh") | |
99b00dc7 | 7372 | (version "3.4.4") |
d8c4998f LC |
7373 | (home-page "https://github.com/trendmicro/tlsh") |
7374 | (source (origin | |
99b00dc7 EF |
7375 | (method url-fetch) |
7376 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" | |
7377 | version ".tar.gz")) | |
d8c4998f LC |
7378 | (sha256 |
7379 | (base32 | |
99b00dc7 EF |
7380 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
7381 | (file-name (string-append name "-" version ".tar.gz")))) | |
d8c4998f LC |
7382 | (build-system cmake-build-system) |
7383 | (arguments | |
7384 | '(#:out-of-source? #f | |
7385 | #:phases (modify-phases %standard-phases | |
7386 | (replace | |
7387 | 'install | |
7388 | (lambda* (#:key outputs #:allow-other-keys) | |
7389 | ;; Build and install the Python bindings. The underlying | |
7390 | ;; C++ library is apparently not meant to be installed. | |
7391 | (let ((out (assoc-ref outputs "out"))) | |
7392 | (with-directory-excursion "py_ext" | |
7393 | (and (system* "python" "setup.py" "build") | |
7394 | (system* "python" "setup.py" "install" | |
7395 | (string-append "--prefix=" out)))))))))) | |
7396 | (inputs `(("python" ,python-wrapper))) ;for the bindings | |
7397 | (synopsis "Fuzzy matching library for Python") | |
7398 | (description | |
7399 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. | |
7400 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash | |
7401 | value which can be used for similarity comparisons. Similar objects have | |
7402 | similar hash values, which allows for the detection of similar objects by | |
7403 | comparing their hash values. The byte stream should have a sufficient amount | |
7404 | of complexity; for example, a byte stream of identical bytes will not generate | |
7405 | a hash value.") | |
3f641af0 | 7406 | (license license:asl2.0))) |
d8c4998f LC |
7407 | |
7408 | (define-public python2-tlsh | |
7409 | (package | |
7410 | (inherit python-tlsh) | |
7411 | (name "python2-tlsh") | |
7412 | (inputs `(("python" ,python-2))))) | |
d96034ed | 7413 | |
67f66812 BW |
7414 | (define-public python-termcolor |
7415 | (package | |
7416 | (name "python-termcolor") | |
7417 | (version "1.1.0") | |
7418 | (source | |
7419 | (origin | |
7420 | (method url-fetch) | |
7421 | (uri (pypi-uri "python-termcolor" version)) | |
7422 | (sha256 | |
7423 | (base32 | |
7424 | "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) | |
7425 | (build-system python-build-system) | |
7426 | (arguments | |
7427 | ;; There are no tests. | |
7428 | `(#:tests? #f)) | |
7429 | (home-page "http://pypi.python.org/pypi/termcolor") | |
7430 | (synopsis "ANSII Color formatting for terminal output") | |
7431 | (description | |
7432 | "This package provides ANSII Color formatting for output in terminals.") | |
7433 | (license license:expat))) | |
7434 | ||
7435 | (define-public python2-termcolor | |
7436 | (package-with-python2 python-termcolor)) | |
7437 | ||
d96034ed LC |
7438 | (define-public python-libarchive-c |
7439 | (package | |
7440 | (name "python-libarchive-c") | |
03fd001c | 7441 | (version "2.2") |
d96034ed LC |
7442 | (source (origin |
7443 | (method url-fetch) | |
03fd001c | 7444 | (uri (pypi-uri "libarchive-c" version)) |
d96034ed LC |
7445 | (sha256 |
7446 | (base32 | |
03fd001c | 7447 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
d96034ed LC |
7448 | (build-system python-build-system) |
7449 | (arguments | |
7450 | '(#:phases (modify-phases %standard-phases | |
7451 | (add-before | |
7452 | 'build 'reference-libarchive | |
7453 | (lambda* (#:key inputs #:allow-other-keys) | |
7454 | ;; Retain the absolute file name of libarchive.so. | |
7455 | (let ((libarchive (assoc-ref inputs "libarchive"))) | |
7456 | (substitute* "libarchive/ffi.py" | |
7457 | (("find_library\\('archive'\\)") | |
7458 | (string-append "'" libarchive | |
b41a05ce | 7459 | "/lib/libarchive.so'"))))))))) |
d96034ed | 7460 | (inputs |
f3b98f4f | 7461 | `(("libarchive" ,libarchive))) |
d96034ed LC |
7462 | (home-page "https://github.com/Changaco/python-libarchive-c") |
7463 | (synopsis "Python interface to libarchive") | |
7464 | (description | |
7465 | "This package provides Python bindings to libarchive, a C library to | |
7466 | access possibly compressed archives in many different formats. It uses | |
7467 | Python's @code{ctypes} foreign function interface (FFI).") | |
3f641af0 | 7468 | (license license:lgpl2.0+))) |
d96034ed LC |
7469 | |
7470 | (define-public python2-libarchive-c | |
7471 | (package-with-python2 python-libarchive-c)) | |
5e1c9367 LC |
7472 | |
7473 | (define-public python-file | |
7474 | (package | |
7475 | (inherit file) | |
7476 | (name "python-file") | |
7ffa5d4a LF |
7477 | (source (origin |
7478 | (inherit (package-source file)) | |
7479 | ;; This patch should not be applied to python2-file. | |
7480 | (patches (search-patches "python-file-double-encoding-bug.patch")))) | |
5e1c9367 LC |
7481 | (build-system python-build-system) |
7482 | (arguments | |
7483 | '(#:tests? #f ;no tests | |
00bf74be | 7484 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
5e1c9367 LC |
7485 | #:phases (modify-phases %standard-phases |
7486 | (add-before 'build 'change-directory | |
7487 | (lambda _ | |
7488 | (chdir "python") | |
7489 | #t)) | |
7490 | (add-before 'build 'set-library-file-name | |
7491 | (lambda* (#:key inputs #:allow-other-keys) | |
7492 | (let ((file (assoc-ref inputs "file"))) | |
7493 | (substitute* "magic.py" | |
7494 | (("find_library\\('magic'\\)") | |
7495 | (string-append "'" file "/lib/libmagic.so'"))) | |
7496 | #t)))))) | |
7497 | (inputs `(("file" ,file))) | |
7498 | (self-native-input? #f) | |
daeeea71 CM |
7499 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
7500 | this module and the python-magic module both provide a \"magic.py\" file; | |
7501 | these two modules, which are different and were developed separately, both | |
f210e944 | 7502 | serve the same purpose: provide Python bindings for libmagic."))) |
5e1c9367 LC |
7503 | |
7504 | (define-public python2-file | |
f210e944 | 7505 | (package-with-python2 python-file)) |
85d4aeac LC |
7506 | |
7507 | (define-public python-debian | |
7508 | (package | |
7509 | (name "python-debian") | |
02d7f337 | 7510 | (version "0.1.28") |
85d4aeac LC |
7511 | (source |
7512 | (origin | |
7513 | (method url-fetch) | |
5e217a8b | 7514 | (uri (pypi-uri name version)) |
85d4aeac LC |
7515 | (sha256 |
7516 | (base32 | |
02d7f337 | 7517 | "0i15f0xzx679sd0ldq2sls9pnnps9fv6vhqvnv9dzf4qhma42i0y")))) |
85d4aeac | 7518 | (build-system python-build-system) |
f22efa01 | 7519 | (propagated-inputs |
85d4aeac | 7520 | `(("python-six" ,python-six))) |
85d4aeac LC |
7521 | (home-page "http://packages.debian.org/sid/python-debian") |
7522 | (synopsis "Debian package related modules") | |
7523 | (description | |
5c7bdc9a LC |
7524 | ;; XXX: Use @enumerate instead of @itemize to work around |
7525 | ;; <http://bugs.gnu.org/21772>. | |
85d4aeac LC |
7526 | "This package provides Python modules that abstract many formats of |
7527 | Debian-related files, such as: | |
7528 | ||
5c7bdc9a | 7529 | @enumerate |
85d4aeac LC |
7530 | @item Debtags information; |
7531 | @item @file{debian/changelog} files; | |
7532 | @item packages files, pdiffs; | |
7533 | @item control files of single or multiple RFC822-style paragraphs---e.g. | |
7534 | @file{debian/control}, @file{.changes}, @file{.dsc}; | |
7535 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to | |
7536 | contained files and meta-information. | |
5c7bdc9a | 7537 | @end enumerate\n") |
85d4aeac LC |
7538 | |
7539 | ;; Modules are either GPLv2+ or GPLv3+. | |
3f641af0 | 7540 | (license license:gpl3+))) |
85d4aeac LC |
7541 | |
7542 | (define-public python2-debian | |
7543 | (package-with-python2 python-debian)) | |
816a6538 | 7544 | |
2d321bb2 RW |
7545 | (define-public python-nbformat |
7546 | (package | |
7547 | (name "python-nbformat") | |
7548 | (version "4.1.0") | |
7549 | (source | |
7550 | (origin | |
7551 | (method url-fetch) | |
7552 | (uri (pypi-uri "nbformat" version)) | |
7553 | (sha256 | |
7554 | (base32 | |
7555 | "0mq8iki3d4mnx7wy05phss7x98mds4fqydin8lcagidp1knw1xnv")))) | |
7556 | (build-system python-build-system) | |
7557 | (arguments `(#:tests? #f)) ; no test target | |
7558 | (propagated-inputs | |
7559 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
7560 | ("python-jsonschema" ,python-jsonschema) | |
7561 | ("python-jupyter-core" ,python-jupyter-core) | |
7562 | ("python-traitlets" ,python-traitlets))) | |
2d321bb2 RW |
7563 | (home-page "http://jupyter.org") |
7564 | (synopsis "Jupyter Notebook format") | |
7565 | (description "This package provides the reference implementation of the | |
7566 | Jupyter Notebook format and Python APIs for working with notebooks.") | |
7567 | (license license:bsd-3))) | |
7568 | ||
7569 | (define-public python2-nbformat | |
7570 | (package-with-python2 python-nbformat)) | |
7571 | ||
55436048 RW |
7572 | (define-public python-bleach |
7573 | (package | |
7574 | (name "python-bleach") | |
7575 | (version "1.4.3") | |
7576 | (source | |
7577 | (origin | |
7578 | (method url-fetch) | |
7579 | (uri (pypi-uri "bleach" version)) | |
7580 | (sha256 | |
7581 | (base32 | |
7582 | "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj")))) | |
7583 | (build-system python-build-system) | |
7584 | (propagated-inputs | |
7585 | `(("python-html5lib" ,python-html5lib-0.9) | |
55436048 RW |
7586 | ("python-six" ,python-six))) |
7587 | (native-inputs | |
7588 | `(("python-nose" ,python-nose))) | |
7589 | (home-page "http://github.com/jsocol/bleach") | |
7590 | (synopsis "Whitelist-based HTML-sanitizing tool") | |
7591 | (description "Bleach is an easy whitelist-based HTML-sanitizing tool.") | |
7592 | (license license:asl2.0))) | |
7593 | ||
7594 | (define-public python2-bleach | |
7595 | (package-with-python2 python-bleach)) | |
7596 | ||
60590a3a RW |
7597 | (define-public python-entrypoints |
7598 | (package | |
7599 | (name "python-entrypoints") | |
7600 | (version "0.2.2") | |
7601 | (source | |
7602 | (origin | |
7603 | (method url-fetch) | |
7604 | (uri (string-append "https://github.com/takluyver/entrypoints/archive/" | |
7605 | version ".tar.gz")) | |
7606 | (file-name (string-append name "-" version ".tar.gz")) | |
7607 | (sha256 | |
7608 | (base32 | |
7609 | "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5")))) | |
7610 | (build-system python-build-system) | |
7611 | ;; The package does not come with a setup.py file, so we have to generate | |
7612 | ;; one ourselves. | |
7613 | (arguments | |
7614 | `(#:tests? #f | |
7615 | #:phases | |
7616 | (modify-phases %standard-phases | |
7617 | (add-after 'unpack 'create-setup.py | |
7618 | (lambda _ | |
7619 | (call-with-output-file "setup.py" | |
7620 | (lambda (port) | |
7621 | (format port "\ | |
7622 | from setuptools import setup | |
7623 | setup(name='entrypoints', version='~a', py_modules=['entrypoints']) | |
7624 | " ,version)))))))) | |
7625 | (home-page "https://github.com/takluyver/entrypoints") | |
7626 | (synopsis "Discover and load entry points from installed Python packages") | |
7627 | (description "Entry points are a way for Python packages to advertise | |
7628 | objects with some common interface. The most common examples are | |
7629 | @code{console_scripts} entry points, which define shell commands by | |
7630 | identifying a Python function to run. The @code{entrypoints} module contains | |
7631 | functions to find and load entry points.") | |
7632 | (license license:expat))) | |
7633 | ||
7634 | (define-public python2-entrypoints | |
7635 | (package-with-python2 python-entrypoints)) | |
7636 | ||
c60898a8 RW |
7637 | (define-public python-nbconvert |
7638 | (package | |
7639 | (name "python-nbconvert") | |
7640 | (version "5.0.0b1") | |
7641 | (source | |
7642 | (origin | |
7643 | (method url-fetch) | |
7644 | (uri (pypi-uri "nbconvert" version)) | |
7645 | (sha256 | |
7646 | (base32 | |
7647 | "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp")))) | |
7648 | (build-system python-build-system) | |
497355dc MB |
7649 | (arguments |
7650 | `(;; The "bdist_egg" target is disabled by default, causing the installation | |
7651 | ;; to fail. | |
7652 | #:configure-flags (list "bdist_egg") | |
7653 | ;; FIXME: 5 failures, 40 errors. | |
7654 | #:tests? #f)) | |
7655 | ;; #:phases | |
7656 | ;; (modify-phases %standard-phases | |
7657 | ;; (replace 'check | |
7658 | ;; (lambda _ | |
7659 | ;; (zero? (system* "py.test" "-v"))))) | |
7660 | (native-inputs | |
7661 | `(("python-pytest" ,python-pytest))) | |
c60898a8 RW |
7662 | (propagated-inputs |
7663 | `(("python-bleach" ,python-bleach) | |
7664 | ("python-entrypoints" ,python-entrypoints) | |
7665 | ("python-jinja2" ,python-jinja2) | |
7666 | ("python-jupyter-core" ,python-jupyter-core) | |
7667 | ("python-mistune" ,python-mistune) | |
7668 | ("python-nbformat" ,python-nbformat) | |
7669 | ("python-pygments" ,python-pygments) | |
c60898a8 RW |
7670 | ("python-traitlets" ,python-traitlets))) |
7671 | (home-page "http://jupyter.org") | |
7672 | (synopsis "Converting Jupyter Notebooks") | |
7673 | (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts | |
7674 | notebooks to various other formats via Jinja templates. It allows you to | |
7675 | convert an @code{.ipynb} notebook file into various static formats including: | |
7676 | ||
7677 | @enumerate | |
7678 | @item HTML | |
7679 | @item LaTeX | |
7680 | @item PDF | |
7681 | @item Reveal JS | |
7682 | @item Markdown (md) | |
7683 | @item ReStructured Text (rst) | |
7684 | @item executable script | |
7685 | @end enumerate\n") | |
7686 | (license license:bsd-3))) | |
7687 | ||
7688 | (define-public python2-nbconvert | |
7689 | (package-with-python2 python-nbconvert)) | |
7690 | ||
a0d62280 RW |
7691 | (define-public python-notebook |
7692 | (package | |
7693 | (name "python-notebook") | |
7694 | (version "4.2.3") | |
7695 | (source (origin | |
7696 | (method url-fetch) | |
7697 | (uri (pypi-uri "notebook" version)) | |
7698 | (sha256 | |
7699 | (base32 | |
7700 | "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r")))) | |
7701 | (build-system python-build-system) | |
7702 | (arguments | |
7703 | `(#:phases | |
7704 | (modify-phases %standard-phases | |
7705 | (replace 'check | |
7706 | (lambda _ | |
7707 | ;; HOME must be set for tests | |
7708 | (setenv "HOME" "/tmp") | |
7709 | (zero? (system* "nosetests"))))))) | |
7710 | (propagated-inputs | |
7711 | `(("python-jupyter-core" ,python-jupyter-core) | |
7712 | ("python-nbformat" ,python-nbformat) | |
7713 | ("python-nbconvert" ,python-nbconvert) | |
7714 | ("python-ipython" ,python-ipython))) | |
7715 | (native-inputs | |
7716 | `(("python-nose" ,python-nose) | |
7717 | ("python-sphinx" ,python-sphinx) | |
7718 | ("python-requests" ,python-requests))) | |
7719 | (home-page "http://jupyter.org/") | |
7720 | (synopsis "Web-based notebook environment for interactive computing") | |
7721 | (description | |
7722 | "The Jupyter HTML notebook is a web-based notebook environment for | |
7723 | interactive computing.") | |
3a735ecf | 7724 | (properties `((python2-variant . ,(delay python2-notebook)))) |
a0d62280 RW |
7725 | (license license:bsd-3))) |
7726 | ||
7727 | (define-public python2-notebook | |
3a735ecf HG |
7728 | (let ((base (package-with-python2 |
7729 | (strip-python2-variant python-notebook)))) | |
7730 | (package (inherit base) | |
7731 | (native-inputs | |
7732 | `(("python2-mock" ,python2-mock) | |
7733 | ,@(package-native-inputs base))) | |
7734 | (arguments | |
7735 | (substitute-keyword-arguments (package-arguments base) | |
7736 | ((#:phases phases) | |
7737 | `(modify-phases ,phases | |
7738 | (add-before 'check 'disable-test-case | |
7739 | ;; The test requires network access to localhost. Curiously it | |
7740 | ;; fails with Python 2 only. Simply make the test-case return | |
7741 | ;; immediately. | |
7742 | (lambda _ | |
7743 | (substitute* | |
7744 | "notebook/services/nbconvert/tests/test_nbconvert_api.py" | |
7745 | (("formats = self.nbconvert_api") "return #"))))))))))) | |
a0d62280 | 7746 | |
d55724ed RW |
7747 | (define-public python-widgetsnbextension |
7748 | (package | |
7749 | (name "python-widgetsnbextension") | |
7750 | (version "1.2.6") | |
7751 | (source | |
7752 | (origin | |
7753 | (method url-fetch) | |
7754 | (uri (pypi-uri "widgetsnbextension" version)) | |
7755 | (sha256 | |
7756 | (base32 | |
7757 | "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666")))) | |
7758 | (build-system python-build-system) | |
7759 | (propagated-inputs | |
7760 | `(("python-notebook" ,python-notebook))) | |
7761 | (native-inputs | |
58f5fae7 MB |
7762 | `(("python-certifi" ,python-certifi) |
7763 | ("python-nose" ,python-nose))) | |
d55724ed RW |
7764 | (home-page "http://ipython.org") |
7765 | (synopsis "IPython HTML widgets for Jupyter") | |
7766 | (description "This package provides interactive HTML widgets for Jupyter | |
7767 | notebooks.") | |
7768 | (license license:bsd-3))) | |
7769 | ||
7770 | (define-public python2-widgetsnbextension | |
7771 | (package-with-python2 python-widgetsnbextension)) | |
7772 | ||
4fe2e344 RW |
7773 | (define-public python-ipywidgets |
7774 | (package | |
7775 | (name "python-ipywidgets") | |
7776 | (version "5.2.2") | |
7777 | (source | |
7778 | (origin | |
7779 | (method url-fetch) | |
7780 | (uri (pypi-uri "ipywidgets" version)) | |
7781 | (sha256 | |
7782 | (base32 | |
7783 | "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms")))) | |
7784 | (build-system python-build-system) | |
7785 | ;; FIXME: it's not clear how to run the tests. | |
7786 | (arguments `(#:tests? #f)) | |
7787 | (propagated-inputs | |
7788 | `(("python-ipykernel" ,python-ipykernel) | |
7789 | ("python-ipython" ,python-ipython) | |
4fe2e344 RW |
7790 | ("python-traitlets" ,python-traitlets) |
7791 | ("python-widgetsnbextension" ,python-widgetsnbextension))) | |
7792 | (home-page "http://ipython.org") | |
7793 | (synopsis "IPython HTML widgets for Jupyter") | |
7794 | (description "Ipywidgets are interactive HTML widgets for Jupyter | |
7795 | notebooks and the IPython kernel. Notebooks come alive when interactive | |
7796 | widgets are used. Users gain control of their data and can visualize changes | |
7797 | in the data.") | |
7798 | (license license:bsd-3))) | |
7799 | ||
7800 | (define-public python2-ipywidgets | |
7801 | (package-with-python2 python-ipywidgets)) | |
7802 | ||
8ceebf8f RW |
7803 | (define-public python-jupyter-console |
7804 | (package | |
7805 | (name "python-jupyter-console") | |
7806 | (version "5.0.0") | |
7807 | (source | |
7808 | (origin | |
7809 | (method url-fetch) | |
7810 | (uri (pypi-uri "jupyter_console" version)) | |
7811 | (sha256 | |
7812 | (base32 | |
7813 | "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx")))) | |
7814 | (build-system python-build-system) | |
7815 | ;; FIXME: it's not clear how to run the tests. | |
7816 | (arguments `(#:tests? #f)) | |
7817 | (propagated-inputs | |
7818 | `(("python-ipykernel" ,python-ipykernel) | |
7819 | ("python-ipython" ,python-ipython) | |
7820 | ("python-jupyter-client" ,python-jupyter-client) | |
7821 | ("python-prompt-toolkit" ,python-prompt-toolkit) | |
f3b98f4f | 7822 | ("python-pygments" ,python-pygments))) |
8ceebf8f RW |
7823 | (home-page "https://jupyter.org") |
7824 | (synopsis "Jupyter terminal console") | |
7825 | (description "This package provides a terminal-based console frontend for | |
7826 | Jupyter kernels. It also allows for console-based interaction with non-Python | |
7827 | Jupyter kernels such as IJulia and IRKernel.") | |
7828 | (license license:bsd-3))) | |
7829 | ||
7830 | (define-public python2-jupyter-console | |
7831 | (package-with-python2 python-jupyter-console)) | |
7832 | ||
c27ae827 RW |
7833 | (define-public jupyter |
7834 | (package | |
7835 | (name "jupyter") | |
7836 | (version "1.0.0") | |
7837 | (source | |
7838 | (origin | |
7839 | (method url-fetch) | |
7840 | (uri (pypi-uri "jupyter" version)) | |
7841 | (sha256 | |
7842 | (base32 | |
7843 | "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r")))) | |
7844 | (build-system python-build-system) | |
7845 | ;; FIXME: it's not clear how to run the tests. | |
7846 | (arguments `(#:tests? #f)) | |
7847 | (propagated-inputs | |
7848 | `(("python-ipykernel" ,python-ipykernel) | |
7849 | ("python-ipywidgets" ,python-ipywidgets) | |
7850 | ("python-jupyter-console" ,python-jupyter-console) | |
7851 | ("python-nbconvert" ,python-nbconvert) | |
f3b98f4f | 7852 | ("python-notebook" ,python-notebook))) |
c27ae827 RW |
7853 | (home-page "http://jupyter.org") |
7854 | (synopsis "Web application for interactive documents") | |
7855 | (description | |
7856 | "The Jupyter Notebook is a web application that allows you to create and | |
7857 | share documents that contain live code, equations, visualizations and | |
7858 | explanatory text. Uses include: data cleaning and transformation, numerical | |
7859 | simulation, statistical modeling, machine learning and much more.") | |
7860 | (license license:bsd-3))) | |
7861 | ||
816a6538 LC |
7862 | (define-public python-chardet |
7863 | (package | |
7864 | (name "python-chardet") | |
7865 | (version "2.3.0") | |
7866 | (source | |
7867 | (origin | |
7868 | (method url-fetch) | |
7869 | (uri (string-append | |
7870 | "https://pypi.python.org/packages/source/c/chardet/chardet-" | |
7871 | version | |
7872 | ".tar.gz")) | |
7873 | (sha256 | |
7874 | (base32 | |
7875 | "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5")))) | |
7876 | (build-system python-build-system) | |
816a6538 LC |
7877 | (home-page "https://github.com/chardet/chardet") |
7878 | (synopsis "Universal encoding detector for Python 2 and 3") | |
7879 | (description | |
7880 | "This package provides @code{chardet}, a Python module that can | |
7881 | automatically detect a wide range of file encodings.") | |
3f641af0 | 7882 | (license license:lgpl2.1+))) |
816a6538 LC |
7883 | |
7884 | (define-public python2-chardet | |
7885 | (package-with-python2 python-chardet)) | |
2fc5f186 | 7886 | |
1872f1bb KM |
7887 | (define-public python-docopt |
7888 | (package | |
7889 | (name "python-docopt") | |
7890 | (version "0.6.2") | |
7891 | (source | |
7892 | (origin | |
7893 | (method url-fetch) | |
7894 | ;; The release on PyPI does not include tests. | |
7895 | (uri (string-append | |
7896 | "https://github.com/docopt/docopt/archive/" | |
7897 | version ".tar.gz")) | |
7898 | (file-name (string-append name "-" version ".tar.gz")) | |
7899 | (sha256 | |
7900 | (base32 | |
7901 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) | |
7902 | (build-system python-build-system) | |
7903 | (native-inputs | |
f3b98f4f | 7904 | `(("python-pytest" ,python-pytest))) |
1872f1bb KM |
7905 | (arguments |
7906 | `(#:phases (alist-replace | |
7907 | 'check | |
7908 | (lambda _ (zero? (system* "py.test"))) | |
7909 | %standard-phases))) | |
7910 | (home-page "http://docopt.org") | |
7911 | (synopsis "Command-line interface description language for Python") | |
7912 | (description "This library allows the user to define a command-line | |
7913 | interface from a program's help message rather than specifying it | |
7914 | programatically with command-line parsers like @code{getopt} and | |
7915 | @code{argparse}.") | |
7916 | (license license:expat))) | |
7917 | ||
7918 | (define-public python2-docopt | |
7919 | (package-with-python2 python-docopt)) | |
7920 | ||
2fc5f186 LF |
7921 | (define-public python-zope-event |
7922 | (package | |
7923 | (name "python-zope-event") | |
7924 | (version "4.1.0") | |
7925 | (source | |
7926 | (origin | |
7927 | (method url-fetch) | |
7928 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7929 | "/zope.event/zope.event-" version ".tar.gz")) | |
7930 | (sha256 | |
7931 | (base32 | |
7932 | "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) | |
7933 | (build-system python-build-system) | |
2fc5f186 LF |
7934 | (home-page "http://pypi.python.org/pypi/zope.event") |
7935 | (synopsis "Event publishing system for Python") | |
7936 | (description "Zope.event provides an event publishing API, intended for | |
7937 | use by applications which are unaware of any subscribers to their events. It | |
7938 | is a simple event-dispatching system on which more sophisticated event | |
7939 | dispatching systems can be built.") | |
3f641af0 | 7940 | (license license:zpl2.1))) |
2fc5f186 LF |
7941 | |
7942 | (define-public python2-zope-event | |
7943 | (package-with-python2 python-zope-event)) | |
97abe268 LF |
7944 | |
7945 | (define-public python-zope-interface | |
7946 | (package | |
7947 | (name "python-zope-interface") | |
7948 | (version "4.1.3") | |
7949 | (source | |
7950 | (origin | |
7951 | (method url-fetch) | |
7952 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7953 | "/zope.interface/zope.interface-" version ".tar.gz")) | |
7954 | (sha256 | |
7955 | (base32 | |
7956 | "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) | |
7957 | (build-system python-build-system) | |
38d480a8 | 7958 | (native-inputs |
97abe268 LF |
7959 | `(("python-zope-event" ,python-zope-event))) |
7960 | (home-page "https://github.com/zopefoundation/zope.interface") | |
7961 | (synopsis "Python implementation of the \"design by contract\" | |
7962 | methodology") | |
7963 | (description "Zope.interface provides an implementation of \"object | |
7964 | interfaces\" for Python. Interfaces are a mechanism for labeling objects as | |
7965 | conforming to a given API or contract.") | |
3f641af0 | 7966 | (license license:zpl2.1))) |
97abe268 LF |
7967 | |
7968 | (define-public python2-zope-interface | |
7969 | (package-with-python2 python-zope-interface)) | |
81f2373c LF |
7970 | |
7971 | (define-public python-zope-exceptions | |
7972 | (package | |
7973 | (name "python-zope-exceptions") | |
7974 | (version "4.0.8") | |
7975 | (source | |
7976 | (origin | |
7977 | (method url-fetch) | |
7978 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
7979 | "/zope.exceptions/zope.exceptions-" | |
7980 | version ".tar.gz")) | |
7981 | (sha256 | |
7982 | (base32 | |
7983 | "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) | |
7984 | (build-system python-build-system) | |
7985 | (arguments | |
7986 | '(#:tests? #f)) ; circular dependency with zope.testrunner | |
7987 | (propagated-inputs | |
7988 | `(("python-zope-interface" ,python-zope-interface))) | |
7989 | (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") | |
7990 | (synopsis "Zope exceptions") | |
7991 | (description "Zope.exceptions provides general-purpose exception types | |
7992 | that have uses outside of the Zope framework.") | |
3f641af0 | 7993 | (license license:zpl2.1))) |
81f2373c LF |
7994 | |
7995 | (define-public python2-zope-exceptions | |
7996 | (package-with-python2 python-zope-exceptions)) | |
900e3c0e LF |
7997 | |
7998 | (define-public python-zope-testing | |
7999 | (package | |
8000 | (name "python-zope-testing") | |
8001 | (version "4.5.0") | |
8002 | (source | |
8003 | (origin | |
8004 | (method url-fetch) | |
8005 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8006 | "/zope.testing/zope.testing-" version ".tar.gz")) | |
8007 | (sha256 | |
8008 | (base32 | |
b02f7a21 HG |
8009 | "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")) |
8010 | (modules '((guix build utils))) | |
8011 | (snippet | |
8012 | '(begin | |
8013 | ;; Remove pre-compiled .pyc files backup files from source. | |
8014 | (for-each delete-file (find-files "." "(\\.pyc|~)$")) | |
8015 | #t)))) | |
900e3c0e LF |
8016 | (build-system python-build-system) |
8017 | (native-inputs | |
8018 | `(("python-zope-exceptions" ,python-zope-exceptions))) | |
8019 | (propagated-inputs | |
8020 | `(("python-zope-interface" ,python-zope-interface))) | |
8021 | (home-page "http://pypi.python.org/pypi/zope.testing") | |
8022 | (synopsis "Zope testing helpers") | |
8023 | (description "Zope.testing provides a number of testing utilities for HTML | |
8024 | forms, HTTP servers, regular expressions, and more.") | |
3f641af0 | 8025 | (license license:zpl2.1))) |
900e3c0e LF |
8026 | |
8027 | (define-public python2-zope-testing | |
8028 | (package-with-python2 python-zope-testing)) | |
01614c4f LF |
8029 | |
8030 | (define-public python-zope-testrunner | |
8031 | (package | |
8032 | (name "python-zope-testrunner") | |
8033 | (version "4.4.9") | |
8034 | (source | |
8035 | (origin | |
8036 | (method url-fetch) | |
8037 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8038 | "/zope.testrunner/zope.testrunner-" | |
8039 | version ".zip")) | |
8040 | (sha256 | |
8041 | (base32 | |
8042 | "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) | |
8043 | (build-system python-build-system) | |
385871e5 MB |
8044 | (arguments |
8045 | '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. | |
01614c4f LF |
8046 | (native-inputs |
8047 | `(("python-six" ,python-six) | |
e408ffc3 | 8048 | ;("python-zope-interface" ,python-zope-interface) |
01614c4f LF |
8049 | ("python-zope-exceptions" ,python-zope-exceptions) |
8050 | ("python-zope-testing" ,python-zope-testing) | |
8051 | ("unzip" ,unzip))) | |
8052 | (propagated-inputs | |
8053 | `(("python-zope-interface" ,python-zope-interface))) | |
8054 | (home-page "http://pypi.python.org/pypi/zope.testrunner") | |
8055 | (synopsis "Zope testrunner script") | |
8056 | (description "Zope.testrunner provides a script for running Python | |
8057 | tests.") | |
3f641af0 | 8058 | (license license:zpl2.1))) |
01614c4f LF |
8059 | |
8060 | (define-public python2-zope-testrunner | |
8061 | (let ((base (package-with-python2 python-zope-testrunner))) | |
8062 | (package | |
8063 | (inherit base) | |
8064 | (native-inputs | |
8065 | (append (package-native-inputs base) | |
8066 | `(("python2-subunit" ,python2-subunit) | |
8067 | ("python2-mimeparse" ,python2-mimeparse))))))) | |
6a5c710c LF |
8068 | |
8069 | (define-public python-zope-i18nmessageid | |
8070 | (package | |
8071 | (name "python-zope-i18nmessageid") | |
8072 | (version "4.0.3") | |
8073 | (source | |
8074 | (origin | |
8075 | (method url-fetch) | |
8076 | (uri (string-append | |
8077 | "https://pypi.python.org/packages/source/z" | |
8078 | "/zope.i18nmessageid/zope.i18nmessageid-" | |
8079 | version ".tar.gz")) | |
8080 | (sha256 | |
8081 | (base32 | |
8082 | "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) | |
8083 | (build-system python-build-system) | |
6a5c710c LF |
8084 | (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") |
8085 | (synopsis "Message identifiers for internationalization") | |
8086 | (description "Zope.i18nmessageid provides facilities for declaring | |
8087 | internationalized messages within program source text.") | |
3f641af0 | 8088 | (license license:zpl2.1))) |
6a5c710c LF |
8089 | |
8090 | (define-public python2-zope-i18nmessageid | |
8091 | (package-with-python2 python-zope-i18nmessageid)) | |
71fb09f3 LF |
8092 | |
8093 | (define-public python-zope-schema | |
8094 | (package | |
8095 | (name "python-zope-schema") | |
8096 | (version "4.4.2") | |
8097 | (source | |
8098 | (origin | |
8099 | (method url-fetch) | |
8100 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8101 | "/zope.schema/zope.schema-" version ".tar.gz")) | |
8102 | (sha256 | |
8103 | (base32 | |
8104 | "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) | |
8105 | (build-system python-build-system) | |
22dba2ef MB |
8106 | (arguments |
8107 | '(#:tests? #f)) ; FIXME: Tests can't find zope.event. | |
71fb09f3 LF |
8108 | (propagated-inputs |
8109 | `(("python-zope-event" ,python-zope-event) | |
2b9e4bea | 8110 | ("python-zope-exceptions", python-zope-exceptions) |
71fb09f3 LF |
8111 | ("python-zope-interface" ,python-zope-interface))) |
8112 | (native-inputs | |
47f77210 HG |
8113 | `(("python-zope-testing" ,python-zope-testing) |
8114 | ("python-coverage" ,python-coverage) | |
8115 | ("python-nose" ,python-nose))) | |
71fb09f3 LF |
8116 | (home-page "http://pypi.python.org/pypi/zope.schema") |
8117 | (synopsis "Zope data schemas") | |
8118 | (description "Zope.scheme provides extensions to zope.interface for | |
8119 | defining data schemas.") | |
3f641af0 | 8120 | (license license:zpl2.1))) |
71fb09f3 LF |
8121 | |
8122 | (define-public python2-zope-schema | |
8123 | (package-with-python2 python-zope-schema)) | |
fbac9b17 LF |
8124 | |
8125 | (define-public python-zope-configuration | |
8126 | (package | |
8127 | (name "python-zope-configuration") | |
8128 | (version "4.0.3") | |
8129 | (source (origin | |
8130 | (method url-fetch) | |
8131 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8132 | "/zope.configuration/zope.configuration-" | |
8133 | version ".tar.gz")) | |
8134 | (sha256 | |
8135 | (base32 | |
8136 | "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) | |
8137 | (build-system python-build-system) | |
7e8b1bfa MB |
8138 | (arguments |
8139 | '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. | |
fbac9b17 LF |
8140 | (propagated-inputs |
8141 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
8142 | ("python-zope-schema" ,python-zope-schema))) | |
8143 | (home-page "http://pypi.python.org/pypi/zope.configuration") | |
8144 | (synopsis "Zope Configuration Markup Language") | |
8145 | (description "Zope.configuration implements ZCML, the Zope Configuration | |
8146 | Markup Language.") | |
3f641af0 | 8147 | (license license:zpl2.1))) |
fbac9b17 LF |
8148 | |
8149 | (define-public python2-zope-configuration | |
8150 | (package-with-python2 python-zope-configuration)) | |
2ad52086 LF |
8151 | |
8152 | (define-public python-zope-proxy | |
8153 | (package | |
8154 | (name "python-zope-proxy") | |
8155 | (version "4.1.6") | |
8156 | (source | |
8157 | (origin | |
8158 | (method url-fetch) | |
8159 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8160 | "/zope.proxy/zope.proxy-" version ".tar.gz")) | |
8161 | (sha256 | |
8162 | (base32 | |
8163 | "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) | |
8164 | (build-system python-build-system) | |
66b3aadb MB |
8165 | (arguments |
8166 | '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. | |
2ad52086 LF |
8167 | (propagated-inputs |
8168 | `(("python-zope-interface" ,python-zope-interface))) | |
8169 | (home-page "http://pypi.python.org/pypi/zope.proxy") | |
8170 | (synopsis "Generic, transparent proxies") | |
8171 | (description "Zope.proxy provides generic, transparent proxies for Python. | |
8172 | Proxies are special objects which serve as mostly-transparent wrappers around | |
8173 | another object, intervening in the apparent behavior of the wrapped object | |
8174 | only when necessary to apply the policy (e.g., access checking, location | |
8175 | brokering, etc.) for which the proxy is responsible.") | |
3f641af0 | 8176 | (license license:zpl2.1))) |
2ad52086 LF |
8177 | |
8178 | (define-public python2-zope-proxy | |
8179 | (package-with-python2 python-zope-proxy)) | |
f404b5ea LF |
8180 | |
8181 | (define-public python-zope-location | |
8182 | (package | |
8183 | (name "python-zope-location") | |
8184 | (version "4.0.3") | |
8185 | (source | |
8186 | (origin | |
8187 | (method url-fetch) | |
8188 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8189 | "/zope.location/zope.location-" version ".tar.gz")) | |
8190 | (sha256 | |
8191 | (base32 | |
8192 | "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) | |
8193 | (build-system python-build-system) | |
40bb8e07 MB |
8194 | (arguments |
8195 | '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. | |
d27f176a | 8196 | (propagated-inputs |
f404b5ea LF |
8197 | `(("python-zope-proxy" ,python-zope-proxy) |
8198 | ("python-zope-schema" ,python-zope-schema))) | |
8199 | (home-page "http://pypi.python.org/pypi/zope.location/") | |
8200 | (synopsis "Zope location library") | |
8201 | (description "Zope.location implements the concept of \"locations\" in | |
8202 | Zope3, which are are special objects that have a structural location.") | |
3f641af0 | 8203 | (license license:zpl2.1))) |
f404b5ea LF |
8204 | |
8205 | (define-public python2-zope-location | |
8206 | (package-with-python2 python-zope-location)) | |
d4b77f36 LF |
8207 | |
8208 | (define-public python-zope-security | |
8209 | (package | |
8210 | (name "python-zope-security") | |
8211 | (version "4.0.3") | |
8212 | (source | |
8213 | (origin | |
8214 | (method url-fetch) | |
8215 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8216 | "/zope.security/zope.security-" version ".tar.gz")) | |
8217 | (sha256 | |
8218 | (base32 | |
8219 | "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) | |
8220 | (build-system python-build-system) | |
a74f9b12 MB |
8221 | (arguments |
8222 | '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner. | |
d4b77f36 LF |
8223 | (propagated-inputs |
8224 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
d4b77f36 | 8225 | ("python-zope-proxy" ,python-zope-proxy) |
fd8e23b7 | 8226 | ("python-zope-schema" ,python-zope-schema))) |
a74f9b12 MB |
8227 | (native-inputs |
8228 | `(("python-six" ,python-six) | |
8229 | ("python-zope-component" ,python-zope-component) | |
fd8e23b7 HG |
8230 | ("python-zope-configuration" ,python-zope-configuration) |
8231 | ("python-zope-location" ,python-zope-location) | |
d4b77f36 LF |
8232 | ("python-zope-testrunner" ,python-zope-testrunner) |
8233 | ("python-zope-testing" ,python-zope-testing))) | |
8234 | (home-page "http://pypi.python.org/pypi/zope.security") | |
8235 | (synopsis "Zope security framework") | |
8236 | (description "Zope.security provides a generic mechanism to implement | |
8237 | security policies on Python objects.") | |
3f641af0 | 8238 | (license license:zpl2.1))) |
d4b77f36 LF |
8239 | |
8240 | (define-public python2-zope-security | |
04417662 EF |
8241 | (let ((zope-security (package-with-python2 python-zope-security))) |
8242 | (package (inherit zope-security) | |
8243 | (propagated-inputs | |
8244 | `(("python2-zope-testrunner" ,python2-zope-testrunner) | |
8245 | ,@(alist-delete | |
8246 | "python-zope-testrunner" | |
8247 | (package-propagated-inputs zope-security))))))) | |
a6b61b27 LF |
8248 | |
8249 | (define-public python-zope-component | |
8250 | (package | |
8251 | (name "python-zope-component") | |
8252 | (version "4.2.2") | |
8253 | (source | |
8254 | (origin | |
8255 | (method url-fetch) | |
8256 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
8257 | "/zope.component/zope.component-" version ".tar.gz")) | |
8258 | (sha256 | |
8259 | (base32 | |
8260 | "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18")))) | |
8261 | (build-system python-build-system) | |
8262 | (arguments | |
8263 | ;; Skip tests due to circular dependency with python-zope-security. | |
8264 | '(#:tests? #f)) | |
8265 | (native-inputs | |
8266 | `(("python-zope-testing" ,python-zope-testing))) | |
8267 | (propagated-inputs | |
8268 | `(("python-zope-event" ,python-zope-event) | |
8269 | ("python-zope-interface" ,python-zope-interface) | |
8270 | ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
8271 | ("python-zope-configuration" ,python-zope-configuration))) | |
8272 | (home-page "https://github.com/zopefoundation/zope.component") | |
8273 | (synopsis "Zope Component Architecture") | |
8274 | (description "Zope.component represents the core of the Zope Component | |
8275 | Architecture. Together with the zope.interface package, it provides | |
8276 | facilities for defining, registering and looking up components.") | |
3f641af0 | 8277 | (license license:zpl2.1))) |
a6b61b27 LF |
8278 | |
8279 | (define-public python2-zope-component | |
8280 | (package-with-python2 python-zope-component)) | |
3859ac12 | 8281 | |
1ae44b80 | 8282 | (define-public python-pythondialog |
b5f218be | 8283 | (package |
1ae44b80 | 8284 | (name "python-pythondialog") |
42c4b246 | 8285 | (version "3.4.0") |
b5f218be LF |
8286 | (source |
8287 | (origin | |
8288 | (method url-fetch) | |
1ae44b80 | 8289 | (uri (pypi-uri "pythondialog" version)) |
b5f218be LF |
8290 | (sha256 |
8291 | (base32 | |
1ae44b80 | 8292 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
b5f218be LF |
8293 | (build-system python-build-system) |
8294 | (arguments | |
8295 | `(#:phases | |
8296 | (modify-phases %standard-phases | |
8297 | (add-after 'unpack 'patch-path | |
8298 | (lambda* (#:key inputs #:allow-other-keys) | |
8299 | (let* ((dialog (assoc-ref inputs "dialog"))) | |
8300 | ;; Since this library really wants to grovel the search path, we | |
8301 | ;; must hardcode dialog's store path into it. | |
8302 | (substitute* "dialog.py" | |
8303 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") | |
8304 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) | |
8305 | #t)))) | |
b5f218be LF |
8306 | #:tests? #f)) ; no test suite |
8307 | (propagated-inputs | |
8308 | `(("dialog" ,dialog))) | |
8309 | (home-page "http://pythondialog.sourceforge.net/") | |
8310 | (synopsis "Python interface to the UNIX dialog utility") | |
8311 | (description "A Python wrapper for the dialog utility. Its purpose is to | |
8312 | provide an easy to use, pythonic and comprehensive Python interface to dialog. | |
8313 | This allows one to make simple text-mode user interfaces on Unix-like systems") | |
3f641af0 | 8314 | (license license:lgpl2.1) |
1ae44b80 LF |
8315 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
8316 | ||
8317 | (define-public python2-pythondialog | |
8318 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) | |
8319 | (package | |
8320 | (inherit base) | |
8321 | (version (package-version python-pythondialog)) | |
8322 | (source (origin | |
8323 | (method url-fetch) | |
8324 | (uri (pypi-uri "python2-pythondialog" version)) | |
8325 | (sha256 | |
8326 | (base32 | |
8327 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) | |
b5f218be | 8328 | |
3859ac12 LF |
8329 | (define-public python-pyrfc3339 |
8330 | (package | |
8331 | (name "python-pyrfc3339") | |
d9aa097b | 8332 | (version "1.0") |
3859ac12 LF |
8333 | (source |
8334 | (origin | |
8335 | (method url-fetch) | |
d9aa097b | 8336 | (uri (pypi-uri "pyRFC3339" version)) |
3859ac12 LF |
8337 | (sha256 |
8338 | (base32 | |
d9aa097b | 8339 | "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd")))) |
3859ac12 LF |
8340 | (build-system python-build-system) |
8341 | (propagated-inputs | |
8342 | `(("python-pytz" ,python-pytz))) | |
8343 | (native-inputs | |
f3b98f4f | 8344 | `(("python-nose" ,python-nose))) |
3859ac12 LF |
8345 | (home-page "https://github.com/kurtraschke/pyRFC3339") |
8346 | (synopsis "Python timestamp library") | |
8347 | (description "Python library for generating and parsing RFC 3339-compliant | |
8348 | timestamps.") | |
8349 | (license license:expat))) | |
8350 | ||
8351 | (define-public python2-pyrfc3339 | |
8352 | (package-with-python2 python-pyrfc3339)) | |
5eea2005 LF |
8353 | |
8354 | (define-public python-werkzeug | |
8355 | (package | |
8356 | (name "python-werkzeug") | |
bbb99d6b | 8357 | (version "0.11.15") |
5eea2005 LF |
8358 | (source |
8359 | (origin | |
8360 | (method url-fetch) | |
4b47cbfa | 8361 | (uri (pypi-uri "Werkzeug" version)) |
5eea2005 LF |
8362 | (sha256 |
8363 | (base32 | |
bbb99d6b | 8364 | "1h5wycw8yj7q0grqsjnsqflmrlsdagvl2j4dsgdncci6mjc7fpa5")))) |
5eea2005 LF |
8365 | (build-system python-build-system) |
8366 | (native-inputs | |
8367 | `(("python-pytest" ,python-pytest))) | |
8368 | (home-page "http://werkzeug.pocoo.org/") | |
8369 | (synopsis "Utilities for WSGI applications") | |
8370 | (description "One of the most advanced WSGI utility modules. It includes a | |
8371 | powerful debugger, full-featured request and response objects, HTTP utilities to | |
8372 | handle entity tags, cache control headers, HTTP dates, cookie handling, file | |
8373 | uploads, a powerful URL routing system and a bunch of community-contributed | |
8374 | addon modules.") | |
3f641af0 | 8375 | (license license:x11))) |
5eea2005 LF |
8376 | |
8377 | (define-public python2-werkzeug | |
8378 | (package-with-python2 python-werkzeug)) | |
99fffa8a LF |
8379 | |
8380 | (define-public python-configobj | |
8381 | (package | |
8382 | (name "python-configobj") | |
8383 | (version "5.0.6") | |
8384 | (source (origin | |
8385 | (method url-fetch) | |
8386 | (uri (string-append | |
8387 | "https://pypi.python.org/packages/source/c/configobj/" | |
8388 | "configobj-" version ".tar.gz")) | |
8389 | (sha256 | |
8390 | (base32 | |
8391 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) | |
8392 | ;; Patch setup.py so it looks for python-setuptools, which is | |
8393 | ;; required to parse the keyword 'install_requires' in setup.py. | |
fc1adab1 | 8394 | (patches (search-patches "python-configobj-setuptools.patch")))) |
99fffa8a | 8395 | (build-system python-build-system) |
861f70c9 | 8396 | (propagated-inputs |
f3b98f4f | 8397 | `(("python-six" ,python-six))) |
99fffa8a LF |
8398 | (synopsis "Config file reading, writing and validation") |
8399 | (description "ConfigObj is a simple but powerful config file reader and | |
8400 | writer: an ini file round tripper. Its main feature is that it is very easy to | |
8401 | use, with a straightforward programmer’s interface and a simple syntax for | |
8402 | config files.") | |
8403 | (home-page "https://github.com/DiffSK/configobj") | |
3f641af0 | 8404 | (license license:bsd-3))) |
99fffa8a LF |
8405 | |
8406 | (define-public python2-configobj | |
8407 | (package-with-python2 python-configobj)) | |
79e8a291 LF |
8408 | |
8409 | (define-public python-configargparse | |
8410 | (package | |
8411 | (name "python-configargparse") | |
8412 | (version "0.10.0") | |
8413 | (source (origin | |
8414 | (method url-fetch) | |
8415 | (uri (string-append | |
8416 | "https://pypi.python.org/packages/source/C/ConfigArgParse/" | |
8417 | "ConfigArgParse-" version ".tar.gz")) | |
8418 | (sha256 | |
8419 | (base32 | |
8420 | "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v")))) | |
8421 | (build-system python-build-system) | |
8422 | (arguments | |
8423 | ;; FIXME: Bug in test suite filed upstream: | |
8424 | ;; https://github.com/bw2/ConfigArgParse/issues/32 | |
8425 | '(#:tests? #f)) | |
8426 | (synopsis "Replacement for argparse") | |
8427 | (description "A drop-in replacement for argparse that allows options to also | |
8428 | be set via config files and/or environment variables.") | |
8429 | (home-page "https://github.com/bw2/ConfigArgParse") | |
8430 | (license license:expat))) | |
8431 | ||
8432 | (define-public python2-configargparse | |
8433 | (package-with-python2 python-configargparse)) | |
ab41f979 LF |
8434 | |
8435 | (define-public python-ndg-httpsclient | |
8436 | (package | |
8437 | (name "python-ndg-httpsclient") | |
ae476d01 | 8438 | (version "0.4.2") |
ab41f979 LF |
8439 | (source (origin |
8440 | (method url-fetch) | |
7be13d00 | 8441 | (uri (pypi-uri "ndg_httpsclient" version)) |
ab41f979 LF |
8442 | (sha256 |
8443 | (base32 | |
ae476d01 | 8444 | "1b5qirv46v4dpnmfqviwq42mdwfcby4dxmz0i41wad2337pqf2aq")))) |
ab41f979 | 8445 | (build-system python-build-system) |
a39cc016 LF |
8446 | (arguments |
8447 | '(;; The tests appear to require networking. | |
8448 | #:tests? #f)) | |
ab41f979 LF |
8449 | (propagated-inputs |
8450 | `(("python-pyopenssl" ,python-pyopenssl))) | |
8451 | (synopsis "HTTPS support for Python's httplib and urllib2") | |
8452 | (description "This is a HTTPS client implementation for httplib and urllib2 | |
8453 | based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation | |
8454 | over the default provided with Python and importantly enables full verification | |
8455 | of the SSL peer.") | |
8456 | (home-page "https://github.com/cedadev/ndg_httpsclient/") | |
3f641af0 | 8457 | (license license:bsd-3))) |
ab41f979 LF |
8458 | |
8459 | ;; python2-openssl requires special care, so package-with-python2 is | |
8460 | ;; insufficient. | |
8461 | (define-public python2-ndg-httpsclient | |
8462 | (package (inherit python-ndg-httpsclient) | |
8463 | (name "python2-ndg-httpsclient") | |
8464 | (arguments `(#:python ,python-2)) | |
8465 | (propagated-inputs | |
8466 | `(("python2-pyopenssl" ,python2-pyopenssl))))) | |
03f964a5 CM |
8467 | |
8468 | (define-public python-contextlib2 | |
8469 | (package | |
8470 | (name "python-contextlib2") | |
8471 | (version "0.4.0") | |
8472 | (source | |
8473 | (origin | |
8474 | (method url-fetch) | |
8475 | (uri (pypi-uri "contextlib2" version)) | |
8476 | (sha256 | |
8477 | (base32 | |
8478 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) | |
8479 | (build-system python-build-system) | |
8480 | (arguments | |
8481 | `(#:phases | |
8482 | (modify-phases %standard-phases | |
8483 | (replace 'check | |
8484 | (lambda _ (zero? | |
8485 | (system* | |
b3546174 | 8486 | "python" "test_contextlib2.py" "-v"))))))) |
03f964a5 CM |
8487 | (home-page "http://contextlib2.readthedocs.org/") |
8488 | (synopsis "Tools for decorators and context managers") | |
8489 | (description "This module is primarily a backport of the Python | |
8490 | 3.2 contextlib to earlier Python versions. Like contextlib, it | |
8491 | provides utilities for common tasks involving decorators and context | |
8492 | managers. It also contains additional features that are not part of | |
8493 | the standard library.") | |
3f641af0 | 8494 | (license license:psfl))) |
03f964a5 CM |
8495 | |
8496 | (define-public python2-contextlib2 | |
8497 | (package-with-python2 python-contextlib2)) | |
210bf497 DT |
8498 | |
8499 | (define-public python-texttable | |
8500 | (package | |
8501 | (name "python-texttable") | |
8502 | (version "0.8.4") | |
8503 | (source | |
8504 | (origin | |
8505 | (method url-fetch) | |
8506 | (uri (pypi-uri "texttable" version)) | |
8507 | (sha256 | |
8508 | (base32 | |
8509 | "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) | |
8510 | (build-system python-build-system) | |
8511 | (arguments '(#:tests? #f)) ; no tests | |
8512 | (home-page "https://github.com/foutaise/texttable/") | |
8513 | (synopsis "Python module for creating simple ASCII tables") | |
8514 | (description "Texttable is a Python module for creating simple ASCII | |
8515 | tables.") | |
3f641af0 | 8516 | (license license:lgpl2.1+))) |
210bf497 DT |
8517 | |
8518 | (define-public python2-texttable | |
8519 | (package-with-python2 python-texttable)) | |
67c52bb3 DT |
8520 | |
8521 | (define-public python-websocket-client | |
8522 | (package | |
8523 | (name "python-websocket-client") | |
6b810897 | 8524 | (version "0.37.0") |
67c52bb3 DT |
8525 | (source |
8526 | (origin | |
8527 | (method url-fetch) | |
6b810897 | 8528 | (uri (pypi-uri "websocket_client" version)) |
67c52bb3 DT |
8529 | (sha256 |
8530 | (base32 | |
6b810897 | 8531 | "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) |
67c52bb3 | 8532 | (build-system python-build-system) |
a5333f7c HG |
8533 | (propagated-inputs |
8534 | `(("python-six" ,python-six))) | |
67c52bb3 DT |
8535 | (home-page "https://github.com/liris/websocket-client") |
8536 | (synopsis "WebSocket client for Python") | |
8537 | (description "The Websocket-client module provides the low level APIs for | |
8538 | WebSocket usage in Python programs.") | |
3f641af0 | 8539 | (license license:lgpl2.1+))) |
67c52bb3 DT |
8540 | |
8541 | (define-public python2-websocket-client | |
8542 | (package-with-python2 python-websocket-client)) | |
5c6eea2a LF |
8543 | |
8544 | (define-public python-atomicwrites | |
8545 | (package | |
8546 | (name "python-atomicwrites") | |
4e92d76a | 8547 | (version "1.1.0") |
5c6eea2a LF |
8548 | (source (origin |
8549 | (method url-fetch) | |
8550 | (uri (pypi-uri "atomicwrites" version)) | |
8551 | (sha256 | |
8552 | (base32 | |
4e92d76a | 8553 | "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0")))) |
5c6eea2a LF |
8554 | (build-system python-build-system) |
8555 | (synopsis "Atomic file writes in Python") | |
8556 | (description "Library for atomic file writes using platform dependent tools | |
8f65585b | 8557 | for atomic file system operations.") |
5c6eea2a | 8558 | (home-page "https://github.com/untitaker/python-atomicwrites") |
f210e944 | 8559 | (license license:expat))) |
9bb6d184 LF |
8560 | |
8561 | (define-public python2-atomicwrites | |
f210e944 | 8562 | (package-with-python2 python-atomicwrites)) |
561bb3cb LF |
8563 | |
8564 | (define-public python-requests-toolbelt | |
8565 | (package | |
8566 | (name "python-requests-toolbelt") | |
c02af1c8 | 8567 | (version "0.6.2") |
561bb3cb LF |
8568 | (source (origin |
8569 | (method url-fetch) | |
c02af1c8 LF |
8570 | (uri (string-append |
8571 | "https://pypi.python.org/packages/" | |
8572 | "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" | |
8573 | "requests-toolbelt-" version ".tar.gz")) | |
561bb3cb LF |
8574 | (sha256 |
8575 | (base32 | |
c02af1c8 | 8576 | "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) |
561bb3cb | 8577 | (build-system python-build-system) |
759aadd4 LF |
8578 | (native-inputs |
8579 | `(("python-betamax" ,python-betamax) | |
8580 | ("python-mock" ,python-mock) | |
8581 | ("python-pytest" ,python-pytest))) | |
561bb3cb LF |
8582 | (propagated-inputs |
8583 | `(("python-requests" ,python-requests))) | |
8584 | (synopsis "Extensions to python-requests") | |
8585 | (description "This is a toolbelt of useful classes and functions to be used | |
8586 | with python-requests.") | |
8587 | (home-page "https://github.com/sigmavirus24/requests-toolbelt") | |
3f641af0 | 8588 | (license license:asl2.0))) |
d1deb90b LF |
8589 | |
8590 | (define-public python-click-threading | |
8591 | (package | |
8592 | (name "python-click-threading") | |
3d2e0dbc | 8593 | (version "0.2.0") |
d1deb90b LF |
8594 | (source (origin |
8595 | (method url-fetch) | |
3d2e0dbc LF |
8596 | (uri (string-append |
8597 | "https://pypi.python.org/packages/" | |
8598 | "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/" | |
8599 | "click-threading-" version ".tar.gz")) | |
d1deb90b LF |
8600 | (sha256 |
8601 | (base32 | |
3d2e0dbc | 8602 | "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j")))) |
d1deb90b LF |
8603 | (build-system python-build-system) |
8604 | (propagated-inputs | |
8605 | `(("python-click" ,python-click))) | |
8606 | (synopsis "Utilities for multithreading in Click") | |
8607 | (description "This package provides utilities for multithreading in Click | |
8608 | applications.") | |
8609 | (home-page "https://github.com/click-contrib/click-threading") | |
8610 | (license license:expat))) | |
7b17cab9 LF |
8611 | |
8612 | (define-public python-click-log | |
8613 | (package | |
8614 | (name "python-click-log") | |
42734b9a | 8615 | (version "0.1.8") |
7b17cab9 LF |
8616 | (source (origin |
8617 | (method url-fetch) | |
8618 | (uri (pypi-uri "click-log" version)) | |
8619 | (sha256 | |
8620 | (base32 | |
42734b9a | 8621 | "14ikfjfgnzf21mjniq9lfk2igzykgzfvwwrk85nw2b9fq44109sp")))) |
7b17cab9 LF |
8622 | (build-system python-build-system) |
8623 | (propagated-inputs | |
8624 | `(("python-click" ,python-click))) | |
8625 | (synopsis "Logging for click applications") | |
8626 | (description "This package provides a Python library for logging Click | |
8627 | applications.") | |
8628 | (home-page "https://github.com/click-contrib/click-log") | |
8629 | (license license:expat))) | |
7b3a4ee4 LF |
8630 | |
8631 | (define-public python-apipkg | |
8632 | (package | |
8633 | (name "python-apipkg") | |
8634 | (version "1.4") | |
8635 | (source (origin | |
8636 | (method url-fetch) | |
8637 | (uri (pypi-uri "apipkg" version)) | |
8638 | (sha256 | |
8639 | (base32 | |
8640 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) | |
8641 | (build-system python-build-system) | |
328bb95d | 8642 | (native-inputs |
7b3a4ee4 LF |
8643 | `(("python-pytest" ,python-pytest))) |
8644 | (synopsis "Namespace control and lazy-import mechanism") | |
8645 | (description "With apipkg you can control the exported namespace of a Python | |
8646 | package and greatly reduce the number of imports for your users. It is a small | |
8647 | pure Python module that works on virtually all Python versions.") | |
8648 | (home-page "https://bitbucket.org/hpk42/apipkg") | |
f210e944 | 8649 | (license license:expat))) |
e08739c3 CAW |
8650 | |
8651 | (define-public python2-apipkg | |
f210e944 | 8652 | (package-with-python2 python-apipkg)) |
848964fe LF |
8653 | |
8654 | (define-public python-execnet | |
8655 | (package | |
8656 | (name "python-execnet") | |
8657 | (version "1.4.1") | |
8658 | (source (origin | |
8659 | (method url-fetch) | |
8660 | (uri (pypi-uri "execnet" version)) | |
8661 | (sha256 | |
8662 | (base32 | |
8663 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) | |
8664 | (build-system python-build-system) | |
ca0eee9d LF |
8665 | (arguments |
8666 | `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed | |
8667 | ;; The two test failures are caused by the lack of an `ssh` executable. | |
8668 | ;; The test suite can be run with pytest after the 'install' phase. | |
8669 | #:tests? #f)) | |
848964fe | 8670 | (native-inputs |
ca0eee9d LF |
8671 | `(("python-pytest" ,python-pytest) |
8672 | ("python-setuptools-scm" ,python-setuptools-scm))) | |
f22efa01 | 8673 | (propagated-inputs |
848964fe LF |
8674 | `(("python-apipkg" ,python-apipkg))) |
8675 | (synopsis "Rapid multi-Python deployment") | |
8676 | (description "Execnet provides a share-nothing model with | |
8677 | channel-send/receive communication for distributing execution across many | |
8678 | Python interpreters across version, platform and network barriers. It has a | |
8679 | minimal and fast API targetting the following uses: | |
8680 | @enumerate | |
8681 | @item distribute tasks to (many) local or remote CPUs | |
8682 | @item write and deploy hybrid multi-process applications | |
8683 | @item write scripts to administer multiple environments | |
8684 | @end enumerate") | |
8685 | (home-page "http://codespeak.net/execnet/") | |
f210e944 | 8686 | (license license:expat))) |
16c84f90 CAW |
8687 | |
8688 | (define-public python2-execnet | |
f210e944 | 8689 | (package-with-python2 python-execnet)) |
6720dbb4 | 8690 | |
d5bbf806 | 8691 | (define-public python-trollius-redis |
8692 | (package | |
8693 | (name "python-trollius-redis") | |
8694 | (version "0.1.4") | |
8695 | (source | |
8696 | (origin | |
8697 | (method url-fetch) | |
8698 | (uri (pypi-uri "trollius_redis" version)) | |
8699 | (sha256 | |
8700 | (base32 | |
8701 | "0k3vypszmgmaipgw9xscvgm79h2zd6p6ci8gdp5sxl6g5kbqr9fy")))) | |
8702 | (build-system python-build-system) | |
97b62eb0 MB |
8703 | ;; TODO: Tests require packaging 'hiredis'. |
8704 | (arguments '(#:tests? #f)) | |
d5bbf806 | 8705 | (home-page "https://github.com/benjolitz/trollius-redis") |
8706 | (synopsis "Port of asyncio-redis to trollius") | |
8707 | (description "@code{trollius-redis} is a Redis client for Python | |
8708 | trollius. It is an asynchronious IO (PEP 3156) implementation of the | |
8709 | Redis protocol.") | |
8710 | (license license:bsd-2))) | |
8711 | ||
8712 | (define-public python2-trollius-redis | |
8713 | (package-with-python2 python-trollius-redis)) | |
8714 | ||
6720dbb4 LF |
8715 | ;;; The software provided by this package was integrated into pytest 2.8. |
8716 | (define-public python-pytest-cache | |
8717 | (package | |
8718 | (name "python-pytest-cache") | |
8719 | (version "1.0") | |
8720 | (source (origin | |
8721 | (method url-fetch) | |
8722 | (uri (pypi-uri "pytest-cache" version)) | |
8723 | (sha256 | |
8724 | (base32 | |
8725 | "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) | |
8726 | (build-system python-build-system) | |
f22efa01 | 8727 | (propagated-inputs |
630d938f EF |
8728 | `(("python-apipkg" ,python-apipkg) |
8729 | ("python-execnet" ,python-execnet) | |
8730 | ("python-py" ,python-py) | |
8731 | ("python-pytest" ,python-pytest))) | |
6720dbb4 LF |
8732 | (synopsis "Py.test plugin with mechanisms for caching across test runs") |
8733 | (description "The pytest-cache plugin provides tools to rerun failures from | |
8734 | the last py.test invocation.") | |
8735 | (home-page "https://bitbucket.org/hpk42/pytest-cache/") | |
f210e944 | 8736 | (license license:expat))) |
0adc21c2 EF |
8737 | |
8738 | (define-public python2-pytest-cache | |
f210e944 | 8739 | (package-with-python2 python-pytest-cache)) |
d7e729fe LF |
8740 | |
8741 | (define-public python-pytest-localserver | |
8742 | (package | |
8743 | (name "python-pytest-localserver") | |
29f20168 | 8744 | (version "0.3.5") |
d7e729fe LF |
8745 | (source (origin |
8746 | (method url-fetch) | |
29f20168 | 8747 | (uri (pypi-uri "pytest-localserver" version)) |
d7e729fe LF |
8748 | (sha256 |
8749 | (base32 | |
29f20168 | 8750 | "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p")))) |
d7e729fe LF |
8751 | (build-system python-build-system) |
8752 | (arguments | |
8753 | `(#:phases (modify-phases %standard-phases | |
8754 | (replace 'check | |
8755 | (lambda _ | |
8756 | (zero? (system* "py.test" "--genscript=runtests.py")) | |
8757 | (zero? (system* "py.test"))))))) | |
8758 | (native-inputs | |
d7e729fe LF |
8759 | `(("python-pytest" ,python-pytest) |
8760 | ("python-requests" ,python-requests) | |
9ba40f05 | 8761 | ("python-six" ,python-six))) |
f22efa01 | 8762 | (propagated-inputs |
9ba40f05 | 8763 | `(("python-werkzeug" ,python-werkzeug))) |
d7e729fe LF |
8764 | (synopsis "Py.test plugin to test server connections locally") |
8765 | (description "Pytest-localserver is a plugin for the pytest testing | |
8766 | framework which enables you to test server connections locally.") | |
8767 | (home-page "https://pypi.python.org/pypi/pytest-localserver") | |
8768 | (license license:expat))) | |
28cecbb7 LF |
8769 | |
8770 | (define-public python-wsgi-intercept | |
8771 | (package | |
8772 | (name "python-wsgi-intercept") | |
909fbd2b | 8773 | (version "1.2.2") |
28cecbb7 LF |
8774 | (source (origin |
8775 | (method url-fetch) | |
909fbd2b LF |
8776 | (uri (string-append |
8777 | "https://pypi.python.org/packages/" | |
8778 | "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/" | |
8779 | "wsgi_intercept-" version ".tar.gz")) | |
28cecbb7 LF |
8780 | (sha256 |
8781 | (base32 | |
909fbd2b | 8782 | "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) |
28cecbb7 | 8783 | (build-system python-build-system) |
b9fc496f HG |
8784 | (propagated-inputs |
8785 | `(("python-six" ,python-six))) | |
28cecbb7 | 8786 | (native-inputs |
9d813ec1 | 8787 | `(("python-pytest" ,python-pytest) |
b9fc496f HG |
8788 | ("python-httplib2" ,python-httplib2) |
8789 | ("python-requests" ,python-requests) | |
8757f050 | 8790 | ("python-urllib3" ,python-urllib3))) |
28cecbb7 LF |
8791 | (synopsis "Puts a WSGI application in place of a real URI for testing") |
8792 | (description "Wsgi_intercept installs a WSGI application in place of a real | |
8793 | URI for testing. Testing a WSGI application normally involves starting a | |
8794 | server at a local host and port, then pointing your test code to that address. | |
8795 | Instead, this library lets you intercept calls to any specific host/port | |
8796 | combination and redirect them into a WSGI application importable by your test | |
8797 | program. Thus, you can avoid spawning multiple processes or threads to test | |
8798 | your Web app.") | |
8799 | (home-page "https://github.com/cdent/wsgi-intercept") | |
8800 | (license license:expat))) | |
89b8a551 LF |
8801 | |
8802 | (define-public python-pytest-xprocess | |
8803 | (package | |
8804 | (name "python-pytest-xprocess") | |
8805 | (version "0.9.1") | |
8806 | (source (origin | |
8807 | (method url-fetch) | |
8808 | (uri (pypi-uri "pytest-xprocess" version)) | |
8809 | (sha256 | |
8810 | (base32 | |
8811 | "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) | |
8812 | (build-system python-build-system) | |
8813 | (propagated-inputs | |
8814 | `(("python-pytest" ,python-pytest) | |
8815 | ("python-pytest-cache" ,python-pytest-cache) | |
8816 | ("python-psutil" ,python-psutil))) | |
8817 | (synopsis "Pytest plugin to manage external processes across test runs") | |
8818 | (description "Pytest-xprocess is an experimental py.test plugin for managing | |
8819 | processes across test runs.") | |
8820 | (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") | |
8821 | (license license:expat))) | |
5c299bf0 LF |
8822 | |
8823 | (define-public python-icalendar | |
8824 | (package | |
8825 | (name "python-icalendar") | |
b611d018 | 8826 | (version "3.11.3") |
5c299bf0 LF |
8827 | (source (origin |
8828 | (method url-fetch) | |
8829 | (uri (pypi-uri "icalendar" version)) | |
8830 | (sha256 | |
8831 | (base32 | |
b611d018 | 8832 | "086jslw8cg2hni79j267p1dy6d27m7q5hi39ni2clh9waqbdf5v3")))) |
5c299bf0 LF |
8833 | (build-system python-build-system) |
8834 | (propagated-inputs | |
22d7360b | 8835 | `(("python-dateutil" ,python-dateutil) |
5c299bf0 LF |
8836 | ("python-pytz" ,python-pytz))) |
8837 | (synopsis "Python library for parsing iCalendar files") | |
8838 | (description "The icalendar package is a parser/generator of iCalendar | |
8839 | files for use with Python.") | |
8840 | (home-page "https://github.com/collective/icalendar") | |
3f641af0 | 8841 | (license license:bsd-2))) |
6bbbb53e LF |
8842 | |
8843 | (define-public python-sphinxcontrib-newsfeed | |
8844 | (package | |
8845 | (name "python-sphinxcontrib-newsfeed") | |
8846 | (version "0.1.4") | |
8847 | (source (origin | |
8848 | (method url-fetch) | |
8849 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) | |
8850 | (sha256 | |
8851 | (base32 | |
8852 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) | |
3d2a544c | 8853 | (arguments '(#:tests? #f)) ; No tests. |
6bbbb53e LF |
8854 | (build-system python-build-system) |
8855 | (propagated-inputs | |
251ed7f2 | 8856 | `(("python-sphinx" ,python-sphinx))) |
6bbbb53e LF |
8857 | (synopsis "News Feed extension for Sphinx") |
8858 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple | |
8859 | Blog, News or Announcements section to a Sphinx website.") | |
8860 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") | |
3f641af0 | 8861 | (license license:bsd-2))) |
2216e15c SB |
8862 | |
8863 | (define-public python-args | |
8864 | (package | |
8865 | (name "python-args") | |
8866 | (version "0.1.0") | |
8867 | (source (origin | |
8868 | (method url-fetch) | |
8869 | (uri (pypi-uri "args" version)) | |
8870 | (sha256 | |
8871 | (base32 | |
8872 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) | |
8873 | (build-system python-build-system) | |
2216e15c SB |
8874 | (home-page "https://github.com/kennethreitz/args") |
8875 | (synopsis "Command-line argument parser") | |
8876 | (description | |
8877 | "This library provides a Python module to parse command-line arguments.") | |
3f641af0 | 8878 | (license license:bsd-3))) |
2216e15c SB |
8879 | |
8880 | (define-public python2-args | |
8881 | (package-with-python2 python-args)) | |
c06a3de9 SB |
8882 | |
8883 | (define-public python-clint | |
8884 | (package | |
8885 | (name "python-clint") | |
8886 | (version "0.5.1") | |
8887 | (source (origin | |
8888 | (method url-fetch) | |
8889 | (uri (pypi-uri "clint" version)) | |
8890 | (sha256 | |
8891 | (base32 | |
8892 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) | |
8893 | (build-system python-build-system) | |
6145b604 MB |
8894 | (arguments |
8895 | '(#:phases | |
8896 | (modify-phases %standard-phases | |
8897 | (replace 'check | |
8898 | (lambda _ | |
8899 | (zero? (system* "py.test" "-v"))))))) | |
8900 | (native-inputs | |
8901 | `(("python-pytest" ,python-pytest))) | |
f22efa01 | 8902 | (propagated-inputs |
f3b98f4f | 8903 | `(("python-args" ,python-args))) |
c06a3de9 SB |
8904 | (home-page "https://github.com/kennethreitz/clint") |
8905 | (synopsis "Command-line interface tools") | |
8906 | (description | |
8907 | "Clint is a Python module filled with a set of tools for developing | |
8908 | command-line applications, including tools for colored and indented | |
8909 | output, progress bar display, and pipes.") | |
3f641af0 | 8910 | (license license:isc))) |
c06a3de9 SB |
8911 | |
8912 | (define-public python2-clint | |
8913 | (package-with-python2 python-clint)) | |
4ecdeef8 SB |
8914 | |
8915 | (define-public python-astor | |
8916 | (package | |
8917 | (name "python-astor") | |
8918 | (version "0.5") | |
8919 | (source (origin | |
8920 | (method url-fetch) | |
8921 | (uri (pypi-uri "astor" version)) | |
8922 | (sha256 | |
8923 | (base32 | |
8924 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) | |
8925 | (build-system python-build-system) | |
4ecdeef8 SB |
8926 | (home-page "https://github.com/berkerpeksag/astor") |
8927 | (synopsis "Read and write Python ASTs") | |
8928 | (description | |
8929 | "Astor is designed to allow easy manipulation of Python source via the | |
8930 | Abstract Syntax Tree.") | |
3f641af0 | 8931 | (license license:bsd-3))) |
4ecdeef8 SB |
8932 | |
8933 | (define-public python2-astor | |
8934 | (package-with-python2 python-astor)) | |
e224b7d0 SB |
8935 | |
8936 | (define-public python-rply | |
8937 | (package | |
8938 | (name "python-rply") | |
8939 | (version "0.7.4") | |
8940 | (source (origin | |
8941 | (method url-fetch) | |
8942 | (uri (pypi-uri "rply" version)) | |
8943 | (sha256 | |
8944 | (base32 | |
8945 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) | |
8946 | (build-system python-build-system) | |
f22efa01 | 8947 | (propagated-inputs |
f3b98f4f | 8948 | `(("python-appdirs" ,python-appdirs))) |
e224b7d0 SB |
8949 | (home-page "https://github.com/alex/rply") |
8950 | (synopsis "Parser generator for Python") | |
8951 | (description | |
8952 | "This package provides a pure Python based parser generator, that also | |
8953 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, | |
8954 | with a new public API, and RPython support.") | |
3f641af0 | 8955 | (license license:bsd-3))) |
e224b7d0 SB |
8956 | |
8957 | (define-public python2-rply | |
8958 | (package-with-python2 python-rply)) | |
c3e919d7 SB |
8959 | |
8960 | (define-public python-hy | |
8961 | (package | |
8962 | (name "python-hy") | |
8963 | (version "0.11.1") | |
8964 | (source (origin | |
8965 | (method url-fetch) | |
8966 | (uri (pypi-uri "hy" version)) | |
8967 | (sha256 | |
8968 | (base32 | |
8969 | "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) | |
8970 | (build-system python-build-system) | |
15c37077 MB |
8971 | (arguments |
8972 | '(#:phases | |
8973 | (modify-phases %standard-phases | |
8974 | (replace 'check | |
8975 | (lambda _ | |
8976 | ;; Tests require write access to HOME. | |
8977 | (setenv "HOME" "/tmp") | |
8978 | (zero? (system* "nosetests"))))))) | |
8979 | (native-inputs | |
8980 | `(("python-coverage" ,python-coverage) | |
8981 | ("python-nose" ,python-nose))) | |
f22efa01 | 8982 | (propagated-inputs |
c3e919d7 SB |
8983 | `(("python-astor" ,python-astor) |
8984 | ("python-clint" ,python-clint) | |
f3b98f4f | 8985 | ("python-rply" ,python-rply))) |
c3e919d7 SB |
8986 | (home-page "http://hylang.org/") |
8987 | (synopsis "Lisp frontend to Python") | |
8988 | (description | |
8989 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms | |
8990 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of | |
8991 | Python at your fingertips, in Lisp form.") | |
8992 | (license license:expat))) | |
8993 | ||
8994 | (define-public python2-hy | |
8995 | (package-with-python2 python-hy)) | |
7a5b944e | 8996 | |
81f7f297 EF |
8997 | (define-public python-rauth |
8998 | (package | |
8999 | (name "python-rauth") | |
9000 | (version "0.7.2") | |
9001 | (source | |
9002 | (origin | |
9003 | (method url-fetch) | |
9004 | (uri (pypi-uri "rauth" version)) | |
9005 | (sha256 | |
9006 | (base32 | |
9007 | "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) | |
9008 | (build-system python-build-system) | |
9009 | (arguments | |
9010 | `(#:test-target "check")) | |
f22efa01 | 9011 | (propagated-inputs |
81f7f297 EF |
9012 | `(("python-requests" ,python-requests))) |
9013 | (home-page "https://github.com/litl/rauth") | |
9014 | (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") | |
9015 | (description | |
9016 | "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also | |
9017 | provides service wrappers for convenient connection initialization and | |
9018 | authenticated session objects providing things like keep-alive.") | |
0848d8d3 EF |
9019 | (license license:expat) |
9020 | (properties `((python2-variant . ,(delay python2-rauth)))))) | |
81f7f297 EF |
9021 | |
9022 | (define-public python2-rauth | |
0848d8d3 EF |
9023 | (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) |
9024 | (package | |
9025 | (inherit base) | |
00e10c6e | 9026 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
0848d8d3 | 9027 | ,@(package-native-inputs base)))))) |
81f7f297 | 9028 | |
1abe448d EF |
9029 | (define-public python2-functools32 |
9030 | (package | |
9031 | (name "python2-functools32") | |
9032 | (version "3.2.3-2") | |
9033 | (source | |
9034 | (origin | |
9035 | (method url-fetch) | |
9036 | (uri (pypi-uri "functools32" version)) | |
9037 | (sha256 | |
9038 | (base32 | |
9039 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) | |
9040 | (build-system python-build-system) | |
9041 | (arguments | |
9042 | `(#:python ,python-2 | |
9043 | #:tests? #f)) ; no test target | |
1abe448d EF |
9044 | (home-page "https://github.com/MiCHiLU/python-functools32") |
9045 | (synopsis | |
9046 | "Backport of the functools module from Python 3.2.3") | |
9047 | (description | |
9048 | "This package is a backport of the @code{functools} module from Python | |
9049 | 3.2.3 for use with older versions of Python and PyPy.") | |
9050 | (license license:expat))) | |
9051 | ||
550bd98b MB |
9052 | (define-public python2-subprocess32 |
9053 | (package | |
9054 | (name "python2-subprocess32") | |
9055 | (version "3.2.7") | |
9056 | (source (origin | |
9057 | (method url-fetch) | |
9058 | (uri (pypi-uri "subprocess32" version)) | |
9059 | (sha256 | |
9060 | (base32 | |
9061 | "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y")) | |
9062 | (patches | |
9063 | (search-patches "python2-subprocess32-disable-input-test.patch")))) | |
9064 | (build-system python-build-system) | |
9065 | (arguments | |
9066 | `(#:python ,python-2 | |
9067 | #:phases | |
9068 | (modify-phases %standard-phases | |
9069 | (add-after 'unpack 'patch-/bin/sh | |
9070 | (lambda _ | |
9071 | (substitute* '("subprocess32.py" | |
9072 | "test_subprocess32.py") | |
9073 | (("/bin/sh") (which "sh"))) | |
9074 | #t)) | |
9075 | (delete 'check) | |
9076 | (add-after 'install 'check | |
9077 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
9078 | ;; For some reason this package fails to import | |
9079 | ;; _posixsubprocess.so when PYTHONPATH is set to the build | |
9080 | ;; directory. Running tests after install is easier. | |
9081 | (add-installed-pythonpath inputs outputs) | |
9082 | (zero? (system* "python" "test_subprocess32.py"))))))) | |
9083 | (home-page "https://github.com/google/python-subprocess32") | |
9084 | (synopsis "Backport of the subprocess module from Python 3.2") | |
9085 | (description | |
9086 | "This is a backport of the @code{subprocess} standard library module | |
9087 | from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some | |
9088 | new features. On POSIX systems it is guaranteed to be reliable when used | |
9089 | in threaded applications. It includes timeout support from Python 3.3 but | |
9090 | otherwise matches 3.2’s API.") | |
9091 | (license license:psfl))) | |
9092 | ||
877889f3 | 9093 | (define-public python2-futures |
7a5b944e | 9094 | (package |
877889f3 | 9095 | (name "python2-futures") |
7a5b944e EF |
9096 | (version "3.0.3") |
9097 | (source | |
9098 | (origin | |
9099 | (method url-fetch) | |
9100 | (uri (pypi-uri "futures" version)) | |
9101 | (sha256 | |
9102 | (base32 | |
9103 | "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) | |
9104 | (build-system python-build-system) | |
877889f3 | 9105 | (arguments `(#:python ,python-2)) |
7a5b944e EF |
9106 | (home-page "https://github.com/agronholm/pythonfutures") |
9107 | (synopsis | |
9108 | "Backport of the concurrent.futures package from Python 3.2") | |
9109 | (description | |
9110 | "The concurrent.futures module provides a high-level interface for | |
9111 | asynchronously executing callables. This package backports the | |
9112 | concurrent.futures package from Python 3.2") | |
3f641af0 | 9113 | (license license:bsd-3))) |
7a5b944e | 9114 | |
5cb2fe44 EF |
9115 | (define-public python-promise |
9116 | (package | |
9117 | (name "python-promise") | |
9118 | (version "0.4.2") | |
9119 | (source | |
9120 | (origin | |
9121 | (method url-fetch) | |
9122 | (uri (pypi-uri "promise" version)) | |
9123 | (sha256 | |
9124 | (base32 | |
9125 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) | |
9126 | (build-system python-build-system) | |
9127 | ;; Tests wants python-futures, which is a python2 only program, and | |
9128 | ;; can't be found by python-promise at test time. | |
9129 | (arguments `(#:tests? #f)) | |
9130 | (home-page "https://github.com/syrusakbary/promise") | |
9131 | (synopsis "Promises/A+ implementation for Python") | |
9132 | (description | |
9133 | "Promises/A+ implementation for Python") | |
9134 | (properties `((python2-variant . ,(delay python2-promise)))) | |
9135 | (license license:expat))) | |
9136 | ||
9137 | (define-public python2-promise | |
9138 | (let ((promise (package-with-python2 | |
9139 | (strip-python2-variant python-promise)))) | |
9140 | (package (inherit promise) | |
9141 | (arguments (substitute-keyword-arguments (package-arguments promise) | |
9142 | ((#:tests? _) #t))) | |
9143 | (native-inputs | |
9144 | `(("python2-futures" ,python2-futures) | |
9145 | ("python2-pytest" ,python2-pytest) | |
5cb2fe44 EF |
9146 | ,@(package-native-inputs promise)))))) |
9147 | ||
c18f6368 EF |
9148 | (define-public python-urllib3 |
9149 | (package | |
9150 | (name "python-urllib3") | |
6178274d | 9151 | (version "1.18.1") |
c18f6368 EF |
9152 | (source |
9153 | (origin | |
9154 | (method url-fetch) | |
9155 | (uri (pypi-uri "urllib3" version)) | |
9156 | (sha256 | |
9157 | (base32 | |
6178274d | 9158 | "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam")))) |
c18f6368 EF |
9159 | (build-system python-build-system) |
9160 | (arguments `(#:tests? #f)) | |
9161 | (native-inputs | |
f3b98f4f | 9162 | `(;; some packages for tests |
c18f6368 EF |
9163 | ("python-nose" ,python-nose) |
9164 | ("python-mock" ,python-mock) | |
9165 | ("python-tornado" ,python-tornado))) | |
9166 | (propagated-inputs | |
8322749a | 9167 | `(;; extra packages for https security |
c18f6368 EF |
9168 | ("python-certifi" ,python-certifi) |
9169 | ("python-ndg-httpsclient" ,python-ndg-httpsclient) | |
9170 | ("python-pyasn1" ,python-pyasn1) | |
9171 | ("python-pyopenssl" ,python-pyopenssl))) | |
6178274d | 9172 | (home-page "https://urllib3.readthedocs.org/") |
c18f6368 EF |
9173 | (synopsis "HTTP library with thread-safe connection pooling") |
9174 | (description | |
9175 | "Urllib3 supports features left out of urllib and urllib2 libraries. It | |
9176 | can reuse the same socket connection for multiple requests, it can POST files, | |
9177 | supports url redirection and retries, and also gzip and deflate decoding.") | |
9178 | (license license:expat))) | |
9179 | ||
9180 | (define-public python2-urllib3 | |
9181 | (package-with-python2 python-urllib3)) | |
2b2f2fc1 DT |
9182 | |
9183 | (define-public python-colorama | |
9184 | (package | |
9185 | (name "python-colorama") | |
f92576f9 | 9186 | (version "0.3.7") |
2b2f2fc1 DT |
9187 | (source |
9188 | (origin | |
9189 | (method url-fetch) | |
9190 | (uri (pypi-uri "colorama" version)) | |
9191 | (sha256 | |
9192 | (base32 | |
f92576f9 | 9193 | "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0")))) |
2b2f2fc1 | 9194 | (build-system python-build-system) |
46e110cc | 9195 | (synopsis "Colored terminal text rendering for Python") |
2b2f2fc1 DT |
9196 | (description "Colorama is a Python library for rendering colored terminal |
9197 | text.") | |
9198 | (home-page "https://pypi.python.org/pypi/colorama") | |
3f641af0 | 9199 | (license license:bsd-3))) |
2b2f2fc1 DT |
9200 | |
9201 | (define-public python2-colorama | |
9202 | (package-with-python2 python-colorama)) | |
f5bcec6e DT |
9203 | |
9204 | (define-public python-rsa | |
9205 | (package | |
9206 | (name "python-rsa") | |
ecd68c53 | 9207 | (version "3.4.2") |
f5bcec6e DT |
9208 | (source |
9209 | (origin | |
9210 | (method url-fetch) | |
9211 | (uri (pypi-uri "rsa" version)) | |
9212 | (sha256 | |
9213 | (base32 | |
ecd68c53 | 9214 | "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5")))) |
f5bcec6e | 9215 | (build-system python-build-system) |
f22efa01 | 9216 | (propagated-inputs |
f3b98f4f | 9217 | `(("python-pyasn1" ,python-pyasn1))) |
f5bcec6e DT |
9218 | (synopsis "Pure-Python RSA implementation") |
9219 | (description "Python-RSA is a pure-Python RSA implementation. It supports | |
9220 | encryption and decryption, signing and verifying signatures, and key | |
9221 | generation according to PKCS#1 version 1.5. It can be used as a Python | |
9222 | library as well as on the command line.") | |
9223 | (home-page "http://stuvel.eu/rsa") | |
3f641af0 | 9224 | (license license:asl2.0))) |
f5bcec6e DT |
9225 | |
9226 | (define-public python2-rsa | |
9227 | (package-with-python2 python-rsa)) | |
c0aacfa5 DT |
9228 | |
9229 | (define-public python-pluggy | |
9230 | (package | |
9231 | (name "python-pluggy") | |
9232 | (version "0.3.1") | |
9233 | (source | |
9234 | (origin | |
9235 | (method url-fetch) | |
9236 | (uri (pypi-uri "pluggy" version)) | |
9237 | (sha256 | |
9238 | (base32 | |
9239 | "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m")))) | |
9240 | (build-system python-build-system) | |
c0aacfa5 DT |
9241 | (synopsis "Plugin and hook calling mechanism for Python") |
9242 | (description "Pluggy is an extraction of the plugin manager as used by | |
9243 | Pytest but stripped of Pytest specific details.") | |
9244 | (home-page "https://pypi.python.org/pypi/pluggy") | |
9245 | (license license:expat))) | |
9246 | ||
9247 | (define-public python2-pluggy | |
9248 | (package-with-python2 python-pluggy)) | |
a4af21ca DT |
9249 | |
9250 | (define-public python-tox | |
9251 | (package | |
9252 | (name "python-tox") | |
9253 | (version "2.3.1") | |
9254 | (source | |
9255 | (origin | |
9256 | (method url-fetch) | |
9257 | (uri (pypi-uri "tox" version)) | |
9258 | (sha256 | |
9259 | (base32 | |
9260 | "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz")))) | |
9261 | (build-system python-build-system) | |
9262 | (arguments | |
7ba07edf HG |
9263 | ;; FIXME: Tests require pytest-timeout, which itself requires |
9264 | ;; pytest>=2.8.0 for installation. | |
a4af21ca | 9265 | '(#:tests? #f)) |
482d9591 HG |
9266 | (propagated-inputs |
9267 | `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0 | |
a4af21ca | 9268 | ("python-py" ,python-py) |
482d9591 | 9269 | ("python-virtualenv" ,python-virtualenv))) |
328bb95d | 9270 | (native-inputs |
7ba07edf HG |
9271 | `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) |
9272 | ("python-pytest" ,python-pytest))) ; >= 2.3.5 | |
a4af21ca DT |
9273 | (home-page "http://tox.testrun.org/") |
9274 | (synopsis "Virtualenv-based automation of test activities") | |
9275 | (description "Tox is a generic virtualenv management and test command line | |
9276 | tool. It can be used to check that a package installs correctly with | |
9277 | different Python versions and interpreters, or run tests in each type of | |
9278 | supported environment, or act as a frontend to continuous integration | |
9279 | servers.") | |
9280 | (license license:expat))) | |
9281 | ||
9282 | (define-public python2-tox | |
9283 | (package-with-python2 python-tox)) | |
ba9da248 DT |
9284 | |
9285 | (define-public python-jmespath | |
9286 | (package | |
9287 | (name "python-jmespath") | |
9288 | (version "0.9.0") | |
9289 | (source | |
9290 | (origin | |
9291 | (method url-fetch) | |
9292 | (uri (pypi-uri "jmespath" version)) | |
9293 | (sha256 | |
9294 | (base32 | |
9295 | "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8")))) | |
9296 | (build-system python-build-system) | |
52a75a83 MB |
9297 | (native-inputs |
9298 | `(("python-nose" ,python-nose))) | |
ba9da248 DT |
9299 | (synopsis "JSON Matching Expressions") |
9300 | (description "JMESPath (pronounced “james path”) is a Python library that | |
9301 | allows one to declaratively specify how to extract elements from a JSON | |
9302 | document.") | |
9303 | (home-page "https://github.com/jmespath/jmespath.py") | |
9304 | (license license:expat))) | |
9305 | ||
9306 | (define-public python2-jmespath | |
9307 | (package-with-python2 python-jmespath)) | |
935fcd5c DT |
9308 | |
9309 | (define-public python-botocore | |
9310 | (package | |
9311 | (name "python-botocore") | |
0a7d96f8 | 9312 | (version "1.5.10") |
935fcd5c DT |
9313 | (source |
9314 | (origin | |
9315 | (method url-fetch) | |
9316 | (uri (pypi-uri "botocore" version)) | |
9317 | (sha256 | |
9318 | (base32 | |
0a7d96f8 | 9319 | "1hqvqwhgfcch4knm1l02ynx7qd1igxk3pj34c1x2b0r79jca524n")))) |
935fcd5c | 9320 | (build-system python-build-system) |
877fdac9 MB |
9321 | (arguments |
9322 | ;; FIXME: Many tests are failing. | |
9323 | '(#:tests? #f)) | |
482d9591 | 9324 | (propagated-inputs |
22d7360b | 9325 | `(("python-dateutil" ,python-dateutil) |
935fcd5c | 9326 | ("python-docutils" ,python-docutils) |
482d9591 | 9327 | ("python-jmespath" ,python-jmespath))) |
8fa6890b | 9328 | (native-inputs |
482d9591 | 9329 | `(("python-mock" ,python-mock) |
935fcd5c | 9330 | ("python-nose" ,python-nose) |
482d9591 | 9331 | ("behave" ,behave) |
935fcd5c | 9332 | ("python-tox" ,python-tox) |
482d9591 | 9333 | ("python-wheel" ,python-wheel))) |
935fcd5c DT |
9334 | (home-page "https://github.com/boto/botocore") |
9335 | (synopsis "Low-level interface to AWS") | |
9336 | (description "Botocore is a Python library that provides a low-level | |
9337 | interface to the Amazon Web Services (AWS) API.") | |
3f641af0 | 9338 | (license license:asl2.0))) |
935fcd5c DT |
9339 | |
9340 | (define-public python2-botocore | |
9341 | (package-with-python2 python-botocore)) | |
f861b8b8 DT |
9342 | |
9343 | (define-public awscli | |
9344 | (package | |
9345 | (name "awscli") | |
a9c15e8b | 9346 | (version "1.11.47") |
f861b8b8 DT |
9347 | (source |
9348 | (origin | |
9349 | (method url-fetch) | |
d5ccf71e | 9350 | (uri (pypi-uri name version)) |
f861b8b8 DT |
9351 | (sha256 |
9352 | (base32 | |
a9c15e8b | 9353 | "0p0pila0k99fm87q1gb24wyd34ags0vkh37h1fa6hklq4mi69i1w")))) |
f861b8b8 | 9354 | (build-system python-build-system) |
482d9591 | 9355 | (propagated-inputs |
f861b8b8 | 9356 | `(("python-colorama" ,python-colorama) |
482d9591 HG |
9357 | ("python-botocore" ,python-botocore) |
9358 | ("python-s3transfer" ,python-s3transfer) | |
f861b8b8 | 9359 | ("python-docutils" ,python-docutils) |
482d9591 | 9360 | ("python-rsa" ,python-rsa))) |
619bfd81 MB |
9361 | (arguments |
9362 | ;; FIXME: The 'pypi' release does not contain tests. | |
9363 | '(#:tests? #f)) | |
60a8be3a | 9364 | (home-page "https://aws.amazon.com/cli/") |
f861b8b8 DT |
9365 | (synopsis "Command line client for AWS") |
9366 | (description "AWS CLI provides a unified command line interface to the | |
9367 | Amazon Web Services (AWS) API.") | |
3f641af0 | 9368 | (license license:asl2.0))) |
6a44697d LF |
9369 | |
9370 | (define-public python-hypothesis | |
9371 | (package | |
9372 | (name "python-hypothesis") | |
bea6d94d | 9373 | (version "3.1.0") |
6a44697d LF |
9374 | (source (origin |
9375 | (method url-fetch) | |
9376 | (uri (pypi-uri "hypothesis" version)) | |
9377 | (sha256 | |
9378 | (base32 | |
bea6d94d | 9379 | "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw")))) |
6a44697d | 9380 | (build-system python-build-system) |
bd100c71 | 9381 | (native-inputs |
6a44697d LF |
9382 | `(("python-flake8" ,python-flake8) |
9383 | ("python-pytest" ,python-pytest))) | |
9384 | (synopsis "Library for property based testing") | |
9385 | (description "Hypothesis is a library for testing your Python code against a | |
9386 | much larger range of examples than you would ever want to write by hand. It’s | |
9387 | based on the Haskell library, Quickcheck, and is designed to integrate | |
9388 | seamlessly into your existing Python unit testing work flow.") | |
9389 | (home-page "https://github.com/DRMacIver/hypothesis") | |
3f641af0 | 9390 | (license license:mpl2.0) |
6f068e08 | 9391 | (properties `((python2-variant . ,(delay python2-hypothesis)))))) |
6a44697d LF |
9392 | |
9393 | (define-public python2-hypothesis | |
6f068e08 EF |
9394 | (let ((hypothesis (package-with-python2 |
9395 | (strip-python2-variant python-hypothesis)))) | |
9396 | (package (inherit hypothesis) | |
9397 | (native-inputs | |
bd100c71 MB |
9398 | `(("python2-enum34" ,python2-enum34) |
9399 | ,@(package-native-inputs hypothesis)))))) | |
7517e73c LF |
9400 | |
9401 | (define-public python-pytest-subtesthack | |
9402 | (package | |
9403 | (name "python-pytest-subtesthack") | |
9404 | (version "0.1.1") | |
9405 | (source (origin | |
9406 | (method url-fetch) | |
9407 | (uri (pypi-uri "pytest-subtesthack" version)) | |
9408 | (sha256 | |
9409 | (base32 | |
9410 | "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x")))) | |
9411 | (build-system python-build-system) | |
7517e73c LF |
9412 | (propagated-inputs |
9413 | `(("python-pytest" ,python-pytest))) | |
9414 | (synopsis "Set-up and tear-down fixtures for unit tests") | |
9415 | (description "This plugin allows you to set up and tear down fixtures within | |
9416 | unit test functions that use @code{py.test}. This is useful for using | |
9417 | @command{hypothesis} inside py.test, as @command{hypothesis} will call the test | |
9418 | function multiple times, without setting up or tearing down fixture state as is | |
9419 | normally the case.") | |
9420 | (home-page "https://github.com/untitaker/pytest-subtesthack/") | |
3f641af0 | 9421 | (license license:unlicense))) |
7517e73c LF |
9422 | |
9423 | (define-public python2-pytest-subtesthack | |
9424 | (package-with-python2 python-pytest-subtesthack)) | |
0bdc1671 | 9425 | |
7637de23 | 9426 | (define-public python-xdo |
0bdc1671 | 9427 | (package |
7637de23 | 9428 | (name "python-xdo") |
e871c332 | 9429 | (version "0.3") |
0bdc1671 CAW |
9430 | (source (origin |
9431 | (method url-fetch) | |
9432 | (uri (string-append | |
9433 | "http://http.debian.net/debian/pool/main/p/python-xdo/" | |
9434 | "python-xdo_" version ".orig.tar.gz")) | |
9435 | (sha256 | |
9436 | (base32 | |
e871c332 | 9437 | "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0")))) |
0bdc1671 CAW |
9438 | (build-system python-build-system) |
9439 | (arguments | |
736cfc10 SB |
9440 | '(#:phases |
9441 | (modify-phases %standard-phases | |
9442 | (add-before 'install 'patch-libxdo-path | |
9443 | ;; Hardcode the path of dynamically loaded libxdo library. | |
9444 | (lambda* (#:key inputs #:allow-other-keys) | |
9445 | (let ((libxdo (string-append | |
9446 | (assoc-ref inputs "xdotool") | |
9447 | "/lib/libxdo.so"))) | |
9448 | (substitute* "xdo/_xdo.py" | |
9449 | (("find_library\\(\"xdo\"\\)") | |
9450 | (simple-format #f "\"~a\"" libxdo))) | |
9451 | #t)))) | |
9452 | #:tests? #f)) ; no tests provided | |
0b5e0863 SB |
9453 | (propagated-inputs |
9454 | `(("python-six" ,python-six))) | |
0bdc1671 CAW |
9455 | (inputs |
9456 | `(("xdotool" ,xdotool) | |
9457 | ("libX11" ,libx11))) | |
9458 | (home-page "https://tracker.debian.org/pkg/python-xdo") | |
9459 | (synopsis "Python library for simulating X11 keyboard/mouse input") | |
9460 | (description "Provides bindings to libxdo for manipulating X11 via simulated | |
9461 | input. (Note that this is mostly a legacy library; you may wish to look at | |
9462 | python-xdo for newer bindings.)") | |
3f641af0 | 9463 | (license license:bsd-3))) |
0bdc1671 | 9464 | |
7637de23 LF |
9465 | (define-public python2-xdo |
9466 | (package-with-python2 python-xdo)) | |
9467 | ||
cb34dc6c CAW |
9468 | (define-public python-wtforms |
9469 | (package | |
9470 | (name "python-wtforms") | |
9471 | (version "2.1") | |
9472 | (source | |
9473 | (origin | |
9474 | (method url-fetch) | |
9475 | (uri (pypi-uri "WTForms" version ".zip")) | |
9476 | (sha256 | |
9477 | (base32 | |
9478 | "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) | |
9479 | (build-system python-build-system) | |
13c4d874 EF |
9480 | (arguments |
9481 | '(#:phases | |
9482 | (modify-phases %standard-phases | |
9483 | (add-after 'unpack 'remove-django-test | |
9484 | ;; Don't fail the tests when the inputs for the optional tests cannot be found. | |
9485 | (lambda _ | |
9486 | (substitute* | |
9487 | "tests/runtests.py" | |
9488 | (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "") | |
9489 | (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") "")) | |
9490 | #t))))) | |
cb34dc6c CAW |
9491 | (native-inputs |
9492 | `(("unzip" ,unzip))) | |
9493 | (home-page "http://wtforms.simplecodes.com/") | |
9494 | (synopsis | |
9495 | "Form validation and rendering library for Python web development") | |
9496 | (description | |
9497 | "WTForms is a flexible forms validation and rendering library | |
9498 | for Python web development. It is very similar to the web form API | |
9499 | available in Django, but is a standalone package.") | |
f210e944 | 9500 | (license license:bsd-3))) |
cb34dc6c CAW |
9501 | |
9502 | (define-public python2-wtforms | |
f210e944 | 9503 | (package-with-python2 python-wtforms)) |
50aaec25 DT |
9504 | |
9505 | (define-public python-mako | |
9506 | (package | |
9507 | (name "python-mako") | |
3753f2e6 | 9508 | (version "1.0.6") |
50aaec25 DT |
9509 | (source |
9510 | (origin | |
9511 | (method url-fetch) | |
9512 | (uri (pypi-uri "Mako" version)) | |
9513 | (sha256 | |
9514 | (base32 | |
3753f2e6 | 9515 | "03dyxgjknp4ffsv7vwfd28l5bbpzi0ylp20543wpg3iahyyrwma8")))) |
50aaec25 | 9516 | (build-system python-build-system) |
482d9591 HG |
9517 | (propagated-inputs |
9518 | `(("python-markupsafe" ,python-markupsafe))) | |
50aaec25 | 9519 | (native-inputs |
482d9591 | 9520 | `(("python-mock" ,python-mock) |
e435af5c MB |
9521 | ("python-nose" ,python-nose) |
9522 | ("python-pytest" ,python-pytest))) | |
50aaec25 DT |
9523 | (home-page "http://www.makotemplates.org/") |
9524 | (synopsis "Templating language for Python") | |
9525 | (description "Mako is a templating language for Python that compiles | |
9526 | templates into Python modules.") | |
f210e944 | 9527 | (license license:expat))) |
50aaec25 DT |
9528 | |
9529 | (define-public python2-mako | |
f210e944 | 9530 | (package-with-python2 python-mako)) |
ae00a41f CAW |
9531 | |
9532 | (define-public python-waitress | |
9533 | (package | |
9534 | (name "python-waitress") | |
9535 | (version "0.8.10") | |
9536 | (source | |
9537 | (origin | |
9538 | (method url-fetch) | |
9539 | (uri (pypi-uri "waitress" version)) | |
9540 | (sha256 | |
9541 | (base32 | |
9542 | "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w")))) | |
9543 | (build-system python-build-system) | |
9544 | (home-page "https://github.com/Pylons/waitress") | |
9545 | (synopsis "Waitress WSGI server") | |
9546 | (description "Waitress is meant to be a production-quality pure-Python WSGI | |
9547 | server with very acceptable performance.") | |
f210e944 | 9548 | (license license:zpl2.1))) |
ae00a41f CAW |
9549 | |
9550 | (define-public python2-waitress | |
f210e944 | 9551 | (package-with-python2 python-waitress)) |
778a284b CAW |
9552 | |
9553 | (define-public python-wsgiproxy2 | |
9554 | (package | |
9555 | (name "python-wsgiproxy2") | |
9556 | (version "0.4.2") | |
9557 | (source | |
9558 | (origin | |
9559 | (method url-fetch) | |
9560 | (uri (pypi-uri "WSGIProxy2" version ".zip")) | |
9561 | (sha256 | |
9562 | (base32 | |
9563 | "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) | |
9564 | (build-system python-build-system) | |
e359b31a LF |
9565 | (arguments |
9566 | '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully | |
9567 | ;; support Python 3: | |
9568 | ;; https://github.com/benoitc/restkit/issues/140 | |
9569 | #:tests? #f)) | |
778a284b CAW |
9570 | (native-inputs |
9571 | `(("unzip" ,unzip) | |
9572 | ("python-nose" ,python-nose) | |
9573 | ("python-coverage" ,python-coverage))) | |
9574 | (propagated-inputs | |
9575 | `(("python-six" ,python-six) | |
9576 | ("python-webob" ,python-webob))) | |
9577 | (home-page | |
9578 | "https://github.com/gawel/WSGIProxy2/") | |
9579 | (synopsis "WSGI Proxy with various http client backends") | |
9580 | (description "WSGI turns HTTP requests into WSGI function calls. | |
9581 | WSGIProxy turns WSGI function calls into HTTP requests. | |
9582 | It also includes code to sign requests and pass private data, | |
9583 | and to spawn subprocesses to handle requests.") | |
f210e944 | 9584 | (license license:expat))) |
778a284b CAW |
9585 | |
9586 | (define-public python2-wsgiproxy2 | |
f210e944 | 9587 | (package-with-python2 python-wsgiproxy2)) |
bb7518b1 CAW |
9588 | |
9589 | (define-public python-pastedeploy | |
9590 | (package | |
9591 | (name "python-pastedeploy") | |
9592 | (version "1.5.2") | |
9593 | (source | |
9594 | (origin | |
9595 | (method url-fetch) | |
9596 | (uri (pypi-uri "PasteDeploy" version)) | |
9597 | (sha256 | |
9598 | (base32 | |
9599 | "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) | |
9600 | (build-system python-build-system) | |
9601 | (native-inputs | |
9602 | `(("python-nose" ,python-nose))) | |
bb7518b1 CAW |
9603 | (home-page "http://pythonpaste.org/deploy/") |
9604 | (synopsis | |
9605 | "Load, configure, and compose WSGI applications and servers") | |
9606 | (description | |
9607 | "This tool provides code to load WSGI applications and servers from URIs; | |
9608 | these URIs can refer to Python Eggs for INI-style configuration files. Paste | |
9609 | Script provides commands to serve applications based on this configuration | |
9610 | file.") | |
9611 | (license license:expat))) | |
9612 | ||
9613 | (define-public python2-pastedeploy | |
9614 | (package-with-python2 python-pastedeploy)) | |
1cf53652 | 9615 | |
c4a7904c CAW |
9616 | (define-public python-paste |
9617 | (package | |
9618 | (name "python-paste") | |
ba1731da | 9619 | (version "2.0.3") |
c4a7904c CAW |
9620 | (source |
9621 | (origin | |
9622 | (method url-fetch) | |
9623 | (uri (pypi-uri "Paste" version)) | |
9624 | (sha256 | |
9625 | (base32 | |
ba1731da | 9626 | "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3")) |
fc1adab1 AK |
9627 | (patches (search-patches "python-paste-remove-website-test.patch" |
9628 | "python-paste-remove-timing-test.patch")))) | |
c4a7904c CAW |
9629 | (build-system python-build-system) |
9630 | (native-inputs | |
9631 | `(("python-nose" ,python-nose))) | |
9632 | (propagated-inputs | |
f3b98f4f | 9633 | `(("python-six" ,python-six))) |
c4a7904c CAW |
9634 | (home-page "http://pythonpaste.org") |
9635 | (synopsis | |
9636 | "Python web development tools, focusing on WSGI") | |
9637 | (description | |
9638 | "Paste provides a variety of web development tools and middleware which | |
9639 | can be nested together to build web applications. Paste's design closely | |
9640 | follows ideas flowing from WSGI (Web Standard Gateway Interface).") | |
ba1731da | 9641 | (license license:expat))) |
c4a7904c CAW |
9642 | |
9643 | (define-public python2-paste | |
ba1731da | 9644 | (package-with-python2 python-paste)) |
c4a7904c | 9645 | |
a8f20f63 CAW |
9646 | (define-public python-pastescript |
9647 | (package | |
9648 | (name "python-pastescript") | |
9649 | (version "2.0.2") | |
9650 | (source | |
9651 | (origin | |
9652 | (method url-fetch) | |
9653 | (uri (pypi-uri "PasteScript" version)) | |
9654 | (sha256 | |
9655 | (base32 | |
9656 | "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0")))) | |
9657 | (build-system python-build-system) | |
9658 | (native-inputs | |
9659 | `(("python-nose" ,python-nose))) | |
9660 | (propagated-inputs | |
f3b98f4f | 9661 | `(("python-paste" ,python-paste) |
a8f20f63 CAW |
9662 | ("python-pastedeploy" ,python-pastedeploy))) |
9663 | (home-page "http://pythonpaste.org/script/") | |
9664 | (arguments | |
9665 | '(;; Unfortunately, this requires the latest unittest2, | |
9666 | ;; but that requires traceback2 which requires linecache2 which requires | |
9667 | ;; unittest2. So we're skipping tests for now. | |
9668 | ;; (Note: Apparently linetest2 only needs unittest2 for its tests, | |
9669 | ;; so in theory we could get around this situation somehow.) | |
9670 | #:tests? #f)) | |
9671 | (synopsis | |
9672 | "Pluggable command line tool for serving web applications and more") | |
9673 | (description | |
9674 | "PasteScript is a plugin-friendly command line tool which provides a | |
9675 | variety of features, from launching web applications to bootstrapping project | |
9676 | layouts.") | |
9677 | (license license:expat))) | |
9678 | ||
9679 | (define-public python2-pastescript | |
9680 | (package-with-python2 python-pastescript)) | |
9681 | ||
1cf53652 CAW |
9682 | (define-public python-pyquery |
9683 | (package | |
9684 | (name "python-pyquery") | |
ab0c3429 | 9685 | (version "1.2.17") |
1cf53652 CAW |
9686 | (source |
9687 | (origin | |
9688 | (method url-fetch) | |
9689 | (uri (pypi-uri "pyquery" version)) | |
9690 | (sha256 | |
9691 | (base32 | |
ab0c3429 | 9692 | "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a")))) |
1cf53652 | 9693 | (build-system python-build-system) |
2ddbfa8c LF |
9694 | (native-inputs |
9695 | `(("python-webob" ,python-webob) | |
9696 | ("python-webtest" ,python-webtest))) | |
1cf53652 CAW |
9697 | (propagated-inputs |
9698 | `(("python-lxml" ,python-lxml) | |
9699 | ("python-cssselect" ,python-cssselect))) | |
9700 | (home-page "https://github.com/gawel/pyquery") | |
9701 | (synopsis "Make jQuery-like queries on xml documents") | |
9702 | (description "pyquery allows you to make jQuery queries on xml documents. | |
9703 | The API is as much as possible the similar to jQuery. pyquery uses lxml for | |
9704 | fast xml and html manipulation.") | |
f210e944 | 9705 | (license license:bsd-3))) |
1cf53652 CAW |
9706 | |
9707 | (define-public python2-pyquery | |
f210e944 | 9708 | (package-with-python2 python-pyquery)) |
aa6313d6 CAW |
9709 | |
9710 | (define-public python-webtest | |
9711 | (package | |
9712 | (name "python-webtest") | |
9713 | (version "2.0.20") | |
9714 | (source | |
9715 | (origin | |
9716 | (method url-fetch) | |
9717 | (uri (pypi-uri "WebTest" version)) | |
9718 | (sha256 | |
9719 | (base32 | |
9720 | "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv")))) | |
9721 | (build-system python-build-system) | |
9722 | (arguments | |
9723 | `(;; Unfortunately we have to disable tests! | |
9724 | ;; This release of WebTest is pinned to python-nose < 1.3, | |
9725 | ;; but older versions of python-nose are plagued with the following | |
9726 | ;; bug(s), which rears its ugly head during test execution: | |
9727 | ;; https://github.com/nose-devs/nose/issues/759 | |
9728 | ;; https://github.com/nose-devs/nose/pull/811 | |
9729 | #:tests? #f)) | |
9730 | ;; Commented out code is no good, but in this case, once tests | |
9731 | ;; are ready to be enabled again, we should put the following | |
9732 | ;; in place: | |
9733 | ;; (native-inputs | |
9734 | ;; `(("python-nose" ,python-nose) ; technially < 1.3, | |
9735 | ;; ; but see above comment | |
9736 | ;; ("python-coverage" ,python-coverage) | |
9737 | ;; ("python-mock" ,python-mock) | |
9738 | ;; ("python-pastedeploy" ,python-pastedeploy) | |
9739 | ;; ("python-wsgiproxy2" ,python-wsgiproxy2) | |
9740 | ;; ("python-pyquery" ,python-pyquery))) | |
9741 | (propagated-inputs | |
9742 | `(("python-waitress" ,python-waitress) | |
9743 | ("python-webob" ,python-webob) | |
9744 | ("python-six" ,python-six) | |
9745 | ("python-beautifulsoup4" ,python-beautifulsoup4))) | |
9746 | (home-page "http://webtest.pythonpaste.org/") | |
9747 | (synopsis "Helper to test WSGI applications") | |
9748 | (description "Webtest allows you to test your Python web applications | |
9749 | without starting an HTTP server. It supports anything that supports the | |
9750 | minimum of WSGI.") | |
f210e944 | 9751 | (license license:expat))) |
aa6313d6 CAW |
9752 | |
9753 | (define-public python2-webtest | |
f210e944 | 9754 | (package-with-python2 python-webtest)) |
4cb122cd CAW |
9755 | |
9756 | (define-public python-anyjson | |
9757 | (package | |
9758 | (name "python-anyjson") | |
9759 | (version "0.3.3") | |
9760 | (source | |
9761 | (origin | |
9762 | (method url-fetch) | |
9763 | (uri (pypi-uri "anyjson" version)) | |
9764 | (sha256 | |
9765 | (base32 | |
9766 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) | |
9767 | (build-system python-build-system) | |
9768 | (arguments | |
9769 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. | |
9770 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or | |
9771 | ;; whatever) so this transformation needs to be done before the tests | |
9772 | ;; can be run. Maybe we could add a build step to transform beforehand | |
9773 | ;; but it could be annoying/difficult. | |
9774 | ;; We can enable tests for the Python 2 version, though, and do below. | |
9775 | #:tests? #f)) | |
9776 | (home-page "http://bitbucket.org/runeh/anyjson/") | |
9777 | (synopsis | |
9778 | "Wraps best available JSON implementation in a common interface") | |
9779 | (description | |
9780 | "Anyjson loads whichever is the fastest JSON module installed | |
9781 | and provides a uniform API regardless of which JSON implementation is used.") | |
3f641af0 | 9782 | (license license:bsd-3) |
4cb122cd CAW |
9783 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
9784 | ||
9785 | (define-public python2-anyjson | |
9786 | (let ((anyjson (package-with-python2 | |
9787 | (strip-python2-variant python-anyjson)))) | |
9788 | (package | |
9789 | (inherit anyjson) | |
9790 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! | |
9791 | #:tests? #t | |
9792 | ,@(package-arguments anyjson))) | |
00e10c6e | 9793 | (native-inputs `(("python2-nose" ,python2-nose)))))) |
8dfceab7 CAW |
9794 | |
9795 | (define-public python-amqp | |
9796 | (package | |
9797 | (name "python-amqp") | |
9798 | (version "1.4.9") | |
9799 | (source | |
9800 | (origin | |
9801 | (method url-fetch) | |
9802 | (uri (pypi-uri "amqp" version)) | |
9803 | (sha256 | |
9804 | (base32 | |
9805 | "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid")))) | |
9806 | (build-system python-build-system) | |
9807 | (native-inputs | |
9808 | `(("python-nose" ,python-nose) | |
9809 | ("python-mock" ,python-mock))) | |
9810 | (home-page "http://github.com/celery/py-amqp") | |
9811 | (synopsis | |
9812 | "Low-level AMQP client for Python (fork of amqplib)") | |
9813 | (description | |
9814 | "This is a fork of amqplib which was originally written by Barry Pederson. | |
9815 | It is maintained by the Celery project, and used by kombu as a pure python | |
9816 | alternative when librabbitmq is not available.") | |
3f641af0 | 9817 | (license license:lgpl2.1+) |
8dfceab7 CAW |
9818 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
9819 | ||
9820 | (define-public python2-amqp | |
9821 | (let ((amqp (package-with-python2 | |
9822 | (strip-python2-variant python-amqp)))) | |
9823 | (package | |
9824 | (inherit amqp) | |
9825 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems | |
9826 | ;; unmaintained. Weirdly, does not do this on the python 3 | |
9827 | ;; version? | |
9828 | #:tests? #f | |
00e10c6e | 9829 | ,@(package-arguments amqp)))))) |
7d387305 CAW |
9830 | |
9831 | (define-public python-kombu | |
9832 | (package | |
9833 | (name "python-kombu") | |
0cb59822 | 9834 | (version "3.0.37") |
7d387305 CAW |
9835 | (source |
9836 | (origin | |
9837 | (method url-fetch) | |
9838 | (uri (pypi-uri "kombu" version)) | |
9839 | (sha256 | |
9840 | (base32 | |
0cb59822 | 9841 | "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70")))) |
7d387305 CAW |
9842 | (build-system python-build-system) |
9843 | (native-inputs | |
9844 | `(("python-mock" ,python-mock) | |
9845 | ("python-nose" ,python-nose))) | |
9846 | (propagated-inputs | |
9847 | `(("python-anyjson" ,python-anyjson) | |
0cb59822 LF |
9848 | ("python-amqp" ,python-amqp) |
9849 | ("python-redis" ,python-redis))) | |
7d387305 CAW |
9850 | (home-page "http://kombu.readthedocs.org") |
9851 | (synopsis "Message passing library for Python") | |
9852 | (description "The aim of Kombu is to make messaging in Python as easy as | |
9853 | possible by providing an idiomatic high-level interface for the AMQ protocol, | |
9854 | and also provide proven and tested solutions to common messaging problems. | |
9855 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for | |
9856 | message orientation, queuing, routing, reliability and security, for which the | |
9857 | RabbitMQ messaging server is the most popular implementation.") | |
3f641af0 | 9858 | (license license:bsd-3) |
7d387305 CAW |
9859 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
9860 | ||
9861 | (define-public python2-kombu | |
9862 | (let ((kombu (package-with-python2 | |
9863 | (strip-python2-variant python-kombu)))) | |
9864 | (package | |
9865 | (inherit kombu) | |
752eb9e0 MB |
9866 | (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2. |
9867 | ;; It works fine on the python3 variant. | |
9868 | #:tests? #f | |
9869 | ,@(package-arguments kombu))) | |
328bb95d HG |
9870 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
9871 | ,@(package-native-inputs kombu)))))) | |
b6f0b9fb CAW |
9872 | |
9873 | (define-public python-billiard | |
9874 | (package | |
9875 | (name "python-billiard") | |
a6bb9e44 | 9876 | (version "3.3.0.23") |
b6f0b9fb CAW |
9877 | (source |
9878 | (origin | |
9879 | (method url-fetch) | |
9880 | (uri (pypi-uri "billiard" version)) | |
9881 | (sha256 | |
9882 | (base32 | |
a6bb9e44 | 9883 | "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9")))) |
b6f0b9fb CAW |
9884 | (build-system python-build-system) |
9885 | (native-inputs | |
9886 | `(("python-nose" ,python-nose))) | |
9887 | (home-page "http://github.com/celery/billiard") | |
9888 | (synopsis | |
9889 | "Python multiprocessing fork with improvements and bugfixes") | |
9890 | (description | |
9891 | "Billiard is a fork of the Python 2.7 multiprocessing package. The | |
9892 | multiprocessing package itself is a renamed and updated version of R Oudkerk's | |
9893 | pyprocessing package. This standalone variant is intended to be compatible with | |
9894 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") | |
3f641af0 | 9895 | (license license:bsd-3) |
b6f0b9fb CAW |
9896 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
9897 | ||
9898 | (define-public python2-billiard | |
9899 | (let ((billiard (package-with-python2 | |
9900 | (strip-python2-variant python-billiard)))) | |
9901 | (package | |
9902 | (inherit billiard) | |
00e10c6e | 9903 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
b6f0b9fb CAW |
9904 | ("python2-mock" ,python2-mock) |
9905 | ,@(package-native-inputs billiard)))))) | |
22df6419 CAW |
9906 | |
9907 | (define-public python-celery | |
9908 | (package | |
9909 | (name "python-celery") | |
9ebe87fe | 9910 | (version "3.1.24") |
22df6419 CAW |
9911 | (source |
9912 | (origin | |
9913 | (method url-fetch) | |
9914 | (uri (pypi-uri "celery" version)) | |
9915 | (sha256 | |
9916 | (base32 | |
9ebe87fe | 9917 | "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r")))) |
22df6419 | 9918 | (build-system python-build-system) |
9ebe87fe LF |
9919 | (arguments |
9920 | `(#:phases | |
9921 | (modify-phases %standard-phases | |
9922 | ;; These tests break with Python 3.5: | |
9923 | ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295 | |
9924 | (replace 'check | |
9925 | (lambda _ | |
9926 | (zero? | |
9927 | (system* "nosetests" "--exclude=^test_safe_to_remove.*"))))))) | |
22df6419 CAW |
9928 | (native-inputs |
9929 | `(("python-nose" ,python-nose))) | |
f22efa01 | 9930 | (propagated-inputs |
22df6419 CAW |
9931 | `(("python-pytz" ,python-pytz) |
9932 | ("python-billiard" ,python-billiard) | |
9933 | ("python-kombu" ,python-kombu))) | |
9934 | (home-page "http://celeryproject.org") | |
9935 | (synopsis "Distributed Task Queue") | |
9936 | (description "Celery is an asynchronous task queue/job queue based on | |
9937 | distributed message passing. It is focused on real-time operation, but | |
9938 | supports scheduling as well. The execution units, called tasks, are executed | |
9939 | concurrently on a single or more worker servers using multiprocessing, | |
9940 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or | |
9941 | synchronously (wait until ready).") | |
3f641af0 | 9942 | (license license:bsd-3) |
22df6419 CAW |
9943 | (properties `((python2-variant . ,(delay python2-celery)))))) |
9944 | ||
9945 | (define-public python2-celery | |
9946 | (let ((celery (package-with-python2 | |
9947 | (strip-python2-variant python-celery)))) | |
9948 | (package | |
9949 | (inherit celery) | |
00e10c6e | 9950 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
22df6419 CAW |
9951 | ("python2-mock" ,python2-mock) |
9952 | ,@(package-native-inputs celery)))))) | |
97e32948 CAW |
9953 | |
9954 | (define-public python-translitcodec | |
9955 | (package | |
9956 | (name "python-translitcodec") | |
9957 | (version "0.4.0") | |
9958 | (source | |
9959 | (origin | |
9960 | (method url-fetch) | |
9961 | (uri (pypi-uri "translitcodec" version)) | |
9962 | (sha256 | |
9963 | (base32 | |
9964 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) | |
9965 | (build-system python-build-system) | |
9966 | (arguments | |
9967 | `(#:tests? #f)) ; no tests provided | |
9968 | (home-page | |
9969 | "https://github.com/claudep/translitcodec") | |
9970 | (synopsis | |
9971 | "Unicode to 8-bit charset transliteration codec") | |
9972 | (description | |
9973 | "This package contains codecs for transliterating ISO 10646 texts into | |
9974 | best-effort representations using smaller coded character sets (ASCII, | |
9975 | ISO 8859, etc.).") | |
f210e944 | 9976 | (license license:expat))) |
97e32948 CAW |
9977 | |
9978 | (define-public python2-translitcodec | |
f210e944 | 9979 | (package-with-python2 python-translitcodec)) |
0c3b90d4 CAW |
9980 | |
9981 | (define-public python-editor | |
9982 | (package | |
9983 | (name "python-editor") | |
9984 | (version "0.5") | |
9985 | (source | |
9986 | (origin | |
9987 | (method url-fetch) | |
9988 | (uri (pypi-uri "python-editor" version)) | |
9989 | (sha256 | |
9990 | (base32 | |
9991 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) | |
9992 | (build-system python-build-system) | |
9993 | (home-page | |
9994 | "https://github.com/fmoo/python-editor") | |
9995 | (synopsis | |
9996 | "Programmatically open an editor, capture the result") | |
9997 | (description | |
9998 | "python-editor is a library that provides the editor module for | |
9999 | programmatically interfacing with your system's $EDITOR.") | |
f210e944 | 10000 | (license license:asl2.0))) |
0c3b90d4 CAW |
10001 | |
10002 | (define-public python2-editor | |
f210e944 | 10003 | (package-with-python2 python-editor)) |
3276517c LF |
10004 | |
10005 | (define-public python-sphinxcontrib-programoutput | |
10006 | (package | |
10007 | (name "python-sphinxcontrib-programoutput") | |
10008 | (version "0.8") | |
10009 | (source (origin | |
10010 | (method url-fetch) | |
10011 | (uri (pypi-uri "sphinxcontrib-programoutput" version)) | |
10012 | (sha256 | |
10013 | (base32 | |
10014 | "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp")))) | |
10015 | (build-system python-build-system) | |
e2cb140e MB |
10016 | (arguments |
10017 | ;; FIXME: Many tests are failing and the upstream is gone. | |
10018 | '(#:tests? #f)) | |
3276517c | 10019 | (propagated-inputs |
a0a09859 | 10020 | `(("python-sphinx" ,python-sphinx))) |
3276517c LF |
10021 | (synopsis "Sphinx extension to include program output") |
10022 | (description "A Sphinx extension to literally insert the output of arbitrary | |
10023 | commands into documents, helping you to keep your command examples up to date.") | |
10024 | (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput") | |
f210e944 | 10025 | (license license:bsd-2))) |
3276517c LF |
10026 | |
10027 | (define-public python2-sphinxcontrib-programoutput | |
f210e944 | 10028 | (package-with-python2 python-sphinxcontrib-programoutput)) |
548d7165 LF |
10029 | |
10030 | (define-public python-sphinx-repoze-autointerface | |
10031 | (package | |
10032 | (name "python-sphinx-repoze-autointerface") | |
328ae341 | 10033 | (version "0.8") |
548d7165 LF |
10034 | (source (origin |
10035 | (method url-fetch) | |
10036 | (uri (pypi-uri "repoze.sphinx.autointerface" version)) | |
10037 | (sha256 | |
10038 | (base32 | |
328ae341 | 10039 | "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f")))) |
548d7165 | 10040 | (build-system python-build-system) |
5b3c3d4b | 10041 | (arguments '(#:tests? #f)) ; No tests. |
548d7165 | 10042 | (propagated-inputs |
47c7dc4a | 10043 | `(("python-sphinx" ,python-sphinx) |
548d7165 LF |
10044 | ("python-zope-interface" ,python-zope-interface))) |
10045 | (synopsis "Auto-generate Sphinx API docs from Zope interfaces") | |
10046 | (description "This package defines an extension for the Sphinx documentation | |
10047 | system. The extension allows generation of API documentation by | |
10048 | introspection of @code{zope.interface} instances in code.") | |
10049 | (home-page "https://github.com/repoze/repoze.sphinx.autointerface") | |
3f641af0 | 10050 | (license license:repoze))) |
548d7165 LF |
10051 | |
10052 | (define-public python2-sphinx-repoze-autointerface | |
10053 | (package-with-python2 python-sphinx-repoze-autointerface)) | |
b31fbea5 DM |
10054 | |
10055 | (define-public python-psycopg2 | |
10056 | (package | |
10057 | (name "python-psycopg2") | |
10058 | (version "2.6.1") | |
10059 | (source | |
10060 | (origin | |
10061 | (method url-fetch) | |
10062 | (uri (pypi-uri "psycopg2" version)) | |
10063 | (sha256 | |
10064 | (base32 | |
10065 | "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva")))) | |
10066 | (build-system python-build-system) | |
10067 | (arguments | |
10068 | ;; Tests would require a postgresql database "psycopg2_test" | |
10069 | ;; and a running postgresql database management service. | |
10070 | `(#:tests? #f)) ; TODO re-enable after providing a test-db. | |
10071 | (inputs | |
10072 | `(("postgresql" ,postgresql))) ; libpq | |
10073 | (home-page "http://initd.org/psycopg/") | |
10074 | (synopsis "Python PostgreSQL adapter") | |
10075 | (description | |
10076 | "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") | |
f210e944 | 10077 | (license license:lgpl3+))) |
b31fbea5 DM |
10078 | |
10079 | (define-public python2-psycopg2 | |
f210e944 | 10080 | (package-with-python2 python-psycopg2)) |
eed1a61f LF |
10081 | |
10082 | (define-public python-vobject | |
10083 | (package | |
10084 | (name "python-vobject") | |
9bed9b15 | 10085 | (version "0.9.2") |
eed1a61f LF |
10086 | (source (origin |
10087 | (method url-fetch) | |
10088 | (uri (pypi-uri "vobject" version)) | |
10089 | (sha256 | |
10090 | (base32 | |
9bed9b15 | 10091 | "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb")))) |
eed1a61f | 10092 | (build-system python-build-system) |
a9871b7b LF |
10093 | (arguments |
10094 | '(;; The test suite relies on some non-portable Windows interfaces. | |
10095 | #:tests? #f)) | |
f22efa01 | 10096 | (propagated-inputs |
22d7360b | 10097 | `(("python-dateutil" ,python-dateutil) |
eed1a61f LF |
10098 | ("python-pyicu" ,python-pyicu))) |
10099 | (synopsis "Parse and generate vCard and vCalendar files") | |
10100 | (description "Vobject is intended to be a full featured Python package for | |
10101 | parsing and generating vCard and vCalendar files. Currently, iCalendar files | |
10102 | are supported and well tested. vCard 3.0 files are supported, and all data | |
10103 | should be imported, but only a few components are understood in a sophisticated | |
10104 | way.") | |
10105 | (home-page "http://eventable.github.io/vobject/") | |
f210e944 | 10106 | (license license:asl2.0))) |
eed1a61f LF |
10107 | |
10108 | (define-public python2-vobject | |
f210e944 | 10109 | (package-with-python2 python-vobject)) |
cedac813 LF |
10110 | |
10111 | (define-public python-munkres | |
10112 | (package | |
10113 | (name "python-munkres") | |
38e81a2c | 10114 | (version "1.0.8") |
cedac813 LF |
10115 | (source (origin |
10116 | (method url-fetch) | |
10117 | (uri (pypi-uri "munkres" version)) | |
10118 | (sha256 | |
10119 | (base32 | |
38e81a2c | 10120 | "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq")))) |
cedac813 LF |
10121 | (build-system python-build-system) |
10122 | (arguments | |
10123 | '(#:tests? #f)) ; no test suite | |
10124 | (home-page "http://software.clapper.org/munkres/") | |
10125 | (synopsis "Implementation of the Munkres algorithm") | |
10126 | (description "The Munkres module provides an implementation of the Munkres | |
10127 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), | |
10128 | useful for solving the Assignment Problem.") | |
3f641af0 | 10129 | (license license:bsd-3))) |
cedac813 LF |
10130 | |
10131 | (define-public python2-munkres | |
10132 | (package-with-python2 python-munkres)) | |
f3b3d78f LF |
10133 | |
10134 | (define-public python-flask | |
10135 | (package | |
10136 | (name "python-flask") | |
c6c80104 | 10137 | (version "0.11.1") |
f3b3d78f LF |
10138 | (source (origin |
10139 | (method url-fetch) | |
10140 | (uri (pypi-uri "Flask" version)) | |
10141 | (sha256 | |
10142 | (base32 | |
c6c80104 | 10143 | "03kbfll4sj3v5z7r31c7bhfpi11r1np076d4p1k2kg4yzcmkywdl")))) |
f3b3d78f LF |
10144 | (build-system python-build-system) |
10145 | (propagated-inputs | |
10146 | `(("python-itsdangerous" ,python-itsdangerous) | |
10147 | ("python-jinja2" ,python-jinja2) | |
8f35c030 | 10148 | ("python-click" ,python-click) |
f3b3d78f LF |
10149 | ("python-werkzeug" ,python-werkzeug))) |
10150 | (home-page "https://github.com/mitsuhiko/flask/") | |
10151 | (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") | |
10152 | (description "Flask is a micro web framework based on the Werkzeug toolkit | |
10153 | and Jinja2 template engine. It is called a micro framework because it does not | |
10154 | presume or force a developer to use a particular tool or library.") | |
f210e944 | 10155 | (license license:bsd-3))) |
f3b3d78f LF |
10156 | |
10157 | (define-public python2-flask | |
f210e944 | 10158 | (package-with-python2 python-flask)) |
603d665b | 10159 | |
a7ad802b | 10160 | (define-public python-flask-wtf |
10161 | (package | |
10162 | (name "python-flask-wtf") | |
10163 | (version "0.13.1") | |
10164 | (source | |
10165 | (origin | |
10166 | (method url-fetch) | |
10167 | (uri (pypi-uri "Flask-WTF" version)) | |
10168 | (sha256 | |
10169 | (base32 | |
10170 | "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990")))) | |
10171 | (build-system python-build-system) | |
d296d300 MB |
10172 | (arguments |
10173 | '(#:phases | |
10174 | (modify-phases %standard-phases | |
10175 | (add-before 'check 'drop-failing-test | |
10176 | (lambda _ | |
10177 | ;; FIXME: This file tries resolving an external server, which | |
10178 | ;; fails. Try to patch out the offending section instead of | |
10179 | ;; deleting the whole thing. | |
10180 | (delete-file "tests/test_recaptcha.py") | |
10181 | #t))))) | |
a7ad802b | 10182 | (propagated-inputs |
10183 | `(("python-flask-babel" ,python-flask-babel) | |
10184 | ("python-babel" ,python-babel) | |
10185 | ("python-wtforms" ,python-wtforms))) | |
10186 | (native-inputs | |
10187 | `(("python-nose" ,python-nose))) | |
10188 | (home-page "https://github.com/lepture/flask-wtf") | |
10189 | (synopsis "Simple integration of Flask and WTForms") | |
10190 | (description "Flask-WTF integrates Flask and WTForms, including CSRF, file | |
10191 | upload, and reCAPTCHA.") | |
10192 | (license license:bsd-3))) | |
10193 | ||
10194 | (define-public python2-flask-wtf | |
10195 | (package-with-python2 python-flask-wtf)) | |
10196 | ||
a2c7d88e | 10197 | (define-public python-flask-multistatic |
10198 | (package | |
10199 | (name "python-flask-multistatic") | |
10200 | (version "1.0") | |
10201 | (source | |
10202 | (origin | |
10203 | (method url-fetch) | |
10204 | (uri (pypi-uri "flask-multistatic" version)) | |
10205 | (sha256 | |
10206 | (base32 | |
10207 | "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm")))) | |
10208 | (build-system python-build-system) | |
10209 | (propagated-inputs | |
10210 | `(("python-flask" ,python-flask))) | |
10211 | (home-page "https://pagure.io/flask-multistatic") | |
10212 | (synopsis "Flask plugin to allow overriding static files") | |
10213 | (description "@code{flask-multistatic} is a flask plugin that adds support | |
10214 | for overriding static files.") | |
10215 | (license license:gpl3+))) | |
10216 | ||
10217 | (define-public python2-flask-multistatic | |
10218 | (package-with-python2 python-flask-multistatic)) | |
10219 | ||
603d665b LF |
10220 | (define-public python-cookies |
10221 | (package | |
10222 | (name "python-cookies") | |
10223 | (version "2.2.1") | |
10224 | (source (origin | |
10225 | (method url-fetch) | |
10226 | (uri (pypi-uri "cookies" version)) | |
10227 | (sha256 | |
10228 | (base32 | |
10229 | "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) | |
10230 | (build-system python-build-system) | |
10231 | (arguments | |
10232 | `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 | |
10233 | #:tests? #f)) | |
10234 | (native-inputs | |
10235 | `(("python-pytest" ,python2-pytest))) | |
10236 | (synopsis "HTTP cookie parser and renderer") | |
10237 | (description "A RFC 6265-compliant HTTP cookie parser and renderer in | |
10238 | Python.") | |
10239 | (home-page "https://gitlab.com/sashahart/cookies") | |
f210e944 | 10240 | (license license:expat))) |
603d665b LF |
10241 | |
10242 | (define-public python2-cookies | |
f210e944 | 10243 | (package-with-python2 python-cookies)) |
0efde7d6 LF |
10244 | |
10245 | (define-public python-responses | |
10246 | (package | |
10247 | (name "python-responses") | |
10248 | (version "0.5.1") | |
10249 | (source (origin | |
10250 | (method url-fetch) | |
10251 | (uri (pypi-uri "responses" version)) | |
10252 | (sha256 | |
10253 | (base32 | |
10254 | "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) | |
10255 | (build-system python-build-system) | |
10256 | (arguments | |
10257 | `(;; Test suite is not distributed: | |
10258 | ;; https://github.com/getsentry/responses/issues/38 | |
10259 | #:tests? #f)) | |
10260 | (native-inputs | |
d8ea5f2f | 10261 | `(("python-mock" ,python-mock))) |
0efde7d6 LF |
10262 | (propagated-inputs |
10263 | `(("python-requests" ,python-requests) | |
d8ea5f2f | 10264 | ("python-cookies" ,python-cookies) |
0efde7d6 LF |
10265 | ("python-six" ,python-six))) |
10266 | (home-page "https://github.com/getsentry/responses") | |
10267 | (synopsis "Utility for mocking out the `requests` Python library") | |
10268 | (description "A utility library for mocking out the `requests` Python | |
10269 | library.") | |
f210e944 | 10270 | (license license:asl2.0))) |
0efde7d6 LF |
10271 | |
10272 | (define-public python2-responses | |
f210e944 | 10273 | (package-with-python2 python-responses)) |
76b94885 | 10274 | |
b7afd018 RW |
10275 | (define-public python-whoosh |
10276 | (package | |
10277 | (name "python-whoosh") | |
10278 | (version "2.7.4") | |
10279 | (source | |
10280 | (origin | |
10281 | (method url-fetch) | |
10282 | (uri (pypi-uri "Whoosh" version)) | |
10283 | (sha256 | |
10284 | (base32 | |
10285 | "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw")))) | |
10286 | (build-system python-build-system) | |
10287 | (native-inputs | |
f3b98f4f | 10288 | `(("python-pytest" ,python-pytest))) |
b7afd018 RW |
10289 | (home-page "http://bitbucket.org/mchaput/whoosh") |
10290 | (synopsis "Full text indexing, search, and spell checking library") | |
10291 | (description | |
10292 | "Whoosh is a fast, pure-Python full text indexing, search, and spell | |
10293 | checking library.") | |
10294 | (license license:bsd-2))) | |
10295 | ||
10296 | (define-public python2-whoosh | |
10297 | (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh)))) | |
10298 | (package (inherit whoosh) | |
10299 | (propagated-inputs | |
10300 | `(("python2-backport-ssl-match-hostname" | |
10301 | ,python2-backport-ssl-match-hostname) | |
10302 | ,@(package-propagated-inputs whoosh)))))) | |
10303 | ||
76b94885 LF |
10304 | (define-public python-pathlib |
10305 | (package | |
10306 | (name "python-pathlib") | |
10307 | (version "1.0.1") | |
10308 | (source (origin | |
10309 | (method url-fetch) | |
10310 | (uri (pypi-uri "pathlib" version)) | |
10311 | (sha256 | |
10312 | (base32 | |
10313 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) | |
10314 | (build-system python-build-system) | |
92a312dc RW |
10315 | ;; The tests depend on the internal "test" module, which does not provide |
10316 | ;; a stable interface. | |
10317 | (arguments `(#:tests? #f)) | |
76b94885 | 10318 | (home-page "https://pathlib.readthedocs.org/") |
8f65585b JD |
10319 | (synopsis "Object-oriented file system paths") |
10320 | (description "Pathlib offers a set of classes to handle file system paths. | |
76b94885 LF |
10321 | It offers the following advantages over using string objects: |
10322 | ||
10323 | @enumerate | |
10324 | @item No more cumbersome use of os and os.path functions. Everything can | |
10325 | be done easily through operators, attribute accesses, and method calls. | |
10326 | @item Embodies the semantics of different path types. For example, | |
10327 | comparing Windows paths ignores casing. | |
10328 | @item Well-defined semantics, eliminating any inconsistencies or | |
10329 | ambiguities (forward vs. backward slashes, etc.). | |
7a8894e8 HG |
10330 | @end enumerate |
10331 | ||
10332 | Note: In Python 3.4, pathlib is now part of the standard library. For other | |
10333 | Python versions please consider python-pathlib2 instead, which tracks the | |
10334 | standard library module. This module (python-pathlib) isn't maintained | |
10335 | anymore.") | |
76b94885 LF |
10336 | (license license:expat))) |
10337 | ||
10338 | (define-public python2-pathlib | |
10339 | (package-with-python2 python-pathlib)) | |
25a7db0a | 10340 | |
b7703c81 HG |
10341 | (define-public python2-pathlib2 |
10342 | (package | |
10343 | (name "python2-pathlib2") | |
10344 | (version "2.1.0") | |
10345 | (source (origin | |
10346 | (method url-fetch) | |
10347 | (uri (pypi-uri "pathlib2" version)) | |
10348 | (sha256 | |
10349 | (base32 | |
10350 | "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy")))) | |
10351 | (build-system python-build-system) | |
49a531f5 HG |
10352 | ;; We only need the the Python 2 variant, since for Python 3 our minimum |
10353 | ;; version is 3.4 which already includes this package as part of the | |
10354 | ;; standard library. | |
b7703c81 HG |
10355 | (arguments |
10356 | `(#:python ,python-2)) | |
10357 | (native-inputs | |
f3b98f4f | 10358 | `(("python2-six" ,python2-six))) |
b7703c81 HG |
10359 | (home-page "http://pypi.python.org/pypi/pathlib2/") |
10360 | (synopsis "Object-oriented file system paths - backport of standard | |
10361 | pathlib module") | |
10362 | (description "The goal of pathlib2 is to provide a backport of standard | |
10363 | pathlib module which tracks the standard library module, so all the newest | |
10364 | features of the standard pathlib can be used also on older Python versions. | |
10365 | ||
10366 | Pathlib offers a set of classes to handle file system paths. It offers the | |
10367 | following advantages over using string objects: | |
10368 | ||
10369 | @enumerate | |
10370 | @item No more cumbersome use of os and os.path functions. Everything can | |
10371 | be done easily through operators, attribute accesses, and method calls. | |
10372 | @item Embodies the semantics of different path types. For example, | |
10373 | comparing Windows paths ignores casing. | |
10374 | @item Well-defined semantics, eliminating any inconsistencies or | |
10375 | ambiguities (forward vs. backward slashes, etc.). | |
10376 | @end enumerate") | |
10377 | (license license:expat))) | |
10378 | ||
25a7db0a LF |
10379 | (define-public python-jellyfish |
10380 | (package | |
10381 | (name "python-jellyfish") | |
8c4964dd | 10382 | (version "0.5.6") |
25a7db0a LF |
10383 | (source (origin |
10384 | (method url-fetch) | |
10385 | (uri (pypi-uri "jellyfish" version)) | |
10386 | (sha256 | |
10387 | (base32 | |
8c4964dd | 10388 | "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8")))) |
25a7db0a LF |
10389 | (build-system python-build-system) |
10390 | (native-inputs | |
10391 | `(("python-pytest" ,python-pytest))) | |
10392 | (home-page "https://github.com/jamesturk/jellyfish") | |
10393 | (synopsis "Approximate and phonetic matching of strings") | |
10394 | (description "Jellyfish uses a variety of string comparison and phonetic | |
10395 | encoding algorithms to do fuzzy string matching.") | |
3f641af0 | 10396 | (license license:bsd-2) |
25a7db0a LF |
10397 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
10398 | ||
10399 | (define-public python2-jellyfish | |
10400 | (let ((jellyfish (package-with-python2 | |
10401 | (strip-python2-variant python-jellyfish)))) | |
10402 | (package (inherit jellyfish) | |
00e10c6e | 10403 | (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv) |
25a7db0a | 10404 | ,@(package-native-inputs jellyfish)))))) |
13edb0e5 LF |
10405 | |
10406 | (define-public python2-unicodecsv | |
10407 | (package | |
10408 | (name "python2-unicodecsv") | |
10409 | (version "0.14.1") | |
10410 | (source (origin | |
10411 | (method url-fetch) | |
10412 | ;; The test suite is not included in the PyPi release. | |
10413 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 | |
10414 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" | |
10415 | "archive/" version ".tar.gz")) | |
10416 | (file-name (string-append name "-" version ".tar.gz")) | |
10417 | (sha256 | |
10418 | (base32 | |
10419 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) | |
10420 | (build-system python-build-system) | |
10421 | (arguments | |
10422 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. | |
10423 | #:python ,python-2)) | |
10424 | (native-inputs | |
f3b98f4f | 10425 | `(("python2-unittest2" ,python2-unittest2))) |
13edb0e5 LF |
10426 | (home-page "https://github.com/jdunck/python-unicodecsv") |
10427 | (synopsis "Unicode CSV module for Python 2") | |
10428 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV | |
10429 | module, adding support for Unicode strings.") | |
3f641af0 | 10430 | (license license:bsd-2))) |
064503aa LF |
10431 | |
10432 | (define-public python-rarfile | |
10433 | (package | |
10434 | (name "python-rarfile") | |
67824447 | 10435 | (version "2.8") |
064503aa LF |
10436 | (source (origin |
10437 | (method url-fetch) | |
10438 | (uri (pypi-uri "rarfile" version)) | |
10439 | (sha256 | |
10440 | (base32 | |
67824447 | 10441 | "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra")))) |
064503aa LF |
10442 | (build-system python-build-system) |
10443 | (arguments | |
10444 | '(#:phases | |
10445 | (modify-phases %standard-phases | |
10446 | (replace 'check | |
10447 | ;; Many tests fail, but the installation proceeds. | |
10448 | (lambda _ (zero? (system* "make" "-C" "test" "test"))))))) | |
10449 | (native-inputs | |
10450 | `(("which" ,which))) ; required for tests | |
10451 | (propagated-inputs | |
10452 | `(("libarchive" ,libarchive))) | |
10453 | (home-page "https://github.com/markokr/rarfile") | |
10454 | (synopsis "RAR archive reader for Python") | |
10455 | (description "This is Python module for RAR archive reading. The interface | |
10456 | is made as zipfile like as possible.") | |
3f641af0 | 10457 | (license license:isc))) |
064503aa LF |
10458 | |
10459 | (define-public python2-rarfile | |
10460 | (package-with-python2 python-rarfile)) | |
daeeea71 CM |
10461 | |
10462 | (define-public python-magic | |
10463 | (package | |
10464 | (name "python-magic") | |
10465 | (version "0.4.3") | |
10466 | (source | |
10467 | (origin | |
10468 | (method url-fetch) | |
10469 | (uri (string-append "https://github.com/ahupp/python-magic/archive/" | |
10470 | version ".tar.gz")) | |
10471 | (sha256 | |
10472 | (base32 | |
10473 | "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) | |
10474 | (file-name (string-append name "-" version "-checkout")))) | |
10475 | (build-system python-build-system) | |
10476 | (arguments | |
10477 | ;; The tests are unreliable, so don't run them. The tests fail | |
10478 | ;; under Python3 because they were written for Python2 and | |
10479 | ;; contain import statements that do not work in Python3. One of | |
10480 | ;; the tests fails under Python2 because its assertions are | |
10481 | ;; overly stringent; it relies on comparing output strings which | |
10482 | ;; are brittle and can change depending on the version of | |
10483 | ;; libmagic being used and the system on which the test is | |
10484 | ;; running. In my case, under GuixSD 0.10.0, only one test | |
10485 | ;; failed, and it seems to have failed only because the version | |
10486 | ;; of libmagic that is packaged in Guix outputs a slightly | |
10487 | ;; different (but not wrong) string than the one that the test | |
10488 | ;; expected. | |
10489 | '(#:tests? #f | |
10490 | #:phases (modify-phases %standard-phases | |
10491 | ;; Replace a specific method call with a hard-coded | |
10492 | ;; path to the necessary libmagic.so file in the | |
10493 | ;; store. If we don't do this, then the method call | |
10494 | ;; will fail to find the libmagic.so file, which in | |
10495 | ;; turn will cause any application using | |
10496 | ;; python-magic to fail. | |
10497 | (add-before 'build 'hard-code-path-to-libmagic | |
10498 | (lambda* (#:key inputs #:allow-other-keys) | |
10499 | (let ((file (assoc-ref inputs "file"))) | |
10500 | (substitute* "magic.py" | |
10501 | (("ctypes.util.find_library\\('magic'\\)") | |
10502 | (string-append "'" file "/lib/libmagic.so'"))) | |
77432686 LF |
10503 | #t))) |
10504 | (add-before 'install 'disable-egg-compression | |
10505 | (lambda _ | |
10506 | (let ((port (open-file "setup.cfg" "a"))) | |
10507 | (display "\n[easy_install]\nzip_ok = 0\n" | |
10508 | port) | |
10509 | (close-port port) | |
10510 | #t)))))) | |
daeeea71 CM |
10511 | (inputs |
10512 | ;; python-magic needs to be able to find libmagic.so. | |
10513 | `(("file" ,file))) | |
10514 | (home-page "https://github.com/ahupp/python-magic") | |
10515 | (synopsis "File type identification using libmagic") | |
10516 | (description | |
10517 | "This module uses ctypes to access the libmagic file type | |
10518 | identification library. It makes use of the local magic database and | |
10519 | supports both textual and MIME-type output. Note that this module and | |
10520 | the python-file module both provide a \"magic.py\" file; these two | |
10521 | modules, which are different and were developed separately, both serve | |
10522 | the same purpose: to provide Python bindings for libmagic.") | |
10523 | (license license:expat))) | |
10524 | ||
10525 | (define-public python2-magic | |
10526 | (package-with-python2 python-magic)) | |
12af303f CM |
10527 | |
10528 | (define-public python2-s3cmd | |
10529 | (package | |
10530 | (name "python2-s3cmd") | |
10531 | (version "1.6.1") | |
10532 | (source | |
10533 | (origin | |
10534 | (method url-fetch) | |
de67e922 | 10535 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
12af303f CM |
10536 | "s3cmd-" version ".tar.gz")) |
10537 | (sha256 | |
10538 | (base32 | |
10539 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) | |
10540 | (build-system python-build-system) | |
10541 | (arguments | |
10542 | ;; s3cmd is written for python2 only and contains no tests. | |
10543 | `(#:python ,python-2 | |
10544 | #:tests? #f)) | |
f22efa01 | 10545 | (propagated-inputs |
12af303f CM |
10546 | `(("python2-dateutil" ,python2-dateutil) |
10547 | ;; The python-file package also provides a magic.py module. | |
10548 | ;; This is an unfortunate state of affairs; however, s3cmd | |
10549 | ;; fails to install if it cannot find specifically the | |
10550 | ;; python-magic package. Thus we include it, instead of using | |
10551 | ;; python-file. Ironically, s3cmd sometimes works better | |
10552 | ;; without libmagic bindings at all: | |
10553 | ;; https://github.com/s3tools/s3cmd/issues/198 | |
10554 | ("python2-magic" ,python2-magic))) | |
10555 | (home-page "http://s3tools.org/s3cmd") | |
10556 | (synopsis "Command line tool for S3-compatible storage services") | |
10557 | (description | |
10558 | "S3cmd is a command line tool for uploading, retrieving and managing data | |
10559 | in storage services that are compatible with the Amazon Simple Storage | |
10560 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, | |
10561 | GnuPG encryption, and more. It also supports management of Amazon's | |
10562 | CloudFront content delivery network.") | |
3f641af0 | 10563 | (license license:gpl2+))) |
4323a5f0 AE |
10564 | |
10565 | (define-public python-pkgconfig | |
10566 | (package | |
10567 | (name "python-pkgconfig") | |
10568 | (version "1.1.0") | |
10569 | (source | |
10570 | (origin | |
10571 | (method url-fetch) | |
10572 | (uri (pypi-uri "pkgconfig" version)) | |
10573 | (sha256 | |
10574 | (base32 | |
10575 | "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) | |
10576 | (build-system python-build-system) | |
10577 | (native-inputs | |
f3b98f4f | 10578 | `(("python-nose" ,python-nose))) |
4323a5f0 AE |
10579 | (inputs |
10580 | `(("pkg-config" ,pkg-config))) | |
10581 | (arguments | |
10582 | `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3, | |
10583 | ;; and on Python 2 they need the dl module deprecated since Python 2.6. | |
10584 | #:tests? #f | |
4323a5f0 AE |
10585 | ;; Hard-code the path to pkg-config. |
10586 | #:phases | |
10587 | (modify-phases %standard-phases | |
10588 | (add-before | |
10589 | 'build 'patch | |
10590 | (lambda _ | |
10591 | (substitute* "pkgconfig/pkgconfig.py" | |
10592 | (("cmd = 'pkg-config") | |
10593 | (string-append "cmd = '" (which "pkg-config")))) | |
10594 | #t))))) | |
10595 | (home-page "http://github.com/matze/pkgconfig") | |
10596 | (synopsis "Python interface for pkg-config") | |
10597 | (description "This module provides a Python interface to pkg-config. It | |
10598 | can be used to find all pkg-config packages, check if a package exists, | |
10599 | check if a package meets certain version requirements, query CFLAGS and | |
10600 | LDFLAGS and parse the output to build extensions with setup.py.") | |
a0c6a36b | 10601 | (license license:expat))) |
4323a5f0 AE |
10602 | |
10603 | (define-public python2-pkgconfig | |
10604 | (package-with-python2 python-pkgconfig)) | |
10605 | ||
2e697322 BW |
10606 | (define-public python-bz2file |
10607 | (package | |
10608 | (name "python-bz2file") | |
10609 | (version "0.98") | |
10610 | (source | |
10611 | (origin | |
10612 | (method url-fetch) | |
10613 | (uri (pypi-uri "bz2file" version)) | |
10614 | (sha256 | |
10615 | (base32 | |
10616 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) | |
10617 | (build-system python-build-system) | |
10618 | (arguments | |
124df723 | 10619 | `(#:tests? #f)) ; Tests use deprecated python modules. |
2e697322 BW |
10620 | (home-page "https://github.com/nvawda/bz2file") |
10621 | (synopsis "Read and write bzip2-compressed files") | |
10622 | (description | |
10623 | "Bz2file is a Python library for reading and writing bzip2-compressed | |
10624 | files. It contains a drop-in replacement for the I/O interface in the | |
10625 | standard library's @code{bz2} module, including features from the latest | |
10626 | development version of CPython that are not available in older releases.") | |
3f641af0 | 10627 | (license license:asl2.0) |
2e697322 BW |
10628 | (properties `((python2-variant . ,(delay python2-bz2file)))))) |
10629 | ||
10630 | (define-public python2-bz2file | |
10631 | (let ((base (package-with-python2 | |
10632 | (strip-python2-variant python-bz2file)))) | |
10633 | (package | |
10634 | (inherit base) | |
124df723 | 10635 | (arguments |
752bb447 BW |
10636 | `(#:python ,python-2 |
10637 | #:phases | |
124df723 BW |
10638 | (modify-phases %standard-phases |
10639 | ;; 'python setup.py test' does not work as of 0.98. | |
10640 | ;; There is only the one test file, so we run it directly. | |
10641 | (replace 'check | |
10642 | (lambda _ (zero? (system* "python" | |
10643 | "test_bz2file.py")))))))))) | |
2e697322 | 10644 | |
da4ac1aa BW |
10645 | (define-public python-future |
10646 | (package | |
10647 | (name "python-future") | |
10648 | (version "0.15.2") | |
10649 | (source | |
10650 | (origin | |
10651 | (method url-fetch) | |
10652 | (uri (pypi-uri "future" version)) | |
10653 | (sha256 | |
10654 | (base32 | |
10655 | "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx")))) | |
10656 | (build-system python-build-system) | |
10657 | ;; Many tests connect to the network or are otherwise flawed. | |
10658 | ;; https://github.com/PythonCharmers/python-future/issues/210 | |
10659 | (arguments | |
10660 | `(#:tests? #f)) | |
10661 | (home-page "http://python-future.org") | |
10662 | (synopsis "Single-source support for Python 3 and 2") | |
10663 | (description | |
10664 | "@code{python-future} is the missing compatibility layer between Python 2 and | |
10665 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase | |
10666 | to support both Python 2 and Python 3 with minimal overhead.") | |
f210e944 | 10667 | (license license:expat))) |
da4ac1aa BW |
10668 | |
10669 | (define-public python2-future | |
f210e944 | 10670 | (package-with-python2 python-future)) |
da4ac1aa | 10671 | |
8e451885 AE |
10672 | (define-public python-cysignals |
10673 | (package | |
10674 | (name "python-cysignals") | |
10675 | (version "1.1.0") | |
10676 | (source | |
10677 | (origin | |
10678 | (method url-fetch) | |
10679 | (uri (pypi-uri "cysignals" version ".tar.bz2")) | |
10680 | (sha256 | |
10681 | (base32 | |
10682 | "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6")))) | |
10683 | (build-system python-build-system) | |
10684 | (native-inputs | |
10685 | `(("python-cython" ,python-cython) | |
8e451885 AE |
10686 | ("python-sphinx" ,python-sphinx))) |
10687 | (inputs | |
10688 | `(("pari-gp" ,pari-gp))) | |
10689 | (arguments | |
10690 | `(#:modules ((guix build python-build-system) | |
10691 | ((guix build gnu-build-system) #:prefix gnu:) | |
10692 | (guix build utils)) | |
10693 | ;; FIXME: Tests are executed after installation and currently fail | |
10694 | ;; when not installing into standard locations; the author is working | |
10695 | ;; on a fix. | |
10696 | #:tests? #f | |
10697 | #:phases | |
10698 | (modify-phases %standard-phases | |
10699 | (add-before | |
10700 | 'build 'configure | |
10701 | (assoc-ref gnu:%standard-phases 'configure))))) | |
10702 | (home-page | |
10703 | "https://github.com/sagemath/cysignals") | |
10704 | (synopsis | |
10705 | "Handling of interrupts and signals for Cython") | |
10706 | (description | |
10707 | "The cysignals package provides mechanisms to handle interrupts (and | |
10708 | other signals and errors) in Cython code, using two related approaches, | |
10709 | for mixed Cython/Python code or external C libraries and pure Cython code, | |
10710 | respectively.") | |
3f641af0 | 10711 | (license license:lgpl3+))) |
8e451885 AE |
10712 | |
10713 | (define-public python2-cysignals | |
10714 | (package-with-python2 python-cysignals)) | |
10715 | ||
63bcec71 DM |
10716 | (define-public python2-shedskin |
10717 | (package | |
10718 | (name "python2-shedskin") | |
10719 | (version "0.9.4") | |
10720 | (source | |
10721 | (origin | |
10722 | (method url-fetch) | |
10723 | (uri (string-append "https://github.com/shedskin/shedskin/" | |
10724 | "releases/download/v" version | |
10725 | "/shedskin-" version ".tgz")) | |
10726 | (sha256 | |
10727 | (base32 | |
10728 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) | |
10729 | (build-system python-build-system) | |
10730 | (arguments | |
10731 | `(#:python ,python-2 | |
10732 | #:phases (modify-phases %standard-phases | |
10733 | (add-after 'unpack 'fix-resulting-include-libs | |
10734 | (lambda* (#:key inputs #:allow-other-keys) | |
10735 | (let ((libgc (assoc-ref inputs "libgc")) | |
10736 | (pcre (assoc-ref inputs "pcre"))) | |
10737 | (substitute* "shedskin/makefile.py" | |
10738 | (("variable == 'CCFLAGS':[ ]*") | |
10739 | (string-append "variable == 'CCFLAGS':\n" | |
10740 | " line += ' -I " pcre "/include" | |
10741 | " -I " libgc "/include'")) | |
10742 | (("variable == 'LFLAGS':[ ]*") | |
10743 | (string-append "variable == 'LFLAGS':\n" | |
10744 | " line += ' -L" pcre "/lib" | |
10745 | " -L " libgc "/lib'"))) | |
10746 | #t)))))) | |
63bcec71 DM |
10747 | (inputs `(("pcre" ,pcre) |
10748 | ("libgc" ,libgc))) | |
10749 | (home-page "https://shedskin.github.io/") | |
10750 | (synopsis "Experimental Python-2 to C++ Compiler") | |
10751 | (description (string-append "This is an experimental compiler for a subset of | |
10752 | Python. It generates C++ code and a Makefile.")) | |
3f641af0 | 10753 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
88bb4197 LG |
10754 | |
10755 | (define-public python2-rope | |
10756 | (package | |
10757 | (name "python2-rope") | |
10758 | (version "0.10.3") | |
10759 | (source | |
10760 | (origin | |
10761 | (method url-fetch) | |
10762 | (uri (pypi-uri "rope" version)) | |
10763 | (sha256 | |
10764 | (base32 | |
10765 | "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) | |
10766 | (arguments | |
10767 | ;; Rope is currently python-2 only. | |
10768 | ;; https://github.com/python-rope/rope/issues/57 | |
10769 | `(#:python ,python-2)) | |
10770 | (build-system python-build-system) | |
10771 | (native-inputs | |
f3b98f4f | 10772 | `(("python2-unittest2" ,python2-unittest2))) |
88bb4197 LG |
10773 | (home-page "https://github.com/python-rope/rope") |
10774 | (synopsis "Refactoring library for Python") | |
10775 | (description "Rope is a refactoring library for Python. It facilitates | |
10776 | the renaming, moving and extracting of attributes, functions, modules, fields | |
10777 | and parameters in Python 2 source code. These refactorings can also be applied | |
10778 | to occurences in strings and comments.") | |
3f641af0 | 10779 | (license license:gpl2))) |
6ba8ca17 TČ |
10780 | |
10781 | (define-public python-py3status | |
10782 | (package | |
10783 | (name "python-py3status") | |
d2262d70 | 10784 | (version "3.1") |
6ba8ca17 TČ |
10785 | (source |
10786 | (origin | |
10787 | (method url-fetch) | |
10788 | (uri (pypi-uri "py3status" version)) | |
10789 | (sha256 | |
10790 | (base32 | |
d2262d70 | 10791 | "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) |
6ba8ca17 | 10792 | (build-system python-build-system) |
8653c1d5 MB |
10793 | (arguments |
10794 | '(#:tests? #f)) ; TODO: Requires many libraries not in Guix. | |
6ba8ca17 TČ |
10795 | (home-page "https://github.com/ultrabug/py3status") |
10796 | (synopsis "Extensible i3status wrapper written in Python") | |
10797 | (description "py3status is an i3status wrapper which extends i3status | |
10798 | functionality in a modular way, allowing you to extend your panel with your | |
10799 | own code, responding to click events and updating clock every second.") | |
3f641af0 | 10800 | (license license:bsd-3))) |
b8fdbca3 HG |
10801 | |
10802 | (define-public python-tblib | |
10803 | (package | |
10804 | (name "python-tblib") | |
10805 | (version "1.3.0") | |
10806 | (source (origin | |
10807 | (method url-fetch) | |
10808 | (uri (pypi-uri "tblib" version)) | |
10809 | (sha256 (base32 | |
10810 | "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi")))) | |
10811 | (build-system python-build-system) | |
10812 | (arguments | |
10813 | `(#:phases | |
10814 | (modify-phases %standard-phases | |
10815 | (replace 'check | |
10816 | (lambda _ | |
10817 | ;; Upstream runs tests after installation and the package itself | |
10818 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be | |
10819 | ;; found. | |
10820 | (setenv "PYTHONPATH" | |
10821 | (string-append (getcwd) "/build/lib:" | |
10822 | (getenv "PYTHONPATH"))) | |
10823 | (zero? (system* "py.test" "-vv" "tests" "README.rst"))))))) | |
10824 | (native-inputs | |
10825 | `(("python-pytest" ,python-pytest) | |
b8fdbca3 HG |
10826 | ("python-six" ,python-six))) |
10827 | (home-page "https://github.com/ionelmc/python-tblib") | |
10828 | (synopsis "Traceback serialization library") | |
10829 | (description | |
10830 | "Traceback serialization allows you to: | |
10831 | ||
10832 | @enumerate | |
10833 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in | |
10834 | different processes. This allows better error handling when running code over | |
10835 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). | |
10836 | ||
10837 | @item Parse traceback strings and raise with the parsed tracebacks. | |
9657aeb1 | 10838 | @end enumerate\n") |
3f641af0 | 10839 | (license license:bsd-3))) |
b8fdbca3 HG |
10840 | |
10841 | (define-public python2-tblib | |
10842 | (package-with-python2 python-tblib)) | |
1a024de4 HG |
10843 | |
10844 | (define-public python-sqlparse | |
10845 | (package | |
10846 | (name "python-sqlparse") | |
10847 | (version "0.1.19") | |
10848 | (source (origin | |
10849 | (method url-fetch) | |
10850 | (uri (pypi-uri "sqlparse" version)) | |
10851 | (sha256 | |
10852 | (base32 | |
10853 | "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) | |
10854 | (build-system python-build-system) | |
10855 | (arguments | |
10856 | `(#:phases | |
10857 | (modify-phases %standard-phases | |
10858 | (replace 'check | |
10859 | (lambda* _ | |
10860 | ;; setup.py-integrated 2to3 only affects the build files, but | |
10861 | ;; py.test is using the source files. So we need to convert them | |
10862 | ;; manually. | |
10863 | (when (zero? (system* "python3")) | |
10864 | (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")) | |
10865 | (zero? (system* "py.test"))))))) | |
10866 | (native-inputs | |
f3b98f4f | 10867 | `(("python-pytest" ,python-pytest))) |
1a024de4 HG |
10868 | (home-page "https://github.com/andialbrecht/sqlparse") |
10869 | (synopsis "Non-validating SQL parser") | |
10870 | (description "Sqlparse is a non-validating SQL parser for Python. It | |
10871 | provides support for parsing, splitting and formatting SQL statements.") | |
3f641af0 | 10872 | (license license:bsd-3))) |
1a024de4 HG |
10873 | |
10874 | (define-public python2-sqlparse | |
10875 | (package-with-python2 python-sqlparse)) | |
68b9d242 SB |
10876 | |
10877 | (define-public python-greenlet | |
10878 | (package | |
10879 | (name "python-greenlet") | |
1f89fb16 | 10880 | (version "0.4.11") |
68b9d242 SB |
10881 | (source (origin |
10882 | (method url-fetch) | |
10883 | (uri (pypi-uri "greenlet" version)) | |
10884 | (sha256 | |
10885 | (base32 | |
1f89fb16 | 10886 | "1xhik26j4f3kc4qw9xmj0c567rb5h1zryb4ijwqnqwwjvfhbv59h")))) |
68b9d242 | 10887 | (build-system python-build-system) |
68b9d242 SB |
10888 | (home-page "https://greenlet.readthedocs.io/") |
10889 | (synopsis "Lightweight in-process concurrent programming") | |
10890 | (description | |
10891 | "Greenlet package is a spin-off of Stackless, a version of CPython | |
10892 | that supports micro-threads called \"tasklets\". Tasklets run | |
10893 | pseudo-concurrently (typically in a single or a few OS-level threads) and | |
10894 | are synchronized with data exchanges on \"channels\".") | |
3f641af0 | 10895 | (license (list license:psfl license:expat)))) |
68b9d242 SB |
10896 | |
10897 | (define-public python2-greenlet | |
10898 | (package-with-python2 python-greenlet)) | |
d79a343b SB |
10899 | |
10900 | (define-public python-gevent | |
10901 | (package | |
10902 | (name "python-gevent") | |
10903 | (version "1.1.1") | |
10904 | (source (origin | |
10905 | (method url-fetch) | |
10906 | (uri (pypi-uri "gevent" version)) | |
10907 | (sha256 | |
10908 | (base32 | |
10909 | "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf")) | |
10910 | (modules '((guix build utils))) | |
10911 | (snippet | |
10912 | '(begin | |
10913 | ;; unbunding libev and c-ares | |
10914 | (for-each delete-file-recursively '("libev" "c-ares")) | |
10915 | ;; fixing testsuite | |
10916 | (call-with-output-file "greentest/__init__.py" noop) | |
10917 | (substitute* "greentest/testrunner.py" | |
10918 | (("import util") "from . import util") | |
10919 | (("from util import log") "from .util import log")))))) | |
10920 | (build-system python-build-system) | |
10921 | (propagated-inputs | |
10922 | `(("python-greenlet" ,python-greenlet))) | |
10923 | (native-inputs | |
f3b98f4f | 10924 | `(("python-six" ,python-six))) |
d79a343b SB |
10925 | (inputs |
10926 | `(("c-ares" ,c-ares) | |
10927 | ("libev" ,libev))) | |
10928 | (home-page "http://www.gevent.org/") | |
10929 | (synopsis "Coroutine-based network library") | |
10930 | (description | |
10931 | "gevent is a coroutine-based Python networking library that uses greenlet | |
10932 | to provide a high-level synchronous API on top of the libev event loop.") | |
10933 | (license license:expat))) | |
10934 | ||
10935 | (define-public python2-gevent | |
10936 | (package-with-python2 python-gevent)) | |
da3aeeb6 | 10937 | |
c9a18125 MB |
10938 | (define-public python-geventhttpclient |
10939 | (package | |
10940 | (name "python-geventhttpclient") | |
10941 | (version "1.3.1") | |
10942 | (source (origin | |
10943 | (method url-fetch) | |
10944 | (uri (pypi-uri "geventhttpclient" version)) | |
10945 | (sha256 | |
10946 | (base32 | |
10947 | "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx")) | |
10948 | (modules '((guix build utils))) | |
10949 | (snippet | |
10950 | '(begin | |
10951 | ;; Delete pre-compiled files. | |
10952 | (for-each delete-file (find-files "src/geventhttpclient" | |
10953 | ".*\\.pyc")) | |
10954 | #t)))) | |
10955 | (build-system python-build-system) | |
10956 | (arguments | |
10957 | '(#:phases | |
10958 | (modify-phases %standard-phases | |
10959 | (add-after 'unpack 'delete-network-tests | |
10960 | (lambda _ | |
10961 | (delete-file "src/geventhttpclient/tests/test_client.py") | |
10962 | #t)) | |
10963 | (delete 'check) | |
10964 | (add-after 'install 'check | |
10965 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
10966 | (add-installed-pythonpath inputs outputs) | |
10967 | (zero? (system* "py.test" "src/geventhttpclient/tests" "-v"))))))) | |
10968 | (native-inputs | |
10969 | `(("python-pytest" ,python-pytest))) | |
10970 | (propagated-inputs | |
10971 | `(("python-certifi" ,python-certifi) | |
10972 | ("python-gevent" ,python-gevent) | |
10973 | ("python-six" ,python-six))) | |
10974 | (home-page "https://github.com/gwik/geventhttpclient") | |
10975 | (synopsis "HTTP client library for gevent") | |
10976 | (description "@code{python-geventhttpclient} is a high performance, | |
10977 | concurrent HTTP client library for python using @code{gevent}.") | |
10978 | (license license:expat))) | |
10979 | ||
10980 | (define-public python2-geventhttpclient | |
10981 | (package-with-python2 python-geventhttpclient)) | |
10982 | ||
b585e361 DM |
10983 | (define-public python-fastimport |
10984 | (package | |
10985 | (name "python-fastimport") | |
10986 | (version "0.9.6") | |
10987 | (source | |
10988 | (origin | |
10989 | (method url-fetch) | |
10990 | (uri (pypi-uri "fastimport" version)) | |
10991 | (sha256 | |
10992 | (base32 "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43")))) | |
10993 | (build-system python-build-system) | |
10994 | (home-page "https://github.com/jelmer/python-fastimport") | |
10995 | (synopsis "VCS fastimport parser and generator in Python") | |
10996 | (description "This package provides a parser for and generator of the Git | |
10997 | @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport} | |
10998 | format.") | |
10999 | (license license:gpl2+))) | |
11000 | ||
11001 | (define-public python2-fastimport | |
11002 | (package-with-python2 python-fastimport)) | |
11003 | ||
da3aeeb6 SB |
11004 | (define-public python-twisted |
11005 | (package | |
11006 | (name "python-twisted") | |
11007 | (version "16.2.0") | |
11008 | (source (origin | |
11009 | (method url-fetch) | |
8ea8e8d3 | 11010 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
da3aeeb6 SB |
11011 | (sha256 |
11012 | (base32 | |
11013 | "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450")))) | |
11014 | (build-system python-build-system) | |
a960e73f MB |
11015 | (arguments |
11016 | '(#:tests? #f)) ; FIXME: Some tests are failing. | |
11017 | ;; #:phases | |
11018 | ;; (modify-phases %standard-phases | |
11019 | ;; (replace 'check | |
11020 | ;; (lambda _ | |
11021 | ;; (zero? (system* "./bin/trial" "twisted"))))) | |
45912170 SB |
11022 | (propagated-inputs |
11023 | `(("python-zope-interface" ,python-zope-interface))) | |
da3aeeb6 SB |
11024 | (home-page "https://twistedmatrix.com/") |
11025 | (synopsis "Asynchronous networking framework written in Python") | |
11026 | (description | |
11027 | "Twisted is an extensible framework for Python programming, with special | |
11028 | focus on event-based network programming and multiprotocol integration.") | |
11029 | (license license:expat))) | |
11030 | ||
11031 | (define-public python2-twisted | |
11032 | (package-with-python2 python-twisted)) | |
d0b6fed6 | 11033 | |
4d3fa5a4 EF |
11034 | (define-public python-pika |
11035 | (package | |
11036 | (name "python-pika") | |
11037 | (version "0.10.0") | |
11038 | (source | |
11039 | (origin | |
11040 | (method url-fetch) | |
11041 | (uri (pypi-uri "pika" version)) | |
11042 | (sha256 | |
11043 | (base32 | |
11044 | "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) | |
11045 | (build-system python-build-system) | |
11046 | (native-inputs | |
269d9172 LF |
11047 | `(("python-pyev" ,python-pyev) |
11048 | ("python-tornado" ,python-tornado) | |
11049 | ("python-twisted" ,python-twisted))) | |
4d3fa5a4 EF |
11050 | (home-page "https://pika.readthedocs.org") |
11051 | (synopsis "Pure Python AMQP Client Library") | |
11052 | (description | |
11053 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing | |
11054 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying | |
11055 | network support library.") | |
11056 | (license license:bsd-3))) | |
11057 | ||
11058 | (define-public python2-pika | |
11059 | (package-with-python2 python-pika)) | |
11060 | ||
d0b6fed6 DM |
11061 | (define-public python-ply |
11062 | (package | |
11063 | (name "python-ply") | |
234ade2d | 11064 | (version "3.9") |
d0b6fed6 DM |
11065 | (source |
11066 | (origin | |
11067 | (method url-fetch) | |
234ade2d | 11068 | (uri (pypi-uri "ply" version)) |
d0b6fed6 DM |
11069 | (sha256 |
11070 | (base32 | |
234ade2d | 11071 | "0gpl0yli3w03ipyqfrp3w5nf0iawhsq65anf5wwm2wf5p502jzhd")))) |
d0b6fed6 DM |
11072 | (build-system python-build-system) |
11073 | (home-page "http://www.dabeaz.com/ply/") | |
11074 | (synopsis "Python Lex & Yacc") | |
11075 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. | |
11076 | It uses LR parsing and does extensive error checking.") | |
f210e944 | 11077 | (license license:bsd-3))) |
d0b6fed6 DM |
11078 | |
11079 | (define-public python2-ply | |
f210e944 | 11080 | (package-with-python2 python-ply)) |
d951bd54 SB |
11081 | |
11082 | (define-public python-tabulate | |
11083 | (package | |
11084 | (name "python-tabulate") | |
e6ace98d | 11085 | (version "0.7.7") |
d951bd54 SB |
11086 | (source (origin |
11087 | (method url-fetch) | |
11088 | (uri (pypi-uri "tabulate" version)) | |
11089 | (sha256 | |
11090 | (base32 | |
fe2ba3a8 | 11091 | "1inqhspd4frxnp08c32yndr0lc4px1xfkqah184i5w09gkhvi843")))) |
d951bd54 | 11092 | (build-system python-build-system) |
fe2ba3a8 MB |
11093 | (arguments |
11094 | ;; FIXME: The pypi release tarball is missing a 'test/common.py' | |
11095 | ;; and the latest release is not tagged in the upstream repository. | |
11096 | '(#:tests? #f)) | |
d951bd54 SB |
11097 | (home-page "https://bitbucket.org/astanin/python-tabulate") |
11098 | (synopsis "Pretty-print tabular data") | |
11099 | (description | |
11100 | "Tabulate is a library and command-line utility to pretty-print tabular | |
11101 | data in Python.") | |
11102 | (license license:expat))) | |
11103 | ||
11104 | (define-public python2-tabulate | |
11105 | (package-with-python2 python-tabulate)) | |
1c4c8a33 SB |
11106 | |
11107 | (define-public python-kazoo | |
11108 | (package | |
11109 | (name "python-kazoo") | |
11110 | (version "2.2.1") | |
11111 | (source | |
11112 | (origin | |
11113 | (method url-fetch) | |
11114 | (uri (pypi-uri "kazoo" version)) | |
11115 | (sha256 | |
11116 | (base32 | |
11117 | "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj")))) | |
11118 | (build-system python-build-system) | |
11119 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper | |
c18899e8 SB |
11120 | (propagated-inputs |
11121 | `(("python-six" ,python-six))) | |
1c4c8a33 SB |
11122 | (home-page "https://kazoo.readthedocs.org") |
11123 | (synopsis "High-level Zookeeper client library") | |
11124 | (description | |
11125 | "Kazoo is a Python client library for the Apache Zookeeper distributed | |
11126 | application service. It is designed to be easy to use and to avoid common | |
11127 | programming errors.") | |
3f641af0 | 11128 | (license license:asl2.0))) |
1c4c8a33 SB |
11129 | |
11130 | (define-public python2-kazoo | |
11131 | (package-with-python2 python-kazoo)) | |
45dda35e SB |
11132 | |
11133 | (define-public python-pykafka | |
11134 | (package | |
11135 | (name "python-pykafka") | |
11136 | (version "2.4.0") | |
11137 | (source (origin | |
11138 | (method url-fetch) | |
c6bccf71 EF |
11139 | (uri (string-append |
11140 | "https://pypi.python.org/packages/8b/3e/" | |
11141 | "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/" | |
11142 | "pykafka-" version ".tar.gz")) | |
45dda35e SB |
11143 | (sha256 |
11144 | (base32 | |
11145 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) | |
11146 | (build-system python-build-system) | |
11147 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. | |
c8fa3d9b | 11148 | (propagated-inputs |
45dda35e SB |
11149 | `(("python-gevent" ,python-gevent) |
11150 | ("python-kazoo" ,python-kazoo) | |
45dda35e SB |
11151 | ("python-tabulate" ,python-tabulate))) |
11152 | (inputs | |
11153 | `(("librdkafka" ,librdkafka))) | |
11154 | (home-page "https://pykafka.readthedocs.io/") | |
11155 | (synopsis "Apache Kafka client for Python") | |
11156 | (description | |
11157 | "PyKafka is a client for the Apache Kafka distributed messaging system. | |
11158 | It includes Python implementations of Kafka producers and consumers, which | |
11159 | are optionally backed by a C extension built on librdkafka.") | |
3f641af0 | 11160 | (license license:asl2.0))) |
45dda35e SB |
11161 | |
11162 | (define-public python2-pykafka | |
11163 | (package-with-python2 python-pykafka)) | |
a44fd439 DM |
11164 | |
11165 | (define-public python-wcwidth | |
11166 | (package | |
11167 | (name "python-wcwidth") | |
11168 | (version "0.1.6") | |
11169 | (source | |
11170 | (origin | |
11171 | (method url-fetch) | |
11172 | (uri (string-append | |
11173 | "https://pypi.python.org/packages/" | |
11174 | "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/" | |
11175 | "wcwidth-" version ".tar.gz")) | |
11176 | (sha256 | |
11177 | (base32 | |
11178 | "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw")))) | |
11179 | (build-system python-build-system) | |
11180 | (home-page "https://github.com/jquast/wcwidth") | |
66e07664 | 11181 | (synopsis "Measure number of terminal column cells of wide-character codes") |
a44fd439 DM |
11182 | (description "Wcwidth measures the number of terminal column cells of |
11183 | wide-character codes. It is useful for those implementing a terminal emulator, | |
11184 | or programs that carefully produce output to be interpreted by one. It is a | |
11185 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions | |
11186 | specified in POSIX.1-2001 and POSIX.1-2008.") | |
f210e944 | 11187 | (license license:expat))) |
a44fd439 DM |
11188 | |
11189 | (define-public python2-wcwidth | |
f210e944 | 11190 | (package-with-python2 python-wcwidth)) |
0de78c95 DP |
11191 | |
11192 | (define-public python2-jsonrpclib | |
11193 | (package | |
11194 | (name "python2-jsonrpclib") | |
11195 | (version "0.1.7") | |
11196 | (source (origin | |
11197 | (method url-fetch) | |
11198 | (uri (string-append | |
11199 | "https://pypi.python.org/packages/source/j/jsonrpclib/" | |
11200 | "jsonrpclib-" version ".tar.gz")) | |
11201 | (sha256 | |
11202 | (base32 | |
11203 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) | |
11204 | (build-system python-build-system) | |
0de78c95 DP |
11205 | (arguments |
11206 | `(#:tests? #f | |
11207 | #:python ,python-2)) | |
11208 | (home-page "https://github.com/joshmarshall/jsonrpclib/") | |
11209 | (synopsis "Implementation of JSON-RPC specification for Python") | |
11210 | (description | |
11211 | "This library is an implementation of the JSON-RPC specification. | |
11212 | It supports both the original 1.0 specification, as well as the | |
11213 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, | |
11214 | etc.") | |
3f641af0 | 11215 | (license license:asl2.0))) |
9250b0f3 SB |
11216 | |
11217 | (define-public python-chai | |
11218 | (package | |
11219 | (name "python-chai") | |
11220 | (version "1.1.1") | |
11221 | (source (origin | |
11222 | (method url-fetch) | |
11223 | (uri (pypi-uri "chai" version)) | |
11224 | (sha256 | |
11225 | (base32 | |
11226 | "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) | |
11227 | (build-system python-build-system) | |
9250b0f3 SB |
11228 | (home-page "https://github.com/agoragames/chai") |
11229 | (synopsis "Mocking framework for Python") | |
11230 | (description | |
11231 | "Chai provides an api for mocking, stubbing and spying your python | |
11232 | objects, patterned after the Mocha library for Ruby.") | |
3f641af0 | 11233 | (license license:bsd-3))) |
9250b0f3 SB |
11234 | |
11235 | (define-public python2-chai | |
11236 | (package-with-python2 python-chai)) | |
11237 | ||
ae43baa8 SB |
11238 | (define-public python-arrow |
11239 | (package | |
11240 | (name "python-arrow") | |
11241 | (version "0.8.0") | |
11242 | (source (origin | |
11243 | (method url-fetch) | |
11244 | (uri (pypi-uri "arrow" version)) | |
11245 | (sha256 | |
11246 | (base32 | |
11247 | "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j")))) | |
11248 | (build-system python-build-system) | |
11249 | (native-inputs | |
f3b98f4f | 11250 | `(;; For testing |
ae43baa8 SB |
11251 | ("python-chai" ,python-chai) |
11252 | ("python-simplejson" ,python-simplejson))) | |
36aed736 | 11253 | (propagated-inputs |
22d7360b | 11254 | `(("python-dateutil" ,python-dateutil))) |
ae43baa8 SB |
11255 | (home-page "https://github.com/crsmithdev/arrow/") |
11256 | (synopsis "Dates and times for Python") | |
11257 | (description | |
11258 | "Arrow is a Python library to creating, manipulating, formatting and | |
11259 | converting dates, times, and timestamps. It implements and updates the | |
11260 | datetime type.") | |
3f641af0 | 11261 | (license license:asl2.0))) |
ae43baa8 SB |
11262 | |
11263 | (define-public python2-arrow | |
11264 | (package-with-python2 python-arrow)) | |
11265 | ||
1f2b62a4 SB |
11266 | (define-public python-inflection |
11267 | (package | |
11268 | (name "python-inflection") | |
11269 | (version "0.3.1") | |
11270 | (source | |
11271 | (origin (method url-fetch) | |
11272 | (uri (pypi-uri "inflection" version)) | |
11273 | (sha256 | |
11274 | (base32 | |
11275 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) | |
11276 | (build-system python-build-system) | |
e9127525 MB |
11277 | (native-inputs |
11278 | `(("python-pytest" ,python-pytest))) | |
1f2b62a4 SB |
11279 | (home-page "http://github.com/jpvanhal/inflection") |
11280 | (synopsis "Python string transformation library") | |
11281 | (description | |
11282 | "Inflection is a string transformation library. It singularizes | |
11283 | and pluralizes English words, and transforms strings from CamelCase to | |
11284 | underscored string.") | |
11285 | (license license:expat))) | |
11286 | ||
11287 | (define-public python2-inflection | |
11288 | (package-with-python2 python-inflection)) | |
11289 | ||
18995566 SB |
11290 | (define-public python-pylev |
11291 | (package | |
11292 | (name "python-pylev") | |
11293 | (version "1.3.0") | |
11294 | (source (origin | |
11295 | (method url-fetch) | |
11296 | (uri (pypi-uri "pylev" version)) | |
11297 | (sha256 | |
11298 | (base32 | |
11299 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) | |
11300 | (build-system python-build-system) | |
18995566 SB |
11301 | (home-page "http://github.com/toastdriven/pylev") |
11302 | (synopsis "Levenshtein distance implementation in Python") | |
11303 | (description "Pure Python Levenshtein implementation, based off the | |
11304 | Wikipedia code samples at | |
11305 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") | |
3f641af0 | 11306 | (license license:bsd-3))) |
18995566 SB |
11307 | |
11308 | (define-public python2-pylev | |
11309 | (package-with-python2 python-pylev)) | |
11310 | ||
f5deff7a SB |
11311 | (define-public python-cleo |
11312 | (package | |
11313 | (name "python-cleo") | |
11314 | (version "0.4.1") | |
11315 | (source (origin | |
11316 | (method url-fetch) | |
11317 | (uri (pypi-uri "cleo" version)) | |
11318 | (sha256 | |
11319 | (base32 | |
11320 | "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva")))) | |
11321 | (build-system python-build-system) | |
11322 | (native-inputs | |
f3b98f4f | 11323 | `(;; For testing |
f5deff7a SB |
11324 | ("python-mock" ,python-mock) |
11325 | ("python-pytest" ,python-pytest))) | |
9403150a SB |
11326 | (propagated-inputs |
11327 | `(("python-psutil" ,python-psutil) | |
11328 | ("python-pylev" ,python-pylev))) | |
f5deff7a SB |
11329 | (home-page "https://github.com/sdispater/cleo") |
11330 | (synopsis "Command-line arguments library for Python") | |
11331 | (description | |
11332 | "Cleo allows you to create command-line commands with signature in | |
11333 | docstring and colored output.") | |
11334 | (license license:expat))) | |
11335 | ||
11336 | (define-public python2-cleo | |
11337 | (package-with-python2 python-cleo)) | |
11338 | ||
77cadb43 SB |
11339 | (define-public python-lazy-object-proxy |
11340 | (package | |
11341 | (name "python-lazy-object-proxy") | |
11342 | (version "1.2.2") | |
11343 | (source (origin | |
11344 | (method url-fetch) | |
11345 | (uri (pypi-uri "lazy-object-proxy" version)) | |
11346 | (sha256 | |
11347 | (base32 | |
11348 | "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) | |
11349 | (build-system python-build-system) | |
77cadb43 SB |
11350 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") |
11351 | (synopsis "Lazy object proxy for python") | |
11352 | (description | |
11353 | "Lazy object proxy is an object that wraps a callable but defers the call | |
11354 | until the object is actually required, and caches the result of said call.") | |
3f641af0 | 11355 | (license license:bsd-2))) |
77cadb43 SB |
11356 | |
11357 | (define-public python2-lazy-object-proxy | |
11358 | (package-with-python2 python-lazy-object-proxy)) | |
11359 | ||
5477e05f SB |
11360 | (define-public python-dnspython |
11361 | (package | |
11362 | (name "python-dnspython") | |
6c514128 | 11363 | (version "1.15.0") |
5477e05f SB |
11364 | (source (origin |
11365 | (method url-fetch) | |
11366 | (uri (string-append "http://www.dnspython.org/kits/" | |
11367 | version "/dnspython-" version ".tar.gz")) | |
11368 | (sha256 | |
11369 | (base32 | |
6c514128 | 11370 | "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i")))) |
5477e05f SB |
11371 | (build-system python-build-system) |
11372 | (arguments '(#:tests? #f)) ; XXX: requires internet access | |
5477e05f SB |
11373 | (home-page "http://www.dnspython.org") |
11374 | (synopsis "DNS toolkit for Python") | |
11375 | (description | |
11376 | "dnspython is a DNS toolkit for Python. It supports almost all record | |
11377 | types. It can be used for queries, zone transfers, and dynamic updates. | |
11378 | It supports TSIG authenticated messages and EDNS0.") | |
11379 | (license license:expat))) | |
11380 | ||
11381 | (define-public python2-dnspython | |
11382 | (package-with-python2 python-dnspython)) | |
11383 | ||
22711e25 SB |
11384 | (define-public python-email-validator |
11385 | (package | |
11386 | (name "python-email-validator") | |
b165c215 | 11387 | (version "1.0.2") |
22711e25 SB |
11388 | (source |
11389 | (origin (method url-fetch) | |
11390 | (uri (pypi-uri "email_validator" version)) | |
11391 | (sha256 | |
11392 | (base32 | |
b165c215 | 11393 | "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6")))) |
22711e25 SB |
11394 | (build-system python-build-system) |
11395 | (arguments | |
11396 | '(#:phases | |
11397 | (modify-phases %standard-phases | |
11398 | (add-before 'build 'use-dnspython | |
11399 | (lambda _ | |
11400 | (substitute* "setup.py" | |
11401 | (("dnspython3") "dnspython")) | |
11402 | #t))))) | |
d42560bd | 11403 | (propagated-inputs |
22711e25 | 11404 | `(("python-dnspython" ,python-dnspython) |
d42560bd | 11405 | ("python-idna" ,python-idna))) |
22711e25 SB |
11406 | (home-page "https://github.com/JoshData/python-email-validator") |
11407 | (synopsis "Email address validation library for Python") | |
11408 | (description | |
11409 | "This library validates email address syntax and deliverability.") | |
3f641af0 | 11410 | (license license:cc0))) |
22711e25 SB |
11411 | |
11412 | (define-public python2-email-validator | |
11413 | (package-with-python2 python-email-validator)) | |
11414 | ||
8987d91e SB |
11415 | (define-public python-ukpostcodeparser |
11416 | (package | |
11417 | (name "python-ukpostcodeparser") | |
11418 | (version "1.0.3") | |
11419 | (source (origin | |
11420 | (method url-fetch) | |
11421 | (uri (pypi-uri "UkPostcodeParser" version)) | |
11422 | (sha256 | |
11423 | (base32 | |
11424 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) | |
11425 | (build-system python-build-system) | |
8987d91e SB |
11426 | (home-page "https://github.com/hamstah/ukpostcodeparser") |
11427 | (synopsis "UK Postcode parser for Python") | |
11428 | (description | |
11429 | "This library provides the @code{parse_uk_postcode} function for | |
11430 | parsing UK postcodes.") | |
11431 | (license license:expat))) | |
11432 | ||
11433 | (define-public python2-ukpostcodeparser | |
11434 | (package-with-python2 python-ukpostcodeparser)) | |
ea92ae01 SB |
11435 | |
11436 | (define-public python-fake-factory | |
11437 | (package | |
11438 | (name "python-fake-factory") | |
7adc698f | 11439 | (version "0.7.2") |
ea92ae01 SB |
11440 | (source (origin |
11441 | (method url-fetch) | |
11442 | (uri (pypi-uri "fake-factory" version)) | |
11443 | (sha256 | |
11444 | (base32 | |
42945fb5 MB |
11445 | "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g")) |
11446 | (patches | |
11447 | (search-patches | |
11448 | "python-fake-factory-fix-build-32bit.patch")))) | |
ea92ae01 | 11449 | (build-system python-build-system) |
b7f3ea95 MB |
11450 | (arguments |
11451 | '(#:phases | |
11452 | (modify-phases %standard-phases | |
11453 | (replace 'check | |
11454 | (lambda _ | |
11455 | (zero? (system* "python" "-m" "unittest" "-v" "faker.tests"))))))) | |
ea92ae01 | 11456 | (native-inputs |
f3b98f4f | 11457 | `(;; For testing |
ea92ae01 SB |
11458 | ("python-email-validator" ,python-email-validator) |
11459 | ("python-mock" ,python-mock) | |
11460 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) | |
bbcd7297 | 11461 | (propagated-inputs |
22d7360b | 11462 | `(("python-dateutil" ,python-dateutil) |
bbcd7297 | 11463 | ("python-six" ,python-six))) |
7adc698f | 11464 | (home-page "https://github.com/joke2k/faker") |
ea92ae01 SB |
11465 | (synopsis "Python package that generates fake data") |
11466 | (description | |
11467 | "Faker is a Python package that generates fake data such as names, | |
11468 | addresses, and phone numbers.") | |
11469 | (license license:expat) | |
11470 | (properties `((python2-variant . ,(delay python2-fake-factory)))))) | |
11471 | ||
11472 | (define-public python2-fake-factory | |
11473 | (let ((base (package-with-python2 (strip-python2-variant | |
11474 | python-fake-factory)))) | |
11475 | (package | |
11476 | (inherit base) | |
24c9aa18 | 11477 | (propagated-inputs |
ea92ae01 | 11478 | `(("python2-ipaddress" ,python2-ipaddress) |
24c9aa18 | 11479 | ,@(package-propagated-inputs base)))))) |
ea92ae01 | 11480 | |
b49504fd SB |
11481 | (define-public python-pyaml |
11482 | (package | |
11483 | (name "python-pyaml") | |
11484 | (version "15.8.2") | |
11485 | (source (origin | |
11486 | (method url-fetch) | |
11487 | (uri (pypi-uri "pyaml" version)) | |
11488 | (sha256 | |
11489 | (base32 | |
11490 | "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w")))) | |
11491 | (build-system python-build-system) | |
f620311a MB |
11492 | (native-inputs |
11493 | `(("python-unidecode" ,python-unidecode))) | |
b49504fd SB |
11494 | (propagated-inputs |
11495 | `(("python-pyyaml" ,python-pyyaml))) | |
11496 | (home-page "https://github.com/mk-fg/pretty-yaml") | |
11497 | (synopsis "YAML pretty-print library for Python") | |
11498 | (description | |
11499 | "pyaml is a PyYAML based python module to produce pretty and readable | |
11500 | YAML-serialized data.") | |
3f641af0 | 11501 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))) |
b49504fd SB |
11502 | |
11503 | (define-public python2-pyaml | |
11504 | (package-with-python2 python-pyaml)) | |
11505 | ||
347175a2 SB |
11506 | (define-public python-flexmock |
11507 | (package | |
11508 | (name "python-flexmock") | |
11509 | (version "0.10.2") | |
11510 | (source (origin | |
11511 | (method url-fetch) | |
11512 | (uri (pypi-uri "flexmock" version)) | |
11513 | (sha256 | |
11514 | (base32 | |
11515 | "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy")))) | |
11516 | (build-system python-build-system) | |
347175a2 SB |
11517 | (home-page "https://flexmock.readthedocs.org") |
11518 | (synopsis "Testing library for Python") | |
11519 | (description | |
11520 | "flexmock is a testing library for Python that makes it easy to create | |
11521 | mocks, stubs and fakes.") | |
3f641af0 | 11522 | (license license:bsd-3))) |
347175a2 SB |
11523 | |
11524 | (define-public python2-flexmock | |
11525 | (package-with-python2 python-flexmock)) | |
11526 | ||
5a744191 SB |
11527 | (define-public python-orator |
11528 | (package | |
11529 | (name "python-orator") | |
11530 | (version "0.8.2") | |
11531 | (source (origin | |
11532 | (method url-fetch) | |
11533 | (uri (pypi-uri "orator" version)) | |
11534 | (sha256 | |
11535 | (base32 | |
11536 | "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) | |
11537 | (build-system python-build-system) | |
11538 | (arguments '(#:tests? #f)) ; no tests | |
b2676030 | 11539 | (propagated-inputs |
5a744191 SB |
11540 | `(("python-arrow" ,python-arrow) |
11541 | ("python-blinker" ,python-blinker) | |
11542 | ("python-cleo" ,python-cleo) | |
11543 | ("python-fake-factory" ,python-fake-factory) | |
11544 | ("python-inflection" ,python-inflection) | |
11545 | ("python-lazy-object-proxy" ,python-lazy-object-proxy) | |
11546 | ("python-pyaml" ,python-pyaml) | |
5a744191 SB |
11547 | ("python-simplejson" ,python-simplejson) |
11548 | ("python-wrapt" ,python-wrapt))) | |
11549 | (home-page "https://orator-orm.com/") | |
11550 | (synopsis "ActiveRecord ORM for Python") | |
11551 | (description | |
11552 | "Orator provides a simple ActiveRecord-like Object Relational Mapping | |
11553 | implementation for Python.") | |
11554 | (license license:expat) | |
11555 | (properties `((python2-variant . ,(delay python2-orator)))))) | |
11556 | ||
11557 | (define-public python2-orator | |
11558 | (let ((base (package-with-python2 (strip-python2-variant python-orator)))) | |
11559 | (package | |
11560 | (inherit base) | |
06961617 | 11561 | (propagated-inputs |
5a744191 | 11562 | `(("python2-ipaddress" ,python2-ipaddress) |
06961617 | 11563 | ,@(package-propagated-inputs base)))))) |
f4155188 DM |
11564 | |
11565 | (define-public python-prompt-toolkit | |
11566 | (package | |
11567 | (name "python-prompt-toolkit") | |
6a34f4cc | 11568 | (version "1.0.9") |
f4155188 DM |
11569 | (source |
11570 | (origin | |
11571 | (method url-fetch) | |
d15e2ef0 | 11572 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
f4155188 DM |
11573 | (sha256 |
11574 | (base32 | |
6a34f4cc | 11575 | "172r15k9kwdw2lnajvpz1632dd16nqz1kcal1p0lq5ywdarj6rfd")))) |
f4155188 | 11576 | (build-system python-build-system) |
bae18710 LF |
11577 | (arguments |
11578 | '(#:tests? #f)) ; The test suite uses some Windows-specific data types. | |
f22efa01 HG |
11579 | (propagated-inputs |
11580 | `(("python-wcwidth" ,python-wcwidth) | |
2c199b55 | 11581 | ("python-six" ,python-six) |
f22efa01 | 11582 | ("python-pygments" ,python-pygments))) |
f4155188 DM |
11583 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") |
11584 | (synopsis "Library for building command line interfaces in Python") | |
11585 | (description | |
11586 | "Prompt-Toolkit is a library for building interactive command line | |
11587 | interfaces in Python. It's like GNU Readline but it also features syntax | |
11588 | highlighting while typing, out-of-the-box multi-line input editing, advanced | |
11589 | code completion, incremental search, support for Chinese double-width | |
11590 | characters, mouse support, and auto suggestions.") | |
f210e944 | 11591 | (license license:bsd-3))) |
f4155188 DM |
11592 | |
11593 | (define-public python2-prompt-toolkit | |
f210e944 | 11594 | (package-with-python2 python-prompt-toolkit)) |
a502dfbf DM |
11595 | |
11596 | (define-public python-jedi | |
11597 | (package | |
11598 | (name "python-jedi") | |
11599 | (version "0.9.0") | |
11600 | (source | |
11601 | (origin | |
11602 | (method url-fetch) | |
11603 | (uri (pypi-uri "jedi" version)) | |
11604 | (sha256 | |
11605 | (base32 | |
11606 | "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) | |
11607 | (build-system python-build-system) | |
bfce8a34 MB |
11608 | (arguments |
11609 | ;; FIXME: One test fails (use "py.test" instead of 'setup.py test'). | |
11610 | '(#:tests? #f)) | |
11611 | (native-inputs | |
11612 | `(("python-pytest" ,python-pytest))) | |
a502dfbf DM |
11613 | (home-page "https://github.com/davidhalter/jedi") |
11614 | (synopsis | |
11615 | "Autocompletion for Python that can be used for text editors") | |
11616 | (description | |
11617 | "Jedi is an autocompletion tool for Python that can be used for text editors.") | |
f210e944 | 11618 | (license license:expat))) |
a502dfbf DM |
11619 | |
11620 | (define-public python2-jedi | |
f210e944 | 11621 | (package-with-python2 python-jedi)) |
c2f0dc6e DM |
11622 | |
11623 | (define-public ptpython | |
11624 | (package | |
11625 | (name "ptpython") | |
11626 | (version "0.34") | |
11627 | (source (origin | |
11628 | (method url-fetch) | |
11629 | (uri (pypi-uri "ptpython" version)) | |
11630 | (sha256 | |
11631 | (base32 | |
11632 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) | |
11633 | (build-system python-build-system) | |
32955348 MB |
11634 | (arguments |
11635 | '(#:tests? #f)) ; FIXME: No tests in pypi tarball. | |
f22efa01 | 11636 | (propagated-inputs |
c2f0dc6e DM |
11637 | `(("python-docopt" ,python-docopt) |
11638 | ("python-jedi" ,python-jedi) | |
11639 | ("python-prompt-toolkit" ,python-prompt-toolkit) | |
f3b98f4f | 11640 | ("python-pygments" ,python-pygments))) |
c2f0dc6e DM |
11641 | (home-page "https://github.com/jonathanslenders/ptpython") |
11642 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") | |
11643 | (description | |
11644 | "ptpython is a Python read-eval-print loop with IDE-like features. | |
11645 | It supports syntax highlighting, multiline editing, autocompletion, mouse, | |
11646 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters | |
11647 | etc.") | |
3f641af0 | 11648 | (license license:bsd-3) |
c2f0dc6e DM |
11649 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
11650 | ||
11651 | (define-public ptpython-2 | |
11652 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) | |
11653 | (package | |
11654 | (inherit base) | |
11655 | (name "ptpython2")))) | |
b227f0be | 11656 | |
b04a52a6 DJ |
11657 | (define-public python-requests-oauthlib |
11658 | (package | |
11659 | (name "python-requests-oauthlib") | |
11660 | (version "0.6.2") | |
11661 | (source | |
11662 | (origin | |
11663 | (method url-fetch) | |
11664 | (uri (pypi-uri "requests-oauthlib" version)) | |
11665 | (sha256 | |
11666 | (base32 | |
11667 | "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) | |
11668 | (build-system python-build-system) | |
11669 | (arguments | |
11670 | `(#:phases | |
11671 | (modify-phases %standard-phases | |
11672 | ;; removes tests that require network access | |
11673 | (add-before 'check 'pre-check | |
11674 | (lambda _ | |
11675 | (delete-file "tests/test_core.py") | |
11676 | #t))))) | |
11677 | (native-inputs | |
11678 | `(("python-requests-mock" ,python-requests-mock) | |
11679 | ("python-mock" ,python-mock))) | |
f22efa01 | 11680 | (propagated-inputs |
b04a52a6 DJ |
11681 | `(("python-oauthlib" ,python-oauthlib) |
11682 | ("python-requests" ,python-requests))) | |
11683 | (home-page | |
11684 | "https://github.com/requests/requests-oauthlib") | |
11685 | (synopsis | |
11686 | "OAuthlib authentication support for Requests") | |
11687 | (description | |
11688 | "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to | |
11689 | provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") | |
f210e944 | 11690 | (license license:isc))) |
b04a52a6 DJ |
11691 | |
11692 | (define-public python2-requests-oauthlib | |
f210e944 | 11693 | (package-with-python2 python-requests-oauthlib)) |
b04a52a6 | 11694 | |
b227f0be | 11695 | (define-public python-stem |
11696 | (package | |
11697 | (name "python-stem") | |
0bb1c35a | 11698 | (version "1.5.4") |
b227f0be | 11699 | (source |
11700 | (origin | |
11701 | (method url-fetch) | |
c976b319 | 11702 | (uri (pypi-uri "stem" version)) |
b227f0be | 11703 | (sha256 |
11704 | (base32 | |
0bb1c35a | 11705 | "1j7pnblrn0yr6jmxvsq6y0ihmxmj5x50jl2n2606w67f6wq16j9n")))) |
b227f0be | 11706 | (build-system python-build-system) |
11707 | (arguments | |
11708 | `(#:phases | |
11709 | (modify-phases %standard-phases | |
11710 | (replace 'check | |
11711 | (lambda _ | |
11712 | (zero? (system* "./run_tests.py" "--unit"))))))) | |
11713 | (native-inputs | |
11714 | `(("python-mock" ,python-mock) | |
11715 | ("python-pep8" ,python-pep8) | |
11716 | ("python-pyflakes" ,python-pyflakes))) | |
b227f0be | 11717 | (home-page "https://stem.torproject.org/") |
11718 | (synopsis | |
11719 | "Python controller library that allows applications to interact with Tor") | |
11720 | (description | |
11721 | "Stem is a Python controller library for Tor. With it you can use Tor's | |
11722 | control protocol to script against the Tor process and read descriptor data | |
11723 | relays publish about themselves.") | |
3f641af0 | 11724 | (license license:lgpl3))) |
b227f0be | 11725 | |
11726 | (define-public python2-stem | |
11727 | (package-with-python2 python-stem)) | |
517a6c0c DM |
11728 | |
11729 | (define-public python-pyserial | |
11730 | (package | |
11731 | (name "python-pyserial") | |
11732 | (version "3.1.1") | |
11733 | (source | |
11734 | (origin | |
11735 | (method url-fetch) | |
11736 | (uri (pypi-uri "pyserial" version)) | |
11737 | (sha256 | |
11738 | (base32 | |
11739 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) | |
11740 | (build-system python-build-system) | |
0a702009 MB |
11741 | (arguments |
11742 | '(#:tests? #f)) ; FIXME: 3/49 tests are failing. | |
11743 | ;; #:phases | |
11744 | ;; (modify-phases %standard-phases | |
11745 | ;; (replace 'check | |
11746 | ;; (lambda _ | |
11747 | ;; (zero? (system* "python" "test/run_all_tests.py" "loop://"))))))) | |
517a6c0c DM |
11748 | (home-page |
11749 | "https://github.com/pyserial/pyserial") | |
11750 | (synopsis "Python Serial Port Bindings") | |
11751 | (description "@code{pyserial} provide serial port bindings for Python. It | |
11752 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS | |
11753 | and/or Xon/Xoff. The port is accessed in RAW mode.") | |
f210e944 | 11754 | (license license:bsd-3))) |
517a6c0c DM |
11755 | |
11756 | (define-public python2-pyserial | |
f210e944 | 11757 | (package-with-python2 python-pyserial)) |
6eb7af2a DJ |
11758 | |
11759 | (define-public python-kivy | |
11760 | (package | |
11761 | (name "python-kivy") | |
11762 | (version "1.9.1") | |
11763 | (source | |
11764 | (origin | |
11765 | (method url-fetch) | |
11766 | (uri (pypi-uri "kivy" version)) | |
11767 | (file-name (string-append name "-" version ".tar.gz")) | |
11768 | (sha256 | |
11769 | (base32 | |
11770 | "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19")))) | |
11771 | (build-system python-build-system) | |
11772 | (arguments | |
11773 | `(#:tests? #f ; Tests require many optional packages | |
11774 | #:phases | |
11775 | (modify-phases %standard-phases | |
11776 | (replace 'build (lambda _ (zero? (system* "make" "force")))) | |
11777 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths | |
11778 | (lambda* (#:key inputs #:allow-other-keys) | |
11779 | (setenv "KIVY_SDL2_PATH" | |
11780 | (string-append (assoc-ref inputs "sdl-union") | |
11781 | "/include/SDL2")) | |
11782 | #t))))) | |
11783 | (native-inputs | |
f2516de2 HG |
11784 | `(("pkg-config" ,pkg-config) |
11785 | ("python-cython" ,python-cython))) | |
6eb7af2a | 11786 | (inputs |
f2516de2 | 11787 | `(("gstreamer" ,gstreamer) |
6eb7af2a DJ |
11788 | ("mesa" ,mesa) |
11789 | ("sdl-union" | |
11790 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) | |
11791 | (home-page "http://kivy.org") | |
11792 | (synopsis | |
11793 | "Multitouch application framework") | |
11794 | (description | |
11795 | "A software library for rapid development of | |
11796 | hardware-accelerated multitouch applications.") | |
11797 | (license license:expat))) | |
11798 | ||
11799 | (define-public python2-kivy | |
11800 | (package-with-python2 python-kivy)) | |
11801 | ||
11802 | (define-public python-kivy-next | |
11803 | (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe") | |
11804 | (revision "1")) | |
11805 | (package (inherit python-kivy) | |
11806 | (name "python-kivy-next") | |
d80a71eb | 11807 | (version (string-append "1.9.1-" revision "." |
6eb7af2a DJ |
11808 | (string-take commit 7))) |
11809 | (source | |
11810 | (origin | |
11811 | (method git-fetch) | |
11812 | (uri (git-reference | |
11813 | (url "https://github.com/kivy/kivy") | |
11814 | (commit commit))) | |
11815 | (file-name (string-append name "-" version "-checkout")) | |
11816 | (sha256 | |
11817 | (base32 | |
11818 | "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p"))))))) | |
11819 | ||
11820 | (define-public python2-kivy-next | |
11821 | (package-with-python2 python-kivy-next)) | |
8794bd8b DC |
11822 | |
11823 | (define-public python-binaryornot | |
11824 | (package | |
11825 | (name "python-binaryornot") | |
11826 | (version "0.4.0") | |
11827 | (source (origin | |
11828 | (method url-fetch) | |
11829 | (uri (pypi-uri "binaryornot" version)) | |
11830 | (sha256 | |
11831 | (base32 | |
11832 | "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) | |
11833 | (build-system python-build-system) | |
f22efa01 | 11834 | (propagated-inputs |
8794bd8b DC |
11835 | `(("python-chardet" ,python-chardet) |
11836 | ("python-hypothesis" ,python-hypothesis))) | |
11837 | (home-page "https://github.com/audreyr/binaryornot") | |
11838 | (synopsis "Package to check if a file is binary or text") | |
11839 | (description "Ultra-lightweight pure Python package to check if a file is | |
11840 | binary or text.") | |
11841 | (license license:bsd-3) | |
11842 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) | |
11843 | ||
11844 | (define-public python2-binaryornot | |
11845 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) | |
11846 | (package (inherit base) | |
f22efa01 | 11847 | (propagated-inputs |
8794bd8b | 11848 | `(("python2-enum34" ,python2-enum34) |
f22efa01 | 11849 | ,@(package-propagated-inputs base)))))) |
a9ac982a DC |
11850 | |
11851 | (define-public python-nltk | |
11852 | (package | |
11853 | (name "python-nltk") | |
11854 | (version "3.2.1") | |
11855 | (source (origin | |
11856 | (method url-fetch) | |
11857 | (uri (pypi-uri "nltk" version)) | |
11858 | (sha256 | |
11859 | (base32 | |
11860 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) | |
11861 | (build-system python-build-system) | |
59f12985 LF |
11862 | (arguments |
11863 | '(;; The tests require some extra resources to be downloaded. | |
11864 | ;; TODO Try packaging these resources. | |
11865 | #:tests? #f)) | |
a9ac982a DC |
11866 | (home-page "http://nltk.org/") |
11867 | (synopsis "Natural Language Toolkit") | |
11868 | (description "It provides interfaces to over 50 corpora and lexical | |
11869 | resources such as WordNet, along with a suite of text processing libraries | |
11870 | for classification, tokenization, stemming, tagging, parsing, and semantic | |
11871 | reasoning, wrappers for natural language processing libraries.") | |
f210e944 | 11872 | (license license:asl2.0))) |
a9ac982a DC |
11873 | |
11874 | (define-public python2-nltk | |
f210e944 | 11875 | (package-with-python2 python-nltk)) |
691cd90d DC |
11876 | |
11877 | (define-public python-pymongo | |
11878 | (package | |
11879 | (name "python-pymongo") | |
11880 | (version "3.3.0") | |
11881 | (source (origin | |
11882 | (method url-fetch) | |
11883 | (uri (pypi-uri "pymongo" version)) | |
11884 | (sha256 | |
11885 | (base32 | |
11886 | "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) | |
11887 | (build-system python-build-system) | |
f22efa01 | 11888 | (propagated-inputs |
691cd90d DC |
11889 | `(("python-certifi" ,python-certifi))) |
11890 | (home-page "http://github.com/mongodb/mongo-python-driver") | |
11891 | (synopsis "Python driver for MongoDB") | |
11892 | (description "Python driver for MongoDB.") | |
f210e944 | 11893 | (license license:asl2.0))) |
691cd90d DC |
11894 | |
11895 | (define-public python2-pymongo | |
f210e944 | 11896 | (package-with-python2 python-pymongo)) |
6a6c9d43 DC |
11897 | |
11898 | (define-public python-sh | |
11899 | (package | |
11900 | (name "python-sh") | |
11901 | (version "1.11") | |
11902 | (source (origin | |
11903 | (method url-fetch) | |
11904 | (uri (pypi-uri "sh" version)) | |
11905 | (sha256 | |
11906 | (base32 | |
11907 | "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) | |
11908 | (build-system python-build-system) | |
11909 | (arguments | |
11910 | `(#:tests? #f)) ; no tests | |
11911 | (home-page "https://github.com/amoffat/sh") | |
11912 | (synopsis "Python subprocess interface") | |
11913 | (description "Abstracts process invocation by providing a function | |
11914 | interface for programs.") | |
f210e944 | 11915 | (license license:expat))) |
6a6c9d43 DC |
11916 | |
11917 | (define-public python2-sh | |
f210e944 | 11918 | (package-with-python2 python-sh)) |
05b59190 | 11919 | |
25702397 EF |
11920 | (define-public python-consul |
11921 | (package | |
11922 | (name "python-consul") | |
11923 | (version "0.6.1") | |
11924 | (source | |
11925 | (origin | |
11926 | (method url-fetch) | |
11927 | (uri (pypi-uri "python-consul" version)) | |
11928 | (sha256 | |
11929 | (base32 | |
11930 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) | |
11931 | (build-system python-build-system) | |
11932 | (native-inputs | |
fd1d6de7 HG |
11933 | `(("python-pytest" ,python-pytest))) |
11934 | (propagated-inputs | |
11935 | `(("python-requests" ,python-requests) | |
25702397 EF |
11936 | ("python-six" ,python-six))) |
11937 | (home-page "https://github.com/cablehead/python-consul") | |
11938 | (synopsis "Python client for Consul") | |
11939 | (description | |
11940 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service | |
11941 | discovery, monitoring and configuration.") | |
11942 | (license license:expat))) | |
11943 | ||
11944 | (define-public python2-consul | |
f210e944 | 11945 | (package-with-python2 python-consul)) |
25702397 | 11946 | |
05b59190 DC |
11947 | (define-public python-schematics |
11948 | (package | |
11949 | (name "python-schematics") | |
11950 | (version "1.1.1") | |
11951 | (source | |
11952 | (origin | |
11953 | (method url-fetch) | |
11954 | (uri (string-append | |
11955 | "https://github.com/schematics/schematics/archive/v" version ".tar.gz")) | |
11956 | (file-name (string-append name "-" version ".tar.gz")) | |
11957 | (sha256 | |
11958 | (base32 | |
11959 | "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l")))) | |
11960 | (build-system python-build-system) | |
f22efa01 | 11961 | (propagated-inputs |
05b59190 DC |
11962 | `(("python-six" ,python-six))) |
11963 | (arguments | |
11964 | `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed | |
11965 | ; version requirements (eg python-coveralls) | |
11966 | (home-page "https://github.com/schematics/schematics") | |
11967 | (synopsis "Python Data Structures for Humans") | |
11968 | (description "Python Data Structures for Humans.") | |
f210e944 | 11969 | (license license:bsd-3))) |
05b59190 DC |
11970 | |
11971 | (define-public python2-schematics | |
f210e944 | 11972 | (package-with-python2 python-schematics)) |
d6907ff7 DC |
11973 | |
11974 | (define-public python-publicsuffix | |
11975 | (package | |
11976 | (name "python-publicsuffix") | |
11977 | (version "1.1.0") | |
11978 | (source (origin | |
11979 | (method url-fetch) | |
11980 | (uri (pypi-uri "publicsuffix" version)) | |
11981 | (sha256 | |
11982 | (base32 | |
11983 | "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf")))) | |
11984 | (build-system python-build-system) | |
11985 | (arguments | |
11986 | `(#:tests? #f)) ; tests use the internet | |
11987 | (home-page "https://www.tablix.org/~avian/git/publicsuffix.git") | |
11988 | (synopsis "Get suffix for a domain name") | |
11989 | (description "Get a public suffix for a domain name using the Public Suffix | |
11990 | List.") | |
f210e944 | 11991 | (license license:expat))) |
d6907ff7 DC |
11992 | |
11993 | (define-public python2-publicsuffix | |
f210e944 | 11994 | (package-with-python2 python-publicsuffix)) |
b2319996 DC |
11995 | |
11996 | (define-public python-publicsuffix2 | |
11997 | (package | |
11998 | (name "python-publicsuffix2") | |
11999 | (version "2.20160621") | |
12000 | (source | |
12001 | (origin | |
12002 | (method url-fetch) | |
12003 | (uri (pypi-uri "publicsuffix2" version ".tar.bz2")) | |
12004 | (sha256 | |
12005 | (base32 | |
12006 | "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) | |
12007 | (build-system python-build-system) | |
10797a0a LF |
12008 | (arguments |
12009 | '(#:tests? #f)) ; The test suite requires network access. | |
b2319996 DC |
12010 | (home-page "https://github.com/pombredanne/python-publicsuffix2") |
12011 | (synopsis "Get a public suffix for a domain name using the Public Suffix List") | |
12012 | (description "Get a public suffix for a domain name using the Public Suffix | |
12013 | List. Forked from and using the same API as the publicsuffix package.") | |
f210e944 | 12014 | (license (list license:expat license:mpl2.0)))) |
b2319996 DC |
12015 | |
12016 | (define-public python2-publicsuffix2 | |
f210e944 | 12017 | (package-with-python2 python-publicsuffix2)) |
81f1515d DC |
12018 | |
12019 | (define-public python-url | |
12020 | (package | |
12021 | (name "python-url") | |
12022 | (version "0.2.0") | |
12023 | (source (origin | |
12024 | (method url-fetch) | |
12025 | (uri (pypi-uri "url" version)) | |
12026 | (sha256 | |
12027 | (base32 | |
12028 | "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) | |
12029 | (build-system python-build-system) | |
f22efa01 | 12030 | (propagated-inputs |
81f1515d DC |
12031 | `(("python-publicsuffix" ,python-publicsuffix))) |
12032 | (native-inputs | |
12033 | `(("python-coverage" ,python-coverage) | |
12034 | ("python-nose" ,python-nose))) | |
12035 | (arguments | |
12036 | `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" | |
12037 | (home-page "http://github.com/seomoz/url-py") | |
12038 | (synopsis "URL Parsing") | |
12039 | (description "Library for parsing urls.") | |
12040 | (license license:expat) | |
12041 | (properties `((python2-variant . ,(delay python2-url)))))) | |
12042 | ||
12043 | (define-public python2-url | |
12044 | (let ((base (package-with-python2 (strip-python2-variant python-url)))) | |
12045 | (package (inherit base) | |
f22efa01 | 12046 | (propagated-inputs |
f210e944 | 12047 | `(("python2-publicsuffix" ,python2-publicsuffix)))))) |
974ee2c1 TS |
12048 | |
12049 | (define-public python-freezegun | |
12050 | (package | |
12051 | (name "python-freezegun") | |
0c315fb3 | 12052 | (version "0.3.8") |
974ee2c1 TS |
12053 | (source |
12054 | (origin | |
12055 | (method url-fetch) | |
12056 | (uri (pypi-uri "freezegun" version)) | |
12057 | (sha256 | |
12058 | (base32 | |
0c315fb3 | 12059 | "1sf38d3ibv1jhhvr52x7dhrsiyqk1hm165dfv8w8wh0fhmgxg151")))) |
974ee2c1 TS |
12060 | (build-system python-build-system) |
12061 | (native-inputs | |
12062 | `(("python-mock" ,python-mock) | |
12063 | ("python-nose" ,python-nose) | |
4e096968 | 12064 | ("python-coverage" ,python-coverage))) |
f22efa01 | 12065 | (propagated-inputs |
4e096968 | 12066 | `(("python-six" ,python-six) |
22d7360b | 12067 | ("python-dateutil" ,python-dateutil))) |
974ee2c1 TS |
12068 | (arguments |
12069 | `(#:phases (modify-phases %standard-phases | |
12070 | ;; The tests are normally executed via `make test`, but the PyPi | |
12071 | ;; package does not include the Makefile. | |
12072 | (replace 'check | |
12073 | (lambda _ | |
12074 | (zero? (system* "nosetests" "./tests/"))))))) | |
12075 | (home-page "https://github.com/spulec/freezegun") | |
12076 | (synopsis "Test utility for mocking the datetime module") | |
12077 | (description | |
12078 | "FreezeGun is a library that allows your python tests to travel through | |
12079 | time by mocking the datetime module.") | |
12080 | (license license:asl2.0))) | |
12081 | ||
12082 | (define-public python2-freezegun | |
f210e944 HG |
12083 | (package-with-python2 python-freezegun)) |
12084 | ||
dddcb25c MB |
12085 | |
12086 | (define-public python-odfpy | |
12087 | (package | |
12088 | (name "python-odfpy") | |
12089 | (version "1.3.3") | |
12090 | (source (origin | |
12091 | (method url-fetch) | |
12092 | (uri (pypi-uri "odfpy" version)) | |
12093 | (sha256 | |
12094 | (base32 | |
12095 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) | |
12096 | (arguments | |
12097 | `(#:modules ((srfi srfi-1) | |
12098 | (guix build python-build-system) | |
12099 | (guix build utils)) | |
12100 | #:phases | |
12101 | (modify-phases %standard-phases | |
12102 | (replace 'check | |
12103 | ;; The test runner invokes python2 and python3 for test*.py. | |
12104 | ;; To avoid having both in inputs, we replicate it here. | |
12105 | (lambda _ | |
12106 | (every (lambda (test-file) | |
12107 | (zero? (system* "python" test-file))) | |
12108 | (find-files "tests" "^test.*\\.py$"))))))) | |
12109 | (build-system python-build-system) | |
12110 | (home-page "https://github.com/eea/odfpy") | |
12111 | (synopsis "Python API and tools to manipulate OpenDocument files") | |
12112 | (description "Collection of libraries and utility programs written in | |
12113 | Python to manipulate OpenDocument 1.2 files.") | |
12114 | (license | |
12115 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a | |
12116 | ;; number of files with other licenses. | |
12117 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) | |
12118 | ||
12119 | (define-public python2-odfpy | |
12120 | (package-with-python2 python-odfpy)) | |
b30565bd MB |
12121 | |
12122 | (define-public python-cachecontrol | |
12123 | (package | |
12124 | (name "python-cachecontrol") | |
12125 | (version "0.11.6") | |
12126 | (source | |
12127 | (origin | |
12128 | (method url-fetch) | |
12129 | ;; Pypi does not have tests. | |
12130 | (uri (string-append | |
12131 | "https://github.com/ionrock/cachecontrol/archive/v" | |
12132 | version ".tar.gz")) | |
12133 | (file-name (string-append name "-" version ".tar.gz")) | |
12134 | (sha256 | |
12135 | (base32 | |
12136 | "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) | |
12137 | (build-system python-build-system) | |
12138 | (arguments | |
12139 | `(#:phases | |
12140 | (modify-phases %standard-phases | |
12141 | (replace 'check | |
12142 | (lambda _ | |
12143 | ;; Drop test that requires internet access. | |
12144 | (delete-file "tests/test_regressions.py") | |
12145 | (setenv "PYTHONPATH" | |
12146 | (string-append (getcwd) "/build/lib:" | |
12147 | (getenv "PYTHONPATH"))) | |
12148 | (zero? (system* "py.test" "-vv"))))))) | |
12149 | (native-inputs | |
12150 | `(("python-pytest" ,python-pytest) | |
12151 | ("python-redis" ,python-redis) | |
12152 | ("python-webtest" ,python-webtest) | |
12153 | ("python-mock" ,python-mock))) | |
12154 | (propagated-inputs | |
12155 | `(("python-requests" ,python-requests) | |
12156 | ("python-lockfile" ,python-lockfile))) | |
12157 | (home-page "https://github.com/ionrock/cachecontrol") | |
12158 | (synopsis "The httplib2 caching algorithms for use with requests") | |
12159 | (description "CacheControl is a port of the caching algorithms in | |
12160 | @code{httplib2} for use with @code{requests} session objects.") | |
f210e944 | 12161 | (license license:asl2.0))) |
b30565bd MB |
12162 | |
12163 | (define-public python2-cachecontrol | |
f210e944 | 12164 | (package-with-python2 python-cachecontrol)) |
243db824 DM |
12165 | |
12166 | (define-public python-lit | |
12167 | (package | |
12168 | (name "python-lit") | |
12169 | (version "0.5.0") | |
12170 | (source | |
12171 | (origin | |
12172 | (method url-fetch) | |
12173 | (uri (pypi-uri "lit" version)) | |
12174 | (sha256 | |
12175 | (base32 | |
12176 | "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y")))) | |
12177 | (build-system python-build-system) | |
12178 | (home-page "http://llvm.org/") | |
12179 | (synopsis "LLVM Software Testing Tool") | |
12180 | (description "@code{lit} is a portable tool for executing LLVM and Clang | |
12181 | style test suites, summarizing their results, and providing indication of | |
12182 | failures.") | |
f210e944 | 12183 | (license license:ncsa))) |
243db824 DM |
12184 | |
12185 | (define-public python2-lit | |
f210e944 | 12186 | (package-with-python2 python-lit)) |
66f95b20 MB |
12187 | |
12188 | (define-public python-pytest-pep8 | |
12189 | (package | |
12190 | (name "python-pytest-pep8") | |
12191 | (version "1.0.6") | |
12192 | (source (origin | |
12193 | (method url-fetch) | |
12194 | (uri (pypi-uri "pytest-pep8" version)) | |
12195 | (sha256 | |
12196 | (base32 | |
12197 | "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) | |
12198 | (build-system python-build-system) | |
12199 | (arguments | |
b41a05ce | 12200 | `(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues #8 and #12. |
66f95b20 MB |
12201 | (native-inputs |
12202 | `(("python-pytest" ,python-pytest))) | |
12203 | (propagated-inputs | |
12204 | `(("python-pep8" ,python-pep8))) | |
12205 | (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") | |
12206 | (synopsis "Py.test plugin to check PEP8 requirements") | |
12207 | (description "Pytest plugin for checking PEP8 compliance.") | |
f210e944 | 12208 | (license license:expat))) |
66f95b20 MB |
12209 | |
12210 | (define-public python2-pytest-pep8 | |
f210e944 | 12211 | (package-with-python2 python-pytest-pep8)) |
df94a6b5 MB |
12212 | |
12213 | (define-public python-pytest-flakes | |
12214 | (package | |
12215 | (name "python-pytest-flakes") | |
12216 | (version "1.0.1") | |
12217 | (source (origin | |
12218 | (method url-fetch) | |
12219 | (uri (pypi-uri "pytest-flakes" version)) | |
12220 | (sha256 | |
12221 | (base32 | |
12222 | "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) | |
12223 | (build-system python-build-system) | |
12224 | (arguments | |
b41a05ce | 12225 | `(#:phases |
df94a6b5 MB |
12226 | (modify-phases %standard-phases |
12227 | (delete 'check) | |
12228 | (add-after 'install 'check | |
05c2fd36 HG |
12229 | (lambda* (#:key outputs inputs #:allow-other-keys) |
12230 | ;; It's easier to run tests after install. | |
12231 | ;; Make installed package available for running the tests | |
12232 | (add-installed-pythonpath inputs outputs) | |
df94a6b5 MB |
12233 | (zero? (system* "py.test" "-vv"))))))) |
12234 | (native-inputs | |
12235 | `(("python-coverage" ,python-coverage) | |
12236 | ("python-pytest" ,python-pytest) | |
12237 | ("python-pytest-cache" ,python-pytest-cache) | |
12238 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
12239 | (propagated-inputs | |
12240 | `(("python-pyflakes" ,python-pyflakes))) | |
12241 | (home-page "https://github.com/fschulze/pytest-flakes") | |
12242 | (synopsis "Py.test plugin to check source code with pyflakes") | |
12243 | (description "Pytest plugin for checking Python source code with pyflakes.") | |
f210e944 | 12244 | (license license:expat))) |
df94a6b5 MB |
12245 | |
12246 | (define-public python2-pytest-flakes | |
f210e944 | 12247 | (package-with-python2 python-pytest-flakes)) |
5467ea62 MB |
12248 | |
12249 | (define-public python-natsort | |
12250 | (package | |
12251 | (name "python-natsort") | |
12252 | (version "5.0.1") | |
12253 | (source (origin | |
12254 | (method url-fetch) | |
12255 | (uri (pypi-uri "natsort" version)) | |
12256 | (sha256 | |
12257 | (base32 | |
12258 | "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja")))) | |
12259 | (build-system python-build-system) | |
12260 | (arguments | |
12261 | `(#:phases | |
12262 | (modify-phases %standard-phases | |
12263 | (add-before 'check 'set-cachedir | |
12264 | ;; Tests require write access to $HOME by default | |
12265 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) | |
12266 | (native-inputs | |
12267 | `(("python-hypothesis" ,python-hypothesis) | |
12268 | ("python-pytest-cache" ,python-pytest-cache) | |
12269 | ("python-pytest-cov" ,python-pytest-cov) | |
12270 | ("python-pytest-flakes" ,python-pytest-flakes) | |
12271 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
12272 | (propagated-inputs ; TODO: Add python-fastnumbers. | |
12273 | `(("python-pyicu" ,python-pyicu))) | |
12274 | (home-page "https://github.com/SethMMorton/natsort") | |
12275 | (synopsis "Natural sorting for python and shell") | |
12276 | (description | |
12277 | "Natsort lets you apply natural sorting on lists instead of | |
12278 | lexicographical. If you use the built-in @code{sorted} method in python | |
12279 | on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be | |
12280 | returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a | |
12281 | function @code{natsorted} that identifies numbers and sorts them separately | |
12282 | from strings. It can also sort version numbers, real numbers, mixed types | |
12283 | and more, and comes with a shell command @command{natsort} that exposes this | |
12284 | functionality in the command line.") | |
12285 | (license license:expat) | |
12286 | (properties `((python2-variant . ,(delay python2-natsort)))))) | |
12287 | ||
12288 | (define-public python2-natsort | |
12289 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) | |
12290 | (package (inherit base) | |
12291 | (native-inputs | |
00e10c6e | 12292 | `(("python2-pathlib" ,python2-pathlib) |
5467ea62 MB |
12293 | ("python2-mock" ,python2-mock) |
12294 | ("python2-enum34" ,python2-enum34) | |
12295 | ,@(package-native-inputs base)))))) | |
4efb9c54 SR |
12296 | |
12297 | (define-public python-glances | |
12298 | (package | |
12299 | (name "python-glances") | |
12300 | (version "2.7.1") | |
12301 | (source | |
12302 | (origin | |
12303 | (method url-fetch) | |
12304 | (uri (pypi-uri "Glances" version)) | |
12305 | (sha256 | |
12306 | (base32 | |
12307 | "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) | |
12308 | (build-system python-build-system) | |
f22efa01 | 12309 | (propagated-inputs |
4efb9c54 SR |
12310 | `(("python-psutil" ,python-psutil))) |
12311 | (home-page | |
12312 | "https://github.com/nicolargo/glances") | |
12313 | (synopsis | |
12314 | "A cross-platform curses-based monitoring tool") | |
12315 | (description | |
12316 | "Glances is a curses-based monitoring tool for a wide variety of platforms. | |
12317 | Glances uses the PsUtil library to get information from your system. It monitors | |
12318 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") | |
f210e944 | 12319 | (license license:lgpl3+))) |
4efb9c54 SR |
12320 | |
12321 | (define-public python2-glances | |
f210e944 | 12322 | (package-with-python2 python-glances)) |
05b7a593 EF |
12323 | |
12324 | (define-public python-graphql-core | |
12325 | (package | |
12326 | (name "python-graphql-core") | |
12327 | (version "0.5.3") | |
12328 | (source | |
12329 | (origin | |
12330 | (method url-fetch) | |
12331 | (uri (pypi-uri "graphql-core" version)) | |
12332 | (sha256 | |
12333 | (base32 | |
12334 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) | |
12335 | (build-system python-build-system) | |
12336 | (arguments | |
326f8285 LF |
12337 | `(#:tests? #f ; Tests require the unpackaged pytest-benchmark. |
12338 | #:phases | |
05b7a593 EF |
12339 | (modify-phases %standard-phases |
12340 | (add-after 'unpack 'patch-hardcoded-version | |
12341 | (lambda _ (substitute* | |
12342 | "setup.py" | |
12343 | (("'gevent==1.1rc1'") "'gevent'")) | |
12344 | #t))))) | |
12345 | (native-inputs | |
12346 | `(("python-gevent" ,python-gevent) | |
12347 | ("python-mock" ,python-mock) | |
12348 | ("python-pytest-mock" ,python-pytest-mock))) | |
f22efa01 | 12349 | (propagated-inputs |
05b7a593 EF |
12350 | `(("python-promise" ,python-promise) |
12351 | ("python-six" ,python-six))) | |
12352 | (home-page "https://github.com/graphql-python/graphql-core") | |
12353 | (synopsis "GraphQL implementation for Python") | |
12354 | (description | |
12355 | "GraphQL implementation for Python. GraphQL is a data query language and | |
12356 | runtime designed and used to request and deliver data to mobile and web apps. | |
12357 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} | |
12358 | to Python.") | |
05b7a593 EF |
12359 | (license license:expat))) |
12360 | ||
12361 | (define-public python2-graphql-core | |
f210e944 | 12362 | (package-with-python2 python-graphql-core)) |
7ee51575 EF |
12363 | |
12364 | (define-public python-graphql-relay | |
12365 | (package | |
12366 | (name "python-graphql-relay") | |
b13a5b4d | 12367 | (version "0.4.5") |
7ee51575 EF |
12368 | (source |
12369 | (origin | |
12370 | (method url-fetch) | |
12371 | (uri (pypi-uri "graphql-relay" version)) | |
12372 | (sha256 | |
12373 | (base32 | |
b13a5b4d | 12374 | "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7")))) |
7ee51575 EF |
12375 | (build-system python-build-system) |
12376 | (native-inputs | |
12377 | `(("python-pytest" ,python-pytest))) | |
f22efa01 | 12378 | (propagated-inputs |
7ee51575 EF |
12379 | `(("python-graphql-core" ,python-graphql-core) |
12380 | ("python-promise" ,python-promise) | |
12381 | ("python-six" ,python-six))) | |
12382 | (home-page "https://github.com/graphql-python/graphql-relay-py") | |
12383 | (synopsis "Relay implementation for Python") | |
12384 | (description | |
12385 | "This is a library to allow the easy creation of Relay-compliant servers | |
12386 | using the GraphQL Python reference implementation of a GraphQL server. It | |
12387 | should be noted that the code is a exact port of the original | |
12388 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} | |
12389 | from Facebook.") | |
7ee51575 EF |
12390 | (license license:expat))) |
12391 | ||
12392 | (define-public python2-graphql-relay | |
f210e944 | 12393 | (package-with-python2 python-graphql-relay)) |
ddc63a56 EF |
12394 | |
12395 | (define-public python-graphene | |
12396 | (package | |
12397 | (name "python-graphene") | |
12398 | (version "0.10.2") | |
12399 | (source | |
12400 | (origin | |
12401 | (method url-fetch) | |
12402 | (uri (pypi-uri "graphene" version)) | |
12403 | (sha256 | |
12404 | (base32 | |
12405 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) | |
12406 | (build-system python-build-system) | |
12407 | (native-inputs | |
12408 | `(("python-django-filter" ,python-django-filter) | |
12409 | ("python-mock" ,python-mock) | |
12410 | ("python-psycopg2" ,python-psycopg2) | |
12411 | ("python-pytest-django" ,python-pytest-django) | |
12412 | ("python-sqlalchemy-utils" ,python-sqlalchemy-utils))) | |
f22efa01 | 12413 | (propagated-inputs |
ddc63a56 EF |
12414 | `(("python-graphql-core" ,python-graphql-core) |
12415 | ("python-graphql-relay" ,python-graphql-relay) | |
12416 | ("python-iso8601" ,python-iso8601) | |
12417 | ("python-promise" ,python-promise) | |
12418 | ("python-six" ,python-six))) | |
12419 | (home-page "http://graphene-python.org/") | |
12420 | (synopsis "GraphQL Framework for Python") | |
12421 | (description | |
12422 | "Graphene is a Python library for building GraphQL schemas/types. | |
12423 | A GraphQL schema describes your data model, and provides a GraphQL server | |
12424 | with an associated set of resolve methods that know how to fetch data.") | |
12425 | (properties `((python2-variant . ,(delay python2-graphene)))) | |
12426 | (license license:expat))) | |
12427 | ||
12428 | (define-public python2-graphene | |
12429 | (let ((base (package-with-python2 | |
12430 | (strip-python2-variant python-graphene)))) | |
12431 | (package (inherit base) | |
12432 | (native-inputs | |
00e10c6e | 12433 | `(("python2-sqlalchemy" ,python2-sqlalchemy) |
ddc63a56 | 12434 | ,@(package-native-inputs base)))))) |
d488d5d6 EF |
12435 | |
12436 | (define-public python-nautilus | |
12437 | (package | |
12438 | (name "python-nautilus") | |
12439 | (version "0.4.9") | |
12440 | (source | |
12441 | (origin | |
12442 | (method url-fetch) | |
12443 | (uri (pypi-uri "nautilus" version)) | |
12444 | (sha256 | |
12445 | (base32 | |
12446 | "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) | |
12447 | (build-system python-build-system) | |
12448 | (arguments `(#:tests? #f)) ; fails to import test modules | |
f22efa01 | 12449 | (propagated-inputs |
d488d5d6 EF |
12450 | `(("python-bcrypt" ,python-bcrypt) |
12451 | ("python-click" ,python-click) | |
12452 | ("python-consul" ,python-consul) | |
d488d5d6 EF |
12453 | ("python-graphene" ,python-graphene) |
12454 | ("python-jinja2" ,python-jinja2) | |
d488d5d6 EF |
12455 | ("python-peewee" ,python-peewee) |
12456 | ("python-pika" ,python-pika) | |
d488d5d6 EF |
12457 | ("python-tornado" ,python-tornado) |
12458 | ("python-wtforms" ,python-wtforms))) | |
38ceb106 HG |
12459 | (native-inputs |
12460 | `(("python-nose2" ,python-nose2))) | |
d488d5d6 EF |
12461 | (home-page "https://github.com/AlecAivazis/nautilus") |
12462 | (synopsis "Library for creating microservice applications") | |
12463 | (description | |
12464 | "Nautilus is a framework for flux based microservices that looks to | |
12465 | provide extendible implementations of common aspects of a cloud so that you can | |
12466 | focus on building massively scalable web applications.") | |
12467 | (license license:expat))) | |
94cffc63 | 12468 | |
89cd988b DM |
12469 | (define-public python-snowballstemmer |
12470 | (package | |
12471 | (name "python-snowballstemmer") | |
12472 | (version "1.2.1") | |
12473 | (source (origin | |
1bd858cc MB |
12474 | (method url-fetch) |
12475 | (uri (pypi-uri "snowballstemmer" version)) | |
12476 | (sha256 | |
12477 | (base32 | |
12478 | "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) | |
89cd988b DM |
12479 | (build-system python-build-system) |
12480 | (arguments | |
12481 | `(;; No tests exist | |
12482 | #:tests? #f)) | |
12483 | (home-page "https://github.com/shibukawa/snowball_py") | |
12484 | (synopsis "Snowball stemming library collection for Python") | |
12485 | (description "This package provides 16 word stemmer algorithms generated | |
12486 | from Snowball algorithms. It includes the 15 original ones plus the Poerter | |
12487 | English stemmer.") | |
12488 | (license license:bsd-3))) | |
12489 | ||
12490 | (define-public python2-snowballstemmer | |
12491 | (package-with-python2 python-snowballstemmer)) | |
12492 | ||
754bfd70 DM |
12493 | (define-public python-sphinx-cloud-sptheme |
12494 | (package | |
12495 | (name "python-sphinx-cloud-sptheme") | |
12496 | (version "1.7.1") | |
12497 | (source (origin | |
1bd858cc MB |
12498 | (method url-fetch) |
12499 | (uri (pypi-uri "cloud_sptheme" version)) | |
12500 | (sha256 | |
12501 | (base32 | |
12502 | "0zm9ap4p5dzln8f1m2immadaxv2xpg8jg4w53y52rhfl7pdb58vy")))) | |
12503 | (build-system python-build-system) | |
a31e2f1a MB |
12504 | ;; FIXME: The 'pypi' release archive does not contain tests. |
12505 | (arguments '(#:tests? #f)) | |
1bd858cc MB |
12506 | (native-inputs |
12507 | `(("python-sphinx" ,python-sphinx))) | |
12508 | (home-page "https://bitbucket.org/ecollins/cloud_sptheme") | |
12509 | (synopsis "'Cloud' theme for Sphinx documenter") | |
12510 | (description "This package contains the \"Cloud\" theme for Sphinx and some | |
754bfd70 | 12511 | related extensions.") |
1bd858cc | 12512 | (license license:bsd-3))) |
754bfd70 DM |
12513 | |
12514 | (define-public python2-sphinx-cloud-sptheme | |
12515 | (package-with-python2 python-sphinx-cloud-sptheme)) | |
12516 | ||
807a5b32 DM |
12517 | (define-public python-sphinx-alabaster-theme |
12518 | (package | |
12519 | (name "python-sphinx-alabaster-theme") | |
12520 | (version "0.7.9") | |
1bd858cc MB |
12521 | (source (origin |
12522 | (method url-fetch) | |
12523 | (uri (pypi-uri "alabaster" version)) | |
12524 | (sha256 | |
12525 | (base32 | |
12526 | "027anxzcb951gjlcc43y3rbn9qrw36d16vj9wd2smv5410xx9bs7")))) | |
807a5b32 DM |
12527 | (build-system python-build-system) |
12528 | (propagated-inputs | |
12529 | `(("python-pygments" ,python-pygments))) | |
12530 | (home-page "https://alabaster.readthedocs.io/") | |
12531 | (synopsis "Configurable sidebar-enabled Sphinx theme") | |
12532 | (description "Alabaster is a visually (c)lean, responsive, configurable | |
12533 | theme for the Sphinx documentation system. It's the default theme of Sphinx.") | |
12534 | (license license:bsd-3))) | |
12535 | ||
12536 | (define-public python2-sphinx-alabaster-theme | |
12537 | (package-with-python2 python-sphinx-alabaster-theme)) | |
12538 | ||
66d3f50a LF |
12539 | (define-public python-betamax |
12540 | (package | |
12541 | (name "python-betamax") | |
12542 | (version "0.8.0") | |
12543 | (source | |
12544 | (origin | |
12545 | (method url-fetch) | |
12546 | (uri (pypi-uri "betamax" version)) | |
12547 | (sha256 | |
12548 | (base32 | |
12549 | "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42")))) | |
12550 | (build-system python-build-system) | |
12551 | (arguments | |
12552 | '(;; Many tests fail because they require networking. | |
12553 | #:tests? #f)) | |
c415f763 | 12554 | (propagated-inputs |
66d3f50a LF |
12555 | `(("python-requests" ,python-requests))) |
12556 | (home-page "https://github.com/sigmavirus24/betamax") | |
12557 | (synopsis "Record HTTP interactions with python-requests") | |
12558 | (description "Betamax will record your test suite's HTTP interactions and | |
12559 | replay them during future tests. It is designed to work with python-requests.") | |
f210e944 | 12560 | (license license:expat))) |
66d3f50a LF |
12561 | |
12562 | (define-public python2-betamax | |
f210e944 | 12563 | (package-with-python2 python-betamax)) |
ca0635b4 | 12564 | |
94cffc63 LF |
12565 | (define-public python-s3transfer |
12566 | (package | |
12567 | (name "python-s3transfer") | |
1b5ea092 | 12568 | (version "0.1.10") |
94cffc63 LF |
12569 | (source (origin |
12570 | (method url-fetch) | |
12571 | (uri (pypi-uri "s3transfer" version)) | |
12572 | (sha256 | |
12573 | (base32 | |
1b5ea092 | 12574 | "1h8g9bknvxflxkpbnxyfxmk8pvgykbbk9ljdvhqh6z4vjc2926ms")))) |
94cffc63 | 12575 | (build-system python-build-system) |
fad8bf97 LF |
12576 | (arguments |
12577 | `(#:phases | |
12578 | (modify-phases %standard-phases | |
12579 | (replace 'check | |
12580 | (lambda _ | |
12581 | ;; 7 of the 'integration' tests require network access or login | |
12582 | ;; credentials. | |
12583 | (zero? (system* "nosetests" "--exclude=integration"))))))) | |
94cffc63 | 12584 | (native-inputs |
fad8bf97 LF |
12585 | `(("python-docutils" ,python-docutils) |
12586 | ("python-mock" ,python-mock) | |
12587 | ("python-nose" ,python-nose))) | |
f22efa01 | 12588 | (propagated-inputs |
94cffc63 LF |
12589 | `(("python-botocore" ,python-botocore))) |
12590 | (synopsis "Amazon S3 Transfer Manager") | |
12591 | (description "S3transfer is a Python library for managing Amazon S3 | |
12592 | transfers.") | |
12593 | (home-page "https://github.com/boto/s3transfer") | |
12594 | (license license:asl2.0) | |
12595 | (properties `((python2-variant . ,(delay python2-s3transfer)))))) | |
12596 | ||
12597 | (define-public python2-s3transfer | |
12598 | (let ((base (package-with-python2 (strip-python2-variant python-s3transfer)))) | |
12599 | (package | |
12600 | (inherit base) | |
12601 | (native-inputs | |
12602 | `(("python2-futures" ,python2-futures) | |
94cffc63 | 12603 | ,@(package-native-inputs base)))))) |
8ab59181 HG |
12604 | |
12605 | (define-public python-setproctitle | |
12606 | (package | |
12607 | (name "python-setproctitle") | |
12608 | (version "1.1.10") | |
12609 | (source | |
12610 | (origin | |
12611 | (method url-fetch) | |
12612 | (uri (pypi-uri "setproctitle" version)) | |
12613 | (sha256 | |
12614 | (base32 | |
12615 | "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) | |
12616 | (build-system python-build-system) | |
12617 | (arguments | |
12618 | '(#:phases | |
12619 | (modify-phases %standard-phases | |
12620 | (add-before 'check 'patch-Makefile | |
12621 | ;; Stricly this is only required for the python2 variant. | |
12622 | ;; But adding a phase in an inherited package seems to be | |
12623 | ;; cumbersum. So we patch even for python3. | |
12624 | (lambda _ | |
12625 | (let ((nose (assoc-ref %build-inputs "python2-nose"))) | |
12626 | (when nose | |
12627 | (substitute* "Makefile" | |
12628 | (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") | |
12629 | (string-append nose "/bin/nosetests ")))) | |
12630 | #t))) | |
12631 | (replace 'check | |
12632 | (lambda _ | |
12633 | (setenv "PYTHON" (or (which "python3") (which "python"))) | |
12634 | (setenv "PYCONFIG" (or (which "python3-config") | |
12635 | (which "python-config"))) | |
12636 | (setenv "CC" "gcc") | |
12637 | ;; No need to extend PYTHONPATH to find the built package, since | |
12638 | ;; the Makefile will build anyway | |
12639 | (zero? (system* "make" "check"))))))) | |
12640 | (native-inputs | |
12641 | `(("procps" ,procps))) ; required for tests | |
12642 | (home-page | |
12643 | "https://github.com/dvarrazzo/py-setproctitle") | |
12644 | (synopsis | |
12645 | "Setproctitle implementation for Python to customize the process title") | |
12646 | (description "The library allows a process to change its title (as displayed | |
12647 | by system tools such as ps and top). | |
12648 | ||
12649 | Changing the title is mostly useful in multi-process systems, for | |
12650 | example when a master process is forked: changing the children's title | |
12651 | allows to identify the task each process is busy with. The technique | |
12652 | is used by PostgreSQL and the OpenSSH Server for example.") | |
12653 | (license license:bsd-3) | |
12654 | (properties `((python2-variant . ,(delay python2-setproctitle)))))) | |
12655 | ||
12656 | (define-public python2-setproctitle | |
12657 | (let ((base (package-with-python2 | |
12658 | (strip-python2-variant python-setproctitle)))) | |
12659 | (package | |
12660 | (inherit base) | |
12661 | (native-inputs `(("python2-nose" ,python2-nose) | |
12662 | ,@(package-native-inputs base)))))) | |
162e42d8 HG |
12663 | |
12664 | (define-public python-validictory | |
12665 | (package | |
12666 | (name "python-validictory") | |
12667 | (version "1.0.1") | |
12668 | (source | |
12669 | (origin | |
12670 | (method url-fetch) | |
12671 | (uri (pypi-uri "validictory" version)) | |
12672 | (sha256 | |
12673 | (base32 | |
12674 | "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q")))) | |
12675 | (build-system python-build-system) | |
12676 | (arguments | |
12677 | '(#:phases | |
12678 | (modify-phases %standard-phases | |
12679 | (add-after 'unpack 'bootstrap | |
12680 | ;; Move the tests out of the package directory to avoid | |
12681 | ;; packaging them. | |
12682 | (lambda* _ | |
12683 | (rename-file "validictory/tests" "tests") | |
12684 | (delete-file "tests/__init__.py"))) | |
12685 | (replace 'check | |
12686 | (lambda _ | |
12687 | ;; Extend PYTHONPATH so the built package will be found. | |
12688 | (setenv "PYTHONPATH" | |
12689 | (string-append (getcwd) "/build/lib:" | |
12690 | (getenv "PYTHONPATH"))) | |
12691 | (zero? (system* "py.test" "-vv" ))))))) | |
12692 | (native-inputs | |
12693 | `(("python-pytest" ,python-pytest))) | |
12694 | (home-page | |
12695 | "https://github.com/jamesturk/validictory") | |
12696 | (synopsis "General purpose Python data validator") | |
12697 | (description "It allows validation of arbitrary Python data structures. | |
12698 | ||
12699 | The schema format is based on the JSON Schema | |
12700 | proposal (http://json-schema.org), so combined with json the library is also | |
12701 | useful as a validator for JSON data.") | |
f210e944 | 12702 | (license license:expat))) |
162e42d8 HG |
12703 | |
12704 | (define-public python2-validictory | |
f210e944 | 12705 | (package-with-python2 python-validictory)) |
0990edfe DM |
12706 | |
12707 | (define-public python-aniso8601 | |
12708 | (package | |
12709 | (name "python-aniso8601") | |
12710 | (version "1.1.0") | |
12711 | (source | |
12712 | (origin | |
12713 | (method url-fetch) | |
12714 | (uri (pypi-uri "aniso8601" version)) | |
12715 | (sha256 | |
12716 | (base32 | |
12717 | "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g")))) | |
12718 | (build-system python-build-system) | |
12719 | (propagated-inputs | |
22d7360b | 12720 | `(("python-dateutil" ,python-dateutil))) |
0990edfe DM |
12721 | (home-page |
12722 | "https://bitbucket.org/nielsenb/aniso8601") | |
12723 | (synopsis | |
12724 | "Python library for parsing ISO 8601 strings") | |
12725 | (description | |
12726 | "This package contains a library for parsing ISO 8601 datetime strings.") | |
12727 | (license license:bsd-3))) | |
999d964d DM |
12728 | |
12729 | (define-public python-flask-restful | |
12730 | (package | |
12731 | (name "python-flask-restful") | |
12732 | (version "0.3.5") | |
12733 | (source | |
12734 | (origin | |
12735 | (method url-fetch) | |
12736 | (uri (pypi-uri "Flask-RESTful" version)) | |
12737 | (sha256 | |
12738 | (base32 | |
12739 | "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c")))) | |
12740 | (build-system python-build-system) | |
12741 | (propagated-inputs | |
12742 | `(("python-aniso8601" ,python-aniso8601) | |
12743 | ("python-flask" ,python-flask) | |
12744 | ("python-pycrypto" ,python-pycrypto) | |
12745 | ("python-pytz" ,python-pytz))) | |
12746 | (native-inputs | |
12747 | `(;; Optional dependency of Flask. Tests need it. | |
12748 | ("python-blinker" ,python-blinker) | |
12749 | ("python-mock" ,python-mock) ; For tests | |
12750 | ("python-nose" ,python-nose) ; For tests | |
12751 | ("python-sphinx" ,python-sphinx))) | |
12752 | (home-page | |
12753 | "https://www.github.com/flask-restful/flask-restful/") | |
12754 | (synopsis | |
12755 | "Flask module for creating REST APIs") | |
12756 | (description | |
12757 | "This package contains a Flask module for creating REST APIs.") | |
12758 | (license license:bsd-3))) | |
31288222 DM |
12759 | |
12760 | (define-public python-flask-basicauth | |
12761 | (package | |
12762 | (name "python-flask-basicauth") | |
12763 | (version "0.2.0") | |
12764 | (source | |
12765 | (origin | |
12766 | (method url-fetch) | |
12767 | (uri (pypi-uri "Flask-BasicAuth" version)) | |
12768 | (sha256 | |
12769 | (base32 | |
12770 | "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) | |
12771 | (build-system python-build-system) | |
12772 | (propagated-inputs | |
12773 | `(("python-flask" ,python-flask))) | |
12774 | (home-page | |
12775 | "https://github.com/jpvanhal/flask-basicauth") | |
12776 | (synopsis | |
12777 | "HTTP basic access authentication for Flask") | |
12778 | (description | |
12779 | "This package provides HTTP basic access authentication for Flask.") | |
12780 | (license license:bsd-3))) | |
903276d0 DM |
12781 | |
12782 | (define-public python-flask-sqlalchemy | |
12783 | (package | |
12784 | (name "python-flask-sqlalchemy") | |
12785 | (version "2.1") | |
12786 | (source | |
12787 | (origin | |
12788 | (method url-fetch) | |
12789 | (uri (pypi-uri "Flask-SQLAlchemy" version)) | |
12790 | (sha256 | |
12791 | (base32 | |
12792 | "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965")))) | |
12793 | (build-system python-build-system) | |
12794 | (propagated-inputs | |
12795 | `(("python-flask" ,python-flask) | |
12796 | ("python-sqlalchemy" ,python-sqlalchemy))) | |
12797 | (home-page | |
12798 | "http://github.com/mitsuhiko/flask-sqlalchemy") | |
12799 | (synopsis | |
12800 | "Module adding SQLAlchemy support to your Flask application") | |
12801 | (description | |
12802 | "This package adds SQLAlchemy support to your Flask application.") | |
12803 | (license license:bsd-3))) | |
329b4b3b LF |
12804 | |
12805 | (define-public python-pyev | |
12806 | (package | |
12807 | (name "python-pyev") | |
12808 | (version "0.9.0") | |
12809 | (source | |
12810 | (origin | |
12811 | (method url-fetch) | |
12812 | (uri (pypi-uri "pyev" version)) | |
12813 | (sha256 | |
12814 | (base32 | |
12815 | "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx")))) | |
12816 | (build-system python-build-system) | |
12817 | (arguments | |
12818 | `(#:tests? #f ; no test suite | |
12819 | #:phases | |
12820 | (modify-phases %standard-phases | |
12821 | (add-after 'unpack 'patch | |
12822 | (lambda* (#:key inputs #:allow-other-keys) | |
12823 | (let ((libev (string-append (assoc-ref inputs "libev") | |
12824 | "/lib/libev.so.4"))) | |
12825 | (substitute* "setup.py" | |
12826 | (("libev_dll_name = find_library\\(\\\"ev\\\"\\)") | |
12827 | (string-append "libev_dll_name = \"" libev "\""))))))))) | |
12828 | (inputs | |
12829 | `(("libev" ,libev))) | |
12830 | (home-page "http://pythonhosted.org/pyev/") | |
12831 | (synopsis "Python libev interface") | |
12832 | (description "Pyev provides a Python interface to libev.") | |
12833 | (license license:gpl3))) | |
12834 | ||
12835 | (define-public python2-pyev | |
12836 | (package-with-python2 python-pyev)) | |
45b4f127 DM |
12837 | |
12838 | (define-public python-imagesize | |
12839 | (package | |
12840 | (name "python-imagesize") | |
12841 | (version "0.7.1") | |
12842 | (source | |
12843 | (origin | |
12844 | (method url-fetch) | |
12845 | (uri (pypi-uri "imagesize" version)) | |
12846 | (sha256 | |
12847 | (base32 | |
12848 | "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) | |
12849 | (build-system python-build-system) | |
9422c98a LF |
12850 | (arguments |
12851 | '(;; Test files are not distributed on PyPi: | |
12852 | ;; https://github.com/shibukawa/imagesize_py/issues/7 | |
12853 | #:tests? #f)) | |
45b4f127 DM |
12854 | (home-page "https://github.com/shibukawa/imagesize_py") |
12855 | (synopsis "Gets image size of files in variaous formats in Python") | |
12856 | (description | |
12857 | "This package allows determination of image size from | |
12858 | PNG, JPEG, JPEG2000 and GIF files in pure Python.") | |
f210e944 | 12859 | (license license:expat))) |
45b4f127 DM |
12860 | |
12861 | (define-public python2-imagesize | |
f210e944 | 12862 | (package-with-python2 python-imagesize)) |
2f6dd9cd AI |
12863 | |
12864 | (define-public python-axolotl-curve25519 | |
12865 | (package | |
12866 | (name "python-axolotl-curve25519") | |
12867 | (version "0.1") | |
12868 | (source | |
12869 | (origin | |
12870 | (method git-fetch) | |
12871 | (uri (git-reference | |
12872 | (url "git://github.com/tgalal/python-axolotl-curve25519") | |
12873 | (commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2"))) | |
12874 | (file-name (string-append name "-" version "-checkout")) | |
12875 | (sha256 | |
12876 | (base32 | |
12877 | "0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra")))) | |
12878 | (build-system python-build-system) | |
12879 | (arguments | |
12880 | `(;; Prevent creation of the egg. This works around | |
12881 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 | |
12882 | #:configure-flags '("--root=/"))) | |
2f6dd9cd AI |
12883 | (home-page "https://github.com/tgalal/python-axolotl-curve25519") |
12884 | (synopsis "Python wrapper for curve25519 library") | |
12885 | (description "This is a python wrapper for the curve25519 library | |
12886 | with ed25519 signatures. The C code was pulled from | |
12887 | libaxolotl-android. At the moment this wrapper is meant for use by | |
12888 | python-axolotl.") | |
12889 | (license (list license:gpl3 ; Most files | |
683cdbf5 | 12890 | license:bsd-3)))) ; curve/curve25519-donna.c |
2f6dd9cd AI |
12891 | |
12892 | (define-public python2-axolotl-curve25519 | |
12893 | (package-with-python2 python-axolotl-curve25519)) | |
06ff0837 AI |
12894 | |
12895 | (define-public python-axolotl | |
12896 | (package | |
12897 | (name "python-axolotl") | |
12898 | (version "0.1.35") | |
12899 | (source | |
12900 | (origin | |
12901 | (method url-fetch) | |
12902 | (uri (string-append | |
12903 | "https://github.com/tgalal/python-axolotl/archive/" | |
12904 | version ".tar.gz")) | |
12905 | (file-name (string-append name "-" version ".tar.gz")) | |
12906 | (sha256 | |
12907 | (base32 "1z8d89p7v40p4bwywjm9h4z28fdvra79ddw06azlkrfjbl7dxmz8")))) | |
12908 | (build-system python-build-system) | |
12909 | (arguments | |
12910 | `(#:phases | |
12911 | (modify-phases %standard-phases | |
12912 | ;; Don't install tests | |
12913 | (add-before 'install 'remove-tests | |
12914 | (lambda _ | |
12915 | (for-each delete-file-recursively | |
12916 | '("axolotl/tests" "build/lib/axolotl/tests")) | |
01fb9f66 | 12917 | #t))))) |
06ff0837 AI |
12918 | (propagated-inputs |
12919 | `(("python-axolotl-curve25519" ,python-axolotl-curve25519) | |
12920 | ("python-dateutil" ,python-dateutil) | |
12921 | ("python-protobuf" ,python-protobuf) | |
12922 | ("python-pycrypto" ,python-pycrypto))) | |
12923 | (home-page "https://github.com/tgalal/python-axolotl") | |
12924 | (synopsis "Python port of libaxolotl-android") | |
12925 | (description "This is a python port of libaxolotl-android. This | |
12926 | is a ratcheting forward secrecy protocol that works in synchronous and | |
12927 | asynchronous messaging environments.") | |
12928 | (license license:gpl3))) | |
12929 | ||
12930 | (define-public python2-axolotl | |
12931 | (package-with-python2 python-axolotl)) | |
e2fca490 DM |
12932 | |
12933 | (define-public python-termstyle | |
12934 | (package | |
12935 | (name "python-termstyle") | |
12936 | (version "0.1.11") | |
12937 | (source | |
12938 | (origin | |
12939 | (method url-fetch) | |
12940 | (uri (pypi-uri "termstyle" version)) | |
12941 | (sha256 | |
12942 | (base32 | |
12943 | "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g")))) | |
12944 | (build-system python-build-system) | |
7917a135 MB |
12945 | (arguments |
12946 | '(#:phases | |
12947 | (modify-phases %standard-phases | |
12948 | (replace 'check | |
12949 | (lambda _ | |
12950 | (zero? (system* "python" "test3.py"))))))) | |
e2fca490 DM |
12951 | (home-page "http://github.com/gfxmonk/termstyle") |
12952 | (synopsis "Console text coloring for Python") | |
12953 | (description "This package provides console text coloring for Python.") | |
12954 | (license license:bsd-3))) | |
1e6112d8 DM |
12955 | |
12956 | (define-public python-rednose | |
12957 | (package | |
12958 | (name "python-rednose") | |
12959 | (version "1.2.1") | |
12960 | (source | |
12961 | (origin | |
12962 | (method url-fetch) | |
12963 | (uri (pypi-uri "rednose" version)) | |
12964 | (sha256 | |
12965 | (base32 | |
12966 | "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0")))) | |
12967 | (build-system python-build-system) | |
12968 | (arguments | |
12969 | `(#:phases | |
12970 | (modify-phases %standard-phases | |
12971 | (add-after 'unpack 'fix-deps | |
12972 | (lambda _ | |
12973 | ;; See <https://github.com/JBKahn/rednose/issues/12> | |
12974 | (substitute* "setup.py" | |
12975 | (("python-termstyle") "termstyle")) | |
12976 | #t))))) | |
12977 | (propagated-inputs | |
12978 | `(("python-colorama" ,python-colorama) | |
12979 | ("python-termstyle" ,python-termstyle))) | |
12980 | (native-inputs | |
12981 | `(("python-six" ,python-six) | |
12982 | ("python-nose" ,python-nose))) | |
12983 | (home-page "https://github.com/JBKahn/rednose") | |
12984 | (synopsis "Colored output for Python nosetests") | |
12985 | (description "This package provides colored output for the | |
12986 | @command{nosetests} command of the Python Nose unit test framework.") | |
12987 | (license license:bsd-3))) | |
0a7f17f0 DM |
12988 | |
12989 | (define-public python-flask-restplus | |
12990 | (package | |
12991 | (name "python-flask-restplus") | |
12992 | (version "0.9.2") | |
12993 | (source | |
12994 | (origin | |
12995 | (method url-fetch) | |
12996 | (uri (pypi-uri "flask-restplus" version)) | |
12997 | (sha256 | |
12998 | (base32 | |
12999 | "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4")))) | |
13000 | (build-system python-build-system) | |
59f74825 MB |
13001 | (arguments |
13002 | '(#:tests? #f)) ; FIXME: 35/882 tests failing. | |
13003 | ;; #:phases | |
13004 | ;; (modify-phases %standard-phases | |
13005 | ;; (replace 'check | |
13006 | ;; (lambda _ | |
13007 | ;; (zero? (system* "nosetests"))))))) | |
0a7f17f0 DM |
13008 | (propagated-inputs |
13009 | `(("python-aniso8601" ,python-aniso8601) | |
13010 | ("python-flask" ,python-flask) | |
13011 | ("python-jsonschema" ,python-jsonschema) | |
13012 | ("python-pytz" ,python-pytz) | |
13013 | ("python-six" ,python-six))) | |
13014 | (native-inputs | |
13015 | `(("python-tzlocal" ,python-tzlocal) | |
13016 | ("python-blinker" ,python-blinker) | |
13017 | ("python-nose" ,python-nose) | |
13018 | ("python-rednose" ,python-rednose))) | |
13019 | (home-page "https://github.com/noirbizarre/flask-restplus") | |
13020 | (synopsis "Framework for documented API development with Flask") | |
13021 | (description "This package provides a framework for API development with | |
13022 | the Flask web framework in Python. It is similar to package | |
13023 | @code{python-flask-restful} but supports the @code{python-swagger} | |
13024 | documentation builder.") | |
13025 | (license license:expat))) | |
1ed21519 DM |
13026 | |
13027 | (define-public python-sadisplay | |
13028 | (package | |
13029 | (name "python-sadisplay") | |
13030 | (version "0.4.6") | |
13031 | (source | |
13032 | (origin | |
13033 | (method url-fetch) | |
13034 | (uri (pypi-uri "sadisplay" version)) | |
13035 | (sha256 | |
13036 | (base32 | |
13037 | "0zqad2fl7q26p090qmqgmxbm6iwgf9zij1w8da1g3wdgjj72ql05")))) | |
13038 | (build-system python-build-system) | |
13039 | (propagated-inputs | |
13040 | `(("python-sqlalchemy" ,python-sqlalchemy))) | |
13041 | (native-inputs | |
13042 | `(("python-nose" ,python-nose))) | |
13043 | (home-page "https://bitbucket.org/estin/sadisplay") | |
13044 | (synopsis "SQLAlchemy schema displayer") | |
13045 | (description "This package provides a program to build Entity | |
13046 | Relationship diagrams from a SQLAlchemy model (or directly from the | |
13047 | database).") | |
13048 | (license license:bsd-3))) | |
13049 | ||
13050 | (define-public python2-sadisplay | |
13051 | (package-with-python2 python-sadisplay)) | |
444a79b6 DM |
13052 | |
13053 | (define-public python-flask-restful-swagger | |
13054 | (package | |
13055 | (name "python-flask-restful-swagger") | |
13056 | (version "0.19") | |
13057 | (source | |
13058 | (origin | |
13059 | (method url-fetch) | |
13060 | (uri (pypi-uri "flask-restful-swagger" version)) | |
13061 | (sha256 | |
13062 | (base32 | |
13063 | "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v")))) | |
13064 | (build-system python-build-system) | |
13065 | (propagated-inputs | |
13066 | `(("python-flask-restful" ,python-flask-restful))) | |
13067 | (home-page "https://github.com/rantav/flask-restful-swagger") | |
13068 | (synopsis "Extract Swagger specs from Flask-Restful projects") | |
13069 | (description "This package lets you extract Swagger API documentation | |
13070 | specs from your Flask-Restful projects.") | |
13071 | (license license:expat))) | |
13072 | ||
13073 | (define-public python2-flask-restful-swagger | |
13074 | (package-with-python2 python-flask-restful-swagger)) | |
6c2e82bc TGR |
13075 | |
13076 | (define-public python-argcomplete | |
13077 | (package | |
13078 | (name "python-argcomplete") | |
13079 | (version "1.7.0") | |
13080 | (source | |
13081 | (origin | |
13082 | (method url-fetch) | |
13083 | (uri (pypi-uri "argcomplete" version)) | |
13084 | (sha256 | |
13085 | (base32 | |
13086 | "11bwiw6j0nilgz81xnw6f1npyga3prp8asjqrm87cdr3ria5l03x")))) | |
13087 | (build-system python-build-system) | |
80ce42bd MB |
13088 | (native-inputs |
13089 | `(("python-pexpect" ,python-pexpect) | |
13090 | ("tcsh" ,tcsh))) | |
6c2e82bc TGR |
13091 | (home-page "https://github.com/kislyuk/argcomplete") |
13092 | (synopsis "Shell tab completion for Python argparse") | |
13093 | (description "argcomplete provides extensible command line tab completion | |
13094 | of arguments and options for Python scripts using @code{argparse}. It's | |
13095 | particularly useful for programs with many options or sub-parsers that can | |
13096 | dynamically suggest completions; for example, when browsing resources over the | |
13097 | network.") | |
13098 | (license license:asl2.0))) | |
13099 | ||
13100 | (define-public python2-argcomplete | |
13101 | (package-with-python2 python-argcomplete)) | |
361a2fcf TGR |
13102 | |
13103 | (define-public python-xopen | |
13104 | (package | |
13105 | (name "python-xopen") | |
13106 | (version "0.1.1") | |
13107 | (source | |
13108 | (origin | |
13109 | (method url-fetch) | |
13110 | (uri (pypi-uri "xopen" version)) | |
13111 | (sha256 | |
13112 | (base32 | |
13113 | "1wx6mylzcsyhjl19ycb83qq6iqpmr927lz62njfsar6ldsj0qcni")) | |
13114 | (file-name (string-append name "-" version ".tar.gz")))) | |
13115 | (build-system python-build-system) | |
13116 | (home-page "https://github.com/marcelm/xopen/") | |
13117 | (synopsis "Open compressed files transparently") | |
13118 | (description "This module provides an @code{xopen} function that works like | |
13119 | Python's built-in @code{open} function, but can also deal with compressed files. | |
13120 | Supported compression formats are gzip, bzip2 and, xz, and are automatically | |
13121 | recognized by their file extensions. The focus is on being as efficient as | |
13122 | possible on all supported Python versions.") | |
13123 | (license license:expat))) | |
13124 | ||
13125 | (define-public python2-xopen | |
13126 | (package-with-python2 python-xopen)) | |
8d67610b DM |
13127 | |
13128 | (define-public python2-cheetah | |
13129 | (package | |
13130 | (name "python2-cheetah") | |
13131 | (version "2.4.4") | |
13132 | (source | |
13133 | (origin | |
13134 | (method url-fetch) | |
13135 | (uri (pypi-uri "Cheetah" version)) | |
13136 | (sha256 | |
13137 | (base32 | |
13138 | "0l5mm4lnysjkzpjr95q5ydm9xc8bv43fxmr79ypybrf1y0lq4c5y")))) | |
13139 | (build-system python-build-system) | |
13140 | (arguments | |
13141 | `(#:python ,python-2)) | |
13142 | (propagated-inputs | |
13143 | `(("python2-markdown" ,python2-markdown))) | |
13144 | (home-page "https://pythonhosted.org/Cheetah/") | |
13145 | (synopsis "Template engine") | |
13146 | (description "Cheetah is a text-based template engine and Python code | |
13147 | generator. | |
13148 | ||
13149 | Cheetah can be used as a standalone templating utility or referenced as | |
13150 | a library from other Python applications. It has many potential uses, | |
13151 | but web developers looking for a viable alternative to ASP, JSP, PHP and | |
13152 | PSP are expected to be its principle user group. | |
13153 | ||
13154 | Features: | |
13155 | @enumerate | |
13156 | @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other | |
13157 | text-based format. | |
13158 | @item Cleanly separates content, graphic design, and program code. | |
13159 | @item Blends the power and flexibility of Python with a simple template language | |
13160 | that non-programmers can understand. | |
13161 | @item Gives template writers full access to any Python data structure, module, | |
13162 | function, object, or method in their templates. | |
13163 | @item Makes code reuse easy by providing an object-orientated interface to | |
13164 | templates that is accessible from Python code or other Cheetah templates. | |
13165 | One template can subclass another and selectively reimplement sections of it. | |
13166 | @item Provides a simple, yet powerful, caching mechanism that can dramatically | |
13167 | improve the performance of a dynamic website. | |
13168 | @item Compiles templates into optimized, yet readable, Python code. | |
13169 | @end enumerate") | |
13170 | (license (license:x11-style "file://LICENSE")))) | |
916aafa4 | 13171 | |
d83d8722 DM |
13172 | (define-public python-dulwich |
13173 | (package | |
13174 | (name "python-dulwich") | |
13175 | (version "0.16.3") | |
13176 | (source | |
13177 | (origin | |
13178 | (method url-fetch) | |
13179 | (uri (list (string-append "https://www.dulwich.io/releases/" | |
13180 | "dulwich-" version ".tar.gz") | |
13181 | (pypi-uri "dulwich" version))) | |
13182 | (sha256 | |
13183 | (base32 "0fl47vzfgc3w3rmhn8naii905cjqcp0vc68iyvymxp7567hh6als")))) | |
13184 | (build-system python-build-system) | |
13185 | (arguments | |
13186 | `(#:phases | |
13187 | (modify-phases %standard-phases | |
13188 | (add-before 'check 'fix-tests | |
13189 | (lambda* (#:key inputs #:allow-other-keys) | |
13190 | ;; The tests use Popen with a custom environment which doesn't | |
13191 | ;; include PATH. | |
13192 | (substitute* "dulwich/tests/compat/utils.py" | |
13193 | (("'git'") (string-append "'" | |
13194 | (which "git") | |
13195 | "'"))) | |
13196 | (substitute* '("dulwich/tests/test_repository.py" | |
13197 | "dulwich/tests/test_hooks.py") | |
13198 | (("#!/bin/sh") (string-append "#!" (which "sh")))) | |
13199 | (setenv "TEST_RUNNER" "unittest") | |
13200 | (setenv "PYTHONHASHSEED" "random") | |
13201 | #t))))) | |
13202 | (propagated-inputs | |
13203 | `(("python-fastimport" ,python-fastimport))) | |
13204 | (native-inputs | |
13205 | `(("python-mock" ,python-mock) | |
13206 | ("python-geventhttpclient" ,python-geventhttpclient) | |
13207 | ("git" ,git))) | |
13208 | (home-page "https://www.dulwich.io/") | |
13209 | (synopsis "Git implementation in Python") | |
13210 | (description "Dulwich is an implementation of the Git file formats and | |
13211 | protocols written in pure Python.") | |
13212 | ;; Can be used with either license. | |
13213 | (license (list license:asl2.0 license:gpl2+)))) | |
13214 | ||
13215 | (define-public python2-dulwich | |
13216 | (package-with-python2 python-dulwich)) | |
424b1ae7 | 13217 | |
916aafa4 CZ |
13218 | (define-public python-pbkdf2 |
13219 | (package | |
13220 | (name "python-pbkdf2") | |
13221 | (version "1.3") | |
13222 | (source | |
13223 | (origin | |
13224 | (method url-fetch) | |
13225 | (uri (pypi-uri "pbkdf2" version)) | |
13226 | (sha256 | |
13227 | (base32 | |
13228 | "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc")))) | |
13229 | (build-system python-build-system) | |
fffcd8b8 MB |
13230 | (arguments |
13231 | '(#:phases | |
13232 | (modify-phases %standard-phases | |
13233 | (replace 'check | |
13234 | (lambda _ | |
13235 | (setenv "PYTHONPATH" | |
13236 | (string-append (getcwd) "/build/lib:" | |
13237 | (getenv "PYTHONPATH"))) | |
13238 | (zero? (system* "python" "test/test_pbkdf2.py"))))))) | |
916aafa4 CZ |
13239 | (propagated-inputs |
13240 | `(("python-pycrypto" ,python-pycrypto))) ; optional | |
13241 | (home-page "http://www.dlitz.net/software/python-pbkdf2/") | |
13242 | (synopsis "Password-based key derivation") | |
13243 | (description "This module implements the password-based key derivation | |
13244 | function, PBKDF2, specified in RSA PKCS#5 v2.0. | |
13245 | ||
13246 | PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which | |
13247 | is part of the RSA Public Key Cryptography Standards series. The provided | |
13248 | implementation takes a password or a passphrase and a salt value (and | |
13249 | optionally a iteration count, a digest module, and a MAC module) and provides | |
13250 | a file-like object from which an arbitrarly-sized key can be read.") | |
13251 | (license license:expat))) | |
13252 | ||
13253 | (define-public python2-pbkdf2 | |
13254 | (package-with-python2 python-pbkdf2)) | |
cba84a38 CZ |
13255 | |
13256 | (define-public python-qrcode | |
13257 | (package | |
13258 | (name "python-qrcode") | |
13259 | (version "5.3") | |
13260 | (source | |
13261 | (origin | |
13262 | (method url-fetch) | |
13263 | (uri (pypi-uri "qrcode" version)) | |
13264 | (sha256 | |
13265 | (base32 | |
13266 | "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1")))) | |
13267 | (build-system python-build-system) | |
6925cd78 MB |
13268 | (arguments |
13269 | ;; FIXME: Tests require packaging 'pymaging'. | |
13270 | '(#:tests? #f)) | |
cba84a38 CZ |
13271 | (propagated-inputs |
13272 | `(("python-lxml" ,python-lxml) ; for SVG output | |
13273 | ("python-pillow" ,python-pillow) ; for PNG output | |
13274 | ("python-six" ,python-six))) | |
13275 | (home-page "https://github.com/lincolnloop/python-qrcode") | |
13276 | (synopsis "QR Code image generator") | |
13277 | (description "This package provides a pure Python QR Code generator | |
13278 | module. It uses the Python Imaging Library (PIL) to allow for the generation | |
13279 | of QR Codes. | |
13280 | ||
13281 | In addition this package provides a command line tool to generate QR codes and | |
13282 | either write these QR codes to a file or do the output as ascii art at the | |
13283 | console.") | |
13284 | (license license:bsd-3))) | |
13285 | ||
13286 | (define-public python2-qrcode | |
13287 | (package-with-python2 python-qrcode)) | |
af7caada CZ |
13288 | |
13289 | ;; SlowAES isn't compatible with Python 3. | |
13290 | (define-public python2-slowaes | |
13291 | (package | |
13292 | (name "python2-slowaes") | |
13293 | (version "0.1a1") | |
13294 | (source | |
13295 | (origin | |
13296 | (method url-fetch) | |
13297 | (uri (pypi-uri "slowaes" version)) | |
13298 | (sha256 | |
13299 | (base32 | |
13300 | "02dzajm83a7lqgxf6r3hgj64wfmcxz8gs4nvgxpvj5n19kjqlrc3")))) | |
13301 | (build-system python-build-system) | |
13302 | (arguments `(#:python ,python-2)) | |
13303 | (home-page "http://code.google.com/p/slowaes/") | |
13304 | (synopsis "Implementation of AES in Python") | |
13305 | (description "This package contains an implementation of AES in Python. | |
13306 | This implementation is slow (hence the project name) but still useful when | |
13307 | faster ones are not available.") | |
13308 | (license license:asl2.0))) | |
1a917fc9 MFM |
13309 | |
13310 | (define-public python-rst2ansi | |
13311 | (package | |
13312 | (name "python-rst2ansi") | |
13313 | (version "0.1.5") | |
13314 | (source | |
13315 | (origin | |
13316 | (method url-fetch) | |
13317 | (uri (pypi-uri "rst2ansi" version)) | |
13318 | (sha256 | |
13319 | (base32 | |
13320 | "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv")))) | |
13321 | (build-system python-build-system) | |
13322 | (propagated-inputs | |
13323 | `(("python-docutils" ,python-docutils))) | |
13324 | (home-page "https://github.com/Snaipe/python-rst-to-ansi") | |
13325 | (synopsis "Convert RST to ANSI-decorated console output") | |
13326 | (description | |
13327 | "Python module dedicated to rendering RST (reStructuredText) documents | |
13328 | to ansi-escaped strings suitable for display in a terminal.") | |
13329 | (license license:expat))) | |
2f4623db MFM |
13330 | |
13331 | (define-public python-ddt | |
13332 | (package | |
13333 | (name "python-ddt") | |
13334 | (version "1.1.1") | |
13335 | (source | |
13336 | (origin | |
13337 | (method url-fetch) | |
13338 | (uri (pypi-uri "ddt" version)) | |
13339 | (sha256 | |
13340 | (base32 | |
13341 | "1c00ikkxr7lha97c81k938bzhgd4pbwamkjn0h4nkhr3xk00zp6n")))) | |
13342 | (build-system python-build-system) | |
13343 | (native-inputs | |
13344 | `(("python-mock" ,python-mock) | |
13345 | ("python-nose" ,python-nose))) | |
13346 | (propagated-inputs | |
13347 | `(("python-six" ,python-six) | |
13348 | ("python-pyyaml" ,python-pyyaml))) | |
13349 | (home-page "https://github.com/txels/ddt") | |
13350 | (synopsis "Data-Driven Tests") | |
13351 | (description | |
13352 | "DDT (Data-Driven Tests) allows you to multiply one test case by running | |
13353 | it with different test data, and make it appear as multiple test cases.") | |
13354 | (license license:expat))) | |
13355 | ||
13356 | (define-public python2-ddt | |
13357 | (package-with-python2 python-ddt)) | |
2299b137 MFM |
13358 | |
13359 | (define-public python-pycosat | |
13360 | (package | |
13361 | (name "python-pycosat") | |
13362 | (version "0.6.1") | |
13363 | (source | |
13364 | (origin | |
13365 | (method url-fetch) | |
13366 | (uri (pypi-uri "pycosat" version)) | |
13367 | (sha256 | |
13368 | (base32 | |
13369 | "1kl3wh1f47rc712n4bmwplbx3fqz3x9i1b587jrbpmvdva4c8f6l")))) | |
13370 | ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/ | |
13371 | (build-system python-build-system) | |
13372 | (home-page "https://github.com/ContinuumIO/pycosat") | |
13373 | (synopsis "Bindings to picosat (a SAT solver)") | |
13374 | (description | |
13375 | "This package provides efficient Python bindings to @code{picosat} on | |
13376 | the C level. When importing pycosat, the @code{picosat} solver becomes part | |
13377 | of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability | |
13378 | Problem} (SAT) solver.") | |
13379 | (license license:expat))) | |
13380 | ||
13381 | (define-public python2-pycosat | |
13382 | (package-with-python2 python-pycosat)) | |
8fd68504 MFM |
13383 | |
13384 | (define-public python2-ruamel.ordereddict | |
13385 | (package | |
13386 | (name "python2-ruamel.ordereddict") | |
13387 | (version "0.4.9") | |
13388 | (source | |
13389 | (origin | |
13390 | (method url-fetch) | |
13391 | (uri (pypi-uri "ruamel.ordereddict" version)) | |
13392 | (sha256 | |
13393 | (base32 | |
13394 | "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h")))) | |
13395 | (build-system python-build-system) | |
13396 | (arguments | |
13397 | `(#:python ,python-2 | |
13398 | #:phases | |
13399 | (modify-phases %standard-phases | |
13400 | (delete 'check) | |
13401 | (add-after 'install 'check | |
13402 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
13403 | (add-installed-pythonpath inputs outputs) | |
13404 | (zero? (system* "python" "test/testordereddict.py"))))))) | |
13405 | (home-page "https://bitbucket.org/ruamel/ordereddict") | |
13406 | (synopsis "Version of dict that keeps keys in insertion order") | |
13407 | (description | |
13408 | "This is an implementation of an ordered dictionary with @dfn{Key | |
13409 | Insertion Order} (KIO: updates of values do not affect the position of the | |
13410 | key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is | |
13411 | removed and put at the back). The standard library module @code{OrderedDict}, | |
13412 | implemented later, implements a subset of @code{ordereddict} functionality. | |
13413 | Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted | |
13414 | Order} (KSO, no sorting function can be specified, but a transform can be | |
13415 | specified to apply on the key before comparison (e.g. @code{string.lower})).") | |
13416 | (license license:expat))) | |
d8768e31 EB |
13417 | |
13418 | (define-public python-pypeg2 | |
13419 | (package | |
13420 | (name "python-pypeg2") | |
13421 | (version "2.15.2") | |
13422 | (source | |
13423 | (origin | |
13424 | (method url-fetch) | |
13425 | (uri (pypi-uri "pyPEG2" version)) | |
13426 | (sha256 | |
13427 | (base32 | |
13428 | "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b")))) | |
13429 | (build-system python-build-system) | |
13430 | (propagated-inputs `(("python-lxml" ,python-lxml))) | |
13431 | (arguments | |
13432 | ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35 | |
13433 | '(#:tests? #f)) | |
13434 | (home-page "https://fdik.org/pyPEG/") | |
13435 | (synopsis "Parsering Expression Grammars in Python") | |
13436 | (description "PyPEG is an intrinsic parser interpreter framework for | |
13437 | Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can | |
13438 | parse many formal languages.") | |
13439 | (license license:gpl2))) |