Commit | Line | Data |
---|---|---|
a01b6da7 NK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | |
48b311b1 | 3 | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
8e451885 | 4 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> |
e99f4211 | 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
a480bc41 | 6 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
da6ce3f1 | 7 | ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch> |
e99f4211 | 8 | ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com> |
d95a56c6 | 9 | ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu> |
534db463 | 10 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
0bdc1671 | 11 | ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
345f0611 | 12 | ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> |
2b2f2fc1 | 13 | ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org> |
6a44697d | 14 | ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name> |
02a8a187 | 15 | ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com> |
b9893908 | 16 | ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com> |
264ae686 | 17 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
1872f1bb | 18 | ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com> |
daeeea71 | 19 | ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com> |
b31fbea5 | 20 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> |
88bb4197 | 21 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
b8fdbca3 | 22 | ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com> |
0de78c95 | 23 | ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org> |
9250b0f3 | 24 | ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com> |
47d0b292 | 25 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
42c4b246 | 26 | ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is> |
6eb7af2a | 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
3f641af0 | 28 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
dddcb25c | 29 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> |
4efb9c54 | 30 | ;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at> |
a01b6da7 NK |
31 | ;;; |
32 | ;;; This file is part of GNU Guix. | |
33 | ;;; | |
34 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
35 | ;;; under the terms of the GNU General Public License as published by | |
36 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
37 | ;;; your option) any later version. | |
38 | ;;; | |
39 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
40 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
41 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
42 | ;;; GNU General Public License for more details. | |
43 | ;;; | |
44 | ;;; You should have received a copy of the GNU General Public License | |
45 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
46 | ||
1ffa7090 | 47 | (define-module (gnu packages python) |
3f641af0 | 48 | #:use-module ((guix licenses) #:prefix license:) |
3fdc99da | 49 | #:use-module (gnu packages) |
8e451885 | 50 | #:use-module (gnu packages algebra) |
d79a343b | 51 | #:use-module (gnu packages adns) |
89b2e0b0 | 52 | #:use-module (gnu packages attr) |
d96034ed | 53 | #:use-module (gnu packages backup) |
1ffa7090 | 54 | #:use-module (gnu packages compression) |
4ed20663 | 55 | #:use-module (gnu packages databases) |
ddc63a56 | 56 | #:use-module (gnu packages django) |
5e1c9367 | 57 | #:use-module (gnu packages file) |
4ed20663 | 58 | #:use-module (gnu packages fontutils) |
4ed20663 AE |
59 | #:use-module (gnu packages gcc) |
60 | #:use-module (gnu packages ghostscript) | |
6eb7af2a | 61 | #:use-module (gnu packages gl) |
4ed20663 | 62 | #:use-module (gnu packages glib) |
6eb7af2a | 63 | #:use-module (gnu packages gstreamer) |
4ed20663 | 64 | #:use-module (gnu packages gtk) |
421a80a2 | 65 | #:use-module (gnu packages icu4c) |
c937562e | 66 | #:use-module (gnu packages image) |
4ed20663 | 67 | #:use-module (gnu packages imagemagick) |
d79a343b | 68 | #:use-module (gnu packages libevent) |
b10ab723 | 69 | #:use-module (gnu packages libffi) |
89b2e0b0 | 70 | #:use-module (gnu packages linux) |
0da98533 | 71 | #:use-module (gnu packages maths) |
4ed20663 | 72 | #:use-module (gnu packages multiprecision) |
45203542 | 73 | #:use-module (gnu packages networking) |
be7134bf | 74 | #:use-module (gnu packages ncurses) |
c9b1b4f9 | 75 | #:use-module (gnu packages pcre) |
4ed20663 | 76 | #:use-module (gnu packages perl) |
b10ab723 | 77 | #:use-module (gnu packages pkg-config) |
4ed20663 | 78 | #:use-module (gnu packages readline) |
6eb7af2a | 79 | #:use-module (gnu packages sdl) |
c9b1b4f9 | 80 | #:use-module (gnu packages statistics) |
8f9ac901 | 81 | #:use-module (gnu packages tex) |
1c65314c | 82 | #:use-module (gnu packages texinfo) |
cc2b77df | 83 | #:use-module (gnu packages tls) |
e25f0174 | 84 | #:use-module (gnu packages version-control) |
8d12be1e | 85 | #:use-module (gnu packages web) |
ce0614dd | 86 | #:use-module (gnu packages base) |
26b307e2 | 87 | #:use-module (gnu packages xml) |
6fa14469 | 88 | #:use-module (gnu packages xorg) |
0bdc1671 | 89 | #:use-module (gnu packages xdisorg) |
4ed20663 | 90 | #:use-module (gnu packages zip) |
afa181ff | 91 | #:use-module (gnu packages tcl) |
63bcec71 DM |
92 | #:use-module (gnu packages bdw-gc) |
93 | #:use-module (gnu packages pcre) | |
a01b6da7 NK |
94 | #:use-module (guix packages) |
95 | #:use-module (guix download) | |
ea5456c8 | 96 | #:use-module (guix git-download) |
11bb85a1 | 97 | #:use-module (guix utils) |
acc26ff1 | 98 | #:use-module (guix build-system gnu) |
d8c4998f | 99 | #:use-module (guix build-system cmake) |
898238b9 | 100 | #:use-module (guix build-system python) |
1c65314c FB |
101 | #:use-module (guix build-system trivial) |
102 | #:use-module (srfi srfi-1)) | |
a01b6da7 | 103 | |
45848023 | 104 | (define-public python-2.7 |
a01b6da7 NK |
105 | (package |
106 | (name "python") | |
e7e7a1eb | 107 | (version "2.7.11") |
a01b6da7 NK |
108 | (source |
109 | (origin | |
110 | (method url-fetch) | |
9b43a0ff | 111 | (uri (string-append "https://www.python.org/ftp/python/" |
a01b6da7 NK |
112 | version "/Python-" version ".tar.xz")) |
113 | (sha256 | |
114 | (base32 | |
e7e7a1eb | 115 | "0iiz844riiznsyhhyy962710pz228gmhv8qi3yk4w4jhmx2lqawn")) |
c3052d6b ML |
116 | (patches (search-patches "python-2.7-search-paths.patch" |
117 | "python-2-deterministic-build-info.patch" | |
118 | "python-2.7-source-date-epoch.patch")) | |
10a42aa2 EF |
119 | (modules '((guix build utils))) |
120 | ;; suboptimal to delete failing tests here, but if we delete them in the | |
121 | ;; arguments then we need to make sure to strip out that phase when it | |
122 | ;; gets inherited by python and python-minimal. | |
123 | (snippet | |
124 | '(begin | |
125 | (for-each delete-file | |
126 | '("Lib/test/test_compileall.py" | |
127 | "Lib/test/test_distutils.py" | |
128 | "Lib/test/test_import.py" | |
129 | "Lib/test/test_shutil.py" | |
130 | "Lib/test/test_socket.py" | |
1bb163b0 | 131 | "Lib/test/test_subprocess.py")) |
10a42aa2 | 132 | #t)))) |
02f0c3b2 LC |
133 | (outputs '("out" |
134 | "tk")) ;tkinter; adds 50 MiB to the closure | |
a01b6da7 | 135 | (build-system gnu-build-system) |
3fdc99da | 136 | (arguments |
10a42aa2 | 137 | `(;; 356 tests OK. |
e7e7a1eb EF |
138 | ;; 6 tests failed: |
139 | ;; test_compileall test_distutils test_import test_shutil test_socket | |
140 | ;; test_subprocess | |
141 | ;; 39 tests skipped: | |
ff6f33cf ED |
142 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 |
143 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk | |
e7e7a1eb EF |
144 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses |
145 | ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl | |
146 | ;; test_kqueue test_linuxaudiodev test_macos test_macostools | |
147 | ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet | |
148 | ;; test_socketserver test_startfile test_sunaudiodev test_timeout | |
149 | ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet | |
150 | ;; test_winreg test_winsound test_zipfile64 | |
151 | ;; 4 skips unexpected on linux2: | |
152 | ;; test_bsddb test_bsddb3 test_gdb test_ioctl | |
af807dea | 153 | #:test-target "test" |
3fdc99da | 154 | #:configure-flags |
6a20289d LC |
155 | (list "--enable-shared" ;allow embedding |
156 | "--with-system-ffi" ;build ctypes | |
157 | (string-append "LDFLAGS=-Wl,-rpath=" | |
158 | (assoc-ref %outputs "out") "/lib")) | |
fd982732 | 159 | |
d2cc9c7c LC |
160 | #:modules ((ice-9 ftw) (ice-9 match) |
161 | (guix build utils) (guix build gnu-build-system)) | |
fd982732 | 162 | #:phases |
46472ecd MW |
163 | (modify-phases %standard-phases |
164 | (add-before | |
165 | 'configure 'patch-lib-shells | |
166 | (lambda _ | |
167 | ;; Filter for existing files, since some may not exist in all | |
168 | ;; versions of python that are built with this recipe. | |
169 | (substitute* (filter file-exists? | |
170 | '("Lib/subprocess.py" | |
171 | "Lib/popen2.py" | |
172 | "Lib/distutils/tests/test_spawn.py" | |
173 | "Lib/test/test_subprocess.py")) | |
174 | (("/bin/sh") (which "sh"))) | |
dedc8320 LC |
175 | |
176 | ;; Use zero as the timestamp in .pyc files so that builds are | |
177 | ;; deterministic. TODO: Remove it when this variable is set in | |
178 | ;; gnu-build-system.scm. | |
a665996f | 179 | (setenv "SOURCE_DATE_EPOCH" "1") |
46472ecd | 180 | #t)) |
5b4e2791 LC |
181 | (add-before 'configure 'do-not-record-configure-flags |
182 | (lambda* (#:key configure-flags #:allow-other-keys) | |
183 | ;; Remove configure flags from the installed '_sysconfigdata.py' | |
184 | ;; and 'Makefile' so we don't end up keeping references to the | |
185 | ;; build tools. | |
186 | ;; | |
187 | ;; Preserve at least '--with-system-ffi' since otherwise the | |
188 | ;; thing tries to build libffi, fails, and we end up with a | |
189 | ;; Python that lacks ctypes. | |
190 | (substitute* "configure" | |
191 | (("^CONFIG_ARGS=.*$") | |
192 | (format #f "CONFIG_ARGS='~a'\n" | |
193 | (if (member "--with-system-ffi" configure-flags) | |
194 | "--with-system-ffi" | |
195 | "")))) | |
196 | #t)) | |
46472ecd MW |
197 | (add-before |
198 | 'check 'pre-check | |
199 | (lambda _ | |
200 | ;; 'Lib/test/test_site.py' needs a valid $HOME | |
201 | (setenv "HOME" (getcwd)) | |
1bb163b0 LC |
202 | ,@(if (string-prefix? "mips64el" (%current-system)) |
203 | ||
204 | ;; XXX: The following test fails on mips64el. | |
205 | '((false-if-exception | |
206 | (delete-file "Lib/test/test_ctypes.py"))) | |
207 | ||
208 | '()) | |
46472ecd MW |
209 | #t)) |
210 | (add-after | |
211 | 'unpack 'set-source-file-times-to-1980 | |
212 | ;; XXX One of the tests uses a ZIP library to pack up some of the | |
213 | ;; source tree, and fails with "ZIP does not support timestamps | |
214 | ;; before 1980". Work around this by setting the file times in the | |
215 | ;; source tree to sometime in early 1980. | |
216 | (lambda _ | |
217 | (let ((circa-1980 (* 10 366 24 60 60))) | |
218 | (ftw "." (lambda (file stat flag) | |
219 | (utime file circa-1980 circa-1980) | |
220 | #t)) | |
02f0c3b2 | 221 | #t))) |
9ffe61b0 LC |
222 | (add-after 'install 'remove-tests |
223 | ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* | |
224 | ;; because these files are used by some libraries out there. | |
225 | (lambda* (#:key outputs #:allow-other-keys) | |
226 | (let ((out (assoc-ref outputs "out"))) | |
227 | (match (scandir (string-append out "/lib") | |
228 | (lambda (name) | |
229 | (string-prefix? "python" name))) | |
230 | ((pythonX.Y) | |
231 | (let ((testdir (string-append out "/lib/" pythonX.Y | |
232 | "/test"))) | |
233 | (with-directory-excursion testdir | |
234 | (for-each delete-file-recursively | |
235 | (scandir testdir | |
236 | (match-lambda | |
237 | ((or "." "..") #f) | |
238 | (file | |
239 | (not | |
240 | (string-prefix? "test_support." | |
241 | file)))))) | |
242 | (call-with-output-file "__init__.py" (const #t)) | |
243 | #t))))))) | |
216c283b LC |
244 | (add-before 'strip 'make-libraries-writable |
245 | (lambda* (#:key outputs #:allow-other-keys) | |
246 | ;; Make .so files writable so they can be stripped. | |
247 | (let ((out (assoc-ref outputs "out"))) | |
248 | (for-each (lambda (file) | |
249 | (chmod file #o755)) | |
250 | (find-files (string-append out "/lib") | |
251 | "\\.so")) | |
252 | #t))) | |
02f0c3b2 LC |
253 | (add-after 'install 'move-tk-inter |
254 | (lambda* (#:key outputs #:allow-other-keys) | |
255 | ;; When Tkinter support is built move it to a separate output so | |
256 | ;; that the main output doesn't contain a reference to Tcl/Tk. | |
257 | (let ((out (assoc-ref outputs "out")) | |
258 | (tk (assoc-ref outputs "tk"))) | |
259 | (when tk | |
260 | (match (find-files out "tkinter.*\\.so") | |
261 | ((tkinter.so) | |
262 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we | |
263 | ;; want it under TK/lib/pythonX.Y/site-packages. | |
264 | (let* ((len (string-length out)) | |
265 | (target (string-append | |
266 | tk "/" | |
267 | (string-drop | |
268 | (dirname (dirname tkinter.so)) | |
269 | len) | |
270 | "/site-packages"))) | |
271 | (install-file tkinter.so target) | |
272 | (delete-file tkinter.so))))) | |
273 | #t)))))) | |
a01b6da7 | 274 | (inputs |
3fdc99da CR |
275 | `(("bzip2" ,bzip2) |
276 | ("gdbm" ,gdbm) | |
b10ab723 | 277 | ("libffi" ,libffi) ; for ctypes |
b88e1b0a | 278 | ("sqlite" ,sqlite) ; for sqlite extension |
a01b6da7 | 279 | ("openssl" ,openssl) |
3fdc99da | 280 | ("readline" ,readline) |
afa181ff LC |
281 | ("zlib" ,zlib) |
282 | ("tcl" ,tcl) | |
283 | ("tk" ,tk))) ; for tkinter | |
b10ab723 CR |
284 | (native-inputs |
285 | `(("pkg-config" ,pkg-config))) | |
9be8d7c8 LC |
286 | (native-search-paths |
287 | (list (search-path-specification | |
288 | (variable "PYTHONPATH") | |
af070955 | 289 | (files '("lib/python2.7/site-packages"))))) |
a01b6da7 | 290 | (home-page "http://python.org") |
afa181ff | 291 | (synopsis "High-level, dynamically-typed programming language") |
a01b6da7 NK |
292 | (description |
293 | "Python is a remarkably powerful dynamic programming language that | |
294 | is used in a wide variety of application domains. Some of its key | |
295 | distinguishing features include: clear, readable syntax; strong | |
296 | introspection capabilities; intuitive object orientation; natural | |
297 | expression of procedural code; full modularity, supporting hierarchical | |
298 | packages; exception-based error handling; and very high level dynamic | |
299 | data types.") | |
3f641af0 | 300 | (license license:psfl))) |
acc26ff1 | 301 | |
45848023 HG |
302 | ;; Current 2.x version. |
303 | (define-public python-2 python-2.7) | |
304 | ||
305 | (define-public python-3.4 | |
b24d1cfc | 306 | (package (inherit python-2) |
08c04509 | 307 | (version "3.4.3") |
717003e3 LC |
308 | (source (origin |
309 | (method url-fetch) | |
310 | (uri (string-append "https://www.python.org/ftp/python/" | |
311 | version "/Python-" version ".tar.xz")) | |
fc1adab1 AK |
312 | (patches (search-patches |
313 | "python-fix-tests.patch" | |
314 | ;; XXX Try removing this patch for python > 3.4.3 | |
315 | "python-disable-ssl-test.patch" | |
316 | "python-3-deterministic-build-info.patch" | |
317 | "python-3-search-paths.patch")) | |
717003e3 LC |
318 | (patch-flags '("-p0")) |
319 | (sha256 | |
320 | (base32 | |
08c04509 | 321 | "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm")))) |
1f434457 MW |
322 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
323 | ((#:tests? _) #t))) | |
1aebc0cb AE |
324 | (native-search-paths |
325 | (list (search-path-specification | |
326 | (variable "PYTHONPATH") | |
0e05d01e SB |
327 | (files (list (string-append "lib/python" |
328 | (version-major+minor version) | |
329 | "/site-packages")))))))) | |
f26a77ff | 330 | |
45848023 HG |
331 | ;; Current 3.x version. |
332 | (define-public python-3 python-3.4) | |
333 | ||
334 | ;; Current major version. | |
335 | (define-public python python-3) | |
336 | ||
95288fcc LC |
337 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
338 | ;; Python (Tk -> libxcb -> Python.) | |
339 | ||
340 | (define-public python2-minimal | |
341 | (package (inherit python-2) | |
342 | (name "python-minimal") | |
02f0c3b2 | 343 | (outputs '("out")) |
95288fcc LC |
344 | (arguments |
345 | (substitute-keyword-arguments (package-arguments python-2) | |
c5a05e31 LC |
346 | ((#:configure-flags cf) |
347 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
348 | (inputs '()))) ;none of the optional dependencies |
349 | ||
350 | (define-public python-minimal | |
898238b9 | 351 | (package (inherit python) |
95288fcc | 352 | (name "python-minimal") |
02f0c3b2 | 353 | (outputs '("out")) |
95288fcc LC |
354 | (arguments |
355 | (substitute-keyword-arguments (package-arguments python) | |
c5a05e31 LC |
356 | ((#:configure-flags cf) |
357 | `(append ,cf '("--without-system-ffi"))))) | |
95288fcc LC |
358 | |
359 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; | |
360 | ;; zlib is required by 'zipimport', used by pip. | |
361 | (inputs `(("openssl" ,openssl) | |
362 | ("zlib" ,zlib))))) | |
363 | ||
64cb064c LC |
364 | (define* (wrap-python3 python |
365 | #:optional | |
366 | (name (string-append (package-name python) "-wrapper"))) | |
898238b9 | 367 | (package (inherit python) |
95288fcc | 368 | (name name) |
898238b9 AE |
369 | (source #f) |
370 | (build-system trivial-build-system) | |
02f0c3b2 | 371 | (outputs '("out")) |
3c0f2329 | 372 | (propagated-inputs `(("python" ,python))) |
898238b9 AE |
373 | (arguments |
374 | `(#:modules ((guix build utils)) | |
375 | #:builder | |
376 | (begin | |
377 | (use-modules (guix build utils)) | |
378 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) | |
379 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) | |
380 | (mkdir-p bin) | |
381 | (for-each | |
382 | (lambda (old new) | |
383 | (symlink (string-append python old) | |
384 | (string-append bin "/" new))) | |
187e9094 LF |
385 | '("python3" "pydoc3" "idle3") |
386 | '("python" "pydoc" "idle")))))) | |
0d56e3e1 LC |
387 | (synopsis "Wrapper for the Python 3 commands") |
388 | (description | |
389 | "This package provides wrappers for the commands of Python@tie{}3.x such | |
390 | that they can be invoked under their usual name---e.g., @command{python} | |
391 | instead of @command{python3}."))) | |
392 | ||
95288fcc LC |
393 | (define-public python-wrapper (wrap-python3 python)) |
394 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) | |
898238b9 | 395 | |
aaf625b8 RW |
396 | (define-public python-psutil |
397 | (package | |
398 | (name "python-psutil") | |
88535a44 | 399 | (version "4.3.0") |
aaf625b8 RW |
400 | (source |
401 | (origin | |
402 | (method url-fetch) | |
f56777be | 403 | (uri (pypi-uri "psutil" version)) |
aaf625b8 RW |
404 | (sha256 |
405 | (base32 | |
88535a44 | 406 | "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6")))) |
aaf625b8 RW |
407 | (build-system python-build-system) |
408 | (native-inputs | |
409 | `(("python-setuptools" ,python-setuptools))) | |
88535a44 | 410 | (home-page "https://www.github.com/giampaolo/psutil") |
aaf625b8 RW |
411 | (synopsis "Library for retrieving information on running processes") |
412 | (description | |
413 | "psutil (Python system and process utilities) is a library for retrieving | |
414 | information on running processes and system utilization (CPU, memory, disks, | |
415 | network) in Python. It is useful mainly for system monitoring, profiling and | |
416 | limiting process resources and management of running processes. It implements | |
417 | many functionalities offered by command line tools such as: ps, top, lsof, | |
418 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, | |
419 | pidof, tty, taskset, pmap.") | |
3f641af0 | 420 | (license license:bsd-3))) |
aaf625b8 RW |
421 | |
422 | (define-public python2-psutil | |
423 | (package-with-python2 python-psutil)) | |
898238b9 | 424 | |
f9da1d8a ED |
425 | (define-public python-passlib |
426 | (package | |
427 | (name "python-passlib") | |
690e8c66 | 428 | (version "1.6.5") |
f9da1d8a ED |
429 | (source |
430 | (origin | |
431 | (method url-fetch) | |
690e8c66 | 432 | (uri (pypi-uri "passlib" version)) |
f9da1d8a ED |
433 | (sha256 |
434 | (base32 | |
690e8c66 | 435 | "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8")))) |
f9da1d8a ED |
436 | (build-system python-build-system) |
437 | (native-inputs | |
438 | `(("python-nose" ,python-nose) | |
439 | ("python-setuptools" ,python-setuptools))) | |
440 | (inputs | |
441 | `(("python-py-bcrypt" ,python-py-bcrypt))) | |
442 | (arguments | |
443 | `(#:phases | |
444 | (alist-cons-before | |
445 | 'check 'set-PYTHON_EGG_CACHE | |
446 | ;; some tests require access to "$HOME/.cython" | |
447 | (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp")) | |
448 | %standard-phases))) | |
449 | (home-page "https://bitbucket.org/ecollins/passlib") | |
450 | (synopsis | |
451 | "Comprehensive password hashing framework") | |
452 | (description | |
453 | "Passlib is a password hashing library for Python 2 & 3, which provides | |
454 | cross-platform implementations of over 30 password hashing algorithms, as well | |
455 | as a framework for managing existing password hashes. It's designed to be | |
456 | useful for a wide range of tasks, from verifying a hash found in /etc/shadow, | |
457 | to providing full-strength password hashing for multi-user application.") | |
3f641af0 | 458 | (license license:bsd-3))) |
f9da1d8a ED |
459 | |
460 | (define-public python2-passlib | |
461 | (package-with-python2 python-passlib)) | |
462 | ||
feb0d9c3 ED |
463 | (define-public python-py-bcrypt |
464 | (package | |
465 | (name "python-py-bcrypt") | |
466 | (version "0.4") | |
467 | (source | |
468 | (origin | |
469 | (method url-fetch) | |
470 | (uri (string-append | |
471 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" | |
472 | version | |
473 | ".tar.gz")) | |
474 | (sha256 | |
475 | (base32 | |
476 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) | |
477 | (build-system python-build-system) | |
478 | (native-inputs | |
479 | `(("python-setuptools" ,python-setuptools))) | |
480 | (home-page "https://code.google.com/p/py-bcrypt") | |
481 | (synopsis | |
482 | "Bcrypt password hashing and key derivation") | |
483 | (description | |
484 | "A python wrapper of OpenBSD's Blowfish password hashing code. This | |
485 | system hashes passwords using a version of Bruce Schneier's Blowfish block | |
486 | cipher with modifications designed to raise the cost of off-line password | |
487 | cracking and frustrate fast hardware implementation. The computation cost of | |
488 | the algorithm is parametised, so it can be increased as computers get faster. | |
489 | The intent is to make a compromise of a password database less likely to | |
490 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using | |
491 | John the Ripper).") | |
492 | ;; "sha2.c" is under BSD-3; | |
493 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; | |
494 | ;; the rest is under ISC. | |
3f641af0 | 495 | (license (list license:isc license:bsd-3 license:bsd-4)))) |
feb0d9c3 ED |
496 | |
497 | (define-public python2-py-bcrypt | |
498 | (package-with-python2 python-py-bcrypt)) | |
499 | ||
500 | ||
429fdea1 ED |
501 | (define-public python-paramiko |
502 | (package | |
503 | (name "python-paramiko") | |
81b9bbbd | 504 | (version "1.16.0") |
429fdea1 ED |
505 | (source |
506 | (origin | |
507 | (method url-fetch) | |
81b9bbbd | 508 | (uri (pypi-uri "paramiko" version)) |
429fdea1 ED |
509 | (sha256 |
510 | (base32 | |
81b9bbbd | 511 | "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj")))) |
429fdea1 ED |
512 | (build-system python-build-system) |
513 | (native-inputs | |
514 | `(("python-setuptools" ,python-setuptools))) | |
a3fc12da CR |
515 | (propagated-inputs |
516 | `(("python-pycrypto" ,python-pycrypto))) | |
429fdea1 | 517 | (inputs |
a3fc12da | 518 | `(("python-ecdsa" ,python-ecdsa))) |
429fdea1 ED |
519 | (home-page "http://www.paramiko.org/") |
520 | (synopsis "SSHv2 protocol library") | |
521 | (description "Paramiko is a python implementation of the SSHv2 protocol, | |
522 | providing both client and server functionality. While it leverages a Python C | |
523 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure | |
524 | Python interface around SSH networking concepts.") | |
3f641af0 | 525 | (license license:lgpl2.1+))) |
429fdea1 ED |
526 | |
527 | (define-public python2-paramiko | |
528 | (package-with-python2 python-paramiko)) | |
529 | ||
530 | ||
de73dbf6 ED |
531 | (define-public python-httplib2 |
532 | (package | |
533 | (name "python-httplib2") | |
286f1bac | 534 | (version "0.9.2") |
de73dbf6 ED |
535 | (source |
536 | (origin | |
537 | (method url-fetch) | |
286f1bac | 538 | (uri (pypi-uri "httplib2" version)) |
de73dbf6 ED |
539 | (sha256 |
540 | (base32 | |
286f1bac | 541 | "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) |
de73dbf6 ED |
542 | (build-system python-build-system) |
543 | (native-inputs | |
544 | `(("python-setuptools" ,python-setuptools))) | |
286f1bac | 545 | (home-page "https://github.com/jcgregorio/httplib2") |
de73dbf6 ED |
546 | (synopsis "Comprehensive HTTP client library") |
547 | (description | |
548 | "A comprehensive HTTP client library supporting many features left out of | |
549 | other HTTP libraries.") | |
550 | (license license:expat))) | |
551 | ||
552 | (define-public python2-httplib2 | |
553 | (package-with-python2 python-httplib2)) | |
554 | ||
67039875 ED |
555 | (define-public python-ecdsa |
556 | (package | |
557 | (name "python-ecdsa") | |
558 | (version "0.13") | |
559 | (source | |
560 | (origin | |
561 | (method url-fetch) | |
562 | (uri (string-append | |
563 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" | |
564 | version | |
565 | ".tar.gz")) | |
566 | (sha256 | |
567 | (base32 | |
568 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) | |
569 | (build-system python-build-system) | |
570 | (native-inputs | |
571 | `(("python-setuptools" ,python-setuptools))) | |
572 | (inputs | |
573 | `(("openssl" ,openssl))) | |
574 | (home-page | |
575 | "http://github.com/warner/python-ecdsa") | |
576 | (synopsis | |
577 | "ECDSA cryptographic signature library (pure python)") | |
578 | (description | |
579 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic | |
580 | Curve Digital Signature Algorithm), implemented purely in Python. With this | |
581 | library, you can quickly create keypairs (signing key and verifying key), sign | |
582 | messages, and verify the signatures. The keys and signatures are very short, | |
583 | making them easy to handle and incorporate into other protocols.") | |
584 | (license license:expat))) | |
585 | ||
586 | (define-public python2-ecdsa | |
587 | (package-with-python2 python-ecdsa)) | |
588 | ||
52323f32 ED |
589 | (define-public python-ccm |
590 | (package | |
591 | (name "python-ccm") | |
db5567f7 | 592 | (version "2.1.6") |
52323f32 ED |
593 | (source |
594 | (origin | |
595 | (method url-fetch) | |
db5567f7 | 596 | (uri (pypi-uri "ccm" version)) |
52323f32 ED |
597 | (sha256 |
598 | (base32 | |
db5567f7 | 599 | "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n")))) |
52323f32 ED |
600 | (build-system python-build-system) |
601 | (native-inputs | |
602 | `(("python-setuptools" ,python-setuptools))) | |
603 | (inputs | |
604 | `(("python-pyyaml" ,python-pyyaml) | |
605 | ("python-six" ,python-six))) | |
606 | (home-page "https://github.com/pcmanus/ccm") | |
607 | (synopsis "Cassandra Cluster Manager") | |
608 | (description "A script/library to create, launch and remove an Apache | |
609 | Cassandra cluster on localhost.") | |
3f641af0 | 610 | (license license:asl2.0))) |
52323f32 ED |
611 | |
612 | (define-public python2-ccm | |
613 | (package-with-python2 python-ccm)) | |
614 | ||
89114f39 | 615 | (define-public python-pytz |
acc26ff1 | 616 | (package |
89114f39 | 617 | (name "python-pytz") |
61c9babb | 618 | (version "2016.3") |
acc26ff1 CR |
619 | (source |
620 | (origin | |
621 | (method url-fetch) | |
61c9babb | 622 | (uri (pypi-uri "pytz" version ".tar.bz2")) |
acc26ff1 CR |
623 | (sha256 |
624 | (base32 | |
61c9babb | 625 | "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1")))) |
acc26ff1 | 626 | (build-system python-build-system) |
8498b8cf | 627 | (arguments `(#:tests? #f)) ; no test target |
b01bbbcf | 628 | (home-page "http://pythonhosted.org/pytz") |
9e771e3b | 629 | (synopsis "Python timezone library") |
acc26ff1 CR |
630 | (description |
631 | "This library allows accurate and cross platform timezone calculations | |
632 | using Python 2.4 or higher and provides access to the Olson timezone database.") | |
b01bbbcf | 633 | (license license:expat))) |
5ace6e2f | 634 | |
89114f39 | 635 | (define-public python2-pytz |
11bb85a1 | 636 | (package-with-python2 python-pytz)) |
89114f39 | 637 | |
fc50e9c6 | 638 | |
89114f39 | 639 | (define-public python-babel |
5ace6e2f | 640 | (package |
89114f39 | 641 | (name "python-babel") |
3f37db6b | 642 | (version "2.3.2") |
5ace6e2f CR |
643 | (source |
644 | (origin | |
645 | (method url-fetch) | |
b850a6d8 | 646 | (uri (pypi-uri "Babel" version)) |
5ace6e2f CR |
647 | (sha256 |
648 | (base32 | |
3f37db6b | 649 | "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw")))) |
5ace6e2f CR |
650 | (build-system python-build-system) |
651 | (inputs | |
e1804763 AE |
652 | `(("python-pytz" ,python-pytz) |
653 | ("python-setuptools" ,python-setuptools))) | |
8498b8cf | 654 | (arguments `(#:tests? #f)) ; no test target |
e1804763 | 655 | (home-page "http://babel.pocoo.org/") |
5ace6e2f CR |
656 | (synopsis |
657 | "Tools for internationalizing Python applications") | |
658 | (description | |
659 | "Babel is composed of two major parts: | |
660 | - tools to build and work with gettext message catalogs | |
661 | - a Python interface to the CLDR (Common Locale Data Repository), providing | |
662 | access to various locale display names, localized number and date formatting, | |
663 | etc. ") | |
3f641af0 | 664 | (license license:bsd-3))) |
89114f39 AE |
665 | |
666 | (define-public python2-babel | |
11bb85a1 | 667 | (package-with-python2 python-babel)) |
73adf220 | 668 | |
ed377cc6 RW |
669 | (define-public python2-backport-ssl-match-hostname |
670 | (package | |
671 | (name "python2-backport-ssl-match-hostname") | |
f2d06d46 | 672 | (version "3.5.0.1") |
ed377cc6 RW |
673 | (source |
674 | (origin | |
675 | (method url-fetch) | |
676 | (uri (string-append | |
677 | "https://pypi.python.org/packages/source/b/" | |
678 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" | |
679 | version ".tar.gz")) | |
680 | (sha256 | |
681 | (base32 | |
f2d06d46 | 682 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
ed377cc6 | 683 | (build-system python-build-system) |
f2d06d46 EF |
684 | (arguments |
685 | `(#:python ,python-2 | |
686 | #:tests? #f)) ; no test target | |
ed377cc6 RW |
687 | (inputs |
688 | `(("python2-setuptools" ,python2-setuptools))) | |
f2d06d46 EF |
689 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
690 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") | |
ed377cc6 RW |
691 | (description |
692 | "This backport brings the ssl.match_hostname() function to users of | |
693 | earlier versions of Python. The function checks the hostname in the | |
694 | certificate returned by the server to which a connection has been established, | |
695 | and verifies that it matches the intended target hostname.") | |
3f641af0 | 696 | (license license:psfl))) |
ed377cc6 | 697 | |
ef5cbf9b RW |
698 | (define-public python-h5py |
699 | (package | |
700 | (name "python-h5py") | |
fe147c41 | 701 | (version "2.6.0") |
ef5cbf9b RW |
702 | (source |
703 | (origin | |
704 | (method url-fetch) | |
fe147c41 | 705 | (uri (pypi-uri "h5py" version)) |
ef5cbf9b RW |
706 | (sha256 |
707 | (base32 | |
fe147c41 | 708 | "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj")))) |
ef5cbf9b | 709 | (build-system python-build-system) |
797e1401 RW |
710 | (arguments |
711 | `(#:tests? #f ; no test target | |
712 | #:phases | |
713 | (modify-phases %standard-phases | |
714 | (add-after 'unpack 'fix-hdf5-paths | |
715 | (lambda* (#:key inputs #:allow-other-keys) | |
716 | (let ((prefix (assoc-ref inputs "hdf5"))) | |
717 | (substitute* "setup_build.py" | |
718 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") | |
719 | (string-append "['" prefix "/lib" "']")) | |
720 | (("'/opt/local/include', '/usr/local/include'") | |
721 | (string-append "'" prefix "/include" "'"))) | |
722 | (substitute* "setup_configure.py" | |
723 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") | |
724 | (string-append "['" prefix "/lib" "']"))) | |
725 | #t)))))) | |
3c4010b1 RW |
726 | (propagated-inputs |
727 | `(("python-numpy" ,python-numpy))) | |
ef5cbf9b | 728 | (inputs |
fe147c41 EF |
729 | `(("hdf5" ,hdf5) |
730 | ("python-six" ,python-six))) | |
ef5cbf9b | 731 | (native-inputs |
fe147c41 EF |
732 | `(("python-cython" ,python-cython) |
733 | ("python-pkgconfig" ,python-pkgconfig))) | |
ef5cbf9b RW |
734 | (home-page "http://www.h5py.org/") |
735 | (synopsis "Read and write HDF5 files from Python") | |
736 | (description | |
737 | "The h5py package provides both a high- and low-level interface to the | |
738 | HDF5 library from Python. The low-level interface is intended to be a | |
739 | complete wrapping of the HDF5 API, while the high-level component supports | |
740 | access to HDF5 files, datasets and groups using established Python and NumPy | |
741 | concepts.") | |
3f641af0 | 742 | (license license:bsd-3) |
fe147c41 | 743 | (properties `((python2-variant . ,(delay python2-h5py)))))) |
ef5cbf9b RW |
744 | |
745 | (define-public python2-h5py | |
fe147c41 | 746 | (package-with-python2 (strip-python2-variant python-h5py))) |
ef5cbf9b | 747 | |
c1448c69 EB |
748 | (define-public python-lockfile |
749 | (package | |
750 | (name "python-lockfile") | |
692add53 | 751 | (version "0.12.2") |
c1448c69 EB |
752 | (source |
753 | (origin | |
754 | (method url-fetch) | |
755 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" | |
756 | "lockfile-" version ".tar.gz")) | |
757 | (sha256 | |
758 | (base32 | |
692add53 | 759 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
c1448c69 EB |
760 | (build-system python-build-system) |
761 | (arguments '(#:test-target "check")) | |
692add53 BW |
762 | (native-inputs |
763 | `(("python-pbr" ,python-pbr))) | |
c1448c69 EB |
764 | (home-page "http://code.google.com/p/pylockfile/") |
765 | (synopsis "Platform-independent file locking module") | |
766 | (description | |
767 | "The lockfile package exports a LockFile class which provides a simple | |
768 | API for locking files.") | |
1804527a BW |
769 | (license license:expat) |
770 | (properties `((python2-variant . ,(delay python2-lockfile)))))) | |
c1448c69 EB |
771 | |
772 | (define-public python2-lockfile | |
1804527a BW |
773 | (let ((base (package-with-python2 (strip-python2-variant python-lockfile)))) |
774 | (package | |
692add53 BW |
775 | (inherit base) |
776 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
777 | ,@(package-native-inputs base)))))) | |
c1448c69 | 778 | |
5a1a4bf6 EB |
779 | (define-public python-mock |
780 | (package | |
781 | (name "python-mock") | |
782 | (version "1.0.1") | |
783 | (source | |
784 | (origin | |
785 | (method url-fetch) | |
786 | (uri (string-append "https://pypi.python.org/packages/source/m/mock/" | |
787 | "mock-" version ".tar.gz")) | |
788 | (sha256 | |
789 | (base32 | |
790 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) | |
791 | (build-system python-build-system) | |
792 | (arguments '(#:test-target "check")) | |
07af3e5e | 793 | (home-page "http://code.google.com/p/mock/") |
9e771e3b | 794 | (synopsis "Python mocking and patching library for testing") |
5a1a4bf6 EB |
795 | (description |
796 | "Mock is a library for testing in Python. It allows you to replace parts | |
797 | of your system under test with mock objects and make assertions about how they | |
798 | have been used.") | |
bd3fa666 | 799 | (license license:expat))) |
5a1a4bf6 EB |
800 | |
801 | (define-public python2-mock | |
802 | (package-with-python2 python-mock)) | |
803 | ||
fc50e9c6 | 804 | |
73adf220 AE |
805 | (define-public python-setuptools |
806 | (package | |
807 | (name "python-setuptools") | |
62a9a23b | 808 | (version "18.3.1") |
73adf220 AE |
809 | (source |
810 | (origin | |
811 | (method url-fetch) | |
812 | (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-" | |
813 | version ".tar.gz")) | |
814 | (sha256 | |
815 | (base32 | |
62a9a23b | 816 | "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig")))) |
73adf220 | 817 | (build-system python-build-system) |
d3d656c5 AE |
818 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
819 | ;; One could bootstrap with an internal untested setuptools. | |
73adf220 | 820 | (arguments |
824af8ca | 821 | `(#:tests? #f)) |
73adf220 AE |
822 | (home-page "https://pypi.python.org/pypi/setuptools") |
823 | (synopsis | |
824 | "Library designed to facilitate packaging Python projects") | |
825 | (description | |
826 | "Setuptools is a fully-featured, stable library designed to facilitate | |
827 | packaging Python projects, where packaging includes: | |
828 | Python package and module definitions, | |
829 | distribution package metadata, | |
830 | test hooks, | |
831 | project installation, | |
832 | platform-specific details, | |
833 | Python 3 support.") | |
3f641af0 | 834 | (license license:psfl))) |
73adf220 AE |
835 | |
836 | (define-public python2-setuptools | |
837 | (package-with-python2 python-setuptools)) | |
fc50e9c6 AE |
838 | |
839 | ||
cafc3f5a EB |
840 | (define-public python-pycrypto |
841 | (package | |
842 | (name "python-pycrypto") | |
843 | (version "2.6.1") | |
844 | (source | |
845 | (origin | |
846 | (method url-fetch) | |
847 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
848 | "pycrypto/pycrypto-" version ".tar.gz")) | |
849 | (sha256 | |
850 | (base32 | |
851 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) | |
852 | (build-system python-build-system) | |
853 | (native-inputs | |
854 | `(("python-setuptools" ,python-setuptools))) | |
855 | (inputs | |
856 | `(("python" ,python) | |
857 | ("gmp" ,gmp))) | |
858 | (arguments | |
859 | `(#:phases | |
860 | (alist-cons-before | |
861 | 'build 'set-build-env | |
862 | ;; pycrypto runs an autoconf configure script behind the scenes | |
863 | (lambda _ | |
864 | (setenv "CONFIG_SHELL" (which "bash"))) | |
865 | %standard-phases))) | |
866 | (home-page "http://www.pycrypto.org/") | |
867 | (synopsis "Cryptographic modules for Python") | |
868 | (description | |
869 | "Pycrypto is a collection of both secure hash functions (such as SHA256 | |
870 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, | |
35b9e423 | 871 | etc.). The package is structured to make adding new modules easy.") |
3f641af0 | 872 | (license license:public-domain))) |
cafc3f5a | 873 | |
345f0611 | 874 | (define-public python2-pycrypto |
1c0059da EF |
875 | (let ((pycrypto (package-with-python2 python-pycrypto))) |
876 | (package (inherit pycrypto) | |
877 | (inputs | |
878 | `(("python" ,python-2) | |
879 | ,@(alist-delete | |
880 | "python" | |
881 | (package-inputs pycrypto))))))) | |
345f0611 | 882 | |
cafc3f5a EB |
883 | (define-public python-keyring |
884 | (package | |
885 | (name "python-keyring") | |
13f3ff35 | 886 | (version "8.7") |
cafc3f5a EB |
887 | (source |
888 | (origin | |
889 | (method url-fetch) | |
664e6c3a | 890 | (uri (pypi-uri "keyring" version)) |
cafc3f5a EB |
891 | (sha256 |
892 | (base32 | |
13f3ff35 | 893 | "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx")))) |
cafc3f5a EB |
894 | (build-system python-build-system) |
895 | (native-inputs | |
13f3ff35 | 896 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
cafc3f5a EB |
897 | (inputs |
898 | `(("python-pycrypto" ,python-pycrypto))) | |
899 | (arguments | |
664e6c3a | 900 | `(#:tests? #f)) ;TODO: tests require pytest |
cafc3f5a EB |
901 | (home-page "http://bitbucket.org/kang/python-keyring-lib") |
902 | (synopsis "Store and access your passwords safely") | |
903 | (description | |
904 | "The Python keyring lib provides a easy way to access the system keyring | |
35b9e423 | 905 | service from python. It can be used in any application that needs safe |
cafc3f5a EB |
906 | password storage.") |
907 | ;; "MIT" and PSF dual license | |
3f641af0 | 908 | (license license:x11) |
13f3ff35 | 909 | (properties `((python2-variant . ,(delay python2-keyring)))))) |
cafc3f5a | 910 | |
d7af1069 | 911 | (define-public python2-keyring |
13f3ff35 EF |
912 | (let ((base (package-with-python2 (strip-python2-variant python-keyring)))) |
913 | (package | |
914 | (inherit base) | |
915 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
916 | ,@(package-native-inputs base)))))) | |
d7af1069 | 917 | |
a480bc41 EB |
918 | (define-public python-six |
919 | (package | |
920 | (name "python-six") | |
b6ab89ef | 921 | (version "1.10.0") |
a480bc41 EB |
922 | (source |
923 | (origin | |
924 | (method url-fetch) | |
b6ab89ef | 925 | (uri (pypi-uri "six" version)) |
a480bc41 EB |
926 | (sha256 |
927 | (base32 | |
b6ab89ef | 928 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
a480bc41 EB |
929 | (build-system python-build-system) |
930 | (inputs | |
931 | `(("python-setuptools" ,python-setuptools))) | |
932 | (home-page "http://pypi.python.org/pypi/six/") | |
933 | (synopsis "Python 2 and 3 compatibility utilities") | |
934 | (description | |
35b9e423 | 935 | "Six is a Python 2 and 3 compatibility library. It provides utility |
a480bc41 EB |
936 | functions for smoothing over the differences between the Python versions with |
937 | the goal of writing Python code that is compatible on both Python versions. | |
35b9e423 | 938 | Six supports every Python version since 2.5. It is contained in only one |
a480bc41 | 939 | Python file, so it can be easily copied into your project.") |
3f641af0 | 940 | (license license:x11))) |
a480bc41 | 941 | |
0c20025c AE |
942 | (define-public python2-six |
943 | (package-with-python2 python-six)) | |
944 | ||
cafc3f5a EB |
945 | (define-public python-dateutil-2 |
946 | (package | |
947 | (name "python-dateutil") | |
394b8060 | 948 | (version "2.5.2") |
cafc3f5a EB |
949 | (source |
950 | (origin | |
951 | (method url-fetch) | |
394b8060 | 952 | (uri (pypi-uri "python-dateutil" version)) |
cafc3f5a EB |
953 | (sha256 |
954 | (base32 | |
394b8060 | 955 | "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86")))) |
cafc3f5a EB |
956 | (build-system python-build-system) |
957 | (inputs | |
394b8060 | 958 | `(("python-six" ,python-six))) |
cafc3f5a EB |
959 | (home-page "http://labix.org/python-dateutil") |
960 | (synopsis "Extensions to the standard datetime module") | |
961 | (description | |
962 | "The dateutil module provides powerful extensions to the standard | |
963 | datetime module, available in Python 2.3+.") | |
3f641af0 | 964 | (license license:bsd-3) |
394b8060 | 965 | (properties `((python2-variant . ,(delay python2-dateutil-2)))))) |
cafc3f5a EB |
966 | |
967 | (define-public python2-dateutil-2 | |
394b8060 EF |
968 | (let ((base (package-with-python2 (strip-python2-variant python-dateutil-2)))) |
969 | (package | |
970 | (inherit base) | |
971 | (inputs `(("python2-setuptools" ,python2-setuptools) | |
972 | ,@(package-inputs base)))))) | |
cafc3f5a | 973 | |
fc50e9c6 AE |
974 | (define-public python-dateutil |
975 | (package | |
976 | (name "python-dateutil") | |
977 | (version "1.5") ; last version for python < 3 | |
978 | (source | |
979 | (origin | |
980 | (method url-fetch) | |
cafc3f5a EB |
981 | (uri (string-append "http://labix.org/download/python-dateutil/" |
982 | "python-dateutil-" version ".tar.gz")) | |
fc50e9c6 AE |
983 | (sha256 |
984 | (base32 | |
985 | "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0")))) | |
986 | (build-system python-build-system) | |
987 | (inputs | |
988 | `(("python-setuptools" ,python-setuptools))) | |
989 | (home-page "http://labix.org/python-dateutil") | |
cafc3f5a | 990 | (synopsis "Extensions to the standard datetime module") |
fc50e9c6 AE |
991 | (description |
992 | "The dateutil module provides powerful extensions to the standard | |
993 | datetime module, available in Python 2.3+.") | |
3f641af0 | 994 | (license license:psfl))) |
fc50e9c6 AE |
995 | |
996 | (define-public python2-dateutil | |
997 | (package-with-python2 python-dateutil)) | |
1d08c01f | 998 | |
cafc3f5a EB |
999 | (define-public python-parsedatetime |
1000 | (package | |
1001 | (name "python-parsedatetime") | |
eebf6f01 | 1002 | (version "2.1") |
cafc3f5a EB |
1003 | (source |
1004 | (origin | |
1005 | (method url-fetch) | |
eebf6f01 | 1006 | (uri (pypi-uri "parsedatetime" version)) |
cafc3f5a EB |
1007 | (sha256 |
1008 | (base32 | |
eebf6f01 | 1009 | "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p")))) |
cafc3f5a EB |
1010 | (build-system python-build-system) |
1011 | (native-inputs | |
eebf6f01 EF |
1012 | `(("python-nose" ,python-nose) |
1013 | ("python-pyicu" ,python-pyicu))) | |
cafc3f5a EB |
1014 | (home-page "http://github.com/bear/parsedatetime/") |
1015 | (synopsis | |
1016 | "Parse human-readable date/time text") | |
1017 | (description | |
e881752c | 1018 | "Parse human-readable date/time text.") |
3f641af0 | 1019 | (license license:asl2.0) |
eebf6f01 | 1020 | (properties `((python2-variant . ,(delay python2-parsedatetime)))))) |
cafc3f5a | 1021 | |
38b8f9b2 | 1022 | (define-public python2-parsedatetime |
eebf6f01 EF |
1023 | (let ((base (package-with-python2 (strip-python2-variant python-parsedatetime)))) |
1024 | (package | |
1025 | (inherit base) | |
1026 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
1027 | ,@(package-native-inputs base)))))) | |
38b8f9b2 | 1028 | |
d072efcb RW |
1029 | (define-public python-pandas |
1030 | (package | |
1031 | (name "python-pandas") | |
7d0c3c8d | 1032 | (version "0.18.1") |
d072efcb RW |
1033 | (source |
1034 | (origin | |
1b96f069 | 1035 | (method url-fetch) |
7d0c3c8d EF |
1036 | (uri (string-append |
1037 | "https://pypi.python.org/packages/11/09/" | |
1038 | "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/" | |
1039 | "pandas-" version ".tar.gz")) | |
1b96f069 | 1040 | (sha256 |
7d0c3c8d | 1041 | (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j")))) |
d072efcb | 1042 | (build-system python-build-system) |
d072efcb | 1043 | (propagated-inputs |
42603726 EF |
1044 | `(("python-numpy" ,python-numpy))) |
1045 | (inputs | |
1046 | `(("python-pytz" ,python-pytz) | |
d072efcb RW |
1047 | ("python-dateutil" ,python-dateutil-2))) |
1048 | (native-inputs | |
7d0c3c8d | 1049 | `(("python-nose" ,python-nose))) |
d072efcb RW |
1050 | (home-page "http://pandas.pydata.org") |
1051 | (synopsis "Data structures for data analysis, time series, and statistics") | |
1052 | (description | |
1053 | "Pandas is a Python package providing fast, flexible, and expressive data | |
1054 | structures designed to make working with structured (tabular, | |
1055 | multidimensional, potentially heterogeneous) and time series data both easy | |
1056 | and intuitive. It aims to be the fundamental high-level building block for | |
1057 | doing practical, real world data analysis in Python.") | |
3f641af0 | 1058 | (license license:bsd-3) |
7d0c3c8d | 1059 | (properties `((python2-variant . ,(delay python2-pandas)))))) |
d072efcb RW |
1060 | |
1061 | (define-public python2-pandas | |
7d0c3c8d EF |
1062 | (let ((base (package-with-python2 (strip-python2-variant python-pandas)))) |
1063 | (package | |
1064 | (inherit base) | |
1065 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
dbd40ac1 | 1066 | ,@(package-native-inputs base)))))) |
d072efcb | 1067 | |
cafc3f5a EB |
1068 | (define-public python-tzlocal |
1069 | (package | |
1070 | (name "python-tzlocal") | |
ed80839b | 1071 | (version "1.2.2") |
cafc3f5a EB |
1072 | (source |
1073 | (origin | |
1074 | (method url-fetch) | |
226d3331 | 1075 | (uri (pypi-uri "tzlocal" version)) |
cafc3f5a EB |
1076 | (sha256 |
1077 | (base32 | |
ed80839b | 1078 | "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb")))) |
cafc3f5a | 1079 | (build-system python-build-system) |
ed80839b | 1080 | (inputs `(("python-pytz" ,python-pytz))) |
cafc3f5a EB |
1081 | (home-page "https://github.com/regebro/tzlocal") |
1082 | (synopsis | |
35b9e423 | 1083 | "Local timezone information for Python") |
cafc3f5a EB |
1084 | (description |
1085 | "Tzlocal returns a tzinfo object with the local timezone information. | |
1086 | This module attempts to fix a glaring hole in pytz, that there is no way to | |
1087 | get the local timezone information, unless you know the zoneinfo name, and | |
1088 | under several distributions that's hard or impossible to figure out.") | |
3f641af0 | 1089 | (license license:cc0))) |
cafc3f5a | 1090 | |
1d08c01f AE |
1091 | (define-public python2-pysqlite |
1092 | (package | |
1093 | (name "python2-pysqlite") | |
fe476868 | 1094 | (version "2.8.1") |
1d08c01f AE |
1095 | (source |
1096 | (origin | |
1097 | (method url-fetch) | |
fe476868 | 1098 | (uri (pypi-uri "pysqlite" version)) |
1d08c01f AE |
1099 | (sha256 |
1100 | (base32 | |
fe476868 | 1101 | "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm")))) |
1d08c01f AE |
1102 | (build-system python-build-system) |
1103 | (inputs | |
1104 | `(("sqlite" ,sqlite))) | |
1105 | (arguments | |
1106 | `(#:python ,python-2 ; incompatible with Python 3 | |
1107 | #:tests? #f)) ; no test target | |
fe476868 | 1108 | (home-page "http://github.com/ghaering/pysqlite") |
7a03af70 | 1109 | (synopsis "SQLite bindings for Python") |
1d08c01f AE |
1110 | (description |
1111 | "Pysqlite provides SQLite bindings for Python that comply to the | |
1112 | Database API 2.0T.") | |
ed0cdf83 | 1113 | (license license:zlib))) |
1d08c01f | 1114 | |
2875caf5 AE |
1115 | |
1116 | (define-public python2-mechanize | |
1117 | (package | |
1118 | (name "python2-mechanize") | |
1119 | (version "0.2.5") | |
1120 | (source | |
1121 | (origin | |
1122 | (method url-fetch) | |
1123 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" | |
1124 | version ".tar.gz")) | |
1125 | (sha256 | |
1126 | (base32 | |
1127 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) | |
1128 | (build-system python-build-system) | |
1129 | (inputs | |
1130 | `(("python2-setuptools" ,python2-setuptools))) | |
1131 | (arguments | |
1132 | `(#:python ,python-2 ; apparently incompatible with Python 3 | |
1133 | #:tests? #f)) | |
1134 | ;; test fails with message | |
1135 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' | |
1136 | ;; (python-3.3.2) or | |
1137 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' | |
1138 | ;; (python-2.7.5). | |
1139 | ;; The source code is from March 2011 and probably not up-to-date | |
1140 | ;; with respect to python unit tests. | |
1141 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") | |
1142 | (synopsis | |
1143 | "Stateful programmatic web browsing in Python") | |
1144 | (description | |
1145 | "Mechanize implements stateful programmatic web browsing in Python, | |
1146 | after Andy Lester’s Perl module WWW::Mechanize.") | |
3f641af0 DC |
1147 | (license (license:non-copyleft |
1148 | "file://COPYING" | |
1149 | "See COPYING in the distribution.")))) | |
2875caf5 | 1150 | |
0352532e AE |
1151 | |
1152 | (define-public python-simplejson | |
1153 | (package | |
1154 | (name "python-simplejson") | |
988d1bad | 1155 | (version "3.8.2") |
0352532e AE |
1156 | (source |
1157 | (origin | |
1158 | (method url-fetch) | |
988d1bad | 1159 | (uri (pypi-uri "simplejson" version)) |
0352532e AE |
1160 | (sha256 |
1161 | (base32 | |
988d1bad | 1162 | "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m")))) |
0352532e AE |
1163 | (build-system python-build-system) |
1164 | (home-page "http://simplejson.readthedocs.org/en/latest/") | |
1165 | (synopsis | |
1166 | "Json library for Python") | |
1167 | (description | |
e881752c AK |
1168 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
1169 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange | |
1170 | format. | |
0352532e AE |
1171 | |
1172 | Simplejson exposes an API familiar to users of the standard library marshal | |
1173 | and pickle modules. It is the externally maintained version of the json | |
1174 | library contained in Python 2.6, but maintains compatibility with Python 2.5 | |
1175 | and (currently) has significant performance advantages, even without using | |
1176 | the optional C extension for speedups. Simplejson is also supported on | |
1177 | Python 3.3+.") | |
3f641af0 | 1178 | (license license:x11))) |
0352532e AE |
1179 | |
1180 | (define-public python2-simplejson | |
1181 | (package-with-python2 python-simplejson)) | |
421a80a2 AE |
1182 | |
1183 | ||
ed07b08d | 1184 | (define-public python-pyicu |
421a80a2 | 1185 | (package |
ed07b08d | 1186 | (name "python-pyicu") |
d3b29319 | 1187 | (version "1.9.2") |
421a80a2 AE |
1188 | (source |
1189 | (origin | |
1190 | (method url-fetch) | |
1191 | (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-" | |
1192 | version ".tar.gz")) | |
1193 | (sha256 | |
1194 | (base32 | |
d3b29319 | 1195 | "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v")))) |
421a80a2 AE |
1196 | (build-system python-build-system) |
1197 | (inputs | |
1198 | `(("icu4c" ,icu4c))) | |
421a80a2 | 1199 | (home-page "http://pyicu.osafoundation.org/") |
9e771e3b | 1200 | (synopsis "Python extension wrapping the ICU C++ API") |
421a80a2 AE |
1201 | (description |
1202 | "PyICU is a python extension wrapping the ICU C++ API.") | |
3f641af0 | 1203 | (license license:x11) |
ed07b08d LF |
1204 | (properties `((python2-variant . ,(delay python2-pyicu)))))) |
1205 | ||
1206 | (define-public python2-pyicu | |
1207 | (package | |
1208 | (inherit (package-with-python2 | |
1209 | (strip-python2-variant python-pyicu))) | |
1210 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
cc20a22a LC |
1211 | |
1212 | (define-public python2-dogtail | |
1213 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and | |
1214 | ;; spaces in indentation" with Python 3. | |
1215 | (package | |
1216 | (name "python2-dogtail") | |
1217 | (version "0.8.2") | |
1218 | (source (origin | |
1219 | (method url-fetch) | |
1220 | (uri (string-append | |
1221 | "https://fedorahosted.org/released/dogtail/dogtail-" | |
1222 | version ".tar.gz")) | |
1223 | (sha256 | |
1224 | (base32 | |
1225 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) | |
1226 | (build-system python-build-system) | |
1227 | (arguments `(#:python ,python-2 | |
1228 | #:tests? #f)) ; invalid command "test" | |
1229 | (home-page "https://fedorahosted.org/dogtail/") | |
1230 | (synopsis "GUI test tool and automation framework written in Python") | |
1231 | (description | |
35b9e423 | 1232 | "Dogtail is a GUI test tool and automation framework written in Python. |
cc20a22a LC |
1233 | It uses Accessibility (a11y) technologies to communicate with desktop |
1234 | applications. dogtail scripts are written in Python and executed like any | |
1235 | other Python program.") | |
3f641af0 | 1236 | (license license:gpl2+))) |
515e6878 | 1237 | |
011b18c3 LC |
1238 | (define-public python2-empy |
1239 | (package | |
1240 | (name "python2-empy") | |
1241 | (version "3.3") | |
1242 | (source (origin | |
1243 | (method url-fetch) | |
1244 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" | |
1245 | version ".tar.gz")) | |
1246 | (sha256 | |
1247 | (base32 | |
1248 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) | |
1249 | (build-system python-build-system) | |
1250 | (arguments | |
1251 | `(#:python ,python-2 | |
1252 | #:phases (alist-replace | |
1253 | 'check | |
1254 | (lambda _ | |
1255 | (zero? (system* "./test.sh"))) | |
1256 | %standard-phases))) | |
1257 | (home-page "http://www.alcyone.com/software/empy/") | |
1258 | (synopsis "Templating system for Python") | |
1259 | (description | |
1260 | "EmPy is a system for embedding Python expressions and statements in | |
1261 | template text; it takes an EmPy source file, processes it, and produces | |
1262 | output. This is accomplished via expansions, which are special signals to the | |
1cd4027c | 1263 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
011b18c3 LC |
1264 | EmPy can expand arbitrary Python expressions and statements in this way, as |
1265 | well as a variety of special forms. Textual data not explicitly delimited in | |
1266 | this way is sent unaffected to the output, allowing Python to be used in | |
1267 | effect as a markup language. Also supported are callbacks via hooks, | |
1268 | recording and playback via diversions, and dynamic, chainable filters. The | |
1269 | system is highly configurable via command line options and embedded | |
1270 | commands.") | |
3f641af0 | 1271 | (license license:lgpl2.1+))) |
011b18c3 | 1272 | |
8deeda0c LC |
1273 | (define-public python2-element-tree |
1274 | (package | |
1275 | (name "python2-element-tree") | |
1276 | (version "1.2.6") | |
1277 | (source (origin | |
1278 | (method url-fetch) | |
1279 | (uri (string-append | |
1280 | "http://effbot.org/media/downloads/elementtree-" | |
1281 | version "-20050316.tar.gz")) | |
1282 | (sha256 | |
1283 | (base32 | |
1284 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) | |
1285 | (build-system python-build-system) | |
1286 | (arguments | |
1287 | `(#:python ,python-2 ; seems to be part of Python 3 | |
1288 | #:tests? #f)) ; no 'test' sub-command | |
1289 | (synopsis "Toolkit for XML processing in Python") | |
1290 | (description | |
1291 | "ElementTree is a Python library supporting lightweight XML processing.") | |
1292 | (home-page "http://effbot.org/zone/element-index.htm") | |
3f641af0 DC |
1293 | (license (license:x11-style |
1294 | "http://docs.python.org/2/license.html" | |
1295 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) | |
8deeda0c LC |
1296 | |
1297 | (define-public python2-pybugz | |
1298 | (package | |
1299 | (name "python2-pybugz") | |
1300 | (version "0.6.11") | |
1301 | (source (origin | |
1302 | (method url-fetch) | |
1303 | (uri (string-append | |
1304 | "http://bits.liquidx.net/projects/pybugz/pybugz-" | |
1305 | version ".tar.gz")) | |
1306 | (sha256 | |
1307 | (base32 | |
6f194a1e | 1308 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
fc1adab1 AK |
1309 | (patches (search-patches "pybugz-stty.patch" |
1310 | "pybugz-encode-error.patch")))) | |
8deeda0c LC |
1311 | (build-system python-build-system) |
1312 | (arguments | |
1313 | `(#:python ,python-2 ; SyntaxError with Python 3 | |
1314 | #:tests? #f)) ; no 'test' sub-command | |
1315 | (inputs `(("element-tree" ,python2-element-tree))) | |
1316 | (synopsis "Python and command-line interface to Bugzilla") | |
1317 | (description | |
1318 | "PyBugz is a Python library and command-line tool to query the Bugzilla | |
1319 | bug tracking system. It is meant as an aid to speed up interaction with the | |
1320 | bug tracker.") | |
1321 | (home-page "http://www.liquidx.net/pybugz/") | |
3f641af0 | 1322 | (license license:gpl2))) |
8deeda0c | 1323 | |
a480bc41 EB |
1324 | (define-public python-enum34 |
1325 | (package | |
1326 | (name "python-enum34") | |
d39ae1e5 | 1327 | (version "1.1.0") |
a480bc41 EB |
1328 | (source |
1329 | (origin | |
1330 | (method url-fetch) | |
d39ae1e5 | 1331 | (uri (pypi-uri "enum34" version)) |
a480bc41 EB |
1332 | (sha256 |
1333 | (base32 | |
d39ae1e5 | 1334 | "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp")))) |
a480bc41 | 1335 | (build-system python-build-system) |
a480bc41 EB |
1336 | (arguments |
1337 | `(#:phases | |
1338 | (alist-replace | |
1339 | 'check | |
1340 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) | |
1341 | %standard-phases))) | |
1342 | (home-page "https://pypi.python.org/pypi/enum34") | |
1343 | (synopsis "Backported Python 3.4 Enum") | |
1344 | (description | |
1345 | "Enum34 is the new Python stdlib enum module available in Python 3.4 | |
1346 | backported for previous versions of Python from 2.4 to 3.3.") | |
3f641af0 | 1347 | (license license:bsd-3))) |
a480bc41 | 1348 | |
820acd1b LF |
1349 | (define-public python2-enum34 |
1350 | (package-with-python2 python-enum34)) | |
1351 | ||
a480bc41 EB |
1352 | (define-public python-parse-type |
1353 | (package | |
1354 | (name "python-parse-type") | |
1355 | (version "0.3.4") | |
1356 | (source | |
1357 | (origin | |
1358 | (method url-fetch) | |
1359 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
1360 | "parse_type/parse_type-" version ".tar.gz")) | |
1361 | (sha256 | |
1362 | (base32 | |
1363 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) | |
1364 | (build-system python-build-system) | |
1365 | (inputs | |
1366 | `(("python-setuptools" ,python-setuptools) | |
1367 | ("python-six" ,python-six) | |
68f1cdec | 1368 | ("python-parse" ,python-parse))) |
a480bc41 EB |
1369 | (arguments '(#:tests? #f)) ;TODO: tests require pytest |
1370 | (home-page "https://github.com/jenisys/parse_type") | |
1371 | (synopsis "Extended parse module") | |
1372 | (description | |
1373 | "Parse_type extends the python parse module.") | |
3f641af0 | 1374 | (license license:bsd-3))) |
a480bc41 EB |
1375 | |
1376 | (define-public python-parse | |
1377 | (package | |
1378 | (name "python-parse") | |
eb3d3503 | 1379 | (version "1.6.6") |
a480bc41 EB |
1380 | (source |
1381 | (origin | |
1382 | (method url-fetch) | |
eb3d3503 | 1383 | (uri (pypi-uri "parse" version)) |
a480bc41 EB |
1384 | (sha256 |
1385 | (base32 | |
eb3d3503 | 1386 | "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi")))) |
a480bc41 EB |
1387 | (build-system python-build-system) |
1388 | (arguments | |
1389 | `(#:phases | |
1390 | (alist-replace | |
1391 | 'check | |
1392 | (lambda _ (zero? (system* "python" "test_parse.py"))) | |
1393 | %standard-phases))) | |
1394 | (home-page "https://github.com/r1chardj0n3s/parse") | |
1395 | (synopsis "Parse strings") | |
1396 | (description | |
1397 | "Parse strings using a specification based on the Python format() | |
1398 | syntax.") | |
3f641af0 | 1399 | (license license:x11))) |
a480bc41 EB |
1400 | |
1401 | ||
515e6878 LC |
1402 | (define-public scons |
1403 | (package | |
1404 | (name "scons") | |
a3f61425 | 1405 | (version "2.3.4") |
515e6878 LC |
1406 | (source (origin |
1407 | (method url-fetch) | |
de67e922 LF |
1408 | (uri (string-append "mirror://sourceforge/scons/scons/" version |
1409 | "/scons-" version ".tar.gz")) | |
515e6878 LC |
1410 | (sha256 |
1411 | (base32 | |
a3f61425 | 1412 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
515e6878 LC |
1413 | (build-system python-build-system) |
1414 | (arguments | |
1415 | ;; With Python 3.x, fails to build with a syntax error. | |
1416 | `(#:python ,python-2 | |
1417 | #:tests? #f)) ; no 'python setup.py test' command | |
1418 | (home-page "http://scons.org/") | |
1419 | (synopsis "Software construction tool written in Python") | |
1420 | (description | |
1421 | "SCons is a software construction tool. Think of SCons as an improved, | |
1422 | cross-platform substitute for the classic Make utility with integrated | |
1423 | functionality similar to autoconf/automake and compiler caches such as ccache. | |
1424 | In short, SCons is an easier, more reliable and faster way to build | |
1425 | software.") | |
3f641af0 | 1426 | (license license:x11))) |
011b18c3 | 1427 | |
c15a5c0e DT |
1428 | (define-public python-extras |
1429 | (package | |
1430 | (name "python-extras") | |
1431 | (version "0.0.3") | |
1432 | (source | |
1433 | (origin | |
1434 | (method url-fetch) | |
1435 | (uri (string-append | |
1436 | "https://pypi.python.org/packages/source/e/extras/extras-" | |
1437 | version ".tar.gz")) | |
1438 | (sha256 | |
1439 | (base32 | |
1440 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) | |
1441 | (build-system python-build-system) | |
1442 | (inputs | |
1443 | `(("python-setuptools" ,python-setuptools))) | |
1444 | (arguments | |
1445 | ;; error in setup.cfg: command 'test' has no such option 'buffer' | |
1446 | '(#:tests? #f)) | |
1447 | (home-page "https://github.com/testing-cabal/extras") | |
1448 | (synopsis "Useful extensions to the Python standard library") | |
1449 | (description | |
1450 | "Extras is a set of extensions to the Python standard library.") | |
bd3fa666 | 1451 | (license license:expat))) |
c15a5c0e DT |
1452 | |
1453 | (define-public python2-extras | |
1454 | (package-with-python2 python-extras)) | |
1455 | ||
56ea0efd DT |
1456 | (define-public python-mimeparse |
1457 | (package | |
1458 | (name "python-mimeparse") | |
1459 | (version "0.1.4") | |
1460 | (source | |
1461 | (origin | |
1462 | (method url-fetch) | |
1463 | (uri (string-append | |
1464 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" | |
1465 | version ".tar.gz")) | |
1466 | (sha256 | |
1467 | (base32 | |
1468 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) | |
1469 | (build-system python-build-system) | |
1470 | (inputs | |
1471 | `(("python-setuptools" ,python-setuptools))) | |
1472 | (arguments | |
1473 | '(#:tests? #f)) ; no setup.py test command | |
1474 | (home-page | |
1475 | "https://github.com/dbtsai/python-mimeparse") | |
9e771e3b | 1476 | (synopsis "Python library for parsing MIME types") |
56ea0efd DT |
1477 | (description |
1478 | "Mimeparse provides basic functions for parsing MIME type names and | |
1479 | matching them against a list of media-ranges.") | |
bd3fa666 | 1480 | (license license:expat))) |
56ea0efd DT |
1481 | |
1482 | (define-public python2-mimeparse | |
1483 | (package-with-python2 python-mimeparse)) | |
1484 | ||
4435427e DT |
1485 | (define-public python-nose |
1486 | (package | |
1487 | (name "python-nose") | |
f7cb9841 | 1488 | (version "1.3.7") |
4435427e DT |
1489 | (source |
1490 | (origin | |
1491 | (method url-fetch) | |
f7cb9841 | 1492 | (uri (pypi-uri "nose" version)) |
4435427e DT |
1493 | (sha256 |
1494 | (base32 | |
f7cb9841 | 1495 | "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi")))) |
4435427e DT |
1496 | (build-system python-build-system) |
1497 | (inputs | |
1498 | `(("python-setuptools" ,python-setuptools))) | |
1499 | (arguments | |
1500 | '(#:tests? #f)) ; FIXME: test suite fails | |
1501 | (home-page "http://readthedocs.org/docs/nose/") | |
1502 | (synopsis "Python testing library") | |
1503 | (description | |
1504 | "Nose extends the unittest library to make testing easier.") | |
3f641af0 | 1505 | (license license:lgpl2.0+))) |
4435427e DT |
1506 | |
1507 | (define-public python2-nose | |
1508 | (package-with-python2 python-nose)) | |
1509 | ||
0aea283a EF |
1510 | (define-public python-nose2 |
1511 | (package | |
1512 | (name "python-nose2") | |
1513 | (version "0.6.5") | |
1514 | (source | |
1515 | (origin | |
1516 | (method url-fetch) | |
1517 | (uri (pypi-uri "nose2" version)) | |
1518 | (sha256 | |
1519 | (base32 | |
1520 | "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7")))) | |
1521 | (build-system python-build-system) | |
1522 | (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector' | |
1523 | (native-inputs | |
1524 | `(("python-setuptools" ,python-setuptools))) | |
1525 | (inputs | |
1526 | `(("python-cov-core" ,python-cov-core) | |
1527 | ("python-pytest-cov" ,python-pytest-cov) | |
1528 | ("python-six" ,python-six))) | |
1529 | (home-page "https://github.com/nose-devs/nose2") | |
1530 | (synopsis "Next generation of nicer testing for Python") | |
1531 | (description | |
1532 | "Nose2 is the next generation of nicer testing for Python, based on the | |
1533 | plugins branch of unittest2. Nose2 aims to improve on nose by providing a | |
1534 | better plugin api, being easier for users to configure, and simplifying internal | |
1535 | interfaces and processes.") | |
1536 | (license license:bsd-2))) | |
1537 | ||
1538 | (define-public python2-nose2 | |
1539 | (package-with-python2 python-nose2)) | |
1540 | ||
6cd9c356 DT |
1541 | (define-public python-unittest2 |
1542 | (package | |
1543 | (name "python-unittest2") | |
1544 | (version "0.5.1") | |
1545 | (source | |
1546 | (origin | |
1547 | (method url-fetch) | |
1548 | (uri (string-append | |
1549 | "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-" | |
1550 | version ".tar.gz")) | |
1551 | (sha256 | |
1552 | (base32 | |
1553 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) | |
1554 | (build-system python-build-system) | |
1555 | (inputs | |
1556 | `(("python-setuptools" ,python-setuptools))) | |
1557 | (home-page "http://pypi.python.org/pypi/unittest2") | |
1558 | (synopsis "Python unit testing library") | |
1559 | (description | |
1560 | "Unittest2 is a replacement for the unittest module in the Python | |
1561 | standard library.") | |
3f641af0 | 1562 | (license license:psfl))) |
6cd9c356 DT |
1563 | |
1564 | (define-public python2-unittest2 | |
1565 | (package (inherit python-unittest2) | |
1566 | (name "python2-unittest2") | |
1567 | (version "0.5.1") | |
1568 | (source | |
1569 | (origin | |
1570 | (method url-fetch) | |
1571 | (uri (string-append | |
1572 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" | |
1573 | version ".tar.gz")) | |
1574 | (sha256 | |
1575 | (base32 | |
1576 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) | |
1577 | (inputs | |
7957fe6c | 1578 | `(("python2-setuptools" ,python2-setuptools))) |
6cd9c356 DT |
1579 | (arguments |
1580 | `(#:python ,python-2 | |
1581 | #:tests? #f)))) ; no setup.py test command | |
1582 | ||
542ad60f DT |
1583 | (define-public python-py |
1584 | (package | |
1585 | (name "python-py") | |
71c8a804 | 1586 | (version "1.4.31") |
542ad60f DT |
1587 | (source |
1588 | (origin | |
1589 | (method url-fetch) | |
71c8a804 | 1590 | (uri (pypi-uri "py" version)) |
542ad60f DT |
1591 | (sha256 |
1592 | (base32 | |
71c8a804 | 1593 | "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56")))) |
542ad60f DT |
1594 | (build-system python-build-system) |
1595 | (inputs | |
1596 | `(("python-setuptools" ,python-setuptools))) | |
1597 | (home-page "http://pylib.readthedocs.org/") | |
1598 | (synopsis "Python library for parsing, I/O, instrospection, and logging") | |
1599 | (description | |
1600 | "Py is a Python library for file name parsing, .ini file parsing, I/O, | |
1601 | code introspection, and logging.") | |
bd3fa666 | 1602 | (license license:expat))) |
542ad60f DT |
1603 | |
1604 | (define-public python2-py | |
1605 | (package-with-python2 python-py)) | |
1606 | ||
855d4761 DT |
1607 | (define-public python-pytest |
1608 | (package | |
1609 | (name "python-pytest") | |
61a4332d | 1610 | (version "2.7.3") |
855d4761 DT |
1611 | (source |
1612 | (origin | |
1613 | (method url-fetch) | |
1614 | (uri (string-append | |
1615 | "https://pypi.python.org/packages/source/p/pytest/pytest-" | |
1616 | version ".tar.gz")) | |
1617 | (sha256 | |
1618 | (base32 | |
61a4332d | 1619 | "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm")) |
855d4761 DT |
1620 | (modules '((guix build utils))) |
1621 | (snippet | |
1622 | ;; One of the tests involves the /usr directory, so it fails. | |
1623 | '(substitute* "testing/test_argcomplete.py" | |
1624 | (("def test_remove_dir_prefix\\(self\\):") | |
1625 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) | |
1626 | (build-system python-build-system) | |
1627 | (inputs | |
1628 | `(("python-setuptools" ,python-setuptools) | |
1629 | ("python-py" ,python-py) | |
1630 | ("python-nose" ,python-nose) | |
1631 | ("python-mock" ,python-mock))) | |
1632 | (home-page "http://pytest.org") | |
1633 | (synopsis "Python testing library") | |
1634 | (description | |
1635 | "Pytest is a testing tool that provides auto-discovery of test modules | |
1636 | and functions, detailed info on failing assert statements, modular fixtures, | |
1637 | and many external plugins.") | |
bd3fa666 | 1638 | (license license:expat))) |
855d4761 DT |
1639 | |
1640 | (define-public python2-pytest | |
1641 | (package-with-python2 python-pytest)) | |
1642 | ||
358c3d61 EF |
1643 | (define-public python-pytest-cov |
1644 | (package | |
1645 | (name "python-pytest-cov") | |
545f4a1c | 1646 | (version "2.2.1") |
358c3d61 EF |
1647 | (source |
1648 | (origin | |
1649 | (method url-fetch) | |
1650 | (uri (pypi-uri "pytest-cov" version)) | |
1651 | (sha256 | |
545f4a1c EF |
1652 | (base32 |
1653 | "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8")))) | |
10468636 | 1654 | (build-system python-build-system) |
545f4a1c | 1655 | (inputs |
10468636 EF |
1656 | `(("python-coverage" ,python-coverage) |
1657 | ("python-pytest" ,python-pytest))) | |
10468636 EF |
1658 | (home-page "https://github.com/pytest-dev/pytest-cov") |
1659 | (synopsis "Pytest plugin for measuring coverage") | |
1660 | (description | |
1661 | "Pytest-cov produces coverage reports. It supports centralised testing and | |
1662 | distributed testing in both @code{load} and @code{each} modes. It also | |
1663 | supports coverage of subprocesses.") | |
545f4a1c EF |
1664 | (license license:expat) |
1665 | (properties `((python2-variant . ,(delay python2-pytest-cov)))))) | |
358c3d61 EF |
1666 | |
1667 | (define-public python2-pytest-cov | |
545f4a1c EF |
1668 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-cov)))) |
1669 | (package | |
1670 | (inherit base) | |
1671 | (inputs `(("python2-setuptools" ,python2-setuptools) | |
1672 | ,@(package-inputs base)))))) | |
358c3d61 | 1673 | |
6784f2e3 RW |
1674 | (define-public python-pytest-runner |
1675 | (package | |
1676 | (name "python-pytest-runner") | |
1677 | (version "2.6.2") | |
1678 | (source | |
1679 | (origin | |
1680 | (method url-fetch) | |
54cd239b | 1681 | (uri (pypi-uri "pytest-runner" version)) |
6784f2e3 RW |
1682 | (sha256 |
1683 | (base32 | |
1684 | "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) | |
1685 | (build-system python-build-system) | |
1686 | (arguments | |
1687 | `(#:phases | |
1688 | (modify-phases %standard-phases | |
1689 | ;; The fancy way of setting the version with setuptools_scm does not | |
1690 | ;; seem to work here. | |
1691 | (add-after 'unpack 'set-version | |
1692 | (lambda _ | |
1693 | (substitute* "docs/conf.py" | |
1694 | (("version = setuptools_scm\\.get_version\\(root='\\.\\.')") | |
1695 | (string-append "version = \"" ,version "\""))) | |
1696 | #t))))) | |
1697 | (native-inputs | |
1698 | `(("python-pytest" ,python-pytest) | |
1699 | ("python-setuptools-scm" ,python-setuptools-scm))) | |
54cd239b | 1700 | (home-page "https://github.com/pytest-dev/pytest-runner") |
6784f2e3 RW |
1701 | (synopsis "Invoke py.test as a distutils command") |
1702 | (description | |
1703 | "This package provides a @command{pytest-runner} command that | |
1704 | @file{setup.py} files can use to run tests.") | |
54cd239b EF |
1705 | (license license:expat) |
1706 | (properties `((python2-variant . ,(delay python2-pytest-runner)))))) | |
1707 | ||
1708 | (define-public python2-pytest-runner | |
1709 | (let ((base (package-with-python2 | |
1710 | (strip-python2-variant python-pytest-runner)))) | |
1711 | (package | |
1712 | (inherit base) | |
1713 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
1714 | ,@(package-native-inputs base)))))) | |
6784f2e3 RW |
1715 | |
1716 | (define-public python2-pytest-runner | |
1717 | (package-with-python2 python-pytest-runner)) | |
1718 | ||
44547e51 EF |
1719 | (define-public python-pytest-mock |
1720 | (package | |
1721 | (name "python-pytest-mock") | |
1722 | (version "1.2") | |
1723 | (source | |
1724 | (origin | |
1725 | (method url-fetch) | |
1726 | (uri (pypi-uri "pytest-mock" version ".zip")) | |
1727 | (sha256 | |
1728 | (base32 | |
1729 | "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp")))) | |
1730 | (build-system python-build-system) | |
1731 | (native-inputs | |
1732 | `(("unzip" ,unzip))) | |
1733 | (inputs | |
1734 | `(("python-py" ,python-py) | |
1735 | ("python-pytest" ,python-pytest))) | |
1736 | (home-page "https://github.com/pytest-dev/pytest-mock/") | |
1737 | (synopsis "Thin-wrapper around the mock package for easier use with py.test") | |
1738 | (description | |
1739 | "This plugin installs a @code{mocker} fixture which is a thin-wrapper | |
1740 | around the patching API provided by the @code{mock} package, but with the | |
1741 | benefit of not having to worry about undoing patches at the end of a test. | |
1742 | The mocker fixture has the same API as @code{mock.patch}, supporting the | |
1743 | same arguments.") | |
1744 | (properties `((python2-variant . ,(delay python2-pytest-mock)))) | |
1745 | (license license:expat))) | |
1746 | ||
1747 | (define-public python2-pytest-mock | |
1748 | (let ((base (package-with-python2 | |
1749 | (strip-python2-variant python-pytest-mock)))) | |
1750 | (package (inherit base) | |
1751 | (native-inputs | |
1752 | `(("python2-setuptools" ,python2-setuptools) | |
1753 | ,@(package-native-inputs base))) | |
1754 | (inputs | |
1755 | `(("python2-mock" ,python2-mock) | |
1756 | ,@(package-inputs base)))))) | |
1757 | ||
8fa58fc9 CAW |
1758 | (define-public python-pytest-xdist |
1759 | (package | |
1760 | (name "python-pytest-xdist") | |
1761 | (version "1.14") | |
1762 | (source | |
1763 | (origin | |
1764 | (method url-fetch) | |
1765 | (uri (pypi-uri "pytest-xdist" version ".zip")) | |
1766 | (sha256 | |
1767 | (base32 | |
1768 | "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja")))) | |
1769 | (build-system python-build-system) | |
1770 | (native-inputs | |
1771 | `(("unzip" ,unzip) | |
8fa58fc9 | 1772 | ("python-setuptools-scm" ,python-setuptools-scm))) |
fbe9abcc EF |
1773 | (inputs |
1774 | `(("python-apipkg" ,python-apipkg) | |
1775 | ("python-execnet" ,python-execnet) | |
8fa58fc9 CAW |
1776 | ("python-pytest" ,python-pytest) |
1777 | ("python-py" ,python-py))) | |
1778 | (home-page | |
1779 | "https://github.com/pytest-dev/pytest-xdist") | |
1780 | (synopsis | |
1781 | "Plugin for py.test with distributed testing and loop-on-failing modes") | |
1782 | (description | |
1783 | "The pytest-xdist plugin extends py.test with some unique test execution | |
1784 | modes: parallelization, running tests in boxed subprocesses, the ability | |
1785 | to run tests repeatedly when failed, and the ability to run tests on multiple | |
1786 | Python interpreters or platforms. It uses rsync to copy the existing | |
1787 | program code to a remote location, executes there, and then syncs the | |
1788 | result back.") | |
fbe9abcc EF |
1789 | (license license:expat) |
1790 | (properties `((python2-variant . ,(delay python2-pytest-xdist)))))) | |
8fa58fc9 CAW |
1791 | |
1792 | (define-public python2-pytest-xdist | |
fbe9abcc EF |
1793 | (let ((base (package-with-python2 |
1794 | (strip-python2-variant python-pytest-xdist)))) | |
1795 | (package | |
1796 | (inherit base) | |
1797 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
1798 | ,@(package-native-inputs base)))))) | |
8fa58fc9 | 1799 | |
84d24017 DT |
1800 | (define-public python-scripttest |
1801 | (package | |
1802 | (name "python-scripttest") | |
1803 | (version "1.3") | |
1804 | (source | |
1805 | (origin | |
1806 | (method url-fetch) | |
1807 | (uri (string-append | |
1808 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" | |
1809 | version ".tar.gz")) | |
1810 | (sha256 | |
1811 | (base32 | |
1812 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) | |
1813 | (build-system python-build-system) | |
1814 | (inputs | |
1815 | `(("python-setuptools" ,python-setuptools) | |
1816 | ("python-pytest" ,python-pytest))) | |
1817 | (home-page "http://pythonpaste.org/scripttest/") | |
1818 | (synopsis "Python library to test command-line scripts") | |
1819 | (description "Scripttest is a Python helper library for testing | |
1820 | interactive command-line applications. With it you can run a script in a | |
1821 | subprocess and see the output as well as any file modifications.") | |
bd3fa666 | 1822 | (license license:expat))) |
84d24017 DT |
1823 | |
1824 | (define-public python2-scripttest | |
1825 | (package-with-python2 python-scripttest)) | |
1826 | ||
d8fa80e1 DT |
1827 | (define-public python-testtools |
1828 | (package | |
1829 | (name "python-testtools") | |
1830 | (version "1.0.0") | |
1831 | (source | |
1832 | (origin | |
1833 | (method url-fetch) | |
1834 | (uri (string-append | |
1835 | "https://pypi.python.org/packages/source/t/testtools/testtools-" | |
1836 | version ".tar.gz")) | |
1837 | (sha256 | |
1838 | (base32 | |
1839 | "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx")))) | |
1840 | (build-system python-build-system) | |
0e88cbf8 CR |
1841 | (propagated-inputs |
1842 | `(("python-mimeparse" ,python-mimeparse))) | |
d8fa80e1 DT |
1843 | (inputs |
1844 | `(("python-setuptools" ,python-setuptools) | |
d8fa80e1 DT |
1845 | ("python-extras" ,python-extras))) |
1846 | (home-page "https://github.com/testing-cabal/testtools") | |
1847 | (synopsis | |
1848 | "Extensions to the Python standard library unit testing framework") | |
1849 | (description | |
1850 | "Testtools extends the Python standard library unit testing framework to | |
1851 | provide matchers, more debugging information, and cross-Python | |
1852 | compatibility.") | |
3f641af0 | 1853 | (license license:psfl))) |
d8fa80e1 DT |
1854 | |
1855 | (define-public python2-testtools | |
1856 | (package-with-python2 python-testtools)) | |
1857 | ||
5bf3afea DT |
1858 | (define-public python-testscenarios |
1859 | (package | |
1860 | (name "python-testscenarios") | |
1861 | (version "0.4") | |
1862 | (source | |
1863 | (origin | |
1864 | (method url-fetch) | |
1865 | (uri (string-append | |
1866 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" | |
1867 | version ".tar.gz")) | |
1868 | (sha256 | |
1869 | (base32 | |
1870 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) | |
1871 | (build-system python-build-system) | |
1872 | (inputs | |
1873 | `(("python-setuptools" ,python-setuptools) | |
1874 | ("python-testtools" ,python-testtools) | |
1875 | ("python-mimeparse" ,python-mimeparse))) | |
1876 | (home-page "https://launchpad.net/testscenarios") | |
1877 | (synopsis "Pyunit extension for dependency injection") | |
1878 | (description | |
1879 | "Testscenarios provides clean dependency injection for Python unittest | |
1880 | style tests.") | |
3f641af0 | 1881 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
5bf3afea DT |
1882 | |
1883 | (define-public python2-testscenarios | |
1884 | (package-with-python2 python-testscenarios)) | |
1885 | ||
dac79ecc DT |
1886 | (define-public python-testresources |
1887 | (package | |
1888 | (name "python-testresources") | |
1889 | (version "0.2.7") | |
1890 | (source | |
1891 | (origin | |
1892 | (method url-fetch) | |
1893 | (uri (string-append | |
1894 | "https://pypi.python.org/packages/source/t/testresources/testresources-" | |
1895 | version ".tar.gz")) | |
1896 | (sha256 | |
1897 | (base32 | |
1898 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) | |
1899 | (build-system python-build-system) | |
1900 | (inputs | |
1901 | `(("python-setuptools" ,python-setuptools))) | |
1902 | (home-page "https://launchpad.net/testresources") | |
1903 | (synopsis | |
1904 | "Pyunit extension for managing test resources") | |
1905 | (description | |
1906 | "Testresources is an extension to Python's unittest to allow declarative | |
1907 | use of resources by test cases.") | |
3f641af0 | 1908 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
dac79ecc DT |
1909 | |
1910 | (define-public python2-testresources | |
1911 | (package-with-python2 python-testresources)) | |
1912 | ||
070ab058 DT |
1913 | (define-public python-subunit |
1914 | (package | |
1915 | (name "python-subunit") | |
1916 | (version "0.0.21") | |
1917 | (source | |
1918 | (origin | |
1919 | (method url-fetch) | |
1920 | (uri (string-append | |
1921 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" | |
1922 | version ".tar.gz")) | |
1923 | (sha256 | |
1924 | (base32 | |
1925 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) | |
1926 | (build-system python-build-system) | |
1927 | (inputs | |
1928 | `(("python-setuptools" ,python-setuptools) | |
1929 | ("python-testtools" ,python-testtools) | |
1930 | ("python-mimeparse" ,python-mimeparse) | |
1931 | ("python-testscenarios" ,python-testscenarios))) | |
1932 | (home-page "http://launchpad.net/subunit") | |
1933 | (synopsis "Python implementation of the subunit protocol") | |
1934 | (description | |
1935 | "Python-subunit is a Python implementation of the subunit test streaming | |
1936 | protocol.") | |
3f641af0 | 1937 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
070ab058 DT |
1938 | |
1939 | (define-public python2-subunit | |
1940 | (package-with-python2 python-subunit)) | |
1941 | ||
7787ef76 CR |
1942 | ;; Recent versions of python-fixtures need a recent version of python-pbr, |
1943 | ;; which needs a recent version of python-fixtures. To fix this circular | |
1944 | ;; dependency, we keep old versions of python-fixtures and python-pbr to | |
1945 | ;; bootstrap the whole thing: | |
1946 | ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11 | |
1947 | ;; - python-pbr-0.11 is used to build python-fixtures | |
1948 | ;; - python-fixtures is used to build python-pbr | |
1949 | (define-public python-fixtures-0.3.16 | |
cd49454b DT |
1950 | (package |
1951 | (name "python-fixtures") | |
1952 | (version "0.3.16") | |
1953 | (source | |
1954 | (origin | |
1955 | (method url-fetch) | |
1956 | (uri (string-append | |
1957 | "https://pypi.python.org/packages/source/f/fixtures/fixtures-" | |
1958 | version ".tar.gz")) | |
1959 | (sha256 | |
1960 | (base32 | |
1961 | "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc")))) | |
1962 | (build-system python-build-system) | |
1963 | (inputs | |
1964 | `(("python-setuptools" ,python-setuptools))) | |
1965 | (arguments | |
1966 | '(#:tests? #f)) ; no setup.py test command | |
1967 | (home-page "https://launchpad.net/python-fixtures") | |
1968 | (synopsis "Python test fixture library") | |
1969 | (description | |
1970 | "Fixtures provides a way to create reusable state, useful when writing | |
1971 | Python tests.") | |
3f641af0 | 1972 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
cd49454b | 1973 | |
7787ef76 CR |
1974 | (define-public python2-fixtures-0.3.16 |
1975 | (package-with-python2 python-fixtures-0.3.16)) | |
1976 | ||
1977 | (define-public python-pbr-0.11 | |
1978 | (package | |
1979 | (name "python-pbr") | |
1980 | (version "0.11.0") | |
1981 | (source | |
1982 | (origin | |
1983 | (method url-fetch) | |
1984 | (uri (string-append | |
1985 | "https://pypi.python.org/packages/source/p/pbr/pbr-" | |
1986 | version ".tar.gz")) | |
1987 | (sha256 | |
1988 | (base32 | |
1989 | "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p")))) | |
1990 | (build-system python-build-system) | |
1991 | (arguments | |
1992 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
1993 | (inputs | |
1994 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) | |
1995 | ("python-pip" ,python-pip) | |
1996 | ("python-setuptools" ,python-setuptools))) | |
1997 | (home-page "https://launchpad.net/pbr") | |
1998 | (synopsis "Change the default behavior of Python’s setuptools") | |
1999 | (description | |
2000 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
2001 | and sensible default behaviors into your setuptools run.") | |
3f641af0 | 2002 | (license license:asl2.0))) |
7787ef76 CR |
2003 | |
2004 | (define-public python2-pbr-0.11 | |
2005 | (package-with-python2 python-pbr-0.11)) | |
2006 | ||
1ef09c0c | 2007 | (define-public python-pbr |
e25f0174 BW |
2008 | (package |
2009 | (name "python-pbr") | |
1ef09c0c BW |
2010 | (version "1.8.1") |
2011 | (source | |
e25f0174 BW |
2012 | (origin |
2013 | (method url-fetch) | |
2014 | (uri (string-append | |
2015 | "https://pypi.python.org/packages/source/p/pbr/pbr-" | |
2016 | version | |
2017 | ".tar.gz")) | |
2018 | (sha256 | |
2019 | (base32 | |
2020 | "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) | |
1ef09c0c | 2021 | (build-system python-build-system) |
e25f0174 BW |
2022 | (arguments |
2023 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
2024 | (propagated-inputs | |
2025 | `(("python-testrepository" ,python-testrepository) | |
2026 | ("git" ,git))) ;; pbr actually uses the "git" binary. | |
1ef09c0c | 2027 | (inputs |
e25f0174 BW |
2028 | `(("python-fixtures" ,python-fixtures) |
2029 | ("python-mimeparse" ,python-mimeparse) | |
2030 | ("python-mock" ,python-mock) | |
2031 | ("python-setuptools" ,python-setuptools) | |
2032 | ("python-six" ,python-six) | |
2033 | ("python-sphinx" ,python-sphinx) | |
2034 | ("python-testrepository" ,python-testrepository) | |
2035 | ("python-testresources" ,python-testresources) | |
2036 | ("python-testscenarios" ,python-testscenarios) | |
2037 | ("python-testtools" ,python-testtools) | |
2038 | ("python-virtualenv" ,python-virtualenv))) | |
2039 | (home-page "https://launchpad.net/pbr") | |
2040 | (synopsis "Change the default behavior of Python’s setuptools") | |
2041 | (description | |
2042 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
2043 | and sensible default behaviors into your setuptools run.") | |
3f641af0 | 2044 | (license license:asl2.0))) |
1ef09c0c BW |
2045 | |
2046 | (define-public python2-pbr | |
e25f0174 | 2047 | (package-with-python2 python-pbr)) |
1ef09c0c | 2048 | |
7787ef76 CR |
2049 | (define-public python-fixtures |
2050 | (package | |
2051 | (name "python-fixtures") | |
13fcc6df | 2052 | (version "1.4.0") |
7787ef76 CR |
2053 | (source |
2054 | (origin | |
2055 | (method url-fetch) | |
13fcc6df | 2056 | (uri (pypi-uri "fixtures" version)) |
7787ef76 CR |
2057 | (sha256 |
2058 | (base32 | |
13fcc6df | 2059 | "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y")))) |
7787ef76 CR |
2060 | (build-system python-build-system) |
2061 | (propagated-inputs | |
2062 | `(("python-six" ,python-six) | |
2063 | ("python-pbr-0.11" ,python-pbr-0.11))) | |
2064 | (inputs | |
2065 | `(("python-pip" ,python-pip) | |
2066 | ("python-setuptools" ,python-setuptools) | |
2067 | ;; Tests | |
2068 | ("python-testtools" ,python-testtools))) | |
2069 | (arguments | |
2070 | '(#:tests? #f)) ; no setup.py test command | |
2071 | (home-page "https://launchpad.net/python-fixtures") | |
2072 | (synopsis "Python test fixture library") | |
2073 | (description | |
2074 | "Fixtures provides a way to create reusable state, useful when writing | |
2075 | Python tests.") | |
3f641af0 | 2076 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
7787ef76 | 2077 | |
cd49454b DT |
2078 | (define-public python2-fixtures |
2079 | (package-with-python2 python-fixtures)) | |
2080 | ||
b24a0c00 DT |
2081 | (define-public python-testrepository |
2082 | (package | |
2083 | (name "python-testrepository") | |
2084 | (version "0.0.20") | |
2085 | (source | |
2086 | (origin | |
2087 | (method url-fetch) | |
2088 | (uri (string-append | |
2089 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" | |
2090 | version ".tar.gz")) | |
2091 | (sha256 | |
2092 | (base32 | |
2093 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) | |
2094 | (build-system python-build-system) | |
05de40c5 | 2095 | (propagated-inputs |
7787ef76 | 2096 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) |
05de40c5 | 2097 | ("python-testtools" ,python-testtools))) |
b24a0c00 DT |
2098 | (inputs |
2099 | `(("python-setuptools" ,python-setuptools) | |
b24a0c00 | 2100 | ("python-subunit" ,python-subunit) |
b24a0c00 DT |
2101 | ("python-mimeparse" ,python-mimeparse))) |
2102 | (home-page "https://launchpad.net/testrepository") | |
2103 | (synopsis "Database for Python test results") | |
2104 | (description "Testrepository provides a database of test results which can | |
2105 | be used as part of a developer's workflow to check things such as what tests | |
2106 | have failed since the last commit or what tests are currently failing.") | |
3f641af0 | 2107 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
b24a0c00 DT |
2108 | |
2109 | (define-public python2-testrepository | |
2110 | (package-with-python2 python-testrepository)) | |
2111 | ||
243a009a DT |
2112 | (define-public python-coverage |
2113 | (package | |
2114 | (name "python-coverage") | |
4d4cf3dd | 2115 | (version "4.1") |
243a009a DT |
2116 | (source |
2117 | (origin | |
2118 | (method url-fetch) | |
82a3c582 | 2119 | (uri (pypi-uri "coverage" version)) |
243a009a DT |
2120 | (sha256 |
2121 | (base32 | |
4d4cf3dd | 2122 | "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1")))) |
243a009a DT |
2123 | (build-system python-build-system) |
2124 | (inputs | |
2125 | `(("python-setuptools" ,python-setuptools))) | |
2126 | (home-page "http://nedbatchelder.com/code/coverage") | |
2127 | (synopsis "Code coverage measurement for Python") | |
2128 | (description | |
2129 | "Coverage measures code coverage, typically during test execution. It | |
2130 | uses the code analysis tools and tracing hooks provided in the Python standard | |
2131 | library to determine which lines are executable, and which have been | |
2132 | executed.") | |
3f641af0 | 2133 | (license license:bsd-3))) |
243a009a DT |
2134 | |
2135 | (define-public python2-coverage | |
2136 | (package-with-python2 python-coverage)) | |
2137 | ||
12f839fd EF |
2138 | (define-public python-cov-core |
2139 | (package | |
2140 | (name "python-cov-core") | |
2141 | (version "1.15.0") | |
2142 | (source | |
2143 | (origin | |
2144 | (method url-fetch) | |
2145 | (uri (pypi-uri "cov-core" version)) | |
2146 | (sha256 | |
2147 | (base32 | |
2148 | "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a")))) | |
2149 | (build-system python-build-system) | |
2150 | (native-inputs | |
2151 | `(("python-coverage" ,python-coverage))) | |
2152 | (home-page "https://github.com/schlamar/cov-core") | |
2153 | (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov") | |
2154 | (description | |
2155 | "This is a library package for use by pytest-cov, nose-cov and nose2-cov. | |
2156 | It is useful for developing coverage plugins for these testing frameworks.") | |
2157 | (license license:expat))) | |
2158 | ||
2159 | (define-public python2-cov-core | |
2160 | (let ((cov-core (package-with-python2 python-cov-core))) | |
2161 | (package (inherit cov-core) | |
2162 | (native-inputs | |
2163 | `(("python2-setuptools" ,python2-setuptools) | |
2164 | ,@(package-native-inputs cov-core)))))) | |
2165 | ||
041358fb DT |
2166 | (define-public python-discover |
2167 | (package | |
2168 | (name "python-discover") | |
2169 | (version "0.4.0") | |
2170 | (source | |
2171 | (origin | |
2172 | (method url-fetch) | |
2173 | (uri (string-append | |
2174 | "https://pypi.python.org/packages/source/d/discover/discover-" | |
2175 | version ".tar.gz")) | |
2176 | (sha256 | |
2177 | (base32 | |
2178 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) | |
2179 | (build-system python-build-system) | |
2180 | (inputs | |
2181 | `(("python-setuptools" ,python-setuptools))) | |
2182 | (home-page "http://pypi.python.org/pypi/discover/") | |
2183 | (synopsis | |
2184 | "Python test discovery for unittest") | |
2185 | (description | |
2186 | "Discover provides test discovery for unittest, a feature that has been | |
e881752c | 2187 | backported from Python 2.7 for Python 2.4+.") |
3f641af0 | 2188 | (license license:bsd-3))) |
041358fb DT |
2189 | |
2190 | (define-public python2-discover | |
2191 | (package-with-python2 python-discover)) | |
2192 | ||
a480bc41 EB |
2193 | (define-public behave |
2194 | (package | |
2195 | (name "behave") | |
287cfd1a | 2196 | (version "1.2.5") |
a480bc41 EB |
2197 | (source (origin |
2198 | (method url-fetch) | |
287cfd1a | 2199 | (uri (pypi-uri "behave" version ".tar.bz2")) |
a480bc41 EB |
2200 | (sha256 |
2201 | (base32 | |
287cfd1a | 2202 | "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c")))) |
a480bc41 EB |
2203 | (build-system python-build-system) |
2204 | (inputs | |
2205 | `(("python-setuptools" ,python-setuptools) | |
2206 | ("python-six" ,python-six) | |
a480bc41 EB |
2207 | ("python-parse" ,python-parse) |
2208 | ("python-parse-type" ,python-parse-type))) | |
2209 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and | |
2210 | ;PyHamcrest>=1.8 | |
2211 | (home-page "http://github.com/behave/behave") | |
2212 | (synopsis "Python behavior-driven development") | |
2213 | (description | |
2214 | "Behave is a tool for behavior-driven development in python. | |
2215 | Behavior-driven development (or BDD) is an agile software development | |
2216 | technique that encourages collaboration between developers, QA and | |
2217 | non-technical or business participants in a software project. Behave uses | |
2218 | tests written in a natural language style, backed up by Python code.") | |
3f641af0 | 2219 | (license license:x11))) |
c7303d3c DT |
2220 | |
2221 | (define-public python-exif-read | |
2222 | (package | |
2223 | (name "python-exif-read") | |
2a2d0981 | 2224 | (version "2.1.2") |
c7303d3c DT |
2225 | (source (origin |
2226 | (method url-fetch) | |
2a2d0981 | 2227 | (uri (pypi-uri "ExifRead" version)) |
c7303d3c DT |
2228 | (sha256 |
2229 | (base32 | |
2a2d0981 | 2230 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
c7303d3c DT |
2231 | (build-system python-build-system) |
2232 | (inputs | |
2233 | `(("python-setuptools" ,python-setuptools))) | |
2234 | (arguments `(#:tests? #f)) ; no tests | |
2235 | (home-page "https://github.com/ianare/exif-py") | |
2236 | (synopsis "Python library to extract EXIF data from image files") | |
2237 | (description | |
2238 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg | |
2239 | files.") | |
3f641af0 | 2240 | (license license:bsd-3))) |
c7303d3c DT |
2241 | |
2242 | (define-public python2-exif-read | |
2243 | (package-with-python2 python-exif-read)) | |
d5f89b22 DT |
2244 | |
2245 | (define-public python-pyld | |
2246 | (package | |
2247 | (name "python-pyld") | |
af1ab773 | 2248 | (version "0.6.8") |
d5f89b22 DT |
2249 | (source (origin |
2250 | (method url-fetch) | |
af1ab773 | 2251 | (uri (pypi-uri "PyLD" version)) |
d5f89b22 DT |
2252 | (sha256 |
2253 | (base32 | |
af1ab773 | 2254 | "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad")))) |
d5f89b22 DT |
2255 | (build-system python-build-system) |
2256 | (inputs | |
2257 | `(("python-setuptools" ,python-setuptools))) | |
2258 | (arguments `(#:tests? #f)) ; no tests | |
2259 | (home-page "http://github.com/digitalbazaar/pyld") | |
2260 | (synopsis "Python implementation of the JSON-LD specification") | |
2261 | (description | |
2262 | "PyLD is an implementation of the JSON-LD specification.") | |
3f641af0 | 2263 | (license license:bsd-3))) |
d5f89b22 DT |
2264 | |
2265 | (define-public python2-pyld | |
2266 | (package-with-python2 python-pyld)) | |
3a1f9a68 DT |
2267 | |
2268 | (define-public python-certifi | |
2269 | (package | |
2270 | (name "python-certifi") | |
9a41f443 | 2271 | (version "2015.11.20.1") |
3a1f9a68 DT |
2272 | (source (origin |
2273 | (method url-fetch) | |
9a41f443 | 2274 | (uri (pypi-uri "certifi" version)) |
3a1f9a68 DT |
2275 | (sha256 |
2276 | (base32 | |
9a41f443 | 2277 | "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h")))) |
3a1f9a68 DT |
2278 | (build-system python-build-system) |
2279 | (inputs | |
2280 | `(("python-setuptools" ,python-setuptools))) | |
2281 | (arguments `(#:tests? #f)) ; no tests | |
2282 | (home-page "http://python-requests.org/") | |
2283 | (synopsis "Python CA certificate bundle") | |
2284 | (description | |
2285 | "Certifi is a Python library that contains a CA certificate bundle, which | |
2286 | is used by the Requests library to verify HTTPS requests.") | |
3f641af0 | 2287 | (license license:asl2.0))) |
3a1f9a68 DT |
2288 | |
2289 | (define-public python2-certifi | |
2290 | (package-with-python2 python-certifi)) | |
e6cfbd36 | 2291 | |
12c270dd RW |
2292 | (define-public python-click |
2293 | (package | |
2294 | (name "python-click") | |
43accb58 | 2295 | (version "6.6") |
12c270dd RW |
2296 | (source |
2297 | (origin | |
2298 | (method url-fetch) | |
43accb58 LF |
2299 | (uri (string-append |
2300 | "https://pypi.python.org/packages/" | |
2301 | "7a/00/c14926d8232b36b08218067bcd5853caefb4737cda3f0a47437151344792/" | |
2302 | "click-" version ".tar.gz")) | |
12c270dd | 2303 | (sha256 |
43accb58 LF |
2304 | (base32 |
2305 | "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) | |
12c270dd RW |
2306 | (build-system python-build-system) |
2307 | (native-inputs | |
2308 | `(("python-setuptools" ,python-setuptools))) | |
2309 | (home-page "http://click.pocoo.org") | |
2310 | (synopsis "Command line library for Python") | |
2311 | (description | |
2312 | "Click is a Python package for creating command line interfaces in a | |
2313 | composable way with as little code as necessary. Its name stands for | |
2314 | \"Command Line Interface Creation Kit\". It's highly configurable but comes | |
2315 | with sensible defaults out of the box.") | |
3f641af0 | 2316 | (license license:bsd-3))) |
12c270dd RW |
2317 | |
2318 | (define-public python2-click | |
2319 | (package-with-python2 python-click)) | |
2320 | ||
addc808d EF |
2321 | (define-public python-wheel |
2322 | (package | |
2323 | (name "python-wheel") | |
40981b5c | 2324 | (version "0.29.0") |
e1ba0749 EF |
2325 | (source |
2326 | (origin | |
2327 | (method url-fetch) | |
2328 | (uri (pypi-uri "wheel" version)) | |
2329 | (sha256 | |
2330 | (base32 | |
40981b5c | 2331 | "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy")))) |
e1ba0749 EF |
2332 | (build-system python-build-system) |
2333 | (native-inputs | |
2334 | `(("python-setuptools" ,python-setuptools) | |
2335 | ("python-jsonschema" ,python-jsonschema) | |
2336 | ("python-pytest-cov" ,python-pytest-cov))) | |
2337 | (home-page "https://bitbucket.org/pypa/wheel/") | |
2338 | (synopsis "Format for built Python packages") | |
2339 | (description | |
2340 | "A wheel is a ZIP-format archive with a specially formatted filename and | |
2341 | the @code{.whl} extension. It is designed to contain all the files for a PEP | |
2342 | 376 compatible install in a way that is very close to the on-disk format. Many | |
2343 | packages will be properly installed with only the @code{Unpack} step and the | |
2344 | unpacked archive preserves enough information to @code{Spread} (copy data and | |
2345 | scripts to their final locations) at any later time. Wheel files can be | |
2346 | installed with a newer @code{pip} or with wheel's own command line utility.") | |
8ad4ae20 LF |
2347 | (license license:expat) |
2348 | (properties `((python2-variant . ,(delay python2-wheel)))))) | |
addc808d EF |
2349 | |
2350 | (define-public python2-wheel | |
8ad4ae20 LF |
2351 | (let ((wheel (package-with-python2 |
2352 | (strip-python2-variant python-wheel)))) | |
264ae686 | 2353 | (package (inherit wheel) |
8ad4ae20 LF |
2354 | (native-inputs `(("python2-functools32" ,python2-functools32) |
2355 | ,@(package-native-inputs wheel)))))) | |
2356 | ||
addc808d | 2357 | |
ae641128 | 2358 | (define-public python-requests |
e6cfbd36 | 2359 | (package |
ae641128 | 2360 | (name "python-requests") |
74a066f9 | 2361 | (version "2.9.1") |
e6cfbd36 DT |
2362 | (source (origin |
2363 | (method url-fetch) | |
5d691657 | 2364 | (uri (pypi-uri "requests" version)) |
e6cfbd36 DT |
2365 | (sha256 |
2366 | (base32 | |
74a066f9 | 2367 | "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5")))) |
e6cfbd36 | 2368 | (build-system python-build-system) |
5d691657 | 2369 | (native-inputs |
6a308947 EF |
2370 | `(("python-setuptools" ,python-setuptools) |
2371 | ("python-py" ,python-py) | |
5d691657 EF |
2372 | ("python-pytest" ,python-pytest) |
2373 | ("python-pytest-cov" ,python-pytest-cov) | |
2374 | ("python-wheel" ,python-wheel))) | |
e6cfbd36 DT |
2375 | (home-page "http://python-requests.org/") |
2376 | (synopsis "Python HTTP library") | |
2377 | (description | |
2378 | "Requests is a Python HTTP client library. It aims to be easier to use | |
2379 | than Python’s urllib2 library.") | |
3f641af0 | 2380 | (license license:asl2.0))) |
864b5211 | 2381 | |
e9005180 DT |
2382 | ;; Some software requires an older version of Requests, notably Docker |
2383 | ;; Compose. | |
2384 | (define-public python-requests-2.7 | |
2385 | (package (inherit python-requests) | |
2386 | (version "2.7.0") | |
2387 | (source (origin | |
2388 | (method url-fetch) | |
2389 | (uri (pypi-uri "requests" version)) | |
2390 | (sha256 | |
2391 | (base32 | |
2392 | "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) | |
2393 | ||
ae641128 | 2394 | (define-public python2-requests |
8ad4ae20 | 2395 | (package-with-python2 python-requests)) |
ae641128 | 2396 | |
ea521b42 DT |
2397 | (define-public python-vcversioner |
2398 | (package | |
2399 | (name "python-vcversioner") | |
2400 | (version "2.14.0.0") | |
2401 | (source | |
2402 | (origin | |
2403 | (method url-fetch) | |
2404 | (uri (pypi-uri "vcversioner" version)) | |
2405 | (sha256 | |
2406 | (base32 | |
2407 | "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c")))) | |
2408 | (build-system python-build-system) | |
2409 | (inputs | |
2410 | `(("python-setuptools" ,python-setuptools))) | |
2411 | (synopsis "Python library for version number discovery") | |
2412 | (description "Vcversioner is a Python library that inspects tagging | |
2413 | information in a variety of version control systems in order to discover | |
2414 | version numbers.") | |
2415 | (home-page "https://github.com/habnabit/vcversioner") | |
3f641af0 | 2416 | (license license:isc))) |
ea521b42 DT |
2417 | |
2418 | (define-public python2-vcversioner | |
2419 | (package-with-python2 python-vcversioner)) | |
ae641128 | 2420 | |
864b5211 DT |
2421 | (define-public python-jsonschema |
2422 | (package | |
2423 | (name "python-jsonschema") | |
b3667afb | 2424 | (version "2.5.1") |
864b5211 DT |
2425 | (source (origin |
2426 | (method url-fetch) | |
2427 | (uri | |
2428 | (string-append | |
2429 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" | |
2430 | version ".tar.gz")) | |
2431 | (sha256 | |
2432 | (base32 | |
b3667afb | 2433 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
864b5211 DT |
2434 | (build-system python-build-system) |
2435 | (inputs | |
b3667afb DT |
2436 | `(("python-setuptools" ,python-setuptools) |
2437 | ("python-vcversioner" ,python-vcversioner))) | |
864b5211 DT |
2438 | (home-page "http://github.com/Julian/jsonschema") |
2439 | (synopsis "Implementation of JSON Schema for Python") | |
2440 | (description | |
2441 | "Jsonschema is an implementation of JSON Schema for Python.") | |
a14600ec LF |
2442 | (license license:expat) |
2443 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) | |
864b5211 DT |
2444 | |
2445 | (define-public python2-jsonschema | |
a14600ec LF |
2446 | (let ((jsonschema (package-with-python2 |
2447 | (strip-python2-variant python-jsonschema)))) | |
264ae686 EF |
2448 | (package (inherit jsonschema) |
2449 | (inputs | |
2450 | `(("python2-functools32" ,python2-functools32) | |
2451 | ,@(package-inputs jsonschema)))))) | |
850189b8 DT |
2452 | |
2453 | (define-public python-unidecode | |
2454 | (package | |
2455 | (name "python-unidecode") | |
8925d4f3 | 2456 | (version "0.04.18") |
850189b8 DT |
2457 | (source (origin |
2458 | (method url-fetch) | |
8925d4f3 | 2459 | (uri (pypi-uri "Unidecode" version)) |
850189b8 DT |
2460 | (sha256 |
2461 | (base32 | |
8925d4f3 | 2462 | "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi")))) |
850189b8 DT |
2463 | (build-system python-build-system) |
2464 | (inputs | |
2465 | `(("python-setuptools" ,python-setuptools))) | |
2466 | (home-page "https://pypi.python.org/pypi/Unidecode") | |
2467 | (synopsis "ASCII transliterations of Unicode text") | |
2468 | (description | |
2469 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is | |
2470 | useful when integrating with legacy code that doesn't support Unicode, or for | |
2471 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII | |
2472 | machine identifiers from human-readable Unicode strings that should still be | |
2473 | somewhat intelligeble.") | |
3f641af0 | 2474 | (license license:gpl2+))) |
850189b8 DT |
2475 | |
2476 | (define-public python2-unidecode | |
2477 | (package-with-python2 python-unidecode)) | |
6d45fef4 DT |
2478 | |
2479 | (define-public python-pyjwt | |
2480 | (package | |
2481 | (name "python-pyjwt") | |
eb31d4b4 | 2482 | (version "1.4.0") |
6d45fef4 DT |
2483 | (source |
2484 | (origin | |
2485 | (method url-fetch) | |
eb31d4b4 | 2486 | (uri (pypi-uri "PyJWT" version)) |
6d45fef4 DT |
2487 | (sha256 |
2488 | (base32 | |
eb31d4b4 | 2489 | "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1")))) |
6d45fef4 | 2490 | (build-system python-build-system) |
eb31d4b4 EF |
2491 | (native-inputs |
2492 | `(("python-setuptools" ,python-setuptools) | |
2493 | ("python-pytest-runner" ,python-pytest-runner))) | |
6d45fef4 DT |
2494 | (arguments |
2495 | '(#:tests? #f)) ; test suite doesn't work | |
2496 | (home-page "http://github.com/progrium/pyjwt") | |
2497 | (synopsis "JSON Web Token implementation in Python") | |
2498 | (description | |
2499 | "PyJWT is a JSON Web Token implementation written in Python.") | |
bd3fa666 | 2500 | (license license:expat))) |
6d45fef4 DT |
2501 | |
2502 | (define-public python2-pyjwt | |
2503 | (package-with-python2 python-pyjwt)) | |
2504 | ||
2cec1f6f DT |
2505 | (define-public python-oauthlib |
2506 | (package | |
2507 | (name "python-oauthlib") | |
bde2171d | 2508 | (version "1.0.3") |
2cec1f6f DT |
2509 | (source (origin |
2510 | (method url-fetch) | |
bde2171d | 2511 | (uri (pypi-uri "oauthlib" version)) |
2cec1f6f DT |
2512 | (sha256 |
2513 | (base32 | |
bde2171d | 2514 | "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg")))) |
2cec1f6f | 2515 | (build-system python-build-system) |
bde2171d | 2516 | (native-inputs |
59f151ec | 2517 | `(("python-coverage" ,python-coverage) |
2cec1f6f DT |
2518 | ("python-nose" ,python-nose) |
2519 | ("python-mock" ,python-mock))) | |
bde2171d EF |
2520 | (inputs |
2521 | `(("python-blinker" ,python-blinker) | |
2522 | ("python-cryptography" ,python-cryptography) | |
2523 | ("python-pyjwt" ,python-pyjwt))) | |
2cec1f6f DT |
2524 | (home-page "https://github.com/idan/oauthlib") |
2525 | (synopsis "OAuth implementation for Python") | |
2526 | (description | |
2527 | "Oauthlib is a generic, spec-compliant, thorough implementation of the | |
2528 | OAuth request-signing logic.") | |
3f641af0 | 2529 | (license license:bsd-3) |
59f151ec | 2530 | (properties `((python2-variant . ,(delay python2-oauthlib)))))) |
2cec1f6f DT |
2531 | |
2532 | (define-public python2-oauthlib | |
59f151ec | 2533 | (let ((base (package-with-python2 (strip-python2-variant python-oauthlib)))) |
2cec1f6f DT |
2534 | (package |
2535 | (inherit base) | |
59f151ec EF |
2536 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
2537 | ("python2-unittest2" ,python2-unittest2) | |
2538 | ,@(package-native-inputs base)))))) | |
ec5dbb5c DT |
2539 | |
2540 | (define-public python-itsdangerous | |
2541 | (package | |
2542 | (name "python-itsdangerous") | |
2543 | (version "0.24") | |
2544 | (source | |
2545 | (origin | |
2546 | (method url-fetch) | |
2547 | (uri (string-append | |
2548 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" | |
2549 | version ".tar.gz")) | |
2550 | (sha256 | |
2551 | (base32 | |
2552 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) | |
2553 | (build-system python-build-system) | |
ec5dbb5c DT |
2554 | (home-page "http://github.com/mitsuhiko/itsdangerous") |
2555 | (synopsis "Python library for passing data to/from untrusted environments") | |
2556 | (description | |
2557 | "Itsdangerous provides various helpers to pass trusted data to untrusted | |
2558 | environments and back.") | |
3f641af0 | 2559 | (license license:bsd-3) |
194d0d98 | 2560 | (properties `((python2-variant . ,(delay python2-itsdangerous)))))) |
ec5dbb5c DT |
2561 | |
2562 | (define-public python2-itsdangerous | |
194d0d98 EF |
2563 | (let ((base (package-with-python2 |
2564 | (strip-python2-variant python-itsdangerous)))) | |
2565 | (package | |
2566 | (inherit base) | |
2567 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
2568 | ,@(package-native-inputs base)))))) | |
5731cae3 | 2569 | |
8d12be1e RW |
2570 | (define-public python-pyyaml |
2571 | (package | |
2572 | (name "python-pyyaml") | |
2573 | (version "3.11") | |
2574 | (source | |
2575 | (origin | |
2576 | (method url-fetch) | |
2577 | (uri (string-append | |
2578 | "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-" | |
2579 | version ".tar.gz")) | |
2580 | (sha256 | |
2581 | (base32 | |
2582 | "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63")))) | |
2583 | (build-system python-build-system) | |
2584 | (inputs | |
2585 | `(("libyaml" ,libyaml))) | |
2586 | (native-inputs | |
2587 | `(("python-setuptools" ,python-setuptools))) | |
2588 | (home-page "http://pyyaml.org/wiki/PyYAML") | |
2589 | (synopsis "YAML parser and emitter for Python") | |
2590 | (description | |
2591 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a | |
2592 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension | |
2593 | API, and sensible error messages. PyYAML supports standard YAML tags and | |
2594 | provides Python-specific tags that allow to represent an arbitrary Python | |
2595 | object.") | |
2596 | (license license:expat))) | |
2597 | ||
2598 | (define-public python2-pyyaml | |
2599 | (package-with-python2 python-pyyaml)) | |
2600 | ||
5731cae3 DT |
2601 | (define-public python-virtualenv |
2602 | (package | |
2603 | (name "python-virtualenv") | |
17804240 | 2604 | (version "13.1.2") |
5731cae3 DT |
2605 | (source |
2606 | (origin | |
2607 | (method url-fetch) | |
17804240 | 2608 | (uri (pypi-uri "virtualenv" version)) |
5731cae3 DT |
2609 | (sha256 |
2610 | (base32 | |
17804240 | 2611 | "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a")))) |
5731cae3 | 2612 | (build-system python-build-system) |
17804240 EF |
2613 | (arguments |
2614 | `(#:phases | |
2615 | (modify-phases %standard-phases | |
2616 | (replace 'check | |
2617 | (lambda _ (zero? (system* "py.test"))))))) | |
5731cae3 DT |
2618 | (inputs |
2619 | `(("python-setuptools" ,python-setuptools) | |
2620 | ("python-mock" ,python-mock) | |
17804240 | 2621 | ("python-pytest" ,python-pytest))) |
5731cae3 DT |
2622 | (home-page "https://virtualenv.pypa.io/") |
2623 | (synopsis "Virtual Python environment builder") | |
2624 | (description | |
2625 | "Virtualenv is a tool to create isolated Python environments.") | |
bd3fa666 | 2626 | (license license:expat))) |
5731cae3 DT |
2627 | |
2628 | (define-public python2-virtualenv | |
2629 | (package-with-python2 python-virtualenv)) | |
8176d4d5 DT |
2630 | |
2631 | (define-public python-markupsafe | |
2632 | (package | |
2633 | (name "python-markupsafe") | |
2634 | (version "0.23") | |
2635 | (source | |
2636 | (origin | |
2637 | (method url-fetch) | |
2638 | (uri (string-append | |
2639 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" | |
2640 | version ".tar.gz")) | |
2641 | (sha256 | |
2642 | (base32 | |
2643 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) | |
2644 | (build-system python-build-system) | |
2645 | (inputs | |
2646 | `(("python-setuptools" ,python-setuptools))) | |
2647 | (home-page "http://github.com/mitsuhiko/markupsafe") | |
2648 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") | |
2649 | (description | |
2650 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation | |
2651 | for Python.") | |
3f641af0 | 2652 | (license license:bsd-3))) |
8176d4d5 DT |
2653 | |
2654 | (define-public python2-markupsafe | |
2655 | (package-with-python2 python-markupsafe)) | |
fe34f0d1 DT |
2656 | |
2657 | (define-public python-jinja2 | |
2658 | (package | |
2659 | (name "python-jinja2") | |
e98149b3 | 2660 | (version "2.8") |
fe34f0d1 DT |
2661 | (source |
2662 | (origin | |
2663 | (method url-fetch) | |
e98149b3 | 2664 | (uri (pypi-uri "Jinja2" version)) |
fe34f0d1 DT |
2665 | (sha256 |
2666 | (base32 | |
e98149b3 | 2667 | "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw")))) |
fe34f0d1 DT |
2668 | (build-system python-build-system) |
2669 | (inputs | |
2670 | `(("python-setuptools" ,python-setuptools) | |
2671 | ("python-markupsafe" ,python-markupsafe))) | |
2672 | (home-page "http://jinja.pocoo.org/") | |
2673 | (synopsis "Python template engine") | |
2674 | (description | |
2675 | "Jinja2 is a small but fast and easy to use stand-alone template engine | |
2676 | written in pure Python.") | |
3f641af0 | 2677 | (license license:bsd-3))) |
fe34f0d1 DT |
2678 | |
2679 | (define-public python2-jinja2 | |
2680 | (package-with-python2 python-jinja2)) | |
3580ab8b | 2681 | |
f7d17ac7 EE |
2682 | (define-public python-pystache |
2683 | (package | |
2684 | (name "python-pystache") | |
2685 | (version "0.5.4") | |
2686 | (source (origin | |
2687 | (method url-fetch) | |
2688 | (uri (pypi-uri "pystache" version)) | |
2689 | (sha256 | |
2690 | (base32 | |
2691 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) | |
2692 | (build-system python-build-system) | |
2693 | (native-inputs | |
2694 | `(("python-setuptools" ,python-setuptools))) | |
2695 | (home-page "http://defunkt.io/pystache/") | |
2696 | (synopsis "Python logic-less template engine") | |
2697 | (description | |
2698 | "Pystache is a Python implementation of the framework agnostic, | |
2699 | logic-free templating system Mustache.") | |
2700 | (license license:expat))) | |
2701 | ||
2702 | (define-public python2-pystache | |
2703 | (package-with-python2 python-pystache)) | |
2704 | ||
1285119b RW |
2705 | (define-public python-joblib |
2706 | (package | |
2707 | (name "python-joblib") | |
2708 | (version "0.9.0b4") | |
2709 | (source (origin | |
2710 | (method url-fetch) | |
2711 | (uri (string-append "https://pypi.python.org/packages/source/" | |
2712 | "j/joblib/joblib-" version ".tar.gz")) | |
2713 | (sha256 | |
2714 | (base32 | |
2715 | "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")))) | |
2716 | (build-system python-build-system) | |
2717 | (native-inputs | |
2718 | `(("python-setuptools" ,python-setuptools) | |
2719 | ("python-nose" ,python-nose))) | |
2720 | (home-page "http://pythonhosted.org/joblib/") | |
2721 | (synopsis "Using Python functions as pipeline jobs") | |
2722 | (description | |
2723 | "Joblib is a set of tools to provide lightweight pipelining in Python. | |
2724 | In particular, joblib offers: transparent disk-caching of the output values | |
2725 | and lazy re-evaluation (memoize pattern), easy simple parallel computing | |
2726 | logging and tracing of the execution.") | |
3f641af0 | 2727 | (license license:bsd-3))) |
1285119b RW |
2728 | |
2729 | (define-public python2-joblib | |
2730 | (package-with-python2 python-joblib)) | |
2731 | ||
3580ab8b DT |
2732 | (define-public python-docutils |
2733 | (package | |
2734 | (name "python-docutils") | |
2735 | (version "0.12") | |
2736 | (source | |
2737 | (origin | |
2738 | (method url-fetch) | |
2739 | (uri (string-append | |
2740 | "https://pypi.python.org/packages/source/d/docutils/docutils-" | |
2741 | version ".tar.gz")) | |
2742 | (sha256 | |
2743 | (base32 | |
2744 | "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7")))) | |
2745 | (build-system python-build-system) | |
2746 | (inputs | |
2747 | `(("python-setuptools" ,python-setuptools))) | |
2748 | (arguments | |
2749 | '(#:tests? #f)) ; no setup.py test command | |
2750 | (home-page "http://docutils.sourceforge.net/") | |
2751 | (synopsis "Python Documentation Utilities") | |
2752 | (description | |
2753 | "Docutils is a modular system for processing documentation into useful | |
2754 | formats, such as HTML, XML, and LaTeX. For input Docutils supports | |
2755 | reStructuredText.") | |
2756 | ;; Most of the source code is public domain, but some source files are | |
2757 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. | |
3f641af0 | 2758 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
3580ab8b DT |
2759 | |
2760 | (define-public python2-docutils | |
2761 | (package-with-python2 python-docutils)) | |
fb35b7c0 DT |
2762 | |
2763 | (define-public python-pygments | |
2764 | (package | |
2765 | (name "python-pygments") | |
9f442285 | 2766 | (version "2.0.2") |
fb35b7c0 DT |
2767 | (source |
2768 | (origin | |
2769 | (method url-fetch) | |
9f442285 | 2770 | (uri (pypi-uri "Pygments" version)) |
fb35b7c0 DT |
2771 | (sha256 |
2772 | (base32 | |
9f442285 | 2773 | "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k")))) |
fb35b7c0 DT |
2774 | (build-system python-build-system) |
2775 | (inputs | |
2776 | `(("python-setuptools" ,python-setuptools))) | |
2777 | (home-page "http://pygments.org/") | |
2778 | (synopsis "Syntax highlighting") | |
2779 | (description | |
2780 | "Pygments is a syntax highlighting package written in Python.") | |
3f641af0 | 2781 | (license license:bsd-2))) |
fb35b7c0 DT |
2782 | |
2783 | (define-public python2-pygments | |
2784 | (package-with-python2 python-pygments)) | |
9dd6078d DT |
2785 | |
2786 | (define-public python-sphinx | |
2787 | (package | |
2788 | (name "python-sphinx") | |
2789 | (version "1.2.3") | |
2790 | (source | |
2791 | (origin | |
2792 | (method url-fetch) | |
2793 | (uri (string-append | |
2794 | "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" | |
2795 | version ".tar.gz")) | |
2796 | (sha256 | |
2797 | (base32 | |
2798 | "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) | |
2799 | (build-system python-build-system) | |
2800 | (inputs | |
2801 | `(("python-setuptools" ,python-setuptools) | |
2802 | ("python-jinja2" ,python-jinja2) | |
2803 | ("python-docutils" ,python-docutils) | |
2804 | ("python-pygments" ,python-pygments))) | |
2805 | (home-page "http://sphinx-doc.org/") | |
2806 | (synopsis "Python documentation generator") | |
2807 | (description "Sphinx is a tool that makes it easy to create documentation | |
2808 | for Python projects or other documents consisting of multiple reStructuredText | |
2809 | sources.") | |
3f641af0 | 2810 | (license license:bsd-3))) |
9dd6078d DT |
2811 | |
2812 | (define-public python2-sphinx | |
2813 | (package-with-python2 python-sphinx)) | |
6888830b | 2814 | |
ad320b20 RW |
2815 | (define-public python-sphinx-rtd-theme |
2816 | (package | |
2817 | (name "python-sphinx-rtd-theme") | |
2818 | (version "0.1.6") | |
2819 | (source | |
2820 | (origin | |
2821 | (method url-fetch) | |
2822 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
2823 | "sphinx_rtd_theme/sphinx_rtd_theme-" | |
2824 | version ".tar.gz")) | |
2825 | (sha256 | |
2826 | (base32 | |
2827 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) | |
2828 | (build-system python-build-system) | |
2829 | (arguments | |
2830 | `(;; With standard flags, the install phase attempts to create a zip'd | |
2831 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
2832 | ;; before 1980' | |
2833 | #:configure-flags '("--single-version-externally-managed" | |
2834 | "--record=sphinx-rtd-theme.txt"))) | |
2835 | (native-inputs | |
2836 | `(("python-setuptools" ,python-setuptools))) | |
2837 | (inputs | |
2838 | `(("python-docutils" ,python-docutils) | |
2839 | ("python-sphinx" ,python-sphinx))) | |
2840 | (home-page "https://github.com/snide/sphinx_rtd_theme/") | |
2841 | (synopsis "ReadTheDocs.org theme for Sphinx") | |
2842 | (description "A theme for Sphinx used by ReadTheDocs.org.") | |
bd3fa666 | 2843 | (license license:expat))) |
ad320b20 RW |
2844 | |
2845 | (define-public python2-sphinx-rtd-theme | |
2846 | (package-with-python2 python-sphinx-rtd-theme)) | |
2847 | ||
f4de5b3b CAW |
2848 | (define-public python-feedgenerator |
2849 | (package | |
2850 | (name "python-feedgenerator") | |
f0412aa2 | 2851 | (version "1.8") |
f4de5b3b | 2852 | (source |
f4de5b3b | 2853 | (origin |
f0412aa2 EF |
2854 | (method url-fetch) |
2855 | (uri (pypi-uri "feedgenerator" version)) | |
f4de5b3b CAW |
2856 | (sha256 |
2857 | (base32 | |
f0412aa2 | 2858 | "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0")))) |
f4de5b3b | 2859 | (build-system python-build-system) |
f0412aa2 | 2860 | (native-inputs |
f4de5b3b CAW |
2861 | `(("python-setuptools" ,python-setuptools) |
2862 | ("python-pytz" ,python-pytz) | |
2863 | ("python-six" ,python-six))) | |
f0412aa2 | 2864 | (home-page "https://github.com/getpelican/feedgenerator") |
f4de5b3b CAW |
2865 | (synopsis |
2866 | "Standalone version of Django's Atom/RSS feed generator") | |
2867 | (description | |
2868 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, | |
2869 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") | |
3f641af0 | 2870 | (license license:bsd-3))) |
f4de5b3b CAW |
2871 | |
2872 | (define-public python2-feedgenerator | |
2873 | (package-with-python2 python-feedgenerator)) | |
2874 | ||
59ad30e3 CAW |
2875 | (define-public python-blinker |
2876 | (package | |
2877 | (name "python-blinker") | |
7fb9ff4d | 2878 | (version "1.4") |
59ad30e3 CAW |
2879 | (source |
2880 | (origin | |
2881 | (method url-fetch) | |
7fb9ff4d | 2882 | (uri (pypi-uri "blinker" version)) |
59ad30e3 CAW |
2883 | (sha256 |
2884 | (base32 | |
7fb9ff4d | 2885 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
59ad30e3 CAW |
2886 | (build-system python-build-system) |
2887 | (native-inputs | |
2888 | `(("python-setuptools" ,python-setuptools))) | |
2889 | ;; No "test" command supplied to setuptools, so unless there's another way | |
2890 | ;; to run tests, we're skipping them! | |
2891 | (arguments '(#:tests? #f)) | |
2892 | (home-page "http://pythonhosted.org/blinker/") | |
2893 | (synopsis "Fast, simple object-to-object and broadcast signaling") | |
2894 | (description | |
2895 | "Blinker provides a fast dispatching system that allows any number of | |
2896 | interested parties to subscribe to events, or \"signals\".") | |
2897 | (license license:expat))) | |
2898 | ||
2899 | (define-public python2-blinker | |
2900 | (package-with-python2 python-blinker)) | |
2901 | ||
b8050e71 CAW |
2902 | (define-public pelican |
2903 | (package | |
2904 | (name "pelican") | |
11f97c27 | 2905 | (version "3.6.3") |
b8050e71 CAW |
2906 | (source |
2907 | (origin | |
2908 | (method url-fetch) | |
11f97c27 | 2909 | (uri (pypi-uri "pelican" version)) |
b8050e71 CAW |
2910 | (sha256 |
2911 | (base32 | |
11f97c27 | 2912 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
b8050e71 | 2913 | (build-system python-build-system) |
d9f2dece | 2914 | (inputs |
b8050e71 CAW |
2915 | `(("python-feedgenerator" ,python-feedgenerator) |
2916 | ("python-jinja2" ,python-jinja2) | |
2917 | ("python-pygments" ,python-pygments) | |
2918 | ("python-docutils" ,python-docutils) | |
2919 | ("python-pytz" ,python-pytz) | |
2920 | ("python-blinker" ,python-blinker) | |
2921 | ("python-unidecode" ,python-unidecode) | |
2922 | ("python-six" ,python-six) | |
2923 | ("python-dateutil-2" ,python-dateutil-2))) | |
2924 | (home-page "http://getpelican.com/") | |
2925 | (arguments | |
2926 | `(;; XXX Requires a lot more packages to do unit tests :P | |
2927 | #:tests? #f | |
2928 | #:phases (modify-phases %standard-phases | |
2929 | (add-before | |
2930 | 'install 'adjust-requires | |
2931 | ;; Since feedgenerator is installed from git, it doesn't | |
2932 | ;; conform to the version requirements. | |
2933 | ;; | |
2934 | ;; We *do have* "feedgenerator >= 1.6", but strip off the | |
2935 | ;; version requirement so setuptools doesn't get confused. | |
2936 | (lambda _ | |
2937 | (substitute* "setup.py" | |
2938 | (("['\"]feedgenerator.*?['\"]") | |
2939 | "'feedgenerator'"))))))) | |
2940 | (synopsis "Python-based static site publishing system") | |
2941 | (description | |
2942 | "Pelican is a tool to generate a static blog from reStructuredText, | |
2943 | Markdown input files, and more. Pelican uses Jinja2 for templating | |
2944 | and is very extensible.") | |
3f641af0 | 2945 | (license license:agpl3+))) |
b8050e71 | 2946 | |
240ca4aa RW |
2947 | (define-public python-scikit-learn |
2948 | (package | |
2949 | (name "python-scikit-learn") | |
be0a4c26 | 2950 | (version "0.16.1") |
240ca4aa RW |
2951 | (source |
2952 | (origin | |
2953 | (method url-fetch) | |
2954 | (uri (string-append | |
2955 | "https://github.com/scikit-learn/scikit-learn/archive/" | |
2956 | version ".tar.gz")) | |
7e21b9fb | 2957 | (file-name (string-append name "-" version ".tar.gz")) |
240ca4aa RW |
2958 | (sha256 |
2959 | (base32 | |
be0a4c26 | 2960 | "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih")))) |
240ca4aa RW |
2961 | (build-system python-build-system) |
2962 | (arguments | |
2963 | `(#:phases | |
2964 | (alist-cons-before | |
2f6b3d2e RW |
2965 | 'check 'set-HOME |
2966 | ;; some tests require access to "$HOME" | |
2967 | (lambda _ (setenv "HOME" "/tmp")) | |
2968 | ;; Tests can only be run after the library has been installed and not | |
2969 | ;; within the source directory. | |
2970 | (alist-cons-after | |
2971 | 'install 'check | |
2972 | (lambda _ | |
2973 | (with-directory-excursion "/tmp" | |
2974 | ;; With Python 3 one test of 3334 fails | |
2975 | ;; (sklearn.tests.test_common.test_transformers); see | |
2976 | ;; https://github.com/scikit-learn/scikit-learn/issues/3693 | |
2977 | (system* "nosetests" "-v" "sklearn"))) | |
2978 | (alist-delete 'check %standard-phases))))) | |
240ca4aa | 2979 | (inputs |
2f6b3d2e | 2980 | `(("openblas" ,openblas) |
240ca4aa RW |
2981 | ("python-nose" ,python-nose))) |
2982 | (propagated-inputs | |
2983 | `(("python-numpy" ,python-numpy) | |
2984 | ("python-scipy" ,python-scipy))) | |
2985 | (home-page "http://scikit-learn.org/") | |
2986 | (synopsis "Machine Learning in Python") | |
2987 | (description | |
2988 | "Scikit-learn provides simple and efficient tools for data | |
2989 | mining and data analysis.") | |
25a2f81f EF |
2990 | (license license:bsd-3) |
2991 | (properties `((python2-variant . ,(delay python2-scikit-learn)))))) | |
240ca4aa RW |
2992 | |
2993 | (define-public python2-scikit-learn | |
25a2f81f | 2994 | (package-with-python2 (strip-python2-variant python-scikit-learn))) |
240ca4aa | 2995 | |
12f8f9bb RW |
2996 | (define-public python-scikit-image |
2997 | (package | |
2998 | (name "python-scikit-image") | |
2999 | (version "0.11.3") | |
3000 | (source | |
3001 | (origin | |
3002 | (method url-fetch) | |
3003 | (uri (string-append | |
3004 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" | |
3005 | version ".tar.gz")) | |
3006 | (sha256 | |
3007 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) | |
3008 | (build-system python-build-system) | |
3009 | (propagated-inputs | |
3010 | `(("python-matplotlib" ,python-matplotlib) | |
3011 | ("python-networkx" ,python-networkx) | |
3012 | ("python-numpy" ,python-numpy) | |
3013 | ("python-scipy" ,python-scipy) | |
3014 | ("python-six" ,python-six) | |
3015 | ("python-pillow" ,python-pillow))) | |
3016 | (native-inputs | |
3017 | `(("python-cython" ,python-cython) | |
3018 | ("python-setuptools" ,python-setuptools))) | |
3019 | (home-page "http://scikit-image.org/") | |
3020 | (synopsis "Image processing in Python") | |
3021 | (description | |
e881752c | 3022 | "Scikit-image is a collection of algorithms for image processing.") |
2b031d3f EF |
3023 | (license license:bsd-3) |
3024 | (properties `((python2-variant . ,(delay python2-scikit-image)))))) | |
12f8f9bb RW |
3025 | |
3026 | (define-public python2-scikit-image | |
2b031d3f EF |
3027 | (let ((scikit-image (package-with-python2 |
3028 | (strip-python2-variant python-scikit-image)))) | |
12f8f9bb RW |
3029 | (package (inherit scikit-image) |
3030 | (native-inputs | |
3031 | `(("python2-mock" ,python2-mock) | |
3032 | ,@(package-native-inputs scikit-image))) | |
3033 | (propagated-inputs | |
3034 | `(("python2-pytz" ,python2-pytz) | |
2b031d3f | 3035 | ,@(package-propagated-inputs scikit-image)))))) |
12f8f9bb | 3036 | |
5394a6a6 RW |
3037 | (define-public python-redis |
3038 | (package | |
3039 | (name "python-redis") | |
3040 | (version "2.10.3") | |
3041 | (source | |
3042 | (origin | |
3043 | (method url-fetch) | |
3044 | (uri (string-append | |
3045 | "https://pypi.python.org/packages/source/r/redis/redis-" | |
3046 | version ".tar.gz")) | |
3047 | (sha256 | |
3048 | (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4")))) | |
3049 | (build-system python-build-system) | |
3050 | ;; Tests require a running Redis server | |
3051 | (arguments '(#:tests? #f)) | |
3052 | (native-inputs | |
3053 | `(("python-setuptools" ,python-setuptools) | |
3054 | ("python-pytest" ,python-pytest))) | |
3055 | (home-page "https://github.com/andymccurdy/redis-py") | |
3056 | (synopsis "Redis Python client") | |
3057 | (description | |
3058 | "This package provides a Python interface to the Redis key-value store.") | |
3059 | (license license:expat))) | |
3060 | ||
3061 | (define-public python2-redis | |
3062 | (package-with-python2 python-redis)) | |
3063 | ||
748cef5b RW |
3064 | (define-public python-rq |
3065 | (package | |
3066 | (name "python-rq") | |
3067 | (version "0.5.2") | |
3068 | (source | |
3069 | (origin | |
3070 | (method url-fetch) | |
3071 | (uri (string-append | |
3072 | "https://pypi.python.org/packages/source/r/rq/rq-" | |
3073 | version ".tar.gz")) | |
3074 | (sha256 | |
3075 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) | |
3076 | (build-system python-build-system) | |
3077 | (propagated-inputs | |
3078 | `(("python-click" ,python-click) | |
3079 | ("python-redis" ,python-redis))) | |
3080 | (native-inputs | |
3081 | `(("python-setuptools" ,python-setuptools))) | |
3082 | (home-page "http://python-rq.org/") | |
3083 | (synopsis "Simple job queues for Python") | |
3084 | (description | |
3085 | "RQ (Redis Queue) is a simple Python library for queueing jobs and | |
3086 | processing them in the background with workers. It is backed by Redis and it | |
3087 | is designed to have a low barrier to entry.") | |
3f641af0 | 3088 | (license license:bsd-2))) |
748cef5b RW |
3089 | |
3090 | (define-public python2-rq | |
3091 | (package-with-python2 python-rq)) | |
3092 | ||
6888830b FB |
3093 | (define-public python-cython |
3094 | (package | |
3095 | (name "python-cython") | |
dd22efef | 3096 | (version "0.24.1") |
6888830b FB |
3097 | (source |
3098 | (origin | |
3099 | (method url-fetch) | |
56918e26 | 3100 | (uri (pypi-uri "Cython" version)) |
6888830b FB |
3101 | (sha256 |
3102 | (base32 | |
dd22efef | 3103 | "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044")))) |
6888830b FB |
3104 | (build-system python-build-system) |
3105 | ;; we need the full python package and not just the python-wrapper | |
3106 | ;; because we need libpython3.3m.so | |
3107 | (inputs | |
3108 | `(("python" ,python))) | |
3109 | (arguments | |
3110 | `(#:phases | |
b92f651b EF |
3111 | (modify-phases %standard-phases |
3112 | (add-before 'check 'set-HOME | |
3113 | ;; some tests require access to "$HOME/.cython" | |
3114 | (lambda _ (setenv "HOME" "/tmp"))) | |
3115 | (replace 'check | |
3116 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))))))) | |
6888830b FB |
3117 | (home-page "http://cython.org/") |
3118 | (synopsis "C extensions for Python") | |
3119 | (description "Cython is an optimising static compiler for both the Python | |
3120 | programming language and the extended Cython programming language. It makes | |
3121 | writing C extensions for Python as easy as Python itself.") | |
3f641af0 | 3122 | (license license:asl2.0) |
48b311b1 | 3123 | (properties `((python2-variant . ,(delay python2-cython)))))) |
6888830b FB |
3124 | |
3125 | (define-public python2-cython | |
48b311b1 LC |
3126 | (package (inherit (package-with-python2 |
3127 | (strip-python2-variant python-cython))) | |
6888830b FB |
3128 | (name "python2-cython") |
3129 | (inputs | |
3130 | `(("python-2" ,python-2))))) ; this is not automatically changed | |
0da98533 FB |
3131 | |
3132 | ;; This version of numpy is missing the documentation and is only used to | |
3133 | ;; build matplotlib which is required to build numpy's documentation. | |
3134 | (define python-numpy-bootstrap | |
3135 | (package | |
3136 | (name "python-numpy-bootstrap") | |
ef9b4c04 | 3137 | (version "1.10.4") |
0da98533 FB |
3138 | (source |
3139 | (origin | |
3140 | (method url-fetch) | |
de67e922 | 3141 | (uri (string-append "mirror://sourceforge/numpy/NumPy/" version |
0da98533 FB |
3142 | "/numpy-" version ".tar.gz")) |
3143 | (sha256 | |
3144 | (base32 | |
ef9b4c04 | 3145 | "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp")))) |
0da98533 FB |
3146 | (build-system python-build-system) |
3147 | (inputs | |
3148 | `(("python-nose" ,python-nose) | |
cba256f8 RW |
3149 | ("openblas" ,openblas) |
3150 | ("lapack" ,lapack))) | |
0da98533 | 3151 | (native-inputs |
19afbea1 | 3152 | `(("gfortran" ,gfortran))) |
0da98533 FB |
3153 | (arguments |
3154 | `(#:phases | |
3155 | (alist-cons-before | |
3156 | 'build 'set-environment-variables | |
3157 | (lambda* (#:key inputs #:allow-other-keys) | |
dbdfe515 RW |
3158 | (call-with-output-file "site.cfg" |
3159 | (lambda (port) | |
cba256f8 RW |
3160 | (format port |
3161 | "[openblas] | |
dbdfe515 RW |
3162 | libraries = openblas |
3163 | library_dirs = ~a/lib | |
3164 | include_dirs = ~a/include | |
cba256f8 RW |
3165 | |
3166 | [lapack] | |
3167 | lapack_libs = lapack | |
3168 | library_dirs = ~a/lib | |
3169 | include_dirs = ~a/include | |
3170 | " | |
3171 | (assoc-ref inputs "openblas") | |
3172 | (assoc-ref inputs "openblas") | |
3173 | (assoc-ref inputs "lapack") | |
3174 | (assoc-ref inputs "lapack")))) | |
dbdfe515 RW |
3175 | ;; Use "gcc" executable, not "cc". |
3176 | (substitute* "numpy/distutils/system_info.py" | |
3177 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") | |
3178 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) | |
3179 | #t) | |
6a843168 FB |
3180 | ;; Tests can only be run after the library has been installed and not |
3181 | ;; within the source directory. | |
3182 | (alist-cons-after | |
3183 | 'install 'check | |
89b5c60e | 3184 | (lambda _ |
6a843168 | 3185 | (with-directory-excursion "/tmp" |
89b5c60e | 3186 | (zero? (system* "python" "-c" |
6a843168 | 3187 | "import numpy; numpy.test(verbose=2)")))) |
89b5c60e AE |
3188 | (alist-delete |
3189 | 'check | |
6a843168 | 3190 | %standard-phases))))) |
0da98533 FB |
3191 | (home-page "http://www.numpy.org/") |
3192 | (synopsis "Fundamental package for scientific computing with Python") | |
3193 | (description "NumPy is the fundamental package for scientific computing | |
e881752c | 3194 | with Python. It contains among other things: a powerful N-dimensional array |
0da98533 FB |
3195 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
3196 | and Fortran code, useful linear algebra, Fourier transform, and random number | |
3197 | capabilities.") | |
3f641af0 | 3198 | (license license:bsd-3))) |
0da98533 FB |
3199 | |
3200 | (define python2-numpy-bootstrap | |
3201 | (package-with-python2 python-numpy-bootstrap)) | |
15bfe6d6 | 3202 | |
3a1bfe18 RW |
3203 | (define-public python2-fastlmm |
3204 | (package | |
3205 | (name "python2-fastlmm") | |
b074e7d4 | 3206 | (version "0.2.21") |
3a1bfe18 RW |
3207 | (source |
3208 | (origin | |
3209 | (method url-fetch) | |
b074e7d4 | 3210 | (uri (pypi-uri "fastlmm" version ".zip")) |
3a1bfe18 RW |
3211 | (sha256 |
3212 | (base32 | |
b074e7d4 | 3213 | "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m")))) |
3a1bfe18 RW |
3214 | (build-system python-build-system) |
3215 | (arguments | |
3216 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3217 | (propagated-inputs | |
3218 | `(("python2-numpy" ,python2-numpy) | |
3219 | ("python2-scipy" ,python2-scipy) | |
3220 | ("python2-matplotlib" ,python2-matplotlib) | |
3221 | ("python2-pandas" ,python2-pandas) | |
3222 | ("python2-scikit-learn" ,python2-scikit-learn) | |
3223 | ("python2-cython" ,python2-cython) | |
3224 | ("python2-pysnptools" ,python2-pysnptools))) | |
3225 | (native-inputs | |
3226 | `(("unzip" ,unzip) | |
3227 | ("python2-mock" ,python2-mock) | |
3228 | ("python2-setuptools" ,python2-setuptools))) | |
3229 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") | |
3230 | (synopsis "Perform genome-wide association studies on large data sets") | |
3231 | (description | |
3232 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed | |
3233 | Models, is a program for performing both single-SNP and SNP-set genome-wide | |
3234 | association studies (GWAS) on extremely large data sets.") | |
3f641af0 | 3235 | (license license:asl2.0))) |
3a1bfe18 | 3236 | |
2ee8869a FB |
3237 | (define-public python-numpy |
3238 | (package (inherit python-numpy-bootstrap) | |
3239 | (name "python-numpy") | |
3240 | (outputs '("out" "doc")) | |
89b5c60e | 3241 | (inputs |
2ee8869a FB |
3242 | `(("which" ,which) |
3243 | ("python-setuptools" ,python-setuptools) | |
3244 | ("python-matplotlib" ,python-matplotlib) | |
3245 | ("python-sphinx" ,python-sphinx) | |
3246 | ("python-pyparsing" ,python-pyparsing) | |
3247 | ("python-numpydoc" ,python-numpydoc) | |
3248 | ,@(package-inputs python-numpy-bootstrap))) | |
3249 | (native-inputs | |
3250 | `(("pkg-config" ,pkg-config) | |
3251 | ("texlive" ,texlive) | |
3252 | ("texinfo" ,texinfo) | |
3253 | ("perl" ,perl) | |
3254 | ,@(package-native-inputs python-numpy-bootstrap))) | |
3255 | (arguments | |
89b5c60e | 3256 | `(,@(substitute-keyword-arguments |
2ee8869a FB |
3257 | (package-arguments python-numpy-bootstrap) |
3258 | ((#:phases phases) | |
3259 | `(alist-cons-after | |
3260 | 'install 'install-doc | |
3261 | (lambda* (#:key outputs #:allow-other-keys) | |
3262 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
89b5c60e AE |
3263 | (doc (string-append |
3264 | data "/doc/" ,name "-" | |
2ee8869a FB |
3265 | ,(package-version python-numpy-bootstrap))) |
3266 | (info (string-append data "/info")) | |
3267 | (html (string-append doc "/html")) | |
3268 | (pyver ,(string-append "PYVER="))) | |
3269 | (with-directory-excursion "doc" | |
3270 | (mkdir-p html) | |
3271 | (system* "make" "html" pyver) | |
3272 | (system* "make" "latex" "PAPER=a4" pyver) | |
89b5c60e | 3273 | (system* "make" "-C" "build/latex" |
2ee8869a FB |
3274 | "all-pdf" "PAPER=a4" pyver) |
3275 | ;; FIXME: Generation of the info file fails. | |
3276 | ;; (system* "make" "info" pyver) | |
3277 | ;; (mkdir-p info) | |
3278 | ;; (copy-file "build/texinfo/numpy.info" | |
3279 | ;; (string-append info "/numpy.info")) | |
3280 | (for-each (lambda (file) | |
3281 | (copy-file (string-append "build/latex" file) | |
3282 | (string-append doc file))) | |
3283 | '("/numpy-ref.pdf" "/numpy-user.pdf")) | |
3284 | (with-directory-excursion "build/html" | |
3285 | (for-each (lambda (file) | |
3286 | (let* ((dir (dirname file)) | |
3287 | (tgt-dir (string-append html "/" dir))) | |
3288 | (unless (equal? "." dir) | |
3289 | (mkdir-p tgt-dir)) | |
96c46210 | 3290 | (install-file file html))) |
2ee8869a FB |
3291 | (find-files "." ".*")))))) |
3292 | ,phases))))))) | |
3293 | ||
764c077b | 3294 | (define-public python2-numpy |
57b7b8cd | 3295 | (package-with-python2 python-numpy)) |
2ee8869a | 3296 | |
15bfe6d6 FB |
3297 | (define-public python-pyparsing |
3298 | (package | |
3299 | (name "python-pyparsing") | |
e0669289 | 3300 | (version "2.0.3") |
15bfe6d6 FB |
3301 | (source |
3302 | (origin | |
3303 | (method url-fetch) | |
de67e922 LF |
3304 | (uri (string-append "mirror://sourceforge/pyparsing/pyparsing" |
3305 | "/pyparsing-" version | |
15bfe6d6 FB |
3306 | "/pyparsing-" version ".tar.gz")) |
3307 | (sha256 | |
3308 | (base32 | |
e0669289 | 3309 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
15bfe6d6 FB |
3310 | (build-system python-build-system) |
3311 | (outputs '("out" "doc")) | |
3312 | (arguments | |
3313 | `(#:tests? #f ; no test target | |
3314 | #:modules ((guix build python-build-system) | |
3315 | (guix build utils)) | |
3316 | #:phases | |
3317 | (alist-cons-after | |
3318 | 'install 'install-doc | |
3319 | (lambda* (#:key outputs #:allow-other-keys) | |
89b5c60e | 3320 | (let* ((doc (string-append (assoc-ref outputs "doc") |
15bfe6d6 FB |
3321 | "/share/doc/" ,name "-" ,version)) |
3322 | (html-doc (string-append doc "/html")) | |
3323 | (examples (string-append doc "/examples"))) | |
3324 | (mkdir-p html-doc) | |
3325 | (mkdir-p examples) | |
89b5c60e | 3326 | (for-each |
15bfe6d6 | 3327 | (lambda (dir tgt) |
89b5c60e | 3328 | (map (lambda (file) |
96c46210 | 3329 | (install-file file tgt)) |
15bfe6d6 FB |
3330 | (find-files dir ".*"))) |
3331 | (list "docs" "htmldoc" "examples") | |
3332 | (list doc html-doc examples)))) | |
3333 | %standard-phases))) | |
3334 | (home-page "http://pyparsing.wikispaces.com") | |
3335 | (synopsis "Python parsing class library") | |
3336 | (description | |
3337 | "The pyparsing module is an alternative approach to creating and | |
3338 | executing simple grammars, vs. the traditional lex/yacc approach, or the use | |
3339 | of regular expressions. The pyparsing module provides a library of classes | |
3340 | that client code uses to construct the grammar directly in Python code.") | |
bd3fa666 | 3341 | (license license:expat))) |
15bfe6d6 FB |
3342 | |
3343 | (define-public python2-pyparsing | |
3344 | (package-with-python2 python-pyparsing)) | |
3345 | ||
ec00de35 FB |
3346 | (define-public python-numpydoc |
3347 | (package | |
3348 | (name "python-numpydoc") | |
3349 | (version "0.5") | |
3350 | (source | |
3351 | (origin | |
3352 | (method url-fetch) | |
89b5c60e | 3353 | (uri (string-append |
ec00de35 FB |
3354 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
3355 | version ".tar.gz")) | |
3356 | (sha256 | |
3357 | (base32 | |
5e4d8f67 AE |
3358 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
3359 | (modules '((guix build utils))) | |
3360 | (snippet | |
3361 | '(begin | |
3362 | ;; Drop a test requiring matplotlib, which we cannot add as an | |
3363 | ;; input since it would create a circular dependency: Extend the | |
3364 | ;; test for Python 3, where it is already dropped, to Python 2. | |
3365 | (substitute* "numpydoc/tests/test_plot_directive.py" | |
3366 | (("3") "2")))))) | |
ec00de35 FB |
3367 | (build-system python-build-system) |
3368 | (inputs | |
3369 | `(("python-setuptools" ,python-setuptools) | |
3370 | ("python-docutils" ,python-docutils) | |
3371 | ("python-sphinx" ,python-sphinx) | |
3372 | ("python-nose" ,python-nose))) | |
3373 | (home-page "https://pypi.python.org/pypi/numpydoc") | |
3374 | (synopsis | |
3375 | "Numpy's Sphinx extensions") | |
3376 | (description | |
3377 | "Sphinx extension to support docstrings in Numpy format.") | |
3f641af0 | 3378 | (license license:bsd-2))) |
ec00de35 FB |
3379 | |
3380 | (define-public python2-numpydoc | |
5e4d8f67 | 3381 | (package-with-python2 python-numpydoc)) |
1c65314c | 3382 | |
1e656049 RW |
3383 | (define-public python-numexpr |
3384 | (package | |
3385 | (name "python-numexpr") | |
26112c0a | 3386 | (version "2.6.0") |
1e656049 RW |
3387 | (source |
3388 | (origin | |
3389 | (method url-fetch) | |
26112c0a | 3390 | (uri (pypi-uri "numexpr" version)) |
1e656049 RW |
3391 | (sha256 |
3392 | (base32 | |
26112c0a | 3393 | "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag")))) |
1e656049 RW |
3394 | (build-system python-build-system) |
3395 | (arguments `(#:tests? #f)) ; no tests included | |
3396 | (propagated-inputs | |
3397 | `(("python-numpy" ,python-numpy))) | |
3398 | (home-page "https://github.com/pydata/numexpr") | |
3399 | (synopsis "Fast numerical expression evaluator for NumPy") | |
3400 | (description | |
3401 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, | |
3402 | expressions that operate on arrays are accelerated and use less memory than | |
3403 | doing the same calculation in Python. In addition, its multi-threaded | |
3404 | capabilities can make use of all your cores, which may accelerate | |
3405 | computations, most specially if they are not memory-bounded (e.g. those using | |
3406 | transcendental functions).") | |
fc1a170e EF |
3407 | (license license:expat) |
3408 | (properties `((python2-variant . ,(delay python2-numexpr)))))) | |
1e656049 RW |
3409 | |
3410 | (define-public python2-numexpr | |
fc1a170e | 3411 | (package-with-python2 (strip-python2-variant python-numexpr))) |
1e656049 | 3412 | |
1c65314c FB |
3413 | (define-public python-matplotlib |
3414 | (package | |
3415 | (name "python-matplotlib") | |
1bbc659f | 3416 | (version "1.4.3") |
1c65314c FB |
3417 | (source |
3418 | (origin | |
3419 | (method url-fetch) | |
de67e922 LF |
3420 | (uri (string-append "mirror://sourceforge/matplotlib/matplotlib" |
3421 | "/matplotlib-" version | |
1c65314c FB |
3422 | "/matplotlib-" version ".tar.gz")) |
3423 | (sha256 | |
3424 | (base32 | |
1bbc659f | 3425 | "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av")) |
fc1adab1 | 3426 | (patches (search-patches "matplotlib-setupext-tk.patch")))) |
1c65314c FB |
3427 | (build-system python-build-system) |
3428 | (outputs '("out" "doc")) | |
25f9a068 FB |
3429 | (propagated-inputs ; the following packages are all needed at run time |
3430 | `(("python-pyparsing" ,python-pyparsing) | |
3431 | ("python-pygobject" ,python-pygobject) | |
3432 | ("gobject-introspection" ,gobject-introspection) | |
1bbc659f | 3433 | ("python-tkinter" ,python "tk") |
25f9a068 FB |
3434 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
3435 | ;; from 'gtk+') provides the required 'typelib' files used by | |
3436 | ;; 'gobject-introspection'. The location of these files is set with the | |
3437 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this | |
3438 | ;; is done automatically by a 'native-search-path' procedure. However, | |
3439 | ;; at run-time the user must set this variable as follows: | |
3440 | ;; | |
3441 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 | |
25f9a068 FB |
3442 | ("gtk+" ,gtk+) |
3443 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of | |
3444 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' | |
3445 | ;; object. For this reason we need to import both libraries. | |
3446 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo | |
3447 | ("python-pycairo" ,python-pycairo) | |
3448 | ("python-cairocffi" ,python-cairocffi))) | |
1c65314c FB |
3449 | (inputs |
3450 | `(("python-setuptools" ,python-setuptools) | |
3451 | ("python-dateutil" ,python-dateutil-2) | |
1c65314c FB |
3452 | ("python-six" ,python-six) |
3453 | ("python-pytz" ,python-pytz) | |
3454 | ("python-numpy" ,python-numpy-bootstrap) | |
3455 | ("python-sphinx" ,python-sphinx) | |
3456 | ("python-numpydoc" ,python-numpydoc) | |
3457 | ("python-nose" ,python-nose) | |
3458 | ("python-mock" ,python-mock) | |
3459 | ("libpng" ,libpng) | |
3460 | ("imagemagick" ,imagemagick) | |
3461 | ("freetype" ,freetype) | |
25f9a068 FB |
3462 | ("cairo" ,cairo) |
3463 | ("glib" ,glib) | |
4e7a137a | 3464 | ("python-pillow" ,python-pillow) |
1c65314c | 3465 | ;; FIXME: Add backends when available. |
1c65314c FB |
3466 | ;("python-wxpython" ,python-wxpython) |
3467 | ;("python-pyqt" ,python-pyqt) | |
1bbc659f FB |
3468 | ("tcl" ,tcl) |
3469 | ("tk" ,tk))) | |
1c65314c FB |
3470 | (native-inputs |
3471 | `(("pkg-config" ,pkg-config) | |
3472 | ("texlive" ,texlive) | |
3473 | ("texinfo" ,texinfo))) | |
3474 | (arguments | |
3475 | `(#:phases | |
25f9a068 FB |
3476 | (alist-cons-before |
3477 | 'build 'configure-environment | |
3478 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
3479 | (let ((cairo (assoc-ref inputs "cairo")) | |
3480 | (gtk+ (assoc-ref inputs "gtk+"))) | |
3481 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' | |
3482 | ;; has not effect. | |
25f9a068 FB |
3483 | (setenv "LD_LIBRARY_PATH" |
3484 | (string-append cairo "/lib:" gtk+ "/lib")) | |
3485 | (setenv "HOME" (getcwd)) | |
3486 | (call-with-output-file "setup.cfg" | |
3487 | (lambda (port) | |
1bbc659f FB |
3488 | (format port "[directories]~% |
3489 | basedirlist = ~a,~a~% | |
57b7b8cd | 3490 | [rc_options]~% |
1bbc659f FB |
3491 | backend = TkAgg~%" |
3492 | (assoc-ref inputs "tcl") | |
3493 | (assoc-ref inputs "tk")))))) | |
25f9a068 FB |
3494 | (alist-cons-after |
3495 | 'install 'install-doc | |
3496 | (lambda* (#:key outputs #:allow-other-keys) | |
3497 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3498 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3499 | (info (string-append data "/info")) | |
3500 | (html (string-append doc "/html"))) | |
3501 | (with-directory-excursion "doc" | |
25f9a068 FB |
3502 | ;; Produce pdf in 'A4' format. |
3503 | (substitute* (find-files "." "conf\\.py") | |
3504 | (("latex_paper_size = 'letter'") | |
3505 | "latex_paper_size = 'a4'")) | |
3506 | (mkdir-p html) | |
3507 | (mkdir-p info) | |
3508 | ;; The doc recommends to run the 'html' target twice. | |
3509 | (system* "python" "make.py" "html") | |
3510 | (system* "python" "make.py" "html") | |
18b31516 | 3511 | (copy-recursively "build/html" html) |
25f9a068 FB |
3512 | (system* "python" "make.py" "latex") |
3513 | (system* "python" "make.py" "texinfo") | |
18b31516 FB |
3514 | (symlink (string-append html "/_images") |
3515 | (string-append info "/matplotlib-figures")) | |
3516 | (with-directory-excursion "build/texinfo" | |
3517 | (substitute* "matplotlib.texi" | |
3518 | (("@image\\{([^,]*)" all file) | |
3519 | (string-append "@image{matplotlib-figures/" file))) | |
3520 | (symlink (string-append html "/_images") | |
3521 | "./matplotlib-figures") | |
3522 | (system* "makeinfo" "--no-split" | |
3523 | "-o" "matplotlib.info" "matplotlib.texi")) | |
25f9a068 FB |
3524 | (copy-file "build/texinfo/matplotlib.info" |
3525 | (string-append info "/matplotlib.info")) | |
3526 | (copy-file "build/latex/Matplotlib.pdf" | |
18b31516 | 3527 | (string-append doc "/Matplotlib.pdf"))))) |
25f9a068 | 3528 | %standard-phases)))) |
1c65314c FB |
3529 | (home-page "http://matplotlib.org") |
3530 | (synopsis "2D plotting library for Python") | |
3531 | (description | |
3532 | "Matplotlib is a Python 2D plotting library which produces publication | |
3533 | quality figures in a variety of hardcopy formats and interactive environments | |
3534 | across platforms. Matplotlib can be used in Python scripts, the python and | |
3535 | ipython shell, web application servers, and six graphical user interface | |
3536 | toolkits.") | |
3f641af0 | 3537 | (license license:psfl) |
57b7b8cd | 3538 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) |
1c65314c | 3539 | |
764c077b | 3540 | (define-public python2-matplotlib |
57b7b8cd LC |
3541 | (let ((matplotlib (package-with-python2 |
3542 | (strip-python2-variant python-matplotlib)))) | |
764c077b | 3543 | (package (inherit matplotlib) |
88c26834 AE |
3544 | ;; Make sure to use special packages for Python 2 instead |
3545 | ;; of those automatically rewritten by package-with-python2. | |
89b5c60e | 3546 | (propagated-inputs |
7ca0dbc3 | 3547 | `(("python2-pycairo" ,python2-pycairo) |
764c077b | 3548 | ("python2-pygobject-2" ,python2-pygobject-2) |
1bbc659f FB |
3549 | ("python2-tkinter" ,python-2 "tk") |
3550 | ,@(fold alist-delete (package-propagated-inputs matplotlib) | |
3551 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) | |
94914805 | 3552 | |
0dde6232 RW |
3553 | (define-public python2-pysnptools |
3554 | (package | |
3555 | (name "python2-pysnptools") | |
a800018e | 3556 | (version "0.3.9") |
0dde6232 RW |
3557 | (source |
3558 | (origin | |
3559 | (method url-fetch) | |
3f2e9675 | 3560 | (uri (pypi-uri "pysnptools" version ".zip")) |
0dde6232 RW |
3561 | (sha256 |
3562 | (base32 | |
a800018e | 3563 | "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2")))) |
0dde6232 RW |
3564 | (build-system python-build-system) |
3565 | (arguments | |
3566 | `(#:python ,python-2)) ; only Python 2.7 is supported | |
3567 | (propagated-inputs | |
3568 | `(("python2-numpy" ,python2-numpy) | |
3569 | ("python2-scipy" ,python2-scipy) | |
a800018e | 3570 | ("python2-pytz" ,python2-pytz) |
0dde6232 | 3571 | ("python2-cython" ,python2-cython))) |
a800018e EF |
3572 | (inputs |
3573 | `(("python2-dateutil-2" ,python2-dateutil-2) | |
3574 | ("python2-pandas" ,python2-pandas) | |
3575 | ("python2-six" ,python2-six))) | |
0dde6232 RW |
3576 | (native-inputs |
3577 | `(("unzip" ,unzip) | |
3578 | ("python2-setuptools" ,python2-setuptools))) | |
3579 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") | |
3580 | (synopsis "Library for reading and manipulating genetic data") | |
3581 | (description | |
3582 | "PySnpTools is a library for reading and manipulating genetic data. It | |
3583 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of | |
3584 | those files. It can also efficiently manipulate ranges of integers using set | |
3585 | operators such as union, intersection, and difference.") | |
3f641af0 | 3586 | (license license:asl2.0))) |
0dde6232 | 3587 | |
c9b1b4f9 RW |
3588 | (define-public python-rpy2 |
3589 | (package | |
3590 | (name "python-rpy2") | |
ec3bcbc7 | 3591 | (version "2.7.6") |
c9b1b4f9 RW |
3592 | (source |
3593 | (origin | |
3594 | (method url-fetch) | |
ec3bcbc7 | 3595 | (uri (pypi-uri "rpy2" version)) |
c9b1b4f9 RW |
3596 | (sha256 |
3597 | (base32 | |
ec3bcbc7 | 3598 | "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) |
c9b1b4f9 RW |
3599 | (build-system python-build-system) |
3600 | (inputs | |
3601 | `(("python-six" ,python-six) | |
3602 | ("readline" ,readline) | |
3603 | ("icu4c" ,icu4c) | |
3604 | ("pcre" ,pcre) | |
3605 | ("r" ,r))) | |
3606 | (native-inputs | |
5ff6575b RW |
3607 | `(("python-setuptools" ,python-setuptools) |
3608 | ("zlib" ,zlib))) | |
c9b1b4f9 RW |
3609 | (home-page "http://rpy.sourceforge.net/") |
3610 | (synopsis "Python interface to the R language") | |
3611 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a | |
3612 | low-level interface to R from Python, a proposed high-level interface, | |
3613 | including wrappers to graphical libraries, as well as R-like structures and | |
3614 | functions.") | |
3f641af0 | 3615 | (license license:gpl3+))) |
c9b1b4f9 RW |
3616 | |
3617 | (define-public python2-rpy2 | |
3618 | (let ((rpy2 (package-with-python2 python-rpy2))) | |
3619 | (package (inherit rpy2) | |
3620 | (native-inputs | |
3621 | `(("python2-singledispatch" ,python2-singledispatch) | |
3622 | ,@(package-native-inputs rpy2)))))) | |
3623 | ||
bb986599 FB |
3624 | (define-public python-scipy |
3625 | (package | |
3626 | (name "python-scipy") | |
ba8a0824 | 3627 | (version "0.16.0") |
bb986599 FB |
3628 | (source |
3629 | (origin | |
3630 | (method url-fetch) | |
de67e922 LF |
3631 | ; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz |
3632 | (uri (string-append "mirror://sourceforge/scipy/scipy/" version | |
da6ce3f1 | 3633 | "/scipy-" version ".tar.xz")) |
bb986599 FB |
3634 | (sha256 |
3635 | (base32 | |
ba8a0824 | 3636 | "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2")))) |
bb986599 | 3637 | (build-system python-build-system) |
dd86c0d1 | 3638 | (propagated-inputs |
bb986599 FB |
3639 | `(("python-numpy" ,python-numpy) |
3640 | ("python-matplotlib" ,python-matplotlib) | |
dd86c0d1 RW |
3641 | ("python-pyparsing" ,python-pyparsing))) |
3642 | (inputs | |
3643 | `(("lapack" ,lapack) | |
719b01c1 | 3644 | ("openblas" ,openblas))) |
bb986599 | 3645 | (native-inputs |
dd86c0d1 RW |
3646 | `(("python-nose" ,python-nose) |
3647 | ("python-sphinx" ,python-sphinx) | |
5248d49e | 3648 | ("python-numpydoc" ,python-numpydoc) |
dd86c0d1 | 3649 | ("gfortran" ,gfortran) |
bb986599 FB |
3650 | ("texlive" ,texlive) |
3651 | ("perl" ,perl))) | |
3652 | (outputs '("out" "doc")) | |
3653 | (arguments | |
3654 | `(#:phases | |
3655 | (alist-cons-before | |
719b01c1 | 3656 | 'build 'configure-openblas |
bb986599 | 3657 | (lambda* (#:key inputs #:allow-other-keys) |
719b01c1 RW |
3658 | (call-with-output-file "site.cfg" |
3659 | (lambda (port) | |
3660 | (format port | |
3661 | "[blas] | |
3662 | libraries = openblas | |
3663 | library_dirs = ~a/lib | |
3664 | include_dirs = ~a/include | |
3665 | [atlas] | |
3666 | library_dirs = ~a/lib | |
3667 | atlas_libs = openblas | |
3668 | " | |
3669 | (assoc-ref inputs "openblas") | |
3670 | (assoc-ref inputs "openblas") | |
3671 | (assoc-ref inputs "openblas")))) | |
3672 | #t) | |
bb986599 FB |
3673 | (alist-cons-after |
3674 | 'install 'install-doc | |
3675 | (lambda* (#:key outputs #:allow-other-keys) | |
3676 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3677 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3678 | (html (string-append doc "/html")) | |
3679 | (pyver ,(string-append "PYVER="))) | |
3680 | (with-directory-excursion "doc" | |
bb986599 FB |
3681 | ;; Fix generation of images for mathematical expressions. |
3682 | (substitute* (find-files "source" "conf\\.py") | |
3683 | (("pngmath_use_preview = True") | |
3684 | "pngmath_use_preview = False")) | |
3685 | (mkdir-p html) | |
3686 | (system* "make" "html" pyver) | |
3687 | (system* "make" "latex" "PAPER=a4" pyver) | |
3688 | (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver) | |
3689 | (copy-file "build/latex/scipy-ref.pdf" | |
3690 | (string-append doc "/scipy-ref.pdf")) | |
3691 | (with-directory-excursion "build/html" | |
3692 | (for-each (lambda (file) | |
3693 | (let* ((dir (dirname file)) | |
3694 | (tgt-dir (string-append html "/" dir))) | |
96c46210 | 3695 | (install-file file html))) |
bb986599 FB |
3696 | (find-files "." ".*")))))) |
3697 | ;; Tests can only be run after the library has been installed and not | |
3698 | ;; within the source directory. | |
3699 | (alist-cons-after | |
3700 | 'install 'check | |
89b5c60e | 3701 | (lambda _ |
bb986599 FB |
3702 | (with-directory-excursion "/tmp" |
3703 | (zero? (system* "python" "-c" "import scipy; scipy.test()")))) | |
89b5c60e AE |
3704 | (alist-delete |
3705 | 'check | |
4f9ff21e RW |
3706 | (alist-cons-after |
3707 | 'unpack 'fix-tests | |
3708 | (lambda _ | |
3709 | (substitute* "scipy/integrate/tests/test_quadpack.py" | |
3710 | (("libm.so") "libm.so.6")) | |
3711 | #t) | |
3712 | %standard-phases))))))) | |
bb986599 FB |
3713 | (home-page "http://www.scipy.org/") |
3714 | (synopsis "The Scipy library provides efficient numerical routines") | |
3715 | (description "The SciPy library is one of the core packages that make up | |
3716 | the SciPy stack. It provides many user-friendly and efficient numerical | |
3717 | routines such as routines for numerical integration and optimization.") | |
3f641af0 | 3718 | (license license:bsd-3))) |
bb986599 | 3719 | |
764c077b | 3720 | (define-public python2-scipy |
57b7b8cd | 3721 | (package-with-python2 python-scipy)) |
bb986599 | 3722 | |
94914805 EB |
3723 | (define-public python-sqlalchemy |
3724 | (package | |
3725 | (name "python-sqlalchemy") | |
a4ba286b | 3726 | (version "1.0.12") |
94914805 EB |
3727 | (source |
3728 | (origin | |
3729 | (method url-fetch) | |
3730 | (uri (string-append "https://pypi.python.org/packages/source/S/" | |
3731 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) | |
3732 | (sha256 | |
3733 | (base32 | |
a4ba286b | 3734 | "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6")))) |
94914805 EB |
3735 | (build-system python-build-system) |
3736 | (native-inputs | |
3737 | `(("python-cython" ,python-cython) ;for c extensions | |
3738 | ("python-pytest" ,python-pytest) | |
3739 | ("python-mock" ,python-mock))) ;for tests | |
3740 | (arguments | |
3741 | `(#:phases (alist-replace | |
3742 | 'check | |
3743 | (lambda _ (zero? (system* "py.test"))) | |
3744 | %standard-phases))) | |
3745 | (home-page "http://www.sqlalchemy.org") | |
3746 | (synopsis "Database abstraction library") | |
3747 | (description | |
3748 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that | |
3749 | gives application developers the full power and flexibility of SQL. It | |
3750 | provides a full suite of well known enterprise-level persistence patterns, | |
3751 | designed for efficient and high-performing database access, adapted into a | |
3752 | simple and Pythonic domain language.") | |
3f641af0 | 3753 | (license license:x11))) |
94914805 EB |
3754 | |
3755 | (define-public python2-sqlalchemy | |
3756 | (package-with-python2 python-sqlalchemy)) | |
c937562e | 3757 | |
de2966cf EF |
3758 | (define-public python-sqlalchemy-utils |
3759 | (package | |
3760 | (name "python-sqlalchemy-utils") | |
3761 | (version "0.32.9") | |
3762 | (source | |
3763 | (origin | |
3764 | (method url-fetch) | |
3765 | (uri (pypi-uri "SQLAlchemy-Utils" version)) | |
3766 | (sha256 | |
3767 | (base32 | |
3768 | "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98")))) | |
3769 | (build-system python-build-system) | |
3770 | (inputs | |
3771 | `(("python-six" ,python-six) | |
3772 | ("python-sqlalchemy" ,python-sqlalchemy))) | |
3773 | (home-page "https://github.com/kvesteri/sqlalchemy-utils") | |
3774 | (synopsis "Various utility functions for SQLAlchemy") | |
3775 | (description | |
3776 | "SQLAlchemy-utils provides various utility functions and custom data types | |
3777 | for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.") | |
3778 | (properties `((python2-variant . ,(delay python2-sqlalchemy-utils)))) | |
3779 | (license license:bsd-3))) | |
3780 | ||
3781 | (define-public python2-sqlalchemy-utils | |
3782 | (let ((base (package-with-python2 | |
3783 | (strip-python2-variant python-sqlalchemy-utils)))) | |
3784 | (package (inherit base) | |
3785 | (native-inputs | |
3786 | `(("python2-setuptools" ,python2-setuptools) | |
3787 | ,@(package-native-inputs base)))))) | |
3788 | ||
af5a4602 CAW |
3789 | (define-public python-alembic |
3790 | (package | |
3791 | (name "python-alembic") | |
bb484529 | 3792 | (version "0.8.7") |
af5a4602 CAW |
3793 | (source |
3794 | (origin | |
3795 | (method url-fetch) | |
3796 | (uri (pypi-uri "alembic" version)) | |
3797 | (sha256 | |
3798 | (base32 | |
bb484529 | 3799 | "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z")))) |
af5a4602 CAW |
3800 | (build-system python-build-system) |
3801 | (native-inputs | |
3802 | `(("python-mock" ,python-mock) | |
3803 | ("python-pytest-cov" ,python-pytest-cov))) | |
3804 | (propagated-inputs | |
3805 | `(("python-sqlalchemy" ,python-sqlalchemy) | |
3806 | ("python-mako" ,python-mako) | |
3807 | ("python-editor" ,python-editor))) | |
3808 | (home-page "http://bitbucket.org/zzzeek/alembic") | |
3809 | (synopsis | |
3810 | "Database migration tool for SQLAlchemy") | |
3811 | (description | |
3812 | "Alembic is a lightweight database migration tool for usage with the | |
3813 | SQLAlchemy Database Toolkit for Python.") | |
3814 | (license license:expat) | |
3815 | (properties `((python2-variant . ,(delay python2-alembic)))))) | |
3816 | ||
3817 | (define-public python2-alembic | |
3818 | (let ((alembic (package-with-python2 | |
3819 | (strip-python2-variant python-alembic)))) | |
3820 | (package | |
3821 | (inherit alembic) | |
3822 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
3823 | ,@(package-native-inputs alembic)))))) | |
3824 | ||
1671c07c EB |
3825 | (define-public python-distutils-extra |
3826 | (package | |
3827 | (name "python-distutils-extra") | |
3828 | (version "2.38") | |
3829 | (source | |
3830 | (origin | |
3831 | (method url-fetch) | |
3832 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" | |
3833 | version "/+download/python-distutils-extra-" | |
3834 | version ".tar.gz")) | |
3835 | (sha256 | |
3836 | (base32 | |
3837 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) | |
3838 | (build-system python-build-system) | |
3839 | (native-inputs | |
3840 | `(("python-setuptools" ,python-setuptools))) | |
3841 | (home-page "https://launchpad.net/python-distutils-extra/") | |
3842 | (synopsis "Enhancements to Python's distutils") | |
3843 | (description | |
3844 | "The python-distutils-extra module enables you to easily integrate | |
3845 | gettext support, themed icons, and scrollkeeper-based documentation into | |
3846 | Python's distutils.") | |
3f641af0 | 3847 | (license license:gpl2))) |
1671c07c EB |
3848 | |
3849 | (define-public python2-distutils-extra | |
3850 | (package-with-python2 python-distutils-extra)) | |
ea5456c8 EB |
3851 | |
3852 | (define-public python2-elib.intl | |
3853 | (package | |
3854 | (name "python2-elib.intl") | |
3855 | (version "0.0.3") | |
3856 | (source | |
3857 | (origin | |
3858 | ;; This project doesn't tag releases or publish tarballs, so we take | |
3859 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. | |
3860 | (method git-fetch) | |
3861 | (uri (git-reference | |
3862 | (url "https://github.com/dieterv/elib.intl.git") | |
3863 | (commit "d09997cfef"))) | |
3864 | (sha256 | |
3865 | (base32 | |
3866 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) | |
3867 | (build-system python-build-system) | |
3868 | (native-inputs | |
3869 | `(("python2-setuptools" ,python2-setuptools))) | |
3870 | (arguments | |
3871 | ;; incompatible with Python 3 (exception syntax) | |
3872 | `(#:python ,python-2 | |
3873 | #:tests? #f | |
3874 | ;; With standard flags, the install phase attempts to create a zip'd | |
3875 | ;; egg file, and fails with an error: 'ZIP does not support timestamps | |
3876 | ;; before 1980' | |
3877 | #:configure-flags '("--single-version-externally-managed" | |
3878 | "--record=elib.txt"))) | |
3879 | (home-page "https://github.com/dieterv/elib.intl") | |
3880 | (synopsis "Enhanced internationalization for Python") | |
3881 | (description | |
3882 | "The elib.intl module provides enhanced internationalization (I18N) | |
3883 | services for your Python modules and applications.") | |
3f641af0 | 3884 | (license license:lgpl3+))) |
ea5456c8 | 3885 | |
c937562e EB |
3886 | (define-public python-pillow |
3887 | (package | |
3888 | (name "python-pillow") | |
debf4179 | 3889 | (version "3.3.1") |
c937562e EB |
3890 | (source |
3891 | (origin | |
3892 | (method url-fetch) | |
f1d9231d | 3893 | (uri (pypi-uri "Pillow" version)) |
c937562e EB |
3894 | (sha256 |
3895 | (base32 | |
debf4179 | 3896 | "1w9x3dfrg8b5lqhpjl0fczfyf9842wbqwgxbjjq4vfpxv5jwm49l")))) |
c937562e EB |
3897 | (build-system python-build-system) |
3898 | (native-inputs | |
3899 | `(("python-setuptools" ,python-setuptools) | |
3900 | ("python-nose" ,python-nose))) | |
3901 | (inputs | |
5ff408d9 SB |
3902 | `(("freetype" ,freetype) |
3903 | ("lcms" ,lcms) | |
c937562e EB |
3904 | ("zlib" ,zlib) |
3905 | ("libjpeg" ,libjpeg) | |
3906 | ("openjpeg" ,openjpeg) | |
5ff408d9 SB |
3907 | ("libtiff" ,libtiff) |
3908 | ("libwebp" ,libwebp))) | |
c937562e EB |
3909 | (propagated-inputs |
3910 | `(;; Used at runtime for pkg_resources | |
3911 | ("python-setuptools" ,python-setuptools))) | |
3912 | (arguments | |
e5358a6b LC |
3913 | `(#:phases (modify-phases %standard-phases |
3914 | (add-before | |
3915 | 'install 'disable-egg-compression | |
3916 | (lambda _ | |
3917 | ;; Leave the .egg uncompressed since compressing it would | |
3918 | ;; prevent the GC from identifying run-time dependencies. | |
3919 | ;; See <http://bugs.gnu.org/20765>. | |
3920 | (let ((port (open-file "setup.cfg" "a"))) | |
3921 | (display "\n[easy_install]\nzip_ok = 0\n" | |
3922 | port) | |
3923 | (close-port port) | |
3924 | #t))) | |
3925 | (add-after | |
3926 | 'install 'check-installed | |
3927 | (lambda _ | |
3928 | (begin | |
3929 | (setenv "HOME" (getcwd)) | |
3930 | (and (zero? (system* "python" "selftest.py" | |
3931 | "--installed")) | |
3932 | (zero? (system* "python" "test-installed.py")))))) | |
3933 | (delete 'check)))) | |
c937562e EB |
3934 | (home-page "https://pypi.python.org/pypi/Pillow") |
3935 | (synopsis "Fork of the Python Imaging Library") | |
3936 | (description | |
3937 | "The Python Imaging Library adds image processing capabilities to your | |
3938 | Python interpreter. This library provides extensive file format support, an | |
3939 | efficient internal representation, and fairly powerful image processing | |
3940 | capabilities. The core image library is designed for fast access to data | |
3941 | stored in a few basic pixel formats. It should provide a solid foundation for | |
3942 | a general image processing tool.") | |
3f641af0 | 3943 | (license (license:x11-style |
c937562e EB |
3944 | "http://www.pythonware.com/products/pil/license.htm" |
3945 | "The PIL Software License")))) | |
3946 | ||
3947 | (define-public python2-pillow | |
3948 | (package-with-python2 python-pillow)) | |
bb986599 | 3949 | |
a415f036 FB |
3950 | (define-public python-pycparser |
3951 | (package | |
3952 | (name "python-pycparser") | |
38eb6919 | 3953 | (version "2.14") |
a415f036 FB |
3954 | (source |
3955 | (origin | |
3956 | (method url-fetch) | |
38eb6919 | 3957 | (uri (pypi-uri "pycparser" version)) |
a415f036 FB |
3958 | (sha256 |
3959 | (base32 | |
38eb6919 | 3960 | "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr")))) |
a415f036 FB |
3961 | (outputs '("out" "doc")) |
3962 | (build-system python-build-system) | |
3963 | (native-inputs | |
3964 | `(("pkg-config" ,pkg-config) | |
3965 | ("python-setuptools" ,python-setuptools))) | |
3966 | (arguments | |
89b5c60e | 3967 | `(#:phases |
a415f036 FB |
3968 | (alist-replace |
3969 | 'check | |
3970 | (lambda _ | |
3971 | (with-directory-excursion "tests" | |
3972 | (zero? (system* "python" "all_tests.py")))) | |
3973 | (alist-cons-after | |
3974 | 'install 'install-doc | |
3975 | (lambda* (#:key outputs #:allow-other-keys) | |
3976 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
3977 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
3978 | (examples (string-append doc "/examples"))) | |
3979 | (mkdir-p examples) | |
3980 | (for-each (lambda (file) | |
3981 | (copy-file (string-append "." file) | |
3982 | (string-append doc file))) | |
3983 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
3984 | (copy-recursively "examples" examples))) | |
3985 | %standard-phases)))) | |
3986 | (home-page "https://github.com/eliben/pycparser") | |
3987 | (synopsis "C parser in Python") | |
3988 | (description | |
3989 | "Pycparser is a complete parser of the C language, written in pure Python | |
3990 | using the PLY parsing library. It parses C code into an AST and can serve as | |
3991 | a front-end for C compilers or analysis tools.") | |
3f641af0 | 3992 | (license license:bsd-3))) |
a415f036 FB |
3993 | |
3994 | (define-public python2-pycparser | |
3995 | (package-with-python2 python-pycparser)) | |
57c3f716 FB |
3996 | |
3997 | (define-public python-cffi | |
3998 | (package | |
3999 | (name "python-cffi") | |
2d3a437c | 4000 | (version "1.4.2") |
57c3f716 FB |
4001 | (source |
4002 | (origin | |
4003 | (method url-fetch) | |
2d3a437c | 4004 | (uri (pypi-uri "cffi" version)) |
89b5c60e | 4005 | (sha256 |
2d3a437c | 4006 | (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) |
57c3f716 FB |
4007 | (build-system python-build-system) |
4008 | (outputs '("out" "doc")) | |
4009 | (inputs | |
4010 | `(("libffi" ,libffi))) | |
4011 | (propagated-inputs ; required at run-time | |
4012 | `(("python-pycparser" ,python-pycparser))) | |
4013 | (native-inputs | |
4014 | `(("pkg-config" ,pkg-config) | |
4015 | ("python-sphinx" ,python-sphinx) | |
4179f952 | 4016 | ("python-pytest" ,python-pytest) |
57c3f716 FB |
4017 | ("python-setuptools" ,python-setuptools))) |
4018 | (arguments | |
4179f952 | 4019 | `(#:phases |
57c3f716 FB |
4020 | (alist-cons-after |
4021 | 'install 'install-doc | |
4022 | (lambda* (#:key outputs #:allow-other-keys) | |
4023 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4024 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4025 | (html (string-append doc "/html"))) | |
4026 | (with-directory-excursion "doc" | |
4027 | (system* "make" "html") | |
4028 | (mkdir-p html) | |
4029 | (copy-recursively "build/html" html)) | |
4030 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) | |
4031 | %standard-phases))) | |
4032 | (home-page "http://cffi.readthedocs.org") | |
4033 | (synopsis "Foreign function interface for Python") | |
4034 | (description | |
4035 | "Foreign Function Interface for Python calling C code.") | |
bd3fa666 | 4036 | (license license:expat))) |
57c3f716 FB |
4037 | |
4038 | (define-public python2-cffi | |
4039 | (package-with-python2 python-cffi)) | |
6fa14469 FB |
4040 | |
4041 | (define-public python-xcffib | |
4042 | (package | |
4043 | (name "python-xcffib") | |
4044 | (version "0.1.9") | |
4045 | (source | |
4046 | (origin | |
4047 | (method url-fetch) | |
4048 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
4049 | "xcffib/xcffib-" version ".tar.gz")) | |
4050 | (sha256 | |
4051 | (base32 | |
4052 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) | |
4053 | (build-system python-build-system) | |
4054 | (inputs | |
4055 | `(("libxcb" ,libxcb) | |
4056 | ("python-six" ,python-six))) | |
4057 | (native-inputs | |
4058 | `(("python-setuptools" ,python-setuptools))) | |
4059 | (propagated-inputs | |
4060 | `(("python-cffi" ,python-cffi))) ; used at run time | |
4061 | (arguments | |
89b5c60e | 4062 | `(#:phases |
6fa14469 FB |
4063 | (alist-cons-after |
4064 | 'install 'install-doc | |
4065 | (lambda* (#:key outputs #:allow-other-keys) | |
4066 | (let ((doc (string-append (assoc-ref outputs "out") "/share" | |
4067 | "/doc/" ,name "-" ,version))) | |
4068 | (mkdir-p doc) | |
4069 | (copy-file "README.md" | |
4070 | (string-append doc "/README.md")))) | |
4071 | %standard-phases))) | |
4072 | (home-page "https://github.com/tych0/xcffib") | |
4073 | (synopsis "XCB Python bindings") | |
4074 | (description | |
4075 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds | |
4076 | support for Python 3 and PyPy. It is based on cffi.") | |
bd3fa666 | 4077 | (license license:expat))) |
6fa14469 FB |
4078 | |
4079 | (define-public python2-xcffib | |
4080 | (package-with-python2 python-xcffib)) | |
4081 | ||
9e099723 FB |
4082 | (define-public python-cairocffi |
4083 | (package | |
4084 | (name "python-cairocffi") | |
4085 | (version "0.6") | |
4086 | (source | |
4087 | (origin | |
4088 | (method url-fetch) | |
4089 | ;; The archive on pypi is missing the 'utils' directory! | |
4090 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" | |
4091 | version ".tar.gz")) | |
f586c877 | 4092 | (file-name (string-append name "-" version ".tar.gz")) |
9e099723 FB |
4093 | (sha256 |
4094 | (base32 | |
4095 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) | |
4096 | (build-system python-build-system) | |
4097 | (outputs '("out" "doc")) | |
4098 | (inputs | |
4099 | `(("gdk-pixbuf" ,gdk-pixbuf) | |
4100 | ("cairo" ,cairo))) | |
4101 | (native-inputs | |
4102 | `(("pkg-config" ,pkg-config) | |
4103 | ("python-sphinx" ,python-sphinx) | |
4104 | ("python-docutils" ,python-docutils) | |
4105 | ("python-setuptools" ,python-setuptools))) | |
4106 | (propagated-inputs | |
4107 | `(("python-xcffib" ,python-xcffib))) ; used at run time | |
4108 | (arguments | |
89b5c60e | 4109 | `(#:phases |
9e099723 FB |
4110 | (alist-cons-after |
4111 | 'install 'install-doc | |
4112 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4113 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4114 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4115 | (html (string-append doc "/html"))) | |
89b5c60e | 4116 | (setenv "LD_LIBRARY_PATH" |
9e099723 FB |
4117 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
4118 | (assoc-ref inputs "gdk-pixbuf") "/lib")) | |
4119 | (setenv "LANG" "en_US.UTF-8") | |
4120 | (mkdir-p html) | |
4121 | (for-each (lambda (file) | |
4122 | (copy-file (string-append "." file) | |
4123 | (string-append doc file))) | |
4124 | '("/README.rst" "/CHANGES" "/LICENSE")) | |
4125 | (system* "python" "setup.py" "build_sphinx") | |
4126 | (copy-recursively "docs/_build/html" html))) | |
4127 | %standard-phases))) | |
4128 | (home-page "https://github.com/SimonSapin/cairocffi") | |
4129 | (synopsis "Python bindings and object-oriented API for Cairo") | |
4130 | (description | |
4131 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of | |
4132 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector | |
4133 | graphics library with support for multiple backends including image buffers, | |
4134 | PNG, PostScript, PDF, and SVG file output.") | |
3f641af0 | 4135 | (license license:bsd-3))) |
9e099723 FB |
4136 | |
4137 | (define-public python2-cairocffi | |
4138 | (package-with-python2 python-cairocffi)) | |
4139 | ||
3cff95cb RW |
4140 | (define-public python-decorator |
4141 | (package | |
4142 | (name "python-decorator") | |
eb6e2e81 | 4143 | (version "4.0.9") |
3cff95cb RW |
4144 | (source |
4145 | (origin | |
4146 | (method url-fetch) | |
e21338be | 4147 | (uri (pypi-uri "decorator" version)) |
3cff95cb | 4148 | (sha256 |
eb6e2e81 | 4149 | (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh")))) |
3cff95cb RW |
4150 | (build-system python-build-system) |
4151 | (arguments '(#:tests? #f)) ; no test target | |
4152 | (native-inputs | |
4153 | `(("python-setuptools" ,python-setuptools))) | |
eb6e2e81 | 4154 | (home-page "https://pypi.python.org/pypi/decorator/") |
3cff95cb RW |
4155 | (synopsis "Python module to simplify usage of decorators") |
4156 | (description | |
4157 | "The aim of the decorator module is to simplify the usage of decorators | |
4158 | for the average programmer, and to popularize decorators usage giving examples | |
4159 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, | |
4160 | etc. The core of this module is a decorator factory.") | |
4161 | (license license:expat))) | |
4162 | ||
4163 | (define-public python2-decorator | |
4164 | (package-with-python2 python-decorator)) | |
4165 | ||
2c0499ad RW |
4166 | (define-public python-drmaa |
4167 | (package | |
4168 | (name "python-drmaa") | |
4169 | (version "0.7.6") | |
4170 | (source | |
4171 | (origin | |
4172 | (method url-fetch) | |
4173 | (uri (string-append | |
4174 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" | |
4175 | version ".tar.gz")) | |
4176 | (sha256 | |
4177 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) | |
4178 | (build-system python-build-system) | |
4179 | ;; The test suite requires libdrmaa which is provided by the cluster | |
4180 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH | |
4181 | ;; should be set to the path of the libdrmaa library. | |
4182 | (arguments '(#:tests? #f)) | |
4183 | (native-inputs | |
4184 | `(("python-nose" ,python-nose) | |
4185 | ("python-setuptools" ,python-setuptools))) | |
4186 | (home-page "https://pypi.python.org/pypi/drmaa") | |
4187 | (synopsis "Python bindings for the DRMAA library") | |
4188 | (description | |
4189 | "A Python package for Distributed Resource Management (DRM) job | |
4190 | submission and control. This package is an implementation of the DRMAA 1.0 | |
4191 | Python language binding specification.") | |
3f641af0 | 4192 | (license license:bsd-3))) |
2c0499ad RW |
4193 | |
4194 | (define-public python2-drmaa | |
4195 | (package-with-python2 python-drmaa)) | |
4196 | ||
d05c6da0 RW |
4197 | (define-public python-gridmap |
4198 | (package | |
4199 | (name "python-gridmap") | |
4200 | (version "0.13.0") | |
4201 | (source | |
4202 | (origin | |
4203 | (method url-fetch) | |
4204 | (uri (string-append | |
4205 | "https://github.com/pygridtools/gridmap/archive/v" | |
4206 | version ".tar.gz")) | |
4207 | (file-name (string-append name "-" version ".tar.gz")) | |
4208 | (sha256 | |
4209 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) | |
4210 | (build-system python-build-system) | |
4211 | (inputs | |
4212 | `(("python-psutil" ,python-psutil) | |
4213 | ("python-drmaa" ,python-drmaa) | |
4214 | ("python-pyzmq" ,python-pyzmq))) | |
4215 | (native-inputs | |
4216 | `(("python-setuptools" ,python-setuptools))) | |
4217 | (home-page "https://github.com/pygridtools/gridmap") | |
4218 | (synopsis "Create jobs on a cluster directly from Python") | |
4219 | (description | |
4220 | "Gridmap is a Python package to allow you to easily create jobs on the | |
4221 | cluster directly from Python. You can directly map Python functions onto the | |
4222 | cluster without needing to write any wrapper code yourself.") | |
3f641af0 | 4223 | (license license:gpl3+))) |
d05c6da0 RW |
4224 | |
4225 | (define-public python2-gridmap | |
4226 | (package-with-python2 python-gridmap)) | |
4227 | ||
cb6d5c54 RW |
4228 | (define-public python-pexpect |
4229 | (package | |
4230 | (name "python-pexpect") | |
4231 | (version "3.3") | |
4232 | (source | |
4233 | (origin | |
4234 | (method url-fetch) | |
4235 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4236 | "pexpect/pexpect-" version ".tar.gz")) | |
4237 | (sha256 | |
4238 | (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz")))) | |
4239 | (build-system python-build-system) | |
4240 | (arguments | |
4241 | `(#:phases | |
4242 | (modify-phases %standard-phases | |
4243 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
4244 | (native-inputs | |
4245 | `(("python-nose" ,python-nose))) | |
4246 | (home-page "http://pexpect.readthedocs.org/") | |
4247 | (synopsis "Controlling interactive console applications") | |
4248 | (description | |
4249 | "Pexpect is a pure Python module for spawning child applications; | |
4250 | controlling them; and responding to expected patterns in their output. | |
4251 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a | |
4252 | child application and control it as if a human were typing commands.") | |
3f641af0 | 4253 | (license license:isc))) |
cb6d5c54 RW |
4254 | |
4255 | (define-public python2-pexpect | |
4256 | (package-with-python2 python-pexpect)) | |
4257 | ||
229ad120 RW |
4258 | (define-public python-setuptools-scm |
4259 | (package | |
4260 | (name "python-setuptools-scm") | |
42d6d0d0 | 4261 | (version "1.11.1") |
229ad120 RW |
4262 | (source (origin |
4263 | (method url-fetch) | |
383af6b0 | 4264 | (uri (pypi-uri "setuptools_scm" version)) |
229ad120 RW |
4265 | (sha256 |
4266 | (base32 | |
42d6d0d0 | 4267 | "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc")))) |
229ad120 | 4268 | (build-system python-build-system) |
383af6b0 | 4269 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
229ad120 RW |
4270 | (home-page "https://github.com/pypa/setuptools_scm/") |
4271 | (synopsis "Manage Python package versions in SCM metadata") | |
4272 | (description | |
383af6b0 | 4273 | "Setuptools_scm handles managing your Python package versions in |
229ad120 RW |
4274 | @dfn{software configuration management} (SCM) metadata instead of declaring |
4275 | them as the version argument or in a SCM managed file.") | |
4276 | (license license:expat))) | |
4277 | ||
4278 | (define-public python2-setuptools-scm | |
4279 | (package-with-python2 python-setuptools-scm)) | |
4280 | ||
b74270ee RW |
4281 | (define-public python-pathpy |
4282 | (package | |
4283 | (name "python-pathpy") | |
4284 | (version "8.1.1") | |
4285 | (source | |
4286 | (origin | |
4287 | (method url-fetch) | |
4288 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4289 | "path.py/path.py-" version ".tar.gz")) | |
4290 | (sha256 | |
4291 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) | |
4292 | (build-system python-build-system) | |
4293 | (propagated-inputs | |
4294 | `(("python-appdirs" ,python-appdirs))) | |
4295 | (native-inputs | |
553b709b EF |
4296 | `(("python-setuptools" ,python-setuptools) |
4297 | ("python-setuptools-scm" ,python-setuptools-scm) | |
b74270ee RW |
4298 | ("python-pytest" ,python-pytest) |
4299 | ("python-pytest-runner" ,python-pytest-runner))) | |
4300 | (home-page "http://github.com/jaraco/path.py") | |
4301 | (synopsis "Python module wrapper for built-in os.path") | |
4302 | (description | |
4303 | "@code{path.py} implements path objects as first-class entities, allowing | |
4304 | common operations on files to be invoked on those path objects directly.") | |
4305 | (license license:expat))) | |
4306 | ||
4307 | (define-public python2-pathpy | |
4308 | (package-with-python2 python-pathpy)) | |
4309 | ||
0d34e01b RW |
4310 | (define-public python-pickleshare |
4311 | (package | |
4312 | (name "python-pickleshare") | |
4313 | (version "0.5") | |
4314 | (source | |
4315 | (origin | |
4316 | (method url-fetch) | |
4317 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
4318 | "pickleshare/pickleshare-" version ".tar.gz")) | |
4319 | (sha256 | |
4320 | (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0")))) | |
4321 | (build-system python-build-system) | |
4322 | (propagated-inputs | |
4323 | `(("python-pathpy" ,python-pathpy))) | |
b72a4410 EF |
4324 | (native-inputs |
4325 | `(("python-setuptools" ,python-setuptools))) | |
0d34e01b RW |
4326 | (home-page "https://github.com/vivainio/pickleshare") |
4327 | (synopsis "Tiny key value database with concurrency support") | |
4328 | (description | |
4329 | "PickleShare is a small ‘shelve’-like datastore with concurrency support. | |
4330 | Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike | |
4331 | shelve, many processes can access the database simultaneously. Changing a | |
4332 | value in database is immediately visible to other processes accessing the same | |
4333 | database. Concurrency is possible because the values are stored in separate | |
4334 | files. Hence the “database” is a directory where all files are governed by | |
4335 | PickleShare.") | |
4336 | (license license:expat))) | |
4337 | ||
4338 | (define-public python2-pickleshare | |
4339 | (package-with-python2 python-pickleshare)) | |
4340 | ||
cd6e5189 RW |
4341 | (define-public python-simplegeneric |
4342 | (package | |
4343 | (name "python-simplegeneric") | |
4344 | (version "0.8.1") | |
4345 | (source | |
4346 | (origin | |
4347 | (method url-fetch) | |
4348 | (uri (string-append "https://pypi.python.org/packages/source/s/" | |
4349 | "simplegeneric/simplegeneric-" version ".zip")) | |
4350 | (sha256 | |
4351 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) | |
4352 | (build-system python-build-system) | |
4353 | (native-inputs | |
69b96e5e RW |
4354 | `(("python-setuptools" ,python-setuptools) |
4355 | ("unzip" ,unzip))) | |
cd6e5189 RW |
4356 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
4357 | (synopsis "Python module for simple generic functions") | |
4358 | (description | |
4359 | "The simplegeneric module lets you define simple single-dispatch generic | |
4360 | functions, akin to Python’s built-in generic functions like @code{len()}, | |
4361 | @code{iter()} and so on. However, instead of using specially-named methods, | |
4362 | these generic functions use simple lookup tables, akin to those used by | |
4363 | e.g. @code{pickle.dump()} and other generic functions found in the Python | |
4364 | standard library.") | |
3f641af0 | 4365 | (license license:zpl2.1))) |
cd6e5189 RW |
4366 | |
4367 | (define-public python2-simplegeneric | |
4368 | (package-with-python2 python-simplegeneric)) | |
4369 | ||
ddc7d8ed RW |
4370 | (define-public python-ipython-genutils |
4371 | (package | |
4372 | (name "python-ipython-genutils") | |
4373 | (version "0.1.0") | |
4374 | (source | |
4375 | (origin | |
4376 | (method url-fetch) | |
4377 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
4378 | "ipython_genutils/ipython_genutils-" | |
4379 | version ".tar.gz")) | |
4380 | (sha256 | |
4381 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) | |
4382 | (build-system python-build-system) | |
4383 | (arguments `(#:tests? #f)) ; no tests | |
4384 | (home-page "http://ipython.org") | |
4385 | (synopsis "Vestigial utilities from IPython") | |
4386 | (description | |
4387 | "This package provides retired utilities from IPython.") | |
3f641af0 | 4388 | (license license:bsd-3))) |
ddc7d8ed RW |
4389 | |
4390 | (define-public python2-ipython-genutils | |
4391 | (package-with-python2 python-ipython-genutils)) | |
4392 | ||
2b10eb48 RW |
4393 | (define-public python-traitlets |
4394 | (package | |
4395 | (name "python-traitlets") | |
cc0c4fde | 4396 | (version "4.1.0") |
2b10eb48 RW |
4397 | (source |
4398 | (origin | |
4399 | (method url-fetch) | |
cc0c4fde | 4400 | (uri (pypi-uri "traitlets" version)) |
2b10eb48 RW |
4401 | (sha256 |
4402 | (base32 | |
cc0c4fde | 4403 | "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4")))) |
2b10eb48 RW |
4404 | (build-system python-build-system) |
4405 | (arguments | |
4406 | `(#:phases | |
4407 | (modify-phases %standard-phases | |
4408 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
4409 | (propagated-inputs | |
4410 | `(("python-ipython-genutils" ,python-ipython-genutils) | |
4411 | ("python-decorator" ,python-decorator))) | |
4412 | (native-inputs | |
cc0c4fde EF |
4413 | `(("python-mock" ,python-mock) |
4414 | ("python-nose" ,python-nose))) | |
2b10eb48 RW |
4415 | (home-page "http://ipython.org") |
4416 | (synopsis "Configuration system for Python applications") | |
4417 | (description | |
4418 | "Traitlets is a framework that lets Python classes have attributes with | |
4419 | type checking, dynamically calculated default values, and ‘on change’ | |
4420 | callbacks. The package also includes a mechanism to use traitlets for | |
4421 | configuration, loading values from files or from command line arguments. This | |
4422 | is a distinct layer on top of traitlets, so you can use traitlets in your code | |
4423 | without using the configuration machinery.") | |
3f641af0 | 4424 | (license license:bsd-3))) |
2b10eb48 RW |
4425 | |
4426 | (define-public python2-traitlets | |
4427 | (package-with-python2 python-traitlets)) | |
4428 | ||
ae1ab9fe FB |
4429 | (define-public python-ipython |
4430 | (package | |
4431 | (name "python-ipython") | |
3a0b1b9a | 4432 | (version "3.2.1") |
ae1ab9fe FB |
4433 | (source |
4434 | (origin | |
fceac880 | 4435 | (method url-fetch) |
fc1adab1 | 4436 | (patches (search-patches "python-ipython-inputhook-ctype.patch")) |
fceac880 FB |
4437 | (uri (string-append "https://pypi.python.org/packages/source/i/" |
4438 | "ipython/ipython-" version ".tar.gz")) | |
4439 | (sha256 | |
4440 | (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9")))) | |
ae1ab9fe FB |
4441 | (build-system python-build-system) |
4442 | (outputs '("out" "doc")) | |
3a0b1b9a FB |
4443 | (propagated-inputs |
4444 | `(("python-pyzmq" ,python-pyzmq) | |
4445 | ("python-terminado" ,python-terminado))) | |
ae1ab9fe FB |
4446 | (inputs |
4447 | `(("readline" ,readline) | |
3a0b1b9a | 4448 | ("which" ,which) |
ae1ab9fe | 4449 | ("python-matplotlib" ,python-matplotlib) |
5d26e542 | 4450 | ("python-numpy" ,python-numpy) |
ae1ab9fe | 4451 | ("python-numpydoc" ,python-numpydoc) |
3a0b1b9a FB |
4452 | ("python-jinja2" ,python-jinja2) |
4453 | ("python-mistune" ,python-mistune) | |
4454 | ("python-jsonschema" ,python-jsonschema) | |
4455 | ("python-pygments" ,python-pygments) | |
4456 | ("python-requests" ,python-requests) ;; for tests | |
ae1ab9fe FB |
4457 | ("python-nose" ,python-nose))) |
4458 | (native-inputs | |
4459 | `(("pkg-config" ,pkg-config) | |
4460 | ("python-sphinx" ,python-sphinx) | |
4461 | ("texlive" ,texlive) | |
4462 | ("texinfo" ,texinfo) | |
4463 | ("python-setuptools" ,python-setuptools))) | |
4464 | (arguments | |
89b5c60e | 4465 | `(#:phases |
3a0b1b9a FB |
4466 | (modify-phases %standard-phases |
4467 | (add-after | |
4468 | 'install 'install-doc | |
4469 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4470 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) | |
4471 | (doc (string-append data "/doc/" ,name "-" ,version)) | |
4472 | (html (string-append doc "/html")) | |
4473 | (man1 (string-append data "/man/man1")) | |
4474 | (info (string-append data "/info")) | |
4475 | (examples (string-append doc "/examples"))) | |
afd3d931 | 4476 | (setenv "LANG" "en_US.utf8") |
3a0b1b9a FB |
4477 | (with-directory-excursion "docs" |
4478 | ;; FIXME: html and pdf fail to build | |
4479 | ;; (system* "make" "html") | |
4480 | ;; (system* "make" "pdf" "PAPER=a4") | |
4481 | (system* "make" "info")) | |
4482 | (copy-recursively "docs/man" man1) | |
4483 | (copy-recursively "examples" examples) | |
4484 | ;; (copy-recursively "docs/build/html" html) | |
4485 | ;; (copy-file "docs/build/latex/ipython.pdf" | |
4486 | ;; (string-append doc "/ipython.pdf")) | |
4487 | (mkdir-p info) | |
4488 | (copy-file "docs/build/texinfo/ipython.info" | |
4489 | (string-append info "/ipython.info")) | |
4490 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) | |
4491 | ;; Tests can only be run after the library has been installed and not | |
4492 | ;; within the source directory. | |
4493 | (delete 'check) | |
4494 | (add-after | |
4495 | 'install 'check | |
4496 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
4497 | (if tests? | |
4498 | (with-directory-excursion "/tmp" | |
4499 | (setenv "HOME" "/tmp/") ;; required by a test | |
4500 | (zero? (system* (string-append (assoc-ref outputs "out") | |
4501 | "/bin/iptest")))) | |
4502 | #t))) | |
4503 | (add-before | |
4504 | 'install 'fix-tests | |
4505 | (lambda* (#:key inputs #:allow-other-keys) | |
4506 | (substitute* "./IPython/utils/_process_posix.py" | |
4507 | (("/usr/bin/env', 'which") (which "which"))) | |
4508 | (substitute* "./IPython/core/tests/test_inputtransformer.py" | |
4509 | (("#!/usr/bin/env python") | |
4510 | (string-append "#!" (which "python")))) | |
4511 | ;; Disable 1 failing test | |
4512 | (substitute* "./IPython/core/tests/test_magic.py" | |
4513 | (("def test_dirops\\(\\):" all) | |
4514 | (string-append "@dec.skipif(True)\n" all)))))))) | |
ae1ab9fe FB |
4515 | (home-page "http://ipython.org") |
4516 | (synopsis "IPython is a tool for interactive computing in Python") | |
4517 | (description | |
4518 | "IPython provides a rich architecture for interactive computing with: | |
4519 | Powerful interactive shells, a browser-based notebook, support for interactive | |
4520 | data visualization, embeddable interpreters and tools for parallel | |
4521 | computing.") | |
135ba811 EF |
4522 | (license license:bsd-3) |
4523 | (properties `((python2-variant . ,(delay python2-ipython)))))) | |
ae1ab9fe FB |
4524 | |
4525 | (define-public python2-ipython | |
135ba811 | 4526 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
3a0b1b9a FB |
4527 | (package |
4528 | (inherit ipython) | |
4529 | ;; FIXME: some tests are failing | |
4530 | (arguments | |
4531 | `(#:tests? #f ,@(package-arguments ipython))) | |
3a0b1b9a | 4532 | ;; FIXME: add pyreadline once available. |
89b5c60e | 4533 | (inputs |
135ba811 EF |
4534 | `(("python2-mock" ,python2-mock) |
4535 | ,@(package-inputs ipython)))))) | |
03411993 AE |
4536 | |
4537 | (define-public python-isodate | |
4538 | (package | |
4539 | (name "python-isodate") | |
b6785c2e | 4540 | (version "0.5.4") |
03411993 AE |
4541 | (source |
4542 | (origin | |
4543 | (method url-fetch) | |
b6785c2e | 4544 | (uri (pypi-uri "isodate" version)) |
03411993 AE |
4545 | (sha256 |
4546 | (base32 | |
b6785c2e | 4547 | "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422")))) |
03411993 AE |
4548 | (build-system python-build-system) |
4549 | (inputs | |
4550 | `(("python-setuptools" ,python-setuptools))) | |
4551 | (home-page | |
4552 | "http://cheeseshop.python.org/pypi/isodate") | |
4553 | (synopsis | |
4554 | "Python date parser and formatter") | |
4555 | (description | |
4556 | "Python-isodate is a python module for parsing and formatting | |
4557 | ISO 8601 dates, time and duration.") | |
3f641af0 | 4558 | (license license:bsd-3))) |
03411993 AE |
4559 | |
4560 | (define-public python2-isodate | |
4561 | (package-with-python2 python-isodate)) | |
673ab897 AE |
4562 | |
4563 | (define-public python-html5lib | |
4564 | (package | |
4565 | (name "python-html5lib") | |
fee04c19 | 4566 | (version "1.0b8") |
673ab897 AE |
4567 | (source |
4568 | (origin | |
4569 | (method url-fetch) | |
fee04c19 | 4570 | (uri (pypi-uri "html5lib" version)) |
673ab897 AE |
4571 | (sha256 |
4572 | (base32 | |
fee04c19 | 4573 | "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q")))) |
673ab897 | 4574 | (build-system python-build-system) |
3dd75476 AE |
4575 | (propagated-inputs |
4576 | `(("python-six" ,python-six))) ; required to "import html5lib" | |
673ab897 AE |
4577 | (inputs |
4578 | `(("python-setuptools" ,python-setuptools))) | |
4579 | (arguments | |
4580 | `(#:test-target "check")) | |
4581 | (home-page | |
4582 | "https://github.com/html5lib/html5lib-python") | |
4583 | (synopsis | |
4584 | "Python HTML parser based on the WHATWG HTML specifcation") | |
4585 | (description | |
4586 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation | |
4587 | and written in Python.") | |
bd3fa666 | 4588 | (license license:expat))) |
673ab897 AE |
4589 | |
4590 | (define-public python2-html5lib | |
4591 | (package-with-python2 python-html5lib)) | |
e99f4211 MW |
4592 | |
4593 | (define-public python-urwid | |
4594 | (package | |
4595 | (name "python-urwid") | |
51ff41f6 | 4596 | (version "1.3.1") |
e99f4211 MW |
4597 | (source |
4598 | (origin | |
4599 | (method url-fetch) | |
b97c1bfd | 4600 | (uri (pypi-uri "urwid" version)) |
e99f4211 MW |
4601 | (sha256 |
4602 | (base32 | |
51ff41f6 | 4603 | "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng")))) |
e99f4211 | 4604 | (build-system python-build-system) |
b97c1bfd LF |
4605 | (arguments |
4606 | `(#:phases | |
4607 | (modify-phases %standard-phases | |
4608 | ;; Disable failing test. Bug filed upstream: | |
4609 | ;; https://github.com/wardi/urwid/issues/164 | |
51ff41f6 | 4610 | ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3. |
b97c1bfd LF |
4611 | (add-after 'unpack 'disable-failing-test |
4612 | (lambda _ | |
4613 | (substitute* "urwid/tests/test_event_loops.py" | |
4614 | (("test_remove_watch_file") | |
4615 | "disable_remove_watch_file"))))))) | |
e99f4211 MW |
4616 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
4617 | (home-page "http://urwid.org") | |
4618 | (synopsis "Console user interface library for Python") | |
4619 | (description | |
4620 | "Urwid is a curses-based UI/widget library for Python. It includes many | |
4621 | features useful for text console applications.") | |
3f641af0 | 4622 | (license license:lgpl2.1+))) |
e99f4211 MW |
4623 | |
4624 | (define-public python2-urwid | |
4625 | (package-with-python2 python-urwid)) | |
d95a56c6 | 4626 | |
47d0b292 TS |
4627 | (define-public python-urwidtrees |
4628 | (package | |
4629 | (name "python-urwidtrees") | |
37ec4623 | 4630 | (version "1.0.2") |
47d0b292 TS |
4631 | (source |
4632 | (origin | |
4633 | (method url-fetch) | |
37ec4623 TS |
4634 | ;; package author intends on distributing via github rather than pypi: |
4635 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 | |
4636 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" | |
4637 | version ".tar.gz")) | |
4638 | (file-name (string-append name "-" version ".tar.gz")) | |
47d0b292 TS |
4639 | (sha256 |
4640 | (base32 | |
37ec4623 | 4641 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
47d0b292 TS |
4642 | (build-system python-build-system) |
4643 | (arguments | |
4644 | '(#:tests? #f)) ; no tests | |
4645 | (inputs `(("python-urwid" ,python-urwid))) | |
4646 | (home-page "https://github.com/pazz/urwidtrees") | |
4647 | (synopsis "Tree widgets for urwid") | |
4648 | (description "Urwidtrees is a Widget Container API for the @code{urwid} | |
4649 | toolkit. Use it to build trees of widgets.") | |
3f641af0 | 4650 | (license license:gpl3+))) |
47d0b292 TS |
4651 | |
4652 | (define-public python2-urwidtrees | |
4653 | (package-with-python2 python-urwidtrees)) | |
4654 | ||
d95a56c6 PAR |
4655 | (define-public python-dbus |
4656 | (package | |
4657 | (name "python-dbus") | |
4658 | (version "1.2.0") | |
4659 | (source | |
4660 | (origin | |
4661 | (method url-fetch) | |
4662 | (uri (string-append | |
5cc3096c | 4663 | "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-" |
d95a56c6 PAR |
4664 | version ".tar.gz")) |
4665 | (sha256 | |
4666 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) | |
4667 | (build-system gnu-build-system) | |
6717c879 SB |
4668 | (arguments |
4669 | '(#:phases | |
4670 | (modify-phases %standard-phases | |
4671 | (add-before | |
4672 | 'check 'pre-check | |
4673 | (lambda _ | |
4674 | ;; XXX: For the missing '/etc/machine-id'. | |
4675 | (substitute* "test/run-test.sh" | |
4676 | (("DBUS_FATAL_WARNINGS=1") | |
4677 | "DBUS_FATAL_WARNINGS=0")) | |
4678 | #t))))) | |
d95a56c6 PAR |
4679 | (native-inputs |
4680 | `(("pkg-config" ,pkg-config))) | |
4681 | (inputs | |
4682 | `(("python" ,python) | |
2e88d113 | 4683 | ("dbus-glib" ,dbus-glib))) |
d95a56c6 PAR |
4684 | (synopsis "Python bindings for D-bus") |
4685 | (description "python-dbus provides bindings for libdbus, the reference | |
4686 | implementation of D-Bus.") | |
4687 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") | |
bd3fa666 | 4688 | (license license:expat))) |
b52af02b MW |
4689 | |
4690 | (define-public python2-dbus | |
4691 | (package (inherit python-dbus) | |
4692 | (name "python2-dbus") | |
4693 | (inputs `(("python" ,python-2) | |
4694 | ,@(alist-delete "python" | |
4695 | (package-inputs python-dbus) | |
4696 | equal?))) | |
4697 | ;; FIXME: on Python 2, the test_utf8 fails with: | |
4698 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" | |
4699 | (arguments `(#:tests? #f)))) | |
a6ac8332 AE |
4700 | |
4701 | (define-public python-apsw | |
4702 | (package | |
4703 | (name "python-apsw") | |
917708c2 | 4704 | (version "3.9.2-r1") |
a6ac8332 AE |
4705 | (source |
4706 | (origin | |
4707 | (method url-fetch) | |
917708c2 | 4708 | (uri (pypi-uri "apsw" version)) |
a6ac8332 AE |
4709 | (sha256 |
4710 | (base32 | |
917708c2 | 4711 | "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs")))) |
a6ac8332 AE |
4712 | (build-system python-build-system) |
4713 | (inputs | |
4714 | `(("python-setuptools" ,python-setuptools) | |
4715 | ("sqlite" ,sqlite))) | |
4716 | (arguments | |
4717 | `(#:phases | |
4718 | ;; swap check and install phases | |
4719 | (alist-cons-after | |
4720 | 'install 'check | |
4721 | (assoc-ref %standard-phases 'check) | |
4722 | (alist-delete | |
4723 | 'check | |
4724 | %standard-phases)))) | |
4725 | (home-page "https://github.com/rogerbinns/apsw/") | |
4726 | (synopsis "Another Python SQLite Wrapper") | |
4727 | (description "APSW is a Python wrapper for the SQLite | |
4728 | embedded relational database engine. In contrast to other wrappers such as | |
4729 | pysqlite it focuses on being a minimal layer over SQLite attempting just to | |
4730 | translate the complete SQLite API into Python.") | |
abde5f37 | 4731 | (license license:zlib))) |
a6ac8332 AE |
4732 | |
4733 | (define-public python2-apsw | |
4734 | (package-with-python2 python-apsw)) | |
26b307e2 AE |
4735 | |
4736 | (define-public python-lxml | |
4737 | (package | |
4738 | (name "python-lxml") | |
d58a3203 | 4739 | (version "3.6.0") |
26b307e2 AE |
4740 | (source |
4741 | (origin | |
4742 | (method url-fetch) | |
97bbc480 | 4743 | (uri (pypi-uri "lxml" version)) |
26b307e2 | 4744 | (sha256 |
d58a3203 EF |
4745 | (base32 |
4746 | "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w")))) | |
26b307e2 AE |
4747 | (build-system python-build-system) |
4748 | (inputs | |
4749 | `(("libxml2" ,libxml2) | |
4750 | ("libxslt" ,libxslt) | |
4751 | ("python-setuptools" ,python-setuptools))) | |
4752 | (home-page "http://lxml.de/") | |
4753 | (synopsis | |
4754 | "Python XML processing library") | |
4755 | (description | |
4756 | "The lxml XML toolkit is a Pythonic binding for the C libraries | |
4757 | libxml2 and libxslt.") | |
3f641af0 | 4758 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
26b307e2 AE |
4759 | |
4760 | (define-public python2-lxml | |
4761 | (package-with-python2 python-lxml)) | |
4ed20663 | 4762 | |
b32a1e47 CAW |
4763 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
4764 | ;; and pypi seems to put it under its own name, so I guess we should too | |
4765 | (define-public python-beautifulsoup4 | |
4766 | (package | |
4767 | (name "python-beautifulsoup4") | |
cfbb3b0d | 4768 | (version "4.5.0") |
b32a1e47 CAW |
4769 | (source |
4770 | (origin | |
4771 | (method url-fetch) | |
4772 | (uri (pypi-uri "beautifulsoup4" version)) | |
4773 | (sha256 | |
4774 | (base32 | |
cfbb3b0d | 4775 | "1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f")))) |
b32a1e47 CAW |
4776 | (build-system python-build-system) |
4777 | (home-page | |
4778 | "http://www.crummy.com/software/BeautifulSoup/bs4/") | |
4779 | (synopsis | |
4780 | "Python screen-scraping library") | |
4781 | (description | |
4782 | "Beautiful Soup is a Python library designed for rapidly setting up | |
4783 | screen-scraping projects. It offers Pythonic idioms for navigating, | |
4784 | searching, and modifying a parse tree, providing a toolkit for | |
4785 | dissecting a document and extracting what you need. It automatically | |
4786 | converts incoming documents to Unicode and outgoing documents to UTF-8.") | |
4787 | (license license:expat) | |
4788 | (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) | |
4789 | ||
4790 | (define-public python2-beautifulsoup4 | |
4791 | (package | |
4792 | (inherit (package-with-python2 | |
4793 | (strip-python2-variant python-beautifulsoup4))) | |
4794 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
4795 | ||
092e86f5 AE |
4796 | (define-public python2-cssutils |
4797 | (package | |
4798 | (name "python2-cssutils") | |
58d1d816 | 4799 | (version "1.0.1") |
092e86f5 AE |
4800 | (source |
4801 | (origin | |
4802 | (method url-fetch) | |
58d1d816 | 4803 | (uri (pypi-uri "cssutils" version)) |
092e86f5 | 4804 | (sha256 |
58d1d816 EF |
4805 | (base32 |
4806 | "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) | |
092e86f5 AE |
4807 | (build-system python-build-system) |
4808 | (native-inputs | |
4809 | `(("python2-mock" ,python2-mock) ; for the tests | |
4810 | ("unzip" ,unzip))) ; for unpacking the source | |
4811 | (inputs | |
4812 | `(("python2-setuptools" ,python2-setuptools))) | |
4813 | (arguments | |
4814 | `(#:python ,python-2 ; Otherwise tests fail with a syntax error. | |
4815 | #:tests? #f ; The tests apparently download an external URL. | |
da6dd842 | 4816 | )) |
092e86f5 AE |
4817 | (home-page "http://cthedot.de/cssutils/") |
4818 | (synopsis | |
4819 | "CSS Cascading Style Sheets library for Python") | |
4820 | (description | |
4821 | "Cssutils is a Python package for parsing and building CSS | |
4822 | Cascading Style Sheets. Currently it provides a DOM only and no rendering | |
4823 | options.") | |
3f641af0 | 4824 | (license license:lgpl3+))) |
880ff77c AE |
4825 | |
4826 | (define-public python-cssselect | |
4827 | (package | |
4828 | (name "python-cssselect") | |
d5ccd9ab | 4829 | (version "0.9.2") |
880ff77c AE |
4830 | (source |
4831 | (origin | |
4832 | (method url-fetch) | |
d5ccd9ab | 4833 | (uri (pypi-uri "cssselect" version)) |
880ff77c | 4834 | (sha256 |
d5ccd9ab EF |
4835 | (base32 |
4836 | "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) | |
880ff77c AE |
4837 | (build-system python-build-system) |
4838 | (inputs | |
4839 | `(("python-setuptools" ,python-setuptools))) | |
4840 | (arguments | |
4841 | ;; tests fail with message | |
4842 | ;; AttributeError: 'module' object has no attribute 'tests' | |
4843 | `(#:tests? #f)) | |
4844 | (home-page | |
4845 | "https://pythonhosted.org/cssselect/") | |
4846 | (synopsis | |
4847 | "CSS3 selector parser and translator to XPath 1.0") | |
4848 | (description | |
4849 | "Cssselect ia a Python module that parses CSS3 Selectors and translates | |
4850 | them to XPath 1.0 expressions. Such expressions can be used in lxml or | |
4851 | another XPath engine to find the matching elements in an XML or HTML document.") | |
3f641af0 | 4852 | (license license:bsd-3))) |
880ff77c AE |
4853 | |
4854 | (define-public python2-cssselect | |
4855 | (package-with-python2 python-cssselect)) | |
60357f99 AE |
4856 | |
4857 | (define-public python-netifaces | |
4858 | (package | |
4859 | (name "python-netifaces") | |
4860 | (version "0.10.4") | |
4861 | (source | |
4862 | (origin | |
4863 | (method url-fetch) | |
4864 | (uri (string-append | |
4865 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" | |
4866 | version | |
4867 | ".tar.gz")) | |
4868 | (sha256 | |
4869 | (base32 | |
4870 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) | |
4871 | (build-system python-build-system) | |
4872 | (inputs | |
4873 | `(("python-setuptools" ,python-setuptools))) | |
4874 | (home-page | |
4875 | "https://bitbucket.org/al45tair/netifaces") | |
4876 | (synopsis | |
4877 | "Python module for portable network interface information") | |
4878 | (description | |
4879 | "Netifaces is a Python module providing information on network | |
4880 | interfaces in an easy and portable manner.") | |
4881 | (license license:expat))) | |
4882 | ||
4883 | (define-public python2-netifaces | |
4884 | (package-with-python2 python-netifaces)) | |
92cb152b | 4885 | |
32f77c04 RW |
4886 | (define-public python-networkx |
4887 | (package | |
4888 | (name "python-networkx") | |
a4d9609c | 4889 | (version "1.11") |
32f77c04 RW |
4890 | (source |
4891 | (origin | |
4892 | (method url-fetch) | |
a4d9609c | 4893 | (uri (pypi-uri "networkx" version)) |
32f77c04 | 4894 | (sha256 |
a4d9609c | 4895 | (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd")))) |
32f77c04 RW |
4896 | (build-system python-build-system) |
4897 | ;; python-decorator is needed at runtime | |
4898 | (propagated-inputs | |
4899 | `(("python-decorator" ,python-decorator))) | |
4900 | (native-inputs | |
4901 | `(("python-setuptools" ,python-setuptools) | |
4902 | ("python-nose" ,python-nose))) | |
4903 | (home-page "http://networkx.github.io/") | |
4904 | (synopsis "Python module for creating and manipulating graphs and networks") | |
4905 | (description | |
4906 | "NetworkX is a Python package for the creation, manipulation, and study | |
4907 | of the structure, dynamics, and functions of complex networks.") | |
3f641af0 | 4908 | (license license:bsd-3))) |
32f77c04 RW |
4909 | |
4910 | (define-public python2-networkx | |
4911 | (package-with-python2 python-networkx)) | |
4912 | ||
92cb152b RW |
4913 | (define-public snakemake |
4914 | (package | |
4915 | (name "snakemake") | |
4916 | (version "3.2.1") | |
4917 | (source | |
4918 | (origin | |
4919 | (method url-fetch) | |
4920 | (uri (string-append | |
4921 | "https://pypi.python.org/packages/source/s/snakemake/snakemake-" | |
4922 | version ".tar.gz")) | |
4923 | (sha256 | |
4924 | (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91")))) | |
4925 | (build-system python-build-system) | |
4926 | (inputs `(("python-setuptools" ,python-setuptools))) | |
4927 | (home-page "https://bitbucket.org/johanneskoester/snakemake") | |
4928 | (synopsis "Python-based execution environment for make-like workflows") | |
4929 | (description | |
4930 | "Snakemake aims to reduce the complexity of creating workflows by | |
4931 | providing a clean and modern domain specific specification language (DSL) in | |
4932 | Python style, together with a fast and comfortable execution environment.") | |
4933 | (license license:expat))) | |
a1920bc9 | 4934 | |
35de1fbd RW |
4935 | (define-public python-seaborn |
4936 | (package | |
4937 | (name "python-seaborn") | |
fc899d4f | 4938 | (version "0.7.0") |
35de1fbd RW |
4939 | (source |
4940 | (origin | |
4941 | (method url-fetch) | |
fc899d4f | 4942 | (uri (pypi-uri "seaborn" version)) |
35de1fbd | 4943 | (sha256 |
fc899d4f | 4944 | (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m")))) |
35de1fbd RW |
4945 | (build-system python-build-system) |
4946 | (propagated-inputs | |
4947 | `(("python-pandas" ,python-pandas) | |
4948 | ("python-matplotlib" ,python-matplotlib) | |
4949 | ("python-scipy" ,python-scipy))) | |
35de1fbd RW |
4950 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
4951 | (synopsis "Statistical data visualization") | |
4952 | (description | |
4953 | "Seaborn is a library for making attractive and informative statistical | |
4954 | graphics in Python. It is built on top of matplotlib and tightly integrated | |
4955 | with the PyData stack, including support for numpy and pandas data structures | |
4956 | and statistical routines from scipy and statsmodels.") | |
3f641af0 | 4957 | (license license:bsd-3) |
fc899d4f | 4958 | (properties `((python2-variant . ,(delay python2-seaborn)))))) |
35de1fbd RW |
4959 | |
4960 | (define-public python2-seaborn | |
fc899d4f EF |
4961 | (let ((base (package-with-python2 (strip-python2-variant python-seaborn)))) |
4962 | (package | |
4963 | (inherit base) | |
4964 | (propagated-inputs `(("python2-pytz" ,python2-pytz) | |
4965 | ,@(package-propagated-inputs base))) | |
4966 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
4967 | ,@(package-native-inputs base)))))) | |
35de1fbd | 4968 | |
90fc547f RW |
4969 | (define-public python-sympy |
4970 | (package | |
4971 | (name "python-sympy") | |
4972 | (version "0.7.6") | |
4973 | (source | |
4974 | (origin | |
4975 | (method url-fetch) | |
4976 | (uri (string-append | |
4977 | "https://github.com/sympy/sympy/releases/download/sympy-" | |
4978 | version "/sympy-" version ".tar.gz")) | |
4979 | (sha256 | |
4980 | (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz")))) | |
4981 | (build-system python-build-system) | |
4982 | (native-inputs | |
4983 | `(("python-setuptools" ,python-setuptools))) | |
4984 | (home-page "http://www.sympy.org/") | |
4985 | (synopsis "Python library for symbolic mathematics") | |
4986 | (description | |
4987 | "SymPy is a Python library for symbolic mathematics. It aims to become a | |
4988 | full-featured computer algebra system (CAS) while keeping the code as simple | |
4989 | as possible in order to be comprehensible and easily extensible.") | |
3f641af0 | 4990 | (license license:bsd-3))) |
90fc547f RW |
4991 | |
4992 | (define-public python2-sympy | |
4993 | (package-with-python2 python-sympy)) | |
4994 | ||
a1920bc9 FB |
4995 | (define-public python-testlib |
4996 | (package | |
4997 | (name "python-testlib") | |
4998 | (version "0.6.5") | |
4999 | (source | |
5000 | (origin | |
5001 | (method url-fetch) | |
5002 | (uri (string-append | |
5003 | "https://pypi.python.org/packages/source/t/testlib/testlib-" | |
5004 | version ".zip")) | |
5005 | (sha256 | |
5006 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) | |
5007 | (build-system python-build-system) | |
5008 | (inputs | |
5009 | `(("python-setuptools" ,python-setuptools))) | |
5010 | (native-inputs | |
5011 | `(("unzip" ,unzip))) | |
5012 | (arguments | |
5013 | `(#:phases | |
5014 | (alist-replace | |
5015 | 'unpack | |
5016 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
5017 | (let ((unzip (string-append (assoc-ref inputs "unzip") | |
5018 | "/bin/unzip")) | |
5019 | (source (assoc-ref inputs "source"))) | |
5020 | (and (zero? (system* unzip source)) | |
5021 | (chdir (string-append "testlib-" ,version))))) | |
5022 | %standard-phases))) | |
5023 | (synopsis "Python micro test suite harness") | |
5024 | (description "A micro unittest suite harness for Python.") | |
5025 | (home-page "https://github.com/trentm/testlib") | |
1cb9c006 | 5026 | (license license:expat))) |
a1920bc9 FB |
5027 | |
5028 | (define-public python2-testlib | |
5029 | (package-with-python2 python-testlib)) | |
db62afa5 LC |
5030 | |
5031 | (define-public python2-xlib | |
5032 | (package | |
5033 | (name "python2-xlib") | |
5034 | (version "0.14") | |
5035 | (source (origin | |
5036 | (method url-fetch) | |
de67e922 LF |
5037 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
5038 | "/" version "/" | |
db62afa5 LC |
5039 | "python-xlib-" version ".tar.gz")) |
5040 | (sha256 | |
5041 | (base32 | |
5042 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) | |
5043 | (build-system python-build-system) | |
5044 | (arguments | |
5045 | `(#:python ,python-2 ;Python 2 only | |
5046 | #:tests? #f)) ;no tests | |
5047 | (inputs | |
5048 | `(("python-setuptools" ,python-setuptools))) | |
5049 | (home-page "http://python-xlib.sourceforge.net/") | |
5050 | (synopsis "Python X11 client library") | |
5051 | (description | |
5052 | "The Python X Library is intended to be a fully functional X client | |
5053 | library for Python programs. It is useful to implement low-level X clients. | |
5054 | It is written entirely in Python.") | |
3f641af0 | 5055 | (license license:gpl2+))) |
0234ca06 DT |
5056 | |
5057 | (define-public python-singledispatch | |
5058 | (package | |
5059 | (name "python-singledispatch") | |
5060 | (version "3.4.0.3") | |
5061 | (source | |
5062 | (origin | |
5063 | (method url-fetch) | |
bdb67d84 | 5064 | (uri (pypi-uri "singledispatch" version)) |
0234ca06 DT |
5065 | (sha256 |
5066 | (base32 | |
5067 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) | |
5068 | (build-system python-build-system) | |
5069 | (native-inputs | |
5070 | `(("python-setuptools" ,python-setuptools))) | |
bdb67d84 | 5071 | (inputs |
0234ca06 DT |
5072 | `(("python-six" ,python-six))) |
5073 | (home-page | |
5074 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") | |
5075 | (synopsis "Backport of singledispatch feature from Python 3.4") | |
5076 | (description | |
5077 | "This library brings functools.singledispatch from Python 3.4 to Python | |
5078 | 2.6-3.3.") | |
5079 | (license license:expat))) | |
5080 | ||
5081 | (define-public python2-singledispatch | |
5082 | (package-with-python2 python-singledispatch)) | |
feaae484 | 5083 | |
310d218f RW |
5084 | (define-public python-tornado |
5085 | (package | |
5086 | (name "python-tornado") | |
a724924b | 5087 | (version "4.3") |
310d218f RW |
5088 | (source |
5089 | (origin | |
5090 | (method url-fetch) | |
a724924b | 5091 | (uri (pypi-uri "tornado" version)) |
310d218f | 5092 | (sha256 |
a724924b | 5093 | (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9")))) |
310d218f | 5094 | (build-system python-build-system) |
310d218f | 5095 | (native-inputs |
b455439b EF |
5096 | `(("python-certifi" ,python-certifi))) |
5097 | (inputs | |
5098 | `(("python-backports-abc" ,python-backports-abc))) | |
f4a4a718 | 5099 | (home-page "http://www.tornadoweb.org/") |
310d218f RW |
5100 | (synopsis "Python web framework and asynchronous networking library") |
5101 | (description | |
5102 | "Tornado is a Python web framework and asynchronous networking library, | |
5103 | originally developed at FriendFeed. By using non-blocking network I/O, | |
5104 | Tornado can scale to tens of thousands of open connections, making it ideal | |
5105 | for long polling, WebSockets, and other applications that require a long-lived | |
5106 | connection to each user.") | |
3f641af0 | 5107 | (license license:asl2.0) |
b455439b | 5108 | (properties `((python2-variant . ,(delay python2-tornado)))))) |
310d218f RW |
5109 | |
5110 | (define-public python2-tornado | |
b455439b | 5111 | (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) |
310d218f RW |
5112 | (package (inherit tornado) |
5113 | (inputs | |
5114 | `(("python2-backport-ssl-match-hostname" | |
5115 | ,python2-backport-ssl-match-hostname) | |
b455439b EF |
5116 | ("python2-singledispatch" ,python2-singledispatch) |
5117 | ,@(package-inputs tornado))) | |
5118 | (native-inputs | |
5119 | `(("python2-setuptools" ,python2-setuptools) | |
5120 | ,@(package-native-inputs tornado)))))) | |
310d218f | 5121 | |
6b59fc10 EF |
5122 | ;; the python- version can be removed with python-3.5 |
5123 | (define-public python-backports-abc | |
5124 | (package | |
5125 | (name "python-backports-abc") | |
5126 | (version "0.4") | |
5127 | (source | |
5128 | (origin | |
5129 | (method url-fetch) | |
5130 | (uri (pypi-uri "backports_abc" version)) | |
5131 | (sha256 | |
5132 | (base32 | |
5133 | "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb")))) | |
5134 | (build-system python-build-system) | |
5135 | (inputs | |
5136 | `(("python-setuptools" ,python-setuptools))) | |
5137 | (home-page "https://github.com/cython/backports_abc") | |
66e07664 | 5138 | (synopsis "Backport of additions to the 'collections.abc' module") |
6b59fc10 EF |
5139 | (description |
5140 | "Python-backports-abc provides a backport of additions to the | |
5141 | 'collections.abc' module in Python-3.5.") | |
3f641af0 | 5142 | (license license:psfl))) |
6b59fc10 EF |
5143 | |
5144 | (define-public python2-backports-abc | |
5145 | (package-with-python2 python-backports-abc)) | |
5146 | ||
feaae484 SB |
5147 | (define-public python-waf |
5148 | (package | |
5149 | (name "python-waf") | |
f0e8d85e | 5150 | (version "1.9.1") |
feaae484 SB |
5151 | (source (origin |
5152 | (method url-fetch) | |
5153 | (uri (string-append "https://waf.io/" | |
5154 | "waf-" version ".tar.bz2")) | |
5155 | (sha256 | |
5156 | (base32 | |
f0e8d85e | 5157 | "1nc4qaqx2vsanlpp9mcwvf91xjqpkvcc6fcxd5sb4fwvaxamw5v6")))) |
feaae484 SB |
5158 | (build-system python-build-system) |
5159 | (arguments | |
5160 | '(#:phases | |
5161 | (modify-phases %standard-phases | |
5162 | (replace 'build | |
5163 | (lambda _ | |
5164 | (zero? (begin | |
5165 | (system* "python" "waf-light" "configure") | |
5166 | (system* "python" "waf-light" "build"))))) | |
5167 | (replace 'check | |
5168 | (lambda _ | |
5169 | (zero? (system* "python" "waf" "--version")))) | |
5170 | (replace 'install | |
5171 | (lambda _ | |
5172 | (copy-file "waf" %output)))))) | |
5173 | (home-page "https://waf.io/") | |
5174 | (synopsis "Python-based build system") | |
5175 | (description | |
5176 | "Waf is a Python-based framework for configuring, compiling and installing | |
5177 | applications.") | |
3f641af0 | 5178 | (license license:bsd-3))) |
feaae484 SB |
5179 | |
5180 | (define-public python2-waf | |
5181 | (package-with-python2 python-waf)) | |
45203542 RW |
5182 | |
5183 | (define-public python-pyzmq | |
5184 | (package | |
5185 | (name "python-pyzmq") | |
3655ee76 | 5186 | (version "15.1.0") |
45203542 RW |
5187 | (source |
5188 | (origin | |
5189 | (method url-fetch) | |
3655ee76 | 5190 | (uri (pypi-uri "pyzmq" version)) |
45203542 | 5191 | (sha256 |
3655ee76 | 5192 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
45203542 RW |
5193 | (build-system python-build-system) |
5194 | (arguments | |
5195 | `(#:configure-flags | |
5196 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) | |
5197 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext | |
5198 | ;; --inplace' for 'python setup.py test' to work. | |
5199 | #:tests? #f)) | |
5200 | (inputs | |
5201 | `(("zeromq" ,zeromq))) | |
5202 | (native-inputs | |
5203 | `(("pkg-config" ,pkg-config) | |
5204 | ("python-nose" ,python-nose) | |
5205 | ("python-setuptools" ,python-setuptools))) | |
5206 | (home-page "http://github.com/zeromq/pyzmq") | |
5207 | (synopsis "Python bindings for 0MQ") | |
5208 | (description | |
5209 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") | |
3f641af0 | 5210 | (license license:bsd-4))) |
45203542 RW |
5211 | |
5212 | (define-public python2-pyzmq | |
5213 | (package-with-python2 python-pyzmq)) | |
d889e6c4 CR |
5214 | |
5215 | (define-public python-pep8 | |
5216 | (package | |
5217 | (name "python-pep8") | |
db251311 | 5218 | (version "1.7.0") |
d889e6c4 CR |
5219 | (source |
5220 | (origin | |
5221 | (method url-fetch) | |
db251311 | 5222 | (uri (pypi-uri "pep8" version)) |
d889e6c4 CR |
5223 | (sha256 |
5224 | (base32 | |
db251311 | 5225 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
d889e6c4 CR |
5226 | (build-system python-build-system) |
5227 | (inputs | |
5228 | `(("python-setuptools" ,python-setuptools))) | |
5229 | (home-page "http://pep8.readthedocs.org/") | |
5230 | (synopsis "Python style guide checker") | |
5231 | (description | |
5232 | "This tools checks Python code against some of the style conventions in | |
5233 | PEP 8.") | |
5234 | (license license:expat))) | |
5235 | ||
5236 | (define-public python2-pep8 | |
5237 | (package-with-python2 python-pep8)) | |
e31d7f44 CR |
5238 | |
5239 | (define-public python-pyflakes | |
5240 | (package | |
5241 | (name "python-pyflakes") | |
2abc3972 | 5242 | (version "1.0.0") |
e31d7f44 CR |
5243 | (source |
5244 | (origin | |
5245 | (method url-fetch) | |
2abc3972 | 5246 | (uri (pypi-uri "pyflakes" version)) |
e31d7f44 CR |
5247 | (sha256 |
5248 | (base32 | |
2abc3972 | 5249 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
e31d7f44 CR |
5250 | (build-system python-build-system) |
5251 | (inputs | |
5252 | `(("python-setuptools" ,python-setuptools))) | |
5253 | (home-page | |
5254 | "https://github.com/pyflakes/pyflakes") | |
5255 | (synopsis "Passive checker of Python programs") | |
5256 | (description | |
5257 | "Pyflakes statically checks Python source code for common errors.") | |
5258 | (license license:expat))) | |
a59e017c | 5259 | |
7261d9eb CR |
5260 | (define-public python2-pyflakes |
5261 | (package-with-python2 python-pyflakes)) | |
5262 | ||
a59e017c CR |
5263 | (define-public python-mccabe |
5264 | (package | |
5265 | (name "python-mccabe") | |
c6ebd40d | 5266 | (version "0.4.0") |
a59e017c CR |
5267 | (source |
5268 | (origin | |
5269 | (method url-fetch) | |
c6ebd40d | 5270 | (uri (pypi-uri "mccabe" version)) |
a59e017c CR |
5271 | (sha256 |
5272 | (base32 | |
c6ebd40d | 5273 | "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) |
a59e017c CR |
5274 | (build-system python-build-system) |
5275 | (inputs | |
c6ebd40d EF |
5276 | `(("python-pytest" ,python-pytest) |
5277 | ("python-pytest-runner" ,python-pytest-runner) | |
5278 | ("python-setuptools" ,python-setuptools))) | |
a59e017c CR |
5279 | (home-page "https://github.com/flintwork/mccabe") |
5280 | (synopsis "McCabe checker, plugin for flake8") | |
5281 | (description | |
5282 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic | |
5283 | complexity of Python source code.") | |
7362371d | 5284 | (license license:expat))) |
a59e017c CR |
5285 | |
5286 | (define-public python2-mccabe | |
5287 | (package-with-python2 python-mccabe)) | |
e8df8f47 | 5288 | |
7477fbb1 CR |
5289 | (define-public python-mccabe-0.2.1 |
5290 | (package (inherit python-mccabe) | |
5291 | (version "0.2.1") | |
5292 | (source | |
5293 | (origin | |
5294 | (method url-fetch) | |
5295 | (uri (pypi-uri "mccabe" version)) | |
5296 | (sha256 | |
5297 | (base32 | |
c6ebd40d | 5298 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))) |
b3546174 | 5299 | (inputs `(("python-setuptools" ,python-setuptools))))) |
7477fbb1 CR |
5300 | |
5301 | (define-public python2-mccabe-0.2.1 | |
5302 | (package-with-python2 python-mccabe-0.2.1)) | |
5303 | ||
e8df8f47 CR |
5304 | ;; Flake8 2.4.1 requires an older version of pep8. |
5305 | ;; This should be removed ASAP. | |
5306 | (define-public python-pep8-1.5.7 | |
5307 | (package (inherit python-pep8) | |
5308 | (version "1.5.7") | |
5309 | (source | |
5310 | (origin | |
5311 | (method url-fetch) | |
5312 | (uri (string-append | |
5313 | "https://pypi.python.org/packages/source/p/pep8/pep8-" | |
5314 | version | |
5315 | ".tar.gz")) | |
5316 | (sha256 | |
5317 | (base32 | |
5318 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))))) | |
5319 | ||
5320 | (define-public python2-pep8-1.5.7 | |
5321 | (package-with-python2 python-pep8-1.5.7)) | |
5322 | ||
5323 | ;; Flake8 2.4.1 requires an older version of pyflakes. | |
5324 | ;; This should be removed ASAP. | |
5325 | (define-public python-pyflakes-0.8.1 | |
5326 | (package (inherit python-pyflakes) | |
5327 | (version "0.8.1") | |
5328 | (source | |
5329 | (origin | |
5330 | (method url-fetch) | |
5331 | (uri (string-append | |
5332 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" | |
5333 | version | |
5334 | ".tar.gz")) | |
5335 | (sha256 | |
5336 | (base32 | |
5337 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))))) | |
5338 | ||
5339 | (define-public python2-pyflakes-0.8.1 | |
7261d9eb | 5340 | (package-with-python2 python-pyflakes-0.8.1)) |
e8df8f47 CR |
5341 | |
5342 | (define-public python-flake8 | |
5343 | (package | |
5344 | (name "python-flake8") | |
43789136 | 5345 | (version "2.5.4") |
e8df8f47 CR |
5346 | (source |
5347 | (origin | |
5348 | (method url-fetch) | |
1b995533 | 5349 | (uri (pypi-uri "flake8" version)) |
e8df8f47 CR |
5350 | (sha256 |
5351 | (base32 | |
43789136 | 5352 | "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")))) |
e8df8f47 CR |
5353 | (build-system python-build-system) |
5354 | (inputs | |
5355 | `(("python-setuptools" ,python-setuptools) | |
43789136 EF |
5356 | ("python-pep8" ,python-pep8) |
5357 | ("python-pyflakes" ,python-pyflakes) | |
e8df8f47 CR |
5358 | ("python-mccabe" ,python-mccabe) |
5359 | ("python-mock" ,python-mock) | |
5360 | ("python-nose" ,python-nose))) | |
5361 | (home-page "https://gitlab.com/pycqa/flake8") | |
5362 | (synopsis | |
5363 | "The modular source code checker: pep8, pyflakes and co") | |
5364 | (description | |
5365 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") | |
5366 | (license license:expat))) | |
5367 | ||
5368 | (define-public python2-flake8 | |
5369 | (package-with-python2 python-flake8)) | |
61b9ac53 | 5370 | |
abf21efc CR |
5371 | ;; This will only be needed by the python-hacking package and will not be |
5372 | ;; necessary once python-hacking > 0.10.2 is released. | |
5373 | (define-public python-flake8-2.2.4 | |
5374 | (package (inherit python-flake8) | |
5375 | (inputs | |
5376 | `(("python-setuptools" ,python-setuptools) | |
5377 | ("python-pep8" ,python-pep8-1.5.7) | |
5378 | ("python-pyflakes" ,python-pyflakes-0.8.1) | |
5379 | ("python-mccabe" ,python-mccabe-0.2.1) | |
5380 | ("python-mock" ,python-mock) | |
5381 | ("python-nose" ,python-nose))) | |
5382 | (version "2.2.4") | |
5383 | (source | |
5384 | (origin | |
5385 | (method url-fetch) | |
5386 | (uri (pypi-uri "flake8" version)) | |
5387 | (sha256 | |
5388 | (base32 | |
5389 | "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8")))))) | |
5390 | ||
5391 | (define-public python2-flake8-2.2.4 | |
5392 | (package-with-python2 python-flake8-2.2.4)) | |
5393 | ||
61b9ac53 FB |
5394 | (define-public python-mistune |
5395 | (package | |
5396 | (name "python-mistune") | |
5397 | (version "0.7") | |
5398 | (source | |
5399 | (origin | |
5400 | (method url-fetch) | |
5401 | (uri (string-append | |
5402 | "https://pypi.python.org/packages/source/m/mistune/mistune-" | |
5403 | version | |
5404 | ".tar.gz")) | |
5405 | (sha256 | |
5406 | (base32 | |
5407 | "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx")))) | |
5408 | (build-system python-build-system) | |
5409 | (inputs | |
5410 | `(("python-setuptools" ,python-setuptools) | |
5411 | ("python-nose" ,python-nose) | |
5412 | ("python-cython" ,python-cython))) | |
5413 | (home-page "https://github.com/lepture/mistune") | |
5414 | (synopsis "Markdown parser in pure Python") | |
5415 | (description "This package provides a fast markdown parser in pure | |
5416 | Python.") | |
3f641af0 | 5417 | (license license:bsd-3))) |
61b9ac53 FB |
5418 | |
5419 | (define-public python2-mistune | |
5420 | (package-with-python2 python-mistune)) | |
6d992d07 | 5421 | |
b9893908 EE |
5422 | (define-public python-markdown |
5423 | (package | |
5424 | (name "python-markdown") | |
5425 | (version "2.6.5") | |
5426 | (source | |
5427 | (origin | |
5428 | (method url-fetch) | |
5429 | (uri (pypi-uri "Markdown" version)) | |
5430 | (sha256 | |
5431 | (base32 | |
5432 | "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d")))) | |
5433 | (build-system python-build-system) | |
5434 | (arguments | |
5435 | `(#:phases | |
5436 | (modify-phases %standard-phases | |
5437 | (replace 'check | |
5438 | (lambda _ | |
5439 | (zero? (system* "python" "run-tests.py"))))))) | |
5440 | (native-inputs | |
5441 | `(("python-nose" ,python-nose) | |
5442 | ("python-pyyaml" ,python-pyyaml))) | |
5443 | (home-page "https://pythonhosted.org/Markdown/") | |
5444 | (synopsis "Python implementation of Markdown") | |
5445 | (description | |
5446 | "This package provides a Python implementation of John Gruber's | |
5447 | Markdown. The library features international input, various Markdown | |
5448 | extensions, and several HTML output formats. A command line wrapper | |
5449 | markdown_py is also provided to convert Markdown files to HTML.") | |
3f641af0 | 5450 | (license license:bsd-3))) |
b9893908 EE |
5451 | |
5452 | (define-public python2-markdown | |
5453 | (package-with-python2 python-markdown)) | |
5454 | ||
6d992d07 FB |
5455 | (define-public python-ptyprocess |
5456 | (package | |
5457 | (name "python-ptyprocess") | |
5458 | (version "0.5") | |
5459 | (source | |
5460 | (origin | |
5461 | (method url-fetch) | |
5462 | (uri (string-append | |
5463 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" | |
5464 | version ".tar.gz")) | |
5465 | (sha256 | |
5466 | (base32 | |
5467 | "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw")))) | |
5468 | (build-system python-build-system) | |
5469 | (inputs | |
5470 | `(("python-setuptools" ,python-setuptools) | |
5471 | ("python-nose" ,python-nose))) | |
5472 | (arguments | |
5473 | `(#:phases | |
5474 | (modify-phases %standard-phases | |
5475 | (replace 'check | |
5476 | (lambda _ | |
5477 | (zero? (system* "nosetests"))))))) | |
5478 | (home-page "https://github.com/pexpect/ptyprocess") | |
5479 | (synopsis "Run a subprocess in a pseudo terminal") | |
5480 | (description | |
5481 | "This package provides a Python library used to launch a subprocess in a | |
5482 | pseudo terminal (pty), and interact with both the process and its pty.") | |
3f641af0 | 5483 | (license license:isc))) |
6d992d07 FB |
5484 | |
5485 | (define-public python2-ptyprocess | |
5486 | (package-with-python2 python-ptyprocess)) | |
4aadb1df FB |
5487 | |
5488 | (define-public python-terminado | |
5489 | (package | |
5490 | (name "python-terminado") | |
783fb0a3 | 5491 | (version "0.6") |
4aadb1df FB |
5492 | (source |
5493 | (origin | |
5494 | (method url-fetch) | |
783fb0a3 | 5495 | (uri (pypi-uri "terminado" version)) |
4aadb1df FB |
5496 | (sha256 |
5497 | (base32 | |
783fb0a3 | 5498 | "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) |
4aadb1df FB |
5499 | (build-system python-build-system) |
5500 | (propagated-inputs | |
5501 | `(("python-tornado" ,python-tornado) | |
5502 | ("python-ptyprocess" ,python-ptyprocess))) | |
783fb0a3 EF |
5503 | (native-inputs |
5504 | `(("python-nose" ,python-nose))) | |
4aadb1df FB |
5505 | (arguments |
5506 | `(#:phases | |
5507 | (modify-phases %standard-phases | |
5508 | (replace 'check | |
5509 | (lambda _ | |
5510 | (zero? (system* "nosetests"))))))) | |
5511 | (home-page "https://github.com/takluyver/terminado") | |
5512 | (synopsis "Terminals served to term.js using Tornado websockets") | |
5513 | (description "This package provides a Tornado websocket backend for the | |
5514 | term.js Javascript terminal emulator library.") | |
3f641af0 | 5515 | (license license:bsd-2) |
783fb0a3 | 5516 | (properties `((python2-variant . ,(delay python2-terminado)))))) |
4aadb1df FB |
5517 | |
5518 | (define-public python2-terminado | |
783fb0a3 | 5519 | (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) |
4aadb1df | 5520 | (package (inherit terminado) |
783fb0a3 EF |
5521 | (propagated-inputs |
5522 | `(("python2-backport-ssl-match-hostname" | |
5523 | ,python2-backport-ssl-match-hostname) | |
5524 | ,@(package-propagated-inputs terminado))) | |
5525 | (native-inputs | |
5526 | `(("python2-setuptools" ,python2-setuptools) | |
5527 | ,@(package-native-inputs terminado)))))) | |
5faa5ce4 | 5528 | |
d582eaac SB |
5529 | (define-public python-fonttools |
5530 | (package | |
5531 | (name "python-fonttools") | |
5532 | (version "2.5") | |
5533 | (source (origin | |
5534 | (method url-fetch) | |
5535 | (uri (string-append | |
5536 | "https://pypi.python.org/packages/source/F/FontTools/" | |
5537 | "fonttools-" version ".tar.gz")) | |
5538 | (sha256 | |
5539 | (base32 | |
5540 | "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) | |
5541 | (build-system python-build-system) | |
5542 | (arguments '(#:test-target "check")) | |
5543 | (propagated-inputs | |
5544 | ;; XXX: module not found if setuptools is not available. | |
5545 | `(("python-setuptools" ,python-setuptools))) | |
5546 | (home-page "http://github.com/behdad/fonttools") | |
5547 | (synopsis "Tools to manipulate font files") | |
5548 | (description | |
5549 | "FontTools/TTX is a library to manipulate font files from Python. It | |
5550 | supports reading and writinfg of TrueType/OpenType fonts, reading and writing | |
5551 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package | |
5552 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and | |
5553 | from an XML-based format.") | |
3f641af0 DC |
5554 | (license (license:non-copyleft |
5555 | "file://LICENSE.txt" | |
5556 | "See LICENSE.txt in the distribution.")))) | |
d582eaac SB |
5557 | |
5558 | (define-public python2-fonttools | |
5559 | (package-with-python2 python-fonttools)) | |
75710da6 | 5560 | |
5faa5ce4 RW |
5561 | (define-public python-ly |
5562 | (package | |
5563 | (name "python-ly") | |
5135354f | 5564 | (version "0.9.4") |
5faa5ce4 RW |
5565 | (source |
5566 | (origin | |
5567 | (method url-fetch) | |
5135354f RW |
5568 | (uri (string-append "https://pypi.python.org/packages/57/4f/" |
5569 | "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" | |
5570 | "/python-ly-" version ".tar.gz")) | |
5faa5ce4 RW |
5571 | (sha256 |
5572 | (base32 | |
5135354f | 5573 | "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62")))) |
5faa5ce4 RW |
5574 | (build-system python-build-system) |
5575 | (native-inputs | |
5576 | `(("python-setuptools" ,python-setuptools))) | |
5577 | (synopsis "Tool and library for manipulating LilyPond files") | |
5578 | (description "This package provides a Python library to parse, manipulate | |
5579 | or create documents in LilyPond format. A command line program ly is also | |
5580 | provided that can be used to do various manipulations with LilyPond files.") | |
5581 | (home-page "https://pypi.python.org/pypi/python-ly") | |
3f641af0 | 5582 | (license license:gpl2+))) |
7e7b27d9 CR |
5583 | |
5584 | (define-public python-appdirs | |
5585 | (package | |
5586 | (name "python-appdirs") | |
5587 | (version "1.4.0") | |
5588 | (source | |
5589 | (origin | |
5590 | (method url-fetch) | |
5591 | (uri (string-append | |
5592 | "https://pypi.python.org/packages/source/a/appdirs/appdirs-" | |
5593 | version | |
5594 | ".tar.gz")) | |
5595 | (sha256 | |
5596 | (base32 | |
5597 | "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg")))) | |
5598 | (build-system python-build-system) | |
5599 | (inputs | |
5600 | `(("python-setuptools" ,python-setuptools))) | |
5601 | (home-page "http://github.com/ActiveState/appdirs") | |
5602 | (synopsis | |
5603 | "Determine platform-specific dirs, e.g. a \"user data dir\"") | |
5604 | (description | |
5605 | "This module provides a portable way of finding out where user data | |
5606 | should be stored on various operating systems.") | |
5607 | (license license:expat))) | |
5608 | ||
5609 | (define-public python2-appdirs | |
5610 | (package-with-python2 python-appdirs)) | |
89b2e0b0 LF |
5611 | |
5612 | (define-public python-llfuse | |
5613 | (package | |
5614 | (name "python-llfuse") | |
e36ace36 | 5615 | (version "1.1.1") |
89b2e0b0 LF |
5616 | (source (origin |
5617 | (method url-fetch) | |
5618 | (uri (string-append | |
5619 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
5620 | "llfuse-" version ".tar.bz2")) | |
5621 | (sha256 | |
5622 | (base32 | |
e36ace36 | 5623 | "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v")))) |
89b2e0b0 LF |
5624 | (build-system python-build-system) |
5625 | (inputs | |
5626 | `(("fuse" ,fuse) | |
5627 | ("attr" ,attr))) | |
5628 | (native-inputs | |
5629 | `(("pkg-config" ,pkg-config) | |
5630 | ("python-setuptools" ,python-setuptools))) | |
5631 | (synopsis "Python bindings for FUSE") | |
5632 | (description | |
5633 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") | |
5634 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") | |
3f641af0 | 5635 | (license license:lgpl2.0+) |
cd0569c4 | 5636 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
89b2e0b0 LF |
5637 | |
5638 | (define-public python2-llfuse | |
cd0569c4 LF |
5639 | (package (inherit (package-with-python2 |
5640 | (strip-python2-variant python-llfuse))) | |
5641 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) | |
5642 | ||
5643 | ;; For attic-0.16 | |
5644 | (define-public python-llfuse-0.41 | |
5645 | (package (inherit python-llfuse) | |
229b3661 | 5646 | (version "0.41.1") |
cd0569c4 LF |
5647 | (source (origin |
5648 | (method url-fetch) | |
5649 | (uri (string-append | |
5650 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" | |
5651 | "llfuse-" version ".tar.bz2")) | |
5652 | (sha256 | |
5653 | (base32 | |
229b3661 | 5654 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
cd0569c4 LF |
5655 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
5656 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. | |
3f641af0 | 5657 | (license (list license:expat license:lgpl2.0+)))) |
641c9871 LF |
5658 | |
5659 | (define-public python-msgpack | |
5660 | (package | |
5661 | (name "python-msgpack") | |
aed625bd | 5662 | (version "0.4.8") |
641c9871 LF |
5663 | (source (origin |
5664 | (method url-fetch) | |
ae831df4 | 5665 | (uri (pypi-uri "msgpack-python" version)) |
641c9871 LF |
5666 | (sha256 |
5667 | (base32 | |
aed625bd | 5668 | "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs")))) |
641c9871 | 5669 | (build-system python-build-system) |
641c9871 LF |
5670 | (synopsis "MessagePack (de)serializer") |
5671 | (description "MessagePack is a fast, compact binary serialization format, | |
5672 | suitable for similar data to JSON. This package provides CPython bindings for | |
5673 | reading and writing MessagePack data.") | |
5674 | (home-page "https://pypi.python.org/pypi/msgpack-python/") | |
3f641af0 | 5675 | (license license:asl2.0) |
bd74be7b LF |
5676 | (properties `((python2-variant . ,(delay python2-msgpack)))))) |
5677 | ||
5678 | (define-public python2-msgpack | |
5679 | (package (inherit (package-with-python2 | |
5680 | (strip-python2-variant python-msgpack))) | |
5681 | (native-inputs | |
5682 | `(("python2-setuptools" ,python2-setuptools))))) | |
641c9871 LF |
5683 | |
5684 | (define-public python2-msgpack | |
5685 | (package-with-python2 python-msgpack)) | |
6e5e39f4 CR |
5686 | |
5687 | (define-public python-netaddr | |
5688 | (package | |
5689 | (name "python-netaddr") | |
5690 | (version "0.7.18") | |
5691 | (source | |
5692 | (origin | |
5693 | (method url-fetch) | |
5694 | (uri (string-append | |
5695 | "https://pypi.python.org/packages/source/n/netaddr/netaddr-" | |
5696 | version | |
5697 | ".tar.gz")) | |
5698 | (sha256 | |
5699 | (base32 | |
5700 | "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) | |
5701 | (build-system python-build-system) | |
5702 | (arguments `(#:tests? #f)) ;; No tests. | |
5703 | (inputs | |
5704 | `(("python-setuptools" ,python-setuptools))) | |
5705 | (home-page "https://github.com/drkjam/netaddr/") | |
5706 | (synopsis "Pythonic manipulation of network addresses") | |
5707 | (description | |
5708 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI | |
5709 | and MAC network addresses.") | |
3f641af0 | 5710 | (license license:bsd-3))) |
6e5e39f4 CR |
5711 | |
5712 | (define-public python2-netaddr | |
5713 | (package-with-python2 python-netaddr)) | |
8c692a52 CR |
5714 | |
5715 | (define-public python-wrapt | |
5716 | (package | |
5717 | (name "python-wrapt") | |
5718 | (version "1.10.5") | |
5719 | (source | |
5720 | (origin | |
5721 | (method url-fetch) | |
5722 | (uri (string-append | |
5723 | "https://pypi.python.org/packages/source/w/wrapt/wrapt-" | |
5724 | version | |
5725 | ".tar.gz")) | |
5726 | (sha256 | |
5727 | (base32 | |
5728 | "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) | |
5729 | (build-system python-build-system) | |
5730 | (arguments | |
5731 | ;; Tests are not included in the tarball, they are only available in the | |
5732 | ;; git repository. | |
5733 | `(#:tests? #f)) | |
5734 | (inputs | |
5735 | `(("python-setuptools" ,python-setuptools))) | |
5736 | (home-page "https://github.com/GrahamDumpleton/wrapt") | |
5737 | (synopsis "Module for decorators, wrappers and monkey patching") | |
5738 | (description | |
5739 | "The aim of the wrapt module is to provide a transparent object proxy for | |
5740 | Python, which can be used as the basis for the construction of function | |
5741 | wrappers and decorator functions.") | |
3f641af0 | 5742 | (license license:bsd-2))) |
8c692a52 CR |
5743 | |
5744 | (define-public python2-wrapt | |
5745 | (package-with-python2 python-wrapt)) | |
b85c85be CR |
5746 | |
5747 | (define-public python-iso8601 | |
5748 | (package | |
5749 | (name "python-iso8601") | |
fe84bc9a | 5750 | (version "0.1.11") |
b85c85be CR |
5751 | (source |
5752 | (origin | |
5753 | (method url-fetch) | |
fe84bc9a | 5754 | (uri (pypi-uri "iso8601" version)) |
b85c85be | 5755 | (sha256 |
fe84bc9a EF |
5756 | (base32 |
5757 | "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8")))) | |
b85c85be CR |
5758 | (build-system python-build-system) |
5759 | (inputs | |
5760 | `(("python-setuptools" ,python-setuptools))) | |
5761 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") | |
5762 | (synopsis "Module to parse ISO 8601 dates") | |
5763 | (description | |
5764 | "This module parses the most common forms of ISO 8601 date strings (e.g. | |
5765 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") | |
5766 | (license license:expat))) | |
5767 | ||
5768 | (define-public python2-iso8601 | |
5769 | (package-with-python2 python-iso8601)) | |
5e412b63 CR |
5770 | |
5771 | (define-public python-monotonic | |
5772 | (package | |
5773 | (name "python-monotonic") | |
5774 | (version "0.3") | |
5775 | (source | |
5776 | (origin | |
5777 | (method url-fetch) | |
5778 | (uri (string-append | |
5779 | "https://pypi.python.org/packages/source/m/monotonic/monotonic-" | |
5780 | version | |
5781 | ".tar.gz")) | |
5782 | (sha256 | |
5783 | (base32 | |
5784 | "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) | |
5785 | (build-system python-build-system) | |
5786 | (inputs | |
5787 | `(("python-setuptools" ,python-setuptools))) | |
5788 | (home-page "https://github.com/atdt/monotonic") | |
5789 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") | |
5790 | (description | |
5791 | "This module provides a monotonic() function which returns the value (in | |
5792 | fractional seconds) of a clock which never goes backwards.") | |
3f641af0 | 5793 | (license license:asl2.0))) |
5e412b63 CR |
5794 | |
5795 | (define-public python2-monotonic | |
5796 | (package-with-python2 python-monotonic)) | |
de34afac CR |
5797 | |
5798 | (define-public python-webob | |
5799 | (package | |
5800 | (name "python-webob") | |
b8834c21 | 5801 | (version "1.5.1") |
de34afac CR |
5802 | (source |
5803 | (origin | |
5804 | (method url-fetch) | |
b8834c21 | 5805 | (uri (pypi-uri "WebOb" version)) |
de34afac CR |
5806 | (sha256 |
5807 | (base32 | |
b8834c21 | 5808 | "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) |
de34afac CR |
5809 | (build-system python-build-system) |
5810 | (inputs | |
5811 | `(("python-nose" ,python-nose) | |
5812 | ("python-setuptools" ,python-setuptools))) | |
5813 | (home-page "http://webob.org/") | |
5814 | (synopsis "WSGI request and response object") | |
5815 | (description | |
5816 | "WebOb provides wrappers around the WSGI request environment, and an | |
5817 | object to help create WSGI responses.") | |
5818 | (license license:expat))) | |
5819 | ||
5820 | (define-public python2-webob | |
5821 | (package-with-python2 python-webob)) | |
350ba0a3 | 5822 | |
02a8a187 BW |
5823 | (define-public python-xlrd |
5824 | (package | |
5825 | (name "python-xlrd") | |
5826 | (version "0.9.4") | |
5827 | (source (origin | |
5828 | (method url-fetch) | |
5829 | (uri (string-append "https://pypi.python.org/packages/source/x/" | |
5830 | "xlrd/xlrd-" version ".tar.gz")) | |
5831 | (sha256 | |
5832 | (base32 | |
5833 | "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf")))) | |
5834 | (build-system python-build-system) | |
5835 | (arguments | |
5836 | `(#:phases | |
5837 | (modify-phases %standard-phases | |
5838 | ;; Current test in setup.py does not work as of 0.9.4, so use nose to | |
5839 | ;; run tests instead for now. | |
5840 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) | |
5841 | (native-inputs `(("python-nose" ,python-nose) | |
5842 | ("python-setuptools" ,python-setuptools))) | |
5843 | (home-page "http://www.python-excel.org/") | |
5844 | (synopsis "Library for extracting data from Excel files") | |
5845 | (description "This packages provides a library to extract data from | |
c598e35c | 5846 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
02a8a187 BW |
5847 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
5848 | Unicode-aware. It is not intended as an end-user tool.") | |
3f641af0 | 5849 | (license license:bsd-3))) |
02a8a187 BW |
5850 | |
5851 | (define-public python2-xlrd | |
5852 | (package-with-python2 python-xlrd)) | |
5853 | ||
350ba0a3 CR |
5854 | (define-public python-prettytable |
5855 | (package | |
5856 | (name "python-prettytable") | |
5857 | (version "0.7.2") | |
5858 | (source | |
5859 | (origin | |
5860 | (method url-fetch) | |
5861 | (uri (string-append | |
5862 | "https://pypi.python.org/packages/source/P/PrettyTable/" | |
5863 | "prettytable-" version ".tar.bz2")) | |
5864 | (sha256 | |
5865 | (base32 | |
5866 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) | |
5867 | (build-system python-build-system) | |
5868 | (inputs | |
5869 | `(("python-setuptools" ,python-setuptools))) | |
5870 | (home-page "http://code.google.com/p/prettytable/") | |
5871 | (synopsis "Display tabular data in an ASCII table format") | |
5872 | (description | |
5873 | "A library designed to represent tabular data in visually appealing ASCII | |
5874 | tables. PrettyTable allows for selection of which columns are to be printed, | |
5875 | independent alignment of columns (left or right justified or centred) and | |
5876 | printing of sub-tables by specifying a row range.") | |
3f641af0 | 5877 | (license license:bsd-3))) |
350ba0a3 CR |
5878 | |
5879 | (define-public python2-prettytable | |
5880 | (package-with-python2 python-prettytable)) | |
7a8ac75a | 5881 | |
9f8ee3fe RW |
5882 | (define-public python-tables |
5883 | (package | |
5884 | (name "python-tables") | |
5885 | (version "3.2.2") | |
5886 | (source | |
5887 | (origin | |
5888 | (method url-fetch) | |
5889 | (uri (pypi-uri "tables" version)) | |
5890 | (sha256 | |
5891 | (base32 | |
5892 | "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m")))) | |
5893 | (build-system python-build-system) | |
5894 | (arguments | |
5895 | `(;; FIXME: python-build-system does not pass configure-flags to "build" | |
5896 | ;; or "check", so we must override the build and check phases. | |
5897 | #:phases | |
5898 | (modify-phases %standard-phases | |
5899 | (add-after 'unpack 'use-gcc | |
5900 | (lambda _ | |
5901 | (substitute* "setup.py" | |
5902 | (("compiler = new_compiler\\(\\)" line) | |
5903 | (string-append line | |
5904 | "\ncompiler.set_executables(compiler='gcc'," | |
5905 | "compiler_so='gcc'," | |
5906 | "linker_exe='gcc'," | |
5907 | "linker_so='gcc -shared')"))) | |
5908 | #t)) | |
5909 | (replace 'build | |
5910 | (lambda* (#:key inputs #:allow-other-keys) | |
5911 | (zero? (system* "python" "setup.py" "build" | |
5912 | (string-append "--hdf5=" | |
5913 | (assoc-ref inputs "hdf5")))))) | |
5914 | (replace 'check | |
5915 | (lambda* (#:key inputs #:allow-other-keys) | |
5916 | (zero? (system* "python" "setup.py" "check" | |
5917 | (string-append "--hdf5=" | |
5918 | (assoc-ref inputs "hdf5"))))))))) | |
5919 | (propagated-inputs | |
5920 | `(("python-numexpr" ,python-numexpr) | |
5921 | ("python-numpy" ,python-numpy))) | |
5922 | (native-inputs | |
5923 | `(("python-setuptools" ,python-setuptools) | |
5924 | ("python-cython" ,python-cython) | |
5925 | ("pkg-config" ,pkg-config))) | |
5926 | (inputs | |
5927 | `(("hdf5" ,hdf5) | |
5928 | ("bzip2" ,bzip2) | |
5929 | ("zlib" ,zlib))) | |
5930 | (home-page "http://www.pytables.org/") | |
5931 | (synopsis "Hierarchical datasets for Python") | |
5932 | (description "PyTables is a package for managing hierarchical datasets and | |
5933 | designed to efficently cope with extremely large amounts of data.") | |
3f641af0 | 5934 | (license license:bsd-3))) |
9f8ee3fe RW |
5935 | |
5936 | (define-public python2-tables | |
5937 | (package-with-python2 python-tables)) | |
5938 | ||
7a8ac75a RW |
5939 | (define-public python-pyasn1 |
5940 | (package | |
5941 | (name "python-pyasn1") | |
5942 | (version "0.1.8") | |
5943 | (source | |
5944 | (origin | |
5945 | (method url-fetch) | |
5946 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
5947 | "pyasn1/pyasn1-" version ".tar.gz")) | |
5948 | (sha256 | |
5949 | (base32 | |
5950 | "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx")))) | |
5951 | (build-system python-build-system) | |
5952 | (home-page "http://pyasn1.sourceforge.net/") | |
5953 | (synopsis "ASN.1 types and codecs") | |
5954 | (description | |
5955 | "This is an implementation of ASN.1 types and codecs in Python. It is | |
5956 | suitable for a wide range of protocols based on the ASN.1 specification.") | |
3f641af0 | 5957 | (license license:bsd-2))) |
7a8ac75a RW |
5958 | |
5959 | (define-public python2-pyasn1 | |
5960 | (package-with-python2 python-pyasn1)) | |
9a49a535 | 5961 | |
5988c299 EF |
5962 | (define-public python-pyasn1-modules |
5963 | (package | |
5964 | (name "python-pyasn1-modules") | |
5965 | (version "0.0.8") | |
5966 | (source | |
5967 | (origin | |
5968 | (method url-fetch) | |
5969 | (uri (pypi-uri "pyasn1-modules" version)) | |
5970 | (sha256 | |
5971 | (base32 | |
5972 | "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) | |
5973 | (build-system python-build-system) | |
5974 | (native-inputs | |
5975 | `(("python-setuptools" ,python-setuptools))) | |
5976 | (propagated-inputs | |
5977 | `(("python-pyasn1" ,python-pyasn1))) | |
5978 | (home-page "http://sourceforge.net/projects/pyasn1/") | |
5979 | (synopsis "ASN.1 codec implementations") | |
5980 | (description | |
5981 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and | |
5982 | implementations of ASN.1-based codecs and protocols.") | |
3f641af0 | 5983 | (license license:bsd-3))) |
5988c299 EF |
5984 | |
5985 | (define-public python2-pyasn1-modules | |
5986 | (package-with-python2 python-pyasn1-modules)) | |
5987 | ||
520af157 | 5988 | (define-public python-ipaddress |
9a49a535 | 5989 | (package |
520af157 DC |
5990 | (name "python-ipaddress") |
5991 | (version "1.0.16") | |
5992 | (source (origin | |
5993 | (method url-fetch) | |
5994 | (uri (pypi-uri "ipaddress" version)) | |
5995 | (sha256 | |
5996 | (base32 | |
5997 | "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas")))) | |
9a49a535 | 5998 | (build-system python-build-system) |
9a49a535 RW |
5999 | (home-page "https://github.com/phihag/ipaddress") |
6000 | (synopsis "IP address manipulation library") | |
6001 | (description | |
520af157 DC |
6002 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
6003 | in Python. This library is used to create, poke at, and manipulate IPv4 and | |
6004 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress | |
6005 | module to older versions of Python.") | |
6006 | (license license:psfl) | |
6007 | (properties `((python2-variant . ,(delay python2-ipaddress)))))) | |
6008 | ||
6009 | (define-public python2-ipaddress | |
6010 | (let ((base (package-with-python2 (strip-python2-variant python-ipaddress)))) | |
6011 | (package (inherit base) | |
6012 | (native-inputs | |
6013 | `(("python2-setuptools" ,python2-setuptools) | |
6014 | ,@(package-native-inputs base)))))) | |
3f00e078 | 6015 | |
4a238186 HG |
6016 | (define-public python2-ipaddr |
6017 | (package | |
6018 | (name "python2-ipaddr") | |
6019 | (version "2.1.11") | |
6020 | (source | |
6021 | (origin | |
6022 | (method url-fetch) | |
6023 | (uri (pypi-uri "ipaddr" version)) | |
6024 | (sha256 | |
6025 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) | |
6026 | (build-system python-build-system) | |
6027 | (arguments | |
6028 | `(#:python ,python-2 ;version 2 only | |
6029 | #:phases | |
6030 | (modify-phases %standard-phases | |
6031 | (replace 'check | |
6032 | (lambda* _ | |
6033 | (zero? (system* "python" "ipaddr_test.py"))))))) | |
6034 | (home-page "https://github.com/google/ipaddr-py") | |
6035 | (synopsis "IP address manipulation library") | |
6036 | (description | |
6037 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and | |
6038 | IPv6 addresses and networks. | |
6039 | ||
6040 | For new implementations you may prefer to use the standard module | |
6041 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older | |
6042 | versions of Python.") | |
3f641af0 | 6043 | (license license:asl2.0))) |
4a238186 | 6044 | |
3f00e078 RW |
6045 | (define-public python-idna |
6046 | (package | |
6047 | (name "python-idna") | |
6048 | (version "2.0") | |
6049 | (source | |
6050 | (origin | |
6051 | (method url-fetch) | |
6052 | (uri (string-append "https://pypi.python.org/packages/source/i/" | |
6053 | "idna/idna-" version ".tar.gz")) | |
6054 | (sha256 | |
6055 | (base32 | |
6056 | "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n")))) | |
6057 | (build-system python-build-system) | |
6058 | (native-inputs | |
6059 | `(("python-setuptools" ,python-setuptools))) | |
6060 | (home-page "https://github.com/kjd/idna") | |
6061 | (synopsis "Internationalized domain names in applications") | |
6062 | (description | |
6063 | "This is a library to support the Internationalised Domain Names in | |
6064 | Applications (IDNA) protocol as specified in RFC 5891. This version of the | |
6065 | protocol is often referred to as “IDNA2008” and can produce different results | |
6066 | from the earlier standard from 2003. The library is also intended to act as a | |
6067 | suitable drop-in replacement for the “encodings.idna” module that comes with | |
6068 | the Python standard library but currently only supports the older 2003 | |
6069 | specification.") | |
3f641af0 | 6070 | (license license:bsd-4))) |
3f00e078 RW |
6071 | |
6072 | (define-public python2-idna | |
6073 | (package-with-python2 python-idna)) | |
36ebf972 RW |
6074 | |
6075 | (define-public python-pretend | |
6076 | (package | |
6077 | (name "python-pretend") | |
6078 | (version "1.0.8") | |
6079 | (source | |
6080 | (origin | |
6081 | (method url-fetch) | |
6082 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
6083 | "pretend/pretend-" version ".tar.gz")) | |
6084 | (sha256 | |
6085 | (base32 | |
6086 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) | |
6087 | (build-system python-build-system) | |
6088 | (native-inputs | |
6089 | `(("python-setuptools" ,python-setuptools))) | |
6090 | (home-page "https://github.com/alex/pretend") | |
6091 | (synopsis "Library for stubbing in Python") | |
6092 | (description | |
6093 | "Pretend is a library to make stubbing with Python easier. Stubbing is a | |
6094 | technique for writing tests. You may hear the term mixed up with mocks, | |
6095 | fakes, or doubles. Basically, a stub is an object that returns pre-canned | |
6096 | responses, rather than doing any computation.") | |
3f641af0 | 6097 | (license license:bsd-3))) |
36ebf972 RW |
6098 | |
6099 | (define-public python2-pretend | |
6100 | (package-with-python2 python-pretend)) | |
aa759a51 RW |
6101 | |
6102 | (define-public python-cryptography-vectors | |
6103 | (package | |
6104 | (name "python-cryptography-vectors") | |
9c509ca9 | 6105 | (version "1.3.4") |
aa759a51 RW |
6106 | (source |
6107 | (origin | |
6108 | (method url-fetch) | |
9c509ca9 | 6109 | (uri (pypi-uri "cryptography_vectors" version)) |
aa759a51 RW |
6110 | (sha256 |
6111 | (base32 | |
9c509ca9 | 6112 | "15h1iz2klnpb4f8djxy7cpbnyn3wbjp7bnj4pz6s7w6plghbq524")))) |
aa759a51 RW |
6113 | (build-system python-build-system) |
6114 | (native-inputs | |
6115 | `(("python-setuptools" ,python-setuptools))) | |
6116 | (home-page "https://github.com/pyca/cryptography") | |
66e07664 | 6117 | (synopsis "Test vectors for the cryptography package") |
aa759a51 RW |
6118 | (description |
6119 | "This package contains test vectors for the cryptography package.") | |
6120 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 6121 | (license (list license:bsd-3 license:asl2.0)))) |
aa759a51 RW |
6122 | |
6123 | (define-public python2-cryptography-vectors | |
6124 | (package-with-python2 python-cryptography-vectors)) | |
88b47cb0 RW |
6125 | |
6126 | (define-public python-cryptography | |
6127 | (package | |
6128 | (name "python-cryptography") | |
9c509ca9 | 6129 | (version "1.3.4") |
88b47cb0 RW |
6130 | (source |
6131 | (origin | |
6132 | (method url-fetch) | |
9c509ca9 | 6133 | (uri (pypi-uri "cryptography" version)) |
88b47cb0 RW |
6134 | (sha256 |
6135 | (base32 | |
9c509ca9 | 6136 | "1a85l548w5vvq3yhz0az7ajg2ijixzp6gagapw6wgrqvq28ghgs2")))) |
88b47cb0 RW |
6137 | (build-system python-build-system) |
6138 | (inputs | |
6139 | `(("openssl" ,openssl))) | |
6140 | (propagated-inputs | |
6141 | `(("python-cffi" ,python-cffi) | |
6142 | ("python-six" ,python-six) | |
6143 | ("python-pyasn1" ,python-pyasn1) | |
88b47cb0 RW |
6144 | ("python-idna" ,python-idna) |
6145 | ("python-iso8601" ,python-iso8601))) | |
6146 | (native-inputs | |
6147 | `(("python-cryptography-vectors" ,python-cryptography-vectors) | |
ce6c13ee | 6148 | ("python-hypothesis" ,python-hypothesis) |
88b47cb0 RW |
6149 | ("python-setuptools" ,python-setuptools) |
6150 | ("python-pretend" ,python-pretend) | |
ce6c13ee EF |
6151 | ("python-pyasn1" ,python-pyasn1) |
6152 | ("python-pyasn1-modules" ,python-pyasn1-modules) | |
88b47cb0 RW |
6153 | ("python-pytest" ,python-pytest))) |
6154 | (home-page "https://github.com/pyca/cryptography") | |
6155 | (synopsis "Cryptographic recipes and primitives for Python") | |
6156 | (description | |
6157 | "cryptography is a package which provides cryptographic recipes and | |
6158 | primitives to Python developers. It aims to be the “cryptographic standard | |
6159 | library” for Python. The package includes both high level recipes, and low | |
6160 | level interfaces to common cryptographic algorithms such as symmetric ciphers, | |
6161 | message digests and key derivation functions.") | |
6162 | ;; Distributed under either BSD-3 or ASL2.0 | |
3f641af0 | 6163 | (license (list license:bsd-3 license:asl2.0)) |
519e2f4f | 6164 | (properties `((python2-variant . ,(delay python2-cryptography)))))) |
88b47cb0 RW |
6165 | |
6166 | (define-public python2-cryptography | |
519e2f4f LF |
6167 | (let ((crypto (package-with-python2 |
6168 | (strip-python2-variant python-cryptography)))) | |
88b47cb0 RW |
6169 | (package (inherit crypto) |
6170 | (propagated-inputs | |
6171 | `(("python2-ipaddress" ,python2-ipaddress) | |
ce6c13ee EF |
6172 | ("python2-backport-ssl-match-hostname" |
6173 | ,python2-backport-ssl-match-hostname) | |
68f1cdec | 6174 | ("python2-enum34" ,python2-enum34) |
88b47cb0 | 6175 | ,@(package-propagated-inputs crypto)))))) |
5af999b8 RW |
6176 | |
6177 | (define-public python-pyopenssl | |
6178 | (package | |
6179 | (name "python-pyopenssl") | |
2fc629dd | 6180 | (version "16.0.0") |
5af999b8 RW |
6181 | (source |
6182 | (origin | |
6183 | (method url-fetch) | |
6184 | (uri (string-append "https://pypi.python.org/packages/source/p/" | |
6185 | "pyOpenSSL/pyOpenSSL-" version ".tar.gz")) | |
6186 | (sha256 | |
6187 | (base32 | |
2fc629dd | 6188 | "0zfijaxlq4vgi6jz0d4i5xq9ygqnyps6br7lmigjhqnh8gp10g9n")))) |
5af999b8 | 6189 | (build-system python-build-system) |
5af999b8 RW |
6190 | (propagated-inputs |
6191 | `(("python-cryptography" ,python-cryptography) | |
6192 | ("python-six" ,python-six))) | |
6193 | (inputs | |
6194 | `(("openssl" ,openssl))) | |
6195 | (native-inputs | |
6196 | `(("python-setuptools" ,python-setuptools))) | |
6197 | (home-page "https://github.com/pyca/pyopenssl") | |
6198 | (synopsis "Python wrapper module around the OpenSSL library") | |
6199 | (description | |
6200 | "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL | |
6201 | library.") | |
3f641af0 | 6202 | (license license:asl2.0))) |
5af999b8 RW |
6203 | |
6204 | (define-public python2-pyopenssl | |
519e2f4f | 6205 | (package-with-python2 python-pyopenssl)) |
643725a1 CR |
6206 | |
6207 | (define-public python-pip | |
6208 | (package | |
6209 | (name "python-pip") | |
6fb54e3b | 6210 | (version "8.0.2") |
643725a1 CR |
6211 | (source |
6212 | (origin | |
6213 | (method url-fetch) | |
6fb54e3b | 6214 | (uri (pypi-uri "pip" version)) |
643725a1 CR |
6215 | (sha256 |
6216 | (base32 | |
6fb54e3b | 6217 | "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26")))) |
643725a1 CR |
6218 | (build-system python-build-system) |
6219 | (inputs | |
6220 | `(("python-setuptools" ,python-setuptools) | |
6221 | ("python-virtualenv" ,python-virtualenv) | |
6222 | ;; Tests | |
6223 | ("python-mock" ,python-mock) | |
6224 | ("python-pytest" ,python-pytest) | |
6225 | ("python-scripttest" ,python-scripttest))) | |
6226 | (home-page "https://pip.pypa.io/") | |
6227 | (synopsis | |
6228 | "Package manager for Python software") | |
6229 | (description | |
6230 | "Pip is a package manager for Python software, that finds packages on the | |
6231 | Python Package Index (PyPI).") | |
6232 | (license license:expat))) | |
6233 | ||
6234 | (define-public python2-pip | |
6235 | (package-with-python2 python-pip)) | |
d8c4998f LC |
6236 | |
6237 | (define-public python-tlsh | |
6238 | (package | |
6239 | (name "python-tlsh") | |
99b00dc7 | 6240 | (version "3.4.4") |
d8c4998f LC |
6241 | (home-page "https://github.com/trendmicro/tlsh") |
6242 | (source (origin | |
99b00dc7 EF |
6243 | (method url-fetch) |
6244 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" | |
6245 | version ".tar.gz")) | |
d8c4998f LC |
6246 | (sha256 |
6247 | (base32 | |
99b00dc7 EF |
6248 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
6249 | (file-name (string-append name "-" version ".tar.gz")))) | |
d8c4998f LC |
6250 | (build-system cmake-build-system) |
6251 | (arguments | |
6252 | '(#:out-of-source? #f | |
6253 | #:phases (modify-phases %standard-phases | |
6254 | (replace | |
6255 | 'install | |
6256 | (lambda* (#:key outputs #:allow-other-keys) | |
6257 | ;; Build and install the Python bindings. The underlying | |
6258 | ;; C++ library is apparently not meant to be installed. | |
6259 | (let ((out (assoc-ref outputs "out"))) | |
6260 | (with-directory-excursion "py_ext" | |
6261 | (and (system* "python" "setup.py" "build") | |
6262 | (system* "python" "setup.py" "install" | |
6263 | (string-append "--prefix=" out)))))))))) | |
6264 | (inputs `(("python" ,python-wrapper))) ;for the bindings | |
6265 | (synopsis "Fuzzy matching library for Python") | |
6266 | (description | |
6267 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. | |
6268 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash | |
6269 | value which can be used for similarity comparisons. Similar objects have | |
6270 | similar hash values, which allows for the detection of similar objects by | |
6271 | comparing their hash values. The byte stream should have a sufficient amount | |
6272 | of complexity; for example, a byte stream of identical bytes will not generate | |
6273 | a hash value.") | |
3f641af0 | 6274 | (license license:asl2.0))) |
d8c4998f LC |
6275 | |
6276 | (define-public python2-tlsh | |
6277 | (package | |
6278 | (inherit python-tlsh) | |
6279 | (name "python2-tlsh") | |
6280 | (inputs `(("python" ,python-2))))) | |
d96034ed LC |
6281 | |
6282 | (define-public python-libarchive-c | |
6283 | (package | |
6284 | (name "python-libarchive-c") | |
03fd001c | 6285 | (version "2.2") |
d96034ed LC |
6286 | (source (origin |
6287 | (method url-fetch) | |
03fd001c | 6288 | (uri (pypi-uri "libarchive-c" version)) |
d96034ed LC |
6289 | (sha256 |
6290 | (base32 | |
03fd001c | 6291 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
d96034ed LC |
6292 | (build-system python-build-system) |
6293 | (arguments | |
6294 | '(#:phases (modify-phases %standard-phases | |
6295 | (add-before | |
6296 | 'build 'reference-libarchive | |
6297 | (lambda* (#:key inputs #:allow-other-keys) | |
6298 | ;; Retain the absolute file name of libarchive.so. | |
6299 | (let ((libarchive (assoc-ref inputs "libarchive"))) | |
6300 | (substitute* "libarchive/ffi.py" | |
6301 | (("find_library\\('archive'\\)") | |
6302 | (string-append "'" libarchive | |
6303 | "/lib/libarchive.so'")))) | |
6304 | ||
6305 | ;; Do not make a compressed egg (see | |
6306 | ;; <http://bugs.gnu.org/20765>). | |
6307 | (let ((port (open-file "setup.cfg" "a"))) | |
6308 | (display "\n[easy_install]\nzip_ok = 0\n" | |
6309 | port) | |
6310 | (close-port port) | |
6311 | #t)))))) | |
6312 | (inputs | |
6313 | `(("python-setuptools" ,python-setuptools) | |
6314 | ("libarchive" ,libarchive))) | |
6315 | (home-page "https://github.com/Changaco/python-libarchive-c") | |
6316 | (synopsis "Python interface to libarchive") | |
6317 | (description | |
6318 | "This package provides Python bindings to libarchive, a C library to | |
6319 | access possibly compressed archives in many different formats. It uses | |
6320 | Python's @code{ctypes} foreign function interface (FFI).") | |
3f641af0 | 6321 | (license license:lgpl2.0+))) |
d96034ed LC |
6322 | |
6323 | (define-public python2-libarchive-c | |
6324 | (package-with-python2 python-libarchive-c)) | |
5e1c9367 LC |
6325 | |
6326 | (define-public python-file | |
6327 | (package | |
6328 | (inherit file) | |
6329 | (name "python-file") | |
6330 | (build-system python-build-system) | |
6331 | (arguments | |
6332 | '(#:tests? #f ;no tests | |
6333 | #:phases (modify-phases %standard-phases | |
6334 | (add-before 'build 'change-directory | |
6335 | (lambda _ | |
6336 | (chdir "python") | |
6337 | #t)) | |
6338 | (add-before 'build 'set-library-file-name | |
6339 | (lambda* (#:key inputs #:allow-other-keys) | |
6340 | (let ((file (assoc-ref inputs "file"))) | |
6341 | (substitute* "magic.py" | |
6342 | (("find_library\\('magic'\\)") | |
6343 | (string-append "'" file "/lib/libmagic.so'"))) | |
6344 | #t)))))) | |
6345 | (inputs `(("file" ,file))) | |
6346 | (self-native-input? #f) | |
daeeea71 CM |
6347 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
6348 | this module and the python-magic module both provide a \"magic.py\" file; | |
6349 | these two modules, which are different and were developed separately, both | |
6350 | serve the same purpose: provide Python bindings for libmagic."))) | |
5e1c9367 LC |
6351 | |
6352 | (define-public python2-file | |
6353 | (package-with-python2 python-file)) | |
85d4aeac LC |
6354 | |
6355 | (define-public python-debian | |
6356 | (package | |
6357 | (name "python-debian") | |
6358 | (version "0.1.23") | |
6359 | (source | |
6360 | (origin | |
6361 | (method url-fetch) | |
6362 | (uri (string-append | |
6363 | "https://pypi.python.org/packages/source/p/python-debian/python-debian-" | |
6364 | version ".tar.gz")) | |
6365 | (sha256 | |
6366 | (base32 | |
6367 | "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh")))) | |
6368 | (build-system python-build-system) | |
6369 | (inputs | |
6370 | `(("python-six" ,python-six))) | |
6371 | (native-inputs | |
6372 | `(("python-setuptools" ,python-setuptools))) | |
6373 | (home-page "http://packages.debian.org/sid/python-debian") | |
6374 | (synopsis "Debian package related modules") | |
6375 | (description | |
5c7bdc9a LC |
6376 | ;; XXX: Use @enumerate instead of @itemize to work around |
6377 | ;; <http://bugs.gnu.org/21772>. | |
85d4aeac LC |
6378 | "This package provides Python modules that abstract many formats of |
6379 | Debian-related files, such as: | |
6380 | ||
5c7bdc9a | 6381 | @enumerate |
85d4aeac LC |
6382 | @item Debtags information; |
6383 | @item @file{debian/changelog} files; | |
6384 | @item packages files, pdiffs; | |
6385 | @item control files of single or multiple RFC822-style paragraphs---e.g. | |
6386 | @file{debian/control}, @file{.changes}, @file{.dsc}; | |
6387 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to | |
6388 | contained files and meta-information. | |
5c7bdc9a | 6389 | @end enumerate\n") |
85d4aeac LC |
6390 | |
6391 | ;; Modules are either GPLv2+ or GPLv3+. | |
3f641af0 | 6392 | (license license:gpl3+))) |
85d4aeac LC |
6393 | |
6394 | (define-public python2-debian | |
6395 | (package-with-python2 python-debian)) | |
816a6538 LC |
6396 | |
6397 | (define-public python-chardet | |
6398 | (package | |
6399 | (name "python-chardet") | |
6400 | (version "2.3.0") | |
6401 | (source | |
6402 | (origin | |
6403 | (method url-fetch) | |
6404 | (uri (string-append | |
6405 | "https://pypi.python.org/packages/source/c/chardet/chardet-" | |
6406 | version | |
6407 | ".tar.gz")) | |
6408 | (sha256 | |
6409 | (base32 | |
6410 | "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5")))) | |
6411 | (build-system python-build-system) | |
6412 | (native-inputs | |
6413 | `(("python-setuptools" ,python-setuptools))) | |
6414 | (home-page "https://github.com/chardet/chardet") | |
6415 | (synopsis "Universal encoding detector for Python 2 and 3") | |
6416 | (description | |
6417 | "This package provides @code{chardet}, a Python module that can | |
6418 | automatically detect a wide range of file encodings.") | |
3f641af0 | 6419 | (license license:lgpl2.1+))) |
816a6538 LC |
6420 | |
6421 | (define-public python2-chardet | |
6422 | (package-with-python2 python-chardet)) | |
2fc5f186 | 6423 | |
1872f1bb KM |
6424 | (define-public python-docopt |
6425 | (package | |
6426 | (name "python-docopt") | |
6427 | (version "0.6.2") | |
6428 | (source | |
6429 | (origin | |
6430 | (method url-fetch) | |
6431 | ;; The release on PyPI does not include tests. | |
6432 | (uri (string-append | |
6433 | "https://github.com/docopt/docopt/archive/" | |
6434 | version ".tar.gz")) | |
6435 | (file-name (string-append name "-" version ".tar.gz")) | |
6436 | (sha256 | |
6437 | (base32 | |
6438 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) | |
6439 | (build-system python-build-system) | |
6440 | (native-inputs | |
6441 | `(("python-pytest" ,python-pytest) | |
6442 | ("python-setuptools" ,python-setuptools))) | |
6443 | (arguments | |
6444 | `(#:phases (alist-replace | |
6445 | 'check | |
6446 | (lambda _ (zero? (system* "py.test"))) | |
6447 | %standard-phases))) | |
6448 | (home-page "http://docopt.org") | |
6449 | (synopsis "Command-line interface description language for Python") | |
6450 | (description "This library allows the user to define a command-line | |
6451 | interface from a program's help message rather than specifying it | |
6452 | programatically with command-line parsers like @code{getopt} and | |
6453 | @code{argparse}.") | |
6454 | (license license:expat))) | |
6455 | ||
6456 | (define-public python2-docopt | |
6457 | (package-with-python2 python-docopt)) | |
6458 | ||
2fc5f186 LF |
6459 | (define-public python-zope-event |
6460 | (package | |
6461 | (name "python-zope-event") | |
6462 | (version "4.1.0") | |
6463 | (source | |
6464 | (origin | |
6465 | (method url-fetch) | |
6466 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6467 | "/zope.event/zope.event-" version ".tar.gz")) | |
6468 | (sha256 | |
6469 | (base32 | |
6470 | "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) | |
6471 | (build-system python-build-system) | |
6472 | (inputs | |
6473 | `(("python-setuptools" ,python-setuptools))) | |
6474 | (home-page "http://pypi.python.org/pypi/zope.event") | |
6475 | (synopsis "Event publishing system for Python") | |
6476 | (description "Zope.event provides an event publishing API, intended for | |
6477 | use by applications which are unaware of any subscribers to their events. It | |
6478 | is a simple event-dispatching system on which more sophisticated event | |
6479 | dispatching systems can be built.") | |
3f641af0 | 6480 | (license license:zpl2.1))) |
2fc5f186 LF |
6481 | |
6482 | (define-public python2-zope-event | |
6483 | (package-with-python2 python-zope-event)) | |
97abe268 LF |
6484 | |
6485 | (define-public python-zope-interface | |
6486 | (package | |
6487 | (name "python-zope-interface") | |
6488 | (version "4.1.3") | |
6489 | (source | |
6490 | (origin | |
6491 | (method url-fetch) | |
6492 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6493 | "/zope.interface/zope.interface-" version ".tar.gz")) | |
6494 | (sha256 | |
6495 | (base32 | |
6496 | "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) | |
6497 | (build-system python-build-system) | |
6498 | (propagated-inputs | |
6499 | `(("python-zope-event" ,python-zope-event))) | |
6500 | (home-page "https://github.com/zopefoundation/zope.interface") | |
6501 | (synopsis "Python implementation of the \"design by contract\" | |
6502 | methodology") | |
6503 | (description "Zope.interface provides an implementation of \"object | |
6504 | interfaces\" for Python. Interfaces are a mechanism for labeling objects as | |
6505 | conforming to a given API or contract.") | |
3f641af0 | 6506 | (license license:zpl2.1))) |
97abe268 LF |
6507 | |
6508 | (define-public python2-zope-interface | |
6509 | (package-with-python2 python-zope-interface)) | |
81f2373c LF |
6510 | |
6511 | (define-public python-zope-exceptions | |
6512 | (package | |
6513 | (name "python-zope-exceptions") | |
6514 | (version "4.0.8") | |
6515 | (source | |
6516 | (origin | |
6517 | (method url-fetch) | |
6518 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6519 | "/zope.exceptions/zope.exceptions-" | |
6520 | version ".tar.gz")) | |
6521 | (sha256 | |
6522 | (base32 | |
6523 | "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) | |
6524 | (build-system python-build-system) | |
6525 | (arguments | |
6526 | '(#:tests? #f)) ; circular dependency with zope.testrunner | |
6527 | (propagated-inputs | |
6528 | `(("python-zope-interface" ,python-zope-interface))) | |
6529 | (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") | |
6530 | (synopsis "Zope exceptions") | |
6531 | (description "Zope.exceptions provides general-purpose exception types | |
6532 | that have uses outside of the Zope framework.") | |
3f641af0 | 6533 | (license license:zpl2.1))) |
81f2373c LF |
6534 | |
6535 | (define-public python2-zope-exceptions | |
6536 | (package-with-python2 python-zope-exceptions)) | |
900e3c0e LF |
6537 | |
6538 | (define-public python-zope-testing | |
6539 | (package | |
6540 | (name "python-zope-testing") | |
6541 | (version "4.5.0") | |
6542 | (source | |
6543 | (origin | |
6544 | (method url-fetch) | |
6545 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6546 | "/zope.testing/zope.testing-" version ".tar.gz")) | |
6547 | (sha256 | |
6548 | (base32 | |
6549 | "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")))) | |
6550 | (build-system python-build-system) | |
6551 | (native-inputs | |
6552 | `(("python-zope-exceptions" ,python-zope-exceptions))) | |
6553 | (propagated-inputs | |
6554 | `(("python-zope-interface" ,python-zope-interface))) | |
6555 | (home-page "http://pypi.python.org/pypi/zope.testing") | |
6556 | (synopsis "Zope testing helpers") | |
6557 | (description "Zope.testing provides a number of testing utilities for HTML | |
6558 | forms, HTTP servers, regular expressions, and more.") | |
3f641af0 | 6559 | (license license:zpl2.1))) |
900e3c0e LF |
6560 | |
6561 | (define-public python2-zope-testing | |
6562 | (package-with-python2 python-zope-testing)) | |
01614c4f LF |
6563 | |
6564 | (define-public python-zope-testrunner | |
6565 | (package | |
6566 | (name "python-zope-testrunner") | |
6567 | (version "4.4.9") | |
6568 | (source | |
6569 | (origin | |
6570 | (method url-fetch) | |
6571 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6572 | "/zope.testrunner/zope.testrunner-" | |
6573 | version ".zip")) | |
6574 | (sha256 | |
6575 | (base32 | |
6576 | "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) | |
6577 | (build-system python-build-system) | |
6578 | (native-inputs | |
6579 | `(("python-six" ,python-six) | |
6580 | ("python-zope-exceptions" ,python-zope-exceptions) | |
6581 | ("python-zope-testing" ,python-zope-testing) | |
6582 | ("unzip" ,unzip))) | |
6583 | (propagated-inputs | |
6584 | `(("python-zope-interface" ,python-zope-interface))) | |
6585 | (home-page "http://pypi.python.org/pypi/zope.testrunner") | |
6586 | (synopsis "Zope testrunner script") | |
6587 | (description "Zope.testrunner provides a script for running Python | |
6588 | tests.") | |
3f641af0 | 6589 | (license license:zpl2.1))) |
01614c4f LF |
6590 | |
6591 | (define-public python2-zope-testrunner | |
6592 | (let ((base (package-with-python2 python-zope-testrunner))) | |
6593 | (package | |
6594 | (inherit base) | |
6595 | (native-inputs | |
6596 | (append (package-native-inputs base) | |
6597 | `(("python2-subunit" ,python2-subunit) | |
6598 | ("python2-mimeparse" ,python2-mimeparse))))))) | |
6a5c710c LF |
6599 | |
6600 | (define-public python-zope-i18nmessageid | |
6601 | (package | |
6602 | (name "python-zope-i18nmessageid") | |
6603 | (version "4.0.3") | |
6604 | (source | |
6605 | (origin | |
6606 | (method url-fetch) | |
6607 | (uri (string-append | |
6608 | "https://pypi.python.org/packages/source/z" | |
6609 | "/zope.i18nmessageid/zope.i18nmessageid-" | |
6610 | version ".tar.gz")) | |
6611 | (sha256 | |
6612 | (base32 | |
6613 | "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) | |
6614 | (build-system python-build-system) | |
6615 | (inputs | |
6616 | `(("python-setuptools" ,python-setuptools))) | |
6617 | (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") | |
6618 | (synopsis "Message identifiers for internationalization") | |
6619 | (description "Zope.i18nmessageid provides facilities for declaring | |
6620 | internationalized messages within program source text.") | |
3f641af0 | 6621 | (license license:zpl2.1))) |
6a5c710c LF |
6622 | |
6623 | (define-public python2-zope-i18nmessageid | |
6624 | (package-with-python2 python-zope-i18nmessageid)) | |
71fb09f3 LF |
6625 | |
6626 | (define-public python-zope-schema | |
6627 | (package | |
6628 | (name "python-zope-schema") | |
6629 | (version "4.4.2") | |
6630 | (source | |
6631 | (origin | |
6632 | (method url-fetch) | |
6633 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6634 | "/zope.schema/zope.schema-" version ".tar.gz")) | |
6635 | (sha256 | |
6636 | (base32 | |
6637 | "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) | |
6638 | (build-system python-build-system) | |
6639 | (propagated-inputs | |
6640 | `(("python-zope-event" ,python-zope-event) | |
6641 | ("python-zope-interface" ,python-zope-interface))) | |
6642 | (native-inputs | |
6643 | `(("python-zope-testing" ,python-zope-testing))) | |
6644 | (home-page "http://pypi.python.org/pypi/zope.schema") | |
6645 | (synopsis "Zope data schemas") | |
6646 | (description "Zope.scheme provides extensions to zope.interface for | |
6647 | defining data schemas.") | |
3f641af0 | 6648 | (license license:zpl2.1))) |
71fb09f3 LF |
6649 | |
6650 | (define-public python2-zope-schema | |
6651 | (package-with-python2 python-zope-schema)) | |
fbac9b17 LF |
6652 | |
6653 | (define-public python-zope-configuration | |
6654 | (package | |
6655 | (name "python-zope-configuration") | |
6656 | (version "4.0.3") | |
6657 | (source (origin | |
6658 | (method url-fetch) | |
6659 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6660 | "/zope.configuration/zope.configuration-" | |
6661 | version ".tar.gz")) | |
6662 | (sha256 | |
6663 | (base32 | |
6664 | "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) | |
6665 | (build-system python-build-system) | |
6666 | (propagated-inputs | |
6667 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6668 | ("python-zope-schema" ,python-zope-schema))) | |
6669 | (home-page "http://pypi.python.org/pypi/zope.configuration") | |
6670 | (synopsis "Zope Configuration Markup Language") | |
6671 | (description "Zope.configuration implements ZCML, the Zope Configuration | |
6672 | Markup Language.") | |
3f641af0 | 6673 | (license license:zpl2.1))) |
fbac9b17 LF |
6674 | |
6675 | (define-public python2-zope-configuration | |
6676 | (package-with-python2 python-zope-configuration)) | |
2ad52086 LF |
6677 | |
6678 | (define-public python-zope-proxy | |
6679 | (package | |
6680 | (name "python-zope-proxy") | |
6681 | (version "4.1.6") | |
6682 | (source | |
6683 | (origin | |
6684 | (method url-fetch) | |
6685 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6686 | "/zope.proxy/zope.proxy-" version ".tar.gz")) | |
6687 | (sha256 | |
6688 | (base32 | |
6689 | "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) | |
6690 | (build-system python-build-system) | |
6691 | (propagated-inputs | |
6692 | `(("python-zope-interface" ,python-zope-interface))) | |
6693 | (home-page "http://pypi.python.org/pypi/zope.proxy") | |
6694 | (synopsis "Generic, transparent proxies") | |
6695 | (description "Zope.proxy provides generic, transparent proxies for Python. | |
6696 | Proxies are special objects which serve as mostly-transparent wrappers around | |
6697 | another object, intervening in the apparent behavior of the wrapped object | |
6698 | only when necessary to apply the policy (e.g., access checking, location | |
6699 | brokering, etc.) for which the proxy is responsible.") | |
3f641af0 | 6700 | (license license:zpl2.1))) |
2ad52086 LF |
6701 | |
6702 | (define-public python2-zope-proxy | |
6703 | (package-with-python2 python-zope-proxy)) | |
f404b5ea LF |
6704 | |
6705 | (define-public python-zope-location | |
6706 | (package | |
6707 | (name "python-zope-location") | |
6708 | (version "4.0.3") | |
6709 | (source | |
6710 | (origin | |
6711 | (method url-fetch) | |
6712 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6713 | "/zope.location/zope.location-" version ".tar.gz")) | |
6714 | (sha256 | |
6715 | (base32 | |
6716 | "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) | |
6717 | (build-system python-build-system) | |
6718 | (native-inputs | |
6719 | `(("python-zope-proxy" ,python-zope-proxy) | |
6720 | ("python-zope-schema" ,python-zope-schema))) | |
6721 | (home-page "http://pypi.python.org/pypi/zope.location/") | |
6722 | (synopsis "Zope location library") | |
6723 | (description "Zope.location implements the concept of \"locations\" in | |
6724 | Zope3, which are are special objects that have a structural location.") | |
3f641af0 | 6725 | (license license:zpl2.1))) |
f404b5ea LF |
6726 | |
6727 | (define-public python2-zope-location | |
6728 | (package-with-python2 python-zope-location)) | |
d4b77f36 LF |
6729 | |
6730 | (define-public python-zope-security | |
6731 | (package | |
6732 | (name "python-zope-security") | |
6733 | (version "4.0.3") | |
6734 | (source | |
6735 | (origin | |
6736 | (method url-fetch) | |
6737 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6738 | "/zope.security/zope.security-" version ".tar.gz")) | |
6739 | (sha256 | |
6740 | (base32 | |
6741 | "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) | |
6742 | (build-system python-build-system) | |
6743 | (propagated-inputs | |
6744 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6745 | ("python-zope-component" ,python-zope-component) | |
6746 | ("python-zope-location" ,python-zope-location) | |
6747 | ("python-zope-proxy" ,python-zope-proxy) | |
6748 | ("python-zope-schema" ,python-zope-schema) | |
6749 | ("python-zope-testrunner" ,python-zope-testrunner) | |
6750 | ("python-zope-testing" ,python-zope-testing))) | |
6751 | (home-page "http://pypi.python.org/pypi/zope.security") | |
6752 | (synopsis "Zope security framework") | |
6753 | (description "Zope.security provides a generic mechanism to implement | |
6754 | security policies on Python objects.") | |
3f641af0 | 6755 | (license license:zpl2.1))) |
d4b77f36 LF |
6756 | |
6757 | (define-public python2-zope-security | |
04417662 EF |
6758 | (let ((zope-security (package-with-python2 python-zope-security))) |
6759 | (package (inherit zope-security) | |
6760 | (propagated-inputs | |
6761 | `(("python2-zope-testrunner" ,python2-zope-testrunner) | |
6762 | ,@(alist-delete | |
6763 | "python-zope-testrunner" | |
6764 | (package-propagated-inputs zope-security))))))) | |
a6b61b27 LF |
6765 | |
6766 | (define-public python-zope-component | |
6767 | (package | |
6768 | (name "python-zope-component") | |
6769 | (version "4.2.2") | |
6770 | (source | |
6771 | (origin | |
6772 | (method url-fetch) | |
6773 | (uri (string-append "https://pypi.python.org/packages/source/z" | |
6774 | "/zope.component/zope.component-" version ".tar.gz")) | |
6775 | (sha256 | |
6776 | (base32 | |
6777 | "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18")))) | |
6778 | (build-system python-build-system) | |
6779 | (arguments | |
6780 | ;; Skip tests due to circular dependency with python-zope-security. | |
6781 | '(#:tests? #f)) | |
6782 | (native-inputs | |
6783 | `(("python-zope-testing" ,python-zope-testing))) | |
6784 | (propagated-inputs | |
6785 | `(("python-zope-event" ,python-zope-event) | |
6786 | ("python-zope-interface" ,python-zope-interface) | |
6787 | ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) | |
6788 | ("python-zope-configuration" ,python-zope-configuration))) | |
6789 | (home-page "https://github.com/zopefoundation/zope.component") | |
6790 | (synopsis "Zope Component Architecture") | |
6791 | (description "Zope.component represents the core of the Zope Component | |
6792 | Architecture. Together with the zope.interface package, it provides | |
6793 | facilities for defining, registering and looking up components.") | |
3f641af0 | 6794 | (license license:zpl2.1))) |
a6b61b27 LF |
6795 | |
6796 | (define-public python2-zope-component | |
6797 | (package-with-python2 python-zope-component)) | |
3859ac12 | 6798 | |
1ae44b80 | 6799 | (define-public python-pythondialog |
b5f218be | 6800 | (package |
1ae44b80 | 6801 | (name "python-pythondialog") |
42c4b246 | 6802 | (version "3.4.0") |
b5f218be LF |
6803 | (source |
6804 | (origin | |
6805 | (method url-fetch) | |
1ae44b80 | 6806 | (uri (pypi-uri "pythondialog" version)) |
b5f218be LF |
6807 | (sha256 |
6808 | (base32 | |
1ae44b80 | 6809 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
b5f218be LF |
6810 | (build-system python-build-system) |
6811 | (arguments | |
6812 | `(#:phases | |
6813 | (modify-phases %standard-phases | |
6814 | (add-after 'unpack 'patch-path | |
6815 | (lambda* (#:key inputs #:allow-other-keys) | |
6816 | (let* ((dialog (assoc-ref inputs "dialog"))) | |
6817 | ;; Since this library really wants to grovel the search path, we | |
6818 | ;; must hardcode dialog's store path into it. | |
6819 | (substitute* "dialog.py" | |
6820 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") | |
6821 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) | |
6822 | #t)))) | |
b5f218be LF |
6823 | #:tests? #f)) ; no test suite |
6824 | (propagated-inputs | |
6825 | `(("dialog" ,dialog))) | |
6826 | (home-page "http://pythondialog.sourceforge.net/") | |
6827 | (synopsis "Python interface to the UNIX dialog utility") | |
6828 | (description "A Python wrapper for the dialog utility. Its purpose is to | |
6829 | provide an easy to use, pythonic and comprehensive Python interface to dialog. | |
6830 | This allows one to make simple text-mode user interfaces on Unix-like systems") | |
3f641af0 | 6831 | (license license:lgpl2.1) |
1ae44b80 LF |
6832 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
6833 | ||
6834 | (define-public python2-pythondialog | |
6835 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) | |
6836 | (package | |
6837 | (inherit base) | |
6838 | (version (package-version python-pythondialog)) | |
6839 | (source (origin | |
6840 | (method url-fetch) | |
6841 | (uri (pypi-uri "python2-pythondialog" version)) | |
6842 | (sha256 | |
6843 | (base32 | |
6844 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) | |
b5f218be | 6845 | |
3859ac12 LF |
6846 | (define-public python-pyrfc3339 |
6847 | (package | |
6848 | (name "python-pyrfc3339") | |
d9aa097b | 6849 | (version "1.0") |
3859ac12 LF |
6850 | (source |
6851 | (origin | |
6852 | (method url-fetch) | |
d9aa097b | 6853 | (uri (pypi-uri "pyRFC3339" version)) |
3859ac12 LF |
6854 | (sha256 |
6855 | (base32 | |
d9aa097b | 6856 | "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd")))) |
3859ac12 LF |
6857 | (build-system python-build-system) |
6858 | (propagated-inputs | |
6859 | `(("python-pytz" ,python-pytz))) | |
6860 | (native-inputs | |
6861 | `(("python-nose" ,python-nose) | |
6862 | ("python-setuptools" ,python-setuptools))) | |
6863 | (home-page "https://github.com/kurtraschke/pyRFC3339") | |
6864 | (synopsis "Python timestamp library") | |
6865 | (description "Python library for generating and parsing RFC 3339-compliant | |
6866 | timestamps.") | |
6867 | (license license:expat))) | |
6868 | ||
6869 | (define-public python2-pyrfc3339 | |
6870 | (package-with-python2 python-pyrfc3339)) | |
5eea2005 LF |
6871 | |
6872 | (define-public python-werkzeug | |
6873 | (package | |
6874 | (name "python-werkzeug") | |
4b47cbfa | 6875 | (version "0.11.5") |
5eea2005 LF |
6876 | (source |
6877 | (origin | |
6878 | (method url-fetch) | |
4b47cbfa | 6879 | (uri (pypi-uri "Werkzeug" version)) |
5eea2005 LF |
6880 | (sha256 |
6881 | (base32 | |
4b47cbfa | 6882 | "0r41xqp4cypzcgsf6zbspbqd272wnzf20igb4w4b5wzfhgqh9nxg")))) |
5eea2005 LF |
6883 | (build-system python-build-system) |
6884 | (native-inputs | |
6885 | `(("python-pytest" ,python-pytest))) | |
6886 | (home-page "http://werkzeug.pocoo.org/") | |
6887 | (synopsis "Utilities for WSGI applications") | |
6888 | (description "One of the most advanced WSGI utility modules. It includes a | |
6889 | powerful debugger, full-featured request and response objects, HTTP utilities to | |
6890 | handle entity tags, cache control headers, HTTP dates, cookie handling, file | |
6891 | uploads, a powerful URL routing system and a bunch of community-contributed | |
6892 | addon modules.") | |
3f641af0 | 6893 | (license license:x11))) |
5eea2005 LF |
6894 | |
6895 | (define-public python2-werkzeug | |
6896 | (package-with-python2 python-werkzeug)) | |
99fffa8a LF |
6897 | |
6898 | (define-public python-configobj | |
6899 | (package | |
6900 | (name "python-configobj") | |
6901 | (version "5.0.6") | |
6902 | (source (origin | |
6903 | (method url-fetch) | |
6904 | (uri (string-append | |
6905 | "https://pypi.python.org/packages/source/c/configobj/" | |
6906 | "configobj-" version ".tar.gz")) | |
6907 | (sha256 | |
6908 | (base32 | |
6909 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) | |
6910 | ;; Patch setup.py so it looks for python-setuptools, which is | |
6911 | ;; required to parse the keyword 'install_requires' in setup.py. | |
fc1adab1 | 6912 | (patches (search-patches "python-configobj-setuptools.patch")))) |
99fffa8a LF |
6913 | (build-system python-build-system) |
6914 | (native-inputs | |
6915 | `(("python-setuptools" ,python-setuptools) | |
6916 | ("python-six" ,python-six))) | |
6917 | (synopsis "Config file reading, writing and validation") | |
6918 | (description "ConfigObj is a simple but powerful config file reader and | |
6919 | writer: an ini file round tripper. Its main feature is that it is very easy to | |
6920 | use, with a straightforward programmer’s interface and a simple syntax for | |
6921 | config files.") | |
6922 | (home-page "https://github.com/DiffSK/configobj") | |
3f641af0 | 6923 | (license license:bsd-3))) |
99fffa8a LF |
6924 | |
6925 | (define-public python2-configobj | |
6926 | (package-with-python2 python-configobj)) | |
79e8a291 LF |
6927 | |
6928 | (define-public python-configargparse | |
6929 | (package | |
6930 | (name "python-configargparse") | |
6931 | (version "0.10.0") | |
6932 | (source (origin | |
6933 | (method url-fetch) | |
6934 | (uri (string-append | |
6935 | "https://pypi.python.org/packages/source/C/ConfigArgParse/" | |
6936 | "ConfigArgParse-" version ".tar.gz")) | |
6937 | (sha256 | |
6938 | (base32 | |
6939 | "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v")))) | |
6940 | (build-system python-build-system) | |
6941 | (arguments | |
6942 | ;; FIXME: Bug in test suite filed upstream: | |
6943 | ;; https://github.com/bw2/ConfigArgParse/issues/32 | |
6944 | '(#:tests? #f)) | |
6945 | (synopsis "Replacement for argparse") | |
6946 | (description "A drop-in replacement for argparse that allows options to also | |
6947 | be set via config files and/or environment variables.") | |
6948 | (home-page "https://github.com/bw2/ConfigArgParse") | |
6949 | (license license:expat))) | |
6950 | ||
6951 | (define-public python2-configargparse | |
6952 | (package-with-python2 python-configargparse)) | |
ab41f979 LF |
6953 | |
6954 | (define-public python-ndg-httpsclient | |
6955 | (package | |
6956 | (name "python-ndg-httpsclient") | |
6957 | (version "0.4.0") | |
6958 | (source (origin | |
6959 | (method url-fetch) | |
6960 | (uri (string-append | |
6961 | "https://pypi.python.org/packages/source/n/ndg-httpsclient/" | |
6962 | "ndg_httpsclient-" version ".tar.gz")) | |
6963 | (sha256 | |
6964 | (base32 | |
6965 | "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8")))) | |
6966 | (build-system python-build-system) | |
6967 | (propagated-inputs | |
6968 | `(("python-pyopenssl" ,python-pyopenssl))) | |
6969 | (synopsis "HTTPS support for Python's httplib and urllib2") | |
6970 | (description "This is a HTTPS client implementation for httplib and urllib2 | |
6971 | based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation | |
6972 | over the default provided with Python and importantly enables full verification | |
6973 | of the SSL peer.") | |
6974 | (home-page "https://github.com/cedadev/ndg_httpsclient/") | |
3f641af0 | 6975 | (license license:bsd-3))) |
ab41f979 LF |
6976 | |
6977 | ;; python2-openssl requires special care, so package-with-python2 is | |
6978 | ;; insufficient. | |
6979 | (define-public python2-ndg-httpsclient | |
6980 | (package (inherit python-ndg-httpsclient) | |
6981 | (name "python2-ndg-httpsclient") | |
6982 | (arguments `(#:python ,python-2)) | |
6983 | (propagated-inputs | |
6984 | `(("python2-pyopenssl" ,python2-pyopenssl))))) | |
03f964a5 CM |
6985 | |
6986 | (define-public python-contextlib2 | |
6987 | (package | |
6988 | (name "python-contextlib2") | |
6989 | (version "0.4.0") | |
6990 | (source | |
6991 | (origin | |
6992 | (method url-fetch) | |
6993 | (uri (pypi-uri "contextlib2" version)) | |
6994 | (sha256 | |
6995 | (base32 | |
6996 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) | |
6997 | (build-system python-build-system) | |
6998 | (arguments | |
6999 | `(#:phases | |
7000 | (modify-phases %standard-phases | |
7001 | (replace 'check | |
7002 | (lambda _ (zero? | |
7003 | (system* | |
b3546174 | 7004 | "python" "test_contextlib2.py" "-v"))))))) |
03f964a5 CM |
7005 | (home-page "http://contextlib2.readthedocs.org/") |
7006 | (synopsis "Tools for decorators and context managers") | |
7007 | (description "This module is primarily a backport of the Python | |
7008 | 3.2 contextlib to earlier Python versions. Like contextlib, it | |
7009 | provides utilities for common tasks involving decorators and context | |
7010 | managers. It also contains additional features that are not part of | |
7011 | the standard library.") | |
3f641af0 | 7012 | (license license:psfl))) |
03f964a5 CM |
7013 | |
7014 | (define-public python2-contextlib2 | |
7015 | (package-with-python2 python-contextlib2)) | |
210bf497 DT |
7016 | |
7017 | (define-public python-texttable | |
7018 | (package | |
7019 | (name "python-texttable") | |
7020 | (version "0.8.4") | |
7021 | (source | |
7022 | (origin | |
7023 | (method url-fetch) | |
7024 | (uri (pypi-uri "texttable" version)) | |
7025 | (sha256 | |
7026 | (base32 | |
7027 | "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) | |
7028 | (build-system python-build-system) | |
7029 | (arguments '(#:tests? #f)) ; no tests | |
7030 | (home-page "https://github.com/foutaise/texttable/") | |
7031 | (synopsis "Python module for creating simple ASCII tables") | |
7032 | (description "Texttable is a Python module for creating simple ASCII | |
7033 | tables.") | |
3f641af0 | 7034 | (license license:lgpl2.1+))) |
210bf497 DT |
7035 | |
7036 | (define-public python2-texttable | |
7037 | (package-with-python2 python-texttable)) | |
67c52bb3 DT |
7038 | |
7039 | (define-public python-websocket-client | |
7040 | (package | |
7041 | (name "python-websocket-client") | |
6b810897 | 7042 | (version "0.37.0") |
67c52bb3 DT |
7043 | (source |
7044 | (origin | |
7045 | (method url-fetch) | |
6b810897 | 7046 | (uri (pypi-uri "websocket_client" version)) |
67c52bb3 DT |
7047 | (sha256 |
7048 | (base32 | |
6b810897 | 7049 | "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) |
67c52bb3 DT |
7050 | (build-system python-build-system) |
7051 | (native-inputs | |
7052 | `(("python-six" ,python-six))) ; for tests | |
7053 | (inputs | |
7054 | `(("python-setuptools" ,python-setuptools))) | |
7055 | (home-page "https://github.com/liris/websocket-client") | |
7056 | (synopsis "WebSocket client for Python") | |
7057 | (description "The Websocket-client module provides the low level APIs for | |
7058 | WebSocket usage in Python programs.") | |
3f641af0 | 7059 | (license license:lgpl2.1+))) |
67c52bb3 DT |
7060 | |
7061 | (define-public python2-websocket-client | |
7062 | (package-with-python2 python-websocket-client)) | |
5c6eea2a LF |
7063 | |
7064 | (define-public python-atomicwrites | |
7065 | (package | |
7066 | (name "python-atomicwrites") | |
4e92d76a | 7067 | (version "1.1.0") |
5c6eea2a LF |
7068 | (source (origin |
7069 | (method url-fetch) | |
7070 | (uri (pypi-uri "atomicwrites" version)) | |
7071 | (sha256 | |
7072 | (base32 | |
4e92d76a | 7073 | "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0")))) |
5c6eea2a LF |
7074 | (build-system python-build-system) |
7075 | (synopsis "Atomic file writes in Python") | |
7076 | (description "Library for atomic file writes using platform dependent tools | |
8f65585b | 7077 | for atomic file system operations.") |
5c6eea2a | 7078 | (home-page "https://github.com/untitaker/python-atomicwrites") |
9bb6d184 LF |
7079 | (license license:expat) |
7080 | (properties `((python2-variant . ,(delay python2-atomicwrites)))))) | |
7081 | ||
7082 | (define-public python2-atomicwrites | |
7083 | (package (inherit (package-with-python2 | |
7084 | (strip-python2-variant python-atomicwrites))) | |
7085 | (native-inputs | |
7086 | `(("python2-setuptools" ,python2-setuptools))))) | |
561bb3cb LF |
7087 | |
7088 | (define-public python-requests-toolbelt | |
7089 | (package | |
7090 | (name "python-requests-toolbelt") | |
c02af1c8 | 7091 | (version "0.6.2") |
561bb3cb LF |
7092 | (source (origin |
7093 | (method url-fetch) | |
c02af1c8 LF |
7094 | (uri (string-append |
7095 | "https://pypi.python.org/packages/" | |
7096 | "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" | |
7097 | "requests-toolbelt-" version ".tar.gz")) | |
561bb3cb LF |
7098 | (sha256 |
7099 | (base32 | |
c02af1c8 | 7100 | "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) |
561bb3cb LF |
7101 | (build-system python-build-system) |
7102 | (propagated-inputs | |
7103 | `(("python-requests" ,python-requests))) | |
7104 | (synopsis "Extensions to python-requests") | |
7105 | (description "This is a toolbelt of useful classes and functions to be used | |
7106 | with python-requests.") | |
7107 | (home-page "https://github.com/sigmavirus24/requests-toolbelt") | |
3f641af0 | 7108 | (license license:asl2.0))) |
d1deb90b LF |
7109 | |
7110 | (define-public python-click-threading | |
7111 | (package | |
7112 | (name "python-click-threading") | |
3d2e0dbc | 7113 | (version "0.2.0") |
d1deb90b LF |
7114 | (source (origin |
7115 | (method url-fetch) | |
3d2e0dbc LF |
7116 | (uri (string-append |
7117 | "https://pypi.python.org/packages/" | |
7118 | "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/" | |
7119 | "click-threading-" version ".tar.gz")) | |
d1deb90b LF |
7120 | (sha256 |
7121 | (base32 | |
3d2e0dbc | 7122 | "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j")))) |
d1deb90b LF |
7123 | (build-system python-build-system) |
7124 | (propagated-inputs | |
7125 | `(("python-click" ,python-click))) | |
7126 | (synopsis "Utilities for multithreading in Click") | |
7127 | (description "This package provides utilities for multithreading in Click | |
7128 | applications.") | |
7129 | (home-page "https://github.com/click-contrib/click-threading") | |
7130 | (license license:expat))) | |
7b17cab9 LF |
7131 | |
7132 | (define-public python-click-log | |
7133 | (package | |
7134 | (name "python-click-log") | |
a9da8fec | 7135 | (version "0.1.3") |
7b17cab9 LF |
7136 | (source (origin |
7137 | (method url-fetch) | |
7138 | (uri (pypi-uri "click-log" version)) | |
7139 | (sha256 | |
7140 | (base32 | |
a9da8fec | 7141 | "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx")))) |
7b17cab9 LF |
7142 | (build-system python-build-system) |
7143 | (propagated-inputs | |
7144 | `(("python-click" ,python-click))) | |
7145 | (synopsis "Logging for click applications") | |
7146 | (description "This package provides a Python library for logging Click | |
7147 | applications.") | |
7148 | (home-page "https://github.com/click-contrib/click-log") | |
7149 | (license license:expat))) | |
7b3a4ee4 LF |
7150 | |
7151 | (define-public python-apipkg | |
7152 | (package | |
7153 | (name "python-apipkg") | |
7154 | (version "1.4") | |
7155 | (source (origin | |
7156 | (method url-fetch) | |
7157 | (uri (pypi-uri "apipkg" version)) | |
7158 | (sha256 | |
7159 | (base32 | |
7160 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) | |
7161 | (build-system python-build-system) | |
b43bab3c | 7162 | (inputs |
7b3a4ee4 LF |
7163 | `(("python-pytest" ,python-pytest))) |
7164 | (synopsis "Namespace control and lazy-import mechanism") | |
7165 | (description "With apipkg you can control the exported namespace of a Python | |
7166 | package and greatly reduce the number of imports for your users. It is a small | |
7167 | pure Python module that works on virtually all Python versions.") | |
7168 | (home-page "https://bitbucket.org/hpk42/apipkg") | |
e08739c3 CAW |
7169 | (license license:expat) |
7170 | (properties `((python2-variant . ,(delay python2-apipkg)))))) | |
7171 | ||
7172 | (define-public python2-apipkg | |
7173 | (package | |
7174 | (inherit (package-with-python2 | |
7175 | (strip-python2-variant python-apipkg))) | |
7176 | (native-inputs | |
7177 | `(("python2-setuptools" ,python2-setuptools))))) | |
848964fe LF |
7178 | |
7179 | (define-public python-execnet | |
7180 | (package | |
7181 | (name "python-execnet") | |
7182 | (version "1.4.1") | |
7183 | (source (origin | |
7184 | (method url-fetch) | |
7185 | (uri (pypi-uri "execnet" version)) | |
7186 | (sha256 | |
7187 | (base32 | |
7188 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) | |
7189 | (build-system python-build-system) | |
7190 | (native-inputs | |
7191 | `(("python-setuptools-scm" ,python-setuptools-scm))) | |
584d068f | 7192 | (inputs |
848964fe LF |
7193 | `(("python-apipkg" ,python-apipkg))) |
7194 | (synopsis "Rapid multi-Python deployment") | |
7195 | (description "Execnet provides a share-nothing model with | |
7196 | channel-send/receive communication for distributing execution across many | |
7197 | Python interpreters across version, platform and network barriers. It has a | |
7198 | minimal and fast API targetting the following uses: | |
7199 | @enumerate | |
7200 | @item distribute tasks to (many) local or remote CPUs | |
7201 | @item write and deploy hybrid multi-process applications | |
7202 | @item write scripts to administer multiple environments | |
7203 | @end enumerate") | |
7204 | (home-page "http://codespeak.net/execnet/") | |
16c84f90 CAW |
7205 | (license license:expat) |
7206 | (properties `((python2-variant . ,(delay python2-execnet)))))) | |
7207 | ||
7208 | (define-public python2-execnet | |
7209 | (let ((execnet (package-with-python2 | |
7210 | (strip-python2-variant python-execnet)))) | |
7211 | (package | |
7212 | (inherit execnet) | |
7213 | (native-inputs | |
7214 | `(("python2-setuptools" ,python2-setuptools) | |
7215 | ,@(package-native-inputs execnet)))))) | |
6720dbb4 LF |
7216 | |
7217 | ;;; The software provided by this package was integrated into pytest 2.8. | |
7218 | (define-public python-pytest-cache | |
7219 | (package | |
7220 | (name "python-pytest-cache") | |
7221 | (version "1.0") | |
7222 | (source (origin | |
7223 | (method url-fetch) | |
7224 | (uri (pypi-uri "pytest-cache" version)) | |
7225 | (sha256 | |
7226 | (base32 | |
7227 | "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) | |
7228 | (build-system python-build-system) | |
630d938f EF |
7229 | (inputs |
7230 | `(("python-apipkg" ,python-apipkg) | |
7231 | ("python-execnet" ,python-execnet) | |
7232 | ("python-py" ,python-py) | |
7233 | ("python-pytest" ,python-pytest))) | |
6720dbb4 LF |
7234 | (synopsis "Py.test plugin with mechanisms for caching across test runs") |
7235 | (description "The pytest-cache plugin provides tools to rerun failures from | |
7236 | the last py.test invocation.") | |
7237 | (home-page "https://bitbucket.org/hpk42/pytest-cache/") | |
0adc21c2 EF |
7238 | (license license:expat) |
7239 | (properties `((python2-variant . ,(delay python2-pytest-cache)))))) | |
7240 | ||
7241 | (define-public python2-pytest-cache | |
7242 | (let ((pytest-cache (package-with-python2 | |
7243 | (strip-python2-variant python-pytest-cache)))) | |
7244 | (package | |
7245 | (inherit pytest-cache) | |
7246 | (native-inputs | |
7247 | `(("python2-setuptools" ,python2-setuptools) | |
7248 | ,@(package-native-inputs pytest-cache)))))) | |
d7e729fe LF |
7249 | |
7250 | (define-public python-pytest-localserver | |
7251 | (package | |
7252 | (name "python-pytest-localserver") | |
29f20168 | 7253 | (version "0.3.5") |
d7e729fe LF |
7254 | (source (origin |
7255 | (method url-fetch) | |
29f20168 | 7256 | (uri (pypi-uri "pytest-localserver" version)) |
d7e729fe LF |
7257 | (sha256 |
7258 | (base32 | |
29f20168 | 7259 | "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p")))) |
d7e729fe LF |
7260 | (build-system python-build-system) |
7261 | (arguments | |
7262 | `(#:phases (modify-phases %standard-phases | |
7263 | (replace 'check | |
7264 | (lambda _ | |
7265 | (zero? (system* "py.test" "--genscript=runtests.py")) | |
7266 | (zero? (system* "py.test"))))))) | |
7267 | (native-inputs | |
d7e729fe LF |
7268 | `(("python-pytest" ,python-pytest) |
7269 | ("python-requests" ,python-requests) | |
9ba40f05 EF |
7270 | ("python-six" ,python-six))) |
7271 | (inputs | |
7272 | `(("python-werkzeug" ,python-werkzeug))) | |
d7e729fe LF |
7273 | (synopsis "Py.test plugin to test server connections locally") |
7274 | (description "Pytest-localserver is a plugin for the pytest testing | |
7275 | framework which enables you to test server connections locally.") | |
7276 | (home-page "https://pypi.python.org/pypi/pytest-localserver") | |
7277 | (license license:expat))) | |
28cecbb7 LF |
7278 | |
7279 | (define-public python-wsgi-intercept | |
7280 | (package | |
7281 | (name "python-wsgi-intercept") | |
909fbd2b | 7282 | (version "1.2.2") |
28cecbb7 LF |
7283 | (source (origin |
7284 | (method url-fetch) | |
909fbd2b LF |
7285 | (uri (string-append |
7286 | "https://pypi.python.org/packages/" | |
7287 | "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/" | |
7288 | "wsgi_intercept-" version ".tar.gz")) | |
28cecbb7 LF |
7289 | (sha256 |
7290 | (base32 | |
909fbd2b | 7291 | "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) |
28cecbb7 LF |
7292 | (build-system python-build-system) |
7293 | (native-inputs | |
9d813ec1 EF |
7294 | `(("python-pytest" ,python-pytest) |
7295 | ("python-six" ,python-six))) | |
28cecbb7 LF |
7296 | (propagated-inputs |
7297 | `(("python-httplib2" ,python-httplib2) | |
7298 | ("python-requests" ,python-requests))) | |
7299 | (synopsis "Puts a WSGI application in place of a real URI for testing") | |
7300 | (description "Wsgi_intercept installs a WSGI application in place of a real | |
7301 | URI for testing. Testing a WSGI application normally involves starting a | |
7302 | server at a local host and port, then pointing your test code to that address. | |
7303 | Instead, this library lets you intercept calls to any specific host/port | |
7304 | combination and redirect them into a WSGI application importable by your test | |
7305 | program. Thus, you can avoid spawning multiple processes or threads to test | |
7306 | your Web app.") | |
7307 | (home-page "https://github.com/cdent/wsgi-intercept") | |
7308 | (license license:expat))) | |
89b8a551 LF |
7309 | |
7310 | (define-public python-pytest-xprocess | |
7311 | (package | |
7312 | (name "python-pytest-xprocess") | |
7313 | (version "0.9.1") | |
7314 | (source (origin | |
7315 | (method url-fetch) | |
7316 | (uri (pypi-uri "pytest-xprocess" version)) | |
7317 | (sha256 | |
7318 | (base32 | |
7319 | "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) | |
7320 | (build-system python-build-system) | |
7321 | (propagated-inputs | |
7322 | `(("python-pytest" ,python-pytest) | |
7323 | ("python-pytest-cache" ,python-pytest-cache) | |
7324 | ("python-psutil" ,python-psutil))) | |
7325 | (synopsis "Pytest plugin to manage external processes across test runs") | |
7326 | (description "Pytest-xprocess is an experimental py.test plugin for managing | |
7327 | processes across test runs.") | |
7328 | (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") | |
7329 | (license license:expat))) | |
5c299bf0 LF |
7330 | |
7331 | (define-public python-icalendar | |
7332 | (package | |
7333 | (name "python-icalendar") | |
f2f53353 | 7334 | (version "3.10") |
5c299bf0 LF |
7335 | (source (origin |
7336 | (method url-fetch) | |
7337 | (uri (pypi-uri "icalendar" version)) | |
7338 | (sha256 | |
7339 | (base32 | |
f2f53353 | 7340 | "01amnk3621s7fagfla86npd25knbqirchg7h1jpqxqp103d02bs7")))) |
5c299bf0 LF |
7341 | (build-system python-build-system) |
7342 | (propagated-inputs | |
7343 | `(("python-dateutil-2" ,python-dateutil-2) | |
7344 | ("python-pytz" ,python-pytz))) | |
7345 | (synopsis "Python library for parsing iCalendar files") | |
7346 | (description "The icalendar package is a parser/generator of iCalendar | |
7347 | files for use with Python.") | |
7348 | (home-page "https://github.com/collective/icalendar") | |
3f641af0 | 7349 | (license license:bsd-2))) |
6bbbb53e LF |
7350 | |
7351 | (define-public python-sphinxcontrib-newsfeed | |
7352 | (package | |
7353 | (name "python-sphinxcontrib-newsfeed") | |
7354 | (version "0.1.4") | |
7355 | (source (origin | |
7356 | (method url-fetch) | |
7357 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) | |
7358 | (sha256 | |
7359 | (base32 | |
7360 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) | |
7361 | (build-system python-build-system) | |
7362 | (propagated-inputs | |
7363 | `(("python-docutils" ,python-docutils) | |
7364 | ("python-sphinx" ,python-sphinx))) | |
7365 | (synopsis "News Feed extension for Sphinx") | |
7366 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple | |
7367 | Blog, News or Announcements section to a Sphinx website.") | |
7368 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") | |
3f641af0 | 7369 | (license license:bsd-2))) |
2216e15c SB |
7370 | |
7371 | (define-public python-args | |
7372 | (package | |
7373 | (name "python-args") | |
7374 | (version "0.1.0") | |
7375 | (source (origin | |
7376 | (method url-fetch) | |
7377 | (uri (pypi-uri "args" version)) | |
7378 | (sha256 | |
7379 | (base32 | |
7380 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) | |
7381 | (build-system python-build-system) | |
7382 | (inputs | |
7383 | `(("python-setuptools" ,python-setuptools))) | |
7384 | (home-page "https://github.com/kennethreitz/args") | |
7385 | (synopsis "Command-line argument parser") | |
7386 | (description | |
7387 | "This library provides a Python module to parse command-line arguments.") | |
3f641af0 | 7388 | (license license:bsd-3))) |
2216e15c SB |
7389 | |
7390 | (define-public python2-args | |
7391 | (package-with-python2 python-args)) | |
c06a3de9 SB |
7392 | |
7393 | (define-public python-clint | |
7394 | (package | |
7395 | (name "python-clint") | |
7396 | (version "0.5.1") | |
7397 | (source (origin | |
7398 | (method url-fetch) | |
7399 | (uri (pypi-uri "clint" version)) | |
7400 | (sha256 | |
7401 | (base32 | |
7402 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) | |
7403 | (build-system python-build-system) | |
7404 | (inputs | |
7405 | `(("python-args" ,python-args) | |
7406 | ("python-setuptools" ,python-setuptools))) | |
7407 | (home-page "https://github.com/kennethreitz/clint") | |
7408 | (synopsis "Command-line interface tools") | |
7409 | (description | |
7410 | "Clint is a Python module filled with a set of tools for developing | |
7411 | command-line applications, including tools for colored and indented | |
7412 | output, progress bar display, and pipes.") | |
3f641af0 | 7413 | (license license:isc))) |
c06a3de9 SB |
7414 | |
7415 | (define-public python2-clint | |
7416 | (package-with-python2 python-clint)) | |
4ecdeef8 SB |
7417 | |
7418 | (define-public python-astor | |
7419 | (package | |
7420 | (name "python-astor") | |
7421 | (version "0.5") | |
7422 | (source (origin | |
7423 | (method url-fetch) | |
7424 | (uri (pypi-uri "astor" version)) | |
7425 | (sha256 | |
7426 | (base32 | |
7427 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) | |
7428 | (build-system python-build-system) | |
7429 | (inputs | |
7430 | `(("python-setuptools" ,python-setuptools))) | |
7431 | (home-page "https://github.com/berkerpeksag/astor") | |
7432 | (synopsis "Read and write Python ASTs") | |
7433 | (description | |
7434 | "Astor is designed to allow easy manipulation of Python source via the | |
7435 | Abstract Syntax Tree.") | |
3f641af0 | 7436 | (license license:bsd-3))) |
4ecdeef8 SB |
7437 | |
7438 | (define-public python2-astor | |
7439 | (package-with-python2 python-astor)) | |
e224b7d0 SB |
7440 | |
7441 | (define-public python-rply | |
7442 | (package | |
7443 | (name "python-rply") | |
7444 | (version "0.7.4") | |
7445 | (source (origin | |
7446 | (method url-fetch) | |
7447 | (uri (pypi-uri "rply" version)) | |
7448 | (sha256 | |
7449 | (base32 | |
7450 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) | |
7451 | (build-system python-build-system) | |
7452 | (inputs | |
7453 | `(("python-appdirs" ,python-appdirs) | |
7454 | ("python-setuptools" ,python-setuptools))) | |
7455 | (home-page "https://github.com/alex/rply") | |
7456 | (synopsis "Parser generator for Python") | |
7457 | (description | |
7458 | "This package provides a pure Python based parser generator, that also | |
7459 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, | |
7460 | with a new public API, and RPython support.") | |
3f641af0 | 7461 | (license license:bsd-3))) |
e224b7d0 SB |
7462 | |
7463 | (define-public python2-rply | |
7464 | (package-with-python2 python-rply)) | |
c3e919d7 SB |
7465 | |
7466 | (define-public python-hy | |
7467 | (package | |
7468 | (name "python-hy") | |
7469 | (version "0.11.1") | |
7470 | (source (origin | |
7471 | (method url-fetch) | |
7472 | (uri (pypi-uri "hy" version)) | |
7473 | (sha256 | |
7474 | (base32 | |
7475 | "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) | |
7476 | (build-system python-build-system) | |
7477 | (inputs | |
7478 | `(("python-astor" ,python-astor) | |
7479 | ("python-clint" ,python-clint) | |
7480 | ("python-rply" ,python-rply) | |
7481 | ("python-setuptools" ,python-setuptools))) | |
7482 | (home-page "http://hylang.org/") | |
7483 | (synopsis "Lisp frontend to Python") | |
7484 | (description | |
7485 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms | |
7486 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of | |
7487 | Python at your fingertips, in Lisp form.") | |
7488 | (license license:expat))) | |
7489 | ||
7490 | (define-public python2-hy | |
7491 | (package-with-python2 python-hy)) | |
7a5b944e | 7492 | |
81f7f297 EF |
7493 | (define-public python-rauth |
7494 | (package | |
7495 | (name "python-rauth") | |
7496 | (version "0.7.2") | |
7497 | (source | |
7498 | (origin | |
7499 | (method url-fetch) | |
7500 | (uri (pypi-uri "rauth" version)) | |
7501 | (sha256 | |
7502 | (base32 | |
7503 | "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) | |
7504 | (build-system python-build-system) | |
7505 | (arguments | |
7506 | `(#:test-target "check")) | |
0848d8d3 | 7507 | (inputs |
81f7f297 EF |
7508 | `(("python-requests" ,python-requests))) |
7509 | (home-page "https://github.com/litl/rauth") | |
7510 | (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") | |
7511 | (description | |
7512 | "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also | |
7513 | provides service wrappers for convenient connection initialization and | |
7514 | authenticated session objects providing things like keep-alive.") | |
0848d8d3 EF |
7515 | (license license:expat) |
7516 | (properties `((python2-variant . ,(delay python2-rauth)))))) | |
81f7f297 EF |
7517 | |
7518 | (define-public python2-rauth | |
0848d8d3 EF |
7519 | (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) |
7520 | (package | |
7521 | (inherit base) | |
7522 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
7523 | ("python2-unittest2" ,python2-unittest2) | |
7524 | ,@(package-native-inputs base)))))) | |
81f7f297 | 7525 | |
1abe448d EF |
7526 | (define-public python2-functools32 |
7527 | (package | |
7528 | (name "python2-functools32") | |
7529 | (version "3.2.3-2") | |
7530 | (source | |
7531 | (origin | |
7532 | (method url-fetch) | |
7533 | (uri (pypi-uri "functools32" version)) | |
7534 | (sha256 | |
7535 | (base32 | |
7536 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) | |
7537 | (build-system python-build-system) | |
7538 | (arguments | |
7539 | `(#:python ,python-2 | |
7540 | #:tests? #f)) ; no test target | |
7541 | (native-inputs | |
7542 | `(("python2-setuptools" ,python2-setuptools))) | |
7543 | (home-page "https://github.com/MiCHiLU/python-functools32") | |
7544 | (synopsis | |
7545 | "Backport of the functools module from Python 3.2.3") | |
7546 | (description | |
7547 | "This package is a backport of the @code{functools} module from Python | |
7548 | 3.2.3 for use with older versions of Python and PyPy.") | |
7549 | (license license:expat))) | |
7550 | ||
877889f3 | 7551 | (define-public python2-futures |
7a5b944e | 7552 | (package |
877889f3 | 7553 | (name "python2-futures") |
7a5b944e EF |
7554 | (version "3.0.3") |
7555 | (source | |
7556 | (origin | |
7557 | (method url-fetch) | |
7558 | (uri (pypi-uri "futures" version)) | |
7559 | (sha256 | |
7560 | (base32 | |
7561 | "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) | |
7562 | (build-system python-build-system) | |
877889f3 | 7563 | (arguments `(#:python ,python-2)) |
7a5b944e | 7564 | (native-inputs |
877889f3 | 7565 | `(("python2-setuptools" ,python2-setuptools))) |
7a5b944e EF |
7566 | (home-page "https://github.com/agronholm/pythonfutures") |
7567 | (synopsis | |
7568 | "Backport of the concurrent.futures package from Python 3.2") | |
7569 | (description | |
7570 | "The concurrent.futures module provides a high-level interface for | |
7571 | asynchronously executing callables. This package backports the | |
7572 | concurrent.futures package from Python 3.2") | |
3f641af0 | 7573 | (license license:bsd-3))) |
7a5b944e | 7574 | |
5cb2fe44 EF |
7575 | (define-public python-promise |
7576 | (package | |
7577 | (name "python-promise") | |
7578 | (version "0.4.2") | |
7579 | (source | |
7580 | (origin | |
7581 | (method url-fetch) | |
7582 | (uri (pypi-uri "promise" version)) | |
7583 | (sha256 | |
7584 | (base32 | |
7585 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) | |
7586 | (build-system python-build-system) | |
7587 | ;; Tests wants python-futures, which is a python2 only program, and | |
7588 | ;; can't be found by python-promise at test time. | |
7589 | (arguments `(#:tests? #f)) | |
7590 | (home-page "https://github.com/syrusakbary/promise") | |
7591 | (synopsis "Promises/A+ implementation for Python") | |
7592 | (description | |
7593 | "Promises/A+ implementation for Python") | |
7594 | (properties `((python2-variant . ,(delay python2-promise)))) | |
7595 | (license license:expat))) | |
7596 | ||
7597 | (define-public python2-promise | |
7598 | (let ((promise (package-with-python2 | |
7599 | (strip-python2-variant python-promise)))) | |
7600 | (package (inherit promise) | |
7601 | (arguments (substitute-keyword-arguments (package-arguments promise) | |
7602 | ((#:tests? _) #t))) | |
7603 | (native-inputs | |
7604 | `(("python2-futures" ,python2-futures) | |
7605 | ("python2-pytest" ,python2-pytest) | |
7606 | ("python2-setuptools" ,python2-setuptools) | |
7607 | ,@(package-native-inputs promise)))))) | |
7608 | ||
c18f6368 EF |
7609 | (define-public python-urllib3 |
7610 | (package | |
7611 | (name "python-urllib3") | |
7612 | (version "1.13.1") | |
7613 | (source | |
7614 | (origin | |
7615 | (method url-fetch) | |
7616 | (uri (pypi-uri "urllib3" version)) | |
7617 | (sha256 | |
7618 | (base32 | |
7619 | "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf")))) | |
7620 | (build-system python-build-system) | |
7621 | (arguments `(#:tests? #f)) | |
7622 | (native-inputs | |
7623 | `(("python-setuptools" ,python-setuptools) | |
7624 | ;; some packages for tests | |
7625 | ("python-nose" ,python-nose) | |
7626 | ("python-mock" ,python-mock) | |
7627 | ("python-tornado" ,python-tornado))) | |
7628 | (propagated-inputs | |
7629 | `(;; packages for https security | |
7630 | ("python-certifi" ,python-certifi) | |
7631 | ("python-ndg-httpsclient" ,python-ndg-httpsclient) | |
7632 | ("python-pyasn1" ,python-pyasn1) | |
7633 | ("python-pyopenssl" ,python-pyopenssl))) | |
7634 | (home-page "http://urllib3.readthedocs.org/") | |
7635 | (synopsis "HTTP library with thread-safe connection pooling") | |
7636 | (description | |
7637 | "Urllib3 supports features left out of urllib and urllib2 libraries. It | |
7638 | can reuse the same socket connection for multiple requests, it can POST files, | |
7639 | supports url redirection and retries, and also gzip and deflate decoding.") | |
7640 | (license license:expat))) | |
7641 | ||
7642 | (define-public python2-urllib3 | |
7643 | (package-with-python2 python-urllib3)) | |
2b2f2fc1 DT |
7644 | |
7645 | (define-public python-colorama | |
7646 | (package | |
7647 | (name "python-colorama") | |
7648 | (version "0.3.3") | |
7649 | (source | |
7650 | (origin | |
7651 | (method url-fetch) | |
7652 | (uri (pypi-uri "colorama" version)) | |
7653 | (sha256 | |
7654 | (base32 | |
7655 | "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb")))) | |
7656 | (build-system python-build-system) | |
7657 | (inputs | |
7658 | `(("python-setuptools" ,python-setuptools))) | |
7659 | (synopsis "colored terminal text rendering for Python") | |
7660 | (description "Colorama is a Python library for rendering colored terminal | |
7661 | text.") | |
7662 | (home-page "https://pypi.python.org/pypi/colorama") | |
3f641af0 | 7663 | (license license:bsd-3))) |
2b2f2fc1 DT |
7664 | |
7665 | (define-public python2-colorama | |
7666 | (package-with-python2 python-colorama)) | |
f5bcec6e DT |
7667 | |
7668 | (define-public python-rsa | |
7669 | (package | |
7670 | (name "python-rsa") | |
7671 | (version "3.2") | |
7672 | (source | |
7673 | (origin | |
7674 | (method url-fetch) | |
7675 | (uri (pypi-uri "rsa" version)) | |
7676 | (sha256 | |
7677 | (base32 | |
7678 | "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh")))) | |
7679 | (build-system python-build-system) | |
7680 | (inputs | |
7681 | `(("python-pyasn1" ,python-pyasn1) | |
7682 | ("python-setuptools" ,python-setuptools))) | |
7683 | (synopsis "Pure-Python RSA implementation") | |
7684 | (description "Python-RSA is a pure-Python RSA implementation. It supports | |
7685 | encryption and decryption, signing and verifying signatures, and key | |
7686 | generation according to PKCS#1 version 1.5. It can be used as a Python | |
7687 | library as well as on the command line.") | |
7688 | (home-page "http://stuvel.eu/rsa") | |
3f641af0 | 7689 | (license license:asl2.0))) |
f5bcec6e DT |
7690 | |
7691 | (define-public python2-rsa | |
7692 | (package-with-python2 python-rsa)) | |
c0aacfa5 DT |
7693 | |
7694 | (define-public python-pluggy | |
7695 | (package | |
7696 | (name "python-pluggy") | |
7697 | (version "0.3.1") | |
7698 | (source | |
7699 | (origin | |
7700 | (method url-fetch) | |
7701 | (uri (pypi-uri "pluggy" version)) | |
7702 | (sha256 | |
7703 | (base32 | |
7704 | "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m")))) | |
7705 | (build-system python-build-system) | |
7706 | (inputs | |
7707 | `(("python-setuptools" ,python-setuptools))) | |
7708 | (synopsis "Plugin and hook calling mechanism for Python") | |
7709 | (description "Pluggy is an extraction of the plugin manager as used by | |
7710 | Pytest but stripped of Pytest specific details.") | |
7711 | (home-page "https://pypi.python.org/pypi/pluggy") | |
7712 | (license license:expat))) | |
7713 | ||
7714 | (define-public python2-pluggy | |
7715 | (package-with-python2 python-pluggy)) | |
a4af21ca DT |
7716 | |
7717 | (define-public python-tox | |
7718 | (package | |
7719 | (name "python-tox") | |
7720 | (version "2.3.1") | |
7721 | (source | |
7722 | (origin | |
7723 | (method url-fetch) | |
7724 | (uri (pypi-uri "tox" version)) | |
7725 | (sha256 | |
7726 | (base32 | |
7727 | "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz")))) | |
7728 | (build-system python-build-system) | |
7729 | (arguments | |
7730 | ;; FIXME: Tests require a newer version of pytest, but upgrading our | |
7731 | ;; pytest breaks other packages. | |
7732 | '(#:tests? #f)) | |
7733 | (inputs | |
7734 | `(("python-setuptools" ,python-setuptools) | |
7735 | ("python-pluggy" ,python-pluggy) | |
7736 | ("python-py" ,python-py) | |
7737 | ("python-virtualenv" ,python-virtualenv) | |
7738 | ("python-pytest" ,python-pytest))) | |
7739 | (home-page "http://tox.testrun.org/") | |
7740 | (synopsis "Virtualenv-based automation of test activities") | |
7741 | (description "Tox is a generic virtualenv management and test command line | |
7742 | tool. It can be used to check that a package installs correctly with | |
7743 | different Python versions and interpreters, or run tests in each type of | |
7744 | supported environment, or act as a frontend to continuous integration | |
7745 | servers.") | |
7746 | (license license:expat))) | |
7747 | ||
7748 | (define-public python2-tox | |
7749 | (package-with-python2 python-tox)) | |
ba9da248 DT |
7750 | |
7751 | (define-public python-jmespath | |
7752 | (package | |
7753 | (name "python-jmespath") | |
7754 | (version "0.9.0") | |
7755 | (source | |
7756 | (origin | |
7757 | (method url-fetch) | |
7758 | (uri (pypi-uri "jmespath" version)) | |
7759 | (sha256 | |
7760 | (base32 | |
7761 | "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8")))) | |
7762 | (build-system python-build-system) | |
7763 | (inputs | |
7764 | `(("python-setuptools" ,python-setuptools))) | |
7765 | (synopsis "JSON Matching Expressions") | |
7766 | (description "JMESPath (pronounced “james path”) is a Python library that | |
7767 | allows one to declaratively specify how to extract elements from a JSON | |
7768 | document.") | |
7769 | (home-page "https://github.com/jmespath/jmespath.py") | |
7770 | (license license:expat))) | |
7771 | ||
7772 | (define-public python2-jmespath | |
7773 | (package-with-python2 python-jmespath)) | |
935fcd5c DT |
7774 | |
7775 | (define-public python-botocore | |
7776 | (package | |
7777 | (name "python-botocore") | |
7778 | (version "1.3.17") | |
7779 | (source | |
7780 | (origin | |
7781 | (method url-fetch) | |
7782 | (uri (pypi-uri "botocore" version)) | |
7783 | (sha256 | |
7784 | (base32 | |
7785 | "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w")))) | |
7786 | (build-system python-build-system) | |
7787 | (inputs | |
7788 | `(("python-dateutil" ,python-dateutil-2) | |
7789 | ("python-docutils" ,python-docutils) | |
7790 | ("python-mock" ,python-mock) | |
7791 | ("python-nose" ,python-nose) | |
7792 | ("python-setuptools" ,python-setuptools) | |
7793 | ("python-tox" ,python-tox) | |
7794 | ("python-wheel" ,python-wheel) | |
7795 | ("python-jmespath" ,python-jmespath))) | |
7796 | (home-page "https://github.com/boto/botocore") | |
7797 | (synopsis "Low-level interface to AWS") | |
7798 | (description "Botocore is a Python library that provides a low-level | |
7799 | interface to the Amazon Web Services (AWS) API.") | |
3f641af0 | 7800 | (license license:asl2.0))) |
935fcd5c DT |
7801 | |
7802 | (define-public python2-botocore | |
7803 | (package-with-python2 python-botocore)) | |
f861b8b8 DT |
7804 | |
7805 | (define-public awscli | |
7806 | (package | |
7807 | (name "awscli") | |
7808 | (version "1.9.17") | |
7809 | (source | |
7810 | (origin | |
7811 | (method url-fetch) | |
7812 | (uri (string-append | |
7813 | "https://pypi.python.org/packages/source/a/awscli/awscli-" | |
7814 | version ".tar.gz")) | |
7815 | (sha256 | |
7816 | (base32 | |
7817 | "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i")))) | |
7818 | (build-system python-build-system) | |
7819 | (inputs | |
7820 | `(("python-colorama" ,python-colorama) | |
7821 | ("python-docutils" ,python-docutils) | |
7822 | ("python-mock" ,python-mock) | |
7823 | ("python-nose" ,python-nose) | |
7824 | ("python-rsa" ,python-rsa) | |
7825 | ("python-setuptools" ,python-setuptools) | |
7826 | ("python-sphinx" ,python-sphinx) | |
7827 | ("python-tox" ,python-tox) | |
7828 | ("python-wheel" ,python-wheel) | |
7829 | ("python-botocore" ,python-botocore))) | |
7830 | (home-page "http://aws.amazon.com/cli/") | |
7831 | (synopsis "Command line client for AWS") | |
7832 | (description "AWS CLI provides a unified command line interface to the | |
7833 | Amazon Web Services (AWS) API.") | |
3f641af0 | 7834 | (license license:asl2.0))) |
6a44697d LF |
7835 | |
7836 | (define-public python-hypothesis | |
7837 | (package | |
7838 | (name "python-hypothesis") | |
bea6d94d | 7839 | (version "3.1.0") |
6a44697d LF |
7840 | (source (origin |
7841 | (method url-fetch) | |
7842 | (uri (pypi-uri "hypothesis" version)) | |
7843 | (sha256 | |
7844 | (base32 | |
bea6d94d | 7845 | "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw")))) |
6a44697d | 7846 | (build-system python-build-system) |
6a44697d LF |
7847 | (propagated-inputs |
7848 | `(("python-flake8" ,python-flake8) | |
7849 | ("python-pytest" ,python-pytest))) | |
7850 | (synopsis "Library for property based testing") | |
7851 | (description "Hypothesis is a library for testing your Python code against a | |
7852 | much larger range of examples than you would ever want to write by hand. It’s | |
7853 | based on the Haskell library, Quickcheck, and is designed to integrate | |
7854 | seamlessly into your existing Python unit testing work flow.") | |
7855 | (home-page "https://github.com/DRMacIver/hypothesis") | |
3f641af0 | 7856 | (license license:mpl2.0) |
6f068e08 | 7857 | (properties `((python2-variant . ,(delay python2-hypothesis)))))) |
6a44697d LF |
7858 | |
7859 | (define-public python2-hypothesis | |
6f068e08 EF |
7860 | (let ((hypothesis (package-with-python2 |
7861 | (strip-python2-variant python-hypothesis)))) | |
7862 | (package (inherit hypothesis) | |
7863 | (native-inputs | |
7864 | `(("python2-enum34" ,python2-enum34) | |
7865 | ("python2-setuptools" ,python2-setuptools)))))) | |
7517e73c LF |
7866 | |
7867 | (define-public python-pytest-subtesthack | |
7868 | (package | |
7869 | (name "python-pytest-subtesthack") | |
7870 | (version "0.1.1") | |
7871 | (source (origin | |
7872 | (method url-fetch) | |
7873 | (uri (pypi-uri "pytest-subtesthack" version)) | |
7874 | (sha256 | |
7875 | (base32 | |
7876 | "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x")))) | |
7877 | (build-system python-build-system) | |
7878 | (native-inputs | |
7879 | `(;; setuptools required for python-2 variant | |
7880 | ("python-setuptools" ,python-setuptools))) | |
7881 | (propagated-inputs | |
7882 | `(("python-pytest" ,python-pytest))) | |
7883 | (synopsis "Set-up and tear-down fixtures for unit tests") | |
7884 | (description "This plugin allows you to set up and tear down fixtures within | |
7885 | unit test functions that use @code{py.test}. This is useful for using | |
7886 | @command{hypothesis} inside py.test, as @command{hypothesis} will call the test | |
7887 | function multiple times, without setting up or tearing down fixture state as is | |
7888 | normally the case.") | |
7889 | (home-page "https://github.com/untitaker/pytest-subtesthack/") | |
3f641af0 | 7890 | (license license:unlicense))) |
7517e73c LF |
7891 | |
7892 | (define-public python2-pytest-subtesthack | |
7893 | (package-with-python2 python-pytest-subtesthack)) | |
0bdc1671 CAW |
7894 | |
7895 | (define-public python2-xdo | |
7896 | (package | |
7897 | (name "python2-xdo") | |
7898 | (version "0.2") | |
7899 | (source (origin | |
7900 | (method url-fetch) | |
7901 | (uri (string-append | |
7902 | "http://http.debian.net/debian/pool/main/p/python-xdo/" | |
7903 | "python-xdo_" version ".orig.tar.gz")) | |
7904 | (sha256 | |
7905 | (base32 | |
7906 | "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4")))) | |
7907 | (build-system python-build-system) | |
7908 | (arguments | |
7909 | `(#:python ,python-2 | |
7910 | #:tests? #f)) ; no tests provided | |
7911 | (inputs | |
7912 | `(("xdotool" ,xdotool) | |
7913 | ("libX11" ,libx11))) | |
7914 | (home-page "https://tracker.debian.org/pkg/python-xdo") | |
7915 | (synopsis "Python library for simulating X11 keyboard/mouse input") | |
7916 | (description "Provides bindings to libxdo for manipulating X11 via simulated | |
7917 | input. (Note that this is mostly a legacy library; you may wish to look at | |
7918 | python-xdo for newer bindings.)") | |
3f641af0 | 7919 | (license license:bsd-3))) |
0bdc1671 | 7920 | |
cb34dc6c CAW |
7921 | (define-public python-wtforms |
7922 | (package | |
7923 | (name "python-wtforms") | |
7924 | (version "2.1") | |
7925 | (source | |
7926 | (origin | |
7927 | (method url-fetch) | |
7928 | (uri (pypi-uri "WTForms" version ".zip")) | |
7929 | (sha256 | |
7930 | (base32 | |
7931 | "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) | |
7932 | (build-system python-build-system) | |
7933 | (native-inputs | |
7934 | `(("unzip" ,unzip))) | |
7935 | (home-page "http://wtforms.simplecodes.com/") | |
7936 | (synopsis | |
7937 | "Form validation and rendering library for Python web development") | |
7938 | (description | |
7939 | "WTForms is a flexible forms validation and rendering library | |
7940 | for Python web development. It is very similar to the web form API | |
7941 | available in Django, but is a standalone package.") | |
3f641af0 | 7942 | (license license:bsd-3) |
cb34dc6c CAW |
7943 | (properties `((python2-variant . ,(delay python2-wtforms)))))) |
7944 | ||
7945 | (define-public python2-wtforms | |
7946 | (package | |
7947 | (inherit (package-with-python2 | |
7948 | (strip-python2-variant python-wtforms))) | |
7949 | (inputs `(("python2-setuptools" ,python2-setuptools))))) | |
50aaec25 DT |
7950 | |
7951 | (define-public python-mako | |
7952 | (package | |
7953 | (name "python-mako") | |
7954 | (version "1.0.3") | |
7955 | (source | |
7956 | (origin | |
7957 | (method url-fetch) | |
7958 | (uri (pypi-uri "Mako" version)) | |
7959 | (sha256 | |
7960 | (base32 | |
7961 | "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n")))) | |
7962 | (build-system python-build-system) | |
7963 | (native-inputs | |
7964 | `(("python-markupsafe" ,python-markupsafe) | |
7965 | ("python-mock" ,python-mock) | |
7966 | ("python-nose" ,python-nose))) | |
7967 | (home-page "http://www.makotemplates.org/") | |
7968 | (synopsis "Templating language for Python") | |
7969 | (description "Mako is a templating language for Python that compiles | |
7970 | templates into Python modules.") | |
7971 | (license license:expat) | |
7972 | (properties `((python2-variant . ,(delay python2-mako)))))) | |
7973 | ||
7974 | (define-public python2-mako | |
7975 | (let ((base (package-with-python2 | |
7976 | (strip-python2-variant python-mako)))) | |
7977 | (package | |
7978 | (inherit base) | |
7979 | (native-inputs | |
7980 | (cons `("python2-setuptools" ,python2-setuptools) | |
7981 | (package-native-inputs base)))))) | |
ae00a41f CAW |
7982 | |
7983 | (define-public python-waitress | |
7984 | (package | |
7985 | (name "python-waitress") | |
7986 | (version "0.8.10") | |
7987 | (source | |
7988 | (origin | |
7989 | (method url-fetch) | |
7990 | (uri (pypi-uri "waitress" version)) | |
7991 | (sha256 | |
7992 | (base32 | |
7993 | "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w")))) | |
7994 | (build-system python-build-system) | |
7995 | (home-page "https://github.com/Pylons/waitress") | |
7996 | (synopsis "Waitress WSGI server") | |
7997 | (description "Waitress is meant to be a production-quality pure-Python WSGI | |
7998 | server with very acceptable performance.") | |
3f641af0 | 7999 | (license license:zpl2.1) |
ae00a41f CAW |
8000 | (properties `((python2-variant . ,(delay python2-waitress)))))) |
8001 | ||
8002 | (define-public python2-waitress | |
8003 | (package | |
8004 | (inherit (package-with-python2 | |
8005 | (strip-python2-variant python-waitress))) | |
8006 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
778a284b CAW |
8007 | |
8008 | (define-public python-wsgiproxy2 | |
8009 | (package | |
8010 | (name "python-wsgiproxy2") | |
8011 | (version "0.4.2") | |
8012 | (source | |
8013 | (origin | |
8014 | (method url-fetch) | |
8015 | (uri (pypi-uri "WSGIProxy2" version ".zip")) | |
8016 | (sha256 | |
8017 | (base32 | |
8018 | "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) | |
8019 | (build-system python-build-system) | |
8020 | (native-inputs | |
8021 | `(("unzip" ,unzip) | |
8022 | ("python-nose" ,python-nose) | |
8023 | ("python-coverage" ,python-coverage))) | |
8024 | (propagated-inputs | |
8025 | `(("python-six" ,python-six) | |
8026 | ("python-webob" ,python-webob))) | |
8027 | (home-page | |
8028 | "https://github.com/gawel/WSGIProxy2/") | |
8029 | (synopsis "WSGI Proxy with various http client backends") | |
8030 | (description "WSGI turns HTTP requests into WSGI function calls. | |
8031 | WSGIProxy turns WSGI function calls into HTTP requests. | |
8032 | It also includes code to sign requests and pass private data, | |
8033 | and to spawn subprocesses to handle requests.") | |
8034 | (license license:expat) | |
8035 | (properties `((python2-variant . ,(delay python2-wsgiproxy2)))))) | |
8036 | ||
8037 | (define-public python2-wsgiproxy2 | |
8038 | (let ((wsgiproxy2 (package-with-python2 | |
8039 | (strip-python2-variant python-wsgiproxy2)))) | |
8040 | (package | |
8041 | (inherit wsgiproxy2) | |
8042 | (inputs `(("python2-setuptools" ,python2-setuptools) | |
8043 | ,@(package-inputs wsgiproxy2)))))) | |
bb7518b1 CAW |
8044 | |
8045 | (define-public python-pastedeploy | |
8046 | (package | |
8047 | (name "python-pastedeploy") | |
8048 | (version "1.5.2") | |
8049 | (source | |
8050 | (origin | |
8051 | (method url-fetch) | |
8052 | (uri (pypi-uri "PasteDeploy" version)) | |
8053 | (sha256 | |
8054 | (base32 | |
8055 | "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) | |
8056 | (build-system python-build-system) | |
8057 | (native-inputs | |
8058 | `(("python-nose" ,python-nose))) | |
8059 | (propagated-inputs | |
8060 | ;; This package uses pkg_resources, part of setuptools, during runtime, | |
8061 | ;; hence why not a native-input. | |
8062 | `(("python-setuptools" ,python-setuptools))) | |
8063 | (home-page "http://pythonpaste.org/deploy/") | |
8064 | (synopsis | |
8065 | "Load, configure, and compose WSGI applications and servers") | |
8066 | (description | |
8067 | "This tool provides code to load WSGI applications and servers from URIs; | |
8068 | these URIs can refer to Python Eggs for INI-style configuration files. Paste | |
8069 | Script provides commands to serve applications based on this configuration | |
8070 | file.") | |
8071 | (license license:expat))) | |
8072 | ||
8073 | (define-public python2-pastedeploy | |
8074 | (package-with-python2 python-pastedeploy)) | |
1cf53652 | 8075 | |
c4a7904c CAW |
8076 | (define-public python-paste |
8077 | (package | |
8078 | (name "python-paste") | |
8079 | (version "2.0.2") | |
8080 | (source | |
8081 | (origin | |
8082 | (method url-fetch) | |
8083 | (uri (pypi-uri "Paste" version)) | |
8084 | (sha256 | |
8085 | (base32 | |
8086 | "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d")) | |
fc1adab1 AK |
8087 | (patches (search-patches "python-paste-remove-website-test.patch" |
8088 | "python-paste-remove-timing-test.patch")))) | |
c4a7904c CAW |
8089 | (build-system python-build-system) |
8090 | (native-inputs | |
8091 | `(("python-nose" ,python-nose))) | |
8092 | (propagated-inputs | |
8093 | `(;; Uses pkg_resources provided by setuptools internally. | |
8094 | ("python-setuptools" ,python-setuptools) | |
8095 | ("python-six" ,python-six))) | |
8096 | (arguments | |
8097 | '(;; Tests don't pass on Python 3, but work fine on Python 2. | |
8098 | ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken, | |
8099 | ;; but is usable enough for the minimal amount it's used in MediaGoblin | |
8100 | ;; still... things should be better by the next Paste release.) | |
8101 | #:tests? #f)) | |
8102 | (home-page "http://pythonpaste.org") | |
8103 | (synopsis | |
8104 | "Python web development tools, focusing on WSGI") | |
8105 | (description | |
8106 | "Paste provides a variety of web development tools and middleware which | |
8107 | can be nested together to build web applications. Paste's design closely | |
8108 | follows ideas flowing from WSGI (Web Standard Gateway Interface).") | |
8109 | (license license:expat) | |
8110 | (properties `((python2-variant . ,(delay python2-paste)))))) | |
8111 | ||
8112 | (define-public python2-paste | |
8113 | (let ((paste (package-with-python2 | |
8114 | (strip-python2-variant python-paste)))) | |
8115 | (package | |
8116 | (inherit paste) | |
8117 | (arguments | |
8118 | ;; Tests are back for Python 2! | |
8119 | `(#:tests? #t | |
8120 | ,@(package-arguments paste)))))) | |
8121 | ||
a8f20f63 CAW |
8122 | (define-public python-pastescript |
8123 | (package | |
8124 | (name "python-pastescript") | |
8125 | (version "2.0.2") | |
8126 | (source | |
8127 | (origin | |
8128 | (method url-fetch) | |
8129 | (uri (pypi-uri "PasteScript" version)) | |
8130 | (sha256 | |
8131 | (base32 | |
8132 | "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0")))) | |
8133 | (build-system python-build-system) | |
8134 | (native-inputs | |
8135 | `(("python-nose" ,python-nose))) | |
8136 | (propagated-inputs | |
8137 | `(;; Uses pkg_resources provided by setuptools internally. | |
8138 | ("python-setuptools" ,python-setuptools) | |
8139 | ("python-paste" ,python-paste) | |
8140 | ("python-pastedeploy" ,python-pastedeploy))) | |
8141 | (home-page "http://pythonpaste.org/script/") | |
8142 | (arguments | |
8143 | '(;; Unfortunately, this requires the latest unittest2, | |
8144 | ;; but that requires traceback2 which requires linecache2 which requires | |
8145 | ;; unittest2. So we're skipping tests for now. | |
8146 | ;; (Note: Apparently linetest2 only needs unittest2 for its tests, | |
8147 | ;; so in theory we could get around this situation somehow.) | |
8148 | #:tests? #f)) | |
8149 | (synopsis | |
8150 | "Pluggable command line tool for serving web applications and more") | |
8151 | (description | |
8152 | "PasteScript is a plugin-friendly command line tool which provides a | |
8153 | variety of features, from launching web applications to bootstrapping project | |
8154 | layouts.") | |
8155 | (license license:expat))) | |
8156 | ||
8157 | (define-public python2-pastescript | |
8158 | (package-with-python2 python-pastescript)) | |
8159 | ||
1cf53652 CAW |
8160 | (define-public python-pyquery |
8161 | (package | |
8162 | (name "python-pyquery") | |
aab76e80 | 8163 | (version "1.2.13") |
1cf53652 CAW |
8164 | (source |
8165 | (origin | |
8166 | (method url-fetch) | |
8167 | (uri (pypi-uri "pyquery" version)) | |
8168 | (sha256 | |
8169 | (base32 | |
aab76e80 | 8170 | "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv")))) |
1cf53652 CAW |
8171 | (build-system python-build-system) |
8172 | (propagated-inputs | |
8173 | `(("python-lxml" ,python-lxml) | |
8174 | ("python-cssselect" ,python-cssselect))) | |
8175 | (home-page "https://github.com/gawel/pyquery") | |
8176 | (synopsis "Make jQuery-like queries on xml documents") | |
8177 | (description "pyquery allows you to make jQuery queries on xml documents. | |
8178 | The API is as much as possible the similar to jQuery. pyquery uses lxml for | |
8179 | fast xml and html manipulation.") | |
3f641af0 | 8180 | (license license:bsd-3) |
1cf53652 CAW |
8181 | (properties `((python2-variant . ,(delay python2-pyquery)))))) |
8182 | ||
8183 | (define-public python2-pyquery | |
8184 | (let ((pyquery (package-with-python2 | |
8185 | (strip-python2-variant python-pyquery)))) | |
8186 | (package | |
8187 | (inherit pyquery) | |
8188 | (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) | |
aa6313d6 CAW |
8189 | |
8190 | (define-public python-webtest | |
8191 | (package | |
8192 | (name "python-webtest") | |
8193 | (version "2.0.20") | |
8194 | (source | |
8195 | (origin | |
8196 | (method url-fetch) | |
8197 | (uri (pypi-uri "WebTest" version)) | |
8198 | (sha256 | |
8199 | (base32 | |
8200 | "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv")))) | |
8201 | (build-system python-build-system) | |
8202 | (arguments | |
8203 | `(;; Unfortunately we have to disable tests! | |
8204 | ;; This release of WebTest is pinned to python-nose < 1.3, | |
8205 | ;; but older versions of python-nose are plagued with the following | |
8206 | ;; bug(s), which rears its ugly head during test execution: | |
8207 | ;; https://github.com/nose-devs/nose/issues/759 | |
8208 | ;; https://github.com/nose-devs/nose/pull/811 | |
8209 | #:tests? #f)) | |
8210 | ;; Commented out code is no good, but in this case, once tests | |
8211 | ;; are ready to be enabled again, we should put the following | |
8212 | ;; in place: | |
8213 | ;; (native-inputs | |
8214 | ;; `(("python-nose" ,python-nose) ; technially < 1.3, | |
8215 | ;; ; but see above comment | |
8216 | ;; ("python-coverage" ,python-coverage) | |
8217 | ;; ("python-mock" ,python-mock) | |
8218 | ;; ("python-pastedeploy" ,python-pastedeploy) | |
8219 | ;; ("python-wsgiproxy2" ,python-wsgiproxy2) | |
8220 | ;; ("python-pyquery" ,python-pyquery))) | |
8221 | (propagated-inputs | |
8222 | `(("python-waitress" ,python-waitress) | |
8223 | ("python-webob" ,python-webob) | |
8224 | ("python-six" ,python-six) | |
8225 | ("python-beautifulsoup4" ,python-beautifulsoup4))) | |
8226 | (home-page "http://webtest.pythonpaste.org/") | |
8227 | (synopsis "Helper to test WSGI applications") | |
8228 | (description "Webtest allows you to test your Python web applications | |
8229 | without starting an HTTP server. It supports anything that supports the | |
8230 | minimum of WSGI.") | |
8231 | (license license:expat) | |
8232 | (properties `((python2-variant . ,(delay python2-webtest)))))) | |
8233 | ||
8234 | (define-public python2-webtest | |
8235 | (let ((webtest (package-with-python2 | |
8236 | (strip-python2-variant python-webtest)))) | |
8237 | (package | |
8238 | (inherit webtest) | |
8239 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8240 | ,@(package-native-inputs webtest)))))) | |
4cb122cd CAW |
8241 | |
8242 | (define-public python-anyjson | |
8243 | (package | |
8244 | (name "python-anyjson") | |
8245 | (version "0.3.3") | |
8246 | (source | |
8247 | (origin | |
8248 | (method url-fetch) | |
8249 | (uri (pypi-uri "anyjson" version)) | |
8250 | (sha256 | |
8251 | (base32 | |
8252 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) | |
8253 | (build-system python-build-system) | |
8254 | (arguments | |
8255 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. | |
8256 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or | |
8257 | ;; whatever) so this transformation needs to be done before the tests | |
8258 | ;; can be run. Maybe we could add a build step to transform beforehand | |
8259 | ;; but it could be annoying/difficult. | |
8260 | ;; We can enable tests for the Python 2 version, though, and do below. | |
8261 | #:tests? #f)) | |
8262 | (home-page "http://bitbucket.org/runeh/anyjson/") | |
8263 | (synopsis | |
8264 | "Wraps best available JSON implementation in a common interface") | |
8265 | (description | |
8266 | "Anyjson loads whichever is the fastest JSON module installed | |
8267 | and provides a uniform API regardless of which JSON implementation is used.") | |
3f641af0 | 8268 | (license license:bsd-3) |
4cb122cd CAW |
8269 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
8270 | ||
8271 | (define-public python2-anyjson | |
8272 | (let ((anyjson (package-with-python2 | |
8273 | (strip-python2-variant python-anyjson)))) | |
8274 | (package | |
8275 | (inherit anyjson) | |
8276 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! | |
8277 | #:tests? #t | |
8278 | ,@(package-arguments anyjson))) | |
8279 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8280 | ("python2-nose" ,python2-nose)))))) | |
8dfceab7 CAW |
8281 | |
8282 | (define-public python-amqp | |
8283 | (package | |
8284 | (name "python-amqp") | |
8285 | (version "1.4.9") | |
8286 | (source | |
8287 | (origin | |
8288 | (method url-fetch) | |
8289 | (uri (pypi-uri "amqp" version)) | |
8290 | (sha256 | |
8291 | (base32 | |
8292 | "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid")))) | |
8293 | (build-system python-build-system) | |
8294 | (native-inputs | |
8295 | `(("python-nose" ,python-nose) | |
8296 | ("python-mock" ,python-mock))) | |
8297 | (home-page "http://github.com/celery/py-amqp") | |
8298 | (synopsis | |
8299 | "Low-level AMQP client for Python (fork of amqplib)") | |
8300 | (description | |
8301 | "This is a fork of amqplib which was originally written by Barry Pederson. | |
8302 | It is maintained by the Celery project, and used by kombu as a pure python | |
8303 | alternative when librabbitmq is not available.") | |
3f641af0 | 8304 | (license license:lgpl2.1+) |
8dfceab7 CAW |
8305 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
8306 | ||
8307 | (define-public python2-amqp | |
8308 | (let ((amqp (package-with-python2 | |
8309 | (strip-python2-variant python-amqp)))) | |
8310 | (package | |
8311 | (inherit amqp) | |
8312 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems | |
8313 | ;; unmaintained. Weirdly, does not do this on the python 3 | |
8314 | ;; version? | |
8315 | #:tests? #f | |
8316 | ,@(package-arguments amqp))) | |
8317 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8318 | ,@(package-native-inputs amqp)))))) | |
7d387305 CAW |
8319 | |
8320 | (define-public python-kombu | |
8321 | (package | |
8322 | (name "python-kombu") | |
8323 | (version "3.0.33") | |
8324 | (source | |
8325 | (origin | |
8326 | (method url-fetch) | |
8327 | (uri (pypi-uri "kombu" version)) | |
8328 | (sha256 | |
8329 | (base32 | |
8330 | "16brjx2lgwbj2a37d0pjbfb84nvld6irghmqrs3qfncajp51hgc5")))) | |
8331 | (build-system python-build-system) | |
8332 | (native-inputs | |
8333 | `(("python-mock" ,python-mock) | |
8334 | ("python-nose" ,python-nose))) | |
8335 | (propagated-inputs | |
8336 | `(("python-anyjson" ,python-anyjson) | |
8337 | ("python-amqp" ,python-amqp))) | |
8338 | (home-page "http://kombu.readthedocs.org") | |
8339 | (synopsis "Message passing library for Python") | |
8340 | (description "The aim of Kombu is to make messaging in Python as easy as | |
8341 | possible by providing an idiomatic high-level interface for the AMQ protocol, | |
8342 | and also provide proven and tested solutions to common messaging problems. | |
8343 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for | |
8344 | message orientation, queuing, routing, reliability and security, for which the | |
8345 | RabbitMQ messaging server is the most popular implementation.") | |
3f641af0 | 8346 | (license license:bsd-3) |
7d387305 CAW |
8347 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
8348 | ||
8349 | (define-public python2-kombu | |
8350 | (let ((kombu (package-with-python2 | |
8351 | (strip-python2-variant python-kombu)))) | |
8352 | (package | |
8353 | (inherit kombu) | |
8354 | (inputs `(("python2-setuptools" ,python2-setuptools) | |
8355 | ("python2-unittest2" ,python2-unittest2) | |
8356 | ,@(package-inputs kombu)))))) | |
b6f0b9fb CAW |
8357 | |
8358 | (define-public python-billiard | |
8359 | (package | |
8360 | (name "python-billiard") | |
8361 | (version "3.3.0.22") | |
8362 | (source | |
8363 | (origin | |
8364 | (method url-fetch) | |
8365 | (uri (pypi-uri "billiard" version)) | |
8366 | (sha256 | |
8367 | (base32 | |
8368 | "0zp7h6a58alrb3mwdw61jds07395j4j0mj6iqsb8czrihw9ih5nj")))) | |
8369 | (build-system python-build-system) | |
8370 | (native-inputs | |
8371 | `(("python-nose" ,python-nose))) | |
8372 | (home-page "http://github.com/celery/billiard") | |
8373 | (synopsis | |
8374 | "Python multiprocessing fork with improvements and bugfixes") | |
8375 | (description | |
8376 | "Billiard is a fork of the Python 2.7 multiprocessing package. The | |
8377 | multiprocessing package itself is a renamed and updated version of R Oudkerk's | |
8378 | pyprocessing package. This standalone variant is intended to be compatible with | |
8379 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") | |
3f641af0 | 8380 | (license license:bsd-3) |
b6f0b9fb CAW |
8381 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
8382 | ||
8383 | (define-public python2-billiard | |
8384 | (let ((billiard (package-with-python2 | |
8385 | (strip-python2-variant python-billiard)))) | |
8386 | (package | |
8387 | (inherit billiard) | |
8388 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8389 | ("python2-unittest2" ,python2-unittest2) | |
8390 | ("python2-mock" ,python2-mock) | |
8391 | ,@(package-native-inputs billiard)))))) | |
22df6419 CAW |
8392 | |
8393 | (define-public python-celery | |
8394 | (package | |
8395 | (name "python-celery") | |
8396 | (version "3.1.20") | |
8397 | (source | |
8398 | (origin | |
8399 | (method url-fetch) | |
8400 | (uri (pypi-uri "celery" version)) | |
8401 | (sha256 | |
8402 | (base32 | |
8403 | "1md6ywg1s0946qyp8ndnsd677wm0yax933h2sb4m3a4j7lf1jbyh")))) | |
8404 | (build-system python-build-system) | |
8405 | (native-inputs | |
8406 | `(("python-nose" ,python-nose))) | |
a64cbb6f | 8407 | (inputs |
22df6419 | 8408 | `(("python-pytz" ,python-pytz) |
a64cbb6f EF |
8409 | ("python-amqp" ,python-amqp) |
8410 | ("python-anyjson" ,python-anyjson) | |
22df6419 CAW |
8411 | ("python-billiard" ,python-billiard) |
8412 | ("python-kombu" ,python-kombu))) | |
8413 | (home-page "http://celeryproject.org") | |
8414 | (synopsis "Distributed Task Queue") | |
8415 | (description "Celery is an asynchronous task queue/job queue based on | |
8416 | distributed message passing. It is focused on real-time operation, but | |
8417 | supports scheduling as well. The execution units, called tasks, are executed | |
8418 | concurrently on a single or more worker servers using multiprocessing, | |
8419 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or | |
8420 | synchronously (wait until ready).") | |
3f641af0 | 8421 | (license license:bsd-3) |
22df6419 CAW |
8422 | (properties `((python2-variant . ,(delay python2-celery)))))) |
8423 | ||
8424 | (define-public python2-celery | |
8425 | (let ((celery (package-with-python2 | |
8426 | (strip-python2-variant python-celery)))) | |
8427 | (package | |
8428 | (inherit celery) | |
8429 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8430 | ("python2-unittest2" ,python2-unittest2) | |
8431 | ("python2-mock" ,python2-mock) | |
8432 | ,@(package-native-inputs celery)))))) | |
97e32948 CAW |
8433 | |
8434 | (define-public python-translitcodec | |
8435 | (package | |
8436 | (name "python-translitcodec") | |
8437 | (version "0.4.0") | |
8438 | (source | |
8439 | (origin | |
8440 | (method url-fetch) | |
8441 | (uri (pypi-uri "translitcodec" version)) | |
8442 | (sha256 | |
8443 | (base32 | |
8444 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) | |
8445 | (build-system python-build-system) | |
8446 | (arguments | |
8447 | `(#:tests? #f)) ; no tests provided | |
8448 | (home-page | |
8449 | "https://github.com/claudep/translitcodec") | |
8450 | (synopsis | |
8451 | "Unicode to 8-bit charset transliteration codec") | |
8452 | (description | |
8453 | "This package contains codecs for transliterating ISO 10646 texts into | |
8454 | best-effort representations using smaller coded character sets (ASCII, | |
8455 | ISO 8859, etc.).") | |
8456 | (license license:expat) | |
8457 | (properties `((python2-variant . ,(delay python2-translitcodec)))))) | |
8458 | ||
8459 | (define-public python2-translitcodec | |
8460 | (package | |
8461 | (inherit (package-with-python2 | |
8462 | (strip-python2-variant python-translitcodec))) | |
8463 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
0c3b90d4 CAW |
8464 | |
8465 | (define-public python-editor | |
8466 | (package | |
8467 | (name "python-editor") | |
8468 | (version "0.5") | |
8469 | (source | |
8470 | (origin | |
8471 | (method url-fetch) | |
8472 | (uri (pypi-uri "python-editor" version)) | |
8473 | (sha256 | |
8474 | (base32 | |
8475 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) | |
8476 | (build-system python-build-system) | |
8477 | (home-page | |
8478 | "https://github.com/fmoo/python-editor") | |
8479 | (synopsis | |
8480 | "Programmatically open an editor, capture the result") | |
8481 | (description | |
8482 | "python-editor is a library that provides the editor module for | |
8483 | programmatically interfacing with your system's $EDITOR.") | |
3f641af0 | 8484 | (license license:asl2.0) |
0c3b90d4 CAW |
8485 | (properties `((python2-variant . ,(delay python2-editor)))))) |
8486 | ||
8487 | (define-public python2-editor | |
8488 | (package | |
8489 | (inherit (package-with-python2 | |
8490 | (strip-python2-variant python-editor))) | |
8491 | (inputs `(("python2-setuptools" ,python2-setuptools))))) | |
3276517c LF |
8492 | |
8493 | (define-public python-sphinxcontrib-programoutput | |
8494 | (package | |
8495 | (name "python-sphinxcontrib-programoutput") | |
8496 | (version "0.8") | |
8497 | (source (origin | |
8498 | (method url-fetch) | |
8499 | (uri (pypi-uri "sphinxcontrib-programoutput" version)) | |
8500 | (sha256 | |
8501 | (base32 | |
8502 | "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp")))) | |
8503 | (build-system python-build-system) | |
8504 | (propagated-inputs | |
8505 | `(("python-docutils" ,python-docutils) | |
8506 | ("python-sphinx" ,python-sphinx))) | |
8507 | (synopsis "Sphinx extension to include program output") | |
8508 | (description "A Sphinx extension to literally insert the output of arbitrary | |
8509 | commands into documents, helping you to keep your command examples up to date.") | |
8510 | (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput") | |
3f641af0 | 8511 | (license license:bsd-2) |
3276517c LF |
8512 | (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput)))))) |
8513 | ||
8514 | (define-public python2-sphinxcontrib-programoutput | |
8515 | (package | |
8516 | (inherit (package-with-python2 | |
8517 | (strip-python2-variant python-sphinxcontrib-programoutput))) | |
8518 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
548d7165 LF |
8519 | |
8520 | (define-public python-sphinx-repoze-autointerface | |
8521 | (package | |
8522 | (name "python-sphinx-repoze-autointerface") | |
328ae341 | 8523 | (version "0.8") |
548d7165 LF |
8524 | (source (origin |
8525 | (method url-fetch) | |
8526 | (uri (pypi-uri "repoze.sphinx.autointerface" version)) | |
8527 | (sha256 | |
8528 | (base32 | |
328ae341 | 8529 | "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f")))) |
548d7165 LF |
8530 | (build-system python-build-system) |
8531 | (propagated-inputs | |
8532 | `(("python-docutils" ,python-docutils) | |
8533 | ("python-sphinx" ,python-sphinx) | |
8534 | ("python-zope-interface" ,python-zope-interface))) | |
8535 | (synopsis "Auto-generate Sphinx API docs from Zope interfaces") | |
8536 | (description "This package defines an extension for the Sphinx documentation | |
8537 | system. The extension allows generation of API documentation by | |
8538 | introspection of @code{zope.interface} instances in code.") | |
8539 | (home-page "https://github.com/repoze/repoze.sphinx.autointerface") | |
3f641af0 | 8540 | (license license:repoze))) |
548d7165 LF |
8541 | |
8542 | (define-public python2-sphinx-repoze-autointerface | |
8543 | (package-with-python2 python-sphinx-repoze-autointerface)) | |
b31fbea5 DM |
8544 | |
8545 | (define-public python-psycopg2 | |
8546 | (package | |
8547 | (name "python-psycopg2") | |
8548 | (version "2.6.1") | |
8549 | (source | |
8550 | (origin | |
8551 | (method url-fetch) | |
8552 | (uri (pypi-uri "psycopg2" version)) | |
8553 | (sha256 | |
8554 | (base32 | |
8555 | "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva")))) | |
8556 | (build-system python-build-system) | |
8557 | (arguments | |
8558 | ;; Tests would require a postgresql database "psycopg2_test" | |
8559 | ;; and a running postgresql database management service. | |
8560 | `(#:tests? #f)) ; TODO re-enable after providing a test-db. | |
8561 | (inputs | |
8562 | `(("postgresql" ,postgresql))) ; libpq | |
8563 | (home-page "http://initd.org/psycopg/") | |
8564 | (synopsis "Python PostgreSQL adapter") | |
8565 | (description | |
8566 | "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") | |
3f641af0 | 8567 | (license license:lgpl3+) |
b31fbea5 DM |
8568 | (properties `((python2-variant . ,(delay python2-psycopg2)))))) |
8569 | ||
8570 | (define-public python2-psycopg2 | |
8571 | (package | |
8572 | (inherit (package-with-python2 | |
8573 | (strip-python2-variant python-psycopg2))) | |
8574 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
eed1a61f LF |
8575 | |
8576 | (define-public python-vobject | |
8577 | (package | |
8578 | (name "python-vobject") | |
9bed9b15 | 8579 | (version "0.9.2") |
eed1a61f LF |
8580 | (source (origin |
8581 | (method url-fetch) | |
8582 | (uri (pypi-uri "vobject" version)) | |
8583 | (sha256 | |
8584 | (base32 | |
9bed9b15 | 8585 | "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb")))) |
eed1a61f LF |
8586 | (build-system python-build-system) |
8587 | (inputs | |
8588 | `(("python-dateutil-2" ,python-dateutil-2) | |
8589 | ("python-pyicu" ,python-pyicu))) | |
8590 | (synopsis "Parse and generate vCard and vCalendar files") | |
8591 | (description "Vobject is intended to be a full featured Python package for | |
8592 | parsing and generating vCard and vCalendar files. Currently, iCalendar files | |
8593 | are supported and well tested. vCard 3.0 files are supported, and all data | |
8594 | should be imported, but only a few components are understood in a sophisticated | |
8595 | way.") | |
8596 | (home-page "http://eventable.github.io/vobject/") | |
3f641af0 | 8597 | (license license:asl2.0) |
eed1a61f LF |
8598 | (properties `((python2-variant . ,(delay python2-vobject)))))) |
8599 | ||
8600 | (define-public python2-vobject | |
8601 | (package | |
8602 | (inherit (package-with-python2 | |
8603 | (strip-python2-variant python-vobject))) | |
8604 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
cedac813 LF |
8605 | |
8606 | (define-public python-munkres | |
8607 | (package | |
8608 | (name "python-munkres") | |
8609 | (version "1.0.7") | |
8610 | (source (origin | |
8611 | (method url-fetch) | |
8612 | (uri (pypi-uri "munkres" version)) | |
8613 | (sha256 | |
8614 | (base32 | |
8615 | "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik")))) | |
8616 | (build-system python-build-system) | |
8617 | (arguments | |
8618 | '(#:tests? #f)) ; no test suite | |
8619 | (home-page "http://software.clapper.org/munkres/") | |
8620 | (synopsis "Implementation of the Munkres algorithm") | |
8621 | (description "The Munkres module provides an implementation of the Munkres | |
8622 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), | |
8623 | useful for solving the Assignment Problem.") | |
3f641af0 | 8624 | (license license:bsd-3))) |
cedac813 LF |
8625 | |
8626 | (define-public python2-munkres | |
8627 | (package-with-python2 python-munkres)) | |
f3b3d78f LF |
8628 | |
8629 | (define-public python-flask | |
8630 | (package | |
8631 | (name "python-flask") | |
8632 | (version "0.10.1") | |
8633 | (source (origin | |
8634 | (method url-fetch) | |
8635 | (uri (pypi-uri "Flask" version)) | |
8636 | (sha256 | |
8637 | (base32 | |
8638 | "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc")))) | |
8639 | (build-system python-build-system) | |
8640 | (propagated-inputs | |
8641 | `(("python-itsdangerous" ,python-itsdangerous) | |
8642 | ("python-jinja2" ,python-jinja2) | |
8643 | ("python-werkzeug" ,python-werkzeug))) | |
8644 | (home-page "https://github.com/mitsuhiko/flask/") | |
8645 | (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") | |
8646 | (description "Flask is a micro web framework based on the Werkzeug toolkit | |
8647 | and Jinja2 template engine. It is called a micro framework because it does not | |
8648 | presume or force a developer to use a particular tool or library.") | |
3f641af0 | 8649 | (license license:bsd-3) |
f3b3d78f LF |
8650 | (properties `((python2-variant . ,(delay python2-flask)))))) |
8651 | ||
8652 | (define-public python2-flask | |
8653 | (package (inherit (package-with-python2 | |
8654 | (strip-python2-variant python-flask))) | |
8655 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
603d665b LF |
8656 | |
8657 | (define-public python-cookies | |
8658 | (package | |
8659 | (name "python-cookies") | |
8660 | (version "2.2.1") | |
8661 | (source (origin | |
8662 | (method url-fetch) | |
8663 | (uri (pypi-uri "cookies" version)) | |
8664 | (sha256 | |
8665 | (base32 | |
8666 | "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) | |
8667 | (build-system python-build-system) | |
8668 | (arguments | |
8669 | `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 | |
8670 | #:tests? #f)) | |
8671 | (native-inputs | |
8672 | `(("python-pytest" ,python2-pytest))) | |
8673 | (synopsis "HTTP cookie parser and renderer") | |
8674 | (description "A RFC 6265-compliant HTTP cookie parser and renderer in | |
8675 | Python.") | |
8676 | (home-page "https://gitlab.com/sashahart/cookies") | |
8677 | (license license:expat) | |
8678 | (properties `((python2-variant . ,(delay python2-cookies)))))) | |
8679 | ||
8680 | (define-public python2-cookies | |
8681 | (let ((cookies (package-with-python2 | |
8682 | (strip-python2-variant python-cookies)))) | |
8683 | (package (inherit cookies) | |
8684 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8685 | ,@(package-native-inputs cookies)))))) | |
0efde7d6 LF |
8686 | |
8687 | (define-public python-responses | |
8688 | (package | |
8689 | (name "python-responses") | |
8690 | (version "0.5.1") | |
8691 | (source (origin | |
8692 | (method url-fetch) | |
8693 | (uri (pypi-uri "responses" version)) | |
8694 | (sha256 | |
8695 | (base32 | |
8696 | "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) | |
8697 | (build-system python-build-system) | |
8698 | (arguments | |
8699 | `(;; Test suite is not distributed: | |
8700 | ;; https://github.com/getsentry/responses/issues/38 | |
8701 | #:tests? #f)) | |
8702 | (native-inputs | |
8703 | `(("python-cookies" ,python-cookies) | |
8704 | ("python-mock" ,python-mock))) | |
8705 | (propagated-inputs | |
8706 | `(("python-requests" ,python-requests) | |
8707 | ("python-six" ,python-six))) | |
8708 | (home-page "https://github.com/getsentry/responses") | |
8709 | (synopsis "Utility for mocking out the `requests` Python library") | |
8710 | (description "A utility library for mocking out the `requests` Python | |
8711 | library.") | |
3f641af0 | 8712 | (license license:asl2.0) |
0efde7d6 LF |
8713 | (properties `((python2-variant . ,(delay python2-responses)))))) |
8714 | ||
8715 | (define-public python2-responses | |
8716 | (let ((responses (package-with-python2 | |
8717 | (strip-python2-variant python-responses)))) | |
8718 | (package (inherit responses) | |
8719 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8720 | ,@(package-native-inputs responses)))))) | |
76b94885 LF |
8721 | |
8722 | (define-public python-pathlib | |
8723 | (package | |
8724 | (name "python-pathlib") | |
8725 | (version "1.0.1") | |
8726 | (source (origin | |
8727 | (method url-fetch) | |
8728 | (uri (pypi-uri "pathlib" version)) | |
8729 | (sha256 | |
8730 | (base32 | |
8731 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) | |
8732 | (build-system python-build-system) | |
8733 | (arguments | |
8734 | `(#:phases | |
8735 | (modify-phases %standard-phases | |
8736 | (replace 'check | |
8737 | (lambda _ (zero? (system* "python" "./test_pathlib.py"))))))) | |
8738 | (home-page "https://pathlib.readthedocs.org/") | |
8f65585b JD |
8739 | (synopsis "Object-oriented file system paths") |
8740 | (description "Pathlib offers a set of classes to handle file system paths. | |
76b94885 LF |
8741 | It offers the following advantages over using string objects: |
8742 | ||
8743 | @enumerate | |
8744 | @item No more cumbersome use of os and os.path functions. Everything can | |
8745 | be done easily through operators, attribute accesses, and method calls. | |
8746 | @item Embodies the semantics of different path types. For example, | |
8747 | comparing Windows paths ignores casing. | |
8748 | @item Well-defined semantics, eliminating any inconsistencies or | |
8749 | ambiguities (forward vs. backward slashes, etc.). | |
8750 | @end enumerate\n") | |
8751 | (license license:expat))) | |
8752 | ||
8753 | (define-public python2-pathlib | |
8754 | (package-with-python2 python-pathlib)) | |
25a7db0a LF |
8755 | |
8756 | (define-public python-jellyfish | |
8757 | (package | |
8758 | (name "python-jellyfish") | |
8759 | (version "0.5.3") | |
8760 | (source (origin | |
8761 | (method url-fetch) | |
8762 | (uri (pypi-uri "jellyfish" version)) | |
8763 | (sha256 | |
8764 | (base32 | |
8765 | "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07")))) | |
8766 | (build-system python-build-system) | |
8767 | (native-inputs | |
8768 | `(("python-pytest" ,python-pytest))) | |
8769 | (home-page "https://github.com/jamesturk/jellyfish") | |
8770 | (synopsis "Approximate and phonetic matching of strings") | |
8771 | (description "Jellyfish uses a variety of string comparison and phonetic | |
8772 | encoding algorithms to do fuzzy string matching.") | |
3f641af0 | 8773 | (license license:bsd-2) |
25a7db0a LF |
8774 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
8775 | ||
8776 | (define-public python2-jellyfish | |
8777 | (let ((jellyfish (package-with-python2 | |
8778 | (strip-python2-variant python-jellyfish)))) | |
8779 | (package (inherit jellyfish) | |
8780 | (native-inputs `(("python2-setuptools" ,python2-setuptools) | |
8781 | ("python2-unicodecsv" ,python2-unicodecsv) | |
8782 | ,@(package-native-inputs jellyfish)))))) | |
13edb0e5 LF |
8783 | |
8784 | (define-public python2-unicodecsv | |
8785 | (package | |
8786 | (name "python2-unicodecsv") | |
8787 | (version "0.14.1") | |
8788 | (source (origin | |
8789 | (method url-fetch) | |
8790 | ;; The test suite is not included in the PyPi release. | |
8791 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 | |
8792 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" | |
8793 | "archive/" version ".tar.gz")) | |
8794 | (file-name (string-append name "-" version ".tar.gz")) | |
8795 | (sha256 | |
8796 | (base32 | |
8797 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) | |
8798 | (build-system python-build-system) | |
8799 | (arguments | |
8800 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. | |
8801 | #:python ,python-2)) | |
8802 | (native-inputs | |
8803 | `(("python2-setuptools" ,python2-setuptools) | |
8804 | ("python2-unittest2" ,python2-unittest2))) | |
8805 | (home-page "https://github.com/jdunck/python-unicodecsv") | |
8806 | (synopsis "Unicode CSV module for Python 2") | |
8807 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV | |
8808 | module, adding support for Unicode strings.") | |
3f641af0 | 8809 | (license license:bsd-2))) |
064503aa LF |
8810 | |
8811 | (define-public python-rarfile | |
8812 | (package | |
8813 | (name "python-rarfile") | |
8814 | (version "2.7") | |
8815 | (source (origin | |
8816 | (method url-fetch) | |
8817 | (uri (pypi-uri "rarfile" version)) | |
8818 | (sha256 | |
8819 | (base32 | |
8820 | "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527")) | |
8821 | ;; https://github.com/markokr/rarfile/pull/17/ | |
fc1adab1 | 8822 | (patches (search-patches "python-rarfile-fix-tests.patch")))) |
064503aa LF |
8823 | (build-system python-build-system) |
8824 | (arguments | |
8825 | '(#:phases | |
8826 | (modify-phases %standard-phases | |
8827 | (replace 'check | |
8828 | ;; Many tests fail, but the installation proceeds. | |
8829 | (lambda _ (zero? (system* "make" "-C" "test" "test"))))))) | |
8830 | (native-inputs | |
8831 | `(("which" ,which))) ; required for tests | |
8832 | (propagated-inputs | |
8833 | `(("libarchive" ,libarchive))) | |
8834 | (home-page "https://github.com/markokr/rarfile") | |
8835 | (synopsis "RAR archive reader for Python") | |
8836 | (description "This is Python module for RAR archive reading. The interface | |
8837 | is made as zipfile like as possible.") | |
3f641af0 | 8838 | (license license:isc))) |
064503aa LF |
8839 | |
8840 | (define-public python2-rarfile | |
8841 | (package-with-python2 python-rarfile)) | |
daeeea71 CM |
8842 | |
8843 | (define-public python-magic | |
8844 | (package | |
8845 | (name "python-magic") | |
8846 | (version "0.4.3") | |
8847 | (source | |
8848 | (origin | |
8849 | (method url-fetch) | |
8850 | (uri (string-append "https://github.com/ahupp/python-magic/archive/" | |
8851 | version ".tar.gz")) | |
8852 | (sha256 | |
8853 | (base32 | |
8854 | "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) | |
8855 | (file-name (string-append name "-" version "-checkout")))) | |
8856 | (build-system python-build-system) | |
8857 | (arguments | |
8858 | ;; The tests are unreliable, so don't run them. The tests fail | |
8859 | ;; under Python3 because they were written for Python2 and | |
8860 | ;; contain import statements that do not work in Python3. One of | |
8861 | ;; the tests fails under Python2 because its assertions are | |
8862 | ;; overly stringent; it relies on comparing output strings which | |
8863 | ;; are brittle and can change depending on the version of | |
8864 | ;; libmagic being used and the system on which the test is | |
8865 | ;; running. In my case, under GuixSD 0.10.0, only one test | |
8866 | ;; failed, and it seems to have failed only because the version | |
8867 | ;; of libmagic that is packaged in Guix outputs a slightly | |
8868 | ;; different (but not wrong) string than the one that the test | |
8869 | ;; expected. | |
8870 | '(#:tests? #f | |
8871 | #:phases (modify-phases %standard-phases | |
8872 | ;; Replace a specific method call with a hard-coded | |
8873 | ;; path to the necessary libmagic.so file in the | |
8874 | ;; store. If we don't do this, then the method call | |
8875 | ;; will fail to find the libmagic.so file, which in | |
8876 | ;; turn will cause any application using | |
8877 | ;; python-magic to fail. | |
8878 | (add-before 'build 'hard-code-path-to-libmagic | |
8879 | (lambda* (#:key inputs #:allow-other-keys) | |
8880 | (let ((file (assoc-ref inputs "file"))) | |
8881 | (substitute* "magic.py" | |
8882 | (("ctypes.util.find_library\\('magic'\\)") | |
8883 | (string-append "'" file "/lib/libmagic.so'"))) | |
77432686 LF |
8884 | #t))) |
8885 | (add-before 'install 'disable-egg-compression | |
8886 | (lambda _ | |
8887 | (let ((port (open-file "setup.cfg" "a"))) | |
8888 | (display "\n[easy_install]\nzip_ok = 0\n" | |
8889 | port) | |
8890 | (close-port port) | |
8891 | #t)))))) | |
daeeea71 CM |
8892 | (native-inputs |
8893 | `(("python-setuptools" ,python-setuptools))) | |
8894 | (inputs | |
8895 | ;; python-magic needs to be able to find libmagic.so. | |
8896 | `(("file" ,file))) | |
8897 | (home-page "https://github.com/ahupp/python-magic") | |
8898 | (synopsis "File type identification using libmagic") | |
8899 | (description | |
8900 | "This module uses ctypes to access the libmagic file type | |
8901 | identification library. It makes use of the local magic database and | |
8902 | supports both textual and MIME-type output. Note that this module and | |
8903 | the python-file module both provide a \"magic.py\" file; these two | |
8904 | modules, which are different and were developed separately, both serve | |
8905 | the same purpose: to provide Python bindings for libmagic.") | |
8906 | (license license:expat))) | |
8907 | ||
8908 | (define-public python2-magic | |
8909 | (package-with-python2 python-magic)) | |
12af303f CM |
8910 | |
8911 | (define-public python2-s3cmd | |
8912 | (package | |
8913 | (name "python2-s3cmd") | |
8914 | (version "1.6.1") | |
8915 | (source | |
8916 | (origin | |
8917 | (method url-fetch) | |
de67e922 | 8918 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
12af303f CM |
8919 | "s3cmd-" version ".tar.gz")) |
8920 | (sha256 | |
8921 | (base32 | |
8922 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) | |
8923 | (build-system python-build-system) | |
8924 | (arguments | |
8925 | ;; s3cmd is written for python2 only and contains no tests. | |
8926 | `(#:python ,python-2 | |
8927 | #:tests? #f)) | |
8928 | (native-inputs | |
8929 | `(("python2-setuptools" ,python2-setuptools))) | |
8930 | (inputs | |
8931 | `(("python2-dateutil" ,python2-dateutil) | |
8932 | ;; The python-file package also provides a magic.py module. | |
8933 | ;; This is an unfortunate state of affairs; however, s3cmd | |
8934 | ;; fails to install if it cannot find specifically the | |
8935 | ;; python-magic package. Thus we include it, instead of using | |
8936 | ;; python-file. Ironically, s3cmd sometimes works better | |
8937 | ;; without libmagic bindings at all: | |
8938 | ;; https://github.com/s3tools/s3cmd/issues/198 | |
8939 | ("python2-magic" ,python2-magic))) | |
8940 | (home-page "http://s3tools.org/s3cmd") | |
8941 | (synopsis "Command line tool for S3-compatible storage services") | |
8942 | (description | |
8943 | "S3cmd is a command line tool for uploading, retrieving and managing data | |
8944 | in storage services that are compatible with the Amazon Simple Storage | |
8945 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, | |
8946 | GnuPG encryption, and more. It also supports management of Amazon's | |
8947 | CloudFront content delivery network.") | |
3f641af0 | 8948 | (license license:gpl2+))) |
4323a5f0 AE |
8949 | |
8950 | (define-public python-pkgconfig | |
8951 | (package | |
8952 | (name "python-pkgconfig") | |
8953 | (version "1.1.0") | |
8954 | (source | |
8955 | (origin | |
8956 | (method url-fetch) | |
8957 | (uri (pypi-uri "pkgconfig" version)) | |
8958 | (sha256 | |
8959 | (base32 | |
8960 | "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) | |
8961 | (build-system python-build-system) | |
8962 | (native-inputs | |
8963 | `(("python-nose" ,python-nose) | |
8964 | ("python-setuptools" ,python-setuptools))) | |
8965 | (inputs | |
8966 | `(("pkg-config" ,pkg-config))) | |
8967 | (arguments | |
8968 | `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3, | |
8969 | ;; and on Python 2 they need the dl module deprecated since Python 2.6. | |
8970 | #:tests? #f | |
8971 | ;; Prevent creation of the egg. This works around | |
8972 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . | |
8973 | #:configure-flags '("--single-version-externally-managed" "--root=/") | |
8974 | ;; Hard-code the path to pkg-config. | |
8975 | #:phases | |
8976 | (modify-phases %standard-phases | |
8977 | (add-before | |
8978 | 'build 'patch | |
8979 | (lambda _ | |
8980 | (substitute* "pkgconfig/pkgconfig.py" | |
8981 | (("cmd = 'pkg-config") | |
8982 | (string-append "cmd = '" (which "pkg-config")))) | |
8983 | #t))))) | |
8984 | (home-page "http://github.com/matze/pkgconfig") | |
8985 | (synopsis "Python interface for pkg-config") | |
8986 | (description "This module provides a Python interface to pkg-config. It | |
8987 | can be used to find all pkg-config packages, check if a package exists, | |
8988 | check if a package meets certain version requirements, query CFLAGS and | |
8989 | LDFLAGS and parse the output to build extensions with setup.py.") | |
a0c6a36b | 8990 | (license license:expat))) |
4323a5f0 AE |
8991 | |
8992 | (define-public python2-pkgconfig | |
8993 | (package-with-python2 python-pkgconfig)) | |
8994 | ||
2e697322 BW |
8995 | (define-public python-bz2file |
8996 | (package | |
8997 | (name "python-bz2file") | |
8998 | (version "0.98") | |
8999 | (source | |
9000 | (origin | |
9001 | (method url-fetch) | |
9002 | (uri (pypi-uri "bz2file" version)) | |
9003 | (sha256 | |
9004 | (base32 | |
9005 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) | |
9006 | (build-system python-build-system) | |
9007 | (arguments | |
124df723 | 9008 | `(#:tests? #f)) ; Tests use deprecated python modules. |
2e697322 BW |
9009 | (home-page "https://github.com/nvawda/bz2file") |
9010 | (synopsis "Read and write bzip2-compressed files") | |
9011 | (description | |
9012 | "Bz2file is a Python library for reading and writing bzip2-compressed | |
9013 | files. It contains a drop-in replacement for the I/O interface in the | |
9014 | standard library's @code{bz2} module, including features from the latest | |
9015 | development version of CPython that are not available in older releases.") | |
3f641af0 | 9016 | (license license:asl2.0) |
2e697322 BW |
9017 | (properties `((python2-variant . ,(delay python2-bz2file)))))) |
9018 | ||
9019 | (define-public python2-bz2file | |
9020 | (let ((base (package-with-python2 | |
9021 | (strip-python2-variant python-bz2file)))) | |
9022 | (package | |
9023 | (inherit base) | |
9024 | (native-inputs | |
124df723 BW |
9025 | `(("python2-setuptools" ,python2-setuptools))) |
9026 | (arguments | |
752bb447 BW |
9027 | `(#:python ,python-2 |
9028 | #:phases | |
124df723 BW |
9029 | (modify-phases %standard-phases |
9030 | ;; 'python setup.py test' does not work as of 0.98. | |
9031 | ;; There is only the one test file, so we run it directly. | |
9032 | (replace 'check | |
9033 | (lambda _ (zero? (system* "python" | |
9034 | "test_bz2file.py")))))))))) | |
2e697322 | 9035 | |
da4ac1aa BW |
9036 | (define-public python-future |
9037 | (package | |
9038 | (name "python-future") | |
9039 | (version "0.15.2") | |
9040 | (source | |
9041 | (origin | |
9042 | (method url-fetch) | |
9043 | (uri (pypi-uri "future" version)) | |
9044 | (sha256 | |
9045 | (base32 | |
9046 | "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx")))) | |
9047 | (build-system python-build-system) | |
9048 | ;; Many tests connect to the network or are otherwise flawed. | |
9049 | ;; https://github.com/PythonCharmers/python-future/issues/210 | |
9050 | (arguments | |
9051 | `(#:tests? #f)) | |
9052 | (home-page "http://python-future.org") | |
9053 | (synopsis "Single-source support for Python 3 and 2") | |
9054 | (description | |
9055 | "@code{python-future} is the missing compatibility layer between Python 2 and | |
9056 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase | |
9057 | to support both Python 2 and Python 3 with minimal overhead.") | |
9058 | (license license:expat) | |
9059 | (properties `((python2-variant . ,(delay python2-future)))))) | |
9060 | ||
9061 | (define-public python2-future | |
9062 | (let ((base (package-with-python2 | |
9063 | (strip-python2-variant python-future)))) | |
9064 | (package | |
9065 | (inherit base) | |
9066 | (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) | |
9067 | ||
8e451885 AE |
9068 | (define-public python-cysignals |
9069 | (package | |
9070 | (name "python-cysignals") | |
9071 | (version "1.1.0") | |
9072 | (source | |
9073 | (origin | |
9074 | (method url-fetch) | |
9075 | (uri (pypi-uri "cysignals" version ".tar.bz2")) | |
9076 | (sha256 | |
9077 | (base32 | |
9078 | "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6")))) | |
9079 | (build-system python-build-system) | |
9080 | (native-inputs | |
9081 | `(("python-cython" ,python-cython) | |
9082 | ("python-setuptools" ,python-setuptools) | |
9083 | ("python-sphinx" ,python-sphinx))) | |
9084 | (inputs | |
9085 | `(("pari-gp" ,pari-gp))) | |
9086 | (arguments | |
9087 | `(#:modules ((guix build python-build-system) | |
9088 | ((guix build gnu-build-system) #:prefix gnu:) | |
9089 | (guix build utils)) | |
9090 | ;; FIXME: Tests are executed after installation and currently fail | |
9091 | ;; when not installing into standard locations; the author is working | |
9092 | ;; on a fix. | |
9093 | #:tests? #f | |
9094 | #:phases | |
9095 | (modify-phases %standard-phases | |
9096 | (add-before | |
9097 | 'build 'configure | |
9098 | (assoc-ref gnu:%standard-phases 'configure))))) | |
9099 | (home-page | |
9100 | "https://github.com/sagemath/cysignals") | |
9101 | (synopsis | |
9102 | "Handling of interrupts and signals for Cython") | |
9103 | (description | |
9104 | "The cysignals package provides mechanisms to handle interrupts (and | |
9105 | other signals and errors) in Cython code, using two related approaches, | |
9106 | for mixed Cython/Python code or external C libraries and pure Cython code, | |
9107 | respectively.") | |
3f641af0 | 9108 | (license license:lgpl3+))) |
8e451885 AE |
9109 | |
9110 | (define-public python2-cysignals | |
9111 | (package-with-python2 python-cysignals)) | |
9112 | ||
63bcec71 DM |
9113 | (define-public python2-shedskin |
9114 | (package | |
9115 | (name "python2-shedskin") | |
9116 | (version "0.9.4") | |
9117 | (source | |
9118 | (origin | |
9119 | (method url-fetch) | |
9120 | (uri (string-append "https://github.com/shedskin/shedskin/" | |
9121 | "releases/download/v" version | |
9122 | "/shedskin-" version ".tgz")) | |
9123 | (sha256 | |
9124 | (base32 | |
9125 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) | |
9126 | (build-system python-build-system) | |
9127 | (arguments | |
9128 | `(#:python ,python-2 | |
9129 | #:phases (modify-phases %standard-phases | |
9130 | (add-after 'unpack 'fix-resulting-include-libs | |
9131 | (lambda* (#:key inputs #:allow-other-keys) | |
9132 | (let ((libgc (assoc-ref inputs "libgc")) | |
9133 | (pcre (assoc-ref inputs "pcre"))) | |
9134 | (substitute* "shedskin/makefile.py" | |
9135 | (("variable == 'CCFLAGS':[ ]*") | |
9136 | (string-append "variable == 'CCFLAGS':\n" | |
9137 | " line += ' -I " pcre "/include" | |
9138 | " -I " libgc "/include'")) | |
9139 | (("variable == 'LFLAGS':[ ]*") | |
9140 | (string-append "variable == 'LFLAGS':\n" | |
9141 | " line += ' -L" pcre "/lib" | |
9142 | " -L " libgc "/lib'"))) | |
9143 | #t)))))) | |
9144 | (native-inputs `(("python2-setuptools" ,python2-setuptools))) | |
9145 | (inputs `(("pcre" ,pcre) | |
9146 | ("libgc" ,libgc))) | |
9147 | (home-page "https://shedskin.github.io/") | |
9148 | (synopsis "Experimental Python-2 to C++ Compiler") | |
9149 | (description (string-append "This is an experimental compiler for a subset of | |
9150 | Python. It generates C++ code and a Makefile.")) | |
3f641af0 | 9151 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
88bb4197 LG |
9152 | |
9153 | (define-public python2-rope | |
9154 | (package | |
9155 | (name "python2-rope") | |
9156 | (version "0.10.3") | |
9157 | (source | |
9158 | (origin | |
9159 | (method url-fetch) | |
9160 | (uri (pypi-uri "rope" version)) | |
9161 | (sha256 | |
9162 | (base32 | |
9163 | "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) | |
9164 | (arguments | |
9165 | ;; Rope is currently python-2 only. | |
9166 | ;; https://github.com/python-rope/rope/issues/57 | |
9167 | `(#:python ,python-2)) | |
9168 | (build-system python-build-system) | |
9169 | (native-inputs | |
9170 | `(("python2-unittest2" ,python2-unittest2) | |
9171 | ("python2-setuptools" ,python2-setuptools))) | |
9172 | (home-page "https://github.com/python-rope/rope") | |
9173 | (synopsis "Refactoring library for Python") | |
9174 | (description "Rope is a refactoring library for Python. It facilitates | |
9175 | the renaming, moving and extracting of attributes, functions, modules, fields | |
9176 | and parameters in Python 2 source code. These refactorings can also be applied | |
9177 | to occurences in strings and comments.") | |
3f641af0 | 9178 | (license license:gpl2))) |
6ba8ca17 TČ |
9179 | |
9180 | (define-public python-py3status | |
9181 | (package | |
9182 | (name "python-py3status") | |
d2262d70 | 9183 | (version "3.1") |
6ba8ca17 TČ |
9184 | (source |
9185 | (origin | |
9186 | (method url-fetch) | |
9187 | (uri (pypi-uri "py3status" version)) | |
9188 | (sha256 | |
9189 | (base32 | |
d2262d70 | 9190 | "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) |
6ba8ca17 TČ |
9191 | (build-system python-build-system) |
9192 | (native-inputs | |
9193 | `(("python-setuptools" ,python-setuptools))) | |
9194 | (home-page "https://github.com/ultrabug/py3status") | |
9195 | (synopsis "Extensible i3status wrapper written in Python") | |
9196 | (description "py3status is an i3status wrapper which extends i3status | |
9197 | functionality in a modular way, allowing you to extend your panel with your | |
9198 | own code, responding to click events and updating clock every second.") | |
3f641af0 | 9199 | (license license:bsd-3))) |
b8fdbca3 HG |
9200 | |
9201 | (define-public python-tblib | |
9202 | (package | |
9203 | (name "python-tblib") | |
9204 | (version "1.3.0") | |
9205 | (source (origin | |
9206 | (method url-fetch) | |
9207 | (uri (pypi-uri "tblib" version)) | |
9208 | (sha256 (base32 | |
9209 | "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi")))) | |
9210 | (build-system python-build-system) | |
9211 | (arguments | |
9212 | `(#:phases | |
9213 | (modify-phases %standard-phases | |
9214 | (replace 'check | |
9215 | (lambda _ | |
9216 | ;; Upstream runs tests after installation and the package itself | |
9217 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be | |
9218 | ;; found. | |
9219 | (setenv "PYTHONPATH" | |
9220 | (string-append (getcwd) "/build/lib:" | |
9221 | (getenv "PYTHONPATH"))) | |
9222 | (zero? (system* "py.test" "-vv" "tests" "README.rst"))))))) | |
9223 | (native-inputs | |
9224 | `(("python-pytest" ,python-pytest) | |
9225 | ("python-setuptools" ,python-setuptools) | |
9226 | ("python-six" ,python-six))) | |
9227 | (home-page "https://github.com/ionelmc/python-tblib") | |
9228 | (synopsis "Traceback serialization library") | |
9229 | (description | |
9230 | "Traceback serialization allows you to: | |
9231 | ||
9232 | @enumerate | |
9233 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in | |
9234 | different processes. This allows better error handling when running code over | |
9235 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). | |
9236 | ||
9237 | @item Parse traceback strings and raise with the parsed tracebacks. | |
9238 | @end itemize") | |
3f641af0 | 9239 | (license license:bsd-3))) |
b8fdbca3 HG |
9240 | |
9241 | (define-public python2-tblib | |
9242 | (package-with-python2 python-tblib)) | |
1a024de4 HG |
9243 | |
9244 | (define-public python-sqlparse | |
9245 | (package | |
9246 | (name "python-sqlparse") | |
9247 | (version "0.1.19") | |
9248 | (source (origin | |
9249 | (method url-fetch) | |
9250 | (uri (pypi-uri "sqlparse" version)) | |
9251 | (sha256 | |
9252 | (base32 | |
9253 | "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) | |
9254 | (build-system python-build-system) | |
9255 | (arguments | |
9256 | `(#:phases | |
9257 | (modify-phases %standard-phases | |
9258 | (replace 'check | |
9259 | (lambda* _ | |
9260 | ;; setup.py-integrated 2to3 only affects the build files, but | |
9261 | ;; py.test is using the source files. So we need to convert them | |
9262 | ;; manually. | |
9263 | (when (zero? (system* "python3")) | |
9264 | (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")) | |
9265 | (zero? (system* "py.test"))))))) | |
9266 | (native-inputs | |
9267 | `(("python-pytest" ,python-pytest) | |
9268 | ("python-setuptools" ,python-setuptools))) | |
9269 | (home-page "https://github.com/andialbrecht/sqlparse") | |
9270 | (synopsis "Non-validating SQL parser") | |
9271 | (description "Sqlparse is a non-validating SQL parser for Python. It | |
9272 | provides support for parsing, splitting and formatting SQL statements.") | |
3f641af0 | 9273 | (license license:bsd-3))) |
1a024de4 HG |
9274 | |
9275 | (define-public python2-sqlparse | |
9276 | (package-with-python2 python-sqlparse)) | |
68b9d242 SB |
9277 | |
9278 | (define-public python-greenlet | |
9279 | (package | |
9280 | (name "python-greenlet") | |
9281 | (version "0.4.9") | |
9282 | (source (origin | |
9283 | (method url-fetch) | |
9284 | (uri (pypi-uri "greenlet" version)) | |
9285 | (sha256 | |
9286 | (base32 | |
9287 | "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr")))) | |
9288 | (build-system python-build-system) | |
9289 | (native-inputs | |
9290 | `(("python-setuptools" ,python-setuptools))) | |
9291 | (home-page "https://greenlet.readthedocs.io/") | |
9292 | (synopsis "Lightweight in-process concurrent programming") | |
9293 | (description | |
9294 | "Greenlet package is a spin-off of Stackless, a version of CPython | |
9295 | that supports micro-threads called \"tasklets\". Tasklets run | |
9296 | pseudo-concurrently (typically in a single or a few OS-level threads) and | |
9297 | are synchronized with data exchanges on \"channels\".") | |
3f641af0 | 9298 | (license (list license:psfl license:expat)))) |
68b9d242 SB |
9299 | |
9300 | (define-public python2-greenlet | |
9301 | (package-with-python2 python-greenlet)) | |
d79a343b SB |
9302 | |
9303 | (define-public python-gevent | |
9304 | (package | |
9305 | (name "python-gevent") | |
9306 | (version "1.1.1") | |
9307 | (source (origin | |
9308 | (method url-fetch) | |
9309 | (uri (pypi-uri "gevent" version)) | |
9310 | (sha256 | |
9311 | (base32 | |
9312 | "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf")) | |
9313 | (modules '((guix build utils))) | |
9314 | (snippet | |
9315 | '(begin | |
9316 | ;; unbunding libev and c-ares | |
9317 | (for-each delete-file-recursively '("libev" "c-ares")) | |
9318 | ;; fixing testsuite | |
9319 | (call-with-output-file "greentest/__init__.py" noop) | |
9320 | (substitute* "greentest/testrunner.py" | |
9321 | (("import util") "from . import util") | |
9322 | (("from util import log") "from .util import log")))))) | |
9323 | (build-system python-build-system) | |
9324 | (propagated-inputs | |
9325 | `(("python-greenlet" ,python-greenlet))) | |
9326 | (native-inputs | |
9327 | `(("python-setuptools" ,python-setuptools) | |
9328 | ("python-six" ,python-six))) | |
9329 | (inputs | |
9330 | `(("c-ares" ,c-ares) | |
9331 | ("libev" ,libev))) | |
9332 | (home-page "http://www.gevent.org/") | |
9333 | (synopsis "Coroutine-based network library") | |
9334 | (description | |
9335 | "gevent is a coroutine-based Python networking library that uses greenlet | |
9336 | to provide a high-level synchronous API on top of the libev event loop.") | |
9337 | (license license:expat))) | |
9338 | ||
9339 | (define-public python2-gevent | |
9340 | (package-with-python2 python-gevent)) | |
da3aeeb6 SB |
9341 | |
9342 | (define-public python-twisted | |
9343 | (package | |
9344 | (name "python-twisted") | |
9345 | (version "16.2.0") | |
9346 | (source (origin | |
9347 | (method url-fetch) | |
8ea8e8d3 | 9348 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
da3aeeb6 SB |
9349 | (sha256 |
9350 | (base32 | |
9351 | "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450")))) | |
9352 | (build-system python-build-system) | |
9353 | (native-inputs | |
45912170 SB |
9354 | `(("python-setuptools" ,python-setuptools))) |
9355 | (propagated-inputs | |
9356 | `(("python-zope-interface" ,python-zope-interface))) | |
da3aeeb6 SB |
9357 | (home-page "https://twistedmatrix.com/") |
9358 | (synopsis "Asynchronous networking framework written in Python") | |
9359 | (description | |
9360 | "Twisted is an extensible framework for Python programming, with special | |
9361 | focus on event-based network programming and multiprotocol integration.") | |
9362 | (license license:expat))) | |
9363 | ||
9364 | (define-public python2-twisted | |
9365 | (package-with-python2 python-twisted)) | |
d0b6fed6 | 9366 | |
4d3fa5a4 EF |
9367 | (define-public python-pika |
9368 | (package | |
9369 | (name "python-pika") | |
9370 | (version "0.10.0") | |
9371 | (source | |
9372 | (origin | |
9373 | (method url-fetch) | |
9374 | (uri (pypi-uri "pika" version)) | |
9375 | (sha256 | |
9376 | (base32 | |
9377 | "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) | |
9378 | (build-system python-build-system) | |
9379 | (native-inputs | |
9380 | `(("python-twisted" ,python-twisted))) | |
9381 | (home-page "https://pika.readthedocs.org") | |
9382 | (synopsis "Pure Python AMQP Client Library") | |
9383 | (description | |
9384 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing | |
9385 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying | |
9386 | network support library.") | |
9387 | (license license:bsd-3))) | |
9388 | ||
9389 | (define-public python2-pika | |
9390 | (package-with-python2 python-pika)) | |
9391 | ||
d0b6fed6 DM |
9392 | (define-public python-ply |
9393 | (package | |
9394 | (name "python-ply") | |
9395 | (version "3.8") | |
9396 | (source | |
9397 | (origin | |
9398 | (method url-fetch) | |
9399 | (uri (string-append | |
9400 | "https://pypi.python.org/packages/" | |
9401 | "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5" | |
9402 | "/ply-" version ".tar.gz")) | |
9403 | (sha256 | |
9404 | (base32 | |
9405 | "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7")))) | |
9406 | (build-system python-build-system) | |
9407 | (home-page "http://www.dabeaz.com/ply/") | |
9408 | (synopsis "Python Lex & Yacc") | |
9409 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. | |
9410 | It uses LR parsing and does extensive error checking.") | |
3f641af0 | 9411 | (license license:bsd-3) |
d0b6fed6 DM |
9412 | (properties `((python2-variant . ,(delay python2-ply)))))) |
9413 | ||
9414 | (define-public python2-ply | |
9415 | (package | |
9416 | (inherit (package-with-python2 | |
9417 | (strip-python2-variant python-ply))) | |
9418 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
d951bd54 SB |
9419 | |
9420 | (define-public python-tabulate | |
9421 | (package | |
9422 | (name "python-tabulate") | |
9423 | (version "0.7.5") | |
9424 | (source (origin | |
9425 | (method url-fetch) | |
9426 | (uri (pypi-uri "tabulate" version)) | |
9427 | (sha256 | |
9428 | (base32 | |
9429 | "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch")) | |
9430 | ;; Fix tests | |
9431 | (modules '((guix build utils))) | |
9432 | (snippet '(substitute* '("test/test_cli.py" | |
9433 | "test/test_input.py" | |
9434 | "test/test_output.py" | |
9435 | "test/test_regression.py") | |
9436 | (("from common") "from nose.tools"))))) | |
9437 | (build-system python-build-system) | |
9438 | (native-inputs | |
9439 | `(("python-setuptools" ,python-setuptools) | |
9440 | ;; For testing | |
9441 | ("python-nose" ,python-nose))) | |
9442 | (home-page "https://bitbucket.org/astanin/python-tabulate") | |
9443 | (synopsis "Pretty-print tabular data") | |
9444 | (description | |
9445 | "Tabulate is a library and command-line utility to pretty-print tabular | |
9446 | data in Python.") | |
9447 | (license license:expat))) | |
9448 | ||
9449 | (define-public python2-tabulate | |
9450 | (package-with-python2 python-tabulate)) | |
1c4c8a33 SB |
9451 | |
9452 | (define-public python-kazoo | |
9453 | (package | |
9454 | (name "python-kazoo") | |
9455 | (version "2.2.1") | |
9456 | (source | |
9457 | (origin | |
9458 | (method url-fetch) | |
9459 | (uri (pypi-uri "kazoo" version)) | |
9460 | (sha256 | |
9461 | (base32 | |
9462 | "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj")))) | |
9463 | (build-system python-build-system) | |
9464 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper | |
9465 | (native-inputs | |
c18899e8 SB |
9466 | `(("python-setuptools" ,python-setuptools))) |
9467 | (propagated-inputs | |
9468 | `(("python-six" ,python-six))) | |
1c4c8a33 SB |
9469 | (home-page "https://kazoo.readthedocs.org") |
9470 | (synopsis "High-level Zookeeper client library") | |
9471 | (description | |
9472 | "Kazoo is a Python client library for the Apache Zookeeper distributed | |
9473 | application service. It is designed to be easy to use and to avoid common | |
9474 | programming errors.") | |
3f641af0 | 9475 | (license license:asl2.0))) |
1c4c8a33 SB |
9476 | |
9477 | (define-public python2-kazoo | |
9478 | (package-with-python2 python-kazoo)) | |
45dda35e SB |
9479 | |
9480 | (define-public python-pykafka | |
9481 | (package | |
9482 | (name "python-pykafka") | |
9483 | (version "2.4.0") | |
9484 | (source (origin | |
9485 | (method url-fetch) | |
c6bccf71 EF |
9486 | (uri (string-append |
9487 | "https://pypi.python.org/packages/8b/3e/" | |
9488 | "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/" | |
9489 | "pykafka-" version ".tar.gz")) | |
45dda35e SB |
9490 | (sha256 |
9491 | (base32 | |
9492 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) | |
9493 | (build-system python-build-system) | |
9494 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. | |
9495 | (native-inputs | |
c8fa3d9b SB |
9496 | `(("python-setuptools" ,python-setuptools))) |
9497 | (propagated-inputs | |
45dda35e SB |
9498 | `(("python-gevent" ,python-gevent) |
9499 | ("python-kazoo" ,python-kazoo) | |
45dda35e SB |
9500 | ("python-tabulate" ,python-tabulate))) |
9501 | (inputs | |
9502 | `(("librdkafka" ,librdkafka))) | |
9503 | (home-page "https://pykafka.readthedocs.io/") | |
9504 | (synopsis "Apache Kafka client for Python") | |
9505 | (description | |
9506 | "PyKafka is a client for the Apache Kafka distributed messaging system. | |
9507 | It includes Python implementations of Kafka producers and consumers, which | |
9508 | are optionally backed by a C extension built on librdkafka.") | |
3f641af0 | 9509 | (license license:asl2.0))) |
45dda35e SB |
9510 | |
9511 | (define-public python2-pykafka | |
9512 | (package-with-python2 python-pykafka)) | |
a44fd439 DM |
9513 | |
9514 | (define-public python-wcwidth | |
9515 | (package | |
9516 | (name "python-wcwidth") | |
9517 | (version "0.1.6") | |
9518 | (source | |
9519 | (origin | |
9520 | (method url-fetch) | |
9521 | (uri (string-append | |
9522 | "https://pypi.python.org/packages/" | |
9523 | "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/" | |
9524 | "wcwidth-" version ".tar.gz")) | |
9525 | (sha256 | |
9526 | (base32 | |
9527 | "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw")))) | |
9528 | (build-system python-build-system) | |
9529 | (home-page "https://github.com/jquast/wcwidth") | |
66e07664 | 9530 | (synopsis "Measure number of terminal column cells of wide-character codes") |
a44fd439 DM |
9531 | (description "Wcwidth measures the number of terminal column cells of |
9532 | wide-character codes. It is useful for those implementing a terminal emulator, | |
9533 | or programs that carefully produce output to be interpreted by one. It is a | |
9534 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions | |
9535 | specified in POSIX.1-2001 and POSIX.1-2008.") | |
e4875826 LF |
9536 | (license license:expat) |
9537 | (properties `((python2-variant . ,(delay python2-wcwidth)))))) | |
a44fd439 DM |
9538 | |
9539 | (define-public python2-wcwidth | |
9540 | (package | |
9541 | (inherit (package-with-python2 | |
9542 | (strip-python2-variant python-wcwidth))) | |
9543 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
0de78c95 DP |
9544 | |
9545 | (define-public python2-jsonrpclib | |
9546 | (package | |
9547 | (name "python2-jsonrpclib") | |
9548 | (version "0.1.7") | |
9549 | (source (origin | |
9550 | (method url-fetch) | |
9551 | (uri (string-append | |
9552 | "https://pypi.python.org/packages/source/j/jsonrpclib/" | |
9553 | "jsonrpclib-" version ".tar.gz")) | |
9554 | (sha256 | |
9555 | (base32 | |
9556 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) | |
9557 | (build-system python-build-system) | |
9558 | (native-inputs | |
9559 | `(("python2-setuptools" ,python2-setuptools))) | |
9560 | (arguments | |
9561 | `(#:tests? #f | |
9562 | #:python ,python-2)) | |
9563 | (home-page "https://github.com/joshmarshall/jsonrpclib/") | |
9564 | (synopsis "Implementation of JSON-RPC specification for Python") | |
9565 | (description | |
9566 | "This library is an implementation of the JSON-RPC specification. | |
9567 | It supports both the original 1.0 specification, as well as the | |
9568 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, | |
9569 | etc.") | |
3f641af0 | 9570 | (license license:asl2.0))) |
9250b0f3 SB |
9571 | |
9572 | (define-public python-chai | |
9573 | (package | |
9574 | (name "python-chai") | |
9575 | (version "1.1.1") | |
9576 | (source (origin | |
9577 | (method url-fetch) | |
9578 | (uri (pypi-uri "chai" version)) | |
9579 | (sha256 | |
9580 | (base32 | |
9581 | "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) | |
9582 | (build-system python-build-system) | |
9583 | (native-inputs | |
9584 | `(("python-setuptools" ,python-setuptools))) | |
9585 | (home-page "https://github.com/agoragames/chai") | |
9586 | (synopsis "Mocking framework for Python") | |
9587 | (description | |
9588 | "Chai provides an api for mocking, stubbing and spying your python | |
9589 | objects, patterned after the Mocha library for Ruby.") | |
3f641af0 | 9590 | (license license:bsd-3))) |
9250b0f3 SB |
9591 | |
9592 | (define-public python2-chai | |
9593 | (package-with-python2 python-chai)) | |
9594 | ||
ae43baa8 SB |
9595 | (define-public python-arrow |
9596 | (package | |
9597 | (name "python-arrow") | |
9598 | (version "0.8.0") | |
9599 | (source (origin | |
9600 | (method url-fetch) | |
9601 | (uri (pypi-uri "arrow" version)) | |
9602 | (sha256 | |
9603 | (base32 | |
9604 | "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j")))) | |
9605 | (build-system python-build-system) | |
9606 | (native-inputs | |
9607 | `(("python-setuptools" ,python-setuptools) | |
ae43baa8 SB |
9608 | ;; For testing |
9609 | ("python-chai" ,python-chai) | |
9610 | ("python-simplejson" ,python-simplejson))) | |
36aed736 SB |
9611 | (propagated-inputs |
9612 | `(("python-dateutil" ,python-dateutil-2))) | |
ae43baa8 SB |
9613 | (home-page "https://github.com/crsmithdev/arrow/") |
9614 | (synopsis "Dates and times for Python") | |
9615 | (description | |
9616 | "Arrow is a Python library to creating, manipulating, formatting and | |
9617 | converting dates, times, and timestamps. It implements and updates the | |
9618 | datetime type.") | |
3f641af0 | 9619 | (license license:asl2.0))) |
ae43baa8 SB |
9620 | |
9621 | (define-public python2-arrow | |
9622 | (package-with-python2 python-arrow)) | |
9623 | ||
1f2b62a4 SB |
9624 | (define-public python-inflection |
9625 | (package | |
9626 | (name "python-inflection") | |
9627 | (version "0.3.1") | |
9628 | (source | |
9629 | (origin (method url-fetch) | |
9630 | (uri (pypi-uri "inflection" version)) | |
9631 | (sha256 | |
9632 | (base32 | |
9633 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) | |
9634 | (build-system python-build-system) | |
9635 | (native-inputs | |
9636 | `(("python-setuptools" ,python-setuptools))) | |
9637 | (home-page "http://github.com/jpvanhal/inflection") | |
9638 | (synopsis "Python string transformation library") | |
9639 | (description | |
9640 | "Inflection is a string transformation library. It singularizes | |
9641 | and pluralizes English words, and transforms strings from CamelCase to | |
9642 | underscored string.") | |
9643 | (license license:expat))) | |
9644 | ||
9645 | (define-public python2-inflection | |
9646 | (package-with-python2 python-inflection)) | |
9647 | ||
18995566 SB |
9648 | (define-public python-pylev |
9649 | (package | |
9650 | (name "python-pylev") | |
9651 | (version "1.3.0") | |
9652 | (source (origin | |
9653 | (method url-fetch) | |
9654 | (uri (pypi-uri "pylev" version)) | |
9655 | (sha256 | |
9656 | (base32 | |
9657 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) | |
9658 | (build-system python-build-system) | |
9659 | (native-inputs | |
9660 | `(("python-setuptools" ,python-setuptools))) | |
9661 | (home-page "http://github.com/toastdriven/pylev") | |
9662 | (synopsis "Levenshtein distance implementation in Python") | |
9663 | (description "Pure Python Levenshtein implementation, based off the | |
9664 | Wikipedia code samples at | |
9665 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") | |
3f641af0 | 9666 | (license license:bsd-3))) |
18995566 SB |
9667 | |
9668 | (define-public python2-pylev | |
9669 | (package-with-python2 python-pylev)) | |
9670 | ||
f5deff7a SB |
9671 | (define-public python-cleo |
9672 | (package | |
9673 | (name "python-cleo") | |
9674 | (version "0.4.1") | |
9675 | (source (origin | |
9676 | (method url-fetch) | |
9677 | (uri (pypi-uri "cleo" version)) | |
9678 | (sha256 | |
9679 | (base32 | |
9680 | "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva")))) | |
9681 | (build-system python-build-system) | |
9682 | (native-inputs | |
9403150a | 9683 | `(("python-setuptools" ,python-setuptools) |
f5deff7a SB |
9684 | ;; For testing |
9685 | ("python-mock" ,python-mock) | |
9686 | ("python-pytest" ,python-pytest))) | |
9403150a SB |
9687 | (propagated-inputs |
9688 | `(("python-psutil" ,python-psutil) | |
9689 | ("python-pylev" ,python-pylev))) | |
f5deff7a SB |
9690 | (home-page "https://github.com/sdispater/cleo") |
9691 | (synopsis "Command-line arguments library for Python") | |
9692 | (description | |
9693 | "Cleo allows you to create command-line commands with signature in | |
9694 | docstring and colored output.") | |
9695 | (license license:expat))) | |
9696 | ||
9697 | (define-public python2-cleo | |
9698 | (package-with-python2 python-cleo)) | |
9699 | ||
77cadb43 SB |
9700 | (define-public python-lazy-object-proxy |
9701 | (package | |
9702 | (name "python-lazy-object-proxy") | |
9703 | (version "1.2.2") | |
9704 | (source (origin | |
9705 | (method url-fetch) | |
9706 | (uri (pypi-uri "lazy-object-proxy" version)) | |
9707 | (sha256 | |
9708 | (base32 | |
9709 | "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) | |
9710 | (build-system python-build-system) | |
9711 | (native-inputs | |
9712 | `(("python-setuptools" ,python-setuptools))) | |
9713 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") | |
9714 | (synopsis "Lazy object proxy for python") | |
9715 | (description | |
9716 | "Lazy object proxy is an object that wraps a callable but defers the call | |
9717 | until the object is actually required, and caches the result of said call.") | |
3f641af0 | 9718 | (license license:bsd-2))) |
77cadb43 SB |
9719 | |
9720 | (define-public python2-lazy-object-proxy | |
9721 | (package-with-python2 python-lazy-object-proxy)) | |
9722 | ||
5477e05f SB |
9723 | (define-public python-dnspython |
9724 | (package | |
9725 | (name "python-dnspython") | |
9726 | (version "1.14.0") | |
9727 | (source (origin | |
9728 | (method url-fetch) | |
9729 | (uri (string-append "http://www.dnspython.org/kits/" | |
9730 | version "/dnspython-" version ".tar.gz")) | |
9731 | (sha256 | |
9732 | (base32 | |
9733 | "1z472r63gdqsxhsxj3plr5vs478yf4303vrqxxpsccc940g441hl")))) | |
9734 | (build-system python-build-system) | |
9735 | (arguments '(#:tests? #f)) ; XXX: requires internet access | |
9736 | (native-inputs | |
9737 | `(("python-setuptools" ,python-setuptools))) | |
9738 | (home-page "http://www.dnspython.org") | |
9739 | (synopsis "DNS toolkit for Python") | |
9740 | (description | |
9741 | "dnspython is a DNS toolkit for Python. It supports almost all record | |
9742 | types. It can be used for queries, zone transfers, and dynamic updates. | |
9743 | It supports TSIG authenticated messages and EDNS0.") | |
9744 | (license license:expat))) | |
9745 | ||
9746 | (define-public python2-dnspython | |
9747 | (package-with-python2 python-dnspython)) | |
9748 | ||
22711e25 SB |
9749 | (define-public python-email-validator |
9750 | (package | |
9751 | (name "python-email-validator") | |
9752 | (version "1.0.1") | |
9753 | (source | |
9754 | (origin (method url-fetch) | |
9755 | (uri (pypi-uri "email_validator" version)) | |
9756 | (sha256 | |
9757 | (base32 | |
9758 | "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw")))) | |
9759 | (build-system python-build-system) | |
9760 | (arguments | |
9761 | '(#:phases | |
9762 | (modify-phases %standard-phases | |
9763 | (add-before 'build 'use-dnspython | |
9764 | (lambda _ | |
9765 | (substitute* "setup.py" | |
9766 | (("dnspython3") "dnspython")) | |
9767 | #t))))) | |
9768 | (native-inputs | |
d42560bd SB |
9769 | `(("python-setuptools" ,python-setuptools))) |
9770 | (propagated-inputs | |
22711e25 | 9771 | `(("python-dnspython" ,python-dnspython) |
d42560bd | 9772 | ("python-idna" ,python-idna))) |
22711e25 SB |
9773 | (home-page "https://github.com/JoshData/python-email-validator") |
9774 | (synopsis "Email address validation library for Python") | |
9775 | (description | |
9776 | "This library validates email address syntax and deliverability.") | |
3f641af0 | 9777 | (license license:cc0))) |
22711e25 SB |
9778 | |
9779 | (define-public python2-email-validator | |
9780 | (package-with-python2 python-email-validator)) | |
9781 | ||
8987d91e SB |
9782 | (define-public python-ukpostcodeparser |
9783 | (package | |
9784 | (name "python-ukpostcodeparser") | |
9785 | (version "1.0.3") | |
9786 | (source (origin | |
9787 | (method url-fetch) | |
9788 | (uri (pypi-uri "UkPostcodeParser" version)) | |
9789 | (sha256 | |
9790 | (base32 | |
9791 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) | |
9792 | (build-system python-build-system) | |
9793 | (native-inputs | |
9794 | `(("python-setuptools" ,python-setuptools))) | |
9795 | (home-page "https://github.com/hamstah/ukpostcodeparser") | |
9796 | (synopsis "UK Postcode parser for Python") | |
9797 | (description | |
9798 | "This library provides the @code{parse_uk_postcode} function for | |
9799 | parsing UK postcodes.") | |
9800 | (license license:expat))) | |
9801 | ||
9802 | (define-public python2-ukpostcodeparser | |
9803 | (package-with-python2 python-ukpostcodeparser)) | |
ea92ae01 SB |
9804 | |
9805 | (define-public python-fake-factory | |
9806 | (package | |
9807 | (name "python-fake-factory") | |
9808 | (version "0.5.7") | |
9809 | (source (origin | |
9810 | (method url-fetch) | |
9811 | (uri (pypi-uri "fake-factory" version)) | |
9812 | (sha256 | |
9813 | (base32 | |
9814 | "1chmarnrdzn4r017n8qlic0m0bbnhw04s3hkwribjvm3mqpb6pa0")))) | |
9815 | (build-system python-build-system) | |
9816 | (arguments | |
9817 | '(#:phases | |
9818 | (modify-phases %standard-phases | |
9819 | (add-before 'check 'disable-failing-test | |
9820 | ;; XXX: faker/tests/ne_np/__init__.py, line 40, in test_names | |
9821 | ;; first_name, last_name = name.split() | |
9822 | ;; ValueError: too many values to unpack (expected 2) | |
9823 | (lambda _ | |
9824 | (delete-file "faker/tests/ne_np/__init__.py") | |
9825 | #t))))) | |
9826 | (native-inputs | |
bbcd7297 | 9827 | `(("python-setuptools" ,python-setuptools) |
ea92ae01 SB |
9828 | ;; For testing |
9829 | ("python-email-validator" ,python-email-validator) | |
9830 | ("python-mock" ,python-mock) | |
9831 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) | |
bbcd7297 SB |
9832 | (propagated-inputs |
9833 | `(("python-dateutil" ,python-dateutil-2) | |
9834 | ("python-six" ,python-six))) | |
ea92ae01 SB |
9835 | (home-page "http://github.com/joke2k/faker") |
9836 | (synopsis "Python package that generates fake data") | |
9837 | (description | |
9838 | "Faker is a Python package that generates fake data such as names, | |
9839 | addresses, and phone numbers.") | |
9840 | (license license:expat) | |
9841 | (properties `((python2-variant . ,(delay python2-fake-factory)))))) | |
9842 | ||
9843 | (define-public python2-fake-factory | |
9844 | (let ((base (package-with-python2 (strip-python2-variant | |
9845 | python-fake-factory)))) | |
9846 | (package | |
9847 | (inherit base) | |
24c9aa18 | 9848 | (propagated-inputs |
ea92ae01 | 9849 | `(("python2-ipaddress" ,python2-ipaddress) |
24c9aa18 | 9850 | ,@(package-propagated-inputs base)))))) |
ea92ae01 | 9851 | |
b49504fd SB |
9852 | (define-public python-pyaml |
9853 | (package | |
9854 | (name "python-pyaml") | |
9855 | (version "15.8.2") | |
9856 | (source (origin | |
9857 | (method url-fetch) | |
9858 | (uri (pypi-uri "pyaml" version)) | |
9859 | (sha256 | |
9860 | (base32 | |
9861 | "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w")))) | |
9862 | (build-system python-build-system) | |
9863 | (native-inputs | |
9864 | `(("python-setuptools" ,python-setuptools))) | |
9865 | (propagated-inputs | |
9866 | `(("python-pyyaml" ,python-pyyaml))) | |
9867 | (home-page "https://github.com/mk-fg/pretty-yaml") | |
9868 | (synopsis "YAML pretty-print library for Python") | |
9869 | (description | |
9870 | "pyaml is a PyYAML based python module to produce pretty and readable | |
9871 | YAML-serialized data.") | |
3f641af0 | 9872 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))) |
b49504fd SB |
9873 | |
9874 | (define-public python2-pyaml | |
9875 | (package-with-python2 python-pyaml)) | |
9876 | ||
347175a2 SB |
9877 | (define-public python-flexmock |
9878 | (package | |
9879 | (name "python-flexmock") | |
9880 | (version "0.10.2") | |
9881 | (source (origin | |
9882 | (method url-fetch) | |
9883 | (uri (pypi-uri "flexmock" version)) | |
9884 | (sha256 | |
9885 | (base32 | |
9886 | "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy")))) | |
9887 | (build-system python-build-system) | |
9888 | (native-inputs | |
9889 | `(("python-setuptools" ,python-setuptools))) | |
9890 | (home-page "https://flexmock.readthedocs.org") | |
9891 | (synopsis "Testing library for Python") | |
9892 | (description | |
9893 | "flexmock is a testing library for Python that makes it easy to create | |
9894 | mocks, stubs and fakes.") | |
3f641af0 | 9895 | (license license:bsd-3))) |
347175a2 SB |
9896 | |
9897 | (define-public python2-flexmock | |
9898 | (package-with-python2 python-flexmock)) | |
9899 | ||
5a744191 SB |
9900 | (define-public python-orator |
9901 | (package | |
9902 | (name "python-orator") | |
9903 | (version "0.8.2") | |
9904 | (source (origin | |
9905 | (method url-fetch) | |
9906 | (uri (pypi-uri "orator" version)) | |
9907 | (sha256 | |
9908 | (base32 | |
9909 | "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) | |
9910 | (build-system python-build-system) | |
9911 | (arguments '(#:tests? #f)) ; no tests | |
9912 | (native-inputs | |
b2676030 SB |
9913 | `(("python-setuptools" ,python-setuptools))) |
9914 | (propagated-inputs | |
5a744191 SB |
9915 | `(("python-arrow" ,python-arrow) |
9916 | ("python-blinker" ,python-blinker) | |
9917 | ("python-cleo" ,python-cleo) | |
9918 | ("python-fake-factory" ,python-fake-factory) | |
9919 | ("python-inflection" ,python-inflection) | |
9920 | ("python-lazy-object-proxy" ,python-lazy-object-proxy) | |
9921 | ("python-pyaml" ,python-pyaml) | |
5a744191 SB |
9922 | ("python-simplejson" ,python-simplejson) |
9923 | ("python-wrapt" ,python-wrapt))) | |
9924 | (home-page "https://orator-orm.com/") | |
9925 | (synopsis "ActiveRecord ORM for Python") | |
9926 | (description | |
9927 | "Orator provides a simple ActiveRecord-like Object Relational Mapping | |
9928 | implementation for Python.") | |
9929 | (license license:expat) | |
9930 | (properties `((python2-variant . ,(delay python2-orator)))))) | |
9931 | ||
9932 | (define-public python2-orator | |
9933 | (let ((base (package-with-python2 (strip-python2-variant python-orator)))) | |
9934 | (package | |
9935 | (inherit base) | |
06961617 | 9936 | (propagated-inputs |
5a744191 | 9937 | `(("python2-ipaddress" ,python2-ipaddress) |
06961617 | 9938 | ,@(package-propagated-inputs base)))))) |
f4155188 DM |
9939 | |
9940 | (define-public python-prompt-toolkit | |
9941 | (package | |
9942 | (name "python-prompt-toolkit") | |
d15e2ef0 | 9943 | (version "1.0.7") |
f4155188 DM |
9944 | (source |
9945 | (origin | |
9946 | (method url-fetch) | |
d15e2ef0 | 9947 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
f4155188 DM |
9948 | (sha256 |
9949 | (base32 | |
d15e2ef0 | 9950 | "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg")))) |
f4155188 DM |
9951 | (build-system python-build-system) |
9952 | (inputs `(("python-wcwidth" ,python-wcwidth) | |
9953 | ("python-pygments" ,python-pygments))) | |
9954 | (native-inputs `(("python-six" ,python-six))) | |
9955 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") | |
9956 | (synopsis "Library for building command line interfaces in Python") | |
9957 | (description | |
9958 | "Prompt-Toolkit is a library for building interactive command line | |
9959 | interfaces in Python. It's like GNU Readline but it also features syntax | |
9960 | highlighting while typing, out-of-the-box multi-line input editing, advanced | |
9961 | code completion, incremental search, support for Chinese double-width | |
9962 | characters, mouse support, and auto suggestions.") | |
3f641af0 | 9963 | (license license:bsd-3) |
f4155188 DM |
9964 | (properties `((python2-variant . ,(delay python2-prompt-toolkit)))))) |
9965 | ||
9966 | (define-public python2-prompt-toolkit | |
9967 | (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit)))) | |
9968 | (package | |
9969 | (inherit base) | |
9970 | (native-inputs | |
9971 | `(("python2-setuptools" ,python2-setuptools) | |
9972 | ,@(package-native-inputs base)))))) | |
a502dfbf DM |
9973 | |
9974 | (define-public python-jedi | |
9975 | (package | |
9976 | (name "python-jedi") | |
9977 | (version "0.9.0") | |
9978 | (source | |
9979 | (origin | |
9980 | (method url-fetch) | |
9981 | (uri (pypi-uri "jedi" version)) | |
9982 | (sha256 | |
9983 | (base32 | |
9984 | "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) | |
9985 | (build-system python-build-system) | |
9986 | (home-page "https://github.com/davidhalter/jedi") | |
9987 | (synopsis | |
9988 | "Autocompletion for Python that can be used for text editors") | |
9989 | (description | |
9990 | "Jedi is an autocompletion tool for Python that can be used for text editors.") | |
9991 | (license license:expat) | |
9992 | (properties `((python2-variant . ,(delay python2-jedi)))))) | |
9993 | ||
9994 | (define-public python2-jedi | |
9995 | (let ((base (package-with-python2 (strip-python2-variant python-jedi)))) | |
9996 | (package | |
9997 | (inherit base) | |
9998 | (native-inputs | |
9999 | `(("python2-setuptools" ,python2-setuptools) | |
10000 | ,@(package-native-inputs base)))))) | |
c2f0dc6e DM |
10001 | |
10002 | (define-public ptpython | |
10003 | (package | |
10004 | (name "ptpython") | |
10005 | (version "0.34") | |
10006 | (source (origin | |
10007 | (method url-fetch) | |
10008 | (uri (pypi-uri "ptpython" version)) | |
10009 | (sha256 | |
10010 | (base32 | |
10011 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) | |
10012 | (build-system python-build-system) | |
10013 | (inputs | |
10014 | `(("python-docopt" ,python-docopt) | |
10015 | ("python-jedi" ,python-jedi) | |
10016 | ("python-prompt-toolkit" ,python-prompt-toolkit) | |
10017 | ("python-pygments" ,python-pygments) | |
10018 | ("python-setuptools" ,python-setuptools))) | |
10019 | (home-page "https://github.com/jonathanslenders/ptpython") | |
10020 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") | |
10021 | (description | |
10022 | "ptpython is a Python read-eval-print loop with IDE-like features. | |
10023 | It supports syntax highlighting, multiline editing, autocompletion, mouse, | |
10024 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters | |
10025 | etc.") | |
3f641af0 | 10026 | (license license:bsd-3) |
c2f0dc6e DM |
10027 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
10028 | ||
10029 | (define-public ptpython-2 | |
10030 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) | |
10031 | (package | |
10032 | (inherit base) | |
10033 | (name "ptpython2")))) | |
b227f0be | 10034 | |
10035 | (define-public python-stem | |
10036 | (package | |
10037 | (name "python-stem") | |
10038 | (version "1.4.1b") | |
10039 | (source | |
10040 | (origin | |
10041 | (method url-fetch) | |
10042 | (uri (pypi-uri "stem" version ".tar.bz2")) | |
10043 | (sha256 | |
10044 | (base32 | |
10045 | "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7")))) | |
10046 | (build-system python-build-system) | |
10047 | (arguments | |
10048 | `(#:phases | |
10049 | (modify-phases %standard-phases | |
10050 | (replace 'check | |
10051 | (lambda _ | |
10052 | (zero? (system* "./run_tests.py" "--unit"))))))) | |
10053 | (native-inputs | |
10054 | `(("python-mock" ,python-mock) | |
10055 | ("python-pep8" ,python-pep8) | |
10056 | ("python-pyflakes" ,python-pyflakes))) | |
10057 | (inputs | |
10058 | `(("python-pycrypto" ,python-pycrypto))) | |
10059 | (home-page "https://stem.torproject.org/") | |
10060 | (synopsis | |
10061 | "Python controller library that allows applications to interact with Tor") | |
10062 | (description | |
10063 | "Stem is a Python controller library for Tor. With it you can use Tor's | |
10064 | control protocol to script against the Tor process and read descriptor data | |
10065 | relays publish about themselves.") | |
3f641af0 | 10066 | (license license:lgpl3))) |
b227f0be | 10067 | |
10068 | (define-public python2-stem | |
10069 | (package-with-python2 python-stem)) | |
517a6c0c DM |
10070 | |
10071 | (define-public python-pyserial | |
10072 | (package | |
10073 | (name "python-pyserial") | |
10074 | (version "3.1.1") | |
10075 | (source | |
10076 | (origin | |
10077 | (method url-fetch) | |
10078 | (uri (pypi-uri "pyserial" version)) | |
10079 | (sha256 | |
10080 | (base32 | |
10081 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) | |
10082 | (build-system python-build-system) | |
10083 | (home-page | |
10084 | "https://github.com/pyserial/pyserial") | |
10085 | (synopsis "Python Serial Port Bindings") | |
10086 | (description "@code{pyserial} provide serial port bindings for Python. It | |
10087 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS | |
10088 | and/or Xon/Xoff. The port is accessed in RAW mode.") | |
3f641af0 | 10089 | (license license:bsd-3) |
517a6c0c DM |
10090 | (properties `((python2-variant . ,(delay python2-pyserial)))))) |
10091 | ||
10092 | (define-public python2-pyserial | |
10093 | (let ((base (package-with-python2 (strip-python2-variant python-pyserial)))) | |
10094 | (package | |
10095 | (inherit base) | |
10096 | (native-inputs | |
10097 | `(("python2-setuptools" ,python2-setuptools) | |
10098 | ,@(package-native-inputs base)))))) | |
6eb7af2a DJ |
10099 | |
10100 | (define-public python-kivy | |
10101 | (package | |
10102 | (name "python-kivy") | |
10103 | (version "1.9.1") | |
10104 | (source | |
10105 | (origin | |
10106 | (method url-fetch) | |
10107 | (uri (pypi-uri "kivy" version)) | |
10108 | (file-name (string-append name "-" version ".tar.gz")) | |
10109 | (sha256 | |
10110 | (base32 | |
10111 | "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19")))) | |
10112 | (build-system python-build-system) | |
10113 | (arguments | |
10114 | `(#:tests? #f ; Tests require many optional packages | |
10115 | #:phases | |
10116 | (modify-phases %standard-phases | |
10117 | (replace 'build (lambda _ (zero? (system* "make" "force")))) | |
10118 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths | |
10119 | (lambda* (#:key inputs #:allow-other-keys) | |
10120 | (setenv "KIVY_SDL2_PATH" | |
10121 | (string-append (assoc-ref inputs "sdl-union") | |
10122 | "/include/SDL2")) | |
10123 | #t))))) | |
10124 | (native-inputs | |
10125 | `(("pkg-config" ,pkg-config))) | |
10126 | (inputs | |
10127 | `(("python-cython" ,python-cython) | |
10128 | ("gstreamer" ,gstreamer) | |
10129 | ("mesa" ,mesa) | |
10130 | ("sdl-union" | |
10131 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) | |
10132 | (home-page "http://kivy.org") | |
10133 | (synopsis | |
10134 | "Multitouch application framework") | |
10135 | (description | |
10136 | "A software library for rapid development of | |
10137 | hardware-accelerated multitouch applications.") | |
10138 | (license license:expat))) | |
10139 | ||
10140 | (define-public python2-kivy | |
10141 | (package-with-python2 python-kivy)) | |
10142 | ||
10143 | (define-public python-kivy-next | |
10144 | (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe") | |
10145 | (revision "1")) | |
10146 | (package (inherit python-kivy) | |
10147 | (name "python-kivy-next") | |
d80a71eb | 10148 | (version (string-append "1.9.1-" revision "." |
6eb7af2a DJ |
10149 | (string-take commit 7))) |
10150 | (source | |
10151 | (origin | |
10152 | (method git-fetch) | |
10153 | (uri (git-reference | |
10154 | (url "https://github.com/kivy/kivy") | |
10155 | (commit commit))) | |
10156 | (file-name (string-append name "-" version "-checkout")) | |
10157 | (sha256 | |
10158 | (base32 | |
10159 | "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p"))))))) | |
10160 | ||
10161 | (define-public python2-kivy-next | |
10162 | (package-with-python2 python-kivy-next)) | |
8794bd8b DC |
10163 | |
10164 | (define-public python-binaryornot | |
10165 | (package | |
10166 | (name "python-binaryornot") | |
10167 | (version "0.4.0") | |
10168 | (source (origin | |
10169 | (method url-fetch) | |
10170 | (uri (pypi-uri "binaryornot" version)) | |
10171 | (sha256 | |
10172 | (base32 | |
10173 | "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) | |
10174 | (build-system python-build-system) | |
10175 | (inputs | |
10176 | `(("python-chardet" ,python-chardet) | |
10177 | ("python-hypothesis" ,python-hypothesis))) | |
10178 | (home-page "https://github.com/audreyr/binaryornot") | |
10179 | (synopsis "Package to check if a file is binary or text") | |
10180 | (description "Ultra-lightweight pure Python package to check if a file is | |
10181 | binary or text.") | |
10182 | (license license:bsd-3) | |
10183 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) | |
10184 | ||
10185 | (define-public python2-binaryornot | |
10186 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) | |
10187 | (package (inherit base) | |
10188 | (native-inputs | |
10189 | `(("python2-setuptools" ,python2-setuptools) | |
10190 | ,@(package-native-inputs base))) | |
10191 | (inputs | |
10192 | `(("python2-enum34" ,python2-enum34) | |
10193 | ,@(package-inputs base)))))) | |
a9ac982a DC |
10194 | |
10195 | (define-public python-nltk | |
10196 | (package | |
10197 | (name "python-nltk") | |
10198 | (version "3.2.1") | |
10199 | (source (origin | |
10200 | (method url-fetch) | |
10201 | (uri (pypi-uri "nltk" version)) | |
10202 | (sha256 | |
10203 | (base32 | |
10204 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) | |
10205 | (build-system python-build-system) | |
10206 | (home-page "http://nltk.org/") | |
10207 | (synopsis "Natural Language Toolkit") | |
10208 | (description "It provides interfaces to over 50 corpora and lexical | |
10209 | resources such as WordNet, along with a suite of text processing libraries | |
10210 | for classification, tokenization, stemming, tagging, parsing, and semantic | |
10211 | reasoning, wrappers for natural language processing libraries.") | |
10212 | (license license:asl2.0) | |
10213 | (properties `((python2-variant . ,(delay python2-nltk)))))) | |
10214 | ||
10215 | (define-public python2-nltk | |
10216 | (let ((base (package-with-python2 (strip-python2-variant python-nltk)))) | |
10217 | (package (inherit base) | |
10218 | (native-inputs | |
10219 | `(("python2-setuptools" ,python2-setuptools) | |
10220 | ,@(package-native-inputs base)))))) | |
691cd90d DC |
10221 | |
10222 | (define-public python-pymongo | |
10223 | (package | |
10224 | (name "python-pymongo") | |
10225 | (version "3.3.0") | |
10226 | (source (origin | |
10227 | (method url-fetch) | |
10228 | (uri (pypi-uri "pymongo" version)) | |
10229 | (sha256 | |
10230 | (base32 | |
10231 | "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) | |
10232 | (build-system python-build-system) | |
10233 | (inputs | |
10234 | `(("python-certifi" ,python-certifi))) | |
10235 | (home-page "http://github.com/mongodb/mongo-python-driver") | |
10236 | (synopsis "Python driver for MongoDB") | |
10237 | (description "Python driver for MongoDB.") | |
10238 | (license license:asl2.0) | |
10239 | (properties `((python2-variant . ,(delay python2-pymongo)))))) | |
10240 | ||
10241 | (define-public python2-pymongo | |
10242 | (let ((base (package-with-python2 (strip-python2-variant python-pymongo)))) | |
10243 | (package (inherit base) | |
10244 | (native-inputs | |
10245 | `(("python2-setuptools" ,python2-setuptools) | |
10246 | ,@(package-native-inputs base)))))) | |
6a6c9d43 DC |
10247 | |
10248 | (define-public python-sh | |
10249 | (package | |
10250 | (name "python-sh") | |
10251 | (version "1.11") | |
10252 | (source (origin | |
10253 | (method url-fetch) | |
10254 | (uri (pypi-uri "sh" version)) | |
10255 | (sha256 | |
10256 | (base32 | |
10257 | "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) | |
10258 | (build-system python-build-system) | |
10259 | (arguments | |
10260 | `(#:tests? #f)) ; no tests | |
10261 | (home-page "https://github.com/amoffat/sh") | |
10262 | (synopsis "Python subprocess interface") | |
10263 | (description "Abstracts process invocation by providing a function | |
10264 | interface for programs.") | |
10265 | (license license:expat) | |
10266 | (properties `((python2-variant . ,(delay python2-sh)))))) | |
10267 | ||
10268 | (define-public python2-sh | |
10269 | (let ((base (package-with-python2 (strip-python2-variant python-sh)))) | |
10270 | (package (inherit base) | |
10271 | (native-inputs | |
10272 | `(("python2-setuptools" ,python2-setuptools) | |
10273 | ,@(package-native-inputs base)))))) | |
05b59190 | 10274 | |
25702397 EF |
10275 | (define-public python-consul |
10276 | (package | |
10277 | (name "python-consul") | |
10278 | (version "0.6.1") | |
10279 | (source | |
10280 | (origin | |
10281 | (method url-fetch) | |
10282 | (uri (pypi-uri "python-consul" version)) | |
10283 | (sha256 | |
10284 | (base32 | |
10285 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) | |
10286 | (build-system python-build-system) | |
10287 | (native-inputs | |
10288 | `(("python-pytest" ,python-pytest) | |
10289 | ("python-requests" ,python-requests) | |
10290 | ("python-six" ,python-six))) | |
10291 | (home-page "https://github.com/cablehead/python-consul") | |
10292 | (synopsis "Python client for Consul") | |
10293 | (description | |
10294 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service | |
10295 | discovery, monitoring and configuration.") | |
10296 | (license license:expat))) | |
10297 | ||
10298 | (define-public python2-consul | |
10299 | (let ((consul (package-with-python2 python-consul))) | |
10300 | (package (inherit consul) | |
10301 | (native-inputs | |
10302 | `(("python2-setuptools" ,python2-setuptools) | |
10303 | ,@(package-native-inputs consul)))))) | |
10304 | ||
05b59190 DC |
10305 | (define-public python-schematics |
10306 | (package | |
10307 | (name "python-schematics") | |
10308 | (version "1.1.1") | |
10309 | (source | |
10310 | (origin | |
10311 | (method url-fetch) | |
10312 | (uri (string-append | |
10313 | "https://github.com/schematics/schematics/archive/v" version ".tar.gz")) | |
10314 | (file-name (string-append name "-" version ".tar.gz")) | |
10315 | (sha256 | |
10316 | (base32 | |
10317 | "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l")))) | |
10318 | (build-system python-build-system) | |
10319 | (inputs | |
10320 | `(("python-six" ,python-six))) | |
10321 | (arguments | |
10322 | `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed | |
10323 | ; version requirements (eg python-coveralls) | |
10324 | (home-page "https://github.com/schematics/schematics") | |
10325 | (synopsis "Python Data Structures for Humans") | |
10326 | (description "Python Data Structures for Humans.") | |
10327 | (license license:bsd-3) | |
10328 | (properties `((python2-variant . ,(delay python2-schematics)))))) | |
10329 | ||
10330 | (define-public python2-schematics | |
10331 | (let ((base (package-with-python2 (strip-python2-variant python-schematics)))) | |
10332 | (package (inherit base) | |
10333 | (native-inputs | |
10334 | `(("python2-setuptools" ,python2-setuptools) | |
10335 | ,@(package-native-inputs base)))))) | |
d6907ff7 DC |
10336 | |
10337 | (define-public python-publicsuffix | |
10338 | (package | |
10339 | (name "python-publicsuffix") | |
10340 | (version "1.1.0") | |
10341 | (source (origin | |
10342 | (method url-fetch) | |
10343 | (uri (pypi-uri "publicsuffix" version)) | |
10344 | (sha256 | |
10345 | (base32 | |
10346 | "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf")))) | |
10347 | (build-system python-build-system) | |
10348 | (arguments | |
10349 | `(#:tests? #f)) ; tests use the internet | |
10350 | (home-page "https://www.tablix.org/~avian/git/publicsuffix.git") | |
10351 | (synopsis "Get suffix for a domain name") | |
10352 | (description "Get a public suffix for a domain name using the Public Suffix | |
10353 | List.") | |
10354 | (license license:expat) | |
10355 | (properties `((python2-variant . ,(delay python2-nltk)))))) | |
10356 | ||
10357 | (define-public python2-publicsuffix | |
10358 | (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix)))) | |
10359 | (package (inherit base) | |
10360 | (native-inputs | |
10361 | `(("python2-setuptools" ,python2-setuptools) | |
10362 | ,@(package-native-inputs base)))))) | |
b2319996 DC |
10363 | |
10364 | (define-public python-publicsuffix2 | |
10365 | (package | |
10366 | (name "python-publicsuffix2") | |
10367 | (version "2.20160621") | |
10368 | (source | |
10369 | (origin | |
10370 | (method url-fetch) | |
10371 | (uri (pypi-uri "publicsuffix2" version ".tar.bz2")) | |
10372 | (sha256 | |
10373 | (base32 | |
10374 | "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) | |
10375 | (build-system python-build-system) | |
10376 | (home-page "https://github.com/pombredanne/python-publicsuffix2") | |
10377 | (synopsis "Get a public suffix for a domain name using the Public Suffix List") | |
10378 | (description "Get a public suffix for a domain name using the Public Suffix | |
10379 | List. Forked from and using the same API as the publicsuffix package.") | |
10380 | (license (list license:expat license:mpl2.0)) | |
10381 | (properties `((python2-variant . ,(delay python2-publicsuffix2)))))) | |
10382 | ||
10383 | (define-public python2-publicsuffix2 | |
10384 | (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2)))) | |
10385 | (package (inherit base) | |
10386 | (native-inputs | |
10387 | `(("python2-setuptools" ,python2-setuptools) | |
10388 | ,@(package-native-inputs base)))))) | |
81f1515d DC |
10389 | |
10390 | (define-public python-url | |
10391 | (package | |
10392 | (name "python-url") | |
10393 | (version "0.2.0") | |
10394 | (source (origin | |
10395 | (method url-fetch) | |
10396 | (uri (pypi-uri "url" version)) | |
10397 | (sha256 | |
10398 | (base32 | |
10399 | "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) | |
10400 | (build-system python-build-system) | |
10401 | (inputs | |
10402 | `(("python-publicsuffix" ,python-publicsuffix))) | |
10403 | (native-inputs | |
10404 | `(("python-coverage" ,python-coverage) | |
10405 | ("python-nose" ,python-nose))) | |
10406 | (arguments | |
10407 | `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" | |
10408 | (home-page "http://github.com/seomoz/url-py") | |
10409 | (synopsis "URL Parsing") | |
10410 | (description "Library for parsing urls.") | |
10411 | (license license:expat) | |
10412 | (properties `((python2-variant . ,(delay python2-url)))))) | |
10413 | ||
10414 | (define-public python2-url | |
10415 | (let ((base (package-with-python2 (strip-python2-variant python-url)))) | |
10416 | (package (inherit base) | |
10417 | (inputs | |
10418 | `(("python2-publicsuffix" ,python2-publicsuffix))) | |
10419 | (native-inputs | |
10420 | `(("python2-setuptools" ,python2-setuptools) | |
10421 | ,@(package-native-inputs base)))))) | |
974ee2c1 TS |
10422 | |
10423 | (define-public python-freezegun | |
10424 | (package | |
10425 | (name "python-freezegun") | |
10426 | (version "0.3.7") | |
10427 | (source | |
10428 | (origin | |
10429 | (method url-fetch) | |
10430 | (uri (pypi-uri "freezegun" version)) | |
10431 | (sha256 | |
10432 | (base32 | |
10433 | "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w")))) | |
10434 | (build-system python-build-system) | |
10435 | (native-inputs | |
10436 | `(("python-mock" ,python-mock) | |
10437 | ("python-nose" ,python-nose) | |
10438 | ("python-coverage" ,python-coverage) | |
10439 | ("python-dateutil-2" ,python-dateutil-2))) | |
10440 | (inputs | |
10441 | `(("python-six" ,python-six))) | |
10442 | (arguments | |
10443 | `(#:phases (modify-phases %standard-phases | |
10444 | ;; The tests are normally executed via `make test`, but the PyPi | |
10445 | ;; package does not include the Makefile. | |
10446 | (replace 'check | |
10447 | (lambda _ | |
10448 | (zero? (system* "nosetests" "./tests/"))))))) | |
10449 | (home-page "https://github.com/spulec/freezegun") | |
10450 | (synopsis "Test utility for mocking the datetime module") | |
10451 | (description | |
10452 | "FreezeGun is a library that allows your python tests to travel through | |
10453 | time by mocking the datetime module.") | |
10454 | (license license:asl2.0))) | |
10455 | ||
10456 | (define-public python2-freezegun | |
10457 | (let ((base (package-with-python2 (strip-python2-variant python-freezegun)))) | |
10458 | (package (inherit base) | |
10459 | (native-inputs | |
10460 | `(("python2-setuptools" ,python2-setuptools) | |
10461 | ,@(package-native-inputs base)))))) | |
dddcb25c MB |
10462 | |
10463 | (define-public python-odfpy | |
10464 | (package | |
10465 | (name "python-odfpy") | |
10466 | (version "1.3.3") | |
10467 | (source (origin | |
10468 | (method url-fetch) | |
10469 | (uri (pypi-uri "odfpy" version)) | |
10470 | (sha256 | |
10471 | (base32 | |
10472 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) | |
10473 | (arguments | |
10474 | `(#:modules ((srfi srfi-1) | |
10475 | (guix build python-build-system) | |
10476 | (guix build utils)) | |
10477 | #:phases | |
10478 | (modify-phases %standard-phases | |
10479 | (replace 'check | |
10480 | ;; The test runner invokes python2 and python3 for test*.py. | |
10481 | ;; To avoid having both in inputs, we replicate it here. | |
10482 | (lambda _ | |
10483 | (every (lambda (test-file) | |
10484 | (zero? (system* "python" test-file))) | |
10485 | (find-files "tests" "^test.*\\.py$"))))))) | |
10486 | (build-system python-build-system) | |
10487 | (home-page "https://github.com/eea/odfpy") | |
10488 | (synopsis "Python API and tools to manipulate OpenDocument files") | |
10489 | (description "Collection of libraries and utility programs written in | |
10490 | Python to manipulate OpenDocument 1.2 files.") | |
10491 | (license | |
10492 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a | |
10493 | ;; number of files with other licenses. | |
10494 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) | |
10495 | ||
10496 | (define-public python2-odfpy | |
10497 | (package-with-python2 python-odfpy)) | |
b30565bd MB |
10498 | |
10499 | (define-public python-cachecontrol | |
10500 | (package | |
10501 | (name "python-cachecontrol") | |
10502 | (version "0.11.6") | |
10503 | (source | |
10504 | (origin | |
10505 | (method url-fetch) | |
10506 | ;; Pypi does not have tests. | |
10507 | (uri (string-append | |
10508 | "https://github.com/ionrock/cachecontrol/archive/v" | |
10509 | version ".tar.gz")) | |
10510 | (file-name (string-append name "-" version ".tar.gz")) | |
10511 | (sha256 | |
10512 | (base32 | |
10513 | "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) | |
10514 | (build-system python-build-system) | |
10515 | (arguments | |
10516 | `(#:phases | |
10517 | (modify-phases %standard-phases | |
10518 | (replace 'check | |
10519 | (lambda _ | |
10520 | ;; Drop test that requires internet access. | |
10521 | (delete-file "tests/test_regressions.py") | |
10522 | (setenv "PYTHONPATH" | |
10523 | (string-append (getcwd) "/build/lib:" | |
10524 | (getenv "PYTHONPATH"))) | |
10525 | (zero? (system* "py.test" "-vv"))))))) | |
10526 | (native-inputs | |
10527 | `(("python-pytest" ,python-pytest) | |
10528 | ("python-redis" ,python-redis) | |
10529 | ("python-webtest" ,python-webtest) | |
10530 | ("python-mock" ,python-mock))) | |
10531 | (propagated-inputs | |
10532 | `(("python-requests" ,python-requests) | |
10533 | ("python-lockfile" ,python-lockfile))) | |
10534 | (home-page "https://github.com/ionrock/cachecontrol") | |
10535 | (synopsis "The httplib2 caching algorithms for use with requests") | |
10536 | (description "CacheControl is a port of the caching algorithms in | |
10537 | @code{httplib2} for use with @code{requests} session objects.") | |
10538 | (license license:asl2.0) | |
dd447621 | 10539 | (properties `((python2-variant . ,(delay python2-cachecontrol)))))) |
b30565bd MB |
10540 | |
10541 | (define-public python2-cachecontrol | |
10542 | (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol)))) | |
10543 | (package (inherit base) | |
10544 | (native-inputs | |
10545 | `(("python2-setuptools" ,python2-setuptools) | |
10546 | ,@(package-native-inputs base)))))) | |
243db824 DM |
10547 | |
10548 | (define-public python-lit | |
10549 | (package | |
10550 | (name "python-lit") | |
10551 | (version "0.5.0") | |
10552 | (source | |
10553 | (origin | |
10554 | (method url-fetch) | |
10555 | (uri (pypi-uri "lit" version)) | |
10556 | (sha256 | |
10557 | (base32 | |
10558 | "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y")))) | |
10559 | (build-system python-build-system) | |
10560 | (home-page "http://llvm.org/") | |
10561 | (synopsis "LLVM Software Testing Tool") | |
10562 | (description "@code{lit} is a portable tool for executing LLVM and Clang | |
10563 | style test suites, summarizing their results, and providing indication of | |
10564 | failures.") | |
10565 | (license license:ncsa) | |
10566 | (properties `((python2-variant . ,(delay python2-lit)))))) | |
10567 | ||
10568 | (define-public python2-lit | |
10569 | (let ((base (package-with-python2 (strip-python2-variant python-lit)))) | |
10570 | (package | |
10571 | (inherit base) | |
10572 | (native-inputs | |
10573 | `(("python2-setuptools" ,python2-setuptools) | |
10574 | ,@(package-native-inputs base)))))) | |
66f95b20 MB |
10575 | |
10576 | (define-public python-pytest-pep8 | |
10577 | (package | |
10578 | (name "python-pytest-pep8") | |
10579 | (version "1.0.6") | |
10580 | (source (origin | |
10581 | (method url-fetch) | |
10582 | (uri (pypi-uri "pytest-pep8" version)) | |
10583 | (sha256 | |
10584 | (base32 | |
10585 | "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) | |
10586 | (build-system python-build-system) | |
10587 | (arguments | |
10588 | `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12. | |
10589 | ;; Prevent creation of the egg. This works around | |
10590 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . | |
10591 | #:configure-flags '("--single-version-externally-managed" "--root=/"))) | |
10592 | (native-inputs | |
10593 | `(("python-pytest" ,python-pytest))) | |
10594 | (propagated-inputs | |
10595 | `(("python-pep8" ,python-pep8))) | |
10596 | (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") | |
10597 | (synopsis "Py.test plugin to check PEP8 requirements") | |
10598 | (description "Pytest plugin for checking PEP8 compliance.") | |
10599 | (license license:expat) | |
10600 | (properties `((python2-variant . ,(delay python2-pytest-pep8)))))) | |
10601 | ||
10602 | (define-public python2-pytest-pep8 | |
10603 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8)))) | |
10604 | (package (inherit base) | |
10605 | (native-inputs | |
10606 | `(("python2-setuptools" ,python2-setuptools) | |
10607 | ,@(package-native-inputs base)))))) | |
df94a6b5 MB |
10608 | |
10609 | (define-public python-pytest-flakes | |
10610 | (package | |
10611 | (name "python-pytest-flakes") | |
10612 | (version "1.0.1") | |
10613 | (source (origin | |
10614 | (method url-fetch) | |
10615 | (uri (pypi-uri "pytest-flakes" version)) | |
10616 | (sha256 | |
10617 | (base32 | |
10618 | "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) | |
10619 | (build-system python-build-system) | |
10620 | (arguments | |
10621 | `(;; Prevent creation of the egg. This works around | |
10622 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . | |
10623 | #:configure-flags '("--single-version-externally-managed" "--root=/") | |
10624 | #:phases | |
10625 | (modify-phases %standard-phases | |
10626 | (delete 'check) | |
10627 | (add-after 'install 'check | |
10628 | (lambda _ ; It's easier to run tests after install. | |
10629 | (zero? (system* "py.test" "-vv"))))))) | |
10630 | (native-inputs | |
10631 | `(("python-coverage" ,python-coverage) | |
10632 | ("python-pytest" ,python-pytest) | |
10633 | ("python-pytest-cache" ,python-pytest-cache) | |
10634 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
10635 | (propagated-inputs | |
10636 | `(("python-pyflakes" ,python-pyflakes))) | |
10637 | (home-page "https://github.com/fschulze/pytest-flakes") | |
10638 | (synopsis "Py.test plugin to check source code with pyflakes") | |
10639 | (description "Pytest plugin for checking Python source code with pyflakes.") | |
10640 | (license license:expat) | |
10641 | (properties `((python2-variant . ,(delay python2-pytest-flakes)))))) | |
10642 | ||
10643 | (define-public python2-pytest-flakes | |
10644 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes)))) | |
10645 | (package (inherit base) | |
10646 | (native-inputs | |
10647 | `(("python2-setuptools" ,python2-setuptools) | |
10648 | ,@(package-native-inputs base)))))) | |
5467ea62 MB |
10649 | |
10650 | (define-public python-natsort | |
10651 | (package | |
10652 | (name "python-natsort") | |
10653 | (version "5.0.1") | |
10654 | (source (origin | |
10655 | (method url-fetch) | |
10656 | (uri (pypi-uri "natsort" version)) | |
10657 | (sha256 | |
10658 | (base32 | |
10659 | "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja")))) | |
10660 | (build-system python-build-system) | |
10661 | (arguments | |
10662 | `(#:phases | |
10663 | (modify-phases %standard-phases | |
10664 | (add-before 'check 'set-cachedir | |
10665 | ;; Tests require write access to $HOME by default | |
10666 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) | |
10667 | (native-inputs | |
10668 | `(("python-hypothesis" ,python-hypothesis) | |
10669 | ("python-pytest-cache" ,python-pytest-cache) | |
10670 | ("python-pytest-cov" ,python-pytest-cov) | |
10671 | ("python-pytest-flakes" ,python-pytest-flakes) | |
10672 | ("python-pytest-pep8" ,python-pytest-pep8))) | |
10673 | (propagated-inputs ; TODO: Add python-fastnumbers. | |
10674 | `(("python-pyicu" ,python-pyicu))) | |
10675 | (home-page "https://github.com/SethMMorton/natsort") | |
10676 | (synopsis "Natural sorting for python and shell") | |
10677 | (description | |
10678 | "Natsort lets you apply natural sorting on lists instead of | |
10679 | lexicographical. If you use the built-in @code{sorted} method in python | |
10680 | on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be | |
10681 | returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a | |
10682 | function @code{natsorted} that identifies numbers and sorts them separately | |
10683 | from strings. It can also sort version numbers, real numbers, mixed types | |
10684 | and more, and comes with a shell command @command{natsort} that exposes this | |
10685 | functionality in the command line.") | |
10686 | (license license:expat) | |
10687 | (properties `((python2-variant . ,(delay python2-natsort)))))) | |
10688 | ||
10689 | (define-public python2-natsort | |
10690 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) | |
10691 | (package (inherit base) | |
10692 | (native-inputs | |
10693 | `(("python2-setuptools" ,python2-setuptools) | |
10694 | ("python2-pathlib" ,python2-pathlib) | |
10695 | ("python2-mock" ,python2-mock) | |
10696 | ("python2-enum34" ,python2-enum34) | |
10697 | ,@(package-native-inputs base)))))) | |
4efb9c54 SR |
10698 | |
10699 | (define-public python-glances | |
10700 | (package | |
10701 | (name "python-glances") | |
10702 | (version "2.7.1") | |
10703 | (source | |
10704 | (origin | |
10705 | (method url-fetch) | |
10706 | (uri (pypi-uri "Glances" version)) | |
10707 | (sha256 | |
10708 | (base32 | |
10709 | "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) | |
10710 | (build-system python-build-system) | |
10711 | (inputs | |
10712 | `(("python-psutil" ,python-psutil))) | |
10713 | (home-page | |
10714 | "https://github.com/nicolargo/glances") | |
10715 | (synopsis | |
10716 | "A cross-platform curses-based monitoring tool") | |
10717 | (description | |
10718 | "Glances is a curses-based monitoring tool for a wide variety of platforms. | |
10719 | Glances uses the PsUtil library to get information from your system. It monitors | |
10720 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") | |
10721 | (license license:lgpl3+) | |
10722 | (properties `((python2-variant . ,(delay python2-glances)))))) | |
10723 | ||
10724 | (define-public python2-glances | |
10725 | (let ((base (package-with-python2 (strip-python2-variant python-glances)))) | |
10726 | (package | |
10727 | (inherit base) | |
10728 | (native-inputs | |
10729 | `(("python2-setuptools" ,python2-setuptools) | |
10730 | ,@(package-native-inputs base)))))) | |
05b7a593 EF |
10731 | |
10732 | (define-public python-graphql-core | |
10733 | (package | |
10734 | (name "python-graphql-core") | |
10735 | (version "0.5.3") | |
10736 | (source | |
10737 | (origin | |
10738 | (method url-fetch) | |
10739 | (uri (pypi-uri "graphql-core" version)) | |
10740 | (sha256 | |
10741 | (base32 | |
10742 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) | |
10743 | (build-system python-build-system) | |
10744 | (arguments | |
10745 | `(#:phases | |
10746 | (modify-phases %standard-phases | |
10747 | (add-after 'unpack 'patch-hardcoded-version | |
10748 | (lambda _ (substitute* | |
10749 | "setup.py" | |
10750 | (("'gevent==1.1rc1'") "'gevent'")) | |
10751 | #t))))) | |
10752 | (native-inputs | |
10753 | `(("python-gevent" ,python-gevent) | |
10754 | ("python-mock" ,python-mock) | |
10755 | ("python-pytest-mock" ,python-pytest-mock))) | |
10756 | (inputs | |
10757 | `(("python-promise" ,python-promise) | |
10758 | ("python-six" ,python-six))) | |
10759 | (home-page "https://github.com/graphql-python/graphql-core") | |
10760 | (synopsis "GraphQL implementation for Python") | |
10761 | (description | |
10762 | "GraphQL implementation for Python. GraphQL is a data query language and | |
10763 | runtime designed and used to request and deliver data to mobile and web apps. | |
10764 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} | |
10765 | to Python.") | |
10766 | (properties `((python2-variant . ,(delay python2-graphql-core)))) | |
10767 | (license license:expat))) | |
10768 | ||
10769 | (define-public python2-graphql-core | |
10770 | (let ((base (package-with-python2 | |
10771 | (strip-python2-variant python-graphql-core)))) | |
10772 | (package (inherit base) | |
10773 | (native-inputs | |
10774 | `(("python2-setuptools" ,python2-setuptools) | |
10775 | ,@(package-native-inputs base)))))) | |
7ee51575 EF |
10776 | |
10777 | (define-public python-graphql-relay | |
10778 | (package | |
10779 | (name "python-graphql-relay") | |
10780 | (version "0.4.4") | |
10781 | (source | |
10782 | (origin | |
10783 | (method url-fetch) | |
10784 | (uri (pypi-uri "graphql-relay" version)) | |
10785 | (sha256 | |
10786 | (base32 | |
10787 | "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi")))) | |
10788 | (build-system python-build-system) | |
10789 | (native-inputs | |
10790 | `(("python-pytest" ,python-pytest))) | |
10791 | (inputs | |
10792 | `(("python-graphql-core" ,python-graphql-core) | |
10793 | ("python-promise" ,python-promise) | |
10794 | ("python-six" ,python-six))) | |
10795 | (home-page "https://github.com/graphql-python/graphql-relay-py") | |
10796 | (synopsis "Relay implementation for Python") | |
10797 | (description | |
10798 | "This is a library to allow the easy creation of Relay-compliant servers | |
10799 | using the GraphQL Python reference implementation of a GraphQL server. It | |
10800 | should be noted that the code is a exact port of the original | |
10801 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} | |
10802 | from Facebook.") | |
10803 | (properties `((python2-variant . ,(delay python2-graphql-relay)))) | |
10804 | (license license:expat))) | |
10805 | ||
10806 | (define-public python2-graphql-relay | |
10807 | (let ((base (package-with-python2 | |
10808 | (strip-python2-variant python-graphql-relay)))) | |
10809 | (package (inherit base) | |
10810 | (native-inputs | |
10811 | `(("python2-setuptools" ,python2-setuptools) | |
10812 | ,@(package-native-inputs base)))))) | |
ddc63a56 EF |
10813 | |
10814 | (define-public python-graphene | |
10815 | (package | |
10816 | (name "python-graphene") | |
10817 | (version "0.10.2") | |
10818 | (source | |
10819 | (origin | |
10820 | (method url-fetch) | |
10821 | (uri (pypi-uri "graphene" version)) | |
10822 | (sha256 | |
10823 | (base32 | |
10824 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) | |
10825 | (build-system python-build-system) | |
10826 | (native-inputs | |
10827 | `(("python-django-filter" ,python-django-filter) | |
10828 | ("python-mock" ,python-mock) | |
10829 | ("python-psycopg2" ,python-psycopg2) | |
10830 | ("python-pytest-django" ,python-pytest-django) | |
10831 | ("python-sqlalchemy-utils" ,python-sqlalchemy-utils))) | |
10832 | (inputs | |
10833 | `(("python-graphql-core" ,python-graphql-core) | |
10834 | ("python-graphql-relay" ,python-graphql-relay) | |
10835 | ("python-iso8601" ,python-iso8601) | |
10836 | ("python-promise" ,python-promise) | |
10837 | ("python-six" ,python-six))) | |
10838 | (home-page "http://graphene-python.org/") | |
10839 | (synopsis "GraphQL Framework for Python") | |
10840 | (description | |
10841 | "Graphene is a Python library for building GraphQL schemas/types. | |
10842 | A GraphQL schema describes your data model, and provides a GraphQL server | |
10843 | with an associated set of resolve methods that know how to fetch data.") | |
10844 | (properties `((python2-variant . ,(delay python2-graphene)))) | |
10845 | (license license:expat))) | |
10846 | ||
10847 | (define-public python2-graphene | |
10848 | (let ((base (package-with-python2 | |
10849 | (strip-python2-variant python-graphene)))) | |
10850 | (package (inherit base) | |
10851 | (native-inputs | |
10852 | `(("python2-setuptools" ,python2-setuptools) | |
10853 | ("python2-sqlalchemy" ,python2-sqlalchemy) | |
10854 | ,@(package-native-inputs base)))))) |