1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
9 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
10 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
11 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages python)
29 #:use-module ((guix licenses)
30 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
31 gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
32 psfl public-domain x11-style))
33 #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages compression)
36 #:use-module (gnu packages databases)
37 #:use-module (gnu packages fontutils)
38 #:use-module (gnu packages gdbm)
39 #:use-module (gnu packages gcc)
40 #:use-module (gnu packages ghostscript)
41 #:use-module (gnu packages glib)
42 #:use-module (gnu packages gtk)
43 #:use-module (gnu packages icu4c)
44 #:use-module (gnu packages image)
45 #:use-module (gnu packages imagemagick)
46 #:use-module (gnu packages libffi)
47 #:use-module (gnu packages maths)
48 #:use-module (gnu packages multiprecision)
49 #:use-module (gnu packages networking)
50 #:use-module (gnu packages ncurses)
51 #:use-module (gnu packages perl)
52 #:use-module (gnu packages pkg-config)
53 #:use-module (gnu packages readline)
54 #:use-module (gnu packages texlive)
55 #:use-module (gnu packages texinfo)
56 #:use-module (gnu packages tls)
57 #:use-module (gnu packages web)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages xml)
60 #:use-module (gnu packages xorg)
61 #:use-module (gnu packages zip)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix git-download)
65 #:use-module (guix utils)
66 #:use-module (guix build-system gnu)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system trivial)
69 #:use-module (srfi srfi-1))
71 (define-public python-2
78 (uri (string-append "https://www.python.org/ftp/python/"
79 version "/Python-" version ".tar.xz"))
80 (patches (list (search-patch "python-libffi-mips-n32-fix.patch")
81 (search-patch "python2-sqlite-3.8.4-test-fix.patch")))
82 (patch-flags '("-p0"))
85 "18gnpyh071dxa0rv3silrz92jw9qpblswzwv4gzqcwxzz20qxmhz"))))
86 (build-system gnu-build-system)
91 ;; test_bz2 test_distutils test_file test_file2k test_popen2
92 ;; test_shutil test_signal test_site test_slice test_smtplib
93 ;; test_smtpnet test_socket test_socketserver test_softspace
94 ;; test_sort test_sqlite test_ssl test_startfile test_str
95 ;; test_strftime test_string test_stringprep test_strop test_strptime
96 ;; test_strtod test_struct test_structmembers test_structseq
97 ;; test_subprocess test_sunaudiodev test_sundry test_symtable
98 ;; test_syntax test_sys test_sys_setprofile test_sys_settrace
99 ;; test_sysconfig test_tarfile test_tcl test_telnetlib test_tempfile
100 ;; test_textwrap test_thread test_threaded_import
101 ;; test_threadedtempfile test_threading test_threading_local
102 ;; test_threadsignals test_time test_timeout test_tk test_tokenize
103 ;; test_tools test_trace test_traceback test_transformer
104 ;; test_ttk_guionly test_ttk_textonly test_tuple test_typechecks
105 ;; test_ucn test_unary test_undocumented_details test_unicode
106 ;; test_unicode_file test_unicodedata test_univnewlines
107 ;; test_univnewlines2k test_unpack test_urllib test_urllib2
108 ;; test_urllib2_localnet test_urllib2net test_urllibnet test_urlparse
109 ;; test_userdict test_userlist test_userstring test_uu test_uuid
110 ;; test_wait3 test_wait4 test_warnings test_wave test_weakref
111 ;; test_weakset test_whichdb test_winreg test_winsound test_with
112 ;; test_wsgiref test_xdrlib test_xml_etree test_xml_etree_c
113 ;; test_xmllib test_xmlrpc test_xpickle test_xrange test_zipfile
114 ;; test_zipfile64 test_zipimport test_zipimport_support test_zlib
116 ;; test_aepack test_al test_applesingle test_ascii_formatd test_bsddb
117 ;; test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn
118 ;; test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr
119 ;; test_codecmaps_tw test_ctypes test_curses test_dl test_gdb test_gl
120 ;; test_imageop test_imgfile test_ioctl test_kqueue
121 ;; test_linuxaudiodev test_macos test_macostools test_msilib
122 ;; test_multiprocessing test_ossaudiodev test_pep277
123 ;; test_scriptpackages
124 ;; 7 skips unexpected on linux2:
125 ;; test_ascii_formatd test_bsddb test_bsddb3 test_ctypes test_gdb
126 ;; test_ioctl test_multiprocessing
127 ;; One of the typical errors:
129 ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No such file or directory
132 (let ((bz2 (assoc-ref %build-inputs "bzip2"))
133 (gdbm (assoc-ref %build-inputs "gdbm"))
134 (libffi (assoc-ref %build-inputs "libffi"))
135 (sqlite (assoc-ref %build-inputs "sqlite"))
136 (openssl (assoc-ref %build-inputs "openssl"))
137 (readline (assoc-ref %build-inputs "readline"))
138 (zlib (assoc-ref %build-inputs "zlib"))
139 (out (assoc-ref %outputs "out")))
140 (list "--enable-shared" ; allow embedding
141 "--with-system-ffi" ; build ctypes
142 (string-append "CPPFLAGS="
144 "-I" gdbm "/include "
145 "-I" sqlite "/include "
146 "-I" openssl "/include "
147 "-I" readline "/include "
148 "-I" zlib "/include")
149 (string-append "LDFLAGS="
155 "-L" readline "/lib "
157 "-Wl,-rpath=" out "/lib")))
161 'configure 'patch-lib-shells
163 ;; Filter for existing files, since some may not exist in all
164 ;; versions of python that are built with this recipe.
165 (substitute* (filter file-exists?
166 '("Lib/subprocess.py"
168 "Lib/distutils/tests/test_spawn.py"
169 "Lib/test/test_subprocess.py"))
170 (("/bin/sh") (which "sh"))))
174 ;; 'Lib/test/test_site.py' needs a valid $HOME
175 (setenv "HOME" (getcwd)))
180 ("libffi" ,libffi) ; for ctypes
181 ("sqlite" ,sqlite) ; for sqlite extension
183 ("readline" ,readline)
186 `(("pkg-config" ,pkg-config)))
188 (list (search-path-specification
189 (variable "PYTHONPATH")
190 (files '("lib/python2.7/site-packages")))))
191 (home-page "http://python.org")
193 "High-level, dynamically-typed programming language")
195 "Python is a remarkably powerful dynamic programming language that
196 is used in a wide variety of application domains. Some of its key
197 distinguishing features include: clear, readable syntax; strong
198 introspection capabilities; intuitive object orientation; natural
199 expression of procedural code; full modularity, supporting hierarchical
200 packages; exception-based error handling; and very high level dynamic
204 (define-public python
205 (package (inherit python-2)
209 (uri (string-append "https://www.python.org/ftp/python/"
210 version "/Python-" version ".tar.xz"))
211 (patches (list (search-patch "python-fix-tests.patch")
212 ;; XXX Try removing this patch for python > 3.4.3
213 (search-patch "python-disable-ssl-test.patch")))
214 (patch-flags '("-p0"))
217 "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm"))))
218 (arguments (substitute-keyword-arguments (package-arguments python-2)
221 (list (search-path-specification
222 (variable "PYTHONPATH")
223 (files (list (string-append "lib/python"
224 (version-major+minor version)
225 "/site-packages"))))))))
227 (define-public python-wrapper
228 (package (inherit python)
229 (name "python-wrapper")
231 (build-system trivial-build-system)
232 (propagated-inputs `(("python" ,python)))
234 `(#:modules ((guix build utils))
237 (use-modules (guix build utils))
238 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
239 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
243 (symlink (string-append python old)
244 (string-append bin "/" new)))
245 `("python3", "pydoc3", "idle3")
246 `("python", "pydoc", "idle"))))))
247 (description (string-append (package-description python)
248 "\n\nThis wrapper package provides symbolic links to the python binaries
249 without version suffix."))))
252 (define-public python-pytz
259 (uri (string-append "https://launchpad.net/pytz/main/" version
260 "/+download/pytz-" version ".tar.bz2"))
263 "19giwgfcrg0nr1gdv49qnmf2jb2ilkcfc7qyqvfpz4dp0p64ksv5"))))
264 (build-system python-build-system)
265 (arguments `(#:tests? #f)) ; no test target
266 (home-page "https://launchpad.net/pytz")
267 (synopsis "Python timezone library")
269 "This library allows accurate and cross platform timezone calculations
270 using Python 2.4 or higher and provides access to the Olson timezone database.")
273 (define-public python2-pytz
274 (package-with-python2 python-pytz))
277 (define-public python-babel
279 (name "python-babel")
284 (uri (string-append "https://pypi.python.org/packages/source/B/Babel/Babel-"
288 "0bnin777lc53nxd1hp3apq410jj5wx92n08h7h4izpl4f4sx00lz"))))
289 (build-system python-build-system)
291 `(("python-pytz" ,python-pytz)
292 ("python-setuptools" ,python-setuptools)))
293 (arguments `(#:tests? #f)) ; no test target
294 (home-page "http://babel.pocoo.org/")
296 "Tools for internationalizing Python applications")
298 "Babel is composed of two major parts:
299 - tools to build and work with gettext message catalogs
300 - a Python interface to the CLDR (Common Locale Data Repository), providing
301 access to various locale display names, localized number and date formatting,
305 (define-public python2-babel
306 (package-with-python2 python-babel))
308 (define-public python2-backport-ssl-match-hostname
310 (name "python2-backport-ssl-match-hostname")
316 "https://pypi.python.org/packages/source/b/"
317 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
321 "1bnn47ipvhy49n0m50v27lp4xj6sqdkdw676ypd7pawsn1zhwh87"))))
322 (build-system python-build-system)
323 (arguments `(#:python ,python-2))
325 `(("python2-setuptools" ,python2-setuptools)))
326 (home-page "https://pypi.python.org/pypi/backports.ssl_match_hostname")
327 (synopsis "Backport of ssl.match_hostname() function from Python 3.4")
329 "This backport brings the ssl.match_hostname() function to users of
330 earlier versions of Python. The function checks the hostname in the
331 certificate returned by the server to which a connection has been established,
332 and verifies that it matches the intended target hostname.")
335 (define-public python-h5py
342 (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-"
346 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps"))))
347 (build-system python-build-system)
349 `(("python-cython" ,python-cython)
350 ("python-numpy" ,python-numpy)
353 `(("python-setuptools" ,python-setuptools)))
354 (arguments `(#:tests? #f)) ; no test target
355 (home-page "http://www.h5py.org/")
356 (synopsis "Read and write HDF5 files from Python")
358 "The h5py package provides both a high- and low-level interface to the
359 HDF5 library from Python. The low-level interface is intended to be a
360 complete wrapping of the HDF5 API, while the high-level component supports
361 access to HDF5 files, datasets and groups using established Python and NumPy
365 (define-public python2-h5py
366 (let ((h5py (package-with-python2 python-h5py)))
367 (package (inherit h5py)
369 `(("python2-numpy" ,python2-numpy)
372 (package-inputs h5py)))))))
374 (define-public python-lockfile
376 (name "python-lockfile")
381 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
382 "lockfile-" version ".tar.gz"))
385 "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3"))))
386 (build-system python-build-system)
387 (arguments '(#:test-target "check"))
388 (home-page "http://code.google.com/p/pylockfile/")
389 (synopsis "Platform-independent file locking module")
391 "The lockfile package exports a LockFile class which provides a simple
392 API for locking files.")
393 (license license:expat)))
395 (define-public python2-lockfile
396 (package-with-python2 python-lockfile))
398 (define-public python-mock
405 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
406 "mock-" version ".tar.gz"))
409 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
410 (build-system python-build-system)
411 (arguments '(#:test-target "check"))
412 (home-page "http://code.google.com/p/mock/")
413 (synopsis "Python mocking and patching library for testing")
415 "Mock is a library for testing in Python. It allows you to replace parts
416 of your system under test with mock objects and make assertions about how they
418 (license license:expat)))
420 (define-public python2-mock
421 (package-with-python2 python-mock))
424 (define-public python-setuptools
426 (name "python-setuptools")
431 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
435 "04bfk7si1pwj3b5k2b1x9b1zkiclybmzpw6alrs5bciri56lg9zs"))))
436 (build-system python-build-system)
437 ;; FIXME: Tests require pytest, which itself relies on setuptools.
438 ;; One could bootstrap with an internal untested setuptools.
441 (home-page "https://pypi.python.org/pypi/setuptools")
443 "Library designed to facilitate packaging Python projects")
445 "Setuptools is a fully-featured, stable library designed to facilitate
446 packaging Python projects, where packaging includes:
447 Python package and module definitions,
448 distribution package metadata,
450 project installation,
451 platform-specific details,
455 (define-public python2-setuptools
456 (package-with-python2 python-setuptools))
459 (define-public python-pycrypto
461 (name "python-pycrypto")
466 (uri (string-append "https://pypi.python.org/packages/source/p/"
467 "pycrypto/pycrypto-" version ".tar.gz"))
470 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
471 (build-system python-build-system)
473 `(("python-setuptools" ,python-setuptools)))
480 'build 'set-build-env
481 ;; pycrypto runs an autoconf configure script behind the scenes
483 (setenv "CONFIG_SHELL" (which "bash")))
485 (home-page "http://www.pycrypto.org/")
486 (synopsis "Cryptographic modules for Python")
488 "Pycrypto is a collection of both secure hash functions (such as SHA256
489 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
490 etc.). The package is structured to make adding new modules easy.")
491 (license public-domain)))
493 (define-public python-keyring
495 (name "python-keyring")
500 (uri (string-append "https://pypi.python.org/packages/source/k/"
501 "keyring/keyring-" version ".zip"))
504 "1vxazfbcwggyfyramh55shkxs08skhpqrkm6lrrjnygnm8c1l2zg"))))
505 (build-system python-build-system)
508 ("python-setuptools" ,python-setuptools)
509 ("python-mock" ,python-mock)))
511 `(("python-pycrypto" ,python-pycrypto)))
513 `(#:tests? #f ;TODO: tests require pytest
518 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
520 (source (assoc-ref %build-inputs "source")))
521 (and (zero? (system* unzip source))
522 (chdir (string-append "keyring-" ,version)))))
524 (home-page "http://bitbucket.org/kang/python-keyring-lib")
525 (synopsis "Store and access your passwords safely")
527 "The Python keyring lib provides a easy way to access the system keyring
528 service from python. It can be used in any application that needs safe
530 ;; "MIT" and PSF dual license
533 (define-public python-six
540 (uri (string-append "https://pypi.python.org/packages/source/s/"
541 "six/six-" version ".tar.gz"))
544 "164rns26aqfqx2hwi0qq3scl50s69japn0fvgvrjsbyg7r1mxf67"))))
545 (build-system python-build-system)
547 `(("python-setuptools" ,python-setuptools)))
548 (home-page "http://pypi.python.org/pypi/six/")
549 (synopsis "Python 2 and 3 compatibility utilities")
551 "Six is a Python 2 and 3 compatibility library. It provides utility
552 functions for smoothing over the differences between the Python versions with
553 the goal of writing Python code that is compatible on both Python versions.
554 Six supports every Python version since 2.5. It is contained in only one
555 Python file, so it can be easily copied into your project.")
558 (define-public python2-six
559 (package-with-python2 python-six))
561 (define-public python-dateutil-2
563 (name "python-dateutil")
568 (uri (string-append "https://pypi.python.org/packages/source/p/"
569 name "/" name "-" version ".tar.gz"))
572 "0s74ad6r789810s10dxgvaf48ni6adac2icrdad34zxygqq6bj7f"))))
573 (build-system python-build-system)
575 `(("python-setuptools" ,python-setuptools)
576 ("python-six" ,python-six)))
577 (home-page "http://labix.org/python-dateutil")
578 (synopsis "Extensions to the standard datetime module")
580 "The dateutil module provides powerful extensions to the standard
581 datetime module, available in Python 2.3+.")
584 (define-public python2-dateutil-2
585 (package-with-python2 python-dateutil-2))
587 (define-public python-dateutil
589 (name "python-dateutil")
590 (version "1.5") ; last version for python < 3
594 (uri (string-append "http://labix.org/download/python-dateutil/"
595 "python-dateutil-" version ".tar.gz"))
598 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
599 (build-system python-build-system)
601 `(("python-setuptools" ,python-setuptools)))
602 (home-page "http://labix.org/python-dateutil")
603 (synopsis "Extensions to the standard datetime module")
605 "The dateutil module provides powerful extensions to the standard
606 datetime module, available in Python 2.3+.")
609 (define-public python2-dateutil
610 (package-with-python2 python-dateutil))
612 (define-public python-parsedatetime
614 (name "python-parsedatetime")
619 (uri (string-append "https://pypi.python.org/packages/source/p/"
620 "parsedatetime/parsedatetime-" version ".tar.gz"))
623 "1zcj0pzxvpl4j2ma9awmpkfxldybi2kjaahjjpmgfbg5cxwcjsqv"))))
624 (build-system python-build-system)
626 `(("python-setuptools" ,python-setuptools)))
627 (arguments `(#:tests? #f)) ;no test target
628 (home-page "http://github.com/bear/parsedatetime/")
630 "Parse human-readable date/time text")
632 "Parse human-readable date/time text.")
635 (define-public python-pandas
637 (name "python-pandas")
642 (uri (string-append "https://pypi.python.org/packages/source/p/"
643 "pandas/pandas-" version ".tar.gz"))
645 (base32 "1wfrp8dx1zcsry6f09ndza6qm1yr7f163211f4l9vjlnhxpxw4s0"))))
646 (build-system python-build-system)
648 `(;; Three tests fail:
649 ;; - test_read_google
651 ;; - test_month_range_union_tz_dateutil
654 `(("python-numpy" ,python-numpy)
655 ("python-pytz" ,python-pytz)
656 ("python-dateutil" ,python-dateutil-2)))
658 `(("python-nose" ,python-nose)
659 ("python-setuptools" ,python-setuptools)))
660 (home-page "http://pandas.pydata.org")
661 (synopsis "Data structures for data analysis, time series, and statistics")
663 "Pandas is a Python package providing fast, flexible, and expressive data
664 structures designed to make working with structured (tabular,
665 multidimensional, potentially heterogeneous) and time series data both easy
666 and intuitive. It aims to be the fundamental high-level building block for
667 doing practical, real world data analysis in Python.")
670 (define-public python2-pandas
671 (package-with-python2 python-pandas))
673 (define-public python-tzlocal
675 (name "python-tzlocal")
680 (uri (string-append "https://pypi.python.org/packages/source/t/"
681 "tzlocal/tzlocal-" version ".zip"))
684 "1m3y918c3chf41fwg2bx4w42bqsjzn3dyvvcmwwy13c8gj6zssv9"))))
685 (build-system python-build-system)
688 ("python-setuptools" ,python-setuptools)))
689 (inputs `(("python-pytz" ,python-pytz)))
695 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
697 (source (assoc-ref %build-inputs "source")))
698 (and (zero? (system* unzip source))
699 (chdir (string-append "tzlocal-" ,version)))))
701 (home-page "https://github.com/regebro/tzlocal")
703 "Local timezone information for Python")
705 "Tzlocal returns a tzinfo object with the local timezone information.
706 This module attempts to fix a glaring hole in pytz, that there is no way to
707 get the local timezone information, unless you know the zoneinfo name, and
708 under several distributions that's hard or impossible to figure out.")
711 (define-public python-pysam
713 (name "python-pysam")
718 (uri (string-append "https://pypi.python.org/packages/source/p/pysam/pysam-"
722 "1fb6i6hbpzxaxb62kyyp5alaidwhj40f7c6gwbhr6njzlqd5l459"))))
723 (build-system python-build-system)
725 `(#:tests? #f ; tests are excluded in the manifest
730 (setenv "LDFLAGS" "-lncurses")
731 (setenv "CFLAGS" "-D_CURSES_LIB=1"))
734 `(("python-cython" ,python-cython)
735 ("python-setuptools" ,python-setuptools)
738 (home-page "https://github.com/pysam-developers/pysam")
739 (synopsis "Python bindings to the SAMtools C API")
741 "Pysam is a Python module for reading and manipulating files in the
742 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
743 also includes an interface for tabix.")
744 (license license:expat)))
746 (define-public python2-pysam
747 (package-with-python2 python-pysam))
749 (define-public python2-pysqlite
751 (name "python2-pysqlite")
752 (version "2.6.3a") ; see below
756 ;; During the switch from code.google.com to pypi.python.org, the 2.6.3
757 ;; tarball was modified, but the version number was kept:
758 ;; <https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00077.html>.
759 ;; Here we want to refer to the pypi-hosted 2.6.3 tarball.
761 "https://pypi.python.org/packages/source/p/pysqlite/pysqlite-"
765 "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y"))))
766 (build-system python-build-system)
768 `(("sqlite" ,sqlite)))
770 `(#:python ,python-2 ; incompatible with Python 3
771 #:tests? #f)) ; no test target
772 (home-page "https://pypi.python.org/pypi/pysqlite")
773 (synopsis "SQLite bindings for Python")
775 "Pysqlite provides SQLite bindings for Python that comply to the
777 (license license:zlib)))
780 (define-public python2-mechanize
782 (name "python2-mechanize")
787 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
791 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
792 (build-system python-build-system)
794 `(("python2-setuptools" ,python2-setuptools)))
796 `(#:python ,python-2 ; apparently incompatible with Python 3
798 ;; test fails with message
799 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
801 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
803 ;; The source code is from March 2011 and probably not up-to-date
804 ;; with respect to python unit tests.
805 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
807 "Stateful programmatic web browsing in Python")
809 "Mechanize implements stateful programmatic web browsing in Python,
810 after Andy Lester’s Perl module WWW::Mechanize.")
811 (license (non-copyleft "file://COPYING"
812 "See COPYING in the distribution."))))
815 (define-public python-simplejson
817 (name "python-simplejson")
822 (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
826 "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
827 (build-system python-build-system)
828 (home-page "http://simplejson.readthedocs.org/en/latest/")
830 "Json library for Python")
832 "JSON (JavaScript Object Notation) is a subset of JavaScript
833 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
836 Simplejson exposes an API familiar to users of the standard library marshal
837 and pickle modules. It is the externally maintained version of the json
838 library contained in Python 2.6, but maintains compatibility with Python 2.5
839 and (currently) has significant performance advantages, even without using
840 the optional C extension for speedups. Simplejson is also supported on
844 (define-public python2-simplejson
845 (package-with-python2 python-simplejson))
848 (define-public python2-pyicu
850 (name "python2-pyicu")
855 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
859 "1y361x82lnh9k9srmdx3q92z5iag112z7r5fxm0n1sfwb349yjdw"))))
860 (build-system python-build-system)
864 `(#:python ,python-2 ; Python 3 works also, but needs special care for
865 ; linking with libpython3.3m
866 #:tests? #f)) ; no check target
867 (home-page "http://pyicu.osafoundation.org/")
868 (synopsis "Python extension wrapping the ICU C++ API")
870 "PyICU is a python extension wrapping the ICU C++ API.")
873 (define-public python2-dogtail
874 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
875 ;; spaces in indentation" with Python 3.
877 (name "python2-dogtail")
882 "https://fedorahosted.org/released/dogtail/dogtail-"
886 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
887 (build-system python-build-system)
888 (arguments `(#:python ,python-2
889 #:tests? #f)) ; invalid command "test"
890 (home-page "https://fedorahosted.org/dogtail/")
891 (synopsis "GUI test tool and automation framework written in Python")
893 "Dogtail is a GUI test tool and automation framework written in Python.
894 It uses Accessibility (a11y) technologies to communicate with desktop
895 applications. dogtail scripts are written in Python and executed like any
896 other Python program.")
899 (define-public python2-empy
901 (name "python2-empy")
905 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
909 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
910 (build-system python-build-system)
913 #:phases (alist-replace
916 (zero? (system* "./test.sh")))
918 (home-page "http://www.alcyone.com/software/empy/")
919 (synopsis "Templating system for Python")
921 "EmPy is a system for embedding Python expressions and statements in
922 template text; it takes an EmPy source file, processes it, and produces
923 output. This is accomplished via expansions, which are special signals to the
924 EmPy system and are set off by a special prefix (by default the at sign, @).
925 EmPy can expand arbitrary Python expressions and statements in this way, as
926 well as a variety of special forms. Textual data not explicitly delimited in
927 this way is sent unaffected to the output, allowing Python to be used in
928 effect as a markup language. Also supported are callbacks via hooks,
929 recording and playback via diversions, and dynamic, chainable filters. The
930 system is highly configurable via command line options and embedded
934 (define-public python2-element-tree
936 (name "python2-element-tree")
941 "http://effbot.org/media/downloads/elementtree-"
942 version "-20050316.tar.gz"))
945 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
946 (build-system python-build-system)
948 `(#:python ,python-2 ; seems to be part of Python 3
949 #:tests? #f)) ; no 'test' sub-command
950 (synopsis "Toolkit for XML processing in Python")
952 "ElementTree is a Python library supporting lightweight XML processing.")
953 (home-page "http://effbot.org/zone/element-index.htm")
954 (license (x11-style "http://docs.python.org/2/license.html"
955 "Like \"CWI LICENSE AGREEMENT FOR PYTHON \
956 0.9.0 THROUGH 1.2\"."))))
958 (define-public python2-pybugz
960 (name "python2-pybugz")
965 "http://bits.liquidx.net/projects/pybugz/pybugz-"
969 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
970 (patches (map search-patch
971 (list "pybugz-stty.patch"
972 "pybugz-encode-error.patch")))))
973 (build-system python-build-system)
975 `(#:python ,python-2 ; SyntaxError with Python 3
976 #:tests? #f)) ; no 'test' sub-command
977 (inputs `(("element-tree" ,python2-element-tree)))
978 (synopsis "Python and command-line interface to Bugzilla")
980 "PyBugz is a Python library and command-line tool to query the Bugzilla
981 bug tracking system. It is meant as an aid to speed up interaction with the
983 (home-page "http://www.liquidx.net/pybugz/")
986 (define-public python-enum34
988 (name "python-enum34")
993 (uri (string-append "https://pypi.python.org/packages/source/e/"
994 "enum34/enum34-" version ".tar.gz"))
997 "0dg6mpg9n4g9diyrbnbb5vd9d1qw9f265zwhknqy0mxh0cvmjjrq"))))
998 (build-system python-build-system)
1000 `(("python-setuptools" ,python-setuptools)))
1005 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1007 (home-page "https://pypi.python.org/pypi/enum34")
1008 (synopsis "Backported Python 3.4 Enum")
1010 "Enum34 is the new Python stdlib enum module available in Python 3.4
1011 backported for previous versions of Python from 2.4 to 3.3.")
1014 (define-public python-parse-type
1016 (name "python-parse-type")
1021 (uri (string-append "https://pypi.python.org/packages/source/p/"
1022 "parse_type/parse_type-" version ".tar.gz"))
1025 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1026 (build-system python-build-system)
1028 `(("python-setuptools" ,python-setuptools)
1029 ("python-six" ,python-six)
1030 ("python-parse" ,python-parse)
1031 ("python-enum34" ,python-enum34))) ;required for python<3.4
1032 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1033 (home-page "https://github.com/jenisys/parse_type")
1034 (synopsis "Extended parse module")
1036 "Parse_type extends the python parse module.")
1039 (define-public python-parse
1041 (name "python-parse")
1046 (uri (string-append "https://pypi.python.org/packages/source/p/"
1047 "parse/parse-" version ".tar.gz"))
1050 "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
1051 (build-system python-build-system)
1056 (lambda _ (zero? (system* "python" "test_parse.py")))
1058 (home-page "https://github.com/r1chardj0n3s/parse")
1059 (synopsis "Parse strings")
1061 "Parse strings using a specification based on the Python format()
1066 (define-public scons
1072 (uri (string-append "mirror://sourceforge/scons/scons-"
1076 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1077 (build-system python-build-system)
1079 ;; With Python 3.x, fails to build with a syntax error.
1080 `(#:python ,python-2
1081 #:tests? #f)) ; no 'python setup.py test' command
1082 (home-page "http://scons.org/")
1083 (synopsis "Software construction tool written in Python")
1085 "SCons is a software construction tool. Think of SCons as an improved,
1086 cross-platform substitute for the classic Make utility with integrated
1087 functionality similar to autoconf/automake and compiler caches such as ccache.
1088 In short, SCons is an easier, more reliable and faster way to build
1092 (define-public python-extras
1094 (name "python-extras")
1100 "https://pypi.python.org/packages/source/e/extras/extras-"
1104 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1105 (build-system python-build-system)
1107 `(("python-setuptools" ,python-setuptools)))
1109 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1111 (home-page "https://github.com/testing-cabal/extras")
1112 (synopsis "Useful extensions to the Python standard library")
1114 "Extras is a set of extensions to the Python standard library.")
1115 (license license:expat)))
1117 (define-public python2-extras
1118 (package-with-python2 python-extras))
1120 (define-public python-mimeparse
1122 (name "python-mimeparse")
1128 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1132 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1133 (build-system python-build-system)
1135 `(("python-setuptools" ,python-setuptools)))
1137 '(#:tests? #f)) ; no setup.py test command
1139 "https://github.com/dbtsai/python-mimeparse")
1140 (synopsis "Python library for parsing MIME types")
1142 "Mimeparse provides basic functions for parsing MIME type names and
1143 matching them against a list of media-ranges.")
1144 (license license:expat)))
1146 (define-public python2-mimeparse
1147 (package-with-python2 python-mimeparse))
1149 (define-public python-nose
1151 (name "python-nose")
1157 "https://pypi.python.org/packages/source/n/nose/nose-"
1161 "00qymfgwg4iam4xi0w9bnv7lcb3fypq1hzfafzgs1rfmwaj67g3n"))))
1162 (build-system python-build-system)
1164 `(("python-setuptools" ,python-setuptools)))
1166 '(#:tests? #f)) ; FIXME: test suite fails
1167 (home-page "http://readthedocs.org/docs/nose/")
1168 (synopsis "Python testing library")
1170 "Nose extends the unittest library to make testing easier.")
1171 (license lgpl2.0+)))
1173 (define-public python2-nose
1174 (package-with-python2 python-nose))
1176 (define-public python-unittest2
1178 (name "python-unittest2")
1184 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1188 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1189 (build-system python-build-system)
1191 `(("python-setuptools" ,python-setuptools)))
1192 (home-page "http://pypi.python.org/pypi/unittest2")
1193 (synopsis "Python unit testing library")
1195 "Unittest2 is a replacement for the unittest module in the Python
1199 (define-public python2-unittest2
1200 (package (inherit python-unittest2)
1201 (name "python2-unittest2")
1207 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1211 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1213 `(("python2-setuptools" ,python-setuptools)))
1215 `(#:python ,python-2
1216 #:tests? #f)))) ; no setup.py test command
1218 (define-public python-py
1226 "https://pypi.python.org/packages/source/p/py/py-"
1230 "1jkhffpai419v5rickm2vz86p9bkg3b3kcm2k4bi5wfajhw2m3xs"))))
1231 (build-system python-build-system)
1233 `(("python-setuptools" ,python-setuptools)))
1234 (home-page "http://pylib.readthedocs.org/")
1235 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1237 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1238 code introspection, and logging.")
1239 (license license:expat)))
1241 (define-public python2-py
1242 (package-with-python2 python-py))
1244 (define-public python-pytest
1246 (name "python-pytest")
1252 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1256 "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr"))
1257 (modules '((guix build utils)))
1259 ;; One of the tests involves the /usr directory, so it fails.
1260 '(substitute* "testing/test_argcomplete.py"
1261 (("def test_remove_dir_prefix\\(self\\):")
1262 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1263 (build-system python-build-system)
1265 `(("python-setuptools" ,python-setuptools)
1266 ("python-py" ,python-py)
1267 ("python-nose" ,python-nose)
1268 ("python-mock" ,python-mock)))
1269 (home-page "http://pytest.org")
1270 (synopsis "Python testing library")
1272 "Pytest is a testing tool that provides auto-discovery of test modules
1273 and functions, detailed info on failing assert statements, modular fixtures,
1274 and many external plugins.")
1275 (license license:expat)))
1277 (define-public python2-pytest
1278 (package-with-python2 python-pytest))
1280 (define-public python-scripttest
1282 (name "python-scripttest")
1288 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1292 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1293 (build-system python-build-system)
1295 `(("python-setuptools" ,python-setuptools)
1296 ("python-pytest" ,python-pytest)))
1297 (home-page "http://pythonpaste.org/scripttest/")
1298 (synopsis "Python library to test command-line scripts")
1299 (description "Scripttest is a Python helper library for testing
1300 interactive command-line applications. With it you can run a script in a
1301 subprocess and see the output as well as any file modifications.")
1302 (license license:expat)))
1304 (define-public python2-scripttest
1305 (package-with-python2 python-scripttest))
1307 (define-public python-testtools
1309 (name "python-testtools")
1315 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1319 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1320 (build-system python-build-system)
1322 `(("python-mimeparse" ,python-mimeparse)))
1324 `(("python-setuptools" ,python-setuptools)
1325 ("python-extras" ,python-extras)))
1326 (home-page "https://github.com/testing-cabal/testtools")
1328 "Extensions to the Python standard library unit testing framework")
1330 "Testtools extends the Python standard library unit testing framework to
1331 provide matchers, more debugging information, and cross-Python
1335 (define-public python2-testtools
1336 (package-with-python2 python-testtools))
1338 (define-public python-testscenarios
1340 (name "python-testscenarios")
1346 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1350 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1351 (build-system python-build-system)
1353 `(("python-setuptools" ,python-setuptools)
1354 ("python-testtools" ,python-testtools)
1355 ("python-mimeparse" ,python-mimeparse)))
1356 (home-page "https://launchpad.net/testscenarios")
1357 (synopsis "Pyunit extension for dependency injection")
1359 "Testscenarios provides clean dependency injection for Python unittest
1361 (license (list bsd-3 asl2.0)))) ; at the user's option
1363 (define-public python2-testscenarios
1364 (package-with-python2 python-testscenarios))
1366 (define-public python-testresources
1368 (name "python-testresources")
1374 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1378 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1379 (build-system python-build-system)
1381 `(("python-setuptools" ,python-setuptools)))
1382 (home-page "https://launchpad.net/testresources")
1384 "Pyunit extension for managing test resources")
1386 "Testresources is an extension to Python's unittest to allow declarative
1387 use of resources by test cases.")
1388 (license (list bsd-3 asl2.0)))) ; at the user's option
1390 (define-public python2-testresources
1391 (package-with-python2 python-testresources))
1393 (define-public python-subunit
1395 (name "python-subunit")
1401 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1405 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1406 (build-system python-build-system)
1408 `(("python-setuptools" ,python-setuptools)
1409 ("python-testtools" ,python-testtools)
1410 ("python-mimeparse" ,python-mimeparse)
1411 ("python-testscenarios" ,python-testscenarios)))
1412 (home-page "http://launchpad.net/subunit")
1413 (synopsis "Python implementation of the subunit protocol")
1415 "Python-subunit is a Python implementation of the subunit test streaming
1417 (license (list bsd-3 asl2.0)))) ; at the user's option
1419 (define-public python2-subunit
1420 (package-with-python2 python-subunit))
1422 (define-public python-fixtures
1424 (name "python-fixtures")
1430 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1434 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1435 (build-system python-build-system)
1437 `(("python-setuptools" ,python-setuptools)))
1439 '(#:tests? #f)) ; no setup.py test command
1440 (home-page "https://launchpad.net/python-fixtures")
1441 (synopsis "Python test fixture library")
1443 "Fixtures provides a way to create reusable state, useful when writing
1445 (license (list bsd-3 asl2.0)))) ; at user's option
1447 (define-public python2-fixtures
1448 (package-with-python2 python-fixtures))
1450 (define-public python-testrepository
1452 (name "python-testrepository")
1458 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
1462 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
1463 (build-system python-build-system)
1465 `(("python-setuptools" ,python-setuptools)
1466 ("python-testtools" ,python-testtools)
1467 ("python-subunit" ,python-subunit)
1468 ("python-fixtures" ,python-fixtures)
1469 ("python-mimeparse" ,python-mimeparse)))
1470 (home-page "https://launchpad.net/testrepository")
1471 (synopsis "Database for Python test results")
1472 (description "Testrepository provides a database of test results which can
1473 be used as part of a developer's workflow to check things such as what tests
1474 have failed since the last commit or what tests are currently failing.")
1475 (license (list bsd-3 asl2.0)))) ; at user's option
1477 (define-public python2-testrepository
1478 (package-with-python2 python-testrepository))
1480 (define-public python-coverage
1482 (name "python-coverage")
1488 "https://pypi.python.org/packages/source/c/coverage/coverage-"
1492 "0knlbq79g2ww6xzsyknj9rirrgrgc983dpa2d9nkdf31mb2a3bni"))))
1493 (build-system python-build-system)
1495 `(("python-setuptools" ,python-setuptools)))
1496 (home-page "http://nedbatchelder.com/code/coverage")
1497 (synopsis "Code coverage measurement for Python")
1499 "Coverage measures code coverage, typically during test execution. It
1500 uses the code analysis tools and tracing hooks provided in the Python standard
1501 library to determine which lines are executable, and which have been
1505 (define-public python2-coverage
1506 (package-with-python2 python-coverage))
1508 (define-public python-discover
1510 (name "python-discover")
1516 "https://pypi.python.org/packages/source/d/discover/discover-"
1520 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
1521 (build-system python-build-system)
1523 `(("python-setuptools" ,python-setuptools)))
1524 (home-page "http://pypi.python.org/pypi/discover/")
1526 "Python test discovery for unittest")
1528 "Discover provides test discovery for unittest, a feature that has been
1529 backported from Python 2.7 for Python 2.4+.")
1532 (define-public python2-discover
1533 (package-with-python2 python-discover))
1535 (define-public behave
1541 (uri (string-append "https://pypi.python.org/packages/source/b/"
1542 name "/" name "-" version ".tar.gz"))
1545 "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
1546 (build-system python-build-system)
1548 `(("python-setuptools" ,python-setuptools)
1549 ("python-six" ,python-six)
1550 ("python-enum43" ,python-enum34)
1551 ("python-parse" ,python-parse)
1552 ("python-parse-type" ,python-parse-type)))
1553 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
1555 (home-page "http://github.com/behave/behave")
1556 (synopsis "Python behavior-driven development")
1558 "Behave is a tool for behavior-driven development in python.
1559 Behavior-driven development (or BDD) is an agile software development
1560 technique that encourages collaboration between developers, QA and
1561 non-technical or business participants in a software project. Behave uses
1562 tests written in a natural language style, backed up by Python code.")
1565 (define-public python-exif-read
1567 (name "python-exif-read")
1573 "https://pypi.python.org/packages/source/E/ExifRead/ExifRead-"
1577 "17c627gcdmyc05hz4zk8qs4pjgw6rc68qzjzgz8gh1cmpsd7acf1"))))
1578 (build-system python-build-system)
1580 `(("python-setuptools" ,python-setuptools)))
1581 (arguments `(#:tests? #f)) ; no tests
1582 (home-page "https://github.com/ianare/exif-py")
1583 (synopsis "Python library to extract EXIF data from image files")
1585 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
1589 (define-public python2-exif-read
1590 (package-with-python2 python-exif-read))
1592 (define-public python-pyld
1594 (name "python-pyld")
1600 "https://pypi.python.org/packages/source/P/PyLD/PyLD-"
1604 "1l9ymj85fsvayqplinzpk0kyiq6m74ps9xd3a9fhlxfn1rldf8x8"))))
1605 (build-system python-build-system)
1607 `(("python-setuptools" ,python-setuptools)))
1608 (arguments `(#:tests? #f)) ; no tests
1609 (home-page "http://github.com/digitalbazaar/pyld")
1610 (synopsis "Python implementation of the JSON-LD specification")
1612 "PyLD is an implementation of the JSON-LD specification.")
1615 (define-public python2-pyld
1616 (package-with-python2 python-pyld))
1618 (define-public python-certifi
1620 (name "python-certifi")
1621 (version "14.05.14")
1626 "https://pypi.python.org/packages/source/c/certifi/certifi-"
1630 "0s8vxzfz6s4m6fvxc7z25k9j35w0rh6jkw3wwcd1az1mssncn6qy"))))
1631 (build-system python-build-system)
1633 `(("python-setuptools" ,python-setuptools)))
1634 (arguments `(#:tests? #f)) ; no tests
1635 (home-page "http://python-requests.org/")
1636 (synopsis "Python CA certificate bundle")
1638 "Certifi is a Python library that contains a CA certificate bundle, which
1639 is used by the Requests library to verify HTTPS requests.")
1642 (define-public python2-certifi
1643 (package-with-python2 python-certifi))
1645 (define-public python-click
1647 (name "python-click")
1653 "https://pypi.python.org/packages/source/c/click/click-"
1656 (base32 "0294x9g28w6zgswl0rsygkwi0wf6n480gf7fiiw5f9az3xhh77pl"))))
1657 (build-system python-build-system)
1659 `(("python-setuptools" ,python-setuptools)))
1660 (home-page "http://click.pocoo.org")
1661 (synopsis "Command line library for Python")
1663 "Click is a Python package for creating command line interfaces in a
1664 composable way with as little code as necessary. Its name stands for
1665 \"Command Line Interface Creation Kit\". It's highly configurable but comes
1666 with sensible defaults out of the box.")
1669 (define-public python2-click
1670 (package-with-python2 python-click))
1672 (define-public python-requests
1674 (name "python-requests")
1680 "https://pypi.python.org/packages/source/r/requests/requests-"
1684 "0gknlfx1wakrrm1zi8gi03x2lzj4dsns0vjw0nsmgqvkphyf01vh"))))
1685 (build-system python-build-system)
1687 `(("python-setuptools" ,python-setuptools)
1688 ("python-certifi" ,python-certifi)))
1689 (arguments `(#:tests? #f)) ; no tests
1690 (home-page "http://python-requests.org/")
1691 (synopsis "Python HTTP library")
1693 "Requests is a Python HTTP client library. It aims to be easier to use
1694 than Python’s urllib2 library.")
1697 (define-public python2-requests
1698 (package-with-python2 python-requests))
1700 (define-public python-jsonschema
1702 (name "python-jsonschema")
1708 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
1712 "1yik3031ziygvq66rj3mzfqdgxj29sg1bkfc46wsgi7lnbqs560j"))))
1713 (build-system python-build-system)
1715 `(("python-setuptools" ,python-setuptools)))
1716 (home-page "http://github.com/Julian/jsonschema")
1717 (synopsis "Implementation of JSON Schema for Python")
1719 "Jsonschema is an implementation of JSON Schema for Python.")
1720 (license license:expat)))
1722 (define-public python2-jsonschema
1723 (package-with-python2 python-jsonschema))
1725 (define-public python-unidecode
1727 (name "python-unidecode")
1733 "https://pypi.python.org/packages/source/U/Unidecode/Unidecode-"
1737 "0yv56vc49rvippyxgxvcyz7jklc07ky38rcspax7p00sgmriiljc"))))
1738 (build-system python-build-system)
1740 `(("python-setuptools" ,python-setuptools)))
1741 (home-page "https://pypi.python.org/pypi/Unidecode")
1742 (synopsis "ASCII transliterations of Unicode text")
1744 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
1745 useful when integrating with legacy code that doesn't support Unicode, or for
1746 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
1747 machine identifiers from human-readable Unicode strings that should still be
1748 somewhat intelligeble.")
1751 (define-public python2-unidecode
1752 (package-with-python2 python-unidecode))
1754 (define-public python-pyjwt
1756 (name "python-pyjwt")
1762 "https://pypi.python.org/packages/source/P/PyJWT/PyJWT-"
1766 "1ahqblfy2sj3xz34wsa48cn9rp0dspzq56p54i5znmws3b8gml6g"))))
1767 (build-system python-build-system)
1769 `(("python-setuptools" ,python-setuptools)))
1771 '(#:tests? #f)) ; test suite doesn't work
1772 (home-page "http://github.com/progrium/pyjwt")
1773 (synopsis "JSON Web Token implementation in Python")
1775 "PyJWT is a JSON Web Token implementation written in Python.")
1776 (license license:expat)))
1778 (define-public python2-pyjwt
1779 (package-with-python2 python-pyjwt))
1781 (define-public python-oauthlib
1783 (name "python-oauthlib")
1789 "https://pypi.python.org/packages/source/o/oauthlib/oauthlib-"
1793 "1yaj3j64la4arwsbhbfmpnickzh3jpg9nlpyg409v8pp24isn48a"))))
1794 (build-system python-build-system)
1796 `(("python-setuptools" ,python-setuptools)
1797 ("python-pyjwt" ,python-pyjwt)
1798 ("python-pycrypto" ,python-pycrypto)
1799 ("python-nose" ,python-nose)
1800 ("python-mock" ,python-mock)))
1801 (home-page "https://github.com/idan/oauthlib")
1802 (synopsis "OAuth implementation for Python")
1804 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1805 OAuth request-signing logic.")
1808 (define-public python2-oauthlib
1809 (let ((base (package-with-python2 python-oauthlib)))
1813 (append (package-inputs base)
1814 `(("python2-unittest2" ,python2-unittest2)))))))
1816 (define-public python-itsdangerous
1818 (name "python-itsdangerous")
1824 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
1828 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
1829 (build-system python-build-system)
1831 `(("python-setuptools" ,python-setuptools)))
1832 (home-page "http://github.com/mitsuhiko/itsdangerous")
1833 (synopsis "Python library for passing data to/from untrusted environments")
1835 "Itsdangerous provides various helpers to pass trusted data to untrusted
1836 environments and back.")
1839 (define-public python2-itsdangerous
1840 (package-with-python2 python-itsdangerous))
1842 (define-public python-pyyaml
1844 (name "python-pyyaml")
1850 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
1854 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
1855 (build-system python-build-system)
1857 `(("libyaml" ,libyaml)))
1859 `(("python-setuptools" ,python-setuptools)))
1860 (home-page "http://pyyaml.org/wiki/PyYAML")
1861 (synopsis "YAML parser and emitter for Python")
1863 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
1864 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
1865 API, and sensible error messages. PyYAML supports standard YAML tags and
1866 provides Python-specific tags that allow to represent an arbitrary Python
1868 (license license:expat)))
1870 (define-public python2-pyyaml
1871 (package-with-python2 python-pyyaml))
1873 (define-public python-virtualenv
1875 (name "python-virtualenv")
1881 "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-"
1885 "1xq4prmg25n9cz5zcvbqx68lmc3kl39by582vd8pzs9f3qalqyiy"))))
1886 (build-system python-build-system)
1888 `(("python-setuptools" ,python-setuptools)
1889 ("python-mock" ,python-mock)
1890 ("python-nose" ,python-nose)))
1891 (home-page "https://virtualenv.pypa.io/")
1892 (synopsis "Virtual Python environment builder")
1894 "Virtualenv is a tool to create isolated Python environments.")
1895 (license license:expat)))
1897 (define-public python2-virtualenv
1898 (package-with-python2 python-virtualenv))
1900 (define-public python-markupsafe
1902 (name "python-markupsafe")
1908 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
1912 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
1913 (build-system python-build-system)
1915 `(("python-setuptools" ,python-setuptools)))
1916 (home-page "http://github.com/mitsuhiko/markupsafe")
1917 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
1919 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
1923 (define-public python2-markupsafe
1924 (package-with-python2 python-markupsafe))
1926 (define-public python-jinja2
1928 (name "python-jinja2")
1934 "https://pypi.python.org/packages/source/J/Jinja2/Jinja2-"
1938 "1nwg9yfqgy421lncnm63k1zf9xkd1klc0jm0fr4p3dad01fsq91f"))))
1939 (build-system python-build-system)
1941 `(("python-setuptools" ,python-setuptools)
1942 ("python-markupsafe" ,python-markupsafe)))
1943 (home-page "http://jinja.pocoo.org/")
1944 (synopsis "Python template engine")
1946 "Jinja2 is a small but fast and easy to use stand-alone template engine
1947 written in pure Python.")
1950 (define-public python2-jinja2
1951 (package-with-python2 python-jinja2))
1953 (define-public python-docutils
1955 (name "python-docutils")
1961 "https://pypi.python.org/packages/source/d/docutils/docutils-"
1965 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
1966 (build-system python-build-system)
1968 `(("python-setuptools" ,python-setuptools)))
1970 '(#:tests? #f)) ; no setup.py test command
1971 (home-page "http://docutils.sourceforge.net/")
1972 (synopsis "Python Documentation Utilities")
1974 "Docutils is a modular system for processing documentation into useful
1975 formats, such as HTML, XML, and LaTeX. For input Docutils supports
1977 ;; Most of the source code is public domain, but some source files are
1978 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
1979 (license (list public-domain psfl bsd-2 gpl3+))))
1981 (define-public python2-docutils
1982 (package-with-python2 python-docutils))
1984 (define-public python-pygments
1986 (name "python-pygments")
1992 "https://pypi.python.org/packages/source/P/Pygments/Pygments-"
1996 "1h11r6ss8waih51vcksfvzghfxiav2f8svc0812fa5kmyz5d97kr"))))
1997 (build-system python-build-system)
1999 `(("python-setuptools" ,python-setuptools)))
2000 (home-page "http://pygments.org/")
2001 (synopsis "Syntax highlighting")
2003 "Pygments is a syntax highlighting package written in Python.")
2006 (define-public python2-pygments
2007 (package-with-python2 python-pygments))
2009 (define-public python-sphinx
2011 (name "python-sphinx")
2017 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2021 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2022 (build-system python-build-system)
2024 `(("python-setuptools" ,python-setuptools)
2025 ("python-jinja2" ,python-jinja2)
2026 ("python-docutils" ,python-docutils)
2027 ("python-pygments" ,python-pygments)))
2028 (home-page "http://sphinx-doc.org/")
2029 (synopsis "Python documentation generator")
2030 (description "Sphinx is a tool that makes it easy to create documentation
2031 for Python projects or other documents consisting of multiple reStructuredText
2035 (define-public python2-sphinx
2036 (package-with-python2 python-sphinx))
2038 (define-public python-sphinx-rtd-theme
2040 (name "python-sphinx-rtd-theme")
2045 (uri (string-append "https://pypi.python.org/packages/source/s/"
2046 "sphinx_rtd_theme/sphinx_rtd_theme-"
2050 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2051 (build-system python-build-system)
2053 `(;; With standard flags, the install phase attempts to create a zip'd
2054 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2056 #:configure-flags '("--single-version-externally-managed"
2057 "--record=sphinx-rtd-theme.txt")))
2059 `(("python-setuptools" ,python-setuptools)))
2061 `(("python-docutils" ,python-docutils)
2062 ("python-sphinx" ,python-sphinx)))
2063 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2064 (synopsis "ReadTheDocs.org theme for Sphinx")
2065 (description "A theme for Sphinx used by ReadTheDocs.org.")
2066 (license license:expat)))
2068 (define-public python2-sphinx-rtd-theme
2069 (package-with-python2 python-sphinx-rtd-theme))
2071 (define-public python-feedgenerator
2073 (name "python-feedgenerator")
2074 (version "20150710.97185b7")
2076 ;; Using the git checkout for now because license file not added till
2077 ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39
2081 (url "https://github.com/dmdm/feedgenerator-py3k.git")
2082 (commit "97185b7566c240c4bf5ed80db7d6c271204dab39")))
2085 "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a"))))
2087 `(;; With standard flags, the install phase attempts to create a zip'd
2088 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2090 #:configure-flags '("--single-version-externally-managed"
2091 "--record=feedgenerator.txt")))
2092 (build-system python-build-system)
2094 `(("python-setuptools" ,python-setuptools)
2095 ("python-pytz" ,python-pytz)
2096 ("python-six" ,python-six)))
2098 "https://github.com/dmdm/feedgenerator-py3k.git")
2100 "Standalone version of Django's Atom/RSS feed generator")
2102 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2103 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2106 (define-public python2-feedgenerator
2107 (package-with-python2 python-feedgenerator))
2109 (define-public python-scikit-learn
2111 (name "python-scikit-learn")
2117 "https://github.com/scikit-learn/scikit-learn/archive/"
2121 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
2122 (build-system python-build-system)
2127 ;; some tests require access to "$HOME"
2128 (lambda _ (setenv "HOME" "/tmp"))
2129 ;; Tests can only be run after the library has been installed and not
2130 ;; within the source directory.
2134 (with-directory-excursion "/tmp"
2135 ;; With Python 3 one test of 3334 fails
2136 ;; (sklearn.tests.test_common.test_transformers); see
2137 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2138 (system* "nosetests" "-v" "sklearn")))
2139 (alist-delete 'check %standard-phases)))))
2141 `(("openblas" ,openblas)
2142 ("python-nose" ,python-nose)))
2144 `(("python-numpy" ,python-numpy)
2145 ("python-scipy" ,python-scipy)))
2146 (home-page "http://scikit-learn.org/")
2147 (synopsis "Machine Learning in Python")
2149 "Scikit-learn provides simple and efficient tools for data
2150 mining and data analysis.")
2153 (define-public python2-scikit-learn
2154 (let ((scikit (package-with-python2 python-scikit-learn)))
2155 (package (inherit scikit)
2157 `(("python2-numpy" ,python2-numpy)
2158 ("python2-scipy" ,python2-scipy)
2162 "python-scipy" (package-propagated-inputs scikit))))))))
2164 (define-public python-scikit-image
2166 (name "python-scikit-image")
2172 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2175 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2176 (build-system python-build-system)
2178 `(("python-matplotlib" ,python-matplotlib)
2179 ("python-networkx" ,python-networkx)
2180 ("python-numpy" ,python-numpy)
2181 ("python-scipy" ,python-scipy)
2182 ("python-six" ,python-six)
2183 ("python-pillow" ,python-pillow)))
2185 `(("python-cython" ,python-cython)
2186 ("python-setuptools" ,python-setuptools)))
2187 (home-page "http://scikit-image.org/")
2188 (synopsis "Image processing in Python")
2190 "Scikit-image is a collection of algorithms for image processing.")
2193 (define-public python2-scikit-image
2194 (let ((scikit-image (package-with-python2 python-scikit-image)))
2195 (package (inherit scikit-image)
2197 `(("python2-mock" ,python2-mock)
2198 ,@(package-native-inputs scikit-image)))
2200 `(("python2-pytz" ,python2-pytz)
2201 ,@(package-propagated-inputs scikit-image))))))
2203 (define-public python-redis
2205 (name "python-redis")
2211 "https://pypi.python.org/packages/source/r/redis/redis-"
2214 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
2215 (build-system python-build-system)
2216 ;; Tests require a running Redis server
2217 (arguments '(#:tests? #f))
2219 `(("python-setuptools" ,python-setuptools)
2220 ("python-pytest" ,python-pytest)))
2221 (home-page "https://github.com/andymccurdy/redis-py")
2222 (synopsis "Redis Python client")
2224 "This package provides a Python interface to the Redis key-value store.")
2225 (license license:expat)))
2227 (define-public python2-redis
2228 (package-with-python2 python-redis))
2230 (define-public python-rq
2238 "https://pypi.python.org/packages/source/r/rq/rq-"
2241 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
2242 (build-system python-build-system)
2244 `(("python-click" ,python-click)
2245 ("python-redis" ,python-redis)))
2247 `(("python-setuptools" ,python-setuptools)))
2248 (home-page "http://python-rq.org/")
2249 (synopsis "Simple job queues for Python")
2251 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2252 processing them in the background with workers. It is backed by Redis and it
2253 is designed to have a low barrier to entry.")
2256 (define-public python2-rq
2257 (package-with-python2 python-rq))
2259 (define-public python-cython
2261 (name "python-cython")
2266 (uri (string-append "http://cython.org/release/Cython-"
2270 "0ddz2l2dvcy5hdkxx4xlfiwpccvwia7ixgcy4h0pdv46a4i4vxj3"))))
2271 (build-system python-build-system)
2272 ;; we need the full python package and not just the python-wrapper
2273 ;; because we need libpython3.3m.so
2275 `(("python" ,python)))
2280 ;; some tests require access to "$HOME/.cython"
2281 (lambda* _ (setenv "HOME" "/tmp"))
2284 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
2285 %standard-phases))))
2286 (home-page "http://cython.org/")
2287 (synopsis "C extensions for Python")
2288 (description "Cython is an optimising static compiler for both the Python
2289 programming language and the extended Cython programming language. It makes
2290 writing C extensions for Python as easy as Python itself.")
2293 (define-public python2-cython
2294 (package (inherit (package-with-python2 python-cython))
2295 (name "python2-cython")
2297 `(("python-2" ,python-2))))) ; this is not automatically changed
2299 ;; This version of numpy is missing the documentation and is only used to
2300 ;; build matplotlib which is required to build numpy's documentation.
2301 (define python-numpy-bootstrap
2303 (name "python-numpy-bootstrap")
2308 (uri (string-append "mirror://sourceforge/numpy"
2309 "/numpy-" version ".tar.gz"))
2312 "070ybfvpgfmiz2hs94x445hvkh9dh52nyi0m8jp5kdihgvhbnx80"))))
2313 (build-system python-build-system)
2315 `(("python-nose" ,python-nose)
2316 ("openblas" ,openblas)
2317 ("lapack" ,lapack)))
2319 `(("gfortran" ,gfortran)))
2323 'build 'set-environment-variables
2324 (lambda* (#:key inputs #:allow-other-keys)
2325 (call-with-output-file "site.cfg"
2329 libraries = openblas
2330 library_dirs = ~a/lib
2331 include_dirs = ~a/include
2334 lapack_libs = lapack
2335 library_dirs = ~a/lib
2336 include_dirs = ~a/include
2338 (assoc-ref inputs "openblas")
2339 (assoc-ref inputs "openblas")
2340 (assoc-ref inputs "lapack")
2341 (assoc-ref inputs "lapack"))))
2342 ;; Use "gcc" executable, not "cc".
2343 (substitute* "numpy/distutils/system_info.py"
2344 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
2345 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
2347 ;; Tests can only be run after the library has been installed and not
2348 ;; within the source directory.
2352 (with-directory-excursion "/tmp"
2353 (zero? (system* "python" "-c"
2354 "import numpy; numpy.test(verbose=2)"))))
2357 %standard-phases)))))
2358 (home-page "http://www.numpy.org/")
2359 (synopsis "Fundamental package for scientific computing with Python")
2360 (description "NumPy is the fundamental package for scientific computing
2361 with Python. It contains among other things: a powerful N-dimensional array
2362 object, sophisticated (broadcasting) functions, tools for integrating C/C++
2363 and Fortran code, useful linear algebra, Fourier transform, and random number
2367 (define python2-numpy-bootstrap
2368 (package-with-python2 python-numpy-bootstrap))
2370 (define-public python2-fastlmm
2372 (name "python2-fastlmm")
2378 "https://pypi.python.org/packages/source/f/fastlmm"
2379 "/fastlmm-" version ".zip"))
2382 "023sydkrc3yxad2bycar02jfswwlh4199kafzhf2bssyx2c3xa0l"))))
2383 (build-system python-build-system)
2385 `(#:python ,python-2)) ; only Python 2.7 is supported
2387 `(("python2-numpy" ,python2-numpy)
2388 ("python2-scipy" ,python2-scipy)
2389 ("python2-matplotlib" ,python2-matplotlib)
2390 ("python2-pandas" ,python2-pandas)
2391 ("python2-scikit-learn" ,python2-scikit-learn)
2392 ("python2-cython" ,python2-cython)
2393 ("python2-pysnptools" ,python2-pysnptools)))
2396 ("python2-mock" ,python2-mock)
2397 ("python2-setuptools" ,python2-setuptools)))
2398 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
2399 (synopsis "Perform genome-wide association studies on large data sets")
2401 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
2402 Models, is a program for performing both single-SNP and SNP-set genome-wide
2403 association studies (GWAS) on extremely large data sets.")
2406 (define-public python-numpy
2407 (package (inherit python-numpy-bootstrap)
2408 (name "python-numpy")
2409 (outputs '("out" "doc"))
2412 ("python-setuptools" ,python-setuptools)
2413 ("python-matplotlib" ,python-matplotlib)
2414 ("python-sphinx" ,python-sphinx)
2415 ("python-pyparsing" ,python-pyparsing)
2416 ("python-numpydoc" ,python-numpydoc)
2417 ,@(package-inputs python-numpy-bootstrap)))
2419 `(("pkg-config" ,pkg-config)
2420 ("texlive" ,texlive)
2421 ("texinfo" ,texinfo)
2423 ,@(package-native-inputs python-numpy-bootstrap)))
2425 `(,@(substitute-keyword-arguments
2426 (package-arguments python-numpy-bootstrap)
2429 'install 'install-doc
2430 (lambda* (#:key outputs #:allow-other-keys)
2431 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
2433 data "/doc/" ,name "-"
2434 ,(package-version python-numpy-bootstrap)))
2435 (info (string-append data "/info"))
2436 (html (string-append doc "/html"))
2437 (pyver ,(string-append "PYVER=")))
2438 (with-directory-excursion "doc"
2440 (system* "make" "html" pyver)
2441 (system* "make" "latex" "PAPER=a4" pyver)
2442 (system* "make" "-C" "build/latex"
2443 "all-pdf" "PAPER=a4" pyver)
2444 ;; FIXME: Generation of the info file fails.
2445 ;; (system* "make" "info" pyver)
2447 ;; (copy-file "build/texinfo/numpy.info"
2448 ;; (string-append info "/numpy.info"))
2449 (for-each (lambda (file)
2450 (copy-file (string-append "build/latex" file)
2451 (string-append doc file)))
2452 '("/numpy-ref.pdf" "/numpy-user.pdf"))
2453 (with-directory-excursion "build/html"
2454 (for-each (lambda (file)
2455 (let* ((dir (dirname file))
2456 (tgt-dir (string-append html "/" dir)))
2457 (unless (equal? "." dir)
2459 (copy-file file (string-append html "/" file))))
2460 (find-files "." ".*"))))))
2463 (define-public python2-numpy
2464 (let ((numpy (package-with-python2 python-numpy)))
2465 (package (inherit numpy)
2466 ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for
2468 (inputs `(("python2-matplotlib" ,python2-matplotlib)
2469 ,@(alist-delete "python-matplotlib"
2470 (package-inputs numpy)))))))
2472 (define-public python-pyparsing
2474 (name "python-pyparsing")
2479 (uri (string-append "mirror://sourceforge/pyparsing"
2480 "/pyparsing-" version ".tar.gz"))
2483 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
2484 (build-system python-build-system)
2485 (outputs '("out" "doc"))
2487 `(#:tests? #f ; no test target
2488 #:modules ((guix build python-build-system)
2492 'install 'install-doc
2493 (lambda* (#:key outputs #:allow-other-keys)
2494 (let* ((doc (string-append (assoc-ref outputs "doc")
2495 "/share/doc/" ,name "-" ,version))
2496 (html-doc (string-append doc "/html"))
2497 (examples (string-append doc "/examples")))
2503 (copy-file file (string-append tgt "/" (basename file))))
2504 (find-files dir ".*")))
2505 (list "docs" "htmldoc" "examples")
2506 (list doc html-doc examples))))
2508 (home-page "http://pyparsing.wikispaces.com")
2509 (synopsis "Python parsing class library")
2511 "The pyparsing module is an alternative approach to creating and
2512 executing simple grammars, vs. the traditional lex/yacc approach, or the use
2513 of regular expressions. The pyparsing module provides a library of classes
2514 that client code uses to construct the grammar directly in Python code.")
2515 (license license:expat)))
2517 (define-public python2-pyparsing
2518 (package-with-python2 python-pyparsing))
2520 (define-public python-numpydoc
2522 (name "python-numpydoc")
2528 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
2532 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
2533 (modules '((guix build utils)))
2536 ;; Drop a test requiring matplotlib, which we cannot add as an
2537 ;; input since it would create a circular dependency: Extend the
2538 ;; test for Python 3, where it is already dropped, to Python 2.
2539 (substitute* "numpydoc/tests/test_plot_directive.py"
2541 (build-system python-build-system)
2543 `(("python-setuptools" ,python-setuptools)
2544 ("python-docutils" ,python-docutils)
2545 ("python-sphinx" ,python-sphinx)
2546 ("python-nose" ,python-nose)))
2547 (home-page "https://pypi.python.org/pypi/numpydoc")
2549 "Numpy's Sphinx extensions")
2551 "Sphinx extension to support docstrings in Numpy format.")
2554 (define-public python2-numpydoc
2555 (package-with-python2 python-numpydoc))
2557 (define-public python-matplotlib
2559 (name "python-matplotlib")
2564 (uri (string-append "mirror://sourceforge/matplotlib"
2565 "/matplotlib-" version ".tar.gz"))
2568 "0m6v9nwdldlwk22gcd339zg6mny5m301fxgks7z8sb8m9wawg8qp"))))
2569 (build-system python-build-system)
2570 (outputs '("out" "doc"))
2571 (propagated-inputs ; the following packages are all needed at run time
2572 `(("python-pyparsing" ,python-pyparsing)
2573 ("python-pygobject" ,python-pygobject)
2574 ("gobject-introspection" ,gobject-introspection)
2575 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
2576 ;; from 'gtk+') provides the required 'typelib' files used by
2577 ;; 'gobject-introspection'. The location of these files is set with the
2578 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
2579 ;; is done automatically by a 'native-search-path' procedure. However,
2580 ;; at run-time the user must set this variable as follows:
2582 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
2584 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
2585 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
2586 ;; object. For this reason we need to import both libraries.
2587 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
2588 ("python-pycairo" ,python-pycairo)
2589 ("python-cairocffi" ,python-cairocffi)))
2591 `(("python-setuptools" ,python-setuptools)
2592 ("python-dateutil" ,python-dateutil-2)
2593 ("python-six" ,python-six)
2594 ("python-pytz" ,python-pytz)
2595 ("python-numpy" ,python-numpy-bootstrap)
2596 ("python-sphinx" ,python-sphinx)
2597 ("python-numpydoc" ,python-numpydoc)
2598 ("python-nose" ,python-nose)
2599 ("python-mock" ,python-mock)
2601 ("imagemagick" ,imagemagick)
2602 ("freetype" ,freetype)
2605 ("python-pillow" ,python-pillow)
2606 ;; FIXME: Add backends when available.
2607 ;("python-wxpython" ,python-wxpython)
2608 ;("python-pyqt" ,python-pyqt)
2611 `(("pkg-config" ,pkg-config)
2612 ("texlive" ,texlive)
2613 ("texinfo" ,texinfo)))
2617 'build 'configure-environment
2618 (lambda* (#:key outputs inputs #:allow-other-keys)
2619 (let ((cairo (assoc-ref inputs "cairo"))
2620 (gtk+ (assoc-ref inputs "gtk+")))
2621 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
2623 (setenv "LD_LIBRARY_PATH"
2624 (string-append cairo "/lib:" gtk+ "/lib"))
2625 (setenv "HOME" (getcwd))
2626 (call-with-output-file "setup.cfg"
2628 (format port "[rc_options]~%
2629 backend = GTK3Agg~%")))))
2631 'install 'install-doc
2632 (lambda* (#:key outputs #:allow-other-keys)
2633 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
2634 (doc (string-append data "/doc/" ,name "-" ,version))
2635 (info (string-append data "/info"))
2636 (html (string-append doc "/html")))
2637 (with-directory-excursion "doc"
2638 ;; Produce pdf in 'A4' format.
2639 (substitute* (find-files "." "conf\\.py")
2640 (("latex_paper_size = 'letter'")
2641 "latex_paper_size = 'a4'"))
2644 ;; The doc recommends to run the 'html' target twice.
2645 (system* "python" "make.py" "html")
2646 (system* "python" "make.py" "html")
2647 (system* "python" "make.py" "latex")
2648 (system* "python" "make.py" "texinfo")
2649 (copy-file "build/texinfo/matplotlib.info"
2650 (string-append info "/matplotlib.info"))
2651 (copy-file "build/latex/Matplotlib.pdf"
2652 (string-append doc "/Matplotlib.pdf"))
2653 (copy-recursively "build/html" html))))
2654 %standard-phases))))
2655 (home-page "http://matplotlib.org")
2656 (synopsis "2D plotting library for Python")
2658 "Matplotlib is a Python 2D plotting library which produces publication
2659 quality figures in a variety of hardcopy formats and interactive environments
2660 across platforms. Matplotlib can be used in Python scripts, the python and
2661 ipython shell, web application servers, and six graphical user interface
2665 (define-public python2-matplotlib
2666 (let ((matplotlib (package-with-python2 python-matplotlib)))
2667 (package (inherit matplotlib)
2668 ;; Make sure to use special packages for Python 2 instead
2669 ;; of those automatically rewritten by package-with-python2.
2671 `(("python2-pycairo" ,python2-pycairo)
2672 ("python2-pygobject-2" ,python2-pygobject-2)
2673 ,@(alist-delete "python-pycairo"
2674 (alist-delete "python-pygobject"
2675 (package-propagated-inputs
2678 (define-public python2-pysnptools
2680 (name "python2-pysnptools")
2686 "https://pypi.python.org/packages/source/p/pysnptools"
2687 "/pysnptools-" version ".zip"))
2690 "1rzf5qvwfvd2pp84b14pb2gdvxdk5avnj7rb41ac8gndpkr9g6ib"))))
2691 (build-system python-build-system)
2693 `(#:python ,python-2)) ; only Python 2.7 is supported
2695 `(("python2-numpy" ,python2-numpy)
2696 ("python2-scipy" ,python2-scipy)
2697 ("python2-pandas" ,python2-pandas)
2698 ("python2-cython" ,python2-cython)))
2701 ("python2-setuptools" ,python2-setuptools)))
2702 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
2703 (synopsis "Library for reading and manipulating genetic data")
2705 "PySnpTools is a library for reading and manipulating genetic data. It
2706 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
2707 those files. It can also efficiently manipulate ranges of integers using set
2708 operators such as union, intersection, and difference.")
2711 (define-public python-scipy
2713 (name "python-scipy")
2718 (uri (string-append "mirror://sourceforge/scipy"
2719 "/scipy-" version ".tar.xz"))
2722 "0fsqi05s035d7p6s8h3h2pvk1axias16chy17rw9l1bxvrfhmncf"))))
2723 (build-system python-build-system)
2725 `(("python-numpy" ,python-numpy)
2726 ("python-matplotlib" ,python-matplotlib)
2727 ("python-pyparsing" ,python-pyparsing)
2728 ("python-nose" ,python-nose)
2729 ("python-sphinx" ,python-sphinx)
2731 ("openblas" ,openblas)))
2733 `(("gfortran" ,gfortran)
2734 ("texlive" ,texlive)
2736 (outputs '("out" "doc"))
2740 'build 'configure-openblas
2741 (lambda* (#:key inputs #:allow-other-keys)
2742 (call-with-output-file "site.cfg"
2746 libraries = openblas
2747 library_dirs = ~a/lib
2748 include_dirs = ~a/include
2750 library_dirs = ~a/lib
2751 atlas_libs = openblas
2753 (assoc-ref inputs "openblas")
2754 (assoc-ref inputs "openblas")
2755 (assoc-ref inputs "openblas"))))
2758 'install 'install-doc
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
2761 (doc (string-append data "/doc/" ,name "-" ,version))
2762 (html (string-append doc "/html"))
2763 (pyver ,(string-append "PYVER=")))
2764 (with-directory-excursion "doc"
2765 ;; Fix generation of images for mathematical expressions.
2766 (substitute* (find-files "source" "conf\\.py")
2767 (("pngmath_use_preview = True")
2768 "pngmath_use_preview = False"))
2770 (system* "make" "html" pyver)
2771 (system* "make" "latex" "PAPER=a4" pyver)
2772 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
2773 (copy-file "build/latex/scipy-ref.pdf"
2774 (string-append doc "/scipy-ref.pdf"))
2775 (with-directory-excursion "build/html"
2776 (for-each (lambda (file)
2777 (let* ((dir (dirname file))
2778 (tgt-dir (string-append html "/" dir)))
2779 (unless (equal? "." dir)
2781 (copy-file file (string-append html "/" file))))
2782 (find-files "." ".*"))))))
2783 ;; Tests can only be run after the library has been installed and not
2784 ;; within the source directory.
2788 (with-directory-excursion "/tmp"
2789 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
2792 %standard-phases))))))
2793 (home-page "http://www.scipy.org/")
2794 (synopsis "The Scipy library provides efficient numerical routines")
2795 (description "The SciPy library is one of the core packages that make up
2796 the SciPy stack. It provides many user-friendly and efficient numerical
2797 routines such as routines for numerical integration and optimization.")
2800 (define-public python2-scipy
2801 (let ((scipy (package-with-python2 python-scipy)))
2802 (package (inherit scipy)
2803 ;; Use packages customized for python-2.
2804 (inputs `(("python2-matplotlib" ,python2-matplotlib)
2805 ("python2-numpy" ,python2-numpy)
2806 ,@(alist-delete "python-matplotlib"
2807 (alist-delete "python-numpy"
2808 (package-inputs scipy))))))))
2810 (define-public python-sqlalchemy
2812 (name "python-sqlalchemy")
2817 (uri (string-append "https://pypi.python.org/packages/source/S/"
2818 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
2821 "059ayifj5l08v6vv56anhyibyllscn10dlzr2fcw68gz1hfjdzsz"))))
2822 (build-system python-build-system)
2824 `(("python-cython" ,python-cython) ;for c extensions
2825 ("python-pytest" ,python-pytest)
2826 ("python-mock" ,python-mock))) ;for tests
2828 `(#:phases (alist-replace
2830 (lambda _ (zero? (system* "py.test")))
2832 (home-page "http://www.sqlalchemy.org")
2833 (synopsis "Database abstraction library")
2835 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
2836 gives application developers the full power and flexibility of SQL. It
2837 provides a full suite of well known enterprise-level persistence patterns,
2838 designed for efficient and high-performing database access, adapted into a
2839 simple and Pythonic domain language.")
2842 (define-public python2-sqlalchemy
2843 (package-with-python2 python-sqlalchemy))
2845 (define-public python-distutils-extra
2847 (name "python-distutils-extra")
2852 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
2853 version "/+download/python-distutils-extra-"
2857 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
2858 (build-system python-build-system)
2860 `(("python-setuptools" ,python-setuptools)))
2861 (home-page "https://launchpad.net/python-distutils-extra/")
2862 (synopsis "Enhancements to Python's distutils")
2864 "The python-distutils-extra module enables you to easily integrate
2865 gettext support, themed icons, and scrollkeeper-based documentation into
2866 Python's distutils.")
2869 (define-public python2-distutils-extra
2870 (package-with-python2 python-distutils-extra))
2872 (define-public python2-elib.intl
2874 (name "python2-elib.intl")
2878 ;; This project doesn't tag releases or publish tarballs, so we take
2879 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
2882 (url "https://github.com/dieterv/elib.intl.git")
2883 (commit "d09997cfef")))
2886 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
2887 (build-system python-build-system)
2889 `(("python2-setuptools" ,python2-setuptools)))
2891 ;; incompatible with Python 3 (exception syntax)
2892 `(#:python ,python-2
2894 ;; With standard flags, the install phase attempts to create a zip'd
2895 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2897 #:configure-flags '("--single-version-externally-managed"
2898 "--record=elib.txt")))
2899 (home-page "https://github.com/dieterv/elib.intl")
2900 (synopsis "Enhanced internationalization for Python")
2902 "The elib.intl module provides enhanced internationalization (I18N)
2903 services for your Python modules and applications.")
2906 (define-public python-pillow
2908 (name "python-pillow")
2913 (uri (string-append "https://pypi.python.org/packages/source/P/"
2914 "Pillow/Pillow-" version ".tar.gz"))
2917 "15n92axxph2s3kvg68bki9gv3nzwgq7130kp7wbblpi1l0cc2q47"))))
2918 (build-system python-build-system)
2920 `(("python-setuptools" ,python-setuptools)
2921 ("python-nose" ,python-nose)))
2923 `(("freetype" ,freetype)
2926 ("libjpeg" ,libjpeg)
2927 ("openjpeg" ,openjpeg)
2928 ("libtiff" ,libtiff)
2929 ("libwebp" ,libwebp)))
2931 `(;; Used at runtime for pkg_resources
2932 ("python-setuptools" ,python-setuptools)))
2934 `(#:phases (alist-cons-after
2935 'install 'check-installed
2938 (setenv "HOME" (getcwd))
2939 (and (zero? (system* "python" "selftest.py" "--installed"))
2940 (zero? (system* "python" "test-installed.py")))))
2941 (alist-delete 'check %standard-phases))))
2942 (home-page "https://pypi.python.org/pypi/Pillow")
2943 (synopsis "Fork of the Python Imaging Library")
2945 "The Python Imaging Library adds image processing capabilities to your
2946 Python interpreter. This library provides extensive file format support, an
2947 efficient internal representation, and fairly powerful image processing
2948 capabilities. The core image library is designed for fast access to data
2949 stored in a few basic pixel formats. It should provide a solid foundation for
2950 a general image processing tool.")
2952 "http://www.pythonware.com/products/pil/license.htm"
2953 "The PIL Software License"))))
2955 (define-public python2-pillow
2956 (package-with-python2 python-pillow))
2958 (define-public python-pycparser
2960 (name "python-pycparser")
2965 (uri (string-append "https://pypi.python.org/packages/source/p/"
2966 "pycparser/pycparser-" version ".tar.gz"))
2969 "0v5qfq03yvd1pi0dwlgfai0p3dh9bq94pydn19c4pdn0c6v9hzcm"))))
2970 (outputs '("out" "doc"))
2971 (build-system python-build-system)
2973 `(("pkg-config" ,pkg-config)
2974 ("python-setuptools" ,python-setuptools)))
2980 (with-directory-excursion "tests"
2981 (zero? (system* "python" "all_tests.py"))))
2983 'install 'install-doc
2984 (lambda* (#:key outputs #:allow-other-keys)
2985 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
2986 (doc (string-append data "/doc/" ,name "-" ,version))
2987 (examples (string-append doc "/examples")))
2989 (for-each (lambda (file)
2990 (copy-file (string-append "." file)
2991 (string-append doc file)))
2992 '("/README.rst" "/CHANGES" "/LICENSE"))
2993 (copy-recursively "examples" examples)))
2994 %standard-phases))))
2995 (home-page "https://github.com/eliben/pycparser")
2996 (synopsis "C parser in Python")
2998 "Pycparser is a complete parser of the C language, written in pure Python
2999 using the PLY parsing library. It parses C code into an AST and can serve as
3000 a front-end for C compilers or analysis tools.")
3003 (define-public python2-pycparser
3004 (package-with-python2 python-pycparser))
3006 (define-public python-cffi
3008 (name "python-cffi")
3013 (uri (string-append "https://pypi.python.org/packages/source/c/"
3014 "cffi/cffi-" version ".tar.gz"))
3016 (base32 "0406j3sgndmx88idv5zxkkrwfqxmjl18pj8gf47nsg4ymzixjci5"))))
3017 (build-system python-build-system)
3018 (outputs '("out" "doc"))
3020 `(("libffi" ,libffi)))
3021 (propagated-inputs ; required at run-time
3022 `(("python-pycparser" ,python-pycparser)))
3024 `(("pkg-config" ,pkg-config)
3025 ("python-sphinx" ,python-sphinx)
3026 ("python-setuptools" ,python-setuptools)))
3028 `(#:tests? #f ; FIXME: requires pytest
3031 'install 'install-doc
3032 (lambda* (#:key outputs #:allow-other-keys)
3033 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3034 (doc (string-append data "/doc/" ,name "-" ,version))
3035 (html (string-append doc "/html")))
3036 (with-directory-excursion "doc"
3037 (system* "make" "html")
3039 (copy-recursively "build/html" html))
3040 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
3042 (home-page "http://cffi.readthedocs.org")
3043 (synopsis "Foreign function interface for Python")
3045 "Foreign Function Interface for Python calling C code.")
3046 (license license:expat)))
3048 (define-public python2-cffi
3049 (package-with-python2 python-cffi))
3051 (define-public python-xcffib
3053 (name "python-xcffib")
3058 (uri (string-append "https://pypi.python.org/packages/source/x/"
3059 "xcffib/xcffib-" version ".tar.gz"))
3062 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
3063 (build-system python-build-system)
3065 `(("libxcb" ,libxcb)
3066 ("python-six" ,python-six)))
3068 `(("python-setuptools" ,python-setuptools)))
3070 `(("python-cffi" ,python-cffi))) ; used at run time
3074 'install 'install-doc
3075 (lambda* (#:key outputs #:allow-other-keys)
3076 (let ((doc (string-append (assoc-ref outputs "out") "/share"
3077 "/doc/" ,name "-" ,version)))
3079 (copy-file "README.md"
3080 (string-append doc "/README.md"))))
3082 (home-page "https://github.com/tych0/xcffib")
3083 (synopsis "XCB Python bindings")
3085 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
3086 support for Python 3 and PyPy. It is based on cffi.")
3087 (license license:expat)))
3089 (define-public python2-xcffib
3090 (package-with-python2 python-xcffib))
3092 (define-public python-cairocffi
3094 (name "python-cairocffi")
3099 ;; The archive on pypi is missing the 'utils' directory!
3100 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
3102 (file-name (string-append name "-" version ".tar.gz"))
3105 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
3106 (build-system python-build-system)
3107 (outputs '("out" "doc"))
3109 `(("gdk-pixbuf" ,gdk-pixbuf)
3112 `(("pkg-config" ,pkg-config)
3113 ("python-sphinx" ,python-sphinx)
3114 ("python-docutils" ,python-docutils)
3115 ("python-setuptools" ,python-setuptools)))
3117 `(("python-xcffib" ,python-xcffib))) ; used at run time
3121 'install 'install-doc
3122 (lambda* (#:key inputs outputs #:allow-other-keys)
3123 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3124 (doc (string-append data "/doc/" ,name "-" ,version))
3125 (html (string-append doc "/html")))
3126 (setenv "LD_LIBRARY_PATH"
3127 (string-append (assoc-ref inputs "cairo") "/lib" ":"
3128 (assoc-ref inputs "gdk-pixbuf") "/lib"))
3129 (setenv "LANG" "en_US.UTF-8")
3131 (for-each (lambda (file)
3132 (copy-file (string-append "." file)
3133 (string-append doc file)))
3134 '("/README.rst" "/CHANGES" "/LICENSE"))
3135 (system* "python" "setup.py" "build_sphinx")
3136 (copy-recursively "docs/_build/html" html)))
3138 (home-page "https://github.com/SimonSapin/cairocffi")
3139 (synopsis "Python bindings and object-oriented API for Cairo")
3141 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
3142 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
3143 graphics library with support for multiple backends including image buffers,
3144 PNG, PostScript, PDF, and SVG file output.")
3147 (define-public python2-cairocffi
3148 (package-with-python2 python-cairocffi))
3150 (define-public python-decorator
3152 (name "python-decorator")
3158 "https://pypi.python.org/packages/source/d/decorator/decorator-"
3161 (base32 "0i2bnlkh0p9gs76hb28mafandcrig2fmv56w9ai6mshxwqn0083k"))))
3162 (build-system python-build-system)
3163 (arguments '(#:tests? #f)) ; no test target
3165 `(("python-setuptools" ,python-setuptools)))
3166 (home-page "http://pypi.python.org/pypi/decorator/")
3167 (synopsis "Python module to simplify usage of decorators")
3169 "The aim of the decorator module is to simplify the usage of decorators
3170 for the average programmer, and to popularize decorators usage giving examples
3171 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
3172 etc. The core of this module is a decorator factory.")
3173 (license license:expat)))
3175 (define-public python2-decorator
3176 (package-with-python2 python-decorator))
3178 (define-public python-drmaa
3180 (name "python-drmaa")
3186 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
3189 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
3190 (build-system python-build-system)
3191 ;; The test suite requires libdrmaa which is provided by the cluster
3192 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
3193 ;; should be set to the path of the libdrmaa library.
3194 (arguments '(#:tests? #f))
3196 `(("python-nose" ,python-nose)
3197 ("python-setuptools" ,python-setuptools)))
3198 (home-page "https://pypi.python.org/pypi/drmaa")
3199 (synopsis "Python bindings for the DRMAA library")
3201 "A Python package for Distributed Resource Management (DRM) job
3202 submission and control. This package is an implementation of the DRMAA 1.0
3203 Python language binding specification.")
3206 (define-public python2-drmaa
3207 (package-with-python2 python-drmaa))
3209 (define-public python-ipython
3211 (name "python-ipython")
3216 (uri (string-append "https://pypi.python.org/packages/source/i/"
3217 "ipython/ipython-" version ".tar.gz"))
3219 (base32 "1764gi5m3ff481rjk336cw6i2h4zlc0nxam9rc5m8m7yl9m4d61y"))))
3220 (build-system python-build-system)
3221 (outputs '("out" "doc"))
3222 ;; FIXME: add optional dependencies when available: pyzmq, tornado, ...
3224 `(("readline" ,readline)
3225 ("python-matplotlib" ,python-matplotlib)
3226 ("python-numpy" ,python-numpy-bootstrap)
3227 ("python-numpydoc" ,python-numpydoc)
3228 ("python-nose" ,python-nose)))
3230 `(("pkg-config" ,pkg-config)
3231 ("python-sphinx" ,python-sphinx)
3232 ("texlive" ,texlive)
3233 ("texinfo" ,texinfo)
3234 ("python-setuptools" ,python-setuptools)))
3238 'install 'install-doc
3239 (lambda* (#:key inputs outputs #:allow-other-keys)
3240 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3241 (doc (string-append data "/doc/" ,name "-" ,version))
3242 (html (string-append doc "/html"))
3243 (man1 (string-append data "/man/man1"))
3244 (info (string-append data "/info"))
3245 (examples (string-append doc "/examples")))
3246 (setenv "LANG" "en_US.UTF-8")
3247 (with-directory-excursion "docs"
3248 ;; FIXME: html and pdf fail to build without optional pyzmq
3249 ;(system* "make" "html")
3250 ;(system* "make" "pdf" "PAPER=a4")
3251 (system* "make" "info"))
3252 (copy-recursively "docs/man" man1)
3253 (copy-recursively "examples" examples)
3254 ;; (copy-recursively "docs/build/html" html)
3255 ;; (copy-file "docs/build/latex/ipython.pdf"
3256 ;; (string-append doc "/ipython.pdf"))
3258 (copy-file "docs/build/texinfo/ipython.info"
3259 (string-append info "/ipython.info"))
3260 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))
3261 ;; Tests can only be run after the library has been installed and not
3262 ;; within the source directory.
3265 (lambda* (#:key outputs #:allow-other-keys)
3266 ;; The test procedure appears to miss the fact that some optional
3267 ;; dependencies are missing.
3268 ;; (with-directory-excursion "/tmp"
3269 ;; (zero? (system* (string-append (assoc-ref outputs "out")
3270 ;; "/bin/iptest"))))
3274 %standard-phases)))))
3275 (home-page "http://ipython.org")
3276 (synopsis "IPython is a tool for interactive computing in Python")
3278 "IPython provides a rich architecture for interactive computing with:
3279 Powerful interactive shells, a browser-based notebook, support for interactive
3280 data visualization, embeddable interpreters and tools for parallel
3284 (define-public python2-ipython
3285 (let ((ipython (package-with-python2 python-ipython)))
3286 (package (inherit ipython)
3287 ;; Make sure we use custom python2-NAME packages.
3289 `(("python2-matplotlib" ,python2-matplotlib)
3290 ,@(alist-delete "python-matplotlib"
3291 (package-inputs ipython)))))))
3293 (define-public python-isodate
3295 (name "python-isodate")
3301 "https://pypi.python.org/packages/source/i/isodate/isodate-"
3306 "1yqjn0is0p64cmk9xhq4hc6q06jk86d60kg2jws58d78q0qysami"))))
3307 (build-system python-build-system)
3309 `(("python-setuptools" ,python-setuptools)))
3311 "http://cheeseshop.python.org/pypi/isodate")
3313 "Python date parser and formatter")
3315 "Python-isodate is a python module for parsing and formatting
3316 ISO 8601 dates, time and duration.")
3319 (define-public python2-isodate
3320 (package-with-python2 python-isodate))
3322 (define-public python-html5lib
3324 (name "python-html5lib")
3330 "https://pypi.python.org/packages/source/h/html5lib/html5lib-"
3335 "1l5i6xzckzx4hnh9qzv9q3kyhkgjx2hsi2k9srgci3qizjmvp6ln"))))
3336 (build-system python-build-system)
3338 `(("python-six" ,python-six))) ; required to "import html5lib"
3340 `(("python-setuptools" ,python-setuptools)))
3342 `(#:test-target "check"))
3344 "https://github.com/html5lib/html5lib-python")
3346 "Python HTML parser based on the WHATWG HTML specifcation")
3348 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
3349 and written in Python.")
3350 (license license:expat)))
3352 (define-public python2-html5lib
3353 (package-with-python2 python-html5lib))
3355 (define-public python-urwid
3357 (name "python-urwid")
3363 "https://pypi.python.org/packages/source/u/urwid/urwid-"
3367 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
3368 (build-system python-build-system)
3369 (native-inputs `(("python-setuptools" ,python-setuptools)))
3370 (home-page "http://urwid.org")
3371 (synopsis "Console user interface library for Python")
3373 "Urwid is a curses-based UI/widget library for Python. It includes many
3374 features useful for text console applications.")
3375 (license lgpl2.1+)))
3377 (define-public python2-urwid
3378 (package-with-python2 python-urwid))
3380 (define-public python-dbus
3382 (name "python-dbus")
3388 "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
3391 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
3392 (build-system gnu-build-system)
3394 `(("pkg-config" ,pkg-config)))
3396 `(("python" ,python)
3397 ("dbus-glib" ,dbus-glib)))
3398 (synopsis "Python bindings for D-bus")
3399 (description "python-dbus provides bindings for libdbus, the reference
3400 implementation of D-Bus.")
3401 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
3402 (license license:expat)))
3404 (define-public python2-dbus
3405 (package (inherit python-dbus)
3406 (name "python2-dbus")
3407 (inputs `(("python" ,python-2)
3408 ,@(alist-delete "python"
3409 (package-inputs python-dbus)
3411 ;; FIXME: on Python 2, the test_utf8 fails with:
3412 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
3413 (arguments `(#:tests? #f))))
3415 (define-public python-apsw
3417 (name "python-apsw")
3418 (version "3.8.7.3-r1")
3423 "https://pypi.python.org/packages/source/a/apsw/apsw-"
3428 "1rgxdypg7hym0qny15rx5khrghx9fkppfgsfa2s8lg917924mv7l"))))
3429 (build-system python-build-system)
3431 `(("python-setuptools" ,python-setuptools)
3432 ("sqlite" ,sqlite)))
3435 ;; swap check and install phases
3438 (assoc-ref %standard-phases 'check)
3441 %standard-phases))))
3442 (home-page "https://github.com/rogerbinns/apsw/")
3443 (synopsis "Another Python SQLite Wrapper")
3444 (description "APSW is a Python wrapper for the SQLite
3445 embedded relational database engine. In contrast to other wrappers such as
3446 pysqlite it focuses on being a minimal layer over SQLite attempting just to
3447 translate the complete SQLite API into Python.")
3448 (license license:zlib)))
3450 (define-public python2-apsw
3451 (package-with-python2 python-apsw))
3453 (define-public python-lxml
3455 (name "python-lxml")
3461 "https://pypi.python.org/packages/source/l/lxml/lxml-"
3466 "0pd23qz8vms1mgm41p96h4vac5y91igs4wr9640gnvxgk019kmf7"))))
3467 (build-system python-build-system)
3469 `(("libxml2" ,libxml2)
3470 ("libxslt" ,libxslt)
3471 ("python-setuptools" ,python-setuptools)))
3472 (home-page "http://lxml.de/")
3474 "Python XML processing library")
3476 "The lxml XML toolkit is a Pythonic binding for the C libraries
3477 libxml2 and libxslt.")
3478 (license bsd-3))) ; and a few more, see LICENSES.txt
3480 (define-public python2-lxml
3481 (package-with-python2 python-lxml))
3483 (define-public python2-pil
3485 (name "python2-pil")
3491 "http://effbot.org/downloads/Imaging-"
3495 "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9"))
3496 (modules '((guix build utils)))
3498 ;; Adapt to newer freetype. As the package is unmaintained upstream,
3499 ;; there is no use in creating a patch and reporting it.
3500 '(substitute* "_imagingft.c"
3503 (build-system python-build-system)
3505 `(("freetype" ,freetype)
3506 ("libjpeg" ,libjpeg)
3507 ("libtiff" ,libtiff)
3508 ("python-setuptools" ,python-setuptools)
3511 ;; Only the fork python-pillow works with Python 3.
3512 `(#:python ,python-2
3513 #:tests? #f ; no check target
3517 ;; According to README and setup.py, manual configuration is
3518 ;; the preferred way of "searching" for inputs.
3519 ;; lcms is not found, TCL_ROOT refers to the unavailable tkinter.
3520 (lambda* (#:key inputs #:allow-other-keys)
3521 (let ((jpeg (assoc-ref inputs "libjpeg"))
3522 (zlib (assoc-ref inputs "zlib"))
3523 (tiff (assoc-ref inputs "libtiff"))
3524 (freetype (assoc-ref inputs "freetype")))
3525 (substitute* "setup.py"
3526 (("JPEG_ROOT = None")
3527 (string-append "JPEG_ROOT = libinclude(\"" jpeg "\")"))
3528 (("ZLIB_ROOT = None")
3529 (string-append "ZLIB_ROOT = libinclude(\"" zlib "\")"))
3530 (("TIFF_ROOT = None")
3531 (string-append "TIFF_ROOT = libinclude(\"" tiff "\")"))
3532 (("FREETYPE_ROOT = None")
3533 (string-append "FREETYPE_ROOT = libinclude(\""
3536 (home-page "http://www.pythonware.com/products/pil/")
3537 (synopsis "Python Imaging Library")
3538 (description "The Python Imaging Library (PIL) adds image processing
3539 capabilities to the Python interpreter.")
3542 "See 'README' in the distribution."))))
3544 (define-public python2-cssutils
3546 (name "python2-cssutils")
3552 "https://pypi.python.org/packages/source/c/cssutils/cssutils-"
3557 "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
3558 (build-system python-build-system)
3560 `(("python2-mock" ,python2-mock) ; for the tests
3561 ("unzip" ,unzip))) ; for unpacking the source
3563 `(("python2-setuptools" ,python2-setuptools)))
3565 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
3566 #:tests? #f ; The tests apparently download an external URL.
3568 (home-page "http://cthedot.de/cssutils/")
3570 "CSS Cascading Style Sheets library for Python")
3572 "Cssutils is a Python package for parsing and building CSS
3573 Cascading Style Sheets. Currently it provides a DOM only and no rendering
3577 (define-public python-cssselect
3579 (name "python-cssselect")
3585 "https://pypi.python.org/packages/source/c/cssselect/cssselect-"
3590 "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85"))))
3591 (build-system python-build-system)
3593 `(("python-setuptools" ,python-setuptools)))
3595 ;; tests fail with message
3596 ;; AttributeError: 'module' object has no attribute 'tests'
3599 "https://pythonhosted.org/cssselect/")
3601 "CSS3 selector parser and translator to XPath 1.0")
3603 "Cssselect ia a Python module that parses CSS3 Selectors and translates
3604 them to XPath 1.0 expressions. Such expressions can be used in lxml or
3605 another XPath engine to find the matching elements in an XML or HTML document.")
3608 (define-public python2-cssselect
3609 (package-with-python2 python-cssselect))
3611 (define-public python-netifaces
3613 (name "python-netifaces")
3619 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
3624 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
3625 (build-system python-build-system)
3627 `(("python-setuptools" ,python-setuptools)))
3629 "https://bitbucket.org/al45tair/netifaces")
3631 "Python module for portable network interface information")
3633 "Netifaces is a Python module providing information on network
3634 interfaces in an easy and portable manner.")
3635 (license license:expat)))
3637 (define-public python2-netifaces
3638 (package-with-python2 python-netifaces))
3640 (define-public python-networkx
3642 (name "python-networkx")
3648 "https://pypi.python.org/packages/source/n/networkx/networkx-"
3651 (base32 "0n8wy0yq1kmdq4wh68mlhwhkndvwzx48lg41a1z0sxxms0wfp033"))))
3652 (build-system python-build-system)
3653 ;; python-decorator is needed at runtime
3655 `(("python-decorator" ,python-decorator)))
3657 `(("python-setuptools" ,python-setuptools)
3658 ("python-nose" ,python-nose)))
3659 (home-page "http://networkx.github.io/")
3660 (synopsis "Python module for creating and manipulating graphs and networks")
3662 "NetworkX is a Python package for the creation, manipulation, and study
3663 of the structure, dynamics, and functions of complex networks.")
3666 (define-public python2-networkx
3667 (package-with-python2 python-networkx))
3669 (define-public snakemake
3677 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
3680 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
3681 (build-system python-build-system)
3682 (inputs `(("python-setuptools" ,python-setuptools)))
3683 (home-page "https://bitbucket.org/johanneskoester/snakemake")
3684 (synopsis "Python-based execution environment for make-like workflows")
3686 "Snakemake aims to reduce the complexity of creating workflows by
3687 providing a clean and modern domain specific specification language (DSL) in
3688 Python style, together with a fast and comfortable execution environment.")
3689 (license license:expat)))
3691 (define-public python-seaborn
3693 (name "python-seaborn")
3699 "https://pypi.python.org/packages/source/s/seaborn/seaborn-"
3702 (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc"))))
3703 (build-system python-build-system)
3705 `(("python-pandas" ,python-pandas)
3706 ("python-matplotlib" ,python-matplotlib)
3707 ("python-scipy" ,python-scipy)))
3709 `(("python-setuptools" ,python-setuptools)))
3710 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
3711 (synopsis "Statistical data visualization")
3713 "Seaborn is a library for making attractive and informative statistical
3714 graphics in Python. It is built on top of matplotlib and tightly integrated
3715 with the PyData stack, including support for numpy and pandas data structures
3716 and statistical routines from scipy and statsmodels.")
3719 (define-public python2-seaborn
3720 (let ((seaborn (package-with-python2 python-seaborn)))
3721 (package (inherit seaborn)
3723 `(("python2-pytz" ,python2-pytz)
3724 ,@(package-propagated-inputs seaborn))))))
3726 (define-public python-sympy
3728 (name "python-sympy")
3734 "https://github.com/sympy/sympy/releases/download/sympy-"
3735 version "/sympy-" version ".tar.gz"))
3737 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
3738 (build-system python-build-system)
3740 `(("python-setuptools" ,python-setuptools)))
3741 (home-page "http://www.sympy.org/")
3742 (synopsis "Python library for symbolic mathematics")
3744 "SymPy is a Python library for symbolic mathematics. It aims to become a
3745 full-featured computer algebra system (CAS) while keeping the code as simple
3746 as possible in order to be comprehensible and easily extensible.")
3749 (define-public python2-sympy
3750 (package-with-python2 python-sympy))
3752 (define-public python-testlib
3754 (name "python-testlib")
3760 "https://pypi.python.org/packages/source/t/testlib/testlib-"
3763 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
3764 (build-system python-build-system)
3766 `(("python-setuptools" ,python-setuptools)))
3768 `(("unzip" ,unzip)))
3773 (lambda* (#:key inputs outputs #:allow-other-keys)
3774 (let ((unzip (string-append (assoc-ref inputs "unzip")
3776 (source (assoc-ref inputs "source")))
3777 (and (zero? (system* unzip source))
3778 (chdir (string-append "testlib-" ,version)))))
3780 (synopsis "Python micro test suite harness")
3781 (description "A micro unittest suite harness for Python.")
3782 (home-page "https://github.com/trentm/testlib")
3783 (license license:expat)))
3785 (define-public python2-testlib
3786 (package-with-python2 python-testlib))
3788 (define-public python2-xlib
3790 (name "python2-xlib")
3794 (uri (string-append "mirror://sourceforge/python-xlib/"
3795 "python-xlib-" version ".tar.gz"))
3798 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
3799 (build-system python-build-system)
3801 `(#:python ,python-2 ;Python 2 only
3802 #:tests? #f)) ;no tests
3804 `(("python-setuptools" ,python-setuptools)))
3805 (home-page "http://python-xlib.sourceforge.net/")
3806 (synopsis "Python X11 client library")
3808 "The Python X Library is intended to be a fully functional X client
3809 library for Python programs. It is useful to implement low-level X clients.
3810 It is written entirely in Python.")
3813 (define-public python-singledispatch
3815 (name "python-singledispatch")
3821 "https://pypi.python.org/packages/source/s/singledispatch/"
3822 "singledispatch-" version ".tar.gz"))
3825 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
3826 (build-system python-build-system)
3828 `(("python-setuptools" ,python-setuptools)))
3830 `(("python-six" ,python-six)))
3832 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
3833 (synopsis "Backport of singledispatch feature from Python 3.4")
3835 "This library brings functools.singledispatch from Python 3.4 to Python
3837 (license license:expat)))
3839 (define-public python2-singledispatch
3840 (package-with-python2 python-singledispatch))
3842 (define-public python-tornado
3844 (name "python-tornado")
3850 "https://pypi.python.org/packages/source/t/tornado/"
3851 "tornado-" version ".tar.gz"))
3853 (base32 "0a12f00h277zbifibnj46wf14801f573irvf6hwkgja5vspd7awr"))))
3854 (build-system python-build-system)
3856 `(("python-certifi" ,python-certifi)))
3858 `(("python-setuptools" ,python-setuptools)))
3859 (home-page "https://pypi.python.org/pypi/tornado/4.1")
3860 (synopsis "Python web framework and asynchronous networking library")
3862 "Tornado is a Python web framework and asynchronous networking library,
3863 originally developed at FriendFeed. By using non-blocking network I/O,
3864 Tornado can scale to tens of thousands of open connections, making it ideal
3865 for long polling, WebSockets, and other applications that require a long-lived
3866 connection to each user.")
3869 (define-public python2-tornado
3870 (let ((tornado (package-with-python2 python-tornado)))
3871 (package (inherit tornado)
3873 `(("python2-backport-ssl-match-hostname"
3874 ,python2-backport-ssl-match-hostname)
3875 ,@(package-inputs tornado))))))
3877 (define-public python-waf
3883 (uri (string-append "https://waf.io/"
3884 "waf-" version ".tar.bz2"))
3887 "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn"))))
3888 (build-system python-build-system)
3891 (modify-phases %standard-phases
3895 (system* "python" "waf-light" "configure")
3896 (system* "python" "waf-light" "build")))))
3899 (zero? (system* "python" "waf" "--version"))))
3902 (copy-file "waf" %output))))))
3903 (home-page "https://waf.io/")
3904 (synopsis "Python-based build system")
3906 "Waf is a Python-based framework for configuring, compiling and installing
3910 (define-public python2-waf
3911 (package-with-python2 python-waf))
3913 (define-public python-pyzmq
3915 (name "python-pyzmq")
3921 "https://pypi.python.org/packages/source/p/pyzmq/pyzmq-"
3924 (base32 "1frmbjykvhmdg64g7sn20c9fpamrsfxwci1nhhg8q7jgz5pq0ikp"))))
3925 (build-system python-build-system)
3928 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
3929 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
3930 ;; --inplace' for 'python setup.py test' to work.
3933 `(("zeromq" ,zeromq)))
3935 `(("pkg-config" ,pkg-config)
3936 ("python-nose" ,python-nose)
3937 ("python-setuptools" ,python-setuptools)))
3938 (home-page "http://github.com/zeromq/pyzmq")
3939 (synopsis "Python bindings for 0MQ")
3941 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
3944 (define-public python2-pyzmq
3945 (package-with-python2 python-pyzmq))
3947 (define-public python-pep8
3949 (name "python-pep8")
3955 "https://pypi.python.org/packages/source/p/pep8/pep8-"
3960 "1zybkcdw1sx84dvkfss96nhykqg9bc0cdpwpl4k9wlxm61bf7dxq"))))
3961 (build-system python-build-system)
3963 `(("python-setuptools" ,python-setuptools)))
3964 (home-page "http://pep8.readthedocs.org/")
3965 (synopsis "Python style guide checker")
3967 "This tools checks Python code against some of the style conventions in
3969 (license license:expat)))
3971 (define-public python2-pep8
3972 (package-with-python2 python-pep8))
3974 (define-public python-pyflakes
3976 (name "python-pyflakes")
3982 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
3987 "0pvawddspdq0y22dbraq5gld9qr6rwa7zhmpfhl2b7v9rqiiqs82"))))
3988 (build-system python-build-system)
3990 `(("python-setuptools" ,python-setuptools)))
3992 "https://github.com/pyflakes/pyflakes")
3993 (synopsis "Passive checker of Python programs")
3995 "Pyflakes statically checks Python source code for common errors.")
3996 (license license:expat)))
3998 (define-public python-mccabe
4000 (name "python-mccabe")
4006 "https://pypi.python.org/packages/source/m/mccabe/mccabe-"
4011 "05ix3vdv5hjk4irl97n2n3c4g1vqvz7dbmkzs13f3bx97bxsczjz"))))
4012 (build-system python-build-system)
4014 `(("python-setuptools" ,python-setuptools)))
4015 (home-page "https://github.com/flintwork/mccabe")
4016 (synopsis "McCabe checker, plugin for flake8")
4018 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
4019 complexity of Python source code.")
4020 (license license:expat)))
4022 (define-public python2-mccabe
4023 (package-with-python2 python-mccabe))
4025 ;; Flake8 2.4.1 requires an older version of pep8.
4026 ;; This should be removed ASAP.
4027 (define-public python-pep8-1.5.7
4028 (package (inherit python-pep8)
4034 "https://pypi.python.org/packages/source/p/pep8/pep8-"
4039 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
4041 (define-public python2-pep8-1.5.7
4042 (package-with-python2 python-pep8-1.5.7))
4044 ;; Flake8 2.4.1 requires an older version of pyflakes.
4045 ;; This should be removed ASAP.
4046 (define-public python-pyflakes-0.8.1
4047 (package (inherit python-pyflakes)
4053 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
4058 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
4060 (define-public python2-pyflakes-0.8.1
4061 (package-with-python2 python-pyflakes))
4063 (define-public python-flake8
4065 (name "python-flake8")
4071 "https://pypi.python.org/packages/source/f/flake8/flake8-"
4076 "0dvmrpv7x98xkzffjz1z7lqr90sp5zdz16bdwckfd1cckpjvnzif"))))
4077 (build-system python-build-system)
4079 `(("python-setuptools" ,python-setuptools)
4080 ("python-pep8" ,python-pep8-1.5.7)
4081 ("python-pyflakes" ,python-pyflakes-0.8.1)
4082 ("python-mccabe" ,python-mccabe)
4083 ("python-mock" ,python-mock)
4084 ("python-nose" ,python-nose)))
4085 (home-page "https://gitlab.com/pycqa/flake8")
4087 "The modular source code checker: pep8, pyflakes and co")
4089 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
4090 (license license:expat)))
4092 (define-public python2-flake8
4093 (package-with-python2 python-flake8))