2013-01-14 21:29:28 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2016-02-07 16:55:45 -05:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
2016-04-06 14:49:40 -04:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
|
2015-02-03 00:31:03 -05:00
|
|
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
2014-06-30 10:56:50 -04:00
|
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2015-01-14 12:04:17 -05:00
|
|
|
|
;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
|
2015-02-03 00:31:03 -05:00
|
|
|
|
;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
|
2015-02-03 19:02:20 -05:00
|
|
|
|
;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
|
2016-04-14 11:43:27 -04:00
|
|
|
|
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
|
2016-02-05 22:07:11 -05:00
|
|
|
|
;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
2015-07-25 15:31:05 -04:00
|
|
|
|
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
2015-12-07 16:18:35 -05:00
|
|
|
|
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
|
2016-01-30 17:28:06 -05:00
|
|
|
|
;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
|
2015-09-19 09:35:18 -04:00
|
|
|
|
;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com>
|
2016-01-01 15:28:46 -05:00
|
|
|
|
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
2016-01-18 05:54:52 -05:00
|
|
|
|
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
|
2015-12-05 02:11:31 -05:00
|
|
|
|
;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
|
2016-03-27 22:10:48 -04:00
|
|
|
|
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
|
2016-02-25 16:26:45 -05:00
|
|
|
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
2016-05-21 19:19:42 -04:00
|
|
|
|
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
|
2016-05-29 13:00:33 -04:00
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2016-06-16 08:08:24 -04:00
|
|
|
|
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
|
2016-06-23 11:06:52 -04:00
|
|
|
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
2016-07-02 14:27:41 -04:00
|
|
|
|
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
|
2016-07-04 12:16:05 -04:00
|
|
|
|
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
2016-08-13 16:22:49 -04:00
|
|
|
|
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
|
2016-08-05 13:21:17 -04:00
|
|
|
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
2016-08-17 12:45:24 -04:00
|
|
|
|
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
|
2016-09-16 15:43:32 -04:00
|
|
|
|
;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at>
|
2016-08-13 15:23:31 -04:00
|
|
|
|
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
|
2016-10-29 06:10:00 -04:00
|
|
|
|
;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
|
2016-10-20 06:15:03 -04:00
|
|
|
|
;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
|
2013-01-14 21:29:28 -05:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2013-01-17 19:06:24 -05:00
|
|
|
|
(define-module (gnu packages python)
|
2016-08-05 13:21:17 -04:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-04-05 18:28:39 -04:00
|
|
|
|
#:use-module (gnu packages)
|
2016-04-06 14:49:40 -04:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2016-06-04 02:41:42 -04:00
|
|
|
|
#:use-module (gnu packages adns)
|
2015-09-01 17:33:51 -04:00
|
|
|
|
#:use-module (gnu packages attr)
|
2015-10-15 16:37:26 -04:00
|
|
|
|
#:use-module (gnu packages backup)
|
2016-10-15 22:44:29 -04:00
|
|
|
|
#:use-module (gnu packages bash)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages compression)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages databases)
|
2016-09-11 14:32:49 -04:00
|
|
|
|
#:use-module (gnu packages django)
|
2015-10-26 04:58:55 -04:00
|
|
|
|
#:use-module (gnu packages file)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
|
#:use-module (gnu packages gcc)
|
|
|
|
|
#:use-module (gnu packages ghostscript)
|
2016-08-13 16:22:49 -04:00
|
|
|
|
#:use-module (gnu packages gl)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages glib)
|
2016-08-13 16:22:49 -04:00
|
|
|
|
#:use-module (gnu packages gstreamer)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2013-09-22 03:44:49 -04:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
2014-11-20 23:34:57 -05:00
|
|
|
|
#:use-module (gnu packages image)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages imagemagick)
|
2016-06-04 02:41:42 -04:00
|
|
|
|
#:use-module (gnu packages libevent)
|
2014-01-31 19:39:04 -05:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2015-09-01 17:33:51 -04:00
|
|
|
|
#:use-module (gnu packages linux)
|
2014-11-24 14:51:29 -05:00
|
|
|
|
#:use-module (gnu packages maths)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2015-05-21 09:20:45 -04:00
|
|
|
|
#:use-module (gnu packages networking)
|
2014-12-23 06:41:31 -05:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2016-08-13 15:23:31 -04:00
|
|
|
|
#:use-module (gnu packages openstack)
|
2016-09-11 14:39:22 -04:00
|
|
|
|
#:use-module (gnu packages password-utils)
|
2015-07-07 07:56:49 -04:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages perl)
|
2014-01-31 19:39:04 -05:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-10-20 06:15:04 -04:00
|
|
|
|
#:use-module (gnu packages protobuf)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages readline)
|
2016-08-13 16:22:49 -04:00
|
|
|
|
#:use-module (gnu packages sdl)
|
2015-07-07 07:56:49 -04:00
|
|
|
|
#:use-module (gnu packages statistics)
|
2016-05-24 15:18:53 -04:00
|
|
|
|
#:use-module (gnu packages tex)
|
2014-11-27 14:11:53 -05:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 12:27:24 -04:00
|
|
|
|
#:use-module (gnu packages tls)
|
2016-04-03 07:09:17 -04:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2016-11-04 15:23:01 -04:00
|
|
|
|
#:use-module (gnu packages video)
|
2015-02-20 11:38:17 -05:00
|
|
|
|
#:use-module (gnu packages web)
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 11:21:21 -05:00
|
|
|
|
#:use-module (gnu packages base)
|
2015-02-12 15:14:38 -05:00
|
|
|
|
#:use-module (gnu packages xml)
|
2014-12-10 14:36:58 -05:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-02-05 22:07:11 -05:00
|
|
|
|
#:use-module (gnu packages xdisorg)
|
2015-02-13 15:02:47 -05:00
|
|
|
|
#:use-module (gnu packages zip)
|
2015-10-07 15:31:45 -04:00
|
|
|
|
#:use-module (gnu packages tcl)
|
2016-04-07 08:28:57 -04:00
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2013-01-14 21:29:28 -05:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2014-11-20 23:36:34 -05:00
|
|
|
|
#:use-module (guix git-download)
|
2013-09-08 10:57:37 -04:00
|
|
|
|
#:use-module (guix utils)
|
2013-05-22 21:49:02 -04:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2015-10-15 16:12:38 -04:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2013-09-03 15:27:40 -04:00
|
|
|
|
#:use-module (guix build-system python)
|
2014-11-27 14:11:53 -05:00
|
|
|
|
#:use-module (guix build-system trivial)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2013-01-14 21:29:28 -05:00
|
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
|
(define-public python-2.7
|
2013-01-14 21:29:28 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "python")
|
2016-08-20 06:22:29 -04:00
|
|
|
|
(version "2.7.12")
|
2013-01-14 21:29:28 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2014-03-17 13:24:13 -04:00
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
2013-01-14 21:29:28 -05:00
|
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-20 06:22:29 -04:00
|
|
|
|
"0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp"))
|
2016-05-02 11:53:40 -04:00
|
|
|
|
(patches (search-patches "python-2.7-search-paths.patch"
|
|
|
|
|
"python-2-deterministic-build-info.patch"
|
|
|
|
|
"python-2.7-source-date-epoch.patch"))
|
2016-02-14 15:15:57 -05:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
;; suboptimal to delete failing tests here, but if we delete them in the
|
|
|
|
|
;; arguments then we need to make sure to strip out that phase when it
|
|
|
|
|
;; gets inherited by python and python-minimal.
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
'("Lib/test/test_compileall.py"
|
2016-08-20 06:22:29 -04:00
|
|
|
|
"Lib/test/test_ctypes.py" ; fails on mips64el
|
2016-02-14 15:15:57 -05:00
|
|
|
|
"Lib/test/test_distutils.py"
|
|
|
|
|
"Lib/test/test_import.py"
|
|
|
|
|
"Lib/test/test_shutil.py"
|
|
|
|
|
"Lib/test/test_socket.py"
|
2016-07-27 18:58:40 -04:00
|
|
|
|
"Lib/test/test_subprocess.py"))
|
2016-02-14 15:15:57 -05:00
|
|
|
|
#t))))
|
2015-11-15 16:27:45 -05:00
|
|
|
|
(outputs '("out"
|
|
|
|
|
"tk")) ;tkinter; adds 50 MiB to the closure
|
2013-01-14 21:29:28 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2013-04-05 18:28:39 -04:00
|
|
|
|
(arguments
|
2016-02-14 15:15:57 -05:00
|
|
|
|
`(;; 356 tests OK.
|
2016-02-14 08:35:26 -05:00
|
|
|
|
;; 6 tests failed:
|
|
|
|
|
;; test_compileall test_distutils test_import test_shutil test_socket
|
|
|
|
|
;; test_subprocess
|
|
|
|
|
;; 39 tests skipped:
|
2015-08-02 13:27:24 -04:00
|
|
|
|
;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
|
|
|
|
|
;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
|
2016-02-14 08:35:26 -05:00
|
|
|
|
;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
|
|
|
|
|
;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl
|
|
|
|
|
;; test_kqueue test_linuxaudiodev test_macos test_macostools
|
|
|
|
|
;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet
|
|
|
|
|
;; test_socketserver test_startfile test_sunaudiodev test_timeout
|
|
|
|
|
;; test_tk test_ttk_guionly test_urllib2net test_urllibnet
|
|
|
|
|
;; test_winreg test_winsound test_zipfile64
|
|
|
|
|
;; 4 skips unexpected on linux2:
|
|
|
|
|
;; test_bsddb test_bsddb3 test_gdb test_ioctl
|
2013-08-27 04:49:43 -04:00
|
|
|
|
#:test-target "test"
|
2013-04-05 18:28:39 -04:00
|
|
|
|
#:configure-flags
|
2015-10-07 18:05:34 -04:00
|
|
|
|
(list "--enable-shared" ;allow embedding
|
|
|
|
|
"--with-system-ffi" ;build ctypes
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
|
(assoc-ref %outputs "out") "/lib"))
|
2013-05-07 19:50:21 -04:00
|
|
|
|
|
2015-11-15 16:15:41 -05:00
|
|
|
|
#:modules ((ice-9 ftw) (ice-9 match)
|
|
|
|
|
(guix build utils) (guix build gnu-build-system))
|
2013-05-07 19:50:21 -04:00
|
|
|
|
#:phases
|
2015-07-15 13:31:51 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'configure 'patch-lib-shells
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Filter for existing files, since some may not exist in all
|
|
|
|
|
;; versions of python that are built with this recipe.
|
|
|
|
|
(substitute* (filter file-exists?
|
|
|
|
|
'("Lib/subprocess.py"
|
|
|
|
|
"Lib/popen2.py"
|
|
|
|
|
"Lib/distutils/tests/test_spawn.py"
|
|
|
|
|
"Lib/test/test_subprocess.py"))
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
2015-11-13 18:08:35 -05:00
|
|
|
|
|
|
|
|
|
;; Use zero as the timestamp in .pyc files so that builds are
|
|
|
|
|
;; deterministic. TODO: Remove it when this variable is set in
|
|
|
|
|
;; gnu-build-system.scm.
|
2015-11-14 10:52:17 -05:00
|
|
|
|
(setenv "SOURCE_DATE_EPOCH" "1")
|
2015-07-15 13:31:51 -04:00
|
|
|
|
#t))
|
2015-11-15 11:51:12 -05:00
|
|
|
|
(add-before 'configure 'do-not-record-configure-flags
|
|
|
|
|
(lambda* (#:key configure-flags #:allow-other-keys)
|
|
|
|
|
;; Remove configure flags from the installed '_sysconfigdata.py'
|
|
|
|
|
;; and 'Makefile' so we don't end up keeping references to the
|
|
|
|
|
;; build tools.
|
|
|
|
|
;;
|
|
|
|
|
;; Preserve at least '--with-system-ffi' since otherwise the
|
|
|
|
|
;; thing tries to build libffi, fails, and we end up with a
|
|
|
|
|
;; Python that lacks ctypes.
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("^CONFIG_ARGS=.*$")
|
|
|
|
|
(format #f "CONFIG_ARGS='~a'\n"
|
|
|
|
|
(if (member "--with-system-ffi" configure-flags)
|
|
|
|
|
"--with-system-ffi"
|
|
|
|
|
""))))
|
|
|
|
|
#t))
|
2015-07-15 13:31:51 -04:00
|
|
|
|
(add-before
|
|
|
|
|
'check 'pre-check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; 'Lib/test/test_site.py' needs a valid $HOME
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after
|
|
|
|
|
'unpack 'set-source-file-times-to-1980
|
|
|
|
|
;; XXX One of the tests uses a ZIP library to pack up some of the
|
|
|
|
|
;; source tree, and fails with "ZIP does not support timestamps
|
|
|
|
|
;; before 1980". Work around this by setting the file times in the
|
|
|
|
|
;; source tree to sometime in early 1980.
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((circa-1980 (* 10 366 24 60 60)))
|
|
|
|
|
(ftw "." (lambda (file stat flag)
|
|
|
|
|
(utime file circa-1980 circa-1980)
|
|
|
|
|
#t))
|
2015-11-15 16:27:45 -05:00
|
|
|
|
#t)))
|
2016-05-10 03:03:55 -04:00
|
|
|
|
(add-after 'install 'remove-tests
|
|
|
|
|
;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
|
|
|
|
|
;; because these files are used by some libraries out there.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(match (scandir (string-append out "/lib")
|
|
|
|
|
(lambda (name)
|
|
|
|
|
(string-prefix? "python" name)))
|
|
|
|
|
((pythonX.Y)
|
|
|
|
|
(let ((testdir (string-append out "/lib/" pythonX.Y
|
|
|
|
|
"/test")))
|
|
|
|
|
(with-directory-excursion testdir
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
(scandir testdir
|
|
|
|
|
(match-lambda
|
|
|
|
|
((or "." "..") #f)
|
|
|
|
|
(file
|
|
|
|
|
(not
|
|
|
|
|
(string-prefix? "test_support."
|
|
|
|
|
file))))))
|
|
|
|
|
(call-with-output-file "__init__.py" (const #t))
|
|
|
|
|
#t)))))))
|
2016-05-10 03:04:40 -04:00
|
|
|
|
(add-before 'strip 'make-libraries-writable
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Make .so files writable so they can be stripped.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(chmod file #o755))
|
|
|
|
|
(find-files (string-append out "/lib")
|
|
|
|
|
"\\.so"))
|
|
|
|
|
#t)))
|
2015-11-15 16:27:45 -05:00
|
|
|
|
(add-after 'install 'move-tk-inter
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; When Tkinter support is built move it to a separate output so
|
|
|
|
|
;; that the main output doesn't contain a reference to Tcl/Tk.
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(tk (assoc-ref outputs "tk")))
|
|
|
|
|
(when tk
|
|
|
|
|
(match (find-files out "tkinter.*\\.so")
|
|
|
|
|
((tkinter.so)
|
|
|
|
|
;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
|
|
|
|
|
;; want it under TK/lib/pythonX.Y/site-packages.
|
|
|
|
|
(let* ((len (string-length out))
|
|
|
|
|
(target (string-append
|
|
|
|
|
tk "/"
|
|
|
|
|
(string-drop
|
|
|
|
|
(dirname (dirname tkinter.so))
|
|
|
|
|
len)
|
|
|
|
|
"/site-packages")))
|
|
|
|
|
(install-file tkinter.so target)
|
|
|
|
|
(delete-file tkinter.so)))))
|
|
|
|
|
#t))))))
|
2013-01-14 21:29:28 -05:00
|
|
|
|
(inputs
|
2013-04-05 18:28:39 -04:00
|
|
|
|
`(("bzip2" ,bzip2)
|
|
|
|
|
("gdbm" ,gdbm)
|
2014-01-31 19:39:04 -05:00
|
|
|
|
("libffi" ,libffi) ; for ctypes
|
2014-11-17 20:36:01 -05:00
|
|
|
|
("sqlite" ,sqlite) ; for sqlite extension
|
2013-01-14 21:29:28 -05:00
|
|
|
|
("openssl" ,openssl)
|
2013-04-05 18:28:39 -04:00
|
|
|
|
("readline" ,readline)
|
2015-10-07 15:31:45 -04:00
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("tcl" ,tcl)
|
|
|
|
|
("tk" ,tk))) ; for tkinter
|
2014-01-31 19:39:04 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-03-30 17:50:45 -04:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "PYTHONPATH")
|
packages: Add 'file-type' field to 'search-path-specification'.
Fixes <http://bugs.gnu.org/18033>.
* guix/packages.scm (<search-path-specification>): Rename 'directories'
field to 'files'. Add 'file-type'.
(search-path-specification->sexp): Honor 'file-type'.
* gnu/packages/autotools.scm, gnu/packages/bootstrap.scm,
gnu/packages/cross-base.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/glib.scm,
gnu/packages/guile.scm, gnu/packages/man.scm,
gnu/packages/perl.scm, gnu/packages/pkg-config.scm,
gnu/packages/python.scm, gnu/packages/ruby.scm,
gnu/packages/xfce.scm: Change 'directories' to 'files'.
* tests/packages.scm ("search paths"): Change 'directories' field to
'files'.
* guix/scripts/environment.scm (for-each-search-path): Likewise.
2014-12-27 17:22:08 -05:00
|
|
|
|
(files '("lib/python2.7/site-packages")))))
|
2016-08-20 06:22:29 -04:00
|
|
|
|
(home-page "https://www.python.org")
|
2015-10-07 15:31:45 -04:00
|
|
|
|
(synopsis "High-level, dynamically-typed programming language")
|
2013-01-14 21:29:28 -05:00
|
|
|
|
(description
|
|
|
|
|
"Python is a remarkably powerful dynamic programming language that
|
|
|
|
|
is used in a wide variety of application domains. Some of its key
|
|
|
|
|
distinguishing features include: clear, readable syntax; strong
|
|
|
|
|
introspection capabilities; intuitive object orientation; natural
|
|
|
|
|
expression of procedural code; full modularity, supporting hierarchical
|
|
|
|
|
packages; exception-based error handling; and very high level dynamic
|
|
|
|
|
data types.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2013-05-22 21:49:02 -04:00
|
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
|
;; Current 2.x version.
|
|
|
|
|
(define-public python-2 python-2.7)
|
|
|
|
|
|
2016-08-21 00:51:38 -04:00
|
|
|
|
(define-public python-3.5
|
2013-09-02 15:48:50 -04:00
|
|
|
|
(package (inherit python-2)
|
2016-08-21 00:51:38 -04:00
|
|
|
|
(version "3.5.2")
|
2014-04-07 16:50:48 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
|
|
|
|
version "/Python-" version ".tar.xz"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches
|
|
|
|
|
"python-fix-tests.patch"
|
2016-08-21 00:51:38 -04:00
|
|
|
|
"python-3.5-fix-tests.patch"
|
2016-04-08 08:18:13 -04:00
|
|
|
|
"python-3-deterministic-build-info.patch"
|
|
|
|
|
"python-3-search-paths.patch"))
|
2014-04-07 16:50:48 -04:00
|
|
|
|
(patch-flags '("-p0"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-21 00:51:38 -04:00
|
|
|
|
"0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400"))))
|
2015-03-22 22:39:56 -04:00
|
|
|
|
(arguments (substitute-keyword-arguments (package-arguments python-2)
|
|
|
|
|
((#:tests? _) #t)))
|
2013-08-31 12:43:17 -04:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "PYTHONPATH")
|
2015-04-14 03:11:51 -04:00
|
|
|
|
(files (list (string-append "lib/python"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/site-packages"))))))))
|
2013-08-31 08:52:24 -04:00
|
|
|
|
|
2016-08-21 00:51:38 -04:00
|
|
|
|
(define-public python-3.4
|
|
|
|
|
(package (inherit python-3.5)
|
|
|
|
|
(version "3.4.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
|
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
|
(patches (search-patches
|
|
|
|
|
"python-fix-tests.patch"
|
|
|
|
|
"python-3.4-fix-tests.patch"
|
|
|
|
|
"python-3-deterministic-build-info.patch"
|
|
|
|
|
"python-3-search-paths.patch"))
|
|
|
|
|
(patch-flags '("-p0"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f"))))))
|
|
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
|
;; Current 3.x version.
|
2016-08-21 00:51:38 -04:00
|
|
|
|
(define-public python-3 python-3.5)
|
2016-05-15 05:51:54 -04:00
|
|
|
|
|
|
|
|
|
;; Current major version.
|
|
|
|
|
(define-public python python-3)
|
|
|
|
|
|
2015-10-07 15:27:36 -04:00
|
|
|
|
;; Minimal variants of Python, mostly used to break the cycle between Tk and
|
|
|
|
|
;; Python (Tk -> libxcb -> Python.)
|
|
|
|
|
|
|
|
|
|
(define-public python2-minimal
|
|
|
|
|
(package (inherit python-2)
|
|
|
|
|
(name "python-minimal")
|
2015-11-15 16:27:45 -05:00
|
|
|
|
(outputs '("out"))
|
2015-10-07 15:27:36 -04:00
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments python-2)
|
2015-11-14 18:27:15 -05:00
|
|
|
|
((#:configure-flags cf)
|
|
|
|
|
`(append ,cf '("--without-system-ffi")))))
|
2015-10-07 15:27:36 -04:00
|
|
|
|
(inputs '()))) ;none of the optional dependencies
|
|
|
|
|
|
|
|
|
|
(define-public python-minimal
|
2013-09-03 15:27:40 -04:00
|
|
|
|
(package (inherit python)
|
2015-10-07 15:27:36 -04:00
|
|
|
|
(name "python-minimal")
|
2015-11-15 16:27:45 -05:00
|
|
|
|
(outputs '("out"))
|
2015-10-07 15:27:36 -04:00
|
|
|
|
|
2016-06-20 15:05:20 -04:00
|
|
|
|
;; Build fails due to missing ctypes without libffi.
|
2015-10-07 15:27:36 -04:00
|
|
|
|
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
|
|
|
|
|
;; zlib is required by 'zipimport', used by pip.
|
2016-06-20 15:05:20 -04:00
|
|
|
|
(inputs `(("libffi" ,libffi)
|
|
|
|
|
("openssl" ,openssl)
|
2015-10-07 15:27:36 -04:00
|
|
|
|
("zlib" ,zlib)))))
|
|
|
|
|
|
2015-12-22 16:24:41 -05:00
|
|
|
|
(define* (wrap-python3 python
|
|
|
|
|
#:optional
|
|
|
|
|
(name (string-append (package-name python) "-wrapper")))
|
2013-09-03 15:27:40 -04:00
|
|
|
|
(package (inherit python)
|
2015-10-07 15:27:36 -04:00
|
|
|
|
(name name)
|
2013-09-03 15:27:40 -04:00
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
2015-11-15 16:27:45 -05:00
|
|
|
|
(outputs '("out"))
|
2016-10-15 22:44:29 -04:00
|
|
|
|
(inputs `(("bash" ,bash)))
|
2014-11-02 06:47:32 -05:00
|
|
|
|
(propagated-inputs `(("python" ,python)))
|
2013-09-03 15:27:40 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
(let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
|
|
|
|
|
(python (string-append (assoc-ref %build-inputs "python") "/bin/")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (old new)
|
|
|
|
|
(symlink (string-append python old)
|
|
|
|
|
(string-append bin "/" new)))
|
2016-10-15 22:44:29 -04:00
|
|
|
|
`("python3" ,"pydoc3" ,"idle3" ,"pip3")
|
|
|
|
|
`("python" ,"pydoc" ,"idle" ,"pip"))
|
|
|
|
|
;; python-config outputs search paths based upon its location,
|
|
|
|
|
;; use a bash wrapper to avoid changing its outputs.
|
|
|
|
|
(let ((bash (string-append (assoc-ref %build-inputs "bash")
|
|
|
|
|
"/bin/bash"))
|
|
|
|
|
(old (string-append python "python3-config"))
|
|
|
|
|
(new (string-append bin "/python-config")))
|
|
|
|
|
(with-output-to-file new
|
|
|
|
|
(lambda ()
|
|
|
|
|
(format #t "#!~a~%" bash)
|
|
|
|
|
(format #t "exec \"~a\" \"$@\"~%" old)
|
|
|
|
|
(chmod new #o755)
|
|
|
|
|
#t)))))))
|
2015-10-07 05:51:14 -04:00
|
|
|
|
(synopsis "Wrapper for the Python 3 commands")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides wrappers for the commands of Python@tie{}3.x such
|
|
|
|
|
that they can be invoked under their usual name---e.g., @command{python}
|
|
|
|
|
instead of @command{python3}.")))
|
|
|
|
|
|
2015-10-07 15:27:36 -04:00
|
|
|
|
(define-public python-wrapper (wrap-python3 python))
|
|
|
|
|
(define-public python-minimal-wrapper (wrap-python3 python-minimal))
|
2013-09-03 15:27:40 -04:00
|
|
|
|
|
2015-07-10 08:57:05 -04:00
|
|
|
|
(define-public python-psutil
|
|
|
|
|
(package
|
|
|
|
|
(name "python-psutil")
|
2016-07-07 10:37:02 -04:00
|
|
|
|
(version "4.3.0")
|
2015-07-10 08:57:05 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 08:59:07 -05:00
|
|
|
|
(uri (pypi-uri "psutil" version))
|
2015-07-10 08:57:05 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-07 10:37:02 -04:00
|
|
|
|
"1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6"))))
|
2015-07-10 08:57:05 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2016-07-07 10:37:02 -04:00
|
|
|
|
(home-page "https://www.github.com/giampaolo/psutil")
|
2015-07-10 08:57:05 -04:00
|
|
|
|
(synopsis "Library for retrieving information on running processes")
|
|
|
|
|
(description
|
|
|
|
|
"psutil (Python system and process utilities) is a library for retrieving
|
|
|
|
|
information on running processes and system utilization (CPU, memory, disks,
|
|
|
|
|
network) in Python. It is useful mainly for system monitoring, profiling and
|
|
|
|
|
limiting process resources and management of running processes. It implements
|
|
|
|
|
many functionalities offered by command line tools such as: ps, top, lsof,
|
|
|
|
|
netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
|
|
|
|
|
pidof, tty, taskset, pmap.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-07-10 08:57:05 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-psutil
|
|
|
|
|
(package-with-python2 python-psutil))
|
2013-09-03 15:27:40 -04:00
|
|
|
|
|
2015-07-25 15:39:50 -04:00
|
|
|
|
(define-public python-passlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-passlib")
|
2016-11-23 14:37:32 -05:00
|
|
|
|
(version "1.7.0")
|
2015-07-25 15:39:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 10:54:19 -05:00
|
|
|
|
(uri (pypi-uri "passlib" version))
|
2015-07-25 15:39:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-23 14:37:32 -05:00
|
|
|
|
"1vdbqsa1a31s98fxkinl052q8nnpvbxnb83qanxfpi2p6c2zdr0b"))))
|
2015-07-25 15:39:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-py-bcrypt" ,python-py-bcrypt)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'check 'set-PYTHON_EGG_CACHE
|
|
|
|
|
;; some tests require access to "$HOME/.cython"
|
|
|
|
|
(lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "https://bitbucket.org/ecollins/passlib")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Comprehensive password hashing framework")
|
|
|
|
|
(description
|
|
|
|
|
"Passlib is a password hashing library for Python 2 & 3, which provides
|
|
|
|
|
cross-platform implementations of over 30 password hashing algorithms, as well
|
|
|
|
|
as a framework for managing existing password hashes. It's designed to be
|
|
|
|
|
useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
|
|
|
|
|
to providing full-strength password hashing for multi-user application.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-07-25 15:39:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-passlib
|
|
|
|
|
(package-with-python2 python-passlib))
|
|
|
|
|
|
2015-07-25 15:39:03 -04:00
|
|
|
|
(define-public python-py-bcrypt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-py-bcrypt")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://code.google.com/p/py-bcrypt")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Bcrypt password hashing and key derivation")
|
|
|
|
|
(description
|
|
|
|
|
"A python wrapper of OpenBSD's Blowfish password hashing code. This
|
|
|
|
|
system hashes passwords using a version of Bruce Schneier's Blowfish block
|
|
|
|
|
cipher with modifications designed to raise the cost of off-line password
|
|
|
|
|
cracking and frustrate fast hardware implementation. The computation cost of
|
|
|
|
|
the algorithm is parametised, so it can be increased as computers get faster.
|
|
|
|
|
The intent is to make a compromise of a password database less likely to
|
|
|
|
|
result in an attacker gaining knowledge of the plaintext passwords (e.g. using
|
|
|
|
|
John the Ripper).")
|
|
|
|
|
;; "sha2.c" is under BSD-3;
|
|
|
|
|
;; "blowfish.c" and "bcrypt.c" are under BSD-4;
|
|
|
|
|
;; the rest is under ISC.
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:isc license:bsd-3 license:bsd-4))))
|
2015-07-25 15:39:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-py-bcrypt
|
|
|
|
|
(package-with-python2 python-py-bcrypt))
|
|
|
|
|
|
|
|
|
|
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(define-public python-paramiko
|
|
|
|
|
(package
|
|
|
|
|
(name "python-paramiko")
|
2016-04-10 04:57:11 -04:00
|
|
|
|
(version "1.16.0")
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 04:57:11 -04:00
|
|
|
|
(uri (pypi-uri "paramiko" version))
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 04:57:11 -04:00
|
|
|
|
"14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj"))))
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2015-10-11 20:31:38 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pycrypto" ,python-pycrypto)))
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(inputs
|
2015-10-11 20:31:38 -04:00
|
|
|
|
`(("python-ecdsa" ,python-ecdsa)))
|
2015-07-25 15:38:04 -04:00
|
|
|
|
(home-page "http://www.paramiko.org/")
|
|
|
|
|
(synopsis "SSHv2 protocol library")
|
|
|
|
|
(description "Paramiko is a python implementation of the SSHv2 protocol,
|
|
|
|
|
providing both client and server functionality. While it leverages a Python C
|
|
|
|
|
extension for low level cryptography (PyCrypto), Paramiko itself is a pure
|
|
|
|
|
Python interface around SSH networking concepts.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2015-07-25 15:38:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-paramiko
|
|
|
|
|
(package-with-python2 python-paramiko))
|
|
|
|
|
|
|
|
|
|
|
2015-07-25 15:36:51 -04:00
|
|
|
|
(define-public python-httplib2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-httplib2")
|
2016-04-10 05:13:02 -04:00
|
|
|
|
(version "0.9.2")
|
2015-07-25 15:36:51 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 05:13:02 -04:00
|
|
|
|
(uri (pypi-uri "httplib2" version))
|
2015-07-25 15:36:51 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 05:13:02 -04:00
|
|
|
|
"126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
|
2015-07-25 15:36:51 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2016-04-10 05:13:02 -04:00
|
|
|
|
(home-page "https://github.com/jcgregorio/httplib2")
|
2015-07-25 15:36:51 -04:00
|
|
|
|
(synopsis "Comprehensive HTTP client library")
|
|
|
|
|
(description
|
|
|
|
|
"A comprehensive HTTP client library supporting many features left out of
|
|
|
|
|
other HTTP libraries.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-httplib2
|
|
|
|
|
(package-with-python2 python-httplib2))
|
|
|
|
|
|
2015-07-25 15:35:35 -04:00
|
|
|
|
(define-public python-ecdsa
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ecdsa")
|
|
|
|
|
(version "0.13")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://github.com/warner/python-ecdsa")
|
|
|
|
|
(synopsis
|
|
|
|
|
"ECDSA cryptographic signature library (pure python)")
|
|
|
|
|
(description
|
|
|
|
|
"This is an easy-to-use implementation of ECDSA cryptography (Elliptic
|
|
|
|
|
Curve Digital Signature Algorithm), implemented purely in Python. With this
|
|
|
|
|
library, you can quickly create keypairs (signing key and verifying key), sign
|
|
|
|
|
messages, and verify the signatures. The keys and signatures are very short,
|
|
|
|
|
making them easy to handle and incorporate into other protocols.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ecdsa
|
|
|
|
|
(package-with-python2 python-ecdsa))
|
|
|
|
|
|
2015-07-25 15:34:19 -04:00
|
|
|
|
(define-public python-ccm
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ccm")
|
2016-04-10 05:16:44 -04:00
|
|
|
|
(version "2.1.6")
|
2015-07-25 15:34:19 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 05:16:44 -04:00
|
|
|
|
(uri (pypi-uri "ccm" version))
|
2015-07-25 15:34:19 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 05:16:44 -04:00
|
|
|
|
"177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
|
2015-07-25 15:34:19 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pyyaml" ,python-pyyaml)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/pcmanus/ccm")
|
|
|
|
|
(synopsis "Cassandra Cluster Manager")
|
|
|
|
|
(description "A script/library to create, launch and remove an Apache
|
|
|
|
|
Cassandra cluster on localhost.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-07-25 15:34:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-ccm
|
|
|
|
|
(package-with-python2 python-ccm))
|
|
|
|
|
|
2013-09-04 16:12:33 -04:00
|
|
|
|
(define-public python-pytz
|
2013-05-22 21:49:02 -04:00
|
|
|
|
(package
|
2013-09-04 16:12:33 -04:00
|
|
|
|
(name "python-pytz")
|
2016-04-10 05:27:42 -04:00
|
|
|
|
(version "2016.3")
|
2013-05-22 21:49:02 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 05:27:42 -04:00
|
|
|
|
(uri (pypi-uri "pytz" version ".tar.bz2"))
|
2013-05-22 21:49:02 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 05:27:42 -04:00
|
|
|
|
"1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1"))))
|
2013-05-22 21:49:02 -04:00
|
|
|
|
(build-system python-build-system)
|
2013-09-05 12:55:27 -04:00
|
|
|
|
(arguments `(#:tests? #f)) ; no test target
|
2015-12-09 22:30:09 -05:00
|
|
|
|
(home-page "http://pythonhosted.org/pytz")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Python timezone library")
|
2013-05-22 21:49:02 -04:00
|
|
|
|
(description
|
|
|
|
|
"This library allows accurate and cross platform timezone calculations
|
|
|
|
|
using Python 2.4 or higher and provides access to the Olson timezone database.")
|
2015-12-09 22:30:09 -05:00
|
|
|
|
(license license:expat)))
|
2013-05-22 21:52:20 -04:00
|
|
|
|
|
2013-09-04 16:12:33 -04:00
|
|
|
|
(define-public python2-pytz
|
2013-09-08 10:57:37 -04:00
|
|
|
|
(package-with-python2 python-pytz))
|
2013-09-04 16:12:33 -04:00
|
|
|
|
|
2013-09-11 09:51:13 -04:00
|
|
|
|
|
2013-09-04 16:12:33 -04:00
|
|
|
|
(define-public python-babel
|
2013-05-22 21:52:20 -04:00
|
|
|
|
(package
|
2013-09-04 16:12:33 -04:00
|
|
|
|
(name "python-babel")
|
2016-04-10 05:21:51 -04:00
|
|
|
|
(version "2.3.2")
|
2013-05-22 21:52:20 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-01 13:55:06 -05:00
|
|
|
|
(uri (pypi-uri "Babel" version))
|
2013-05-22 21:52:20 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 05:21:51 -04:00
|
|
|
|
"0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw"))))
|
2013-05-22 21:52:20 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
2013-09-11 16:56:52 -04:00
|
|
|
|
`(("python-pytz" ,python-pytz)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
2013-09-05 12:55:27 -04:00
|
|
|
|
(arguments `(#:tests? #f)) ; no test target
|
2013-09-11 16:56:52 -04:00
|
|
|
|
(home-page "http://babel.pocoo.org/")
|
2013-05-22 21:52:20 -04:00
|
|
|
|
(synopsis
|
|
|
|
|
"Tools for internationalizing Python applications")
|
|
|
|
|
(description
|
|
|
|
|
"Babel is composed of two major parts:
|
|
|
|
|
- tools to build and work with gettext message catalogs
|
|
|
|
|
- a Python interface to the CLDR (Common Locale Data Repository), providing
|
|
|
|
|
access to various locale display names, localized number and date formatting,
|
|
|
|
|
etc. ")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2013-09-04 16:12:33 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-babel
|
2013-09-08 10:57:37 -04:00
|
|
|
|
(package-with-python2 python-babel))
|
2013-09-10 15:08:12 -04:00
|
|
|
|
|
2015-04-28 04:17:49 -04:00
|
|
|
|
(define-public python2-backport-ssl-match-hostname
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-backport-ssl-match-hostname")
|
2016-02-07 08:24:43 -05:00
|
|
|
|
(version "3.5.0.1")
|
2015-04-28 04:17:49 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/b/"
|
|
|
|
|
"backports.ssl_match_hostname/backports.ssl_match_hostname-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-07 08:24:43 -05:00
|
|
|
|
"1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
|
2015-04-28 04:17:49 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-02-07 08:24:43 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; no test target
|
2015-04-28 04:17:49 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
2016-02-07 08:24:43 -05:00
|
|
|
|
(home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
|
|
|
|
|
(synopsis "Backport of ssl.match_hostname() function from Python 3.5")
|
2015-04-28 04:17:49 -04:00
|
|
|
|
(description
|
|
|
|
|
"This backport brings the ssl.match_hostname() function to users of
|
|
|
|
|
earlier versions of Python. The function checks the hostname in the
|
|
|
|
|
certificate returned by the server to which a connection has been established,
|
|
|
|
|
and verifies that it matches the intended target hostname.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2015-04-28 04:17:49 -04:00
|
|
|
|
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(define-public python-h5py
|
|
|
|
|
(package
|
|
|
|
|
(name "python-h5py")
|
2016-04-10 10:12:31 -04:00
|
|
|
|
(version "2.6.0")
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 10:12:31 -04:00
|
|
|
|
(uri (pypi-uri "h5py" version))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 10:12:31 -04:00
|
|
|
|
"0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj"))))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-10-08 07:34:11 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no test target
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-hdf5-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((prefix (assoc-ref inputs "hdf5")))
|
|
|
|
|
(substitute* "setup_build.py"
|
|
|
|
|
(("\\['/opt/local/lib', '/usr/local/lib'\\]")
|
|
|
|
|
(string-append "['" prefix "/lib" "']"))
|
|
|
|
|
(("'/opt/local/include', '/usr/local/include'")
|
|
|
|
|
(string-append "'" prefix "/include" "'")))
|
|
|
|
|
(substitute* "setup_configure.py"
|
|
|
|
|
(("\\['/usr/local/lib', '/opt/local/lib'\\]")
|
|
|
|
|
(string-append "['" prefix "/lib" "']")))
|
|
|
|
|
#t))))))
|
2015-10-08 07:30:23 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-numpy" ,python-numpy)))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(inputs
|
2016-04-10 10:12:31 -04:00
|
|
|
|
`(("hdf5" ,hdf5)
|
|
|
|
|
("python-six" ,python-six)))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(native-inputs
|
2016-04-10 10:12:31 -04:00
|
|
|
|
`(("python-cython" ,python-cython)
|
|
|
|
|
("python-pkgconfig" ,python-pkgconfig)))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
(home-page "http://www.h5py.org/")
|
|
|
|
|
(synopsis "Read and write HDF5 files from Python")
|
|
|
|
|
(description
|
|
|
|
|
"The h5py package provides both a high- and low-level interface to the
|
|
|
|
|
HDF5 library from Python. The low-level interface is intended to be a
|
|
|
|
|
complete wrapping of the HDF5 API, while the high-level component supports
|
|
|
|
|
access to HDF5 files, datasets and groups using established Python and NumPy
|
|
|
|
|
concepts.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-04-10 10:12:31 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-h5py))))))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-h5py
|
2016-04-10 10:12:31 -04:00
|
|
|
|
(package-with-python2 (strip-python2-variant python-h5py)))
|
2015-03-18 09:08:20 -04:00
|
|
|
|
|
2014-05-27 11:01:52 -04:00
|
|
|
|
(define-public python-lockfile
|
|
|
|
|
(package
|
|
|
|
|
(name "python-lockfile")
|
2016-04-03 02:02:49 -04:00
|
|
|
|
(version "0.12.2")
|
2014-05-27 11:01:52 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
|
|
|
|
|
"lockfile-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-03 02:02:49 -04:00
|
|
|
|
"16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
|
2014-05-27 11:01:52 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:test-target "check"))
|
2016-04-03 02:02:49 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pbr" ,python-pbr)))
|
2016-10-05 10:37:42 -04:00
|
|
|
|
(home-page "https://launchpad.net/pylockfile")
|
2014-05-27 11:01:52 -04:00
|
|
|
|
(synopsis "Platform-independent file locking module")
|
|
|
|
|
(description
|
|
|
|
|
"The lockfile package exports a LockFile class which provides a simple
|
|
|
|
|
API for locking files.")
|
2016-04-03 01:55:44 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-lockfile))))))
|
2014-05-27 11:01:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-lockfile
|
2016-04-03 01:55:44 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
|
|
|
|
|
(package
|
2016-04-03 02:02:49 -04:00
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2014-05-27 11:01:52 -04:00
|
|
|
|
|
2014-05-27 11:02:16 -04:00
|
|
|
|
(define-public python-mock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mock")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/m/mock/"
|
|
|
|
|
"mock-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:test-target "check"))
|
2014-12-28 11:57:16 -05:00
|
|
|
|
(home-page "http://code.google.com/p/mock/")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Python mocking and patching library for testing")
|
2014-05-27 11:02:16 -04:00
|
|
|
|
(description
|
|
|
|
|
"Mock is a library for testing in Python. It allows you to replace parts
|
|
|
|
|
of your system under test with mock objects and make assertions about how they
|
|
|
|
|
have been used.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-05-27 11:02:16 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mock
|
|
|
|
|
(package-with-python2 python-mock))
|
|
|
|
|
|
2013-09-11 09:51:13 -04:00
|
|
|
|
|
2013-09-10 15:08:12 -04:00
|
|
|
|
(define-public python-setuptools
|
|
|
|
|
(package
|
|
|
|
|
(name "python-setuptools")
|
2015-09-12 05:01:05 -04:00
|
|
|
|
(version "18.3.1")
|
2013-09-10 15:08:12 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-09-12 05:01:05 -04:00
|
|
|
|
"0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
|
2013-09-10 15:08:12 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-02-15 17:10:58 -05:00
|
|
|
|
;; FIXME: Tests require pytest, which itself relies on setuptools.
|
|
|
|
|
;; One could bootstrap with an internal untested setuptools.
|
2013-09-10 15:08:12 -04:00
|
|
|
|
(arguments
|
2013-09-11 09:47:34 -04:00
|
|
|
|
`(#:tests? #f))
|
2013-09-10 15:08:12 -04:00
|
|
|
|
(home-page "https://pypi.python.org/pypi/setuptools")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Library designed to facilitate packaging Python projects")
|
|
|
|
|
(description
|
|
|
|
|
"Setuptools is a fully-featured, stable library designed to facilitate
|
|
|
|
|
packaging Python projects, where packaging includes:
|
|
|
|
|
Python package and module definitions,
|
|
|
|
|
distribution package metadata,
|
|
|
|
|
test hooks,
|
|
|
|
|
project installation,
|
|
|
|
|
platform-specific details,
|
|
|
|
|
Python 3 support.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2013-09-10 15:08:12 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-setuptools
|
|
|
|
|
(package-with-python2 python-setuptools))
|
2013-09-11 09:51:13 -04:00
|
|
|
|
|
|
|
|
|
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(define-public python-pycrypto
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pycrypto")
|
|
|
|
|
(version "2.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"pycrypto/pycrypto-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)
|
|
|
|
|
("gmp" ,gmp)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'build 'set-build-env
|
|
|
|
|
;; pycrypto runs an autoconf configure script behind the scenes
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "bash")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.pycrypto.org/")
|
|
|
|
|
(synopsis "Cryptographic modules for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Pycrypto is a collection of both secure hash functions (such as SHA256
|
|
|
|
|
and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
etc.). The package is structured to make adding new modules easy.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:public-domain)))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
2015-07-25 15:31:05 -04:00
|
|
|
|
(define-public python2-pycrypto
|
2015-11-30 10:42:53 -05:00
|
|
|
|
(let ((pycrypto (package-with-python2 python-pycrypto)))
|
|
|
|
|
(package (inherit pycrypto)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2)
|
|
|
|
|
,@(alist-delete
|
|
|
|
|
"python"
|
|
|
|
|
(package-inputs pycrypto)))))))
|
2015-07-25 15:31:05 -04:00
|
|
|
|
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(define-public python-keyring
|
|
|
|
|
(package
|
|
|
|
|
(name "python-keyring")
|
2016-04-10 11:02:32 -04:00
|
|
|
|
(version "8.7")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-15 06:05:20 -05:00
|
|
|
|
(uri (pypi-uri "keyring" version))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 11:02:32 -04:00
|
|
|
|
"0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx"))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-04-10 11:02:32 -04:00
|
|
|
|
`(("python-setuptools-scm" ,python-setuptools-scm)))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pycrypto" ,python-pycrypto)))
|
|
|
|
|
(arguments
|
2015-12-15 06:05:20 -05:00
|
|
|
|
`(#:tests? #f)) ;TODO: tests require pytest
|
2016-10-05 10:37:42 -04:00
|
|
|
|
(home-page "https://github.com/jaraco/keyring")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(synopsis "Store and access your passwords safely")
|
|
|
|
|
(description
|
|
|
|
|
"The Python keyring lib provides a easy way to access the system keyring
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
service from python. It can be used in any application that needs safe
|
2014-06-30 12:26:08 -04:00
|
|
|
|
password storage.")
|
|
|
|
|
;; "MIT" and PSF dual license
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)
|
2016-04-10 11:02:32 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-keyring))))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
2015-09-16 19:41:50 -04:00
|
|
|
|
(define-public python2-keyring
|
2016-04-10 11:02:32 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-keyring))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-09-16 19:41:50 -04:00
|
|
|
|
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(define-public python-six
|
|
|
|
|
(package
|
|
|
|
|
(name "python-six")
|
2015-12-01 14:10:55 -05:00
|
|
|
|
(version "1.10.0")
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-01 14:10:55 -05:00
|
|
|
|
(uri (pypi-uri "six" version))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-01 14:10:55 -05:00
|
|
|
|
"0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/six/")
|
|
|
|
|
(synopsis "Python 2 and 3 compatibility utilities")
|
|
|
|
|
(description
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
"Six is a Python 2 and 3 compatibility library. It provides utility
|
2014-06-30 10:56:50 -04:00
|
|
|
|
functions for smoothing over the differences between the Python versions with
|
|
|
|
|
the goal of writing Python code that is compatible on both Python versions.
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
Six supports every Python version since 2.5. It is contained in only one
|
2014-06-30 10:56:50 -04:00
|
|
|
|
Python file, so it can be easily copied into your project.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
|
2015-02-24 18:14:28 -05:00
|
|
|
|
(define-public python2-six
|
|
|
|
|
(package-with-python2 python-six))
|
|
|
|
|
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(define-public python-dateutil-2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dateutil")
|
2016-04-10 11:56:05 -04:00
|
|
|
|
(version "2.5.2")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 11:56:05 -04:00
|
|
|
|
(uri (pypi-uri "python-dateutil" version))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 11:56:05 -04:00
|
|
|
|
"0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86"))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
2016-04-10 11:56:05 -04:00
|
|
|
|
`(("python-six" ,python-six)))
|
2016-10-19 05:52:54 -04:00
|
|
|
|
(home-page "https://dateutil.readthedocs.io/en/stable/")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(synopsis "Extensions to the standard datetime module")
|
|
|
|
|
(description
|
|
|
|
|
"The dateutil module provides powerful extensions to the standard
|
|
|
|
|
datetime module, available in Python 2.3+.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-04-10 11:56:05 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-dateutil-2))))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-dateutil-2
|
2016-04-10 11:56:05 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-dateutil-2))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-inputs base))))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
2013-09-11 09:51:13 -04:00
|
|
|
|
(define-public python-dateutil
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dateutil")
|
|
|
|
|
(version "1.5") ; last version for python < 3
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(uri (string-append "http://labix.org/download/python-dateutil/"
|
|
|
|
|
"python-dateutil-" version ".tar.gz"))
|
2013-09-11 09:51:13 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2016-10-19 05:52:54 -04:00
|
|
|
|
(home-page "https://dateutil.readthedocs.io/en/stable/")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(synopsis "Extensions to the standard datetime module")
|
2013-09-11 09:51:13 -04:00
|
|
|
|
(description
|
|
|
|
|
"The dateutil module provides powerful extensions to the standard
|
|
|
|
|
datetime module, available in Python 2.3+.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2013-09-11 09:51:13 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-dateutil
|
|
|
|
|
(package-with-python2 python-dateutil))
|
2013-09-12 09:31:45 -04:00
|
|
|
|
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(define-public python-parsedatetime
|
|
|
|
|
(package
|
|
|
|
|
(name "python-parsedatetime")
|
2016-04-10 13:07:57 -04:00
|
|
|
|
(version "2.1")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 13:07:57 -04:00
|
|
|
|
(uri (pypi-uri "parsedatetime" version))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 13:07:57 -04:00
|
|
|
|
"0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p"))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-04-10 13:07:57 -04:00
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-pyicu" ,python-pyicu)))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(home-page "http://github.com/bear/parsedatetime/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Parse human-readable date/time text")
|
|
|
|
|
(description
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 08:16:07 -04:00
|
|
|
|
"Parse human-readable date/time text.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-04-10 13:07:57 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-parsedatetime))))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
2015-11-11 04:30:47 -05:00
|
|
|
|
(define-public python2-parsedatetime
|
2016-04-10 13:07:57 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-parsedatetime))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-11-11 04:30:47 -05:00
|
|
|
|
|
2015-04-29 09:14:56 -04:00
|
|
|
|
(define-public python-pandas
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pandas")
|
2016-05-16 10:36:58 -04:00
|
|
|
|
(version "0.18.1")
|
2015-04-29 09:14:56 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2016-02-11 10:09:07 -05:00
|
|
|
|
(method url-fetch)
|
2016-05-16 10:36:58 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/11/09/"
|
|
|
|
|
"e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/"
|
|
|
|
|
"pandas-" version ".tar.gz"))
|
2016-02-11 10:09:07 -05:00
|
|
|
|
(sha256
|
2016-05-16 10:36:58 -04:00
|
|
|
|
(base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j"))))
|
2015-04-29 09:14:56 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2016-04-24 22:17:27 -04:00
|
|
|
|
`(("python-numpy" ,python-numpy)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pytz" ,python-pytz)
|
2015-04-29 09:14:56 -04:00
|
|
|
|
("python-dateutil" ,python-dateutil-2)))
|
|
|
|
|
(native-inputs
|
2016-05-16 10:36:58 -04:00
|
|
|
|
`(("python-nose" ,python-nose)))
|
2015-04-29 09:14:56 -04:00
|
|
|
|
(home-page "http://pandas.pydata.org")
|
|
|
|
|
(synopsis "Data structures for data analysis, time series, and statistics")
|
|
|
|
|
(description
|
|
|
|
|
"Pandas is a Python package providing fast, flexible, and expressive data
|
|
|
|
|
structures designed to make working with structured (tabular,
|
|
|
|
|
multidimensional, potentially heterogeneous) and time series data both easy
|
|
|
|
|
and intuitive. It aims to be the fundamental high-level building block for
|
|
|
|
|
doing practical, real world data analysis in Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-05-16 10:36:58 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-pandas))))))
|
2015-04-29 09:14:56 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pandas
|
2016-05-16 10:36:58 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pandas))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
2016-05-18 03:52:41 -04:00
|
|
|
|
,@(package-native-inputs base))))))
|
2015-04-29 09:14:56 -04:00
|
|
|
|
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(define-public python-tzlocal
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tzlocal")
|
2016-04-10 13:45:49 -04:00
|
|
|
|
(version "1.2.2")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-29 06:11:33 -05:00
|
|
|
|
(uri (pypi-uri "tzlocal" version))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-10 13:45:49 -04:00
|
|
|
|
"0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb"))))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-04-10 13:45:49 -04:00
|
|
|
|
(inputs `(("python-pytz" ,python-pytz)))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(home-page "https://github.com/regebro/tzlocal")
|
|
|
|
|
(synopsis
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
"Local timezone information for Python")
|
2014-06-30 12:26:08 -04:00
|
|
|
|
(description
|
|
|
|
|
"Tzlocal returns a tzinfo object with the local timezone information.
|
|
|
|
|
This module attempts to fix a glaring hole in pytz, that there is no way to
|
|
|
|
|
get the local timezone information, unless you know the zoneinfo name, and
|
|
|
|
|
under several distributions that's hard or impossible to figure out.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:cc0)))
|
2014-06-30 12:26:08 -04:00
|
|
|
|
|
2013-09-12 09:31:45 -04:00
|
|
|
|
(define-public python2-pysqlite
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pysqlite")
|
2016-02-07 08:58:21 -05:00
|
|
|
|
(version "2.8.1")
|
2013-09-12 09:31:45 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-07 08:58:21 -05:00
|
|
|
|
(uri (pypi-uri "pysqlite" version))
|
2013-09-12 09:31:45 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-07 08:58:21 -05:00
|
|
|
|
"0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
|
2013-09-12 09:31:45 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("sqlite" ,sqlite)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; incompatible with Python 3
|
|
|
|
|
#:tests? #f)) ; no test target
|
2016-02-07 08:58:21 -05:00
|
|
|
|
(home-page "http://github.com/ghaering/pysqlite")
|
2014-02-07 17:44:26 -05:00
|
|
|
|
(synopsis "SQLite bindings for Python")
|
2013-09-12 09:31:45 -04:00
|
|
|
|
(description
|
|
|
|
|
"Pysqlite provides SQLite bindings for Python that comply to the
|
|
|
|
|
Database API 2.0T.")
|
2013-09-20 19:59:46 -04:00
|
|
|
|
(license license:zlib)))
|
2013-09-12 09:31:45 -04:00
|
|
|
|
|
2013-09-13 08:25:53 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mechanize
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-mechanize")
|
|
|
|
|
(version "0.2.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; apparently incompatible with Python 3
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
;; test fails with message
|
|
|
|
|
;; AttributeError: 'module' object has no attribute 'test_pullparser'
|
|
|
|
|
;; (python-3.3.2) or
|
|
|
|
|
;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
|
|
|
|
|
;; (python-2.7.5).
|
|
|
|
|
;; The source code is from March 2011 and probably not up-to-date
|
|
|
|
|
;; with respect to python unit tests.
|
|
|
|
|
(home-page "http://wwwsearch.sourceforge.net/mechanize/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Stateful programmatic web browsing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Mechanize implements stateful programmatic web browsing in Python,
|
|
|
|
|
after Andy Lester’s Perl module WWW::Mechanize.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (license:non-copyleft
|
|
|
|
|
"file://COPYING"
|
|
|
|
|
"See COPYING in the distribution."))))
|
2013-09-13 08:25:53 -04:00
|
|
|
|
|
2013-09-21 15:14:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-simplejson
|
|
|
|
|
(package
|
|
|
|
|
(name "python-simplejson")
|
2016-07-17 05:01:56 -04:00
|
|
|
|
(version "3.8.2")
|
2013-09-21 15:14:19 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-17 05:01:56 -04:00
|
|
|
|
(uri (pypi-uri "simplejson" version))
|
2013-09-21 15:14:19 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-17 05:01:56 -04:00
|
|
|
|
"0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m"))))
|
2013-09-21 15:14:19 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://simplejson.readthedocs.org/en/latest/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Json library for Python")
|
|
|
|
|
(description
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 08:16:07 -04:00
|
|
|
|
"JSON (JavaScript Object Notation) is a subset of JavaScript
|
|
|
|
|
syntax (ECMA-262 3rd edition) used as a lightweight data interchange
|
|
|
|
|
format.
|
2013-09-21 15:14:19 -04:00
|
|
|
|
|
|
|
|
|
Simplejson exposes an API familiar to users of the standard library marshal
|
|
|
|
|
and pickle modules. It is the externally maintained version of the json
|
|
|
|
|
library contained in Python 2.6, but maintains compatibility with Python 2.5
|
|
|
|
|
and (currently) has significant performance advantages, even without using
|
|
|
|
|
the optional C extension for speedups. Simplejson is also supported on
|
|
|
|
|
Python 3.3+.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2013-09-21 15:14:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-simplejson
|
|
|
|
|
(package-with-python2 python-simplejson))
|
2013-09-22 03:44:49 -04:00
|
|
|
|
|
|
|
|
|
|
2016-03-03 17:04:56 -05:00
|
|
|
|
(define-public python-pyicu
|
2013-09-22 03:44:49 -04:00
|
|
|
|
(package
|
2016-03-03 17:04:56 -05:00
|
|
|
|
(name "python-pyicu")
|
2016-03-03 17:04:16 -05:00
|
|
|
|
(version "1.9.2")
|
2013-09-22 03:44:49 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-03 17:04:16 -05:00
|
|
|
|
"1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
|
2013-09-22 03:44:49 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("icu4c" ,icu4c)))
|
|
|
|
|
(home-page "http://pyicu.osafoundation.org/")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Python extension wrapping the ICU C++ API")
|
2013-09-22 03:44:49 -04:00
|
|
|
|
(description
|
|
|
|
|
"PyICU is a python extension wrapping the ICU C++ API.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)
|
2016-03-03 17:04:56 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-pyicu))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyicu
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pyicu)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2013-10-13 16:35:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-dogtail
|
|
|
|
|
;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
|
|
|
|
|
;; spaces in indentation" with Python 3.
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-dogtail")
|
|
|
|
|
(version "0.8.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://fedorahosted.org/released/dogtail/dogtail-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; invalid command "test"
|
|
|
|
|
(home-page "https://fedorahosted.org/dogtail/")
|
|
|
|
|
(synopsis "GUI test tool and automation framework written in Python")
|
|
|
|
|
(description
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
"Dogtail is a GUI test tool and automation framework written in Python.
|
2013-10-13 16:35:50 -04:00
|
|
|
|
It uses Accessibility (a11y) technologies to communicate with desktop
|
|
|
|
|
applications. dogtail scripts are written in Python and executed like any
|
|
|
|
|
other Python program.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2+)))
|
2013-10-17 16:27:39 -04:00
|
|
|
|
|
2013-10-28 17:54:48 -04:00
|
|
|
|
(define-public python2-empy
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-empy")
|
|
|
|
|
(version "3.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://www.alcyone.com/software/empy/empy-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:phases (alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "./test.sh")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.alcyone.com/software/empy/")
|
|
|
|
|
(synopsis "Templating system for Python")
|
|
|
|
|
(description
|
|
|
|
|
"EmPy is a system for embedding Python expressions and statements in
|
|
|
|
|
template text; it takes an EmPy source file, processes it, and produces
|
|
|
|
|
output. This is accomplished via expansions, which are special signals to the
|
2015-08-06 18:10:43 -04:00
|
|
|
|
EmPy system and are set off by a special prefix (by default the at sign, @@).
|
2013-10-28 17:54:48 -04:00
|
|
|
|
EmPy can expand arbitrary Python expressions and statements in this way, as
|
|
|
|
|
well as a variety of special forms. Textual data not explicitly delimited in
|
|
|
|
|
this way is sent unaffected to the output, allowing Python to be used in
|
|
|
|
|
effect as a markup language. Also supported are callbacks via hooks,
|
|
|
|
|
recording and playback via diversions, and dynamic, chainable filters. The
|
|
|
|
|
system is highly configurable via command line options and embedded
|
|
|
|
|
commands.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2013-10-28 17:54:48 -04:00
|
|
|
|
|
2014-03-02 18:22:33 -05:00
|
|
|
|
(define-public python2-element-tree
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-element-tree")
|
|
|
|
|
(version "1.2.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://effbot.org/media/downloads/elementtree-"
|
|
|
|
|
version "-20050316.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; seems to be part of Python 3
|
|
|
|
|
#:tests? #f)) ; no 'test' sub-command
|
|
|
|
|
(synopsis "Toolkit for XML processing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"ElementTree is a Python library supporting lightweight XML processing.")
|
|
|
|
|
(home-page "http://effbot.org/zone/element-index.htm")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (license:x11-style
|
|
|
|
|
"http://docs.python.org/2/license.html"
|
|
|
|
|
"Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
|
2014-03-02 18:22:33 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pybugz
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pybugz")
|
|
|
|
|
(version "0.6.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://bits.liquidx.net/projects/pybugz/pybugz-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2014-05-05 11:12:55 -04:00
|
|
|
|
"17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "pybugz-stty.patch"
|
|
|
|
|
"pybugz-encode-error.patch"))))
|
2014-03-02 18:22:33 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; SyntaxError with Python 3
|
|
|
|
|
#:tests? #f)) ; no 'test' sub-command
|
|
|
|
|
(inputs `(("element-tree" ,python2-element-tree)))
|
|
|
|
|
(synopsis "Python and command-line interface to Bugzilla")
|
|
|
|
|
(description
|
|
|
|
|
"PyBugz is a Python library and command-line tool to query the Bugzilla
|
|
|
|
|
bug tracking system. It is meant as an aid to speed up interaction with the
|
|
|
|
|
bug tracker.")
|
|
|
|
|
(home-page "http://www.liquidx.net/pybugz/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2)))
|
2014-03-02 18:22:33 -05:00
|
|
|
|
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(define-public python-enum34
|
|
|
|
|
(package
|
|
|
|
|
(name "python-enum34")
|
2016-02-14 19:47:37 -05:00
|
|
|
|
(version "1.1.0")
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-14 19:47:37 -05:00
|
|
|
|
(uri (pypi-uri "enum34" version))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-14 19:47:37 -05:00
|
|
|
|
"0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _ (zero? (system* "python" "enum/test_enum.py")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/enum34")
|
|
|
|
|
(synopsis "Backported Python 3.4 Enum")
|
|
|
|
|
(description
|
|
|
|
|
"Enum34 is the new Python stdlib enum module available in Python 3.4
|
|
|
|
|
backported for previous versions of Python from 2.4 to 3.3.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
|
2016-02-18 12:58:45 -05:00
|
|
|
|
(define-public python2-enum34
|
|
|
|
|
(package-with-python2 python-enum34))
|
|
|
|
|
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(define-public python-parse-type
|
|
|
|
|
(package
|
|
|
|
|
(name "python-parse-type")
|
|
|
|
|
(version "0.3.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"parse_type/parse_type-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)
|
2016-02-18 12:59:18 -05:00
|
|
|
|
("python-parse" ,python-parse)))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(arguments '(#:tests? #f)) ;TODO: tests require pytest
|
|
|
|
|
(home-page "https://github.com/jenisys/parse_type")
|
|
|
|
|
(synopsis "Extended parse module")
|
|
|
|
|
(description
|
|
|
|
|
"Parse_type extends the python parse module.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-parse
|
|
|
|
|
(package
|
|
|
|
|
(name "python-parse")
|
2016-04-10 13:52:04 -04:00
|
|
|
|
(version "1.6.6")
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 13:52:04 -04:00
|
|
|
|
(uri (pypi-uri "parse" version))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-27 16:28:07 -04:00
|
|
|
|
"0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi"))
|
|
|
|
|
(patches (search-patches "python-parse-too-many-fields.patch"))))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
2016-10-27 16:29:56 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _ (zero? (system* "python" "test_parse.py")))))))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(home-page "https://github.com/r1chardj0n3s/parse")
|
|
|
|
|
(synopsis "Parse strings")
|
|
|
|
|
(description
|
|
|
|
|
"Parse strings using a specification based on the Python format()
|
|
|
|
|
syntax.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
|
|
|
|
|
|
2013-10-17 16:27:39 -04:00
|
|
|
|
(define-public scons
|
|
|
|
|
(package
|
|
|
|
|
(name "scons")
|
2015-05-07 01:43:48 -04:00
|
|
|
|
(version "2.3.4")
|
2013-10-17 16:27:39 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/scons/scons/" version
|
|
|
|
|
"/scons-" version ".tar.gz"))
|
2013-10-17 16:27:39 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-05-07 01:43:48 -04:00
|
|
|
|
"0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
|
2013-10-17 16:27:39 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; With Python 3.x, fails to build with a syntax error.
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; no 'python setup.py test' command
|
|
|
|
|
(home-page "http://scons.org/")
|
|
|
|
|
(synopsis "Software construction tool written in Python")
|
|
|
|
|
(description
|
|
|
|
|
"SCons is a software construction tool. Think of SCons as an improved,
|
|
|
|
|
cross-platform substitute for the classic Make utility with integrated
|
|
|
|
|
functionality similar to autoconf/automake and compiler caches such as ccache.
|
|
|
|
|
In short, SCons is an easier, more reliable and faster way to build
|
|
|
|
|
software.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2013-10-28 17:54:48 -04:00
|
|
|
|
|
2014-09-05 08:37:57 -04:00
|
|
|
|
(define-public python-extras
|
|
|
|
|
(package
|
|
|
|
|
(name "python-extras")
|
|
|
|
|
(version "0.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/e/extras/extras-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
;; error in setup.cfg: command 'test' has no such option 'buffer'
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(home-page "https://github.com/testing-cabal/extras")
|
|
|
|
|
(synopsis "Useful extensions to the Python standard library")
|
|
|
|
|
(description
|
|
|
|
|
"Extras is a set of extensions to the Python standard library.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 08:37:57 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-extras
|
|
|
|
|
(package-with-python2 python-extras))
|
|
|
|
|
|
2014-09-05 08:33:45 -04:00
|
|
|
|
(define-public python-mimeparse
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mimeparse")
|
|
|
|
|
(version "0.1.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no setup.py test command
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/dbtsai/python-mimeparse")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Python library for parsing MIME types")
|
2014-09-05 08:33:45 -04:00
|
|
|
|
(description
|
|
|
|
|
"Mimeparse provides basic functions for parsing MIME type names and
|
|
|
|
|
matching them against a list of media-ranges.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 08:33:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mimeparse
|
|
|
|
|
(package-with-python2 python-mimeparse))
|
|
|
|
|
|
2014-09-05 08:39:43 -04:00
|
|
|
|
(define-public python-nose
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose")
|
2015-12-30 06:17:40 -05:00
|
|
|
|
(version "1.3.7")
|
2014-09-05 08:39:43 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 06:17:40 -05:00
|
|
|
|
(uri (pypi-uri "nose" version))
|
2014-09-05 08:39:43 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 06:17:40 -05:00
|
|
|
|
"164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
|
2014-09-05 08:39:43 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; FIXME: test suite fails
|
|
|
|
|
(home-page "http://readthedocs.org/docs/nose/")
|
|
|
|
|
(synopsis "Python testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Nose extends the unittest library to make testing easier.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.0+)))
|
2014-09-05 08:39:43 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-nose
|
|
|
|
|
(package-with-python2 python-nose))
|
|
|
|
|
|
2016-09-11 14:35:37 -04:00
|
|
|
|
(define-public python-nose2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose2")
|
|
|
|
|
(version "0.6.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nose2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-cov-core" ,python-cov-core)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/nose-devs/nose2")
|
|
|
|
|
(synopsis "Next generation of nicer testing for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Nose2 is the next generation of nicer testing for Python, based on the
|
|
|
|
|
plugins branch of unittest2. Nose2 aims to improve on nose by providing a
|
|
|
|
|
better plugin api, being easier for users to configure, and simplifying internal
|
|
|
|
|
interfaces and processes.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nose2
|
|
|
|
|
(package-with-python2 python-nose2))
|
|
|
|
|
|
2014-09-05 08:45:24 -04:00
|
|
|
|
(define-public python-unittest2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-unittest2")
|
|
|
|
|
(version "0.5.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/unittest2")
|
|
|
|
|
(synopsis "Python unit testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Unittest2 is a replacement for the unittest module in the Python
|
|
|
|
|
standard library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2014-09-05 08:45:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-unittest2
|
|
|
|
|
(package (inherit python-unittest2)
|
|
|
|
|
(name "python2-unittest2")
|
|
|
|
|
(version "0.5.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/u/unittest2/unittest2-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
|
|
|
|
|
(inputs
|
2015-11-25 09:34:25 -05:00
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
2014-09-05 08:45:24 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)))) ; no setup.py test command
|
|
|
|
|
|
2016-11-04 15:23:01 -04:00
|
|
|
|
(define-public python-pafy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pafy")
|
|
|
|
|
(version "0.5.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pafy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-11-16 07:27:56 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; Currently pafy can not find itself in the tests
|
2016-11-04 15:23:01 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; Youtube-dl is a python package which is imported in the file
|
|
|
|
|
;; "backend_youtube_dl.py", therefore it needs to be propagated.
|
|
|
|
|
`(("youtube-dl" ,youtube-dl)))
|
|
|
|
|
(home-page "https://np1.github.io/pafy/")
|
|
|
|
|
(synopsis "Retrieve YouTube content and metadata")
|
|
|
|
|
(description
|
|
|
|
|
"@code{pafy} is a python library to retrieve YouTube content and metadata.")
|
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
|
2014-09-05 08:59:37 -04:00
|
|
|
|
(define-public python-py
|
|
|
|
|
(package
|
|
|
|
|
(name "python-py")
|
2015-12-25 03:24:29 -05:00
|
|
|
|
(version "1.4.31")
|
2014-09-05 08:59:37 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 03:24:29 -05:00
|
|
|
|
(uri (pypi-uri "py" version))
|
2014-09-05 08:59:37 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-25 03:24:29 -05:00
|
|
|
|
"0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
|
2014-09-05 08:59:37 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pylib.readthedocs.org/")
|
|
|
|
|
(synopsis "Python library for parsing, I/O, instrospection, and logging")
|
|
|
|
|
(description
|
|
|
|
|
"Py is a Python library for file name parsing, .ini file parsing, I/O,
|
|
|
|
|
code introspection, and logging.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 08:59:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-py
|
|
|
|
|
(package-with-python2 python-py))
|
|
|
|
|
|
2014-09-05 09:16:50 -04:00
|
|
|
|
(define-public python-pytest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest")
|
2016-03-22 18:08:51 -04:00
|
|
|
|
(version "2.7.3")
|
2014-09-05 09:16:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pytest/pytest-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-22 18:08:51 -04:00
|
|
|
|
"1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
|
2014-09-05 09:16:50 -04:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; One of the tests involves the /usr directory, so it fails.
|
|
|
|
|
'(substitute* "testing/test_argcomplete.py"
|
|
|
|
|
(("def test_remove_dir_prefix\\(self\\):")
|
|
|
|
|
"@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-py" ,python-py)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(home-page "http://pytest.org")
|
|
|
|
|
(synopsis "Python testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Pytest is a testing tool that provides auto-discovery of test modules
|
|
|
|
|
and functions, detailed info on failing assert statements, modular fixtures,
|
|
|
|
|
and many external plugins.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 09:16:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pytest
|
|
|
|
|
(package-with-python2 python-pytest))
|
|
|
|
|
|
2016-10-30 18:32:11 -04:00
|
|
|
|
;; This package is used by Borg until we can upgrade all our Python packages to
|
|
|
|
|
;; use a more recent pytest.
|
|
|
|
|
(define-public python-pytest-2.9.2
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-pytest)
|
|
|
|
|
(name "python-pytest")
|
|
|
|
|
(version "2.9.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j"))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'disable-invalid-test
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "testing/test_argcomplete.py"
|
|
|
|
|
(("def test_remove_dir_prefix" line)
|
|
|
|
|
(string-append "@pytest.mark.skip"
|
|
|
|
|
"(reason=\"Assumes that /usr exists.\")\n "
|
|
|
|
|
line)))
|
|
|
|
|
#t)))))))
|
|
|
|
|
|
2015-11-23 10:12:52 -05:00
|
|
|
|
(define-public python-pytest-cov
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-cov")
|
2016-04-10 14:00:42 -04:00
|
|
|
|
(version "2.2.1")
|
2015-11-23 10:12:52 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-cov" version))
|
|
|
|
|
(sha256
|
2016-04-10 14:00:42 -04:00
|
|
|
|
(base32
|
|
|
|
|
"1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
|
2015-12-27 02:00:14 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-04-10 14:00:42 -04:00
|
|
|
|
(inputs
|
2015-12-27 02:00:14 -05:00
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-cov")
|
|
|
|
|
(synopsis "Pytest plugin for measuring coverage")
|
|
|
|
|
(description
|
|
|
|
|
"Pytest-cov produces coverage reports. It supports centralised testing and
|
|
|
|
|
distributed testing in both @code{load} and @code{each} modes. It also
|
|
|
|
|
supports coverage of subprocesses.")
|
2016-04-10 14:00:42 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-cov))))))
|
2015-11-23 10:12:52 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-cov
|
2016-04-10 14:00:42 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pytest-cov))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-inputs base))))))
|
2015-11-23 10:12:52 -05:00
|
|
|
|
|
2015-09-23 06:46:24 -04:00
|
|
|
|
(define-public python-pytest-runner
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-runner")
|
|
|
|
|
(version "2.6.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 14:17:10 -04:00
|
|
|
|
(uri (pypi-uri "pytest-runner" version))
|
2015-09-23 06:46:24 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; The fancy way of setting the version with setuptools_scm does not
|
|
|
|
|
;; seem to work here.
|
|
|
|
|
(add-after 'unpack 'set-version
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "docs/conf.py"
|
|
|
|
|
(("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
|
|
|
|
|
(string-append "version = \"" ,version "\"")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
2016-04-10 14:17:10 -04:00
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-runner")
|
2015-09-23 06:46:24 -04:00
|
|
|
|
(synopsis "Invoke py.test as a distutils command")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a @command{pytest-runner} command that
|
|
|
|
|
@file{setup.py} files can use to run tests.")
|
2016-04-10 14:17:10 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-runner))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-runner
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-runner))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-09-23 06:46:24 -04:00
|
|
|
|
|
2016-09-11 14:25:59 -04:00
|
|
|
|
(define-public python-pytest-mock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-mock")
|
|
|
|
|
(version "1.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-mock" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-py" ,python-py)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-mock/")
|
|
|
|
|
(synopsis "Thin-wrapper around the mock package for easier use with py.test")
|
|
|
|
|
(description
|
|
|
|
|
"This plugin installs a @code{mocker} fixture which is a thin-wrapper
|
|
|
|
|
around the patching API provided by the @code{mock} package, but with the
|
|
|
|
|
benefit of not having to worry about undoing patches at the end of a test.
|
|
|
|
|
The mocker fixture has the same API as @code{mock.patch}, supporting the
|
|
|
|
|
same arguments.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-mock))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-mock
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-mock))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-inputs base))))))
|
|
|
|
|
|
2016-02-13 21:11:47 -05:00
|
|
|
|
(define-public python-pytest-xdist
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-xdist")
|
|
|
|
|
(version "1.14")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-xdist" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-10 05:59:04 -04:00
|
|
|
|
"08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove pre-compiled .pyc files from source.
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
(find-files "." "__pycache__" #:directories? #t))
|
|
|
|
|
(for-each delete-file (find-files "." "\\.pyc$"))
|
|
|
|
|
#t))))
|
2016-02-13 21:11:47 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
2016-04-10 15:07:28 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-apipkg" ,python-apipkg)
|
|
|
|
|
("python-execnet" ,python-execnet)
|
2016-02-13 21:11:47 -05:00
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-py" ,python-py)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/pytest-dev/pytest-xdist")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Plugin for py.test with distributed testing and loop-on-failing modes")
|
|
|
|
|
(description
|
|
|
|
|
"The pytest-xdist plugin extends py.test with some unique test execution
|
|
|
|
|
modes: parallelization, running tests in boxed subprocesses, the ability
|
|
|
|
|
to run tests repeatedly when failed, and the ability to run tests on multiple
|
|
|
|
|
Python interpreters or platforms. It uses rsync to copy the existing
|
|
|
|
|
program code to a remote location, executes there, and then syncs the
|
|
|
|
|
result back.")
|
2016-04-10 15:07:28 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-xdist))))))
|
2016-02-13 21:11:47 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-xdist
|
2016-04-10 15:07:28 -04:00
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-xdist))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-02-13 21:11:47 -05:00
|
|
|
|
|
2014-09-05 09:19:23 -04:00
|
|
|
|
(define-public python-scripttest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scripttest")
|
|
|
|
|
(version "1.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/s/scripttest/scripttest-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://pythonpaste.org/scripttest/")
|
|
|
|
|
(synopsis "Python library to test command-line scripts")
|
|
|
|
|
(description "Scripttest is a Python helper library for testing
|
|
|
|
|
interactive command-line applications. With it you can run a script in a
|
|
|
|
|
subprocess and see the output as well as any file modifications.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 09:19:23 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-scripttest
|
|
|
|
|
(package-with-python2 python-scripttest))
|
|
|
|
|
|
2014-09-05 09:22:29 -04:00
|
|
|
|
(define-public python-testtools
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testtools")
|
|
|
|
|
(version "1.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testtools/testtools-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
|
|
|
|
|
(build-system python-build-system)
|
2015-07-03 19:52:16 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-mimeparse" ,python-mimeparse)))
|
2014-09-05 09:22:29 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-extras" ,python-extras)))
|
|
|
|
|
(home-page "https://github.com/testing-cabal/testtools")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Extensions to the Python standard library unit testing framework")
|
|
|
|
|
(description
|
|
|
|
|
"Testtools extends the Python standard library unit testing framework to
|
|
|
|
|
provide matchers, more debugging information, and cross-Python
|
|
|
|
|
compatibility.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2014-09-05 09:22:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-testtools
|
|
|
|
|
(package-with-python2 python-testtools))
|
|
|
|
|
|
2014-09-05 09:25:17 -04:00
|
|
|
|
(define-public python-testscenarios
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testscenarios")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-testtools" ,python-testtools)
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)))
|
|
|
|
|
(home-page "https://launchpad.net/testscenarios")
|
|
|
|
|
(synopsis "Pyunit extension for dependency injection")
|
|
|
|
|
(description
|
|
|
|
|
"Testscenarios provides clean dependency injection for Python unittest
|
|
|
|
|
style tests.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
2014-09-05 09:25:17 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-testscenarios
|
|
|
|
|
(package-with-python2 python-testscenarios))
|
|
|
|
|
|
2014-09-05 09:27:41 -04:00
|
|
|
|
(define-public python-testresources
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testresources")
|
|
|
|
|
(version "0.2.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testresources/testresources-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://launchpad.net/testresources")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Pyunit extension for managing test resources")
|
|
|
|
|
(description
|
|
|
|
|
"Testresources is an extension to Python's unittest to allow declarative
|
|
|
|
|
use of resources by test cases.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
2014-09-05 09:27:41 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-testresources
|
|
|
|
|
(package-with-python2 python-testresources))
|
|
|
|
|
|
2014-09-05 09:30:31 -04:00
|
|
|
|
(define-public python-subunit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-subunit")
|
|
|
|
|
(version "0.0.21")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-testtools" ,python-testtools)
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)
|
|
|
|
|
("python-testscenarios" ,python-testscenarios)))
|
|
|
|
|
(home-page "http://launchpad.net/subunit")
|
|
|
|
|
(synopsis "Python implementation of the subunit protocol")
|
|
|
|
|
(description
|
|
|
|
|
"Python-subunit is a Python implementation of the subunit test streaming
|
|
|
|
|
protocol.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
2014-09-05 09:30:31 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-subunit
|
|
|
|
|
(package-with-python2 python-subunit))
|
|
|
|
|
|
2015-09-21 17:45:36 -04:00
|
|
|
|
;; Recent versions of python-fixtures need a recent version of python-pbr,
|
|
|
|
|
;; which needs a recent version of python-fixtures. To fix this circular
|
|
|
|
|
;; dependency, we keep old versions of python-fixtures and python-pbr to
|
|
|
|
|
;; bootstrap the whole thing:
|
|
|
|
|
;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
|
|
|
|
|
;; - python-pbr-0.11 is used to build python-fixtures
|
|
|
|
|
;; - python-fixtures is used to build python-pbr
|
|
|
|
|
(define-public python-fixtures-0.3.16
|
2014-09-05 09:33:38 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "python-fixtures")
|
|
|
|
|
(version "0.3.16")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/f/fixtures/fixtures-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no setup.py test command
|
|
|
|
|
(home-page "https://launchpad.net/python-fixtures")
|
|
|
|
|
(synopsis "Python test fixture library")
|
|
|
|
|
(description
|
|
|
|
|
"Fixtures provides a way to create reusable state, useful when writing
|
|
|
|
|
Python tests.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at user's option
|
2014-09-05 09:33:38 -04:00
|
|
|
|
|
2015-09-21 17:45:36 -04:00
|
|
|
|
(define-public python2-fixtures-0.3.16
|
|
|
|
|
(package-with-python2 python-fixtures-0.3.16))
|
|
|
|
|
|
|
|
|
|
(define-public python-pbr-0.11
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pbr")
|
|
|
|
|
(version "0.11.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pbr/pbr-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ;; Most tests seem to use the Internet.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
|
|
|
|
|
("python-pip" ,python-pip)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://launchpad.net/pbr")
|
|
|
|
|
(synopsis "Change the default behavior of Python’s setuptools")
|
|
|
|
|
(description
|
|
|
|
|
"Python Build Reasonableness (PBR) is a library that injects some useful
|
|
|
|
|
and sensible default behaviors into your setuptools run.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-09-21 17:45:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pbr-0.11
|
|
|
|
|
(package-with-python2 python-pbr-0.11))
|
|
|
|
|
|
2016-04-03 01:15:40 -04:00
|
|
|
|
(define-public python-pbr
|
2016-04-03 07:09:17 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "python-pbr")
|
2016-04-03 01:15:40 -04:00
|
|
|
|
(version "1.8.1")
|
|
|
|
|
(source
|
2016-04-03 07:09:17 -04:00
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pbr/pbr-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
|
2016-04-03 01:15:40 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-04-03 07:09:17 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ;; Most tests seem to use the Internet.
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-testrepository" ,python-testrepository)
|
|
|
|
|
("git" ,git))) ;; pbr actually uses the "git" binary.
|
2016-04-03 01:15:40 -04:00
|
|
|
|
(inputs
|
2016-04-03 07:09:17 -04:00
|
|
|
|
`(("python-fixtures" ,python-fixtures)
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-testrepository" ,python-testrepository)
|
|
|
|
|
("python-testresources" ,python-testresources)
|
|
|
|
|
("python-testscenarios" ,python-testscenarios)
|
|
|
|
|
("python-testtools" ,python-testtools)
|
|
|
|
|
("python-virtualenv" ,python-virtualenv)))
|
|
|
|
|
(home-page "https://launchpad.net/pbr")
|
|
|
|
|
(synopsis "Change the default behavior of Python’s setuptools")
|
|
|
|
|
(description
|
|
|
|
|
"Python Build Reasonableness (PBR) is a library that injects some useful
|
|
|
|
|
and sensible default behaviors into your setuptools run.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-04-03 01:15:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pbr
|
2016-04-03 07:09:17 -04:00
|
|
|
|
(package-with-python2 python-pbr))
|
2016-04-03 01:15:40 -04:00
|
|
|
|
|
2015-09-21 17:45:36 -04:00
|
|
|
|
(define-public python-fixtures
|
|
|
|
|
(package
|
|
|
|
|
(name "python-fixtures")
|
2015-12-30 15:30:59 -05:00
|
|
|
|
(version "1.4.0")
|
2015-09-21 17:45:36 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 15:30:59 -05:00
|
|
|
|
(uri (pypi-uri "fixtures" version))
|
2015-09-21 17:45:36 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 15:30:59 -05:00
|
|
|
|
"0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
|
2015-09-21 17:45:36 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-pbr-0.11" ,python-pbr-0.11)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pip" ,python-pip)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
;; Tests
|
|
|
|
|
("python-testtools" ,python-testtools)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no setup.py test command
|
|
|
|
|
(home-page "https://launchpad.net/python-fixtures")
|
|
|
|
|
(synopsis "Python test fixture library")
|
|
|
|
|
(description
|
|
|
|
|
"Fixtures provides a way to create reusable state, useful when writing
|
|
|
|
|
Python tests.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at user's option
|
2015-09-21 17:45:36 -04:00
|
|
|
|
|
2014-09-05 09:33:38 -04:00
|
|
|
|
(define-public python2-fixtures
|
|
|
|
|
(package-with-python2 python-fixtures))
|
|
|
|
|
|
2014-09-05 09:36:45 -04:00
|
|
|
|
(define-public python-testrepository
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testrepository")
|
|
|
|
|
(version "0.0.20")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testrepository/testrepository-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
|
|
|
|
|
(build-system python-build-system)
|
2015-09-01 17:57:22 -04:00
|
|
|
|
(propagated-inputs
|
2015-09-21 17:45:36 -04:00
|
|
|
|
`(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
|
2015-09-01 17:57:22 -04:00
|
|
|
|
("python-testtools" ,python-testtools)))
|
2014-09-05 09:36:45 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-subunit" ,python-subunit)
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)))
|
|
|
|
|
(home-page "https://launchpad.net/testrepository")
|
|
|
|
|
(synopsis "Database for Python test results")
|
|
|
|
|
(description "Testrepository provides a database of test results which can
|
|
|
|
|
be used as part of a developer's workflow to check things such as what tests
|
|
|
|
|
have failed since the last commit or what tests are currently failing.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at user's option
|
2014-09-05 09:36:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-testrepository
|
|
|
|
|
(package-with-python2 python-testrepository))
|
|
|
|
|
|
2014-09-05 20:49:23 -04:00
|
|
|
|
(define-public python-coverage
|
|
|
|
|
(package
|
|
|
|
|
(name "python-coverage")
|
2016-07-17 04:14:06 -04:00
|
|
|
|
(version "4.1")
|
2014-09-05 20:49:23 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 07:39:42 -05:00
|
|
|
|
(uri (pypi-uri "coverage" version))
|
2014-09-05 20:49:23 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-17 04:14:06 -04:00
|
|
|
|
"01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1"))))
|
2014-09-05 20:49:23 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://nedbatchelder.com/code/coverage")
|
|
|
|
|
(synopsis "Code coverage measurement for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Coverage measures code coverage, typically during test execution. It
|
|
|
|
|
uses the code analysis tools and tracing hooks provided in the Python standard
|
|
|
|
|
library to determine which lines are executable, and which have been
|
|
|
|
|
executed.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-05 20:49:23 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-coverage
|
|
|
|
|
(package-with-python2 python-coverage))
|
|
|
|
|
|
2016-09-11 14:34:42 -04:00
|
|
|
|
(define-public python-cov-core
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cov-core")
|
|
|
|
|
(version "1.15.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cov-core" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)))
|
|
|
|
|
(home-page "https://github.com/schlamar/cov-core")
|
|
|
|
|
(synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov")
|
|
|
|
|
(description
|
|
|
|
|
"This is a library package for use by pytest-cov, nose-cov and nose2-cov.
|
|
|
|
|
It is useful for developing coverage plugins for these testing frameworks.")
|
2016-09-19 16:22:36 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-cov-core))))))
|
2016-09-11 14:34:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cov-core
|
2016-09-19 16:22:36 -04:00
|
|
|
|
(let ((cov-core (package-with-python2 (strip-python2-variant python-cov-core))))
|
2016-09-11 14:34:42 -04:00
|
|
|
|
(package (inherit cov-core)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs cov-core))))))
|
|
|
|
|
|
2014-09-05 20:49:54 -04:00
|
|
|
|
(define-public python-discover
|
|
|
|
|
(package
|
|
|
|
|
(name "python-discover")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/d/discover/discover-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/discover/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python test discovery for unittest")
|
|
|
|
|
(description
|
|
|
|
|
"Discover provides test discovery for unittest, a feature that has been
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 08:16:07 -04:00
|
|
|
|
backported from Python 2.7 for Python 2.4+.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-05 20:49:54 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-discover
|
|
|
|
|
(package-with-python2 python-discover))
|
|
|
|
|
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(define-public behave
|
|
|
|
|
(package
|
|
|
|
|
(name "behave")
|
2016-07-17 04:48:02 -04:00
|
|
|
|
(version "1.2.5")
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-17 04:48:02 -04:00
|
|
|
|
(uri (pypi-uri "behave" version ".tar.bz2"))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-17 04:48:02 -04:00
|
|
|
|
"1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c"))))
|
2014-06-30 10:56:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-parse" ,python-parse)
|
|
|
|
|
("python-parse-type" ,python-parse-type)))
|
|
|
|
|
(arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
|
|
|
|
|
;PyHamcrest>=1.8
|
|
|
|
|
(home-page "http://github.com/behave/behave")
|
|
|
|
|
(synopsis "Python behavior-driven development")
|
|
|
|
|
(description
|
|
|
|
|
"Behave is a tool for behavior-driven development in python.
|
|
|
|
|
Behavior-driven development (or BDD) is an agile software development
|
|
|
|
|
technique that encourages collaboration between developers, QA and
|
|
|
|
|
non-technical or business participants in a software project. Behave uses
|
|
|
|
|
tests written in a natural language style, backed up by Python code.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2014-09-02 20:53:31 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-exif-read
|
|
|
|
|
(package
|
|
|
|
|
(name "python-exif-read")
|
2015-12-25 07:42:51 -05:00
|
|
|
|
(version "2.1.2")
|
2014-09-02 20:53:31 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 07:42:51 -05:00
|
|
|
|
(uri (pypi-uri "ExifRead" version))
|
2014-09-02 20:53:31 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-25 07:42:51 -05:00
|
|
|
|
"1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
|
2014-09-02 20:53:31 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments `(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "https://github.com/ianare/exif-py")
|
|
|
|
|
(synopsis "Python library to extract EXIF data from image files")
|
|
|
|
|
(description
|
|
|
|
|
"ExifRead is a Python library to extract EXIF data from tiff and jpeg
|
|
|
|
|
files.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-02 20:53:31 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-exif-read
|
|
|
|
|
(package-with-python2 python-exif-read))
|
2014-09-02 21:00:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyld
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyld")
|
2016-11-22 16:25:51 -05:00
|
|
|
|
(version "0.7.1")
|
2014-09-02 21:00:40 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 15:25:22 -05:00
|
|
|
|
(uri (pypi-uri "PyLD" version))
|
2014-09-02 21:00:40 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-22 16:25:51 -05:00
|
|
|
|
"1m0fs6897vxfkf7awah5i66i7b7smm5fnywf1w50fpzyfbfhr156"))))
|
2014-09-02 21:00:40 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments `(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "http://github.com/digitalbazaar/pyld")
|
|
|
|
|
(synopsis "Python implementation of the JSON-LD specification")
|
|
|
|
|
(description
|
|
|
|
|
"PyLD is an implementation of the JSON-LD specification.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-02 21:00:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyld
|
|
|
|
|
(package-with-python2 python-pyld))
|
2014-09-02 21:22:14 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-certifi
|
|
|
|
|
(package
|
|
|
|
|
(name "python-certifi")
|
2016-09-12 21:38:17 -04:00
|
|
|
|
(version "2016.8.31")
|
2014-09-02 21:22:14 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-12-11 08:12:39 -05:00
|
|
|
|
(uri (pypi-uri "certifi" version))
|
2014-09-02 21:22:14 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-12 21:38:17 -04:00
|
|
|
|
"06c9dcyv8ss050gkv5xjivbxhm6qm0s9vzy4r33wqabgv118lw7p"))))
|
2014-09-02 21:22:14 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments `(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "http://python-requests.org/")
|
|
|
|
|
(synopsis "Python CA certificate bundle")
|
|
|
|
|
(description
|
|
|
|
|
"Certifi is a Python library that contains a CA certificate bundle, which
|
|
|
|
|
is used by the Requests library to verify HTTPS requests.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2014-09-02 21:22:14 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-certifi
|
|
|
|
|
(package-with-python2 python-certifi))
|
2014-09-02 21:22:43 -04:00
|
|
|
|
|
2015-05-21 10:19:00 -04:00
|
|
|
|
(define-public python-click
|
|
|
|
|
(package
|
|
|
|
|
(name "python-click")
|
2016-06-20 17:49:22 -04:00
|
|
|
|
(version "6.6")
|
2015-05-21 10:19:00 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-09-20 21:58:39 -04:00
|
|
|
|
(uri (pypi-uri "click" version))
|
2015-05-21 10:19:00 -04:00
|
|
|
|
(sha256
|
2016-06-20 17:49:22 -04:00
|
|
|
|
(base32
|
|
|
|
|
"1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc"))))
|
2015-05-21 10:19:00 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-09-20 21:49:32 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((glibc (assoc-ref inputs ,(if (%current-target-system)
|
|
|
|
|
"cross-libc" "libc"))))
|
|
|
|
|
(substitute* "click/_unicodefun.py"
|
|
|
|
|
(("'locale'")
|
|
|
|
|
(string-append "'" glibc "/bin/locale'"))))
|
|
|
|
|
#t)))))
|
2015-05-21 10:19:00 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://click.pocoo.org")
|
|
|
|
|
(synopsis "Command line library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Click is a Python package for creating command line interfaces in a
|
|
|
|
|
composable way with as little code as necessary. Its name stands for
|
|
|
|
|
\"Command Line Interface Creation Kit\". It's highly configurable but comes
|
|
|
|
|
with sensible defaults out of the box.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-05-21 10:19:00 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-click
|
|
|
|
|
(package-with-python2 python-click))
|
|
|
|
|
|
2015-11-23 11:44:57 -05:00
|
|
|
|
(define-public python-wheel
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wheel")
|
2016-02-25 03:18:40 -05:00
|
|
|
|
(version "0.29.0")
|
2015-12-27 02:39:51 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "wheel" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 03:18:40 -05:00
|
|
|
|
"0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
|
2015-12-27 02:39:51 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-jsonschema" ,python-jsonschema)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)))
|
|
|
|
|
(home-page "https://bitbucket.org/pypa/wheel/")
|
|
|
|
|
(synopsis "Format for built Python packages")
|
|
|
|
|
(description
|
|
|
|
|
"A wheel is a ZIP-format archive with a specially formatted filename and
|
|
|
|
|
the @code{.whl} extension. It is designed to contain all the files for a PEP
|
|
|
|
|
376 compatible install in a way that is very close to the on-disk format. Many
|
|
|
|
|
packages will be properly installed with only the @code{Unpack} step and the
|
|
|
|
|
unpacked archive preserves enough information to @code{Spread} (copy data and
|
|
|
|
|
scripts to their final locations) at any later time. Wheel files can be
|
|
|
|
|
installed with a newer @code{pip} or with wheel's own command line utility.")
|
2016-02-12 01:06:23 -05:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-wheel))))))
|
2015-11-23 11:44:57 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-wheel
|
2016-02-12 01:06:23 -05:00
|
|
|
|
(let ((wheel (package-with-python2
|
|
|
|
|
(strip-python2-variant python-wheel))))
|
2016-01-18 05:54:52 -05:00
|
|
|
|
(package (inherit wheel)
|
2016-02-12 01:06:23 -05:00
|
|
|
|
(native-inputs `(("python2-functools32" ,python2-functools32)
|
|
|
|
|
,@(package-native-inputs wheel))))))
|
|
|
|
|
|
2015-11-23 11:44:57 -05:00
|
|
|
|
|
2015-04-04 13:15:40 -04:00
|
|
|
|
(define-public python-requests
|
2014-09-02 21:22:43 -04:00
|
|
|
|
(package
|
2015-04-04 13:15:40 -04:00
|
|
|
|
(name "python-requests")
|
2016-02-25 03:21:45 -05:00
|
|
|
|
(version "2.9.1")
|
2014-09-02 21:22:43 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-11-23 10:58:07 -05:00
|
|
|
|
(uri (pypi-uri "requests" version))
|
2014-09-02 21:22:43 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 03:21:45 -05:00
|
|
|
|
"0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
|
2014-09-02 21:22:43 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-11-23 10:58:07 -05:00
|
|
|
|
(native-inputs
|
2016-04-10 03:55:28 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-py" ,python-py)
|
2015-11-23 10:58:07 -05:00
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-wheel" ,python-wheel)))
|
2014-09-02 21:22:43 -04:00
|
|
|
|
(home-page "http://python-requests.org/")
|
|
|
|
|
(synopsis "Python HTTP library")
|
|
|
|
|
(description
|
|
|
|
|
"Requests is a Python HTTP client library. It aims to be easier to use
|
|
|
|
|
than Python’s urllib2 library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2014-09-03 08:06:29 -04:00
|
|
|
|
|
2016-01-11 13:24:30 -05:00
|
|
|
|
;; Some software requires an older version of Requests, notably Docker
|
|
|
|
|
;; Compose.
|
|
|
|
|
(define-public python-requests-2.7
|
|
|
|
|
(package (inherit python-requests)
|
|
|
|
|
(version "2.7.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "requests" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
|
|
|
|
|
|
2015-04-04 13:15:40 -04:00
|
|
|
|
(define-public python2-requests
|
2016-02-12 01:06:23 -05:00
|
|
|
|
(package-with-python2 python-requests))
|
2015-04-04 13:15:40 -04:00
|
|
|
|
|
2016-01-11 13:26:07 -05:00
|
|
|
|
(define-public python-vcversioner
|
|
|
|
|
(package
|
|
|
|
|
(name "python-vcversioner")
|
2016-11-14 16:30:38 -05:00
|
|
|
|
(version "2.16.0.0")
|
2016-01-11 13:26:07 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "vcversioner" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-14 16:30:38 -05:00
|
|
|
|
"16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
|
2016-01-11 13:26:07 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(synopsis "Python library for version number discovery")
|
|
|
|
|
(description "Vcversioner is a Python library that inspects tagging
|
|
|
|
|
information in a variety of version control systems in order to discover
|
|
|
|
|
version numbers.")
|
|
|
|
|
(home-page "https://github.com/habnabit/vcversioner")
|
2016-11-14 16:30:38 -05:00
|
|
|
|
(license license:isc)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-vcversioner))))))
|
2016-01-11 13:26:07 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-vcversioner
|
2016-11-14 16:30:38 -05:00
|
|
|
|
(let ((vcversioner (package-with-python2
|
|
|
|
|
(strip-python2-variant python-vcversioner))))
|
|
|
|
|
(package (inherit vcversioner)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs vcversioner))))))
|
2015-04-04 13:15:40 -04:00
|
|
|
|
|
2014-09-03 08:06:29 -04:00
|
|
|
|
(define-public python-jsonschema
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jsonschema")
|
2016-01-11 13:26:47 -05:00
|
|
|
|
(version "2.5.1")
|
2014-09-03 08:06:29 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-01-11 13:26:47 -05:00
|
|
|
|
"0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
|
2014-09-03 08:06:29 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-11-14 15:47:33 -05:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check (lambda _ (zero? (system* "nosetests")))))))
|
2016-11-08 10:50:13 -05:00
|
|
|
|
(native-inputs
|
2016-11-14 15:47:33 -05:00
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-vcversioner" ,python-vcversioner)))
|
|
|
|
|
(home-page "https://github.com/Julian/jsonschema")
|
2014-09-03 08:06:29 -04:00
|
|
|
|
(synopsis "Implementation of JSON Schema for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Jsonschema is an implementation of JSON Schema for Python.")
|
2016-02-09 01:44:45 -05:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-jsonschema))))))
|
2014-09-03 08:06:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-jsonschema
|
2016-02-09 01:44:45 -05:00
|
|
|
|
(let ((jsonschema (package-with-python2
|
|
|
|
|
(strip-python2-variant python-jsonschema))))
|
2016-01-18 05:54:52 -05:00
|
|
|
|
(package (inherit jsonschema)
|
2016-11-08 10:50:13 -05:00
|
|
|
|
(native-inputs
|
2016-11-14 15:47:33 -05:00
|
|
|
|
`(("python2-mock" ,python2-mock)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)
|
2016-11-08 10:50:13 -05:00
|
|
|
|
,@(package-native-inputs jsonschema)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-functools32" ,python2-functools32))))))
|
2014-09-03 23:12:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-unidecode
|
|
|
|
|
(package
|
|
|
|
|
(name "python-unidecode")
|
2015-12-30 05:54:30 -05:00
|
|
|
|
(version "0.04.18")
|
2014-09-03 23:12:11 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 05:54:30 -05:00
|
|
|
|
(uri (pypi-uri "Unidecode" version))
|
2014-09-03 23:12:11 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 05:54:30 -05:00
|
|
|
|
"12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
|
2014-09-03 23:12:11 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/Unidecode")
|
|
|
|
|
(synopsis "ASCII transliterations of Unicode text")
|
|
|
|
|
(description
|
|
|
|
|
"Unidecode provides ASCII transliterations of Unicode text. Unidecode is
|
|
|
|
|
useful when integrating with legacy code that doesn't support Unicode, or for
|
|
|
|
|
ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
|
|
|
|
|
machine identifiers from human-readable Unicode strings that should still be
|
|
|
|
|
somewhat intelligeble.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2+)))
|
2014-09-03 23:12:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-unidecode
|
|
|
|
|
(package-with-python2 python-unidecode))
|
2014-09-05 09:45:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyjwt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyjwt")
|
2015-11-24 06:18:06 -05:00
|
|
|
|
(version "1.4.0")
|
2014-09-05 09:45:52 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-11-24 06:18:06 -05:00
|
|
|
|
(uri (pypi-uri "PyJWT" version))
|
2014-09-05 09:45:52 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-11-24 06:18:06 -05:00
|
|
|
|
"1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
|
2014-09-05 09:45:52 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-11-24 06:18:06 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pytest-runner" ,python-pytest-runner)))
|
2014-09-05 09:45:52 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; test suite doesn't work
|
|
|
|
|
(home-page "http://github.com/progrium/pyjwt")
|
|
|
|
|
(synopsis "JSON Web Token implementation in Python")
|
|
|
|
|
(description
|
|
|
|
|
"PyJWT is a JSON Web Token implementation written in Python.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 09:45:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyjwt
|
|
|
|
|
(package-with-python2 python-pyjwt))
|
|
|
|
|
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(define-public python-oauthlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-oauthlib")
|
2015-11-24 03:43:02 -05:00
|
|
|
|
(version "1.0.3")
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-11-24 03:43:02 -05:00
|
|
|
|
(uri (pypi-uri "oauthlib" version))
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-11-24 03:43:02 -05:00
|
|
|
|
"1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-11-24 03:43:02 -05:00
|
|
|
|
(native-inputs
|
2016-04-24 13:31:23 -04:00
|
|
|
|
`(("python-coverage" ,python-coverage)
|
2014-09-05 09:52:38 -04:00
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)))
|
2015-11-24 03:43:02 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-blinker" ,python-blinker)
|
|
|
|
|
("python-cryptography" ,python-cryptography)
|
|
|
|
|
("python-pyjwt" ,python-pyjwt)))
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(home-page "https://github.com/idan/oauthlib")
|
|
|
|
|
(synopsis "OAuth implementation for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Oauthlib is a generic, spec-compliant, thorough implementation of the
|
|
|
|
|
OAuth request-signing logic.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-04-24 13:31:23 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-oauthlib))))))
|
2014-09-05 09:52:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-oauthlib
|
2016-04-24 13:31:23 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
|
2014-09-05 09:52:38 -04:00
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-04-24 13:31:23 -04:00
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2014-09-05 09:54:47 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-itsdangerous
|
|
|
|
|
(package
|
|
|
|
|
(name "python-itsdangerous")
|
|
|
|
|
(version "0.24")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://github.com/mitsuhiko/itsdangerous")
|
|
|
|
|
(synopsis "Python library for passing data to/from untrusted environments")
|
|
|
|
|
(description
|
|
|
|
|
"Itsdangerous provides various helpers to pass trusted data to untrusted
|
|
|
|
|
environments and back.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-04-24 13:41:15 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-itsdangerous))))))
|
2014-09-05 09:54:47 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-itsdangerous
|
2016-04-24 13:41:15 -04:00
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-itsdangerous))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
|
2015-02-20 11:38:17 -05:00
|
|
|
|
(define-public python-pyyaml
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyyaml")
|
|
|
|
|
(version "3.11")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libyaml" ,libyaml)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pyyaml.org/wiki/PyYAML")
|
|
|
|
|
(synopsis "YAML parser and emitter for Python")
|
|
|
|
|
(description
|
|
|
|
|
"PyYAML is a YAML parser and emitter for Python. PyYAML features a
|
|
|
|
|
complete YAML 1.1 parser, Unicode support, pickle support, capable extension
|
|
|
|
|
API, and sensible error messages. PyYAML supports standard YAML tags and
|
|
|
|
|
provides Python-specific tags that allow to represent an arbitrary Python
|
|
|
|
|
object.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyyaml
|
|
|
|
|
(package-with-python2 python-pyyaml))
|
|
|
|
|
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(define-public python-virtualenv
|
|
|
|
|
(package
|
|
|
|
|
(name "python-virtualenv")
|
2016-09-24 03:58:16 -04:00
|
|
|
|
(version "15.0.3")
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 15:20:20 -05:00
|
|
|
|
(uri (pypi-uri "virtualenv" version))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-24 03:58:16 -04:00
|
|
|
|
"07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d"))))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-12-30 15:20:20 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2016-09-24 03:58:16 -04:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Disable failing test. See upstream bug report
|
|
|
|
|
;; https://github.com/pypa/virtualenv/issues/957
|
|
|
|
|
(substitute* "tests/test_virtualenv.py"
|
|
|
|
|
(("skipif.*") "skipif(True, reason=\"Guix\")\n"))
|
|
|
|
|
(zero? (system* "py.test")))))))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-mock" ,python-mock)
|
2015-12-30 15:20:20 -05:00
|
|
|
|
("python-pytest" ,python-pytest)))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
(home-page "https://virtualenv.pypa.io/")
|
|
|
|
|
(synopsis "Virtual Python environment builder")
|
|
|
|
|
(description
|
|
|
|
|
"Virtualenv is a tool to create isolated Python environments.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-09-05 09:57:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-virtualenv
|
|
|
|
|
(package-with-python2 python-virtualenv))
|
2014-09-05 10:01:13 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-markupsafe
|
|
|
|
|
(package
|
|
|
|
|
(name "python-markupsafe")
|
|
|
|
|
(version "0.23")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/mitsuhiko/markupsafe")
|
|
|
|
|
(synopsis "XML/HTML/XHTML markup safe string implementation for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Markupsafe provides an XML/HTML/XHTML markup safe string implementation
|
|
|
|
|
for Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-05 10:01:13 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-markupsafe
|
|
|
|
|
(package-with-python2 python-markupsafe))
|
2014-09-05 18:21:28 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-jinja2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jinja2")
|
2015-12-30 06:00:13 -05:00
|
|
|
|
(version "2.8")
|
2014-09-05 18:21:28 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 06:00:13 -05:00
|
|
|
|
(uri (pypi-uri "Jinja2" version))
|
2014-09-05 18:21:28 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 06:00:13 -05:00
|
|
|
|
"1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
|
2014-09-05 18:21:28 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-markupsafe" ,python-markupsafe)))
|
|
|
|
|
(home-page "http://jinja.pocoo.org/")
|
|
|
|
|
(synopsis "Python template engine")
|
|
|
|
|
(description
|
|
|
|
|
"Jinja2 is a small but fast and easy to use stand-alone template engine
|
|
|
|
|
written in pure Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-05 18:21:28 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-jinja2
|
|
|
|
|
(package-with-python2 python-jinja2))
|
2014-09-05 18:22:21 -04:00
|
|
|
|
|
2015-11-15 20:29:46 -05:00
|
|
|
|
(define-public python-pystache
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pystache")
|
|
|
|
|
(version "0.5.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pystache" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://defunkt.io/pystache/")
|
|
|
|
|
(synopsis "Python logic-less template engine")
|
|
|
|
|
(description
|
|
|
|
|
"Pystache is a Python implementation of the framework agnostic,
|
|
|
|
|
logic-free templating system Mustache.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pystache
|
|
|
|
|
(package-with-python2 python-pystache))
|
|
|
|
|
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(define-public python-joblib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-joblib")
|
2016-10-30 12:04:24 -04:00
|
|
|
|
(version "0.10.3")
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-10-30 12:04:24 -04:00
|
|
|
|
(uri (pypi-uri "joblib" version))
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-30 12:04:24 -04:00
|
|
|
|
"0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))))
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-10-30 13:54:41 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'disable-failing-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; This numpydoc tests fails for unknown reasons
|
|
|
|
|
(delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
|
|
|
|
|
;; This numpydoc test depends on matplotlib, which is not a
|
|
|
|
|
;; required input.
|
|
|
|
|
(delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py")
|
|
|
|
|
;; These tests fail to execute sys.executable
|
|
|
|
|
(substitute* "joblib/test/test_parallel.py"
|
|
|
|
|
(("import nose" line)
|
|
|
|
|
(string-append "from nose.plugins.skip import SkipTest\n" line))
|
|
|
|
|
(("def test_nested_parallel_warnings" line)
|
|
|
|
|
(string-append "@SkipTest\n" line))
|
|
|
|
|
(("def test_parallel_with_interactively_defined_functions" line)
|
|
|
|
|
(string-append "@SkipTest\n" line)))
|
|
|
|
|
#t)))))
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
2016-10-30 12:04:24 -04:00
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-numpydoc" ,python-numpydoc)))
|
2015-10-07 07:01:36 -04:00
|
|
|
|
(home-page "http://pythonhosted.org/joblib/")
|
|
|
|
|
(synopsis "Using Python functions as pipeline jobs")
|
|
|
|
|
(description
|
|
|
|
|
"Joblib is a set of tools to provide lightweight pipelining in Python.
|
|
|
|
|
In particular, joblib offers: transparent disk-caching of the output values
|
|
|
|
|
and lazy re-evaluation (memoize pattern), easy simple parallel computing
|
|
|
|
|
logging and tracing of the execution.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-10-07 07:01:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-joblib
|
|
|
|
|
(package-with-python2 python-joblib))
|
|
|
|
|
|
2014-09-05 18:22:21 -04:00
|
|
|
|
(define-public python-docutils
|
|
|
|
|
(package
|
|
|
|
|
(name "python-docutils")
|
|
|
|
|
(version "0.12")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/d/docutils/docutils-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no setup.py test command
|
|
|
|
|
(home-page "http://docutils.sourceforge.net/")
|
|
|
|
|
(synopsis "Python Documentation Utilities")
|
|
|
|
|
(description
|
|
|
|
|
"Docutils is a modular system for processing documentation into useful
|
|
|
|
|
formats, such as HTML, XML, and LaTeX. For input Docutils supports
|
|
|
|
|
reStructuredText.")
|
|
|
|
|
;; Most of the source code is public domain, but some source files are
|
|
|
|
|
;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
|
2014-09-05 18:22:21 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-docutils
|
|
|
|
|
(package-with-python2 python-docutils))
|
2014-09-05 18:22:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pygments
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pygments")
|
2015-12-25 06:44:07 -05:00
|
|
|
|
(version "2.0.2")
|
2014-09-05 18:22:51 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 06:44:07 -05:00
|
|
|
|
(uri (pypi-uri "Pygments" version))
|
2014-09-05 18:22:51 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-25 06:44:07 -05:00
|
|
|
|
"0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
|
2014-09-05 18:22:51 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pygments.org/")
|
|
|
|
|
(synopsis "Syntax highlighting")
|
|
|
|
|
(description
|
|
|
|
|
"Pygments is a syntax highlighting package written in Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2014-09-05 18:22:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pygments
|
|
|
|
|
(package-with-python2 python-pygments))
|
2014-09-05 18:23:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-sphinx
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sphinx")
|
|
|
|
|
(version "1.2.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-pygments" ,python-pygments)))
|
|
|
|
|
(home-page "http://sphinx-doc.org/")
|
|
|
|
|
(synopsis "Python documentation generator")
|
|
|
|
|
(description "Sphinx is a tool that makes it easy to create documentation
|
|
|
|
|
for Python projects or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-09-05 18:23:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-sphinx
|
|
|
|
|
(package-with-python2 python-sphinx))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
|
2015-02-06 05:34:00 -05:00
|
|
|
|
(define-public python-sphinx-rtd-theme
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sphinx-rtd-theme")
|
|
|
|
|
(version "0.1.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/s/"
|
|
|
|
|
"sphinx_rtd_theme/sphinx_rtd_theme-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; With standard flags, the install phase attempts to create a zip'd
|
|
|
|
|
;; egg file, and fails with an error: 'ZIP does not support timestamps
|
|
|
|
|
;; before 1980'
|
|
|
|
|
#:configure-flags '("--single-version-externally-managed"
|
|
|
|
|
"--record=sphinx-rtd-theme.txt")))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-docutils" ,python-docutils)
|
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
|
(home-page "https://github.com/snide/sphinx_rtd_theme/")
|
|
|
|
|
(synopsis "ReadTheDocs.org theme for Sphinx")
|
|
|
|
|
(description "A theme for Sphinx used by ReadTheDocs.org.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2015-02-06 05:34:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-sphinx-rtd-theme
|
|
|
|
|
(package-with-python2 python-sphinx-rtd-theme))
|
|
|
|
|
|
2015-07-10 16:49:07 -04:00
|
|
|
|
(define-public python-feedgenerator
|
|
|
|
|
(package
|
|
|
|
|
(name "python-feedgenerator")
|
2016-04-24 14:49:42 -04:00
|
|
|
|
(version "1.8")
|
2015-07-10 16:49:07 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2016-04-24 14:49:42 -04:00
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "feedgenerator" version))
|
2015-07-10 16:49:07 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-24 14:49:42 -04:00
|
|
|
|
"0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))))
|
2015-07-10 16:49:07 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-04-24 14:49:42 -04:00
|
|
|
|
(native-inputs
|
2015-07-10 16:49:07 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-six" ,python-six)))
|
2016-04-24 14:49:42 -04:00
|
|
|
|
(home-page "https://github.com/getpelican/feedgenerator")
|
2015-07-10 16:49:07 -04:00
|
|
|
|
(synopsis
|
|
|
|
|
"Standalone version of Django's Atom/RSS feed generator")
|
|
|
|
|
(description
|
|
|
|
|
"Feedgenerator-py3k is a standalone version of Django's feedgenerator,
|
|
|
|
|
which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-07-10 16:49:07 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-feedgenerator
|
|
|
|
|
(package-with-python2 python-feedgenerator))
|
|
|
|
|
|
2015-07-10 17:12:47 -04:00
|
|
|
|
(define-public python-blinker
|
|
|
|
|
(package
|
|
|
|
|
(name "python-blinker")
|
2015-12-30 05:46:30 -05:00
|
|
|
|
(version "1.4")
|
2015-07-10 17:12:47 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 05:46:30 -05:00
|
|
|
|
(uri (pypi-uri "blinker" version))
|
2015-07-10 17:12:47 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 05:46:30 -05:00
|
|
|
|
"1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
|
2015-07-10 17:12:47 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
;; No "test" command supplied to setuptools, so unless there's another way
|
|
|
|
|
;; to run tests, we're skipping them!
|
|
|
|
|
(arguments '(#:tests? #f))
|
|
|
|
|
(home-page "http://pythonhosted.org/blinker/")
|
|
|
|
|
(synopsis "Fast, simple object-to-object and broadcast signaling")
|
|
|
|
|
(description
|
|
|
|
|
"Blinker provides a fast dispatching system that allows any number of
|
|
|
|
|
interested parties to subscribe to events, or \"signals\".")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-blinker
|
|
|
|
|
(package-with-python2 python-blinker))
|
|
|
|
|
|
2015-07-10 17:28:01 -04:00
|
|
|
|
(define-public pelican
|
|
|
|
|
(package
|
|
|
|
|
(name "pelican")
|
2015-12-30 06:03:03 -05:00
|
|
|
|
(version "3.6.3")
|
2015-07-10 17:28:01 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 06:03:03 -05:00
|
|
|
|
(uri (pypi-uri "pelican" version))
|
2015-07-10 17:28:01 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 06:03:03 -05:00
|
|
|
|
"1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
|
2015-07-10 17:28:01 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-04-24 14:20:42 -04:00
|
|
|
|
(inputs
|
2015-07-10 17:28:01 -04:00
|
|
|
|
`(("python-feedgenerator" ,python-feedgenerator)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-pygments" ,python-pygments)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-blinker" ,python-blinker)
|
|
|
|
|
("python-unidecode" ,python-unidecode)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-dateutil-2" ,python-dateutil-2)))
|
|
|
|
|
(home-page "http://getpelican.com/")
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; XXX Requires a lot more packages to do unit tests :P
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'install 'adjust-requires
|
|
|
|
|
;; Since feedgenerator is installed from git, it doesn't
|
|
|
|
|
;; conform to the version requirements.
|
|
|
|
|
;;
|
|
|
|
|
;; We *do have* "feedgenerator >= 1.6", but strip off the
|
|
|
|
|
;; version requirement so setuptools doesn't get confused.
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("['\"]feedgenerator.*?['\"]")
|
|
|
|
|
"'feedgenerator'")))))))
|
|
|
|
|
(synopsis "Python-based static site publishing system")
|
|
|
|
|
(description
|
|
|
|
|
"Pelican is a tool to generate a static blog from reStructuredText,
|
|
|
|
|
Markdown input files, and more. Pelican uses Jinja2 for templating
|
|
|
|
|
and is very extensible.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:agpl3+)))
|
2015-07-10 17:28:01 -04:00
|
|
|
|
|
2015-02-23 11:22:29 -05:00
|
|
|
|
(define-public python-scikit-learn
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scikit-learn")
|
2015-06-12 09:39:40 -04:00
|
|
|
|
(version "0.16.1")
|
2015-02-23 11:22:29 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/scikit-learn/scikit-learn/archive/"
|
|
|
|
|
version ".tar.gz"))
|
2016-09-01 15:46:31 -04:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2015-02-23 11:22:29 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-06-12 09:39:40 -04:00
|
|
|
|
"140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
|
2015-02-23 11:22:29 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-cons-before
|
2015-06-12 05:34:39 -04:00
|
|
|
|
'check 'set-HOME
|
|
|
|
|
;; some tests require access to "$HOME"
|
|
|
|
|
(lambda _ (setenv "HOME" "/tmp"))
|
|
|
|
|
;; Tests can only be run after the library has been installed and not
|
|
|
|
|
;; within the source directory.
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "/tmp"
|
|
|
|
|
;; With Python 3 one test of 3334 fails
|
|
|
|
|
;; (sklearn.tests.test_common.test_transformers); see
|
|
|
|
|
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
|
|
|
|
(system* "nosetests" "-v" "sklearn")))
|
|
|
|
|
(alist-delete 'check %standard-phases)))))
|
2015-02-23 11:22:29 -05:00
|
|
|
|
(inputs
|
2015-06-12 05:34:39 -04:00
|
|
|
|
`(("openblas" ,openblas)
|
2015-02-23 11:22:29 -05:00
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-numpy" ,python-numpy)
|
|
|
|
|
("python-scipy" ,python-scipy)))
|
|
|
|
|
(home-page "http://scikit-learn.org/")
|
|
|
|
|
(synopsis "Machine Learning in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Scikit-learn provides simple and efficient tools for data
|
|
|
|
|
mining and data analysis.")
|
2016-09-01 15:44:03 -04:00
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-scikit-learn))))))
|
2015-02-23 11:22:29 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-scikit-learn
|
2016-09-01 15:44:03 -04:00
|
|
|
|
(package-with-python2 (strip-python2-variant python-scikit-learn)))
|
2015-02-23 11:22:29 -05:00
|
|
|
|
|
2015-04-29 09:04:09 -04:00
|
|
|
|
(define-public python-scikit-image
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scikit-image")
|
|
|
|
|
(version "0.11.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-matplotlib" ,python-matplotlib)
|
|
|
|
|
("python-networkx" ,python-networkx)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("python-scipy" ,python-scipy)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-pillow" ,python-pillow)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cython" ,python-cython)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://scikit-image.org/")
|
|
|
|
|
(synopsis "Image processing in Python")
|
|
|
|
|
(description
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 08:16:07 -04:00
|
|
|
|
"Scikit-image is a collection of algorithms for image processing.")
|
2016-09-01 16:06:42 -04:00
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-scikit-image))))))
|
2015-04-29 09:04:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-scikit-image
|
2016-09-01 16:06:42 -04:00
|
|
|
|
(let ((scikit-image (package-with-python2
|
|
|
|
|
(strip-python2-variant python-scikit-image))))
|
2015-04-29 09:04:09 -04:00
|
|
|
|
(package (inherit scikit-image)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-native-inputs scikit-image)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-pytz" ,python2-pytz)
|
2016-09-01 16:06:42 -04:00
|
|
|
|
,@(package-propagated-inputs scikit-image))))))
|
2015-04-29 09:04:09 -04:00
|
|
|
|
|
2015-05-21 10:24:05 -04:00
|
|
|
|
(define-public python-redis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-redis")
|
|
|
|
|
(version "2.10.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/r/redis/redis-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; Tests require a running Redis server
|
|
|
|
|
(arguments '(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/andymccurdy/redis-py")
|
|
|
|
|
(synopsis "Redis Python client")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a Python interface to the Redis key-value store.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-redis
|
|
|
|
|
(package-with-python2 python-redis))
|
|
|
|
|
|
2015-05-21 10:24:55 -04:00
|
|
|
|
(define-public python-rq
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rq")
|
|
|
|
|
(version "0.5.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/r/rq/rq-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-click" ,python-click)
|
|
|
|
|
("python-redis" ,python-redis)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://python-rq.org/")
|
|
|
|
|
(synopsis "Simple job queues for Python")
|
|
|
|
|
(description
|
|
|
|
|
"RQ (Redis Queue) is a simple Python library for queueing jobs and
|
|
|
|
|
processing them in the background with workers. It is backed by Redis and it
|
|
|
|
|
is designed to have a low barrier to entry.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2015-05-21 10:24:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-rq
|
|
|
|
|
(package-with-python2 python-rq))
|
|
|
|
|
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(define-public python-cython
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cython")
|
2016-08-11 07:50:12 -04:00
|
|
|
|
(version "0.24.1")
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-20 22:09:35 -05:00
|
|
|
|
(uri (pypi-uri "Cython" version))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-11 07:50:12 -04:00
|
|
|
|
"1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044"))))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; we need the full python package and not just the python-wrapper
|
|
|
|
|
;; because we need libpython3.3m.so
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
2016-08-11 10:07:55 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'set-HOME
|
|
|
|
|
;; some tests require access to "$HOME/.cython"
|
|
|
|
|
(lambda _ (setenv "HOME" "/tmp")))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _ (zero? (system* "python" "runtests.py" "-vv")))))))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(home-page "http://cython.org/")
|
|
|
|
|
(synopsis "C extensions for Python")
|
|
|
|
|
(description "Cython is an optimising static compiler for both the Python
|
|
|
|
|
programming language and the extended Cython programming language. It makes
|
|
|
|
|
writing C extensions for Python as easy as Python itself.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-02-07 16:55:45 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-cython))))))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cython
|
2016-02-07 16:55:45 -05:00
|
|
|
|
(package (inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-cython)))
|
2014-10-20 13:52:45 -04:00
|
|
|
|
(name "python2-cython")
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-2" ,python-2))))) ; this is not automatically changed
|
2014-11-24 14:51:29 -05:00
|
|
|
|
|
2016-10-29 06:10:00 -04:00
|
|
|
|
;; The RPython toolchain currently does not support Python 3.
|
|
|
|
|
(define-public python2-rpython
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-rpython")
|
|
|
|
|
(version "0.1.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rpython" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:python ,python-2))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-pytest" ,python2-pytest) ; needed for running tests
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(home-page "https://rpython.readthedocs.org")
|
|
|
|
|
(synopsis "Framework for implementing interpreters and virtual machines")
|
|
|
|
|
(description "RPython is a translation and support framework for
|
|
|
|
|
producing implementations of dynamic languages, emphasizing a clean separation
|
|
|
|
|
between language specification and implementation aspects.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2014-11-24 14:51:29 -05:00
|
|
|
|
;; This version of numpy is missing the documentation and is only used to
|
|
|
|
|
;; build matplotlib which is required to build numpy's documentation.
|
|
|
|
|
(define python-numpy-bootstrap
|
|
|
|
|
(package
|
|
|
|
|
(name "python-numpy-bootstrap")
|
2016-02-11 10:10:08 -05:00
|
|
|
|
(version "1.10.4")
|
2014-11-24 14:51:29 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/numpy/NumPy/" version
|
2014-11-24 14:51:29 -05:00
|
|
|
|
"/numpy-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-11 10:10:08 -05:00
|
|
|
|
"1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
|
2014-11-24 14:51:29 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
2015-06-12 04:48:58 -04:00
|
|
|
|
("openblas" ,openblas)
|
|
|
|
|
("lapack" ,lapack)))
|
2014-11-24 14:51:29 -05:00
|
|
|
|
(native-inputs
|
2015-06-25 11:56:07 -04:00
|
|
|
|
`(("gfortran" ,gfortran)))
|
2014-11-24 14:51:29 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'build 'set-environment-variables
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2015-05-22 10:48:05 -04:00
|
|
|
|
(call-with-output-file "site.cfg"
|
|
|
|
|
(lambda (port)
|
2015-06-12 04:48:58 -04:00
|
|
|
|
(format port
|
|
|
|
|
"[openblas]
|
2015-05-22 10:48:05 -04:00
|
|
|
|
libraries = openblas
|
|
|
|
|
library_dirs = ~a/lib
|
|
|
|
|
include_dirs = ~a/include
|
2015-06-12 04:48:58 -04:00
|
|
|
|
|
|
|
|
|
[lapack]
|
|
|
|
|
lapack_libs = lapack
|
|
|
|
|
library_dirs = ~a/lib
|
|
|
|
|
include_dirs = ~a/include
|
|
|
|
|
"
|
|
|
|
|
(assoc-ref inputs "openblas")
|
|
|
|
|
(assoc-ref inputs "openblas")
|
|
|
|
|
(assoc-ref inputs "lapack")
|
|
|
|
|
(assoc-ref inputs "lapack"))))
|
2015-05-22 10:48:05 -04:00
|
|
|
|
;; Use "gcc" executable, not "cc".
|
|
|
|
|
(substitute* "numpy/distutils/system_info.py"
|
|
|
|
|
(("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
|
|
|
|
|
"c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
|
|
|
|
|
#t)
|
2014-12-16 12:34:37 -05:00
|
|
|
|
;; Tests can only be run after the library has been installed and not
|
|
|
|
|
;; within the source directory.
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'check
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(lambda _
|
2014-12-16 12:34:37 -05:00
|
|
|
|
(with-directory-excursion "/tmp"
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(zero? (system* "python" "-c"
|
2014-12-16 12:34:37 -05:00
|
|
|
|
"import numpy; numpy.test(verbose=2)"))))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(alist-delete
|
|
|
|
|
'check
|
2014-12-16 12:34:37 -05:00
|
|
|
|
%standard-phases)))))
|
2014-11-24 14:51:29 -05:00
|
|
|
|
(home-page "http://www.numpy.org/")
|
|
|
|
|
(synopsis "Fundamental package for scientific computing with Python")
|
|
|
|
|
(description "NumPy is the fundamental package for scientific computing
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 08:16:07 -04:00
|
|
|
|
with Python. It contains among other things: a powerful N-dimensional array
|
2014-11-24 14:51:29 -05:00
|
|
|
|
object, sophisticated (broadcasting) functions, tools for integrating C/C++
|
|
|
|
|
and Fortran code, useful linear algebra, Fourier transform, and random number
|
|
|
|
|
capabilities.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-11-24 14:51:29 -05:00
|
|
|
|
|
|
|
|
|
(define python2-numpy-bootstrap
|
|
|
|
|
(package-with-python2 python-numpy-bootstrap))
|
2014-11-25 10:27:33 -05:00
|
|
|
|
|
2015-06-12 09:47:18 -04:00
|
|
|
|
(define-public python2-fastlmm
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-fastlmm")
|
2016-02-11 10:11:22 -05:00
|
|
|
|
(version "0.2.21")
|
2015-06-12 09:47:18 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-11 10:11:22 -05:00
|
|
|
|
(uri (pypi-uri "fastlmm" version ".zip"))
|
2015-06-12 09:47:18 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-11 10:11:22 -05:00
|
|
|
|
"1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
|
2015-06-12 09:47:18 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2)) ; only Python 2.7 is supported
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-numpy" ,python2-numpy)
|
|
|
|
|
("python2-scipy" ,python2-scipy)
|
|
|
|
|
("python2-matplotlib" ,python2-matplotlib)
|
|
|
|
|
("python2-pandas" ,python2-pandas)
|
|
|
|
|
("python2-scikit-learn" ,python2-scikit-learn)
|
|
|
|
|
("python2-cython" ,python2-cython)
|
|
|
|
|
("python2-pysnptools" ,python2-pysnptools)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
|
|
|
|
|
(synopsis "Perform genome-wide association studies on large data sets")
|
|
|
|
|
(description
|
|
|
|
|
"FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
|
|
|
|
|
Models, is a program for performing both single-SNP and SNP-set genome-wide
|
|
|
|
|
association studies (GWAS) on extremely large data sets.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-06-12 09:47:18 -04:00
|
|
|
|
|
2014-12-01 07:28:24 -05:00
|
|
|
|
(define-public python-numpy
|
|
|
|
|
(package (inherit python-numpy-bootstrap)
|
|
|
|
|
(name "python-numpy")
|
|
|
|
|
(outputs '("out" "doc"))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(inputs
|
2014-12-01 07:28:24 -05:00
|
|
|
|
`(("which" ,which)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-matplotlib" ,python-matplotlib)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-pyparsing" ,python-pyparsing)
|
|
|
|
|
("python-numpydoc" ,python-numpydoc)
|
|
|
|
|
,@(package-inputs python-numpy-bootstrap)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
,@(package-native-inputs python-numpy-bootstrap)))
|
|
|
|
|
(arguments
|
2015-02-23 12:41:10 -05:00
|
|
|
|
`(,@(substitute-keyword-arguments
|
2014-12-01 07:28:24 -05:00
|
|
|
|
(package-arguments python-numpy-bootstrap)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(doc (string-append
|
|
|
|
|
data "/doc/" ,name "-"
|
2014-12-01 07:28:24 -05:00
|
|
|
|
,(package-version python-numpy-bootstrap)))
|
|
|
|
|
(info (string-append data "/info"))
|
|
|
|
|
(html (string-append doc "/html"))
|
|
|
|
|
(pyver ,(string-append "PYVER=")))
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(system* "make" "html" pyver)
|
|
|
|
|
(system* "make" "latex" "PAPER=a4" pyver)
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(system* "make" "-C" "build/latex"
|
2014-12-01 07:28:24 -05:00
|
|
|
|
"all-pdf" "PAPER=a4" pyver)
|
|
|
|
|
;; FIXME: Generation of the info file fails.
|
|
|
|
|
;; (system* "make" "info" pyver)
|
|
|
|
|
;; (mkdir-p info)
|
|
|
|
|
;; (copy-file "build/texinfo/numpy.info"
|
|
|
|
|
;; (string-append info "/numpy.info"))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(copy-file (string-append "build/latex" file)
|
|
|
|
|
(string-append doc file)))
|
|
|
|
|
'("/numpy-ref.pdf" "/numpy-user.pdf"))
|
|
|
|
|
(with-directory-excursion "build/html"
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(let* ((dir (dirname file))
|
|
|
|
|
(tgt-dir (string-append html "/" dir)))
|
|
|
|
|
(unless (equal? "." dir)
|
|
|
|
|
(mkdir-p tgt-dir))
|
gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases.
* gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools,
plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'.
* gnu/packages/check.scm (catch-framework): Likewise.
* gnu/packages/code.scm (global): Likewise.
* gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools):
Likewise.
* gnu/packages/engineering.scm (fastcap, fasthenry): Likewise.
* gnu/packages/gnuzilla.scm (nss): Likewise.
* gnu/packages/guile.scm (guile-minikanren): Likewise.
* gnu/packages/java.scm (swt): Likewise.
* gnu/packages/make-bootstrap.scm (%static-binaries): Likewise.
* gnu/packages/maths.scm (lpsolve): Likewise.
* gnu/packages/mp3.scm (mpc123): Likewise.
* gnu/packages/ninja.scm (ninja): Likewise.
* gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise.
* gnu/packages/screen.scm (dtach): Likewise.
* gnu/packages/synergy.scm (synergy): Likewise.
* gnu/packages/textutils.scm (utf8proc): Likewise.
* gnu/packages/version-control.scm (git-test-sequence): Likewise.
* gnu/packages/wicd.scm (wicd): Likewise.
2015-08-28 16:22:22 -04:00
|
|
|
|
(install-file file html)))
|
2014-12-01 07:28:24 -05:00
|
|
|
|
(find-files "." ".*"))))))
|
|
|
|
|
,phases)))))))
|
|
|
|
|
|
2014-12-23 13:17:17 -05:00
|
|
|
|
(define-public python2-numpy
|
2016-02-07 17:01:40 -05:00
|
|
|
|
(package-with-python2 python-numpy))
|
2014-12-01 07:28:24 -05:00
|
|
|
|
|
2014-11-25 10:27:33 -05:00
|
|
|
|
(define-public python-pyparsing
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyparsing")
|
2015-01-23 15:50:56 -05:00
|
|
|
|
(version "2.0.3")
|
2014-11-25 10:27:33 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/pyparsing/pyparsing"
|
|
|
|
|
"/pyparsing-" version
|
2014-11-25 10:27:33 -05:00
|
|
|
|
"/pyparsing-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-01-23 15:50:56 -05:00
|
|
|
|
"0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
|
2014-11-25 10:27:33 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no test target
|
|
|
|
|
#:modules ((guix build python-build-system)
|
|
|
|
|
(guix build utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(let* ((doc (string-append (assoc-ref outputs "doc")
|
2014-11-25 10:27:33 -05:00
|
|
|
|
"/share/doc/" ,name "-" ,version))
|
|
|
|
|
(html-doc (string-append doc "/html"))
|
|
|
|
|
(examples (string-append doc "/examples")))
|
|
|
|
|
(mkdir-p html-doc)
|
|
|
|
|
(mkdir-p examples)
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(for-each
|
2014-11-25 10:27:33 -05:00
|
|
|
|
(lambda (dir tgt)
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(map (lambda (file)
|
gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases.
* gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools,
plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'.
* gnu/packages/check.scm (catch-framework): Likewise.
* gnu/packages/code.scm (global): Likewise.
* gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools):
Likewise.
* gnu/packages/engineering.scm (fastcap, fasthenry): Likewise.
* gnu/packages/gnuzilla.scm (nss): Likewise.
* gnu/packages/guile.scm (guile-minikanren): Likewise.
* gnu/packages/java.scm (swt): Likewise.
* gnu/packages/make-bootstrap.scm (%static-binaries): Likewise.
* gnu/packages/maths.scm (lpsolve): Likewise.
* gnu/packages/mp3.scm (mpc123): Likewise.
* gnu/packages/ninja.scm (ninja): Likewise.
* gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise.
* gnu/packages/screen.scm (dtach): Likewise.
* gnu/packages/synergy.scm (synergy): Likewise.
* gnu/packages/textutils.scm (utf8proc): Likewise.
* gnu/packages/version-control.scm (git-test-sequence): Likewise.
* gnu/packages/wicd.scm (wicd): Likewise.
2015-08-28 16:22:22 -04:00
|
|
|
|
(install-file file tgt))
|
2014-11-25 10:27:33 -05:00
|
|
|
|
(find-files dir ".*")))
|
|
|
|
|
(list "docs" "htmldoc" "examples")
|
|
|
|
|
(list doc html-doc examples))))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://pyparsing.wikispaces.com")
|
|
|
|
|
(synopsis "Python parsing class library")
|
|
|
|
|
(description
|
|
|
|
|
"The pyparsing module is an alternative approach to creating and
|
|
|
|
|
executing simple grammars, vs. the traditional lex/yacc approach, or the use
|
|
|
|
|
of regular expressions. The pyparsing module provides a library of classes
|
|
|
|
|
that client code uses to construct the grammar directly in Python code.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-11-25 10:27:33 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyparsing
|
|
|
|
|
(package-with-python2 python-pyparsing))
|
|
|
|
|
|
2014-11-26 11:29:16 -05:00
|
|
|
|
(define-public python-numpydoc
|
|
|
|
|
(package
|
|
|
|
|
(name "python-numpydoc")
|
|
|
|
|
(version "0.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(uri (string-append
|
2014-11-26 11:29:16 -05:00
|
|
|
|
"https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-02-27 19:08:37 -05:00
|
|
|
|
"0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Drop a test requiring matplotlib, which we cannot add as an
|
|
|
|
|
;; input since it would create a circular dependency: Extend the
|
|
|
|
|
;; test for Python 3, where it is already dropped, to Python 2.
|
|
|
|
|
(substitute* "numpydoc/tests/test_plot_directive.py"
|
|
|
|
|
(("3") "2"))))))
|
2014-11-26 11:29:16 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/numpydoc")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Numpy's Sphinx extensions")
|
|
|
|
|
(description
|
|
|
|
|
"Sphinx extension to support docstrings in Numpy format.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2014-11-26 11:29:16 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-numpydoc
|
2015-02-27 19:08:37 -05:00
|
|
|
|
(package-with-python2 python-numpydoc))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
|
2015-10-13 08:56:15 -04:00
|
|
|
|
(define-public python-numexpr
|
|
|
|
|
(package
|
|
|
|
|
(name "python-numexpr")
|
2016-07-06 05:41:25 -04:00
|
|
|
|
(version "2.6.0")
|
2015-10-13 08:56:15 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-06 05:41:25 -04:00
|
|
|
|
(uri (pypi-uri "numexpr" version))
|
2015-10-13 08:56:15 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-06 05:41:25 -04:00
|
|
|
|
"0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag"))))
|
2015-10-13 08:56:15 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; no tests included
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-numpy" ,python-numpy)))
|
|
|
|
|
(home-page "https://github.com/pydata/numexpr")
|
|
|
|
|
(synopsis "Fast numerical expression evaluator for NumPy")
|
|
|
|
|
(description
|
|
|
|
|
"Numexpr is a fast numerical expression evaluator for NumPy. With it,
|
|
|
|
|
expressions that operate on arrays are accelerated and use less memory than
|
|
|
|
|
doing the same calculation in Python. In addition, its multi-threaded
|
|
|
|
|
capabilities can make use of all your cores, which may accelerate
|
|
|
|
|
computations, most specially if they are not memory-bounded (e.g. those using
|
|
|
|
|
transcendental functions).")
|
2016-09-01 16:15:53 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-numexpr))))))
|
2015-10-13 08:56:15 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-numexpr
|
2016-09-01 16:15:53 -04:00
|
|
|
|
(package-with-python2 (strip-python2-variant python-numexpr)))
|
2015-10-13 08:56:15 -04:00
|
|
|
|
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(define-public python-matplotlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-matplotlib")
|
2015-12-01 11:20:59 -05:00
|
|
|
|
(version "1.4.3")
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/matplotlib/matplotlib"
|
|
|
|
|
"/matplotlib-" version
|
2014-11-27 14:11:53 -05:00
|
|
|
|
"/matplotlib-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-01 11:20:59 -05:00
|
|
|
|
"1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "matplotlib-setupext-tk.patch"))))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(outputs '("out" "doc"))
|
2014-12-11 08:26:13 -05:00
|
|
|
|
(propagated-inputs ; the following packages are all needed at run time
|
|
|
|
|
`(("python-pyparsing" ,python-pyparsing)
|
|
|
|
|
("python-pygobject" ,python-pygobject)
|
|
|
|
|
("gobject-introspection" ,gobject-introspection)
|
2015-12-01 11:20:59 -05:00
|
|
|
|
("python-tkinter" ,python "tk")
|
2014-12-11 08:26:13 -05:00
|
|
|
|
;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
|
|
|
|
|
;; from 'gtk+') provides the required 'typelib' files used by
|
|
|
|
|
;; 'gobject-introspection'. The location of these files is set with the
|
|
|
|
|
;; help of the environment variable GI_TYPELIB_PATH. At build time this
|
|
|
|
|
;; is done automatically by a 'native-search-path' procedure. However,
|
|
|
|
|
;; at run-time the user must set this variable as follows:
|
|
|
|
|
;;
|
|
|
|
|
;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
|
|
|
|
|
("gtk+" ,gtk+)
|
|
|
|
|
;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
|
|
|
|
|
;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
|
|
|
|
|
;; object. For this reason we need to import both libraries.
|
|
|
|
|
;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
|
|
|
|
|
("python-pycairo" ,python-pycairo)
|
|
|
|
|
("python-cairocffi" ,python-cairocffi)))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-dateutil" ,python-dateutil-2)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-numpy" ,python-numpy-bootstrap)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-numpydoc" ,python-numpydoc)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("imagemagick" ,imagemagick)
|
|
|
|
|
("freetype" ,freetype)
|
2014-12-11 08:26:13 -05:00
|
|
|
|
("cairo" ,cairo)
|
|
|
|
|
("glib" ,glib)
|
2015-02-02 15:18:17 -05:00
|
|
|
|
("python-pillow" ,python-pillow)
|
2014-11-27 14:11:53 -05:00
|
|
|
|
;; FIXME: Add backends when available.
|
|
|
|
|
;("python-wxpython" ,python-wxpython)
|
|
|
|
|
;("python-pyqt" ,python-pyqt)
|
2015-12-01 11:20:59 -05:00
|
|
|
|
("tcl" ,tcl)
|
|
|
|
|
("tk" ,tk)))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
2014-12-11 08:26:13 -05:00
|
|
|
|
(alist-cons-before
|
|
|
|
|
'build 'configure-environment
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(let ((cairo (assoc-ref inputs "cairo"))
|
|
|
|
|
(gtk+ (assoc-ref inputs "gtk+")))
|
|
|
|
|
;; Setting these directories in the 'basedirlist' of 'setup.cfg'
|
|
|
|
|
;; has not effect.
|
|
|
|
|
(setenv "LD_LIBRARY_PATH"
|
|
|
|
|
(string-append cairo "/lib:" gtk+ "/lib"))
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
(call-with-output-file "setup.cfg"
|
|
|
|
|
(lambda (port)
|
2015-12-01 11:20:59 -05:00
|
|
|
|
(format port "[directories]~%
|
|
|
|
|
basedirlist = ~a,~a~%
|
2016-02-07 17:01:40 -05:00
|
|
|
|
[rc_options]~%
|
2015-12-01 11:20:59 -05:00
|
|
|
|
backend = TkAgg~%"
|
|
|
|
|
(assoc-ref inputs "tcl")
|
|
|
|
|
(assoc-ref inputs "tk"))))))
|
2014-12-11 08:26:13 -05:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(info (string-append data "/info"))
|
|
|
|
|
(html (string-append doc "/html")))
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
;; Produce pdf in 'A4' format.
|
|
|
|
|
(substitute* (find-files "." "conf\\.py")
|
|
|
|
|
(("latex_paper_size = 'letter'")
|
|
|
|
|
"latex_paper_size = 'a4'"))
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(mkdir-p info)
|
|
|
|
|
;; The doc recommends to run the 'html' target twice.
|
|
|
|
|
(system* "python" "make.py" "html")
|
|
|
|
|
(system* "python" "make.py" "html")
|
2015-12-01 16:03:48 -05:00
|
|
|
|
(copy-recursively "build/html" html)
|
2014-12-11 08:26:13 -05:00
|
|
|
|
(system* "python" "make.py" "latex")
|
|
|
|
|
(system* "python" "make.py" "texinfo")
|
2015-12-01 16:03:48 -05:00
|
|
|
|
(symlink (string-append html "/_images")
|
|
|
|
|
(string-append info "/matplotlib-figures"))
|
|
|
|
|
(with-directory-excursion "build/texinfo"
|
|
|
|
|
(substitute* "matplotlib.texi"
|
|
|
|
|
(("@image\\{([^,]*)" all file)
|
|
|
|
|
(string-append "@image{matplotlib-figures/" file)))
|
|
|
|
|
(symlink (string-append html "/_images")
|
|
|
|
|
"./matplotlib-figures")
|
|
|
|
|
(system* "makeinfo" "--no-split"
|
|
|
|
|
"-o" "matplotlib.info" "matplotlib.texi"))
|
2014-12-11 08:26:13 -05:00
|
|
|
|
(copy-file "build/texinfo/matplotlib.info"
|
|
|
|
|
(string-append info "/matplotlib.info"))
|
|
|
|
|
(copy-file "build/latex/Matplotlib.pdf"
|
2015-12-01 16:03:48 -05:00
|
|
|
|
(string-append doc "/Matplotlib.pdf")))))
|
2014-12-11 08:26:13 -05:00
|
|
|
|
%standard-phases))))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
(home-page "http://matplotlib.org")
|
|
|
|
|
(synopsis "2D plotting library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Matplotlib is a Python 2D plotting library which produces publication
|
|
|
|
|
quality figures in a variety of hardcopy formats and interactive environments
|
|
|
|
|
across platforms. Matplotlib can be used in Python scripts, the python and
|
|
|
|
|
ipython shell, web application servers, and six graphical user interface
|
|
|
|
|
toolkits.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)
|
2016-02-07 17:01:40 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-matplotlib))))))
|
2014-11-27 14:11:53 -05:00
|
|
|
|
|
2014-12-23 13:17:17 -05:00
|
|
|
|
(define-public python2-matplotlib
|
2016-02-07 17:01:40 -05:00
|
|
|
|
(let ((matplotlib (package-with-python2
|
|
|
|
|
(strip-python2-variant python-matplotlib))))
|
2014-12-23 13:17:17 -05:00
|
|
|
|
(package (inherit matplotlib)
|
2015-02-27 19:17:57 -05:00
|
|
|
|
;; Make sure to use special packages for Python 2 instead
|
|
|
|
|
;; of those automatically rewritten by package-with-python2.
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(propagated-inputs
|
2015-02-27 17:53:57 -05:00
|
|
|
|
`(("python2-pycairo" ,python2-pycairo)
|
2014-12-23 13:17:17 -05:00
|
|
|
|
("python2-pygobject-2" ,python2-pygobject-2)
|
2015-12-01 11:20:59 -05:00
|
|
|
|
("python2-tkinter" ,python-2 "tk")
|
|
|
|
|
,@(fold alist-delete (package-propagated-inputs matplotlib)
|
|
|
|
|
'("python-pycairo" "python-pygobject" "python-tkinter")))))))
|
2014-11-18 19:31:57 -05:00
|
|
|
|
|
2015-06-12 09:46:40 -04:00
|
|
|
|
(define-public python2-pysnptools
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pysnptools")
|
2016-04-25 16:33:36 -04:00
|
|
|
|
(version "0.3.9")
|
2015-06-12 09:46:40 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-11 10:10:48 -05:00
|
|
|
|
(uri (pypi-uri "pysnptools" version ".zip"))
|
2015-06-12 09:46:40 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-25 16:33:36 -04:00
|
|
|
|
"1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2"))))
|
2015-06-12 09:46:40 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2)) ; only Python 2.7 is supported
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-numpy" ,python2-numpy)
|
|
|
|
|
("python2-scipy" ,python2-scipy)
|
2016-04-25 16:33:36 -04:00
|
|
|
|
("python2-pytz" ,python2-pytz)
|
2015-06-12 09:46:40 -04:00
|
|
|
|
("python2-cython" ,python2-cython)))
|
2016-04-25 16:33:36 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-dateutil-2" ,python2-dateutil-2)
|
|
|
|
|
("python2-pandas" ,python2-pandas)
|
|
|
|
|
("python2-six" ,python2-six)))
|
2015-06-12 09:46:40 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
|
|
|
|
|
(synopsis "Library for reading and manipulating genetic data")
|
|
|
|
|
(description
|
|
|
|
|
"PySnpTools is a library for reading and manipulating genetic data. It
|
|
|
|
|
can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
|
|
|
|
|
those files. It can also efficiently manipulate ranges of integers using set
|
|
|
|
|
operators such as union, intersection, and difference.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-06-12 09:46:40 -04:00
|
|
|
|
|
2015-07-07 07:56:49 -04:00
|
|
|
|
(define-public python-rpy2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rpy2")
|
2015-12-30 06:11:47 -05:00
|
|
|
|
(version "2.7.6")
|
2015-07-07 07:56:49 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 06:11:47 -05:00
|
|
|
|
(uri (pypi-uri "rpy2" version))
|
2015-07-07 07:56:49 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 06:11:47 -05:00
|
|
|
|
"0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
|
2015-07-07 07:56:49 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("icu4c" ,icu4c)
|
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("r" ,r)))
|
|
|
|
|
(native-inputs
|
2015-10-13 11:36:01 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("zlib" ,zlib)))
|
2015-07-07 07:56:49 -04:00
|
|
|
|
(home-page "http://rpy.sourceforge.net/")
|
|
|
|
|
(synopsis "Python interface to the R language")
|
|
|
|
|
(description "rpy2 is a redesign and rewrite of rpy. It is providing a
|
|
|
|
|
low-level interface to R from Python, a proposed high-level interface,
|
|
|
|
|
including wrappers to graphical libraries, as well as R-like structures and
|
|
|
|
|
functions.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl3+)))
|
2015-07-07 07:56:49 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-rpy2
|
|
|
|
|
(let ((rpy2 (package-with-python2 python-rpy2)))
|
|
|
|
|
(package (inherit rpy2)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-singledispatch" ,python2-singledispatch)
|
|
|
|
|
,@(package-native-inputs rpy2))))))
|
|
|
|
|
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(define-public python-scipy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scipy")
|
2015-10-13 08:56:45 -04:00
|
|
|
|
(version "0.16.0")
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz
|
|
|
|
|
(uri (string-append "mirror://sourceforge/scipy/scipy/" version
|
2015-01-14 12:04:17 -05:00
|
|
|
|
"/scipy-" version ".tar.xz"))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-10-13 08:56:45 -04:00
|
|
|
|
"0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(build-system python-build-system)
|
2015-10-13 07:29:49 -04:00
|
|
|
|
(propagated-inputs
|
2014-12-03 15:15:55 -05:00
|
|
|
|
`(("python-numpy" ,python-numpy)
|
|
|
|
|
("python-matplotlib" ,python-matplotlib)
|
2015-10-13 07:29:49 -04:00
|
|
|
|
("python-pyparsing" ,python-pyparsing)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("lapack" ,lapack)
|
2015-06-12 05:30:51 -04:00
|
|
|
|
("openblas" ,openblas)))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(native-inputs
|
2015-10-13 07:29:49 -04:00
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
2015-10-15 04:52:37 -04:00
|
|
|
|
("python-numpydoc" ,python-numpydoc)
|
2015-10-13 07:29:49 -04:00
|
|
|
|
("gfortran" ,gfortran)
|
2014-12-03 15:15:55 -05:00
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("perl" ,perl)))
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-cons-before
|
2015-06-12 05:30:51 -04:00
|
|
|
|
'build 'configure-openblas
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2015-06-12 05:30:51 -04:00
|
|
|
|
(call-with-output-file "site.cfg"
|
|
|
|
|
(lambda (port)
|
|
|
|
|
(format port
|
|
|
|
|
"[blas]
|
|
|
|
|
libraries = openblas
|
|
|
|
|
library_dirs = ~a/lib
|
|
|
|
|
include_dirs = ~a/include
|
|
|
|
|
[atlas]
|
|
|
|
|
library_dirs = ~a/lib
|
|
|
|
|
atlas_libs = openblas
|
|
|
|
|
"
|
|
|
|
|
(assoc-ref inputs "openblas")
|
|
|
|
|
(assoc-ref inputs "openblas")
|
|
|
|
|
(assoc-ref inputs "openblas"))))
|
|
|
|
|
#t)
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(html (string-append doc "/html"))
|
|
|
|
|
(pyver ,(string-append "PYVER=")))
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
;; Fix generation of images for mathematical expressions.
|
|
|
|
|
(substitute* (find-files "source" "conf\\.py")
|
|
|
|
|
(("pngmath_use_preview = True")
|
|
|
|
|
"pngmath_use_preview = False"))
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(system* "make" "html" pyver)
|
|
|
|
|
(system* "make" "latex" "PAPER=a4" pyver)
|
|
|
|
|
(system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
|
|
|
|
|
(copy-file "build/latex/scipy-ref.pdf"
|
|
|
|
|
(string-append doc "/scipy-ref.pdf"))
|
|
|
|
|
(with-directory-excursion "build/html"
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(let* ((dir (dirname file))
|
|
|
|
|
(tgt-dir (string-append html "/" dir)))
|
gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases.
* gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools,
plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'.
* gnu/packages/check.scm (catch-framework): Likewise.
* gnu/packages/code.scm (global): Likewise.
* gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools):
Likewise.
* gnu/packages/engineering.scm (fastcap, fasthenry): Likewise.
* gnu/packages/gnuzilla.scm (nss): Likewise.
* gnu/packages/guile.scm (guile-minikanren): Likewise.
* gnu/packages/java.scm (swt): Likewise.
* gnu/packages/make-bootstrap.scm (%static-binaries): Likewise.
* gnu/packages/maths.scm (lpsolve): Likewise.
* gnu/packages/mp3.scm (mpc123): Likewise.
* gnu/packages/ninja.scm (ninja): Likewise.
* gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise.
* gnu/packages/screen.scm (dtach): Likewise.
* gnu/packages/synergy.scm (synergy): Likewise.
* gnu/packages/textutils.scm (utf8proc): Likewise.
* gnu/packages/version-control.scm (git-test-sequence): Likewise.
* gnu/packages/wicd.scm (wicd): Likewise.
2015-08-28 16:22:22 -04:00
|
|
|
|
(install-file file html)))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(find-files "." ".*"))))))
|
|
|
|
|
;; Tests can only be run after the library has been installed and not
|
|
|
|
|
;; within the source directory.
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'check
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(lambda _
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(with-directory-excursion "/tmp"
|
|
|
|
|
(zero? (system* "python" "-c" "import scipy; scipy.test()"))))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(alist-delete
|
|
|
|
|
'check
|
2015-10-15 06:02:55 -04:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'unpack 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "scipy/integrate/tests/test_quadpack.py"
|
|
|
|
|
(("libm.so") "libm.so.6"))
|
|
|
|
|
#t)
|
|
|
|
|
%standard-phases)))))))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
(home-page "http://www.scipy.org/")
|
|
|
|
|
(synopsis "The Scipy library provides efficient numerical routines")
|
|
|
|
|
(description "The SciPy library is one of the core packages that make up
|
|
|
|
|
the SciPy stack. It provides many user-friendly and efficient numerical
|
|
|
|
|
routines such as routines for numerical integration and optimization.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
|
2014-12-23 13:17:17 -05:00
|
|
|
|
(define-public python2-scipy
|
2016-02-07 17:01:40 -05:00
|
|
|
|
(package-with-python2 python-scipy))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
|
2016-09-18 09:16:23 -04:00
|
|
|
|
(define-public python-socksipy-branch
|
|
|
|
|
(package
|
|
|
|
|
(name "python-socksipy-branch")
|
|
|
|
|
(version "1.01")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "SocksiPy-branch" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; There are no tests
|
|
|
|
|
(home-page "https://code.google.com/archive/p/socksipy-branch/")
|
|
|
|
|
(synopsis "Python SOCKS module")
|
|
|
|
|
(description
|
|
|
|
|
"SocksiPy - A Python SOCKS client module. It provides a
|
|
|
|
|
socket-like interface that supports connections to any TCP
|
|
|
|
|
service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
|
|
|
|
|
The original version was developed by Dan Haim, this is a
|
|
|
|
|
branch created by Mario Vilas to address some open issues,
|
|
|
|
|
as the original project seems to have been abandoned circa 2007.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-socksipy-branch
|
|
|
|
|
(package-with-python2 python-socksipy-branch))
|
|
|
|
|
|
2014-11-18 19:31:57 -05:00
|
|
|
|
(define-public python-sqlalchemy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sqlalchemy")
|
2016-02-15 16:40:13 -05:00
|
|
|
|
(version "1.0.12")
|
2014-11-18 19:31:57 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/S/"
|
|
|
|
|
"SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-15 16:40:13 -05:00
|
|
|
|
"1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
|
2014-11-18 19:31:57 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cython" ,python-cython) ;for c extensions
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-mock" ,python-mock))) ;for tests
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _ (zero? (system* "py.test")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.sqlalchemy.org")
|
|
|
|
|
(synopsis "Database abstraction library")
|
|
|
|
|
(description
|
|
|
|
|
"SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
|
|
|
|
|
gives application developers the full power and flexibility of SQL. It
|
|
|
|
|
provides a full suite of well known enterprise-level persistence patterns,
|
|
|
|
|
designed for efficient and high-performing database access, adapted into a
|
|
|
|
|
simple and Pythonic domain language.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2014-11-18 19:31:57 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-sqlalchemy
|
|
|
|
|
(package-with-python2 python-sqlalchemy))
|
2014-11-20 23:34:57 -05:00
|
|
|
|
|
2016-11-05 07:27:01 -04:00
|
|
|
|
(define-public python-pycodestyle
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pycodestyle")
|
|
|
|
|
(version "2.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pycodestyle" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://pycodestyle.readthedocs.io/")
|
|
|
|
|
(synopsis "Python style guide checker")
|
|
|
|
|
(description "@code{pycodestyle} (formerly pep8) is a tool to check
|
|
|
|
|
Python code against some of the style conventions in
|
|
|
|
|
@url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pycodestyle))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pycodestyle
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant
|
|
|
|
|
python-pycodestyle))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-11-05 07:27:02 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-orderedmultidict
|
|
|
|
|
(package
|
|
|
|
|
(name "python-orderedmultidict")
|
|
|
|
|
(version "0.7.10")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "orderedmultidict" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1gvqk0jd432wsn88kq4svad68xz3r012jfpnhh9in7bqrkyxidky"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The package uses nosetest for running the tests.
|
|
|
|
|
;; Adding this initfile allows to run the test suite
|
|
|
|
|
;; without requiring nosetest.
|
|
|
|
|
(zero? (system* "touch" "tests/__init__.py")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pycodestyle" ,python-pycodestyle)))
|
|
|
|
|
(home-page "https://github.com/gruns/orderedmultidict")
|
|
|
|
|
(synopsis "Python Ordered Multivalue Dictionary - omdict")
|
|
|
|
|
(description "This package contains a library for ordered multivalue
|
|
|
|
|
dictionaries. A multivalue dictionary is a dictionary that can store
|
|
|
|
|
multiple values for the same key. An ordered multivalue dictionary is a
|
|
|
|
|
multivalue dictionary that retains the order of insertions and deletions.")
|
|
|
|
|
(license license:unlicense)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-orderedmultidict))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-orderedmultidict
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant
|
|
|
|
|
python-orderedmultidict))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-11-05 07:27:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-furl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-furl")
|
|
|
|
|
(version "0.5.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "furl" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-orderedmultidict" ,python-orderedmultidict)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pycodestyle" ,python-pycodestyle)))
|
|
|
|
|
(home-page "https://github.com/gruns/furl")
|
|
|
|
|
(synopsis "URL manipulation in Python")
|
|
|
|
|
(description "Furl provides an easy-to-use alternative to the
|
|
|
|
|
@code{urllib} and @code{urlparse} modules for manipulating URLs.")
|
|
|
|
|
(license license:unlicense)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-furl))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-furl
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant
|
|
|
|
|
python-furl))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-11-05 07:27:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-flask-babel
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask-babel")
|
|
|
|
|
(version "0.11.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Flask-Babel" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-flask" ,python-flask)
|
|
|
|
|
("python-babel" ,python-babel)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-pytz" ,python-pytz)))
|
|
|
|
|
(home-page "https://github.com/python-babel/flask-babel")
|
|
|
|
|
(synopsis "Add i18n/l10n support to Flask applications")
|
|
|
|
|
(description "This package implements internationalization and localization
|
|
|
|
|
support for Flask. This is based on the Python babel module as well as pytz -
|
|
|
|
|
both of which are installed automatically if you install this library.")
|
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-flask-babel))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flask-babel
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant
|
|
|
|
|
python-flask-babel))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-11-05 07:27:01 -04:00
|
|
|
|
|
2016-09-11 14:29:55 -04:00
|
|
|
|
(define-public python-sqlalchemy-utils
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sqlalchemy-utils")
|
|
|
|
|
(version "0.32.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "SQLAlchemy-Utils" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-11-05 07:27:05 -04:00
|
|
|
|
(propagated-inputs
|
2016-09-11 14:29:55 -04:00
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-sqlalchemy" ,python-sqlalchemy)))
|
2016-11-05 07:27:06 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
2016-09-11 14:29:55 -04:00
|
|
|
|
(home-page "https://github.com/kvesteri/sqlalchemy-utils")
|
|
|
|
|
(synopsis "Various utility functions for SQLAlchemy")
|
|
|
|
|
(description
|
|
|
|
|
"SQLAlchemy-utils provides various utility functions and custom data types
|
2016-11-06 16:12:53 -05:00
|
|
|
|
for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
|
|
|
|
|
|
|
|
|
|
You might also want to install the following optional dependencies:
|
|
|
|
|
@enumerate
|
|
|
|
|
@item @code{python-passlib}
|
|
|
|
|
@item @code{python-babel}
|
|
|
|
|
@item @code{python-cryptography}
|
|
|
|
|
@item @code{python-pytz}
|
|
|
|
|
@item @code{python-psycopg2}
|
|
|
|
|
@item @code{python-furl}
|
|
|
|
|
@item @code{python-flask-babel}
|
|
|
|
|
@end enumerate
|
|
|
|
|
")
|
2016-09-11 14:29:55 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-sqlalchemy-utils))))
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-sqlalchemy-utils
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-sqlalchemy-utils))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
|
|
|
|
|
2016-02-13 20:04:24 -05:00
|
|
|
|
(define-public python-alembic
|
|
|
|
|
(package
|
|
|
|
|
(name "python-alembic")
|
2016-07-31 05:18:53 -04:00
|
|
|
|
(version "0.8.7")
|
2016-02-13 20:04:24 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "alembic" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-31 05:18:53 -04:00
|
|
|
|
"0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z"))))
|
2016-02-13 20:04:24 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-sqlalchemy" ,python-sqlalchemy)
|
|
|
|
|
("python-mako" ,python-mako)
|
|
|
|
|
("python-editor" ,python-editor)))
|
|
|
|
|
(home-page "http://bitbucket.org/zzzeek/alembic")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Database migration tool for SQLAlchemy")
|
|
|
|
|
(description
|
|
|
|
|
"Alembic is a lightweight database migration tool for usage with the
|
|
|
|
|
SQLAlchemy Database Toolkit for Python.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-alembic))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-alembic
|
|
|
|
|
(let ((alembic (package-with-python2
|
|
|
|
|
(strip-python2-variant python-alembic))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit alembic)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs alembic))))))
|
|
|
|
|
|
2014-11-20 23:35:41 -05:00
|
|
|
|
(define-public python-distutils-extra
|
|
|
|
|
(package
|
|
|
|
|
(name "python-distutils-extra")
|
|
|
|
|
(version "2.38")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
|
|
|
|
|
version "/+download/python-distutils-extra-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://launchpad.net/python-distutils-extra/")
|
|
|
|
|
(synopsis "Enhancements to Python's distutils")
|
|
|
|
|
(description
|
|
|
|
|
"The python-distutils-extra module enables you to easily integrate
|
|
|
|
|
gettext support, themed icons, and scrollkeeper-based documentation into
|
|
|
|
|
Python's distutils.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2)))
|
2014-11-20 23:35:41 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-distutils-extra
|
|
|
|
|
(package-with-python2 python-distutils-extra))
|
2014-11-20 23:36:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-elib.intl
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-elib.intl")
|
|
|
|
|
(version "0.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
;; This project doesn't tag releases or publish tarballs, so we take
|
|
|
|
|
;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/dieterv/elib.intl.git")
|
|
|
|
|
(commit "d09997cfef")))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
;; incompatible with Python 3 (exception syntax)
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f
|
|
|
|
|
;; With standard flags, the install phase attempts to create a zip'd
|
|
|
|
|
;; egg file, and fails with an error: 'ZIP does not support timestamps
|
|
|
|
|
;; before 1980'
|
|
|
|
|
#:configure-flags '("--single-version-externally-managed"
|
|
|
|
|
"--record=elib.txt")))
|
|
|
|
|
(home-page "https://github.com/dieterv/elib.intl")
|
|
|
|
|
(synopsis "Enhanced internationalization for Python")
|
|
|
|
|
(description
|
|
|
|
|
"The elib.intl module provides enhanced internationalization (I18N)
|
|
|
|
|
services for your Python modules and applications.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl3+)))
|
2014-11-20 23:36:34 -05:00
|
|
|
|
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(define-public python-pillow
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pillow")
|
2016-11-10 18:14:42 -05:00
|
|
|
|
(version "3.3.3")
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-01-31 08:10:53 -05:00
|
|
|
|
(uri (pypi-uri "Pillow" version))
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-10 18:14:42 -05:00
|
|
|
|
"0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj"))))
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(inputs
|
2015-05-29 08:54:29 -04:00
|
|
|
|
`(("freetype" ,freetype)
|
|
|
|
|
("lcms" ,lcms)
|
2014-11-20 23:34:57 -05:00
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
|
("openjpeg" ,openjpeg)
|
2015-05-29 08:54:29 -04:00
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("libwebp" ,libwebp)))
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(;; Used at runtime for pkg_resources
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
2015-07-20 17:15:24 -04:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'install 'disable-egg-compression
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Leave the .egg uncompressed since compressing it would
|
|
|
|
|
;; prevent the GC from identifying run-time dependencies.
|
|
|
|
|
;; See <http://bugs.gnu.org/20765>.
|
|
|
|
|
(let ((port (open-file "setup.cfg" "a")))
|
|
|
|
|
(display "\n[easy_install]\nzip_ok = 0\n"
|
|
|
|
|
port)
|
|
|
|
|
(close-port port)
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after
|
|
|
|
|
'install 'check-installed
|
|
|
|
|
(lambda _
|
|
|
|
|
(begin
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
(and (zero? (system* "python" "selftest.py"
|
|
|
|
|
"--installed"))
|
|
|
|
|
(zero? (system* "python" "test-installed.py"))))))
|
|
|
|
|
(delete 'check))))
|
2014-11-20 23:34:57 -05:00
|
|
|
|
(home-page "https://pypi.python.org/pypi/Pillow")
|
|
|
|
|
(synopsis "Fork of the Python Imaging Library")
|
|
|
|
|
(description
|
|
|
|
|
"The Python Imaging Library adds image processing capabilities to your
|
|
|
|
|
Python interpreter. This library provides extensive file format support, an
|
|
|
|
|
efficient internal representation, and fairly powerful image processing
|
|
|
|
|
capabilities. The core image library is designed for fast access to data
|
|
|
|
|
stored in a few basic pixel formats. It should provide a solid foundation for
|
|
|
|
|
a general image processing tool.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (license:x11-style
|
2014-11-20 23:34:57 -05:00
|
|
|
|
"http://www.pythonware.com/products/pil/license.htm"
|
|
|
|
|
"The PIL Software License"))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pillow
|
|
|
|
|
(package-with-python2 python-pillow))
|
2014-12-03 15:15:55 -05:00
|
|
|
|
|
2014-12-08 04:08:00 -05:00
|
|
|
|
(define-public python-pycparser
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pycparser")
|
2015-12-30 08:05:40 -05:00
|
|
|
|
(version "2.14")
|
2014-12-08 04:08:00 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 08:05:40 -05:00
|
|
|
|
(uri (pypi-uri "pycparser" version))
|
2014-12-08 04:08:00 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 08:05:40 -05:00
|
|
|
|
"0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
|
2014-12-08 04:08:00 -05:00
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
2015-02-23 12:41:10 -05:00
|
|
|
|
`(#:phases
|
2014-12-08 04:08:00 -05:00
|
|
|
|
(alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "tests"
|
|
|
|
|
(zero? (system* "python" "all_tests.py"))))
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(examples (string-append doc "/examples")))
|
|
|
|
|
(mkdir-p examples)
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(copy-file (string-append "." file)
|
|
|
|
|
(string-append doc file)))
|
|
|
|
|
'("/README.rst" "/CHANGES" "/LICENSE"))
|
|
|
|
|
(copy-recursively "examples" examples)))
|
|
|
|
|
%standard-phases))))
|
|
|
|
|
(home-page "https://github.com/eliben/pycparser")
|
|
|
|
|
(synopsis "C parser in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Pycparser is a complete parser of the C language, written in pure Python
|
|
|
|
|
using the PLY parsing library. It parses C code into an AST and can serve as
|
|
|
|
|
a front-end for C compilers or analysis tools.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-12-08 04:08:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pycparser
|
|
|
|
|
(package-with-python2 python-pycparser))
|
2014-12-09 09:58:24 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-cffi
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cffi")
|
2015-12-25 06:42:32 -05:00
|
|
|
|
(version "1.4.2")
|
2014-12-09 09:58:24 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 06:42:32 -05:00
|
|
|
|
(uri (pypi-uri "cffi" version))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(sha256
|
2015-12-25 06:42:32 -05:00
|
|
|
|
(base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
|
2014-12-09 09:58:24 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libffi" ,libffi)))
|
|
|
|
|
(propagated-inputs ; required at run-time
|
|
|
|
|
`(("python-pycparser" ,python-pycparser)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
2015-09-21 16:41:53 -04:00
|
|
|
|
("python-pytest" ,python-pytest)
|
2014-12-09 09:58:24 -05:00
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
2015-09-21 16:41:53 -04:00
|
|
|
|
`(#:phases
|
2014-12-09 09:58:24 -05:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(html (string-append doc "/html")))
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
(system* "make" "html")
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(copy-recursively "build/html" html))
|
|
|
|
|
(copy-file "LICENSE" (string-append doc "/LICENSE"))))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://cffi.readthedocs.org")
|
|
|
|
|
(synopsis "Foreign function interface for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Foreign Function Interface for Python calling C code.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-12-09 09:58:24 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-cffi
|
|
|
|
|
(package-with-python2 python-cffi))
|
2014-12-10 14:36:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-xcffib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-xcffib")
|
|
|
|
|
(version "0.1.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/x/"
|
|
|
|
|
"xcffib/xcffib-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libxcb" ,libxcb)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cffi" ,python-cffi))) ; used at run time
|
|
|
|
|
(arguments
|
2015-02-23 12:41:10 -05:00
|
|
|
|
`(#:phases
|
2014-12-10 14:36:58 -05:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((doc (string-append (assoc-ref outputs "out") "/share"
|
|
|
|
|
"/doc/" ,name "-" ,version)))
|
|
|
|
|
(mkdir-p doc)
|
|
|
|
|
(copy-file "README.md"
|
|
|
|
|
(string-append doc "/README.md"))))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "https://github.com/tych0/xcffib")
|
|
|
|
|
(synopsis "XCB Python bindings")
|
|
|
|
|
(description
|
|
|
|
|
"Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
|
|
|
|
|
support for Python 3 and PyPy. It is based on cffi.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2014-12-10 14:36:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-xcffib
|
|
|
|
|
(package-with-python2 python-xcffib))
|
|
|
|
|
|
2014-12-18 15:54:05 -05:00
|
|
|
|
(define-public python-cairocffi
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cairocffi")
|
|
|
|
|
(version "0.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
;; The archive on pypi is missing the 'utils' directory!
|
|
|
|
|
(uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
gnu: Add 'file-name' fields for github source tarballs without a name.
* gnu/packages/aarddict.scm (aarddict), gnu/packages/algebra.scm (arb),
gnu/packages/audio.scm (jack-2, lvtk),
gnu/packages/bioinformatics.scm (bedops, bedtools, bowtie),
gnu/packages/game-development.scm (tiled),
gnu/packages/games.scm (minetest-data, minetest, retroarch),
gnu/packages/jrnl.scm (jrnl), gnu/packages/kde.scm (qjson),
gnu/packages/libevent.scm (libuv), gnu/packages/linux.scm (pflask),
gnu/packages/mail.scm (offlineimap, libetpan),
gnu/packages/maths.scm (arpack-ng), gnu/packages/ninja.scm (ninja),
gnu/packages/nutrition.scm (gourmet),
gnu/packages/python.scm (python-cairocffi), gnu/packages/rdf.scm (lrdf),
gnu/packages/ruby.scm (ruby-i18n), gnu/packages/sxiv.scm (sxiv): Add
'file-name' field to origin.
2015-02-27 12:23:27 -05:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2014-12-18 15:54:05 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("gdk-pixbuf" ,gdk-pixbuf)
|
|
|
|
|
("cairo" ,cairo)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-xcffib" ,python-xcffib))) ; used at run time
|
|
|
|
|
(arguments
|
2015-02-23 12:41:10 -05:00
|
|
|
|
`(#:phases
|
2014-12-18 15:54:05 -05:00
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(html (string-append doc "/html")))
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(setenv "LD_LIBRARY_PATH"
|
2014-12-18 15:54:05 -05:00
|
|
|
|
(string-append (assoc-ref inputs "cairo") "/lib" ":"
|
|
|
|
|
(assoc-ref inputs "gdk-pixbuf") "/lib"))
|
|
|
|
|
(setenv "LANG" "en_US.UTF-8")
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(copy-file (string-append "." file)
|
|
|
|
|
(string-append doc file)))
|
|
|
|
|
'("/README.rst" "/CHANGES" "/LICENSE"))
|
|
|
|
|
(system* "python" "setup.py" "build_sphinx")
|
|
|
|
|
(copy-recursively "docs/_build/html" html)))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "https://github.com/SimonSapin/cairocffi")
|
|
|
|
|
(synopsis "Python bindings and object-oriented API for Cairo")
|
|
|
|
|
(description
|
|
|
|
|
"Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
|
|
|
|
|
Python bindings and object-oriented API for cairo. Cairo is a 2D vector
|
|
|
|
|
graphics library with support for multiple backends including image buffers,
|
|
|
|
|
PNG, PostScript, PDF, and SVG file output.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2014-12-18 15:54:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-cairocffi
|
|
|
|
|
(package-with-python2 python-cairocffi))
|
|
|
|
|
|
2015-03-31 06:34:37 -04:00
|
|
|
|
(define-public python-decorator
|
|
|
|
|
(package
|
|
|
|
|
(name "python-decorator")
|
2016-02-25 13:50:02 -05:00
|
|
|
|
(version "4.0.9")
|
2015-03-31 06:34:37 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-25 08:47:46 -05:00
|
|
|
|
(uri (pypi-uri "decorator" version))
|
2015-03-31 06:34:37 -04:00
|
|
|
|
(sha256
|
2016-02-25 13:50:02 -05:00
|
|
|
|
(base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
|
2015-03-31 06:34:37 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; no test target
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2016-02-25 13:50:02 -05:00
|
|
|
|
(home-page "https://pypi.python.org/pypi/decorator/")
|
2015-03-31 06:34:37 -04:00
|
|
|
|
(synopsis "Python module to simplify usage of decorators")
|
|
|
|
|
(description
|
|
|
|
|
"The aim of the decorator module is to simplify the usage of decorators
|
|
|
|
|
for the average programmer, and to popularize decorators usage giving examples
|
|
|
|
|
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
|
|
|
|
|
etc. The core of this module is a decorator factory.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-decorator
|
|
|
|
|
(package-with-python2 python-decorator))
|
|
|
|
|
|
2015-04-01 05:59:01 -04:00
|
|
|
|
(define-public python-drmaa
|
|
|
|
|
(package
|
|
|
|
|
(name "python-drmaa")
|
|
|
|
|
(version "0.7.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/d/drmaa/drmaa-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; The test suite requires libdrmaa which is provided by the cluster
|
|
|
|
|
;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
|
|
|
|
|
;; should be set to the path of the libdrmaa library.
|
|
|
|
|
(arguments '(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/drmaa")
|
|
|
|
|
(synopsis "Python bindings for the DRMAA library")
|
|
|
|
|
(description
|
|
|
|
|
"A Python package for Distributed Resource Management (DRM) job
|
|
|
|
|
submission and control. This package is an implementation of the DRMAA 1.0
|
|
|
|
|
Python language binding specification.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-04-01 05:59:01 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-drmaa
|
|
|
|
|
(package-with-python2 python-drmaa))
|
|
|
|
|
|
2015-07-10 08:58:09 -04:00
|
|
|
|
(define-public python-gridmap
|
|
|
|
|
(package
|
|
|
|
|
(name "python-gridmap")
|
|
|
|
|
(version "0.13.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/pygridtools/gridmap/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-psutil" ,python-psutil)
|
|
|
|
|
("python-drmaa" ,python-drmaa)
|
|
|
|
|
("python-pyzmq" ,python-pyzmq)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/pygridtools/gridmap")
|
|
|
|
|
(synopsis "Create jobs on a cluster directly from Python")
|
|
|
|
|
(description
|
|
|
|
|
"Gridmap is a Python package to allow you to easily create jobs on the
|
|
|
|
|
cluster directly from Python. You can directly map Python functions onto the
|
|
|
|
|
cluster without needing to write any wrapper code yourself.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl3+)))
|
2015-07-10 08:58:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-gridmap
|
|
|
|
|
(package-with-python2 python-gridmap))
|
|
|
|
|
|
2015-09-22 08:58:16 -04:00
|
|
|
|
(define-public python-pexpect
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pexpect")
|
|
|
|
|
(version "3.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"pexpect/pexpect-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check (lambda _ (zero? (system* "nosetests")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://pexpect.readthedocs.org/")
|
|
|
|
|
(synopsis "Controlling interactive console applications")
|
|
|
|
|
(description
|
|
|
|
|
"Pexpect is a pure Python module for spawning child applications;
|
|
|
|
|
controlling them; and responding to expected patterns in their output.
|
|
|
|
|
Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
|
|
|
|
|
child application and control it as if a human were typing commands.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:isc)))
|
2015-09-22 08:58:16 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pexpect
|
|
|
|
|
(package-with-python2 python-pexpect))
|
|
|
|
|
|
2015-09-22 08:59:13 -04:00
|
|
|
|
(define-public python-setuptools-scm
|
|
|
|
|
(package
|
|
|
|
|
(name "python-setuptools-scm")
|
2016-07-13 22:49:46 -04:00
|
|
|
|
(version "1.11.1")
|
2015-09-22 08:59:13 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-11-24 10:20:42 -05:00
|
|
|
|
(uri (pypi-uri "setuptools_scm" version))
|
2015-09-22 08:59:13 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-13 22:49:46 -04:00
|
|
|
|
"1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc"))))
|
2015-09-22 08:59:13 -04:00
|
|
|
|
(build-system python-build-system)
|
2015-11-24 10:20:42 -05:00
|
|
|
|
(native-inputs `(("python-setuptools" ,python-setuptools)))
|
2015-09-22 08:59:13 -04:00
|
|
|
|
(home-page "https://github.com/pypa/setuptools_scm/")
|
|
|
|
|
(synopsis "Manage Python package versions in SCM metadata")
|
|
|
|
|
(description
|
2015-11-24 10:20:42 -05:00
|
|
|
|
"Setuptools_scm handles managing your Python package versions in
|
2015-09-22 08:59:13 -04:00
|
|
|
|
@dfn{software configuration management} (SCM) metadata instead of declaring
|
|
|
|
|
them as the version argument or in a SCM managed file.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-setuptools-scm
|
|
|
|
|
(package-with-python2 python-setuptools-scm))
|
|
|
|
|
|
2015-09-23 06:47:16 -04:00
|
|
|
|
(define-public python-pathpy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pathpy")
|
|
|
|
|
(version "8.1.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"path.py/path.py-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-appdirs" ,python-appdirs)))
|
|
|
|
|
(native-inputs
|
2015-11-26 08:26:18 -05:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)
|
2015-09-23 06:47:16 -04:00
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-runner" ,python-pytest-runner)))
|
|
|
|
|
(home-page "http://github.com/jaraco/path.py")
|
|
|
|
|
(synopsis "Python module wrapper for built-in os.path")
|
|
|
|
|
(description
|
|
|
|
|
"@code{path.py} implements path objects as first-class entities, allowing
|
|
|
|
|
common operations on files to be invoked on those path objects directly.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pathpy
|
|
|
|
|
(package-with-python2 python-pathpy))
|
|
|
|
|
|
2015-09-23 06:48:27 -04:00
|
|
|
|
(define-public python-pickleshare
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pickleshare")
|
|
|
|
|
(version "0.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"pickleshare/pickleshare-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pathpy" ,python-pathpy)))
|
2015-11-26 08:28:31 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2015-09-23 06:48:27 -04:00
|
|
|
|
(home-page "https://github.com/vivainio/pickleshare")
|
|
|
|
|
(synopsis "Tiny key value database with concurrency support")
|
|
|
|
|
(description
|
|
|
|
|
"PickleShare is a small ‘shelve’-like datastore with concurrency support.
|
|
|
|
|
Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
|
|
|
|
|
shelve, many processes can access the database simultaneously. Changing a
|
|
|
|
|
value in database is immediately visible to other processes accessing the same
|
|
|
|
|
database. Concurrency is possible because the values are stored in separate
|
|
|
|
|
files. Hence the “database” is a directory where all files are governed by
|
|
|
|
|
PickleShare.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pickleshare
|
|
|
|
|
(package-with-python2 python-pickleshare))
|
|
|
|
|
|
2015-09-23 06:50:13 -04:00
|
|
|
|
(define-public python-simplegeneric
|
|
|
|
|
(package
|
|
|
|
|
(name "python-simplegeneric")
|
|
|
|
|
(version "0.8.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/s/"
|
|
|
|
|
"simplegeneric/simplegeneric-" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2015-11-02 08:26:05 -05:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("unzip" ,unzip)))
|
2015-09-23 06:50:13 -04:00
|
|
|
|
(home-page "http://cheeseshop.python.org/pypi/simplegeneric")
|
|
|
|
|
(synopsis "Python module for simple generic functions")
|
|
|
|
|
(description
|
|
|
|
|
"The simplegeneric module lets you define simple single-dispatch generic
|
|
|
|
|
functions, akin to Python’s built-in generic functions like @code{len()},
|
|
|
|
|
@code{iter()} and so on. However, instead of using specially-named methods,
|
|
|
|
|
these generic functions use simple lookup tables, akin to those used by
|
|
|
|
|
e.g. @code{pickle.dump()} and other generic functions found in the Python
|
|
|
|
|
standard library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-09-23 06:50:13 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-simplegeneric
|
|
|
|
|
(package-with-python2 python-simplegeneric))
|
|
|
|
|
|
2015-09-23 07:51:03 -04:00
|
|
|
|
(define-public python-ipython-genutils
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ipython-genutils")
|
|
|
|
|
(version "0.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/i/"
|
|
|
|
|
"ipython_genutils/ipython_genutils-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "Vestigial utilities from IPython")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides retired utilities from IPython.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-23 07:51:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-ipython-genutils
|
|
|
|
|
(package-with-python2 python-ipython-genutils))
|
|
|
|
|
|
2015-09-23 07:51:50 -04:00
|
|
|
|
(define-public python-traitlets
|
|
|
|
|
(package
|
|
|
|
|
(name "python-traitlets")
|
2016-11-01 08:20:31 -04:00
|
|
|
|
(version "4.2.0")
|
2015-09-23 07:51:50 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 13:45:36 -05:00
|
|
|
|
(uri (pypi-uri "traitlets" version))
|
2015-09-23 07:51:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-01 08:20:31 -04:00
|
|
|
|
"1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4"))))
|
2015-09-23 07:51:50 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check (lambda _ (zero? (system* "nosetests")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-ipython-genutils" ,python-ipython-genutils)
|
|
|
|
|
("python-decorator" ,python-decorator)))
|
|
|
|
|
(native-inputs
|
2016-02-25 13:45:36 -05:00
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
2015-09-23 07:51:50 -04:00
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "Configuration system for Python applications")
|
|
|
|
|
(description
|
|
|
|
|
"Traitlets is a framework that lets Python classes have attributes with
|
|
|
|
|
type checking, dynamically calculated default values, and ‘on change’
|
|
|
|
|
callbacks. The package also includes a mechanism to use traitlets for
|
|
|
|
|
configuration, loading values from files or from command line arguments. This
|
|
|
|
|
is a distinct layer on top of traitlets, so you can use traitlets in your code
|
|
|
|
|
without using the configuration machinery.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-23 07:51:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-traitlets
|
|
|
|
|
(package-with-python2 python-traitlets))
|
|
|
|
|
|
2016-11-01 08:20:32 -04:00
|
|
|
|
(define-public python-jupyter-core
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jupyter-core")
|
|
|
|
|
(version "4.2.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append (pypi-uri "jupyter_core" version)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"177d9csqldzhsh6xs1p4nf6lzvhzyg6gklqjf69lxgxyadx87v24"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; FIXME: not sure how to run the tests
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-traitlets" ,python-traitlets)))
|
|
|
|
|
(home-page "http://jupyter.org/")
|
|
|
|
|
(synopsis "Jupyter base package")
|
|
|
|
|
(description
|
|
|
|
|
"Jupyter core is the base package on which Jupyter projects rely.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jupyter-core
|
|
|
|
|
(package-with-python2 python-jupyter-core))
|
|
|
|
|
|
2016-11-01 08:20:33 -04:00
|
|
|
|
(define-public python-jupyter-client
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jupyter-client")
|
|
|
|
|
(version "4.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jupyter_client" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; Tests fail because of missing native python kernel which I assume is
|
|
|
|
|
;; provided by the ipython package, which we cannot use because it would
|
|
|
|
|
;; cause a dependency cycle.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyzmq" ,python-pyzmq)
|
|
|
|
|
("python-traitlets" ,python-traitlets)
|
|
|
|
|
("python-jupyter-core" ,python-jupyter-core)))
|
|
|
|
|
(home-page "http://jupyter.org/")
|
|
|
|
|
(synopsis "Jupyter protocol implementation and client libraries")
|
|
|
|
|
(description
|
|
|
|
|
"The @code{jupyter_client} package contains the reference implementation
|
|
|
|
|
of the Jupyter protocol. It also provides client and kernel management APIs
|
|
|
|
|
for working with kernels, and the @code{jupyter kernelspec} entrypoint for
|
|
|
|
|
installing @code{kernelspec}s for use with Jupyter frontends.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jupyter-client
|
|
|
|
|
(package-with-python2 python-jupyter-client))
|
|
|
|
|
|
2016-11-01 08:20:34 -04:00
|
|
|
|
(define-public python-ipykernel
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ipykernel")
|
|
|
|
|
(version "4.5.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ipykernel" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "15c2bp1x3i6s4xb7vz7742h3kmvdfdfn9n2haywm3mwgvf77jni4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; The tests load a submodule of IPython. However, IPython itself depends
|
|
|
|
|
;; on ipykernel.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; imported at runtime during connect
|
|
|
|
|
`(("python-jupyter-client" ,python-jupyter-client)))
|
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "IPython Kernel for Jupyter")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides the IPython kernel for Jupyter.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ipykernel
|
|
|
|
|
(package-with-python2 python-ipykernel))
|
|
|
|
|
|
2016-11-01 08:20:35 -04:00
|
|
|
|
(define-public python-testpath
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testpath")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/jupyter/testpath/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; this package does not even have a setup.py
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'install)
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((dir (string-append
|
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
|
"/lib/python"
|
|
|
|
|
(string-take (string-take-right
|
|
|
|
|
(assoc-ref inputs "python") 5) 3)
|
|
|
|
|
"/site-packages/testpath")))
|
|
|
|
|
(mkdir-p dir)
|
|
|
|
|
(copy-recursively "testpath" dir))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://github.com/takluyver/testpath")
|
|
|
|
|
(synopsis "Test utilities for code working with files and commands")
|
|
|
|
|
(description
|
|
|
|
|
"Testpath is a collection of utilities for Python code working with files
|
|
|
|
|
and commands. It contains functions to check things on the filesystem, and
|
|
|
|
|
tools for mocking system commands and recording calls to those.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-testpath
|
|
|
|
|
(package-with-python2 python-testpath))
|
|
|
|
|
|
2014-12-19 11:29:39 -05:00
|
|
|
|
(define-public python-ipython
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ipython")
|
2016-11-01 08:20:45 -04:00
|
|
|
|
(version "4.0.0")
|
2014-12-19 11:29:39 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2015-12-15 11:59:15 -05:00
|
|
|
|
(method url-fetch)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
(uri (pypi-uri "ipython" version ".tar.gz"))
|
2015-12-15 11:59:15 -05:00
|
|
|
|
(sha256
|
2016-11-01 08:20:45 -04:00
|
|
|
|
(base32 "1npl8g6bfsff9j938ypx0q5fyzy2l8lp0jl8skjjj2zv0z27dlig"))))
|
2014-12-19 11:29:39 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(outputs '("out" "doc"))
|
2015-07-23 11:48:33 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyzmq" ,python-pyzmq)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
("python-terminado" ,python-terminado)
|
2014-12-19 11:29:39 -05:00
|
|
|
|
("python-matplotlib" ,python-matplotlib)
|
2015-12-01 11:41:32 -05:00
|
|
|
|
("python-numpy" ,python-numpy)
|
2014-12-19 11:29:39 -05:00
|
|
|
|
("python-numpydoc" ,python-numpydoc)
|
2015-07-23 11:48:33 -04:00
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-mistune" ,python-mistune)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
("python-pexpect" ,python-pexpect)
|
|
|
|
|
("python-pickleshare" ,python-pickleshare)
|
|
|
|
|
("python-simplegeneric" ,python-simplegeneric)
|
2015-07-23 11:48:33 -04:00
|
|
|
|
("python-jsonschema" ,python-jsonschema)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
("python-traitlets" ,python-traitlets)
|
|
|
|
|
("python-ipykernel" ,python-ipykernel)
|
|
|
|
|
("python-pygments" ,python-pygments)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("readline" ,readline)
|
|
|
|
|
("which" ,which)))
|
2014-12-19 11:29:39 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
("python-requests" ,python-requests) ;; for tests
|
|
|
|
|
("python-testpath" ,python-testpath)
|
|
|
|
|
("python-nose" ,python-nose)
|
2014-12-19 11:29:39 -05:00
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
2015-02-23 12:41:10 -05:00
|
|
|
|
`(#:phases
|
2015-07-23 11:48:33 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after
|
|
|
|
|
'install 'install-doc
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
|
|
|
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
|
|
|
|
(html (string-append doc "/html"))
|
|
|
|
|
(man1 (string-append data "/man/man1"))
|
|
|
|
|
(info (string-append data "/info"))
|
|
|
|
|
(examples (string-append doc "/examples")))
|
2015-10-03 14:12:59 -04:00
|
|
|
|
(setenv "LANG" "en_US.utf8")
|
2015-07-23 11:48:33 -04:00
|
|
|
|
(with-directory-excursion "docs"
|
2016-11-01 08:20:45 -04:00
|
|
|
|
;; FIXME: pdf fails to build
|
|
|
|
|
;;(system* "make" "pdf" "PAPER=a4")
|
|
|
|
|
(system* "make" "html")
|
2015-07-23 11:48:33 -04:00
|
|
|
|
(system* "make" "info"))
|
|
|
|
|
(copy-recursively "docs/man" man1)
|
|
|
|
|
(copy-recursively "examples" examples)
|
2016-11-01 08:20:45 -04:00
|
|
|
|
(copy-recursively "docs/build/html" html)
|
2015-07-23 11:48:33 -04:00
|
|
|
|
;; (copy-file "docs/build/latex/ipython.pdf"
|
|
|
|
|
;; (string-append doc "/ipython.pdf"))
|
|
|
|
|
(mkdir-p info)
|
|
|
|
|
(copy-file "docs/build/texinfo/ipython.info"
|
|
|
|
|
(string-append info "/ipython.info"))
|
|
|
|
|
(copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
|
|
|
|
|
;; Tests can only be run after the library has been installed and not
|
|
|
|
|
;; within the source directory.
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after
|
|
|
|
|
'install 'check
|
|
|
|
|
(lambda* (#:key outputs tests? #:allow-other-keys)
|
|
|
|
|
(if tests?
|
|
|
|
|
(with-directory-excursion "/tmp"
|
|
|
|
|
(setenv "HOME" "/tmp/") ;; required by a test
|
|
|
|
|
(zero? (system* (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/bin/iptest"))))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-before
|
|
|
|
|
'install 'fix-tests
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "./IPython/utils/_process_posix.py"
|
|
|
|
|
(("/usr/bin/env', 'which") (which "which")))
|
|
|
|
|
(substitute* "./IPython/core/tests/test_inputtransformer.py"
|
|
|
|
|
(("#!/usr/bin/env python")
|
|
|
|
|
(string-append "#!" (which "python"))))
|
|
|
|
|
;; Disable 1 failing test
|
|
|
|
|
(substitute* "./IPython/core/tests/test_magic.py"
|
|
|
|
|
(("def test_dirops\\(\\):" all)
|
|
|
|
|
(string-append "@dec.skipif(True)\n" all))))))))
|
2014-12-19 11:29:39 -05:00
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "IPython is a tool for interactive computing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"IPython provides a rich architecture for interactive computing with:
|
|
|
|
|
Powerful interactive shells, a browser-based notebook, support for interactive
|
|
|
|
|
data visualization, embeddable interpreters and tools for parallel
|
|
|
|
|
computing.")
|
2016-09-01 16:23:46 -04:00
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-ipython))))))
|
2014-12-19 11:29:39 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-ipython
|
2016-09-01 16:23:46 -04:00
|
|
|
|
(let ((ipython (package-with-python2 (strip-python2-variant python-ipython))))
|
2015-07-23 11:48:33 -04:00
|
|
|
|
(package
|
|
|
|
|
(inherit ipython)
|
|
|
|
|
;; FIXME: some tests are failing
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ,@(package-arguments ipython)))
|
|
|
|
|
;; FIXME: add pyreadline once available.
|
2015-02-23 12:41:10 -05:00
|
|
|
|
(inputs
|
2016-09-01 16:23:46 -04:00
|
|
|
|
`(("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-inputs ipython))))))
|
2015-01-20 16:16:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-isodate
|
|
|
|
|
(package
|
|
|
|
|
(name "python-isodate")
|
2016-02-25 04:07:07 -05:00
|
|
|
|
(version "0.5.4")
|
2015-01-20 16:16:58 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 04:07:07 -05:00
|
|
|
|
(uri (pypi-uri "isodate" version))
|
2015-01-20 16:16:58 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 04:07:07 -05:00
|
|
|
|
"0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
|
2015-01-20 16:16:58 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://cheeseshop.python.org/pypi/isodate")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python date parser and formatter")
|
|
|
|
|
(description
|
|
|
|
|
"Python-isodate is a python module for parsing and formatting
|
|
|
|
|
ISO 8601 dates, time and duration.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-01-20 16:16:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-isodate
|
|
|
|
|
(package-with-python2 python-isodate))
|
2015-01-20 16:37:01 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-html5lib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-html5lib")
|
2016-02-25 04:08:50 -05:00
|
|
|
|
(version "1.0b8")
|
2015-01-20 16:37:01 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 04:08:50 -05:00
|
|
|
|
(uri (pypi-uri "html5lib" version))
|
2015-01-20 16:37:01 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 04:08:50 -05:00
|
|
|
|
"1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
|
2015-01-20 16:37:01 -05:00
|
|
|
|
(build-system python-build-system)
|
2015-02-24 18:28:19 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six))) ; required to "import html5lib"
|
2015-01-20 16:37:01 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "check"))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/html5lib/html5lib-python")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python HTML parser based on the WHATWG HTML specifcation")
|
|
|
|
|
(description
|
|
|
|
|
"Html5lib is an HTML parser based on the WHATWG HTML specifcation
|
|
|
|
|
and written in Python.")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2015-01-20 16:37:01 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-html5lib
|
|
|
|
|
(package-with-python2 python-html5lib))
|
2015-02-03 00:31:03 -05:00
|
|
|
|
|
2016-11-01 08:20:36 -04:00
|
|
|
|
;; Needed for python-bleach, a dependency of python-notebook
|
|
|
|
|
(define-public python-html5lib-0.9
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-html5lib)
|
|
|
|
|
(version "0.999")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "html5lib" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-html5lib-0.9
|
|
|
|
|
(package-with-python2 python-html5lib-0.9))
|
|
|
|
|
|
2015-02-03 00:31:03 -05:00
|
|
|
|
(define-public python-urwid
|
|
|
|
|
(package
|
|
|
|
|
(name "python-urwid")
|
2016-08-12 23:33:24 -04:00
|
|
|
|
(version "1.3.1")
|
2015-02-03 00:31:03 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-01-03 14:07:33 -05:00
|
|
|
|
(uri (pypi-uri "urwid" version))
|
2015-02-03 00:31:03 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-12 23:33:24 -04:00
|
|
|
|
"18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng"))))
|
2015-02-03 00:31:03 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-01-03 14:07:33 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Disable failing test. Bug filed upstream:
|
|
|
|
|
;; https://github.com/wardi/urwid/issues/164
|
2016-08-12 23:33:24 -04:00
|
|
|
|
;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3.
|
2016-01-03 14:07:33 -05:00
|
|
|
|
(add-after 'unpack 'disable-failing-test
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "urwid/tests/test_event_loops.py"
|
|
|
|
|
(("test_remove_watch_file")
|
|
|
|
|
"disable_remove_watch_file")))))))
|
2015-02-03 00:31:03 -05:00
|
|
|
|
(native-inputs `(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://urwid.org")
|
|
|
|
|
(synopsis "Console user interface library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Urwid is a curses-based UI/widget library for Python. It includes many
|
|
|
|
|
features useful for text console applications.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2015-02-03 00:31:03 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-urwid
|
|
|
|
|
(package-with-python2 python-urwid))
|
2015-02-03 19:02:20 -05:00
|
|
|
|
|
2016-07-02 14:27:41 -04:00
|
|
|
|
(define-public python-urwidtrees
|
|
|
|
|
(package
|
|
|
|
|
(name "python-urwidtrees")
|
2016-08-13 12:08:05 -04:00
|
|
|
|
(version "1.0.2")
|
2016-07-02 14:27:41 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-08-13 12:08:05 -04:00
|
|
|
|
;; package author intends on distributing via github rather than pypi:
|
|
|
|
|
;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
|
|
|
|
|
(uri (string-append "https://github.com/pazz/urwidtrees/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2016-07-02 14:27:41 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-13 12:08:05 -04:00
|
|
|
|
"0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh"))))
|
2016-07-02 14:27:41 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no tests
|
|
|
|
|
(inputs `(("python-urwid" ,python-urwid)))
|
|
|
|
|
(home-page "https://github.com/pazz/urwidtrees")
|
|
|
|
|
(synopsis "Tree widgets for urwid")
|
|
|
|
|
(description "Urwidtrees is a Widget Container API for the @code{urwid}
|
|
|
|
|
toolkit. Use it to build trees of widgets.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl3+)))
|
2016-07-02 14:27:41 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-urwidtrees
|
|
|
|
|
(package-with-python2 python-urwidtrees))
|
|
|
|
|
|
2015-02-03 19:02:20 -05:00
|
|
|
|
(define-public python-dbus
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dbus")
|
|
|
|
|
(version "1.2.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2016-02-19 08:23:38 -05:00
|
|
|
|
"https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
|
2015-02-03 19:02:20 -05:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2015-10-17 20:43:40 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'check 'pre-check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; XXX: For the missing '/etc/machine-id'.
|
|
|
|
|
(substitute* "test/run-test.sh"
|
|
|
|
|
(("DBUS_FATAL_WARNINGS=1")
|
|
|
|
|
"DBUS_FATAL_WARNINGS=0"))
|
|
|
|
|
#t)))))
|
2015-02-03 19:02:20 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)
|
2015-05-23 10:43:18 -04:00
|
|
|
|
("dbus-glib" ,dbus-glib)))
|
2015-02-03 19:02:20 -05:00
|
|
|
|
(synopsis "Python bindings for D-bus")
|
|
|
|
|
(description "python-dbus provides bindings for libdbus, the reference
|
|
|
|
|
implementation of D-Bus.")
|
|
|
|
|
(home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
|
gnu: python: Prefix expat license by "license:" to avoid conflicts with
expat from the xml module.
* gnu/packages/python.scm: Prefix expat license imported from
(guix licenses).
* gnu/packages/python.scm (python-lockfile, python-mock, python-pysam,
python-extras, python-mimeparse, python-py, python-pytest,
python-scripttest, python-jsonschema, python-pyjwt, python-virtualenv,
python-sphinx-rtd-theme, python-pyparsing, python-cffi, python-xcffib,
python-html5lib, python-dbus): Adapt license field.
2015-02-12 15:07:14 -05:00
|
|
|
|
(license license:expat)))
|
2015-02-03 19:55:26 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-dbus
|
|
|
|
|
(package (inherit python-dbus)
|
|
|
|
|
(name "python2-dbus")
|
|
|
|
|
(inputs `(("python" ,python-2)
|
|
|
|
|
,@(alist-delete "python"
|
|
|
|
|
(package-inputs python-dbus)
|
|
|
|
|
equal?)))
|
|
|
|
|
;; FIXME: on Python 2, the test_utf8 fails with:
|
|
|
|
|
;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
|
|
|
|
|
(arguments `(#:tests? #f))))
|
2015-02-12 14:19:31 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-apsw
|
|
|
|
|
(package
|
|
|
|
|
(name "python-apsw")
|
2016-01-31 15:53:59 -05:00
|
|
|
|
(version "3.9.2-r1")
|
2015-02-12 14:19:31 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-01-31 15:53:59 -05:00
|
|
|
|
(uri (pypi-uri "apsw" version))
|
2015-02-12 14:19:31 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-01-31 15:53:59 -05:00
|
|
|
|
"0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
|
2015-02-12 14:19:31 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("sqlite" ,sqlite)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
;; swap check and install phases
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'install 'check
|
|
|
|
|
(assoc-ref %standard-phases 'check)
|
|
|
|
|
(alist-delete
|
|
|
|
|
'check
|
|
|
|
|
%standard-phases))))
|
|
|
|
|
(home-page "https://github.com/rogerbinns/apsw/")
|
|
|
|
|
(synopsis "Another Python SQLite Wrapper")
|
|
|
|
|
(description "APSW is a Python wrapper for the SQLite
|
|
|
|
|
embedded relational database engine. In contrast to other wrappers such as
|
|
|
|
|
pysqlite it focuses on being a minimal layer over SQLite attempting just to
|
|
|
|
|
translate the complete SQLite API into Python.")
|
2015-02-13 18:43:41 -05:00
|
|
|
|
(license license:zlib)))
|
2015-02-12 14:19:31 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-apsw
|
|
|
|
|
(package-with-python2 python-apsw))
|
2015-02-12 15:14:38 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-lxml
|
|
|
|
|
(package
|
|
|
|
|
(name "python-lxml")
|
2016-07-19 13:11:32 -04:00
|
|
|
|
(version "3.6.0")
|
2015-02-12 15:14:38 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-15 18:25:27 -05:00
|
|
|
|
(uri (pypi-uri "lxml" version))
|
2015-02-12 15:14:38 -05:00
|
|
|
|
(sha256
|
2016-07-19 13:11:32 -04:00
|
|
|
|
(base32
|
|
|
|
|
"1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w"))))
|
2015-02-12 15:14:38 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libxml2" ,libxml2)
|
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://lxml.de/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python XML processing library")
|
|
|
|
|
(description
|
|
|
|
|
"The lxml XML toolkit is a Pythonic binding for the C libraries
|
|
|
|
|
libxml2 and libxslt.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3))) ; and a few more, see LICENSES.txt
|
2015-02-12 15:14:38 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-lxml
|
|
|
|
|
(package-with-python2 python-lxml))
|
2015-02-13 15:02:47 -05:00
|
|
|
|
|
2016-02-13 21:35:57 -05:00
|
|
|
|
;; beautifulsoup4 has a totally different namespace than 3.x,
|
|
|
|
|
;; and pypi seems to put it under its own name, so I guess we should too
|
|
|
|
|
(define-public python-beautifulsoup4
|
|
|
|
|
(package
|
|
|
|
|
(name "python-beautifulsoup4")
|
2016-10-28 13:11:40 -04:00
|
|
|
|
(version "4.5.1")
|
2016-02-13 21:35:57 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "beautifulsoup4" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-28 13:11:40 -04:00
|
|
|
|
"1qgmhw65ncsgccjhslgkkszif47q6gvxwqv4mim17agxd81p951w"))))
|
2016-02-13 21:35:57 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-10-28 13:09:56 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; The Python 2 source is the definitive source of beautifulsoup4. We
|
|
|
|
|
;; must use this conversion script when building with Python 3. The
|
|
|
|
|
;; conversion script also runs the tests.
|
|
|
|
|
;; For more information, see the file 'convert-py3k' in the source
|
|
|
|
|
;; distribution.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _ (zero? (system* "./convert-py3k")))))))
|
2016-02-13 21:35:57 -05:00
|
|
|
|
(home-page
|
|
|
|
|
"http://www.crummy.com/software/BeautifulSoup/bs4/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python screen-scraping library")
|
|
|
|
|
(description
|
|
|
|
|
"Beautiful Soup is a Python library designed for rapidly setting up
|
|
|
|
|
screen-scraping projects. It offers Pythonic idioms for navigating,
|
|
|
|
|
searching, and modifying a parse tree, providing a toolkit for
|
|
|
|
|
dissecting a document and extracting what you need. It automatically
|
|
|
|
|
converts incoming documents to Unicode and outgoing documents to UTF-8.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-beautifulsoup4
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-beautifulsoup4)))
|
2016-10-28 13:09:56 -04:00
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments `(#:python ,python-2))))
|
2016-02-13 21:35:57 -05:00
|
|
|
|
|
2015-02-14 13:25:55 -05:00
|
|
|
|
(define-public python2-cssutils
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-cssutils")
|
2016-07-19 14:00:52 -04:00
|
|
|
|
(version "1.0.1")
|
2015-02-14 13:25:55 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-19 14:00:52 -04:00
|
|
|
|
(uri (pypi-uri "cssutils" version))
|
2015-02-14 13:25:55 -05:00
|
|
|
|
(sha256
|
2016-07-19 14:00:52 -04:00
|
|
|
|
(base32
|
|
|
|
|
"0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"))))
|
2015-02-14 13:25:55 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-mock" ,python2-mock) ; for the tests
|
|
|
|
|
("unzip" ,unzip))) ; for unpacking the source
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; Otherwise tests fail with a syntax error.
|
|
|
|
|
#:tests? #f ; The tests apparently download an external URL.
|
2015-02-27 08:40:21 -05:00
|
|
|
|
))
|
2015-02-14 13:25:55 -05:00
|
|
|
|
(home-page "http://cthedot.de/cssutils/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"CSS Cascading Style Sheets library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Cssutils is a Python package for parsing and building CSS
|
|
|
|
|
Cascading Style Sheets. Currently it provides a DOM only and no rendering
|
|
|
|
|
options.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl3+)))
|
2015-02-14 13:37:56 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-cssselect
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cssselect")
|
2016-07-19 14:03:31 -04:00
|
|
|
|
(version "0.9.2")
|
2015-02-14 13:37:56 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-19 14:03:31 -04:00
|
|
|
|
(uri (pypi-uri "cssselect" version))
|
2015-02-14 13:37:56 -05:00
|
|
|
|
(sha256
|
2016-07-19 14:03:31 -04:00
|
|
|
|
(base32
|
|
|
|
|
"1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
|
2015-02-14 13:37:56 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
;; tests fail with message
|
|
|
|
|
;; AttributeError: 'module' object has no attribute 'tests'
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://pythonhosted.org/cssselect/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"CSS3 selector parser and translator to XPath 1.0")
|
|
|
|
|
(description
|
|
|
|
|
"Cssselect ia a Python module that parses CSS3 Selectors and translates
|
|
|
|
|
them to XPath 1.0 expressions. Such expressions can be used in lxml or
|
|
|
|
|
another XPath engine to find the matching elements in an XML or HTML document.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-02-14 13:37:56 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-cssselect
|
|
|
|
|
(package-with-python2 python-cssselect))
|
2015-02-15 04:45:17 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-netifaces
|
|
|
|
|
(package
|
|
|
|
|
(name "python-netifaces")
|
|
|
|
|
(version "0.10.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/n/netifaces/netifaces-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://bitbucket.org/al45tair/netifaces")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python module for portable network interface information")
|
|
|
|
|
(description
|
|
|
|
|
"Netifaces is a Python module providing information on network
|
|
|
|
|
interfaces in an easy and portable manner.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-netifaces
|
|
|
|
|
(package-with-python2 python-netifaces))
|
2015-03-02 11:36:28 -05:00
|
|
|
|
|
2015-03-31 06:35:09 -04:00
|
|
|
|
(define-public python-networkx
|
|
|
|
|
(package
|
|
|
|
|
(name "python-networkx")
|
2016-02-25 08:33:05 -05:00
|
|
|
|
(version "1.11")
|
2015-03-31 06:35:09 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 08:33:05 -05:00
|
|
|
|
(uri (pypi-uri "networkx" version))
|
2015-03-31 06:35:09 -04:00
|
|
|
|
(sha256
|
2016-02-25 08:33:05 -05:00
|
|
|
|
(base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
|
2015-03-31 06:35:09 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; python-decorator is needed at runtime
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-decorator" ,python-decorator)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://networkx.github.io/")
|
|
|
|
|
(synopsis "Python module for creating and manipulating graphs and networks")
|
|
|
|
|
(description
|
|
|
|
|
"NetworkX is a Python package for the creation, manipulation, and study
|
|
|
|
|
of the structure, dynamics, and functions of complex networks.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-03-31 06:35:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-networkx
|
|
|
|
|
(package-with-python2 python-networkx))
|
|
|
|
|
|
2015-03-02 11:36:28 -05:00
|
|
|
|
(define-public snakemake
|
|
|
|
|
(package
|
|
|
|
|
(name "snakemake")
|
|
|
|
|
(version "3.2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/s/snakemake/snakemake-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs `(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://bitbucket.org/johanneskoester/snakemake")
|
|
|
|
|
(synopsis "Python-based execution environment for make-like workflows")
|
|
|
|
|
(description
|
|
|
|
|
"Snakemake aims to reduce the complexity of creating workflows by
|
|
|
|
|
providing a clean and modern domain specific specification language (DSL) in
|
|
|
|
|
Python style, together with a fast and comfortable execution environment.")
|
|
|
|
|
(license license:expat)))
|
2015-02-25 14:33:39 -05:00
|
|
|
|
|
2015-04-29 09:19:38 -04:00
|
|
|
|
(define-public python-seaborn
|
|
|
|
|
(package
|
|
|
|
|
(name "python-seaborn")
|
2016-04-25 08:17:14 -04:00
|
|
|
|
(version "0.7.0")
|
2015-04-29 09:19:38 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-25 08:17:14 -04:00
|
|
|
|
(uri (pypi-uri "seaborn" version))
|
2015-04-29 09:19:38 -04:00
|
|
|
|
(sha256
|
2016-04-25 08:17:14 -04:00
|
|
|
|
(base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m"))))
|
2015-04-29 09:19:38 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pandas" ,python-pandas)
|
|
|
|
|
("python-matplotlib" ,python-matplotlib)
|
|
|
|
|
("python-scipy" ,python-scipy)))
|
|
|
|
|
(home-page "http://stanford.edu/~mwaskom/software/seaborn/")
|
|
|
|
|
(synopsis "Statistical data visualization")
|
|
|
|
|
(description
|
|
|
|
|
"Seaborn is a library for making attractive and informative statistical
|
|
|
|
|
graphics in Python. It is built on top of matplotlib and tightly integrated
|
|
|
|
|
with the PyData stack, including support for numpy and pandas data structures
|
|
|
|
|
and statistical routines from scipy and statsmodels.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-04-25 08:17:14 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-seaborn))))))
|
2015-04-29 09:19:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-seaborn
|
2016-04-25 08:17:14 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(propagated-inputs `(("python2-pytz" ,python2-pytz)
|
|
|
|
|
,@(package-propagated-inputs base)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-04-29 09:19:38 -04:00
|
|
|
|
|
2015-04-29 09:03:24 -04:00
|
|
|
|
(define-public python-sympy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sympy")
|
|
|
|
|
(version "0.7.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/sympy/sympy/releases/download/sympy-"
|
|
|
|
|
version "/sympy-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://www.sympy.org/")
|
|
|
|
|
(synopsis "Python library for symbolic mathematics")
|
|
|
|
|
(description
|
|
|
|
|
"SymPy is a Python library for symbolic mathematics. It aims to become a
|
|
|
|
|
full-featured computer algebra system (CAS) while keeping the code as simple
|
|
|
|
|
as possible in order to be comprehensible and easily extensible.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-04-29 09:03:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-sympy
|
|
|
|
|
(package-with-python2 python-sympy))
|
|
|
|
|
|
2016-09-16 17:00:06 -04:00
|
|
|
|
(define-public python-q
|
|
|
|
|
(package
|
|
|
|
|
(name "python-q")
|
|
|
|
|
(version "2.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "q" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/zestyping/q")
|
|
|
|
|
(synopsis "Quick-and-dirty debugging output for tired programmers")
|
|
|
|
|
(description
|
|
|
|
|
"q is a Python module for \"print\" style of debugging Python code. It
|
|
|
|
|
provides convenient short API for print out of values, tracebacks, and
|
|
|
|
|
falling into the Python interpreter.")
|
|
|
|
|
(license license:asl2.0)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-q))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-q
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-q))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
|
|
|
|
|
2015-02-25 14:33:39 -05:00
|
|
|
|
(define-public python-testlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testlib")
|
|
|
|
|
(version "0.6.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testlib/testlib-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(alist-replace
|
|
|
|
|
'unpack
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((unzip (string-append (assoc-ref inputs "unzip")
|
|
|
|
|
"/bin/unzip"))
|
|
|
|
|
(source (assoc-ref inputs "source")))
|
|
|
|
|
(and (zero? (system* unzip source))
|
|
|
|
|
(chdir (string-append "testlib-" ,version)))))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(synopsis "Python micro test suite harness")
|
|
|
|
|
(description "A micro unittest suite harness for Python.")
|
|
|
|
|
(home-page "https://github.com/trentm/testlib")
|
2015-03-07 13:58:50 -05:00
|
|
|
|
(license license:expat)))
|
2015-02-25 14:33:39 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-testlib
|
|
|
|
|
(package-with-python2 python-testlib))
|
2015-03-17 06:31:59 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-xlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-xlib")
|
|
|
|
|
(version "0.14")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
|
|
|
|
|
"/" version "/"
|
2015-03-17 06:31:59 -04:00
|
|
|
|
"python-xlib-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ;Python 2 only
|
|
|
|
|
#:tests? #f)) ;no tests
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://python-xlib.sourceforge.net/")
|
|
|
|
|
(synopsis "Python X11 client library")
|
|
|
|
|
(description
|
|
|
|
|
"The Python X Library is intended to be a fully functional X client
|
|
|
|
|
library for Python programs. It is useful to implement low-level X clients.
|
|
|
|
|
It is written entirely in Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2+)))
|
2015-04-04 13:17:35 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-singledispatch
|
|
|
|
|
(package
|
|
|
|
|
(name "python-singledispatch")
|
|
|
|
|
(version "3.4.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-25 09:29:17 -04:00
|
|
|
|
(uri (pypi-uri "singledispatch" version))
|
2015-04-04 13:17:35 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
2016-04-25 09:29:17 -04:00
|
|
|
|
(inputs
|
2015-04-04 13:17:35 -04:00
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://docs.python.org/3/library/functools.html#functools.singledispatch")
|
|
|
|
|
(synopsis "Backport of singledispatch feature from Python 3.4")
|
|
|
|
|
(description
|
|
|
|
|
"This library brings functools.singledispatch from Python 3.4 to Python
|
|
|
|
|
2.6-3.3.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-singledispatch
|
|
|
|
|
(package-with-python2 python-singledispatch))
|
2015-04-20 01:42:53 -04:00
|
|
|
|
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(define-public python-tornado
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tornado")
|
2016-02-26 03:55:56 -05:00
|
|
|
|
(version "4.3")
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-26 03:55:56 -05:00
|
|
|
|
(uri (pypi-uri "tornado" version))
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(sha256
|
2016-02-26 03:55:56 -05:00
|
|
|
|
(base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-04-25 08:48:12 -04:00
|
|
|
|
`(("python-certifi" ,python-certifi)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-backports-abc" ,python-backports-abc)))
|
2015-11-18 09:44:37 -05:00
|
|
|
|
(home-page "http://www.tornadoweb.org/")
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(synopsis "Python web framework and asynchronous networking library")
|
|
|
|
|
(description
|
|
|
|
|
"Tornado is a Python web framework and asynchronous networking library,
|
|
|
|
|
originally developed at FriendFeed. By using non-blocking network I/O,
|
|
|
|
|
Tornado can scale to tens of thousands of open connections, making it ideal
|
|
|
|
|
for long polling, WebSockets, and other applications that require a long-lived
|
|
|
|
|
connection to each user.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-04-25 08:48:12 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-tornado))))))
|
2015-04-28 04:18:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-tornado
|
2016-04-25 08:48:12 -04:00
|
|
|
|
(let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
|
2015-04-28 04:18:22 -04:00
|
|
|
|
(package (inherit tornado)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-backport-ssl-match-hostname"
|
|
|
|
|
,python2-backport-ssl-match-hostname)
|
2016-04-25 08:48:12 -04:00
|
|
|
|
("python2-singledispatch" ,python2-singledispatch)
|
|
|
|
|
,@(package-inputs tornado)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs tornado))))))
|
2015-04-28 04:18:22 -04:00
|
|
|
|
|
2016-02-26 04:03:11 -05:00
|
|
|
|
;; the python- version can be removed with python-3.5
|
|
|
|
|
(define-public python-backports-abc
|
|
|
|
|
(package
|
|
|
|
|
(name "python-backports-abc")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "backports_abc" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/cython/backports_abc")
|
2016-07-29 04:23:52 -04:00
|
|
|
|
(synopsis "Backport of additions to the 'collections.abc' module")
|
2016-02-26 04:03:11 -05:00
|
|
|
|
(description
|
|
|
|
|
"Python-backports-abc provides a backport of additions to the
|
|
|
|
|
'collections.abc' module in Python-3.5.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2016-02-26 04:03:11 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-backports-abc
|
|
|
|
|
(package-with-python2 python-backports-abc))
|
|
|
|
|
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(define-public python-waf
|
|
|
|
|
(package
|
|
|
|
|
(name "python-waf")
|
2016-10-29 15:54:43 -04:00
|
|
|
|
(version "1.9.5")
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-10-30 04:43:53 -04:00
|
|
|
|
(uri (string-append "https://waf.io/"
|
2015-04-20 01:42:53 -04:00
|
|
|
|
"waf-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-29 15:54:43 -04:00
|
|
|
|
"1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg"))))
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'build
|
2016-10-29 15:54:43 -04:00
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "python" "waf-light" "configure" "build"))))
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(replace 'check
|
2016-10-29 15:54:43 -04:00
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "python" "waf" "--version"))))
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(replace 'install
|
2016-10-29 15:54:43 -04:00
|
|
|
|
(lambda _
|
|
|
|
|
(copy-file "waf" %output))))))
|
|
|
|
|
(home-page "http://waf.io/")
|
2015-04-20 01:42:53 -04:00
|
|
|
|
(synopsis "Python-based build system")
|
|
|
|
|
(description
|
|
|
|
|
"Waf is a Python-based framework for configuring, compiling and installing
|
|
|
|
|
applications.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-04-20 01:42:53 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-waf
|
|
|
|
|
(package-with-python2 python-waf))
|
2015-05-21 09:20:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyzmq
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyzmq")
|
2015-12-30 09:23:01 -05:00
|
|
|
|
(version "15.1.0")
|
2015-05-21 09:20:45 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 09:23:01 -05:00
|
|
|
|
(uri (pypi-uri "pyzmq" version))
|
2015-05-21 09:20:45 -04:00
|
|
|
|
(sha256
|
2015-12-30 09:23:01 -05:00
|
|
|
|
(base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
|
2015-05-21 09:20:45 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
|
|
|
|
|
;; FIXME: You must build pyzmq with 'python setup.py build_ext
|
|
|
|
|
;; --inplace' for 'python setup.py test' to work.
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("zeromq" ,zeromq)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/zeromq/pyzmq")
|
|
|
|
|
(synopsis "Python bindings for 0MQ")
|
|
|
|
|
(description
|
|
|
|
|
"PyZMQ is the official Python binding for the ZeroMQ messaging library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-4)))
|
2015-05-21 09:20:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyzmq
|
|
|
|
|
(package-with-python2 python-pyzmq))
|
2015-06-26 16:31:41 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pep8
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pep8")
|
2016-02-25 09:57:10 -05:00
|
|
|
|
(version "1.7.0")
|
2015-06-26 16:31:41 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 09:57:10 -05:00
|
|
|
|
(uri (pypi-uri "pep8" version))
|
2015-06-26 16:31:41 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 09:57:10 -05:00
|
|
|
|
"002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
|
2015-06-26 16:31:41 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pep8.readthedocs.org/")
|
|
|
|
|
(synopsis "Python style guide checker")
|
|
|
|
|
(description
|
|
|
|
|
"This tools checks Python code against some of the style conventions in
|
|
|
|
|
PEP 8.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pep8
|
|
|
|
|
(package-with-python2 python-pep8))
|
2015-06-26 18:29:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyflakes
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyflakes")
|
2015-12-30 09:26:02 -05:00
|
|
|
|
(version "1.0.0")
|
2015-06-26 18:29:29 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 09:26:02 -05:00
|
|
|
|
(uri (pypi-uri "pyflakes" version))
|
2015-06-26 18:29:29 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 09:26:02 -05:00
|
|
|
|
"0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
|
2015-06-26 18:29:29 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/pyflakes/pyflakes")
|
|
|
|
|
(synopsis "Passive checker of Python programs")
|
|
|
|
|
(description
|
|
|
|
|
"Pyflakes statically checks Python source code for common errors.")
|
|
|
|
|
(license license:expat)))
|
2015-06-26 18:30:07 -04:00
|
|
|
|
|
2015-09-16 17:24:36 -04:00
|
|
|
|
(define-public python2-pyflakes
|
|
|
|
|
(package-with-python2 python-pyflakes))
|
|
|
|
|
|
2015-06-26 18:30:07 -04:00
|
|
|
|
(define-public python-mccabe
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mccabe")
|
2016-02-25 13:19:43 -05:00
|
|
|
|
(version "0.4.0")
|
2015-06-26 18:30:07 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 13:19:43 -05:00
|
|
|
|
(uri (pypi-uri "mccabe" version))
|
2015-06-26 18:30:07 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 13:19:43 -05:00
|
|
|
|
"0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
|
2015-06-26 18:30:07 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
2016-02-25 13:19:43 -05:00
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-runner" ,python-pytest-runner)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
2015-06-26 18:30:07 -04:00
|
|
|
|
(home-page "https://github.com/flintwork/mccabe")
|
|
|
|
|
(synopsis "McCabe checker, plugin for flake8")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a Flake8 plug-in to compute the McCabe cyclomatic
|
|
|
|
|
complexity of Python source code.")
|
2015-06-29 16:31:01 -04:00
|
|
|
|
(license license:expat)))
|
2015-06-26 18:30:07 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mccabe
|
|
|
|
|
(package-with-python2 python-mccabe))
|
2015-06-26 18:18:55 -04:00
|
|
|
|
|
2015-10-10 23:20:08 -04:00
|
|
|
|
(define-public python-mccabe-0.2.1
|
|
|
|
|
(package (inherit python-mccabe)
|
|
|
|
|
(version "0.2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "mccabe" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 13:19:43 -05:00
|
|
|
|
"0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 08:37:28 -05:00
|
|
|
|
(inputs `(("python-setuptools" ,python-setuptools)))))
|
2015-10-10 23:20:08 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mccabe-0.2.1
|
|
|
|
|
(package-with-python2 python-mccabe-0.2.1))
|
|
|
|
|
|
2015-06-26 18:18:55 -04:00
|
|
|
|
;; Flake8 2.4.1 requires an older version of pep8.
|
|
|
|
|
;; This should be removed ASAP.
|
|
|
|
|
(define-public python-pep8-1.5.7
|
|
|
|
|
(package (inherit python-pep8)
|
|
|
|
|
(version "1.5.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pep8/pep8-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pep8-1.5.7
|
|
|
|
|
(package-with-python2 python-pep8-1.5.7))
|
|
|
|
|
|
|
|
|
|
;; Flake8 2.4.1 requires an older version of pyflakes.
|
|
|
|
|
;; This should be removed ASAP.
|
|
|
|
|
(define-public python-pyflakes-0.8.1
|
|
|
|
|
(package (inherit python-pyflakes)
|
|
|
|
|
(version "0.8.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyflakes-0.8.1
|
2015-09-16 17:24:36 -04:00
|
|
|
|
(package-with-python2 python-pyflakes-0.8.1))
|
2015-06-26 18:18:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-flake8
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flake8")
|
2016-02-25 13:07:37 -05:00
|
|
|
|
(version "2.5.4")
|
2015-06-26 18:18:55 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 09:29:19 -05:00
|
|
|
|
(uri (pypi-uri "flake8" version))
|
2015-06-26 18:18:55 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 13:07:37 -05:00
|
|
|
|
"0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
|
2015-06-26 18:18:55 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
2016-02-25 13:07:37 -05:00
|
|
|
|
("python-pep8" ,python-pep8)
|
|
|
|
|
("python-pyflakes" ,python-pyflakes)
|
2015-06-26 18:18:55 -04:00
|
|
|
|
("python-mccabe" ,python-mccabe)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "https://gitlab.com/pycqa/flake8")
|
|
|
|
|
(synopsis
|
|
|
|
|
"The modular source code checker: pep8, pyflakes and co")
|
|
|
|
|
(description
|
|
|
|
|
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flake8
|
|
|
|
|
(package-with-python2 python-flake8))
|
2015-07-23 05:06:35 -04:00
|
|
|
|
|
2015-10-10 23:21:12 -04:00
|
|
|
|
;; This will only be needed by the python-hacking package and will not be
|
|
|
|
|
;; necessary once python-hacking > 0.10.2 is released.
|
|
|
|
|
(define-public python-flake8-2.2.4
|
|
|
|
|
(package (inherit python-flake8)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pep8" ,python-pep8-1.5.7)
|
|
|
|
|
("python-pyflakes" ,python-pyflakes-0.8.1)
|
|
|
|
|
("python-mccabe" ,python-mccabe-0.2.1)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(version "2.2.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "flake8" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flake8-2.2.4
|
|
|
|
|
(package-with-python2 python-flake8-2.2.4))
|
|
|
|
|
|
2015-07-23 05:06:35 -04:00
|
|
|
|
(define-public python-mistune
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mistune")
|
|
|
|
|
(version "0.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/m/mistune/mistune-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-cython" ,python-cython)))
|
|
|
|
|
(home-page "https://github.com/lepture/mistune")
|
|
|
|
|
(synopsis "Markdown parser in pure Python")
|
|
|
|
|
(description "This package provides a fast markdown parser in pure
|
|
|
|
|
Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-07-23 05:06:35 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-mistune
|
|
|
|
|
(package-with-python2 python-mistune))
|
2015-07-23 05:46:15 -04:00
|
|
|
|
|
2016-01-01 15:28:46 -05:00
|
|
|
|
(define-public python-markdown
|
|
|
|
|
(package
|
|
|
|
|
(name "python-markdown")
|
|
|
|
|
(version "2.6.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Markdown" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "python" "run-tests.py")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-pyyaml" ,python-pyyaml)))
|
|
|
|
|
(home-page "https://pythonhosted.org/Markdown/")
|
|
|
|
|
(synopsis "Python implementation of Markdown")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a Python implementation of John Gruber's
|
|
|
|
|
Markdown. The library features international input, various Markdown
|
|
|
|
|
extensions, and several HTML output formats. A command line wrapper
|
|
|
|
|
markdown_py is also provided to convert Markdown files to HTML.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-01-01 15:28:46 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-markdown
|
|
|
|
|
(package-with-python2 python-markdown))
|
|
|
|
|
|
2015-07-23 05:46:15 -04:00
|
|
|
|
(define-public python-ptyprocess
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ptyprocess")
|
|
|
|
|
(version "0.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "nosetests")))))))
|
|
|
|
|
(home-page "https://github.com/pexpect/ptyprocess")
|
|
|
|
|
(synopsis "Run a subprocess in a pseudo terminal")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a Python library used to launch a subprocess in a
|
|
|
|
|
pseudo terminal (pty), and interact with both the process and its pty.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:isc)))
|
2015-07-23 05:46:15 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-ptyprocess
|
|
|
|
|
(package-with-python2 python-ptyprocess))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-terminado
|
|
|
|
|
(package
|
|
|
|
|
(name "python-terminado")
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(version "0.6")
|
2015-07-23 06:36:37 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(uri (pypi-uri "terminado" version))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-25 10:19:54 -04:00
|
|
|
|
"09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-tornado" ,python-tornado)
|
|
|
|
|
("python-ptyprocess" ,python-ptyprocess)))
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "nosetests")))))))
|
|
|
|
|
(home-page "https://github.com/takluyver/terminado")
|
|
|
|
|
(synopsis "Terminals served to term.js using Tornado websockets")
|
|
|
|
|
(description "This package provides a Tornado websocket backend for the
|
|
|
|
|
term.js Javascript terminal emulator library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-terminado))))))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-terminado
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
|
2015-07-23 06:36:37 -04:00
|
|
|
|
(package (inherit terminado)
|
2016-04-25 10:19:54 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-backport-ssl-match-hostname"
|
|
|
|
|
,python2-backport-ssl-match-hostname)
|
|
|
|
|
,@(package-propagated-inputs terminado)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs terminado))))))
|
2015-08-26 17:24:16 -04:00
|
|
|
|
|
2015-08-21 23:32:30 -04:00
|
|
|
|
(define-public python-fonttools
|
|
|
|
|
(package
|
|
|
|
|
(name "python-fonttools")
|
|
|
|
|
(version "2.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/F/FontTools/"
|
|
|
|
|
"fonttools-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:test-target "check"))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; XXX: module not found if setuptools is not available.
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/behdad/fonttools")
|
|
|
|
|
(synopsis "Tools to manipulate font files")
|
|
|
|
|
(description
|
|
|
|
|
"FontTools/TTX is a library to manipulate font files from Python. It
|
|
|
|
|
supports reading and writinfg of TrueType/OpenType fonts, reading and writing
|
|
|
|
|
of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
|
|
|
|
|
also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
|
|
|
|
|
from an XML-based format.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (license:non-copyleft
|
|
|
|
|
"file://LICENSE.txt"
|
|
|
|
|
"See LICENSE.txt in the distribution."))))
|
2015-08-21 23:32:30 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-fonttools
|
|
|
|
|
(package-with-python2 python-fonttools))
|
2015-09-13 15:28:01 -04:00
|
|
|
|
|
2015-08-26 17:24:16 -04:00
|
|
|
|
(define-public python-ly
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ly")
|
2016-04-27 04:38:55 -04:00
|
|
|
|
(version "0.9.4")
|
2015-08-26 17:24:16 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-27 04:38:55 -04:00
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/57/4f/"
|
|
|
|
|
"889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9"
|
|
|
|
|
"/python-ly-" version ".tar.gz"))
|
2015-08-26 17:24:16 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-27 04:38:55 -04:00
|
|
|
|
"0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62"))))
|
2015-08-26 17:24:16 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "Tool and library for manipulating LilyPond files")
|
|
|
|
|
(description "This package provides a Python library to parse, manipulate
|
|
|
|
|
or create documents in LilyPond format. A command line program ly is also
|
|
|
|
|
provided that can be used to do various manipulations with LilyPond files.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/python-ly")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2+)))
|
2015-08-16 10:18:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-appdirs
|
|
|
|
|
(package
|
|
|
|
|
(name "python-appdirs")
|
|
|
|
|
(version "1.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/a/appdirs/appdirs-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/ActiveState/appdirs")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Determine platform-specific dirs, e.g. a \"user data dir\"")
|
|
|
|
|
(description
|
|
|
|
|
"This module provides a portable way of finding out where user data
|
|
|
|
|
should be stored on various operating systems.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-appdirs
|
|
|
|
|
(package-with-python2 python-appdirs))
|
2015-09-01 17:33:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-llfuse
|
|
|
|
|
(package
|
|
|
|
|
(name "python-llfuse")
|
2016-08-08 01:41:07 -04:00
|
|
|
|
(version "1.1.1")
|
2015-09-01 17:33:51 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://bitbucket.org/nikratio/python-llfuse/downloads/"
|
|
|
|
|
"llfuse-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-08 01:41:07 -04:00
|
|
|
|
"0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v"))))
|
2015-09-01 17:33:51 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fuse" ,fuse)
|
|
|
|
|
("attr" ,attr)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "Python bindings for FUSE")
|
|
|
|
|
(description
|
|
|
|
|
"Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
|
|
|
|
|
(home-page "https://bitbucket.org/nikratio/python-llfuse/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.0+)
|
2016-03-14 19:34:24 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-llfuse))))))
|
2015-09-01 17:33:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-llfuse
|
2016-03-14 19:34:24 -04:00
|
|
|
|
(package (inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-llfuse)))
|
|
|
|
|
(propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
|
|
|
|
|
|
|
|
|
|
;; For attic-0.16
|
|
|
|
|
(define-public python-llfuse-0.41
|
|
|
|
|
(package (inherit python-llfuse)
|
2016-03-14 19:34:26 -04:00
|
|
|
|
(version "0.41.1")
|
2016-03-14 19:34:24 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://bitbucket.org/nikratio/python-llfuse/downloads/"
|
|
|
|
|
"llfuse-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-14 19:34:26 -04:00
|
|
|
|
"1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
|
2016-03-14 19:34:24 -04:00
|
|
|
|
;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
|
|
|
|
|
;; licensed. The rest of the package is licensed under LGPL2.0 or later.
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:expat license:lgpl2.0+))))
|
2015-09-01 17:33:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-msgpack
|
|
|
|
|
(package
|
|
|
|
|
(name "python-msgpack")
|
2016-08-08 01:41:46 -04:00
|
|
|
|
(version "0.4.8")
|
2015-09-01 17:33:52 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-03-14 19:34:21 -04:00
|
|
|
|
(uri (pypi-uri "msgpack-python" version))
|
2015-09-01 17:33:52 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-08 01:41:46 -04:00
|
|
|
|
"11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs"))))
|
2015-09-01 17:33:52 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(synopsis "MessagePack (de)serializer")
|
|
|
|
|
(description "MessagePack is a fast, compact binary serialization format,
|
|
|
|
|
suitable for similar data to JSON. This package provides CPython bindings for
|
|
|
|
|
reading and writing MessagePack data.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/msgpack-python/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-03-14 19:34:22 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-msgpack))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-msgpack
|
|
|
|
|
(package (inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-msgpack)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))))
|
2015-09-01 17:33:52 -04:00
|
|
|
|
|
2015-09-07 18:22:49 -04:00
|
|
|
|
(define-public python-netaddr
|
|
|
|
|
(package
|
|
|
|
|
(name "python-netaddr")
|
|
|
|
|
(version "0.7.18")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/n/netaddr/netaddr-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ;; No tests.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/drkjam/netaddr/")
|
|
|
|
|
(synopsis "Pythonic manipulation of network addresses")
|
|
|
|
|
(description
|
|
|
|
|
"A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
|
|
|
|
|
and MAC network addresses.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-07 18:22:49 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-netaddr
|
|
|
|
|
(package-with-python2 python-netaddr))
|
2015-09-08 18:26:26 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-wrapt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wrapt")
|
|
|
|
|
(version "1.10.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/w/wrapt/wrapt-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; Tests are not included in the tarball, they are only available in the
|
|
|
|
|
;; git repository.
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/GrahamDumpleton/wrapt")
|
|
|
|
|
(synopsis "Module for decorators, wrappers and monkey patching")
|
|
|
|
|
(description
|
|
|
|
|
"The aim of the wrapt module is to provide a transparent object proxy for
|
|
|
|
|
Python, which can be used as the basis for the construction of function
|
|
|
|
|
wrappers and decorator functions.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2015-09-08 18:26:26 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-wrapt
|
|
|
|
|
(package-with-python2 python-wrapt))
|
2015-09-08 18:44:14 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-iso8601
|
|
|
|
|
(package
|
|
|
|
|
(name "python-iso8601")
|
2016-07-24 04:22:13 -04:00
|
|
|
|
(version "0.1.11")
|
2015-09-08 18:44:14 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-24 04:22:13 -04:00
|
|
|
|
(uri (pypi-uri "iso8601" version))
|
2015-09-08 18:44:14 -04:00
|
|
|
|
(sha256
|
2016-07-24 04:22:13 -04:00
|
|
|
|
(base32
|
|
|
|
|
"0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8"))))
|
2015-09-08 18:44:14 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://bitbucket.org/micktwomey/pyiso8601")
|
|
|
|
|
(synopsis "Module to parse ISO 8601 dates")
|
|
|
|
|
(description
|
|
|
|
|
"This module parses the most common forms of ISO 8601 date strings (e.g.
|
|
|
|
|
@code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-iso8601
|
|
|
|
|
(package-with-python2 python-iso8601))
|
2015-09-08 18:51:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-monotonic
|
|
|
|
|
(package
|
|
|
|
|
(name "python-monotonic")
|
|
|
|
|
(version "0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/m/monotonic/monotonic-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/atdt/monotonic")
|
|
|
|
|
(synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
|
|
|
|
|
(description
|
|
|
|
|
"This module provides a monotonic() function which returns the value (in
|
|
|
|
|
fractional seconds) of a clock which never goes backwards.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-09-08 18:51:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-monotonic
|
|
|
|
|
(package-with-python2 python-monotonic))
|
2015-09-14 16:16:53 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-webob
|
|
|
|
|
(package
|
|
|
|
|
(name "python-webob")
|
2015-12-30 09:36:16 -05:00
|
|
|
|
(version "1.5.1")
|
2015-09-14 16:16:53 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 09:36:16 -05:00
|
|
|
|
(uri (pypi-uri "WebOb" version))
|
2015-09-14 16:16:53 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 09:36:16 -05:00
|
|
|
|
"02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
|
2015-09-14 16:16:53 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://webob.org/")
|
|
|
|
|
(synopsis "WSGI request and response object")
|
|
|
|
|
(description
|
|
|
|
|
"WebOb provides wrappers around the WSGI request environment, and an
|
|
|
|
|
object to help create WSGI responses.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-webob
|
|
|
|
|
(package-with-python2 python-webob))
|
2015-09-16 17:02:11 -04:00
|
|
|
|
|
2015-09-19 09:35:18 -04:00
|
|
|
|
(define-public python-xlrd
|
|
|
|
|
(package
|
|
|
|
|
(name "python-xlrd")
|
2016-09-23 09:37:02 -04:00
|
|
|
|
(version "1.0.0")
|
2015-09-19 09:35:18 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-10-08 16:41:01 -04:00
|
|
|
|
(uri (pypi-uri "xlrd" version))
|
2015-09-19 09:35:18 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-23 09:37:02 -04:00
|
|
|
|
"0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g"))))
|
2015-09-19 09:35:18 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2016-09-23 09:37:02 -04:00
|
|
|
|
;; Current test in setup.py does not work as of 1.0.0, so use nose to
|
2015-09-19 09:35:18 -04:00
|
|
|
|
;; run tests instead for now.
|
|
|
|
|
(replace 'check (lambda _ (zero? (system* "nosetests")))))))
|
|
|
|
|
(native-inputs `(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://www.python-excel.org/")
|
|
|
|
|
(synopsis "Library for extracting data from Excel files")
|
|
|
|
|
(description "This packages provides a library to extract data from
|
2016-08-22 14:14:17 -04:00
|
|
|
|
spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
|
2015-09-19 09:35:18 -04:00
|
|
|
|
@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
|
|
|
|
|
Unicode-aware. It is not intended as an end-user tool.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-19 09:35:18 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-xlrd
|
|
|
|
|
(package-with-python2 python-xlrd))
|
|
|
|
|
|
2015-09-16 17:02:11 -04:00
|
|
|
|
(define-public python-prettytable
|
|
|
|
|
(package
|
|
|
|
|
(name "python-prettytable")
|
|
|
|
|
(version "0.7.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/P/PrettyTable/"
|
|
|
|
|
"prettytable-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://code.google.com/p/prettytable/")
|
|
|
|
|
(synopsis "Display tabular data in an ASCII table format")
|
|
|
|
|
(description
|
|
|
|
|
"A library designed to represent tabular data in visually appealing ASCII
|
|
|
|
|
tables. PrettyTable allows for selection of which columns are to be printed,
|
|
|
|
|
independent alignment of columns (left or right justified or centred) and
|
|
|
|
|
printing of sub-tables by specifying a row range.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-16 17:02:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-prettytable
|
|
|
|
|
(package-with-python2 python-prettytable))
|
2015-09-21 16:43:24 -04:00
|
|
|
|
|
2016-04-21 11:27:42 -04:00
|
|
|
|
(define-public python-tables
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tables")
|
|
|
|
|
(version "3.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "tables" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; FIXME: python-build-system does not pass configure-flags to "build"
|
|
|
|
|
;; or "check", so we must override the build and check phases.
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'use-gcc
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("compiler = new_compiler\\(\\)" line)
|
|
|
|
|
(string-append line
|
|
|
|
|
"\ncompiler.set_executables(compiler='gcc',"
|
|
|
|
|
"compiler_so='gcc',"
|
|
|
|
|
"linker_exe='gcc',"
|
|
|
|
|
"linker_so='gcc -shared')")))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(zero? (system* "python" "setup.py" "build"
|
|
|
|
|
(string-append "--hdf5="
|
|
|
|
|
(assoc-ref inputs "hdf5"))))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(zero? (system* "python" "setup.py" "check"
|
|
|
|
|
(string-append "--hdf5="
|
|
|
|
|
(assoc-ref inputs "hdf5")))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-numexpr" ,python-numexpr)
|
|
|
|
|
("python-numpy" ,python-numpy)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-cython" ,python-cython)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("hdf5" ,hdf5)
|
|
|
|
|
("bzip2" ,bzip2)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "http://www.pytables.org/")
|
|
|
|
|
(synopsis "Hierarchical datasets for Python")
|
|
|
|
|
(description "PyTables is a package for managing hierarchical datasets and
|
|
|
|
|
designed to efficently cope with extremely large amounts of data.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-04-21 11:27:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-tables
|
|
|
|
|
(package-with-python2 python-tables))
|
|
|
|
|
|
2015-09-21 16:43:24 -04:00
|
|
|
|
(define-public python-pyasn1
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyasn1")
|
2016-10-07 01:30:09 -04:00
|
|
|
|
(version "0.1.9")
|
2015-09-21 16:43:24 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-10-07 01:30:09 -04:00
|
|
|
|
(uri (pypi-uri "pyasn1" version))
|
2015-09-21 16:43:24 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-07 01:30:09 -04:00
|
|
|
|
"0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45"))))
|
2015-09-21 16:43:24 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://pyasn1.sourceforge.net/")
|
|
|
|
|
(synopsis "ASN.1 types and codecs")
|
|
|
|
|
(description
|
|
|
|
|
"This is an implementation of ASN.1 types and codecs in Python. It is
|
|
|
|
|
suitable for a wide range of protocols based on the ASN.1 specification.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2015-09-21 16:43:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyasn1
|
|
|
|
|
(package-with-python2 python-pyasn1))
|
2015-09-21 16:44:02 -04:00
|
|
|
|
|
2015-11-24 11:25:36 -05:00
|
|
|
|
(define-public python-pyasn1-modules
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyasn1-modules")
|
|
|
|
|
(version "0.0.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyasn1-modules" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyasn1" ,python-pyasn1)))
|
|
|
|
|
(home-page "http://sourceforge.net/projects/pyasn1/")
|
|
|
|
|
(synopsis "ASN.1 codec implementations")
|
|
|
|
|
(description
|
|
|
|
|
"Pyasn1-modules is a collection of Python modules providing ASN.1 types and
|
|
|
|
|
implementations of ASN.1-based codecs and protocols.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-11-24 11:25:36 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyasn1-modules
|
|
|
|
|
(package-with-python2 python-pyasn1-modules))
|
|
|
|
|
|
2016-08-05 13:35:34 -04:00
|
|
|
|
(define-public python-ipaddress
|
2015-09-21 16:44:02 -04:00
|
|
|
|
(package
|
2016-08-05 13:35:34 -04:00
|
|
|
|
(name "python-ipaddress")
|
|
|
|
|
(version "1.0.16")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ipaddress" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
|
2015-09-21 16:44:02 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/phihag/ipaddress")
|
|
|
|
|
(synopsis "IP address manipulation library")
|
|
|
|
|
(description
|
2016-08-05 13:35:34 -04:00
|
|
|
|
"This package provides a fast, lightweight IPv4/IPv6 manipulation library
|
|
|
|
|
in Python. This library is used to create, poke at, and manipulate IPv4 and
|
|
|
|
|
IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
|
|
|
|
|
module to older versions of Python.")
|
|
|
|
|
(license license:psfl)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-ipaddress))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ipaddress
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-ipaddress))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-09-25 04:04:22 -04:00
|
|
|
|
|
2016-05-29 13:00:35 -04:00
|
|
|
|
(define-public python2-ipaddr
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-ipaddr")
|
|
|
|
|
(version "2.1.11")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ipaddr" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ;version 2 only
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* _
|
|
|
|
|
(zero? (system* "python" "ipaddr_test.py")))))))
|
|
|
|
|
(home-page "https://github.com/google/ipaddr-py")
|
|
|
|
|
(synopsis "IP address manipulation library")
|
|
|
|
|
(description
|
|
|
|
|
"Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
|
|
|
|
|
IPv6 addresses and networks.
|
|
|
|
|
|
|
|
|
|
For new implementations you may prefer to use the standard module
|
|
|
|
|
@code{ipaddress}, which was introduced in Python 3.3 and backported to older
|
|
|
|
|
versions of Python.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-05-29 13:00:35 -04:00
|
|
|
|
|
2015-09-25 04:04:22 -04:00
|
|
|
|
(define-public python-idna
|
|
|
|
|
(package
|
|
|
|
|
(name "python-idna")
|
|
|
|
|
(version "2.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/i/"
|
|
|
|
|
"idna/idna-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/kjd/idna")
|
|
|
|
|
(synopsis "Internationalized domain names in applications")
|
|
|
|
|
(description
|
|
|
|
|
"This is a library to support the Internationalised Domain Names in
|
|
|
|
|
Applications (IDNA) protocol as specified in RFC 5891. This version of the
|
|
|
|
|
protocol is often referred to as “IDNA2008” and can produce different results
|
|
|
|
|
from the earlier standard from 2003. The library is also intended to act as a
|
|
|
|
|
suitable drop-in replacement for the “encodings.idna” module that comes with
|
|
|
|
|
the Python standard library but currently only supports the older 2003
|
|
|
|
|
specification.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-4)))
|
2015-09-25 04:04:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-idna
|
|
|
|
|
(package-with-python2 python-idna))
|
2015-09-21 16:45:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pretend
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pretend")
|
|
|
|
|
(version "1.0.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/p/"
|
|
|
|
|
"pretend/pretend-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/alex/pretend")
|
|
|
|
|
(synopsis "Library for stubbing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Pretend is a library to make stubbing with Python easier. Stubbing is a
|
|
|
|
|
technique for writing tests. You may hear the term mixed up with mocks,
|
|
|
|
|
fakes, or doubles. Basically, a stub is an object that returns pre-canned
|
|
|
|
|
responses, rather than doing any computation.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-09-21 16:45:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pretend
|
|
|
|
|
(package-with-python2 python-pretend))
|
2015-09-21 16:45:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-cryptography-vectors
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cryptography-vectors")
|
2016-11-08 09:46:36 -05:00
|
|
|
|
(version "1.5.3")
|
2015-09-21 16:45:42 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-01 19:57:25 -04:00
|
|
|
|
(uri (pypi-uri "cryptography_vectors" version))
|
2015-09-21 16:45:42 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-08 09:46:36 -05:00
|
|
|
|
"1bnd1bricyhxa27rhr0ljk0kacxzvysd3ar2j2hlv13a2k6zw4z5"))))
|
2015-09-21 16:45:42 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/pyca/cryptography")
|
2016-07-29 04:23:52 -04:00
|
|
|
|
(synopsis "Test vectors for the cryptography package")
|
2015-09-21 16:45:42 -04:00
|
|
|
|
(description
|
|
|
|
|
"This package contains test vectors for the cryptography package.")
|
|
|
|
|
;; Distributed under either BSD-3 or ASL2.0
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0))))
|
2015-09-21 16:45:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cryptography-vectors
|
|
|
|
|
(package-with-python2 python-cryptography-vectors))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-cryptography
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cryptography")
|
2016-11-08 09:46:36 -05:00
|
|
|
|
(version "1.5.3")
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-01 19:57:25 -04:00
|
|
|
|
(uri (pypi-uri "cryptography" version))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-08 09:46:36 -05:00
|
|
|
|
"1raanvkdfw5ai56ymlij6ghc4k126fs7jx948ig7yn4vj6ndv0ng"))))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-10-14 16:55:02 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'disable-failing-test
|
|
|
|
|
(lambda _
|
|
|
|
|
;; This test is known to fail with OpenSSL >= 1.0.2i and older
|
|
|
|
|
;; versions of python-cryptography:
|
|
|
|
|
;; https://github.com/pyca/cryptography/issues/3196
|
|
|
|
|
;; TODO: Try re-enabling the test when upgrading
|
|
|
|
|
;; python-cryptography.
|
|
|
|
|
(substitute* "tests/hazmat/backends/test_openssl.py"
|
|
|
|
|
(("def test_numeric_string_x509_name_entry")
|
|
|
|
|
"@pytest.mark.xfail\n def test_numeric_string_x509_name_entry"))
|
|
|
|
|
#t)))))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cffi" ,python-cffi)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-pyasn1" ,python-pyasn1)
|
|
|
|
|
("python-idna" ,python-idna)
|
|
|
|
|
("python-iso8601" ,python-iso8601)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cryptography-vectors" ,python-cryptography-vectors)
|
2016-02-07 07:01:45 -05:00
|
|
|
|
("python-hypothesis" ,python-hypothesis)
|
2015-09-21 16:46:11 -04:00
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pretend" ,python-pretend)
|
2016-02-07 07:01:45 -05:00
|
|
|
|
("python-pyasn1" ,python-pyasn1)
|
|
|
|
|
("python-pyasn1-modules" ,python-pyasn1-modules)
|
2016-11-08 09:46:36 -05:00
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-pytest" ,python-pytest-2.9.2)))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(home-page "https://github.com/pyca/cryptography")
|
|
|
|
|
(synopsis "Cryptographic recipes and primitives for Python")
|
|
|
|
|
(description
|
|
|
|
|
"cryptography is a package which provides cryptographic recipes and
|
|
|
|
|
primitives to Python developers. It aims to be the “cryptographic standard
|
|
|
|
|
library” for Python. The package includes both high level recipes, and low
|
|
|
|
|
level interfaces to common cryptographic algorithms such as symmetric ciphers,
|
|
|
|
|
message digests and key derivation functions.")
|
|
|
|
|
;; Distributed under either BSD-3 or ASL2.0
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:bsd-3 license:asl2.0))
|
2016-02-10 21:48:45 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-cryptography))))))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cryptography
|
2016-02-10 21:48:45 -05:00
|
|
|
|
(let ((crypto (package-with-python2
|
|
|
|
|
(strip-python2-variant python-cryptography))))
|
2015-09-21 16:46:11 -04:00
|
|
|
|
(package (inherit crypto)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-ipaddress" ,python2-ipaddress)
|
2016-02-07 07:01:45 -05:00
|
|
|
|
("python2-backport-ssl-match-hostname"
|
|
|
|
|
,python2-backport-ssl-match-hostname)
|
2016-02-18 12:59:18 -05:00
|
|
|
|
("python2-enum34" ,python2-enum34)
|
2015-09-21 16:46:11 -04:00
|
|
|
|
,@(package-propagated-inputs crypto))))))
|
2015-09-25 08:26:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyopenssl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyopenssl")
|
2016-10-07 01:33:59 -04:00
|
|
|
|
(version "16.1.0")
|
2015-09-25 08:26:51 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-10-07 01:33:59 -04:00
|
|
|
|
(uri (pypi-uri "pyOpenSSL" version))
|
2015-09-25 08:26:51 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-07 01:33:59 -04:00
|
|
|
|
"0prm06zz7hl6bk5s2lqzw25lq6smayfv2fgiliw2rbqxlyiavxw8"))))
|
2015-09-25 08:26:51 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cryptography" ,python-cryptography)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/pyca/pyopenssl")
|
|
|
|
|
(synopsis "Python wrapper module around the OpenSSL library")
|
|
|
|
|
(description
|
|
|
|
|
"PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
|
|
|
|
|
library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-09-25 08:26:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyopenssl
|
2016-02-10 21:48:45 -05:00
|
|
|
|
(package-with-python2 python-pyopenssl))
|
2015-09-20 20:56:26 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pip
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pip")
|
2016-02-07 06:38:16 -05:00
|
|
|
|
(version "8.0.2")
|
2015-09-20 20:56:26 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-02-07 06:38:16 -05:00
|
|
|
|
(uri (pypi-uri "pip" version))
|
2015-09-20 20:56:26 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-07 06:38:16 -05:00
|
|
|
|
"08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
|
2015-09-20 20:56:26 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-virtualenv" ,python-virtualenv)
|
|
|
|
|
;; Tests
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-scripttest" ,python-scripttest)))
|
|
|
|
|
(home-page "https://pip.pypa.io/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Package manager for Python software")
|
|
|
|
|
(description
|
|
|
|
|
"Pip is a package manager for Python software, that finds packages on the
|
|
|
|
|
Python Package Index (PyPI).")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pip
|
|
|
|
|
(package-with-python2 python-pip))
|
2015-10-15 16:12:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-tlsh
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tlsh")
|
2015-12-30 09:54:04 -05:00
|
|
|
|
(version "3.4.4")
|
2015-10-15 16:12:38 -04:00
|
|
|
|
(home-page "https://github.com/trendmicro/tlsh")
|
|
|
|
|
(source (origin
|
2015-12-30 09:54:04 -05:00
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
2015-10-15 16:12:38 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 09:54:04 -05:00
|
|
|
|
"00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))))
|
2015-10-15 16:12:38 -04:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:out-of-source? #f
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace
|
|
|
|
|
'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Build and install the Python bindings. The underlying
|
|
|
|
|
;; C++ library is apparently not meant to be installed.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(with-directory-excursion "py_ext"
|
|
|
|
|
(and (system* "python" "setup.py" "build")
|
|
|
|
|
(system* "python" "setup.py" "install"
|
|
|
|
|
(string-append "--prefix=" out))))))))))
|
|
|
|
|
(inputs `(("python" ,python-wrapper))) ;for the bindings
|
|
|
|
|
(synopsis "Fuzzy matching library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
|
|
|
|
|
Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
|
|
|
|
|
value which can be used for similarity comparisons. Similar objects have
|
|
|
|
|
similar hash values, which allows for the detection of similar objects by
|
|
|
|
|
comparing their hash values. The byte stream should have a sufficient amount
|
|
|
|
|
of complexity; for example, a byte stream of identical bytes will not generate
|
|
|
|
|
a hash value.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-10-15 16:12:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-tlsh
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-tlsh)
|
|
|
|
|
(name "python2-tlsh")
|
|
|
|
|
(inputs `(("python" ,python-2)))))
|
2015-10-15 16:37:26 -04:00
|
|
|
|
|
2016-09-26 01:26:17 -04:00
|
|
|
|
(define-public python-termcolor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-termcolor")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "python-termcolor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; There are no tests.
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/termcolor")
|
|
|
|
|
(synopsis "ANSII Color formatting for terminal output")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides ANSII Color formatting for output in terminals.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-termcolor
|
|
|
|
|
(package-with-python2 python-termcolor))
|
|
|
|
|
|
2015-10-15 16:37:26 -04:00
|
|
|
|
(define-public python-libarchive-c
|
|
|
|
|
(package
|
|
|
|
|
(name "python-libarchive-c")
|
2015-12-30 09:57:40 -05:00
|
|
|
|
(version "2.2")
|
2015-10-15 16:37:26 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 09:57:40 -05:00
|
|
|
|
(uri (pypi-uri "libarchive-c" version))
|
2015-10-15 16:37:26 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 09:57:40 -05:00
|
|
|
|
"0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
|
2015-10-15 16:37:26 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'build 'reference-libarchive
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; Retain the absolute file name of libarchive.so.
|
|
|
|
|
(let ((libarchive (assoc-ref inputs "libarchive")))
|
|
|
|
|
(substitute* "libarchive/ffi.py"
|
|
|
|
|
(("find_library\\('archive'\\)")
|
|
|
|
|
(string-append "'" libarchive
|
|
|
|
|
"/lib/libarchive.so'"))))
|
|
|
|
|
|
|
|
|
|
;; Do not make a compressed egg (see
|
|
|
|
|
;; <http://bugs.gnu.org/20765>).
|
|
|
|
|
(let ((port (open-file "setup.cfg" "a")))
|
|
|
|
|
(display "\n[easy_install]\nzip_ok = 0\n"
|
|
|
|
|
port)
|
|
|
|
|
(close-port port)
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("libarchive" ,libarchive)))
|
|
|
|
|
(home-page "https://github.com/Changaco/python-libarchive-c")
|
|
|
|
|
(synopsis "Python interface to libarchive")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides Python bindings to libarchive, a C library to
|
|
|
|
|
access possibly compressed archives in many different formats. It uses
|
|
|
|
|
Python's @code{ctypes} foreign function interface (FFI).")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.0+)))
|
2015-10-15 16:37:26 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-libarchive-c
|
|
|
|
|
(package-with-python2 python-libarchive-c))
|
2015-10-26 04:58:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-file
|
|
|
|
|
(package
|
|
|
|
|
(inherit file)
|
|
|
|
|
(name "python-file")
|
2016-10-17 20:12:32 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source file))
|
|
|
|
|
;; This patch should not be applied to python2-file.
|
|
|
|
|
(patches (search-patches "python-file-double-encoding-bug.patch"))))
|
2015-10-26 04:58:55 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ;no tests
|
2016-10-17 16:48:27 -04:00
|
|
|
|
#:configure-flags '("--single-version-externally-managed" "--root=/")
|
2015-10-26 04:58:55 -04:00
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'change-directory
|
|
|
|
|
(lambda _
|
|
|
|
|
(chdir "python")
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'build 'set-library-file-name
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((file (assoc-ref inputs "file")))
|
|
|
|
|
(substitute* "magic.py"
|
|
|
|
|
(("find_library\\('magic'\\)")
|
|
|
|
|
(string-append "'" file "/lib/libmagic.so'")))
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs `(("file" ,file)))
|
|
|
|
|
(self-native-input? #f)
|
2016-03-27 22:10:48 -04:00
|
|
|
|
(synopsis "Python bindings to the libmagic file type guesser. Note that
|
|
|
|
|
this module and the python-magic module both provide a \"magic.py\" file;
|
|
|
|
|
these two modules, which are different and were developed separately, both
|
2016-10-15 20:13:29 -04:00
|
|
|
|
serve the same purpose: provide Python bindings for libmagic.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-file))))))
|
2015-10-26 04:58:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-file
|
2016-10-15 20:13:29 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-file))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-10-17 20:12:32 -04:00
|
|
|
|
(source (package-source file))
|
2016-10-15 20:13:29 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-10-27 15:43:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-debian
|
|
|
|
|
(package
|
|
|
|
|
(name "python-debian")
|
|
|
|
|
(version "0.1.23")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/python-debian/python-debian-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://packages.debian.org/sid/python-debian")
|
|
|
|
|
(synopsis "Debian package related modules")
|
|
|
|
|
(description
|
2015-10-28 06:59:42 -04:00
|
|
|
|
;; XXX: Use @enumerate instead of @itemize to work around
|
|
|
|
|
;; <http://bugs.gnu.org/21772>.
|
2015-10-27 15:43:11 -04:00
|
|
|
|
"This package provides Python modules that abstract many formats of
|
|
|
|
|
Debian-related files, such as:
|
|
|
|
|
|
2015-10-28 06:59:42 -04:00
|
|
|
|
@enumerate
|
2015-10-27 15:43:11 -04:00
|
|
|
|
@item Debtags information;
|
|
|
|
|
@item @file{debian/changelog} files;
|
|
|
|
|
@item packages files, pdiffs;
|
|
|
|
|
@item control files of single or multiple RFC822-style paragraphs---e.g.
|
|
|
|
|
@file{debian/control}, @file{.changes}, @file{.dsc};
|
|
|
|
|
@item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
|
|
|
|
|
contained files and meta-information.
|
2015-10-28 06:59:42 -04:00
|
|
|
|
@end enumerate\n")
|
2015-10-27 15:43:11 -04:00
|
|
|
|
|
|
|
|
|
;; Modules are either GPLv2+ or GPLv3+.
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl3+)))
|
2015-10-27 15:43:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-debian
|
|
|
|
|
(package-with-python2 python-debian))
|
2015-10-27 15:53:48 -04:00
|
|
|
|
|
2016-11-01 08:20:37 -04:00
|
|
|
|
(define-public python-nbformat
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nbformat")
|
|
|
|
|
(version "4.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nbformat" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mq8iki3d4mnx7wy05phss7x98mds4fqydin8lcagidp1knw1xnv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; no test target
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-ipython-genutils" ,python-ipython-genutils)
|
|
|
|
|
("python-jsonschema" ,python-jsonschema)
|
|
|
|
|
("python-jupyter-core" ,python-jupyter-core)
|
|
|
|
|
("python-traitlets" ,python-traitlets)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://jupyter.org")
|
|
|
|
|
(synopsis "Jupyter Notebook format")
|
|
|
|
|
(description "This package provides the reference implementation of the
|
|
|
|
|
Jupyter Notebook format and Python APIs for working with notebooks.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nbformat
|
|
|
|
|
(package-with-python2 python-nbformat))
|
|
|
|
|
|
2016-11-01 08:20:38 -04:00
|
|
|
|
(define-public python-bleach
|
|
|
|
|
(package
|
|
|
|
|
(name "python-bleach")
|
|
|
|
|
(version "1.4.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "bleach" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-html5lib" ,python-html5lib-0.9)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://github.com/jsocol/bleach")
|
|
|
|
|
(synopsis "Whitelist-based HTML-sanitizing tool")
|
|
|
|
|
(description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-bleach
|
|
|
|
|
(package-with-python2 python-bleach))
|
|
|
|
|
|
2016-11-01 08:20:39 -04:00
|
|
|
|
(define-public python-entrypoints
|
|
|
|
|
(package
|
|
|
|
|
(name "python-entrypoints")
|
|
|
|
|
(version "0.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/takluyver/entrypoints/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; The package does not come with a setup.py file, so we have to generate
|
|
|
|
|
;; one ourselves.
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'create-setup.py
|
|
|
|
|
(lambda _
|
|
|
|
|
(call-with-output-file "setup.py"
|
|
|
|
|
(lambda (port)
|
|
|
|
|
(format port "\
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
|
|
|
|
|
" ,version))))))))
|
|
|
|
|
(home-page "https://github.com/takluyver/entrypoints")
|
|
|
|
|
(synopsis "Discover and load entry points from installed Python packages")
|
|
|
|
|
(description "Entry points are a way for Python packages to advertise
|
|
|
|
|
objects with some common interface. The most common examples are
|
|
|
|
|
@code{console_scripts} entry points, which define shell commands by
|
|
|
|
|
identifying a Python function to run. The @code{entrypoints} module contains
|
|
|
|
|
functions to find and load entry points.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-entrypoints
|
|
|
|
|
(package-with-python2 python-entrypoints))
|
|
|
|
|
|
2016-11-01 08:20:40 -04:00
|
|
|
|
(define-public python-nbconvert
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nbconvert")
|
|
|
|
|
(version "5.0.0b1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nbconvert" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; The "bdist_egg" target is disabled by default, causing the installation
|
|
|
|
|
;; to fail.
|
|
|
|
|
(arguments `(#:configure-flags (list "bdist_egg")))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-bleach" ,python-bleach)
|
|
|
|
|
("python-entrypoints" ,python-entrypoints)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-jupyter-core" ,python-jupyter-core)
|
|
|
|
|
("python-mistune" ,python-mistune)
|
|
|
|
|
("python-nbformat" ,python-nbformat)
|
|
|
|
|
("python-pygments" ,python-pygments)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-traitlets" ,python-traitlets)))
|
|
|
|
|
(home-page "http://jupyter.org")
|
|
|
|
|
(synopsis "Converting Jupyter Notebooks")
|
|
|
|
|
(description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
|
|
|
|
|
notebooks to various other formats via Jinja templates. It allows you to
|
|
|
|
|
convert an @code{.ipynb} notebook file into various static formats including:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item HTML
|
|
|
|
|
@item LaTeX
|
|
|
|
|
@item PDF
|
|
|
|
|
@item Reveal JS
|
|
|
|
|
@item Markdown (md)
|
|
|
|
|
@item ReStructured Text (rst)
|
|
|
|
|
@item executable script
|
|
|
|
|
@end enumerate\n")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nbconvert
|
|
|
|
|
(package-with-python2 python-nbconvert))
|
|
|
|
|
|
2016-11-01 08:20:41 -04:00
|
|
|
|
(define-public python-notebook
|
|
|
|
|
(package
|
|
|
|
|
(name "python-notebook")
|
|
|
|
|
(version "4.2.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "notebook" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; HOME must be set for tests
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
(zero? (system* "nosetests")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-jupyter-core" ,python-jupyter-core)
|
|
|
|
|
("python-nbformat" ,python-nbformat)
|
|
|
|
|
("python-nbconvert" ,python-nbconvert)
|
|
|
|
|
("python-ipython" ,python-ipython)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-requests" ,python-requests)))
|
|
|
|
|
(home-page "http://jupyter.org/")
|
|
|
|
|
(synopsis "Web-based notebook environment for interactive computing")
|
|
|
|
|
(description
|
|
|
|
|
"The Jupyter HTML notebook is a web-based notebook environment for
|
|
|
|
|
interactive computing.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-notebook
|
|
|
|
|
(package-with-python2 python-notebook))
|
|
|
|
|
|
2016-11-01 08:20:42 -04:00
|
|
|
|
(define-public python-widgetsnbextension
|
|
|
|
|
(package
|
|
|
|
|
(name "python-widgetsnbextension")
|
|
|
|
|
(version "1.2.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "widgetsnbextension" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-notebook" ,python-notebook)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "IPython HTML widgets for Jupyter")
|
|
|
|
|
(description "This package provides interactive HTML widgets for Jupyter
|
|
|
|
|
notebooks.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-widgetsnbextension
|
|
|
|
|
(package-with-python2 python-widgetsnbextension))
|
|
|
|
|
|
2016-11-01 08:20:43 -04:00
|
|
|
|
(define-public python-ipywidgets
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ipywidgets")
|
|
|
|
|
(version "5.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ipywidgets" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; FIXME: it's not clear how to run the tests.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-ipykernel" ,python-ipykernel)
|
|
|
|
|
("python-ipython" ,python-ipython)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-traitlets" ,python-traitlets)
|
|
|
|
|
("python-widgetsnbextension" ,python-widgetsnbextension)))
|
|
|
|
|
(home-page "http://ipython.org")
|
|
|
|
|
(synopsis "IPython HTML widgets for Jupyter")
|
|
|
|
|
(description "Ipywidgets are interactive HTML widgets for Jupyter
|
|
|
|
|
notebooks and the IPython kernel. Notebooks come alive when interactive
|
|
|
|
|
widgets are used. Users gain control of their data and can visualize changes
|
|
|
|
|
in the data.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ipywidgets
|
|
|
|
|
(package-with-python2 python-ipywidgets))
|
|
|
|
|
|
2016-11-01 08:20:44 -04:00
|
|
|
|
(define-public python-jupyter-console
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jupyter-console")
|
|
|
|
|
(version "5.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jupyter_console" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; FIXME: it's not clear how to run the tests.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-ipykernel" ,python-ipykernel)
|
|
|
|
|
("python-ipython" ,python-ipython)
|
|
|
|
|
("python-jupyter-client" ,python-jupyter-client)
|
|
|
|
|
("python-prompt-toolkit" ,python-prompt-toolkit)
|
|
|
|
|
("python-pygments" ,python-pygments)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://jupyter.org")
|
|
|
|
|
(synopsis "Jupyter terminal console")
|
|
|
|
|
(description "This package provides a terminal-based console frontend for
|
|
|
|
|
Jupyter kernels. It also allows for console-based interaction with non-Python
|
|
|
|
|
Jupyter kernels such as IJulia and IRKernel.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jupyter-console
|
|
|
|
|
(package-with-python2 python-jupyter-console))
|
|
|
|
|
|
2016-11-01 08:20:46 -04:00
|
|
|
|
(define-public jupyter
|
|
|
|
|
(package
|
|
|
|
|
(name "jupyter")
|
|
|
|
|
(version "1.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jupyter" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; FIXME: it's not clear how to run the tests.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-ipykernel" ,python-ipykernel)
|
|
|
|
|
("python-ipywidgets" ,python-ipywidgets)
|
|
|
|
|
("python-jupyter-console" ,python-jupyter-console)
|
|
|
|
|
("python-nbconvert" ,python-nbconvert)
|
|
|
|
|
("python-notebook" ,python-notebook)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://jupyter.org")
|
|
|
|
|
(synopsis "Web application for interactive documents")
|
|
|
|
|
(description
|
|
|
|
|
"The Jupyter Notebook is a web application that allows you to create and
|
|
|
|
|
share documents that contain live code, equations, visualizations and
|
|
|
|
|
explanatory text. Uses include: data cleaning and transformation, numerical
|
|
|
|
|
simulation, statistical modeling, machine learning and much more.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2015-10-27 15:53:48 -04:00
|
|
|
|
(define-public python-chardet
|
|
|
|
|
(package
|
|
|
|
|
(name "python-chardet")
|
|
|
|
|
(version "2.3.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/c/chardet/chardet-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/chardet/chardet")
|
|
|
|
|
(synopsis "Universal encoding detector for Python 2 and 3")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides @code{chardet}, a Python module that can
|
|
|
|
|
automatically detect a wide range of file encodings.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2015-10-27 15:53:48 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-chardet
|
|
|
|
|
(package-with-python2 python-chardet))
|
2015-11-08 21:58:16 -05:00
|
|
|
|
|
2015-12-05 02:11:31 -05:00
|
|
|
|
(define-public python-docopt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-docopt")
|
|
|
|
|
(version "0.6.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
;; The release on PyPI does not include tests.
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/docopt/docopt/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _ (zero? (system* "py.test")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://docopt.org")
|
|
|
|
|
(synopsis "Command-line interface description language for Python")
|
|
|
|
|
(description "This library allows the user to define a command-line
|
|
|
|
|
interface from a program's help message rather than specifying it
|
|
|
|
|
programatically with command-line parsers like @code{getopt} and
|
|
|
|
|
@code{argparse}.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-docopt
|
|
|
|
|
(package-with-python2 python-docopt))
|
|
|
|
|
|
2015-11-08 21:58:16 -05:00
|
|
|
|
(define-public python-zope-event
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-event")
|
|
|
|
|
(version "4.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.event/zope.event-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.event")
|
|
|
|
|
(synopsis "Event publishing system for Python")
|
|
|
|
|
(description "Zope.event provides an event publishing API, intended for
|
|
|
|
|
use by applications which are unaware of any subscribers to their events. It
|
|
|
|
|
is a simple event-dispatching system on which more sophisticated event
|
|
|
|
|
dispatching systems can be built.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 21:58:16 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-event
|
|
|
|
|
(package-with-python2 python-zope-event))
|
2015-11-08 21:59:08 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-interface
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-interface")
|
|
|
|
|
(version "4.1.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.interface/zope.interface-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-event" ,python-zope-event)))
|
|
|
|
|
(home-page "https://github.com/zopefoundation/zope.interface")
|
|
|
|
|
(synopsis "Python implementation of the \"design by contract\"
|
|
|
|
|
methodology")
|
|
|
|
|
(description "Zope.interface provides an implementation of \"object
|
|
|
|
|
interfaces\" for Python. Interfaces are a mechanism for labeling objects as
|
|
|
|
|
conforming to a given API or contract.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 21:59:08 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-interface
|
|
|
|
|
(package-with-python2 python-zope-interface))
|
2015-11-08 22:00:40 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-exceptions
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-exceptions")
|
|
|
|
|
(version "4.0.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.exceptions/zope.exceptions-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; circular dependency with zope.testrunner
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
|
|
|
|
|
(synopsis "Zope exceptions")
|
|
|
|
|
(description "Zope.exceptions provides general-purpose exception types
|
|
|
|
|
that have uses outside of the Zope framework.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:00:40 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-exceptions
|
|
|
|
|
(package-with-python2 python-zope-exceptions))
|
2015-11-08 22:01:16 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-testing
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-testing")
|
|
|
|
|
(version "4.5.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.testing/zope.testing-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-07 15:50:29 -04:00
|
|
|
|
"1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove pre-compiled .pyc files backup files from source.
|
|
|
|
|
(for-each delete-file (find-files "." "(\\.pyc|~)$"))
|
|
|
|
|
#t))))
|
2015-11-08 22:01:16 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-zope-exceptions" ,python-zope-exceptions)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.testing")
|
|
|
|
|
(synopsis "Zope testing helpers")
|
|
|
|
|
(description "Zope.testing provides a number of testing utilities for HTML
|
|
|
|
|
forms, HTTP servers, regular expressions, and more.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:01:16 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-testing
|
|
|
|
|
(package-with-python2 python-zope-testing))
|
2015-11-08 22:01:51 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-testrunner
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-testrunner")
|
|
|
|
|
(version "4.4.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.testrunner/zope.testrunner-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-zope-exceptions" ,python-zope-exceptions)
|
|
|
|
|
("python-zope-testing" ,python-zope-testing)
|
|
|
|
|
("unzip" ,unzip)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.testrunner")
|
|
|
|
|
(synopsis "Zope testrunner script")
|
|
|
|
|
(description "Zope.testrunner provides a script for running Python
|
|
|
|
|
tests.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:01:51 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-testrunner
|
|
|
|
|
(let ((base (package-with-python2 python-zope-testrunner)))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
(append (package-native-inputs base)
|
|
|
|
|
`(("python2-subunit" ,python2-subunit)
|
|
|
|
|
("python2-mimeparse" ,python2-mimeparse)))))))
|
2015-11-08 22:02:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-i18nmessageid
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-i18nmessageid")
|
|
|
|
|
(version "4.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.i18nmessageid/zope.i18nmessageid-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
|
|
|
|
|
(synopsis "Message identifiers for internationalization")
|
|
|
|
|
(description "Zope.i18nmessageid provides facilities for declaring
|
|
|
|
|
internationalized messages within program source text.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:02:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-i18nmessageid
|
|
|
|
|
(package-with-python2 python-zope-i18nmessageid))
|
2015-11-08 22:03:22 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-schema
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-schema")
|
|
|
|
|
(version "4.4.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.schema/zope.schema-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-event" ,python-zope-event)
|
|
|
|
|
("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-zope-testing" ,python-zope-testing)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.schema")
|
|
|
|
|
(synopsis "Zope data schemas")
|
|
|
|
|
(description "Zope.scheme provides extensions to zope.interface for
|
|
|
|
|
defining data schemas.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:03:22 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-schema
|
|
|
|
|
(package-with-python2 python-zope-schema))
|
2015-11-08 22:03:53 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-configuration
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-configuration")
|
|
|
|
|
(version "4.0.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.configuration/zope.configuration-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
|
|
|
|
|
("python-zope-schema" ,python-zope-schema)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.configuration")
|
|
|
|
|
(synopsis "Zope Configuration Markup Language")
|
|
|
|
|
(description "Zope.configuration implements ZCML, the Zope Configuration
|
|
|
|
|
Markup Language.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:03:53 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-configuration
|
|
|
|
|
(package-with-python2 python-zope-configuration))
|
2015-11-08 22:04:23 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-proxy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-proxy")
|
|
|
|
|
(version "4.1.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.proxy/zope.proxy-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.proxy")
|
|
|
|
|
(synopsis "Generic, transparent proxies")
|
|
|
|
|
(description "Zope.proxy provides generic, transparent proxies for Python.
|
|
|
|
|
Proxies are special objects which serve as mostly-transparent wrappers around
|
|
|
|
|
another object, intervening in the apparent behavior of the wrapped object
|
|
|
|
|
only when necessary to apply the policy (e.g., access checking, location
|
|
|
|
|
brokering, etc.) for which the proxy is responsible.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:04:23 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-proxy
|
|
|
|
|
(package-with-python2 python-zope-proxy))
|
2015-11-08 22:04:51 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-location
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-location")
|
|
|
|
|
(version "4.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.location/zope.location-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-zope-proxy" ,python-zope-proxy)
|
|
|
|
|
("python-zope-schema" ,python-zope-schema)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.location/")
|
|
|
|
|
(synopsis "Zope location library")
|
|
|
|
|
(description "Zope.location implements the concept of \"locations\" in
|
|
|
|
|
Zope3, which are are special objects that have a structural location.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:04:51 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-location
|
|
|
|
|
(package-with-python2 python-zope-location))
|
2015-11-08 22:05:29 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-security
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-security")
|
|
|
|
|
(version "4.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.security/zope.security-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
|
|
|
|
|
("python-zope-component" ,python-zope-component)
|
|
|
|
|
("python-zope-location" ,python-zope-location)
|
|
|
|
|
("python-zope-proxy" ,python-zope-proxy)
|
|
|
|
|
("python-zope-schema" ,python-zope-schema)
|
|
|
|
|
("python-zope-testrunner" ,python-zope-testrunner)
|
|
|
|
|
("python-zope-testing" ,python-zope-testing)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/zope.security")
|
|
|
|
|
(synopsis "Zope security framework")
|
|
|
|
|
(description "Zope.security provides a generic mechanism to implement
|
|
|
|
|
security policies on Python objects.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:05:29 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-security
|
2015-12-07 05:31:56 -05:00
|
|
|
|
(let ((zope-security (package-with-python2 python-zope-security)))
|
|
|
|
|
(package (inherit zope-security)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-zope-testrunner" ,python2-zope-testrunner)
|
|
|
|
|
,@(alist-delete
|
|
|
|
|
"python-zope-testrunner"
|
|
|
|
|
(package-propagated-inputs zope-security)))))))
|
2015-11-08 22:05:59 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-zope-component
|
|
|
|
|
(package
|
|
|
|
|
(name "python-zope-component")
|
|
|
|
|
(version "4.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/z"
|
|
|
|
|
"/zope.component/zope.component-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; Skip tests due to circular dependency with python-zope-security.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-zope-testing" ,python-zope-testing)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-event" ,python-zope-event)
|
|
|
|
|
("python-zope-interface" ,python-zope-interface)
|
|
|
|
|
("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
|
|
|
|
|
("python-zope-configuration" ,python-zope-configuration)))
|
|
|
|
|
(home-page "https://github.com/zopefoundation/zope.component")
|
|
|
|
|
(synopsis "Zope Component Architecture")
|
|
|
|
|
(description "Zope.component represents the core of the Zope Component
|
|
|
|
|
Architecture. Together with the zope.interface package, it provides
|
|
|
|
|
facilities for defining, registering and looking up components.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)))
|
2015-11-08 22:05:59 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-zope-component
|
|
|
|
|
(package-with-python2 python-zope-component))
|
2015-11-08 03:28:34 -05:00
|
|
|
|
|
2016-08-02 16:16:45 -04:00
|
|
|
|
(define-public python-pythondialog
|
2015-11-23 23:46:09 -05:00
|
|
|
|
(package
|
2016-08-02 16:16:45 -04:00
|
|
|
|
(name "python-pythondialog")
|
2016-07-04 12:16:05 -04:00
|
|
|
|
(version "3.4.0")
|
2015-11-23 23:46:09 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-08-02 16:16:45 -04:00
|
|
|
|
(uri (pypi-uri "pythondialog" version))
|
2015-11-23 23:46:09 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-02 16:16:45 -04:00
|
|
|
|
"1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
|
2015-11-23 23:46:09 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-path
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let* ((dialog (assoc-ref inputs "dialog")))
|
|
|
|
|
;; Since this library really wants to grovel the search path, we
|
|
|
|
|
;; must hardcode dialog's store path into it.
|
|
|
|
|
(substitute* "dialog.py"
|
|
|
|
|
(("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
|
|
|
|
|
(string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
|
|
|
|
|
#t))))
|
|
|
|
|
#:tests? #f)) ; no test suite
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("dialog" ,dialog)))
|
|
|
|
|
(home-page "http://pythondialog.sourceforge.net/")
|
|
|
|
|
(synopsis "Python interface to the UNIX dialog utility")
|
|
|
|
|
(description "A Python wrapper for the dialog utility. Its purpose is to
|
|
|
|
|
provide an easy to use, pythonic and comprehensive Python interface to dialog.
|
|
|
|
|
This allows one to make simple text-mode user interfaces on Unix-like systems")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1)
|
2016-08-02 16:16:45 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-pythondialog))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pythondialog
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(version (package-version python-pythondialog))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "python2-pythondialog" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
|
2015-11-23 23:46:09 -05:00
|
|
|
|
|
2015-11-08 03:28:34 -05:00
|
|
|
|
(define-public python-pyrfc3339
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyrfc3339")
|
2015-12-30 07:34:44 -05:00
|
|
|
|
(version "1.0")
|
2015-11-08 03:28:34 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-12-30 07:34:44 -05:00
|
|
|
|
(uri (pypi-uri "pyRFC3339" version))
|
2015-11-08 03:28:34 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-12-30 07:34:44 -05:00
|
|
|
|
"0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
|
2015-11-08 03:28:34 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytz" ,python-pytz)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/kurtraschke/pyRFC3339")
|
|
|
|
|
(synopsis "Python timestamp library")
|
|
|
|
|
(description "Python library for generating and parsing RFC 3339-compliant
|
|
|
|
|
timestamps.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyrfc3339
|
|
|
|
|
(package-with-python2 python-pyrfc3339))
|
2015-11-08 04:00:02 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-werkzeug
|
|
|
|
|
(package
|
|
|
|
|
(name "python-werkzeug")
|
2016-10-07 01:37:46 -04:00
|
|
|
|
(version "0.11.11")
|
2015-11-08 04:00:02 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-04-10 16:36:58 -04:00
|
|
|
|
(uri (pypi-uri "Werkzeug" version))
|
2015-11-08 04:00:02 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-07 01:37:46 -04:00
|
|
|
|
"1rgpq8a2qv26d75v9j3b074inirlyy6y4b5x4rxblp202jy4cb77"))))
|
2015-11-08 04:00:02 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://werkzeug.pocoo.org/")
|
|
|
|
|
(synopsis "Utilities for WSGI applications")
|
|
|
|
|
(description "One of the most advanced WSGI utility modules. It includes a
|
|
|
|
|
powerful debugger, full-featured request and response objects, HTTP utilities to
|
|
|
|
|
handle entity tags, cache control headers, HTTP dates, cookie handling, file
|
|
|
|
|
uploads, a powerful URL routing system and a bunch of community-contributed
|
|
|
|
|
addon modules.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:x11)))
|
2015-11-08 04:00:02 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-werkzeug
|
|
|
|
|
(package-with-python2 python-werkzeug))
|
2015-11-08 15:38:55 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-configobj
|
|
|
|
|
(package
|
|
|
|
|
(name "python-configobj")
|
|
|
|
|
(version "5.0.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/c/configobj/"
|
|
|
|
|
"configobj-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
|
|
|
|
|
;; Patch setup.py so it looks for python-setuptools, which is
|
|
|
|
|
;; required to parse the keyword 'install_requires' in setup.py.
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "python-configobj-setuptools.patch"))))
|
2015-11-08 15:38:55 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(synopsis "Config file reading, writing and validation")
|
|
|
|
|
(description "ConfigObj is a simple but powerful config file reader and
|
|
|
|
|
writer: an ini file round tripper. Its main feature is that it is very easy to
|
|
|
|
|
use, with a straightforward programmer’s interface and a simple syntax for
|
|
|
|
|
config files.")
|
|
|
|
|
(home-page "https://github.com/DiffSK/configobj")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-11-08 15:38:55 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-configobj
|
|
|
|
|
(package-with-python2 python-configobj))
|
2015-11-08 22:47:48 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-configargparse
|
|
|
|
|
(package
|
|
|
|
|
(name "python-configargparse")
|
|
|
|
|
(version "0.10.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/C/ConfigArgParse/"
|
|
|
|
|
"ConfigArgParse-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: Bug in test suite filed upstream:
|
|
|
|
|
;; https://github.com/bw2/ConfigArgParse/issues/32
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(synopsis "Replacement for argparse")
|
|
|
|
|
(description "A drop-in replacement for argparse that allows options to also
|
|
|
|
|
be set via config files and/or environment variables.")
|
|
|
|
|
(home-page "https://github.com/bw2/ConfigArgParse")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-configargparse
|
|
|
|
|
(package-with-python2 python-configargparse))
|
2015-11-09 04:49:59 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-ndg-httpsclient
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ndg-httpsclient")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/n/ndg-httpsclient/"
|
|
|
|
|
"ndg_httpsclient-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-15 22:41:42 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; The tests appear to require networking.
|
|
|
|
|
#:tests? #f))
|
2015-11-09 04:49:59 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyopenssl" ,python-pyopenssl)))
|
|
|
|
|
(synopsis "HTTPS support for Python's httplib and urllib2")
|
|
|
|
|
(description "This is a HTTPS client implementation for httplib and urllib2
|
|
|
|
|
based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
|
|
|
|
|
over the default provided with Python and importantly enables full verification
|
|
|
|
|
of the SSL peer.")
|
|
|
|
|
(home-page "https://github.com/cedadev/ndg_httpsclient/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-11-09 04:49:59 -05:00
|
|
|
|
|
|
|
|
|
;; python2-openssl requires special care, so package-with-python2 is
|
|
|
|
|
;; insufficient.
|
|
|
|
|
(define-public python2-ndg-httpsclient
|
|
|
|
|
(package (inherit python-ndg-httpsclient)
|
|
|
|
|
(name "python2-ndg-httpsclient")
|
|
|
|
|
(arguments `(#:python ,python-2))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-pyopenssl" ,python2-pyopenssl)))))
|
2015-12-08 00:07:40 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-contextlib2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-contextlib2")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "contextlib2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _ (zero?
|
|
|
|
|
(system*
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 08:37:28 -05:00
|
|
|
|
"python" "test_contextlib2.py" "-v")))))))
|
2015-12-08 00:07:40 -05:00
|
|
|
|
(home-page "http://contextlib2.readthedocs.org/")
|
|
|
|
|
(synopsis "Tools for decorators and context managers")
|
|
|
|
|
(description "This module is primarily a backport of the Python
|
|
|
|
|
3.2 contextlib to earlier Python versions. Like contextlib, it
|
|
|
|
|
provides utilities for common tasks involving decorators and context
|
|
|
|
|
managers. It also contains additional features that are not part of
|
|
|
|
|
the standard library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:psfl)))
|
2015-12-08 00:07:40 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-contextlib2
|
|
|
|
|
(package-with-python2 python-contextlib2))
|
2016-01-11 13:27:31 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-texttable
|
|
|
|
|
(package
|
|
|
|
|
(name "python-texttable")
|
|
|
|
|
(version "0.8.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "texttable" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "https://github.com/foutaise/texttable/")
|
|
|
|
|
(synopsis "Python module for creating simple ASCII tables")
|
|
|
|
|
(description "Texttable is a Python module for creating simple ASCII
|
|
|
|
|
tables.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2016-01-11 13:27:31 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-texttable
|
|
|
|
|
(package-with-python2 python-texttable))
|
2016-01-11 13:28:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-websocket-client
|
|
|
|
|
(package
|
|
|
|
|
(name "python-websocket-client")
|
2016-07-07 12:44:11 -04:00
|
|
|
|
(version "0.37.0")
|
2016-01-11 13:28:05 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-07 12:44:11 -04:00
|
|
|
|
(uri (pypi-uri "websocket_client" version))
|
2016-01-11 13:28:05 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-07 12:44:11 -04:00
|
|
|
|
"0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
|
2016-01-11 13:28:05 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-six" ,python-six))) ; for tests
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/liris/websocket-client")
|
|
|
|
|
(synopsis "WebSocket client for Python")
|
|
|
|
|
(description "The Websocket-client module provides the low level APIs for
|
|
|
|
|
WebSocket usage in Python programs.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)))
|
2016-01-11 13:28:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-websocket-client
|
|
|
|
|
(package-with-python2 python-websocket-client))
|
2015-12-29 23:57:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-atomicwrites
|
|
|
|
|
(package
|
|
|
|
|
(name "python-atomicwrites")
|
2016-08-01 22:19:41 -04:00
|
|
|
|
(version "1.1.0")
|
2015-12-29 23:57:00 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "atomicwrites" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-01 22:19:41 -04:00
|
|
|
|
"1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0"))))
|
2015-12-29 23:57:00 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(synopsis "Atomic file writes in Python")
|
|
|
|
|
(description "Library for atomic file writes using platform dependent tools
|
2016-09-16 02:08:48 -04:00
|
|
|
|
for atomic file system operations.")
|
2015-12-29 23:57:00 -05:00
|
|
|
|
(home-page "https://github.com/untitaker/python-atomicwrites")
|
2016-01-28 00:42:33 -05:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-atomicwrites))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-atomicwrites
|
|
|
|
|
(package (inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-atomicwrites)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))))
|
2015-12-09 19:09:19 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-requests-toolbelt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-requests-toolbelt")
|
2016-06-20 18:13:43 -04:00
|
|
|
|
(version "0.6.2")
|
2015-12-09 19:09:19 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-06-20 18:13:43 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/"
|
|
|
|
|
"e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/"
|
|
|
|
|
"requests-toolbelt-" version ".tar.gz"))
|
2015-12-09 19:09:19 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-20 18:13:43 -04:00
|
|
|
|
"15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6"))))
|
2015-12-09 19:09:19 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-10-16 13:18:12 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-betamax" ,python-betamax)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
2015-12-09 19:09:19 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-requests" ,python-requests)))
|
|
|
|
|
(synopsis "Extensions to python-requests")
|
|
|
|
|
(description "This is a toolbelt of useful classes and functions to be used
|
|
|
|
|
with python-requests.")
|
|
|
|
|
(home-page "https://github.com/sigmavirus24/requests-toolbelt")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-12-09 19:10:47 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-click-threading
|
|
|
|
|
(package
|
|
|
|
|
(name "python-click-threading")
|
2016-06-20 18:00:57 -04:00
|
|
|
|
(version "0.2.0")
|
2015-12-09 19:10:47 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-06-20 18:00:57 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/"
|
|
|
|
|
"fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/"
|
|
|
|
|
"click-threading-" version ".tar.gz"))
|
2015-12-09 19:10:47 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-20 18:00:57 -04:00
|
|
|
|
"18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j"))))
|
2015-12-09 19:10:47 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-click" ,python-click)))
|
|
|
|
|
(synopsis "Utilities for multithreading in Click")
|
|
|
|
|
(description "This package provides utilities for multithreading in Click
|
|
|
|
|
applications.")
|
|
|
|
|
(home-page "https://github.com/click-contrib/click-threading")
|
|
|
|
|
(license license:expat)))
|
2015-12-09 19:11:19 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-click-log
|
|
|
|
|
(package
|
|
|
|
|
(name "python-click-log")
|
2016-02-15 18:26:43 -05:00
|
|
|
|
(version "0.1.3")
|
2015-12-09 19:11:19 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "click-log" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-15 18:26:43 -05:00
|
|
|
|
"0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
|
2015-12-09 19:11:19 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-click" ,python-click)))
|
|
|
|
|
(synopsis "Logging for click applications")
|
|
|
|
|
(description "This package provides a Python library for logging Click
|
|
|
|
|
applications.")
|
|
|
|
|
(home-page "https://github.com/click-contrib/click-log")
|
|
|
|
|
(license license:expat)))
|
2015-12-29 06:04:15 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-apipkg
|
|
|
|
|
(package
|
|
|
|
|
(name "python-apipkg")
|
|
|
|
|
(version "1.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "apipkg" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-04-10 15:30:19 -04:00
|
|
|
|
(inputs
|
2015-12-29 06:04:15 -05:00
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Namespace control and lazy-import mechanism")
|
|
|
|
|
(description "With apipkg you can control the exported namespace of a Python
|
|
|
|
|
package and greatly reduce the number of imports for your users. It is a small
|
|
|
|
|
pure Python module that works on virtually all Python versions.")
|
|
|
|
|
(home-page "https://bitbucket.org/hpk42/apipkg")
|
2016-02-13 21:04:18 -05:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-apipkg))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-apipkg
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-apipkg)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))))
|
2015-12-29 05:59:46 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-execnet
|
|
|
|
|
(package
|
|
|
|
|
(name "python-execnet")
|
|
|
|
|
(version "1.4.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "execnet" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-15 22:16:30 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
|
|
|
|
|
;; The two test failures are caused by the lack of an `ssh` executable.
|
|
|
|
|
;; The test suite can be run with pytest after the 'install' phase.
|
|
|
|
|
#:tests? #f))
|
2015-12-29 05:59:46 -05:00
|
|
|
|
(native-inputs
|
2016-10-15 22:16:30 -04:00
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
2016-04-10 15:32:39 -04:00
|
|
|
|
(inputs
|
2015-12-29 05:59:46 -05:00
|
|
|
|
`(("python-apipkg" ,python-apipkg)))
|
|
|
|
|
(synopsis "Rapid multi-Python deployment")
|
|
|
|
|
(description "Execnet provides a share-nothing model with
|
|
|
|
|
channel-send/receive communication for distributing execution across many
|
|
|
|
|
Python interpreters across version, platform and network barriers. It has a
|
|
|
|
|
minimal and fast API targetting the following uses:
|
|
|
|
|
@enumerate
|
|
|
|
|
@item distribute tasks to (many) local or remote CPUs
|
|
|
|
|
@item write and deploy hybrid multi-process applications
|
|
|
|
|
@item write scripts to administer multiple environments
|
|
|
|
|
@end enumerate")
|
|
|
|
|
(home-page "http://codespeak.net/execnet/")
|
2016-02-13 21:11:05 -05:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-execnet))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-execnet
|
|
|
|
|
(let ((execnet (package-with-python2
|
|
|
|
|
(strip-python2-variant python-execnet))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit execnet)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs execnet))))))
|
2015-12-29 05:42:16 -05:00
|
|
|
|
|
|
|
|
|
;;; The software provided by this package was integrated into pytest 2.8.
|
|
|
|
|
(define-public python-pytest-cache
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-cache")
|
|
|
|
|
(version "1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-cache" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-04-10 15:38:44 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-apipkg" ,python-apipkg)
|
|
|
|
|
("python-execnet" ,python-execnet)
|
|
|
|
|
("python-py" ,python-py)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
2015-12-29 05:42:16 -05:00
|
|
|
|
(synopsis "Py.test plugin with mechanisms for caching across test runs")
|
|
|
|
|
(description "The pytest-cache plugin provides tools to rerun failures from
|
|
|
|
|
the last py.test invocation.")
|
|
|
|
|
(home-page "https://bitbucket.org/hpk42/pytest-cache/")
|
2016-07-04 13:45:30 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-cache))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-cache
|
|
|
|
|
(let ((pytest-cache (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-cache))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit pytest-cache)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs pytest-cache))))))
|
2015-12-30 00:11:38 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-localserver
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-localserver")
|
2016-02-25 03:56:12 -05:00
|
|
|
|
(version "0.3.5")
|
2015-12-30 00:11:38 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-02-25 03:56:12 -05:00
|
|
|
|
(uri (pypi-uri "pytest-localserver" version))
|
2015-12-30 00:11:38 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-25 03:56:12 -05:00
|
|
|
|
"0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
|
2015-12-30 00:11:38 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "py.test" "--genscript=runtests.py"))
|
|
|
|
|
(zero? (system* "py.test")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-requests" ,python-requests)
|
2016-04-10 15:45:53 -04:00
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-werkzeug" ,python-werkzeug)))
|
2015-12-30 00:11:38 -05:00
|
|
|
|
(synopsis "Py.test plugin to test server connections locally")
|
|
|
|
|
(description "Pytest-localserver is a plugin for the pytest testing
|
|
|
|
|
framework which enables you to test server connections locally.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/pytest-localserver")
|
|
|
|
|
(license license:expat)))
|
2015-12-29 06:09:39 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-wsgi-intercept
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wsgi-intercept")
|
2016-06-20 18:14:24 -04:00
|
|
|
|
(version "1.2.2")
|
2015-12-29 06:09:39 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-06-20 18:14:24 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/"
|
|
|
|
|
"38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
|
|
|
|
|
"wsgi_intercept-" version ".tar.gz"))
|
2015-12-29 06:09:39 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-20 18:14:24 -04:00
|
|
|
|
"0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
|
2015-12-29 06:09:39 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-02-25 04:01:12 -05:00
|
|
|
|
`(("python-pytest" ,python-pytest)
|
2016-10-16 12:53:18 -04:00
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-urllib3" ,python-urllib3)))
|
2015-12-29 06:09:39 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-httplib2" ,python-httplib2)
|
|
|
|
|
("python-requests" ,python-requests)))
|
|
|
|
|
(synopsis "Puts a WSGI application in place of a real URI for testing")
|
|
|
|
|
(description "Wsgi_intercept installs a WSGI application in place of a real
|
|
|
|
|
URI for testing. Testing a WSGI application normally involves starting a
|
|
|
|
|
server at a local host and port, then pointing your test code to that address.
|
|
|
|
|
Instead, this library lets you intercept calls to any specific host/port
|
|
|
|
|
combination and redirect them into a WSGI application importable by your test
|
|
|
|
|
program. Thus, you can avoid spawning multiple processes or threads to test
|
|
|
|
|
your Web app.")
|
|
|
|
|
(home-page "https://github.com/cdent/wsgi-intercept")
|
|
|
|
|
(license license:expat)))
|
2015-12-30 00:13:53 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-xprocess
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-xprocess")
|
|
|
|
|
(version "0.9.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-xprocess" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
("python-psutil" ,python-psutil)))
|
|
|
|
|
(synopsis "Pytest plugin to manage external processes across test runs")
|
|
|
|
|
(description "Pytest-xprocess is an experimental py.test plugin for managing
|
|
|
|
|
processes across test runs.")
|
|
|
|
|
(home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
|
|
|
|
|
(license license:expat)))
|
2015-12-09 19:11:46 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-icalendar
|
|
|
|
|
(package
|
|
|
|
|
(name "python-icalendar")
|
2016-11-20 11:02:02 -05:00
|
|
|
|
(version "3.11")
|
2015-12-09 19:11:46 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "icalendar" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-11-20 11:02:02 -05:00
|
|
|
|
"01v2f3swd5s72x65cdihw83dx1z799b4i49a6ncg7vqmcm20wapd"))))
|
2015-12-09 19:11:46 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-dateutil-2" ,python-dateutil-2)
|
|
|
|
|
("python-pytz" ,python-pytz)))
|
|
|
|
|
(synopsis "Python library for parsing iCalendar files")
|
|
|
|
|
(description "The icalendar package is a parser/generator of iCalendar
|
|
|
|
|
files for use with Python.")
|
|
|
|
|
(home-page "https://github.com/collective/icalendar")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2015-12-09 20:07:55 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-sphinxcontrib-newsfeed
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sphinxcontrib-newsfeed")
|
|
|
|
|
(version "0.1.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "sphinxcontrib-newsfeed" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-docutils" ,python-docutils)
|
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
|
(synopsis "News Feed extension for Sphinx")
|
|
|
|
|
(description "Sphinxcontrib-newsfeed is an extension for adding a simple
|
|
|
|
|
Blog, News or Announcements section to a Sphinx website.")
|
|
|
|
|
(home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2016-01-12 20:21:56 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-args
|
|
|
|
|
(package
|
|
|
|
|
(name "python-args")
|
|
|
|
|
(version "0.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "args" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/kennethreitz/args")
|
|
|
|
|
(synopsis "Command-line argument parser")
|
|
|
|
|
(description
|
|
|
|
|
"This library provides a Python module to parse command-line arguments.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-01-12 20:21:56 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-args
|
|
|
|
|
(package-with-python2 python-args))
|
2016-01-12 20:23:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-clint
|
|
|
|
|
(package
|
|
|
|
|
(name "python-clint")
|
|
|
|
|
(version "0.5.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "clint" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-args" ,python-args)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/kennethreitz/clint")
|
|
|
|
|
(synopsis "Command-line interface tools")
|
|
|
|
|
(description
|
|
|
|
|
"Clint is a Python module filled with a set of tools for developing
|
|
|
|
|
command-line applications, including tools for colored and indented
|
|
|
|
|
output, progress bar display, and pipes.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:isc)))
|
2016-01-12 20:23:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-clint
|
|
|
|
|
(package-with-python2 python-clint))
|
2016-01-12 20:23:43 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-astor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-astor")
|
|
|
|
|
(version "0.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "astor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/berkerpeksag/astor")
|
|
|
|
|
(synopsis "Read and write Python ASTs")
|
|
|
|
|
(description
|
|
|
|
|
"Astor is designed to allow easy manipulation of Python source via the
|
|
|
|
|
Abstract Syntax Tree.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-01-12 20:23:43 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-astor
|
|
|
|
|
(package-with-python2 python-astor))
|
2016-01-12 20:24:15 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-rply
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rply")
|
|
|
|
|
(version "0.7.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rply" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-appdirs" ,python-appdirs)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/alex/rply")
|
|
|
|
|
(synopsis "Parser generator for Python")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a pure Python based parser generator, that also
|
|
|
|
|
works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
|
|
|
|
|
with a new public API, and RPython support.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-01-12 20:24:15 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-rply
|
|
|
|
|
(package-with-python2 python-rply))
|
2016-01-12 20:24:39 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-hy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-hy")
|
|
|
|
|
(version "0.11.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "hy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-astor" ,python-astor)
|
|
|
|
|
("python-clint" ,python-clint)
|
|
|
|
|
("python-rply" ,python-rply)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://hylang.org/")
|
|
|
|
|
(synopsis "Lisp frontend to Python")
|
|
|
|
|
(description
|
|
|
|
|
"Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
|
|
|
|
|
its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
|
|
|
|
|
Python at your fingertips, in Lisp form.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-hy
|
|
|
|
|
(package-with-python2 python-hy))
|
2015-11-24 15:33:31 -05:00
|
|
|
|
|
2015-11-22 15:43:51 -05:00
|
|
|
|
(define-public python-rauth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rauth")
|
|
|
|
|
(version "0.7.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rauth" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "check"))
|
2016-04-28 12:18:26 -04:00
|
|
|
|
(inputs
|
2015-11-22 15:43:51 -05:00
|
|
|
|
`(("python-requests" ,python-requests)))
|
|
|
|
|
(home-page "https://github.com/litl/rauth")
|
|
|
|
|
(synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
|
|
|
|
|
(description
|
|
|
|
|
"Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
|
|
|
|
|
provides service wrappers for convenient connection initialization and
|
|
|
|
|
authenticated session objects providing things like keep-alive.")
|
2016-04-28 12:18:26 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-rauth))))))
|
2015-11-22 15:43:51 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-rauth
|
2016-04-28 12:18:26 -04:00
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-rauth))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2015-11-22 15:43:51 -05:00
|
|
|
|
|
2015-12-03 09:04:54 -05:00
|
|
|
|
(define-public python2-functools32
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-functools32")
|
|
|
|
|
(version "3.2.3-2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "functools32" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; no test target
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(home-page "https://github.com/MiCHiLU/python-functools32")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Backport of the functools module from Python 3.2.3")
|
|
|
|
|
(description
|
|
|
|
|
"This package is a backport of the @code{functools} module from Python
|
|
|
|
|
3.2.3 for use with older versions of Python and PyPy.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2016-02-16 11:38:27 -05:00
|
|
|
|
(define-public python2-futures
|
2015-11-24 15:33:31 -05:00
|
|
|
|
(package
|
2016-02-16 11:38:27 -05:00
|
|
|
|
(name "python2-futures")
|
2015-11-24 15:33:31 -05:00
|
|
|
|
(version "3.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "futures" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-02-16 11:38:27 -05:00
|
|
|
|
(arguments `(#:python ,python-2))
|
2015-11-24 15:33:31 -05:00
|
|
|
|
(native-inputs
|
2016-02-16 11:38:27 -05:00
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
2015-11-24 15:33:31 -05:00
|
|
|
|
(home-page "https://github.com/agronholm/pythonfutures")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Backport of the concurrent.futures package from Python 3.2")
|
|
|
|
|
(description
|
|
|
|
|
"The concurrent.futures module provides a high-level interface for
|
|
|
|
|
asynchronously executing callables. This package backports the
|
|
|
|
|
concurrent.futures package from Python 3.2")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-11-24 15:33:31 -05:00
|
|
|
|
|
2016-09-11 14:24:25 -04:00
|
|
|
|
(define-public python-promise
|
|
|
|
|
(package
|
|
|
|
|
(name "python-promise")
|
|
|
|
|
(version "0.4.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "promise" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; Tests wants python-futures, which is a python2 only program, and
|
|
|
|
|
;; can't be found by python-promise at test time.
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(home-page "https://github.com/syrusakbary/promise")
|
|
|
|
|
(synopsis "Promises/A+ implementation for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Promises/A+ implementation for Python")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-promise))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-promise
|
|
|
|
|
(let ((promise (package-with-python2
|
|
|
|
|
(strip-python2-variant python-promise))))
|
|
|
|
|
(package (inherit promise)
|
|
|
|
|
(arguments (substitute-keyword-arguments (package-arguments promise)
|
|
|
|
|
((#:tests? _) #t)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-futures" ,python2-futures)
|
|
|
|
|
("python2-pytest" ,python2-pytest)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs promise))))))
|
|
|
|
|
|
2015-12-27 12:50:57 -05:00
|
|
|
|
(define-public python-urllib3
|
|
|
|
|
(package
|
|
|
|
|
(name "python-urllib3")
|
2016-10-27 09:03:07 -04:00
|
|
|
|
(version "1.18.1")
|
2015-12-27 12:50:57 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "urllib3" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-27 09:03:07 -04:00
|
|
|
|
"1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam"))))
|
2015-12-27 12:50:57 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
;; some packages for tests
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-tornado" ,python-tornado)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(;; packages for https security
|
|
|
|
|
("python-certifi" ,python-certifi)
|
|
|
|
|
("python-ndg-httpsclient" ,python-ndg-httpsclient)
|
|
|
|
|
("python-pyasn1" ,python-pyasn1)
|
|
|
|
|
("python-pyopenssl" ,python-pyopenssl)))
|
2016-10-27 09:03:07 -04:00
|
|
|
|
(home-page "https://urllib3.readthedocs.org/")
|
2015-12-27 12:50:57 -05:00
|
|
|
|
(synopsis "HTTP library with thread-safe connection pooling")
|
|
|
|
|
(description
|
|
|
|
|
"Urllib3 supports features left out of urllib and urllib2 libraries. It
|
|
|
|
|
can reuse the same socket connection for multiple requests, it can POST files,
|
|
|
|
|
supports url redirection and retries, and also gzip and deflate decoding.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-urllib3
|
|
|
|
|
(package-with-python2 python-urllib3))
|
2015-12-07 16:18:35 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-colorama
|
|
|
|
|
(package
|
|
|
|
|
(name "python-colorama")
|
|
|
|
|
(version "0.3.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "colorama" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "colored terminal text rendering for Python")
|
|
|
|
|
(description "Colorama is a Python library for rendering colored terminal
|
|
|
|
|
text.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/colorama")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2015-12-07 16:18:35 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-colorama
|
|
|
|
|
(package-with-python2 python-colorama))
|
2015-12-07 16:19:35 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-rsa
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rsa")
|
2016-10-15 21:27:35 -04:00
|
|
|
|
(version "3.4.2")
|
2015-12-07 16:19:35 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rsa" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-15 21:27:35 -04:00
|
|
|
|
"1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
|
2015-12-07 16:19:35 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pyasn1" ,python-pyasn1)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "Pure-Python RSA implementation")
|
|
|
|
|
(description "Python-RSA is a pure-Python RSA implementation. It supports
|
|
|
|
|
encryption and decryption, signing and verifying signatures, and key
|
|
|
|
|
generation according to PKCS#1 version 1.5. It can be used as a Python
|
|
|
|
|
library as well as on the command line.")
|
|
|
|
|
(home-page "http://stuvel.eu/rsa")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-12-07 16:19:35 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-rsa
|
|
|
|
|
(package-with-python2 python-rsa))
|
2015-12-07 16:20:07 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-pluggy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pluggy")
|
|
|
|
|
(version "0.3.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pluggy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "Plugin and hook calling mechanism for Python")
|
|
|
|
|
(description "Pluggy is an extraction of the plugin manager as used by
|
|
|
|
|
Pytest but stripped of Pytest specific details.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/pluggy")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pluggy
|
|
|
|
|
(package-with-python2 python-pluggy))
|
2015-12-07 16:20:35 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-tox
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tox")
|
|
|
|
|
(version "2.3.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "tox" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: Tests require a newer version of pytest, but upgrading our
|
|
|
|
|
;; pytest breaks other packages.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pluggy" ,python-pluggy)
|
|
|
|
|
("python-py" ,python-py)
|
|
|
|
|
("python-virtualenv" ,python-virtualenv)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://tox.testrun.org/")
|
|
|
|
|
(synopsis "Virtualenv-based automation of test activities")
|
|
|
|
|
(description "Tox is a generic virtualenv management and test command line
|
|
|
|
|
tool. It can be used to check that a package installs correctly with
|
|
|
|
|
different Python versions and interpreters, or run tests in each type of
|
|
|
|
|
supported environment, or act as a frontend to continuous integration
|
|
|
|
|
servers.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-tox
|
|
|
|
|
(package-with-python2 python-tox))
|
2015-12-07 16:22:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-jmespath
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jmespath")
|
|
|
|
|
(version "0.9.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jmespath" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(synopsis "JSON Matching Expressions")
|
|
|
|
|
(description "JMESPath (pronounced “james path”) is a Python library that
|
|
|
|
|
allows one to declaratively specify how to extract elements from a JSON
|
|
|
|
|
document.")
|
|
|
|
|
(home-page "https://github.com/jmespath/jmespath.py")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jmespath
|
|
|
|
|
(package-with-python2 python-jmespath))
|
2015-12-07 16:22:20 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-botocore
|
|
|
|
|
(package
|
|
|
|
|
(name "python-botocore")
|
2016-10-15 21:45:43 -04:00
|
|
|
|
(version "1.4.62")
|
2015-12-07 16:22:20 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "botocore" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-15 21:45:43 -04:00
|
|
|
|
"1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj"))))
|
2015-12-07 16:22:20 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-dateutil" ,python-dateutil-2)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-tox" ,python-tox)
|
|
|
|
|
("python-wheel" ,python-wheel)
|
|
|
|
|
("python-jmespath" ,python-jmespath)))
|
|
|
|
|
(home-page "https://github.com/boto/botocore")
|
|
|
|
|
(synopsis "Low-level interface to AWS")
|
|
|
|
|
(description "Botocore is a Python library that provides a low-level
|
|
|
|
|
interface to the Amazon Web Services (AWS) API.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2015-12-07 16:22:20 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-botocore
|
|
|
|
|
(package-with-python2 python-botocore))
|
2015-12-07 16:22:39 -05:00
|
|
|
|
|
|
|
|
|
(define-public awscli
|
|
|
|
|
(package
|
|
|
|
|
(name "awscli")
|
2016-10-15 21:46:34 -04:00
|
|
|
|
(version "1.11.5")
|
2015-12-07 16:22:39 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-10-15 21:46:34 -04:00
|
|
|
|
(uri (pypi-uri name version))
|
2015-12-07 16:22:39 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-15 21:46:34 -04:00
|
|
|
|
"0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg"))))
|
2015-12-07 16:22:39 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-colorama" ,python-colorama)
|
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-rsa" ,python-rsa)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-tox" ,python-tox)
|
|
|
|
|
("python-wheel" ,python-wheel)
|
2016-10-15 21:46:34 -04:00
|
|
|
|
("python-botocore" ,python-botocore)
|
|
|
|
|
("python-s3transfer" ,python-s3transfer)))
|
2015-12-07 16:22:39 -05:00
|
|
|
|
(home-page "http://aws.amazon.com/cli/")
|
|
|
|
|
(synopsis "Command line client for AWS")
|
|
|
|
|
(description "AWS CLI provides a unified command line interface to the
|
|
|
|
|
Amazon Web Services (AWS) API.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-01-30 17:28:06 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-hypothesis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-hypothesis")
|
2016-03-13 16:09:17 -04:00
|
|
|
|
(version "3.1.0")
|
2016-01-30 17:28:06 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "hypothesis" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-13 16:09:17 -04:00
|
|
|
|
"0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
|
2016-01-30 17:28:06 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-flake8" ,python-flake8)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Library for property based testing")
|
|
|
|
|
(description "Hypothesis is a library for testing your Python code against a
|
|
|
|
|
much larger range of examples than you would ever want to write by hand. It’s
|
|
|
|
|
based on the Haskell library, Quickcheck, and is designed to integrate
|
|
|
|
|
seamlessly into your existing Python unit testing work flow.")
|
|
|
|
|
(home-page "https://github.com/DRMacIver/hypothesis")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:mpl2.0)
|
2016-02-25 05:50:10 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-hypothesis))))))
|
2016-01-30 17:28:06 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-hypothesis
|
2016-02-25 05:50:10 -05:00
|
|
|
|
(let ((hypothesis (package-with-python2
|
|
|
|
|
(strip-python2-variant python-hypothesis))))
|
|
|
|
|
(package (inherit hypothesis)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-enum34" ,python2-enum34)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools))))))
|
2016-01-30 17:54:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-subtesthack
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-subtesthack")
|
|
|
|
|
(version "0.1.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-subtesthack" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; setuptools required for python-2 variant
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Set-up and tear-down fixtures for unit tests")
|
|
|
|
|
(description "This plugin allows you to set up and tear down fixtures within
|
|
|
|
|
unit test functions that use @code{py.test}. This is useful for using
|
|
|
|
|
@command{hypothesis} inside py.test, as @command{hypothesis} will call the test
|
|
|
|
|
function multiple times, without setting up or tearing down fixture state as is
|
|
|
|
|
normally the case.")
|
|
|
|
|
(home-page "https://github.com/untitaker/pytest-subtesthack/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:unlicense)))
|
2016-01-30 17:54:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-subtesthack
|
|
|
|
|
(package-with-python2 python-pytest-subtesthack))
|
2016-02-05 22:07:11 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-xdo
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-xdo")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://http.debian.net/debian/pool/main/p/python-xdo/"
|
|
|
|
|
"python-xdo_" version ".orig.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; no tests provided
|
|
|
|
|
(inputs
|
|
|
|
|
`(("xdotool" ,xdotool)
|
|
|
|
|
("libX11" ,libx11)))
|
|
|
|
|
(home-page "https://tracker.debian.org/pkg/python-xdo")
|
|
|
|
|
(synopsis "Python library for simulating X11 keyboard/mouse input")
|
|
|
|
|
(description "Provides bindings to libxdo for manipulating X11 via simulated
|
|
|
|
|
input. (Note that this is mostly a legacy library; you may wish to look at
|
|
|
|
|
python-xdo for newer bindings.)")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-02-05 22:07:11 -05:00
|
|
|
|
|
2016-02-13 16:42:51 -05:00
|
|
|
|
(define-public python-wtforms
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wtforms")
|
|
|
|
|
(version "2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "WTForms" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-27 15:13:22 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'remove-django-test
|
|
|
|
|
;; Don't fail the tests when the inputs for the optional tests cannot be found.
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute*
|
|
|
|
|
"tests/runtests.py"
|
|
|
|
|
(("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
|
|
|
|
|
(("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
|
|
|
|
|
#t)))))
|
2016-02-13 16:42:51 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(home-page "http://wtforms.simplecodes.com/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Form validation and rendering library for Python web development")
|
|
|
|
|
(description
|
|
|
|
|
"WTForms is a flexible forms validation and rendering library
|
|
|
|
|
for Python web development. It is very similar to the web form API
|
|
|
|
|
available in Django, but is a standalone package.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-13 16:42:51 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-wtforms))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-wtforms
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-wtforms)))
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-17 20:03:54 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-mako
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mako")
|
|
|
|
|
(version "1.0.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Mako" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-markupsafe" ,python-markupsafe)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://www.makotemplates.org/")
|
|
|
|
|
(synopsis "Templating language for Python")
|
|
|
|
|
(description "Mako is a templating language for Python that compiles
|
|
|
|
|
templates into Python modules.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-mako))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-mako
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-mako))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
(cons `("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
(package-native-inputs base))))))
|
2016-02-13 21:57:11 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-waitress
|
|
|
|
|
(package
|
|
|
|
|
(name "python-waitress")
|
|
|
|
|
(version "0.8.10")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "waitress" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/Pylons/waitress")
|
|
|
|
|
(synopsis "Waitress WSGI server")
|
|
|
|
|
(description "Waitress is meant to be a production-quality pure-Python WSGI
|
|
|
|
|
server with very acceptable performance.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:zpl2.1)
|
2016-02-13 21:57:11 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-waitress))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-waitress
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-waitress)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-13 23:22:47 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-wsgiproxy2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wsgiproxy2")
|
|
|
|
|
(version "0.4.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "WSGIProxy2" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-28 13:26:57 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully
|
|
|
|
|
;; support Python 3:
|
|
|
|
|
;; https://github.com/benoitc/restkit/issues/140
|
|
|
|
|
#:tests? #f))
|
2016-02-13 23:22:47 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-coverage" ,python-coverage)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-webob" ,python-webob)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/gawel/WSGIProxy2/")
|
|
|
|
|
(synopsis "WSGI Proxy with various http client backends")
|
|
|
|
|
(description "WSGI turns HTTP requests into WSGI function calls.
|
|
|
|
|
WSGIProxy turns WSGI function calls into HTTP requests.
|
|
|
|
|
It also includes code to sign requests and pass private data,
|
|
|
|
|
and to spawn subprocesses to handle requests.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-wsgiproxy2
|
|
|
|
|
(let ((wsgiproxy2 (package-with-python2
|
|
|
|
|
(strip-python2-variant python-wsgiproxy2))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit wsgiproxy2)
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-inputs wsgiproxy2))))))
|
2016-02-14 00:13:14 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-pastedeploy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pastedeploy")
|
|
|
|
|
(version "1.5.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "PasteDeploy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; This package uses pkg_resources, part of setuptools, during runtime,
|
|
|
|
|
;; hence why not a native-input.
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://pythonpaste.org/deploy/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Load, configure, and compose WSGI applications and servers")
|
|
|
|
|
(description
|
|
|
|
|
"This tool provides code to load WSGI applications and servers from URIs;
|
|
|
|
|
these URIs can refer to Python Eggs for INI-style configuration files. Paste
|
|
|
|
|
Script provides commands to serve applications based on this configuration
|
|
|
|
|
file.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pastedeploy
|
|
|
|
|
(package-with-python2 python-pastedeploy))
|
2016-02-14 00:40:22 -05:00
|
|
|
|
|
2016-02-25 14:01:45 -05:00
|
|
|
|
(define-public python-paste
|
|
|
|
|
(package
|
|
|
|
|
(name "python-paste")
|
|
|
|
|
(version "2.0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Paste" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "python-paste-remove-website-test.patch"
|
|
|
|
|
"python-paste-remove-timing-test.patch"))))
|
2016-02-25 14:01:45 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(;; Uses pkg_resources provided by setuptools internally.
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; Tests don't pass on Python 3, but work fine on Python 2.
|
|
|
|
|
;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
|
|
|
|
|
;; but is usable enough for the minimal amount it's used in MediaGoblin
|
|
|
|
|
;; still... things should be better by the next Paste release.)
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "http://pythonpaste.org")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python web development tools, focusing on WSGI")
|
|
|
|
|
(description
|
|
|
|
|
"Paste provides a variety of web development tools and middleware which
|
|
|
|
|
can be nested together to build web applications. Paste's design closely
|
|
|
|
|
follows ideas flowing from WSGI (Web Standard Gateway Interface).")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-paste))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-paste
|
|
|
|
|
(let ((paste (package-with-python2
|
|
|
|
|
(strip-python2-variant python-paste))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit paste)
|
|
|
|
|
(arguments
|
|
|
|
|
;; Tests are back for Python 2!
|
|
|
|
|
`(#:tests? #t
|
|
|
|
|
,@(package-arguments paste))))))
|
|
|
|
|
|
2016-02-25 14:01:56 -05:00
|
|
|
|
(define-public python-pastescript
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pastescript")
|
|
|
|
|
(version "2.0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "PasteScript" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(;; Uses pkg_resources provided by setuptools internally.
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-paste" ,python-paste)
|
|
|
|
|
("python-pastedeploy" ,python-pastedeploy)))
|
|
|
|
|
(home-page "http://pythonpaste.org/script/")
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; Unfortunately, this requires the latest unittest2,
|
|
|
|
|
;; but that requires traceback2 which requires linecache2 which requires
|
|
|
|
|
;; unittest2. So we're skipping tests for now.
|
|
|
|
|
;; (Note: Apparently linetest2 only needs unittest2 for its tests,
|
|
|
|
|
;; so in theory we could get around this situation somehow.)
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(synopsis
|
|
|
|
|
"Pluggable command line tool for serving web applications and more")
|
|
|
|
|
(description
|
|
|
|
|
"PasteScript is a plugin-friendly command line tool which provides a
|
|
|
|
|
variety of features, from launching web applications to bootstrapping project
|
|
|
|
|
layouts.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pastescript
|
|
|
|
|
(package-with-python2 python-pastescript))
|
|
|
|
|
|
2016-02-14 00:40:22 -05:00
|
|
|
|
(define-public python-pyquery
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyquery")
|
2016-07-19 14:07:37 -04:00
|
|
|
|
(version "1.2.13")
|
2016-02-14 00:40:22 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyquery" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-19 14:07:37 -04:00
|
|
|
|
"0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv"))))
|
2016-02-14 00:40:22 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-10-29 21:58:45 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-webob" ,python-webob)
|
|
|
|
|
("python-webtest" ,python-webtest)))
|
2016-02-14 00:40:22 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-lxml" ,python-lxml)
|
|
|
|
|
("python-cssselect" ,python-cssselect)))
|
|
|
|
|
(home-page "https://github.com/gawel/pyquery")
|
|
|
|
|
(synopsis "Make jQuery-like queries on xml documents")
|
|
|
|
|
(description "pyquery allows you to make jQuery queries on xml documents.
|
|
|
|
|
The API is as much as possible the similar to jQuery. pyquery uses lxml for
|
|
|
|
|
fast xml and html manipulation.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 00:40:22 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-pyquery))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyquery
|
|
|
|
|
(let ((pyquery (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pyquery))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit pyquery)
|
2016-10-29 21:58:45 -04:00
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs pyquery))))))
|
2016-02-14 01:13:14 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-webtest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-webtest")
|
|
|
|
|
(version "2.0.20")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "WebTest" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Unfortunately we have to disable tests!
|
|
|
|
|
;; This release of WebTest is pinned to python-nose < 1.3,
|
|
|
|
|
;; but older versions of python-nose are plagued with the following
|
|
|
|
|
;; bug(s), which rears its ugly head during test execution:
|
|
|
|
|
;; https://github.com/nose-devs/nose/issues/759
|
|
|
|
|
;; https://github.com/nose-devs/nose/pull/811
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
;; Commented out code is no good, but in this case, once tests
|
|
|
|
|
;; are ready to be enabled again, we should put the following
|
|
|
|
|
;; in place:
|
|
|
|
|
;; (native-inputs
|
|
|
|
|
;; `(("python-nose" ,python-nose) ; technially < 1.3,
|
|
|
|
|
;; ; but see above comment
|
|
|
|
|
;; ("python-coverage" ,python-coverage)
|
|
|
|
|
;; ("python-mock" ,python-mock)
|
|
|
|
|
;; ("python-pastedeploy" ,python-pastedeploy)
|
|
|
|
|
;; ("python-wsgiproxy2" ,python-wsgiproxy2)
|
|
|
|
|
;; ("python-pyquery" ,python-pyquery)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-waitress" ,python-waitress)
|
|
|
|
|
("python-webob" ,python-webob)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-beautifulsoup4" ,python-beautifulsoup4)))
|
|
|
|
|
(home-page "http://webtest.pythonpaste.org/")
|
|
|
|
|
(synopsis "Helper to test WSGI applications")
|
|
|
|
|
(description "Webtest allows you to test your Python web applications
|
|
|
|
|
without starting an HTTP server. It supports anything that supports the
|
|
|
|
|
minimum of WSGI.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-webtest))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-webtest
|
|
|
|
|
(let ((webtest (package-with-python2
|
|
|
|
|
(strip-python2-variant python-webtest))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit webtest)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs webtest))))))
|
2016-02-14 15:16:49 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-anyjson
|
|
|
|
|
(package
|
|
|
|
|
(name "python-anyjson")
|
|
|
|
|
(version "0.3.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "anyjson" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; We could possibly get tests working, but on Python 3 it's not so easy.
|
|
|
|
|
;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
|
|
|
|
|
;; whatever) so this transformation needs to be done before the tests
|
|
|
|
|
;; can be run. Maybe we could add a build step to transform beforehand
|
|
|
|
|
;; but it could be annoying/difficult.
|
|
|
|
|
;; We can enable tests for the Python 2 version, though, and do below.
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "http://bitbucket.org/runeh/anyjson/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Wraps best available JSON implementation in a common interface")
|
|
|
|
|
(description
|
|
|
|
|
"Anyjson loads whichever is the fastest JSON module installed
|
|
|
|
|
and provides a uniform API regardless of which JSON implementation is used.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 15:16:49 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-anyjson))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-anyjson
|
|
|
|
|
(let ((anyjson (package-with-python2
|
|
|
|
|
(strip-python2-variant python-anyjson))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit anyjson)
|
|
|
|
|
(arguments `(;; Unlike the python 3 variant, we do run tests. See above!
|
|
|
|
|
#:tests? #t
|
|
|
|
|
,@(package-arguments anyjson)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-nose" ,python2-nose))))))
|
2016-02-14 15:44:03 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-amqp
|
|
|
|
|
(package
|
|
|
|
|
(name "python-amqp")
|
|
|
|
|
(version "1.4.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "amqp" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(home-page "http://github.com/celery/py-amqp")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Low-level AMQP client for Python (fork of amqplib)")
|
|
|
|
|
(description
|
|
|
|
|
"This is a fork of amqplib which was originally written by Barry Pederson.
|
|
|
|
|
It is maintained by the Celery project, and used by kombu as a pure python
|
|
|
|
|
alternative when librabbitmq is not available.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl2.1+)
|
2016-02-14 15:44:03 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-amqp))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-amqp
|
|
|
|
|
(let ((amqp (package-with-python2
|
|
|
|
|
(strip-python2-variant python-amqp))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit amqp)
|
|
|
|
|
(arguments `(;; Tries to run coverage tests with nose-cover3, which seems
|
|
|
|
|
;; unmaintained. Weirdly, does not do this on the python 3
|
|
|
|
|
;; version?
|
|
|
|
|
#:tests? #f
|
|
|
|
|
,@(package-arguments amqp)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs amqp))))))
|
2016-02-14 18:38:10 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-kombu
|
|
|
|
|
(package
|
|
|
|
|
(name "python-kombu")
|
2016-10-12 13:21:04 -04:00
|
|
|
|
(version "3.0.37")
|
2016-02-14 18:38:10 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "kombu" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-12 13:21:04 -04:00
|
|
|
|
"0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70"))))
|
2016-02-14 18:38:10 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-anyjson" ,python-anyjson)
|
2016-10-12 13:21:04 -04:00
|
|
|
|
("python-amqp" ,python-amqp)
|
|
|
|
|
("python-redis" ,python-redis)))
|
2016-02-14 18:38:10 -05:00
|
|
|
|
(home-page "http://kombu.readthedocs.org")
|
|
|
|
|
(synopsis "Message passing library for Python")
|
|
|
|
|
(description "The aim of Kombu is to make messaging in Python as easy as
|
|
|
|
|
possible by providing an idiomatic high-level interface for the AMQ protocol,
|
|
|
|
|
and also provide proven and tested solutions to common messaging problems.
|
|
|
|
|
AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
|
|
|
|
|
message orientation, queuing, routing, reliability and security, for which the
|
|
|
|
|
RabbitMQ messaging server is the most popular implementation.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 18:38:10 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-kombu))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-kombu
|
|
|
|
|
(let ((kombu (package-with-python2
|
|
|
|
|
(strip-python2-variant python-kombu))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit kombu)
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
,@(package-inputs kombu))))))
|
2016-02-14 18:49:47 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-billiard
|
|
|
|
|
(package
|
|
|
|
|
(name "python-billiard")
|
2016-10-12 13:21:40 -04:00
|
|
|
|
(version "3.3.0.23")
|
2016-02-14 18:49:47 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "billiard" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-12 13:21:40 -04:00
|
|
|
|
"02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
|
2016-02-14 18:49:47 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://github.com/celery/billiard")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python multiprocessing fork with improvements and bugfixes")
|
|
|
|
|
(description
|
|
|
|
|
"Billiard is a fork of the Python 2.7 multiprocessing package. The
|
|
|
|
|
multiprocessing package itself is a renamed and updated version of R Oudkerk's
|
|
|
|
|
pyprocessing package. This standalone variant is intended to be compatible with
|
|
|
|
|
Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 18:49:47 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-billiard))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-billiard
|
|
|
|
|
(let ((billiard (package-with-python2
|
|
|
|
|
(strip-python2-variant python-billiard))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit billiard)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-native-inputs billiard))))))
|
2016-02-14 18:57:24 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-celery
|
|
|
|
|
(package
|
|
|
|
|
(name "python-celery")
|
2016-10-12 13:22:13 -04:00
|
|
|
|
(version "3.1.24")
|
2016-02-14 18:57:24 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "celery" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-12 13:22:13 -04:00
|
|
|
|
"0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
|
2016-02-14 18:57:24 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-10-12 13:22:13 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; These tests break with Python 3.5:
|
|
|
|
|
;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero?
|
|
|
|
|
(system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
|
2016-02-14 18:57:24 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
2016-04-28 12:42:50 -04:00
|
|
|
|
(inputs
|
2016-02-14 18:57:24 -05:00
|
|
|
|
`(("python-pytz" ,python-pytz)
|
2016-04-28 12:42:50 -04:00
|
|
|
|
("python-amqp" ,python-amqp)
|
|
|
|
|
("python-anyjson" ,python-anyjson)
|
2016-02-14 18:57:24 -05:00
|
|
|
|
("python-billiard" ,python-billiard)
|
|
|
|
|
("python-kombu" ,python-kombu)))
|
|
|
|
|
(home-page "http://celeryproject.org")
|
|
|
|
|
(synopsis "Distributed Task Queue")
|
|
|
|
|
(description "Celery is an asynchronous task queue/job queue based on
|
|
|
|
|
distributed message passing. It is focused on real-time operation, but
|
|
|
|
|
supports scheduling as well. The execution units, called tasks, are executed
|
|
|
|
|
concurrently on a single or more worker servers using multiprocessing,
|
|
|
|
|
Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
|
|
|
|
|
synchronously (wait until ready).")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 18:57:24 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-celery))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-celery
|
|
|
|
|
(let ((celery (package-with-python2
|
|
|
|
|
(strip-python2-variant python-celery))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit celery)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-native-inputs celery))))))
|
2016-02-14 19:23:11 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-translitcodec
|
|
|
|
|
(package
|
|
|
|
|
(name "python-translitcodec")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "translitcodec" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; no tests provided
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/claudep/translitcodec")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Unicode to 8-bit charset transliteration codec")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains codecs for transliterating ISO 10646 texts into
|
|
|
|
|
best-effort representations using smaller coded character sets (ASCII,
|
|
|
|
|
ISO 8859, etc.).")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-translitcodec))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-translitcodec
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-translitcodec)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-15 13:29:08 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-editor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-editor")
|
|
|
|
|
(version "0.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "python-editor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/fmoo/python-editor")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Programmatically open an editor, capture the result")
|
|
|
|
|
(description
|
|
|
|
|
"python-editor is a library that provides the editor module for
|
|
|
|
|
programmatically interfacing with your system's $EDITOR.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-02-15 13:29:08 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-editor))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-editor
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-editor)))
|
|
|
|
|
(inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-05 03:16:18 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-sphinxcontrib-programoutput
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sphinxcontrib-programoutput")
|
|
|
|
|
(version "0.8")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "sphinxcontrib-programoutput" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-docutils" ,python-docutils)
|
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
|
(synopsis "Sphinx extension to include program output")
|
|
|
|
|
(description "A Sphinx extension to literally insert the output of arbitrary
|
|
|
|
|
commands into documents, helping you to keep your command examples up to date.")
|
|
|
|
|
(home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)
|
2016-02-05 03:16:18 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-sphinxcontrib-programoutput
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-sphinxcontrib-programoutput)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-05 03:17:03 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-sphinx-repoze-autointerface
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sphinx-repoze-autointerface")
|
2016-07-01 19:48:23 -04:00
|
|
|
|
(version "0.8")
|
2016-02-05 03:17:03 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "repoze.sphinx.autointerface" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-01 19:48:23 -04:00
|
|
|
|
"08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f"))))
|
2016-02-05 03:17:03 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-docutils" ,python-docutils)
|
|
|
|
|
("python-sphinx" ,python-sphinx)
|
|
|
|
|
("python-zope-interface" ,python-zope-interface)))
|
|
|
|
|
(synopsis "Auto-generate Sphinx API docs from Zope interfaces")
|
|
|
|
|
(description "This package defines an extension for the Sphinx documentation
|
|
|
|
|
system. The extension allows generation of API documentation by
|
|
|
|
|
introspection of @code{zope.interface} instances in code.")
|
|
|
|
|
(home-page "https://github.com/repoze/repoze.sphinx.autointerface")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:repoze)))
|
2016-02-05 03:17:03 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-sphinx-repoze-autointerface
|
|
|
|
|
(package-with-python2 python-sphinx-repoze-autointerface))
|
2016-02-25 16:26:45 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-psycopg2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-psycopg2")
|
|
|
|
|
(version "2.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "psycopg2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; Tests would require a postgresql database "psycopg2_test"
|
|
|
|
|
;; and a running postgresql database management service.
|
|
|
|
|
`(#:tests? #f)) ; TODO re-enable after providing a test-db.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("postgresql" ,postgresql))) ; libpq
|
|
|
|
|
(home-page "http://initd.org/psycopg/")
|
|
|
|
|
(synopsis "Python PostgreSQL adapter")
|
|
|
|
|
(description
|
|
|
|
|
"psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl3+)
|
2016-02-25 16:26:45 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-psycopg2))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-psycopg2
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-psycopg2)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-01-28 00:51:49 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-vobject
|
|
|
|
|
(package
|
|
|
|
|
(name "python-vobject")
|
2016-04-17 14:32:59 -04:00
|
|
|
|
(version "0.9.2")
|
2016-01-28 00:51:49 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "vobject" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-17 14:32:59 -04:00
|
|
|
|
"1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb"))))
|
2016-01-28 00:51:49 -05:00
|
|
|
|
(build-system python-build-system)
|
2016-10-16 13:05:30 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; The test suite relies on some non-portable Windows interfaces.
|
|
|
|
|
#:tests? #f))
|
2016-01-28 00:51:49 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-dateutil-2" ,python-dateutil-2)
|
|
|
|
|
("python-pyicu" ,python-pyicu)))
|
|
|
|
|
(synopsis "Parse and generate vCard and vCalendar files")
|
|
|
|
|
(description "Vobject is intended to be a full featured Python package for
|
|
|
|
|
parsing and generating vCard and vCalendar files. Currently, iCalendar files
|
|
|
|
|
are supported and well tested. vCard 3.0 files are supported, and all data
|
|
|
|
|
should be imported, but only a few components are understood in a sophisticated
|
|
|
|
|
way.")
|
|
|
|
|
(home-page "http://eventable.github.io/vobject/")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-01-28 00:51:49 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-vobject))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-vobject
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-vobject)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-02-14 02:00:42 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-munkres
|
|
|
|
|
(package
|
|
|
|
|
(name "python-munkres")
|
|
|
|
|
(version "1.0.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "munkres" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no test suite
|
|
|
|
|
(home-page "http://software.clapper.org/munkres/")
|
|
|
|
|
(synopsis "Implementation of the Munkres algorithm")
|
|
|
|
|
(description "The Munkres module provides an implementation of the Munkres
|
|
|
|
|
algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
|
|
|
|
|
useful for solving the Assignment Problem.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-02-14 02:00:42 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-munkres
|
|
|
|
|
(package-with-python2 python-munkres))
|
2016-02-14 02:03:38 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-flask
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask")
|
|
|
|
|
(version "0.10.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Flask" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-itsdangerous" ,python-itsdangerous)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-werkzeug" ,python-werkzeug)))
|
|
|
|
|
(home-page "https://github.com/mitsuhiko/flask/")
|
|
|
|
|
(synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
|
|
|
|
|
(description "Flask is a micro web framework based on the Werkzeug toolkit
|
|
|
|
|
and Jinja2 template engine. It is called a micro framework because it does not
|
|
|
|
|
presume or force a developer to use a particular tool or library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-02-14 02:03:38 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-flask))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flask
|
|
|
|
|
(package (inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-flask)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-03-18 00:40:26 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-cookies
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cookies")
|
|
|
|
|
(version "2.2.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cookies" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python2-pytest)))
|
|
|
|
|
(synopsis "HTTP cookie parser and renderer")
|
|
|
|
|
(description "A RFC 6265-compliant HTTP cookie parser and renderer in
|
|
|
|
|
Python.")
|
|
|
|
|
(home-page "https://gitlab.com/sashahart/cookies")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-cookies))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-cookies
|
|
|
|
|
(let ((cookies (package-with-python2
|
|
|
|
|
(strip-python2-variant python-cookies))))
|
|
|
|
|
(package (inherit cookies)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs cookies))))))
|
2016-02-15 04:19:28 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-responses
|
|
|
|
|
(package
|
|
|
|
|
(name "python-responses")
|
|
|
|
|
(version "0.5.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "responses" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Test suite is not distributed:
|
|
|
|
|
;; https://github.com/getsentry/responses/issues/38
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cookies" ,python-cookies)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-requests" ,python-requests)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/getsentry/responses")
|
|
|
|
|
(synopsis "Utility for mocking out the `requests` Python library")
|
|
|
|
|
(description "A utility library for mocking out the `requests` Python
|
|
|
|
|
library.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-02-15 04:19:28 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-responses))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-responses
|
|
|
|
|
(let ((responses (package-with-python2
|
|
|
|
|
(strip-python2-variant python-responses))))
|
|
|
|
|
(package (inherit responses)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs responses))))))
|
2016-02-15 04:22:01 -05:00
|
|
|
|
|
2016-10-13 04:56:54 -04:00
|
|
|
|
(define-public python-whoosh
|
|
|
|
|
(package
|
|
|
|
|
(name "python-whoosh")
|
|
|
|
|
(version "2.7.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Whoosh" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://bitbucket.org/mchaput/whoosh")
|
|
|
|
|
(synopsis "Full text indexing, search, and spell checking library")
|
|
|
|
|
(description
|
|
|
|
|
"Whoosh is a fast, pure-Python full text indexing, search, and spell
|
|
|
|
|
checking library.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-whoosh
|
|
|
|
|
(let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
|
|
|
|
|
(package (inherit whoosh)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-backport-ssl-match-hostname"
|
|
|
|
|
,python2-backport-ssl-match-hostname)
|
|
|
|
|
,@(package-propagated-inputs whoosh))))))
|
|
|
|
|
|
2016-02-15 04:22:01 -05:00
|
|
|
|
(define-public python-pathlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pathlib")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pathlib" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-03 13:24:00 -04:00
|
|
|
|
;; The tests depend on the internal "test" module, which does not provide
|
|
|
|
|
;; a stable interface.
|
|
|
|
|
(arguments `(#:tests? #f))
|
2016-02-15 04:22:01 -05:00
|
|
|
|
(home-page "https://pathlib.readthedocs.org/")
|
2016-09-16 02:08:48 -04:00
|
|
|
|
(synopsis "Object-oriented file system paths")
|
|
|
|
|
(description "Pathlib offers a set of classes to handle file system paths.
|
2016-02-15 04:22:01 -05:00
|
|
|
|
It offers the following advantages over using string objects:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item No more cumbersome use of os and os.path functions. Everything can
|
|
|
|
|
be done easily through operators, attribute accesses, and method calls.
|
|
|
|
|
@item Embodies the semantics of different path types. For example,
|
|
|
|
|
comparing Windows paths ignores casing.
|
|
|
|
|
@item Well-defined semantics, eliminating any inconsistencies or
|
|
|
|
|
ambiguities (forward vs. backward slashes, etc.).
|
2016-10-05 10:37:42 -04:00
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
|
|
Note: In Python 3.4, pathlib is now part of the standard library. For other
|
|
|
|
|
Python versions please consider python-pathlib2 instead, which tracks the
|
|
|
|
|
standard library module. This module (python-pathlib) isn't maintained
|
|
|
|
|
anymore.")
|
2016-02-15 04:22:01 -05:00
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pathlib
|
|
|
|
|
(package-with-python2 python-pathlib))
|
2016-02-15 04:36:37 -05:00
|
|
|
|
|
2016-10-13 05:11:42 -04:00
|
|
|
|
(define-public python2-pathlib2
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pathlib2")
|
|
|
|
|
(version "2.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pathlib2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-27 04:09:10 -04:00
|
|
|
|
;; We only need the the Python 2 variant, since for Python 3 our minimum
|
|
|
|
|
;; version is 3.4 which already includes this package as part of the
|
|
|
|
|
;; standard library.
|
2016-10-13 05:11:42 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-six" ,python2-six)))
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/pathlib2/")
|
|
|
|
|
(synopsis "Object-oriented file system paths - backport of standard
|
|
|
|
|
pathlib module")
|
|
|
|
|
(description "The goal of pathlib2 is to provide a backport of standard
|
|
|
|
|
pathlib module which tracks the standard library module, so all the newest
|
|
|
|
|
features of the standard pathlib can be used also on older Python versions.
|
|
|
|
|
|
|
|
|
|
Pathlib offers a set of classes to handle file system paths. It offers the
|
|
|
|
|
following advantages over using string objects:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item No more cumbersome use of os and os.path functions. Everything can
|
|
|
|
|
be done easily through operators, attribute accesses, and method calls.
|
|
|
|
|
@item Embodies the semantics of different path types. For example,
|
|
|
|
|
comparing Windows paths ignores casing.
|
|
|
|
|
@item Well-defined semantics, eliminating any inconsistencies or
|
|
|
|
|
ambiguities (forward vs. backward slashes, etc.).
|
|
|
|
|
@end enumerate")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2016-02-15 04:36:37 -05:00
|
|
|
|
(define-public python-jellyfish
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jellyfish")
|
|
|
|
|
(version "0.5.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jellyfish" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/jamesturk/jellyfish")
|
|
|
|
|
(synopsis "Approximate and phonetic matching of strings")
|
|
|
|
|
(description "Jellyfish uses a variety of string comparison and phonetic
|
|
|
|
|
encoding algorithms to do fuzzy string matching.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)
|
2016-02-15 04:36:37 -05:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-jellyfish))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jellyfish
|
|
|
|
|
(let ((jellyfish (package-with-python2
|
|
|
|
|
(strip-python2-variant python-jellyfish))))
|
|
|
|
|
(package (inherit jellyfish)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unicodecsv" ,python2-unicodecsv)
|
|
|
|
|
,@(package-native-inputs jellyfish))))))
|
2016-02-15 04:38:42 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-unicodecsv
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-unicodecsv")
|
|
|
|
|
(version "0.14.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
;; The test suite is not included in the PyPi release.
|
|
|
|
|
;; https://github.com/jdunck/python-unicodecsv/issues/19
|
|
|
|
|
(uri (string-append "https://github.com/jdunck/python-unicodecsv/"
|
|
|
|
|
"archive/" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; It supports Python 3, but Python 3 can already do Unicode CSV.
|
|
|
|
|
#:python ,python-2))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-unittest2" ,python2-unittest2)))
|
|
|
|
|
(home-page "https://github.com/jdunck/python-unicodecsv")
|
|
|
|
|
(synopsis "Unicode CSV module for Python 2")
|
|
|
|
|
(description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
|
|
|
|
|
module, adding support for Unicode strings.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2016-02-14 02:12:27 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-rarfile
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rarfile")
|
|
|
|
|
(version "2.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rarfile" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
|
|
|
|
|
;; https://github.com/markokr/rarfile/pull/17/
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "python-rarfile-fix-tests.patch"))))
|
2016-02-14 02:12:27 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
;; Many tests fail, but the installation proceeds.
|
|
|
|
|
(lambda _ (zero? (system* "make" "-C" "test" "test")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("which" ,which))) ; required for tests
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("libarchive" ,libarchive)))
|
|
|
|
|
(home-page "https://github.com/markokr/rarfile")
|
|
|
|
|
(synopsis "RAR archive reader for Python")
|
|
|
|
|
(description "This is Python module for RAR archive reading. The interface
|
|
|
|
|
is made as zipfile like as possible.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:isc)))
|
2016-02-14 02:12:27 -05:00
|
|
|
|
|
|
|
|
|
(define-public python2-rarfile
|
|
|
|
|
(package-with-python2 python-rarfile))
|
2016-03-27 22:10:48 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-magic
|
|
|
|
|
(package
|
|
|
|
|
(name "python-magic")
|
|
|
|
|
(version "0.4.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/ahupp/python-magic/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; The tests are unreliable, so don't run them. The tests fail
|
|
|
|
|
;; under Python3 because they were written for Python2 and
|
|
|
|
|
;; contain import statements that do not work in Python3. One of
|
|
|
|
|
;; the tests fails under Python2 because its assertions are
|
|
|
|
|
;; overly stringent; it relies on comparing output strings which
|
|
|
|
|
;; are brittle and can change depending on the version of
|
|
|
|
|
;; libmagic being used and the system on which the test is
|
|
|
|
|
;; running. In my case, under GuixSD 0.10.0, only one test
|
|
|
|
|
;; failed, and it seems to have failed only because the version
|
|
|
|
|
;; of libmagic that is packaged in Guix outputs a slightly
|
|
|
|
|
;; different (but not wrong) string than the one that the test
|
|
|
|
|
;; expected.
|
|
|
|
|
'(#:tests? #f
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
;; Replace a specific method call with a hard-coded
|
|
|
|
|
;; path to the necessary libmagic.so file in the
|
|
|
|
|
;; store. If we don't do this, then the method call
|
|
|
|
|
;; will fail to find the libmagic.so file, which in
|
|
|
|
|
;; turn will cause any application using
|
|
|
|
|
;; python-magic to fail.
|
|
|
|
|
(add-before 'build 'hard-code-path-to-libmagic
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((file (assoc-ref inputs "file")))
|
|
|
|
|
(substitute* "magic.py"
|
|
|
|
|
(("ctypes.util.find_library\\('magic'\\)")
|
|
|
|
|
(string-append "'" file "/lib/libmagic.so'")))
|
2016-08-23 12:45:53 -04:00
|
|
|
|
#t)))
|
|
|
|
|
(add-before 'install 'disable-egg-compression
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((port (open-file "setup.cfg" "a")))
|
|
|
|
|
(display "\n[easy_install]\nzip_ok = 0\n"
|
|
|
|
|
port)
|
|
|
|
|
(close-port port)
|
|
|
|
|
#t))))))
|
2016-03-27 22:10:48 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
;; python-magic needs to be able to find libmagic.so.
|
|
|
|
|
`(("file" ,file)))
|
|
|
|
|
(home-page "https://github.com/ahupp/python-magic")
|
|
|
|
|
(synopsis "File type identification using libmagic")
|
|
|
|
|
(description
|
|
|
|
|
"This module uses ctypes to access the libmagic file type
|
|
|
|
|
identification library. It makes use of the local magic database and
|
|
|
|
|
supports both textual and MIME-type output. Note that this module and
|
|
|
|
|
the python-file module both provide a \"magic.py\" file; these two
|
|
|
|
|
modules, which are different and were developed separately, both serve
|
|
|
|
|
the same purpose: to provide Python bindings for libmagic.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-magic
|
|
|
|
|
(package-with-python2 python-magic))
|
2016-03-27 22:28:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-s3cmd
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-s3cmd")
|
|
|
|
|
(version "1.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
|
(uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
|
2016-03-27 22:28:37 -04:00
|
|
|
|
"s3cmd-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; s3cmd is written for python2 only and contains no tests.
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-dateutil" ,python2-dateutil)
|
|
|
|
|
;; The python-file package also provides a magic.py module.
|
|
|
|
|
;; This is an unfortunate state of affairs; however, s3cmd
|
|
|
|
|
;; fails to install if it cannot find specifically the
|
|
|
|
|
;; python-magic package. Thus we include it, instead of using
|
|
|
|
|
;; python-file. Ironically, s3cmd sometimes works better
|
|
|
|
|
;; without libmagic bindings at all:
|
|
|
|
|
;; https://github.com/s3tools/s3cmd/issues/198
|
|
|
|
|
("python2-magic" ,python2-magic)))
|
|
|
|
|
(home-page "http://s3tools.org/s3cmd")
|
|
|
|
|
(synopsis "Command line tool for S3-compatible storage services")
|
|
|
|
|
(description
|
|
|
|
|
"S3cmd is a command line tool for uploading, retrieving and managing data
|
|
|
|
|
in storage services that are compatible with the Amazon Simple Storage
|
|
|
|
|
Service (S3) protocol, including S3 itself. It supports rsync-like backup,
|
|
|
|
|
GnuPG encryption, and more. It also supports management of Amazon's
|
|
|
|
|
CloudFront content delivery network.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2+)))
|
2016-04-06 07:02:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pkgconfig
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pkgconfig")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pkgconfig" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
|
|
|
|
|
;; and on Python 2 they need the dl module deprecated since Python 2.6.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
|
|
|
|
|
#:configure-flags '("--single-version-externally-managed" "--root=/")
|
|
|
|
|
;; Hard-code the path to pkg-config.
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'build 'patch
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "pkgconfig/pkgconfig.py"
|
|
|
|
|
(("cmd = 'pkg-config")
|
|
|
|
|
(string-append "cmd = '" (which "pkg-config"))))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "http://github.com/matze/pkgconfig")
|
|
|
|
|
(synopsis "Python interface for pkg-config")
|
|
|
|
|
(description "This module provides a Python interface to pkg-config. It
|
|
|
|
|
can be used to find all pkg-config packages, check if a package exists,
|
|
|
|
|
check if a package meets certain version requirements, query CFLAGS and
|
|
|
|
|
LDFLAGS and parse the output to build extensions with setup.py.")
|
2016-04-07 14:12:14 -04:00
|
|
|
|
(license license:expat)))
|
2016-04-06 07:02:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pkgconfig
|
|
|
|
|
(package-with-python2 python-pkgconfig))
|
|
|
|
|
|
2016-04-10 02:46:50 -04:00
|
|
|
|
(define-public python-bz2file
|
|
|
|
|
(package
|
|
|
|
|
(name "python-bz2file")
|
|
|
|
|
(version "0.98")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "bz2file" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2016-08-03 07:01:40 -04:00
|
|
|
|
`(#:tests? #f)) ; Tests use deprecated python modules.
|
2016-04-10 02:46:50 -04:00
|
|
|
|
(home-page "https://github.com/nvawda/bz2file")
|
|
|
|
|
(synopsis "Read and write bzip2-compressed files")
|
|
|
|
|
(description
|
|
|
|
|
"Bz2file is a Python library for reading and writing bzip2-compressed
|
|
|
|
|
files. It contains a drop-in replacement for the I/O interface in the
|
|
|
|
|
standard library's @code{bz2} module, including features from the latest
|
|
|
|
|
development version of CPython that are not available in older releases.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)
|
2016-04-10 02:46:50 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-bz2file))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-bz2file
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-bz2file))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
2016-08-03 07:01:40 -04:00
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
2016-08-04 06:02:01 -04:00
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:phases
|
2016-08-03 07:01:40 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; 'python setup.py test' does not work as of 0.98.
|
|
|
|
|
;; There is only the one test file, so we run it directly.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _ (zero? (system* "python"
|
|
|
|
|
"test_bz2file.py"))))))))))
|
2016-04-10 02:46:50 -04:00
|
|
|
|
|
2016-04-11 07:18:37 -04:00
|
|
|
|
(define-public python-future
|
|
|
|
|
(package
|
|
|
|
|
(name "python-future")
|
|
|
|
|
(version "0.15.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "future" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
;; Many tests connect to the network or are otherwise flawed.
|
|
|
|
|
;; https://github.com/PythonCharmers/python-future/issues/210
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(home-page "http://python-future.org")
|
|
|
|
|
(synopsis "Single-source support for Python 3 and 2")
|
|
|
|
|
(description
|
|
|
|
|
"@code{python-future} is the missing compatibility layer between Python 2 and
|
|
|
|
|
Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
|
|
|
|
|
to support both Python 2 and Python 3 with minimal overhead.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-future))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-future
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-future))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools))))))
|
|
|
|
|
|
2016-04-06 14:49:40 -04:00
|
|
|
|
(define-public python-cysignals
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cysignals")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cysignals" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cython" ,python-cython)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("pari-gp" ,pari-gp)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build python-build-system)
|
|
|
|
|
((guix build gnu-build-system) #:prefix gnu:)
|
|
|
|
|
(guix build utils))
|
|
|
|
|
;; FIXME: Tests are executed after installation and currently fail
|
|
|
|
|
;; when not installing into standard locations; the author is working
|
|
|
|
|
;; on a fix.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'build 'configure
|
|
|
|
|
(assoc-ref gnu:%standard-phases 'configure)))))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/sagemath/cysignals")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Handling of interrupts and signals for Cython")
|
|
|
|
|
(description
|
|
|
|
|
"The cysignals package provides mechanisms to handle interrupts (and
|
|
|
|
|
other signals and errors) in Cython code, using two related approaches,
|
|
|
|
|
for mixed Cython/Python code or external C libraries and pure Cython code,
|
|
|
|
|
respectively.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl3+)))
|
2016-04-06 14:49:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cysignals
|
|
|
|
|
(package-with-python2 python-cysignals))
|
|
|
|
|
|
2016-04-07 08:28:57 -04:00
|
|
|
|
(define-public python2-shedskin
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-shedskin")
|
|
|
|
|
(version "0.9.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/shedskin/shedskin/"
|
|
|
|
|
"releases/download/v" version
|
|
|
|
|
"/shedskin-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-resulting-include-libs
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((libgc (assoc-ref inputs "libgc"))
|
|
|
|
|
(pcre (assoc-ref inputs "pcre")))
|
|
|
|
|
(substitute* "shedskin/makefile.py"
|
|
|
|
|
(("variable == 'CCFLAGS':[ ]*")
|
|
|
|
|
(string-append "variable == 'CCFLAGS':\n"
|
|
|
|
|
" line += ' -I " pcre "/include"
|
|
|
|
|
" -I " libgc "/include'"))
|
|
|
|
|
(("variable == 'LFLAGS':[ ]*")
|
|
|
|
|
(string-append "variable == 'LFLAGS':\n"
|
|
|
|
|
" line += ' -L" pcre "/lib"
|
|
|
|
|
" -L " libgc "/lib'")))
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(inputs `(("pcre" ,pcre)
|
|
|
|
|
("libgc" ,libgc)))
|
|
|
|
|
(home-page "https://shedskin.github.io/")
|
|
|
|
|
(synopsis "Experimental Python-2 to C++ Compiler")
|
|
|
|
|
(description (string-append "This is an experimental compiler for a subset of
|
|
|
|
|
Python. It generates C++ code and a Makefile."))
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:gpl3 license:bsd-3 license:expat))))
|
2016-05-21 19:19:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-rope
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-rope")
|
|
|
|
|
(version "0.10.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rope" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb"))))
|
|
|
|
|
(arguments
|
|
|
|
|
;; Rope is currently python-2 only.
|
|
|
|
|
;; https://github.com/python-rope/rope/issues/57
|
|
|
|
|
`(#:python ,python-2))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-unittest2" ,python2-unittest2)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(home-page "https://github.com/python-rope/rope")
|
|
|
|
|
(synopsis "Refactoring library for Python")
|
|
|
|
|
(description "Rope is a refactoring library for Python. It facilitates
|
|
|
|
|
the renaming, moving and extracting of attributes, functions, modules, fields
|
|
|
|
|
and parameters in Python 2 source code. These refactorings can also be applied
|
|
|
|
|
to occurences in strings and comments.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:gpl2)))
|
2016-05-30 15:16:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-py3status
|
|
|
|
|
(package
|
|
|
|
|
(name "python-py3status")
|
2016-09-12 13:24:51 -04:00
|
|
|
|
(version "3.1")
|
2016-05-30 15:16:38 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "py3status" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-12 13:24:51 -04:00
|
|
|
|
"0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
|
2016-05-30 15:16:38 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/ultrabug/py3status")
|
|
|
|
|
(synopsis "Extensible i3status wrapper written in Python")
|
|
|
|
|
(description "py3status is an i3status wrapper which extends i3status
|
|
|
|
|
functionality in a modular way, allowing you to extend your panel with your
|
|
|
|
|
own code, responding to click events and updating clock every second.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-05-29 13:00:33 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-tblib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tblib")
|
|
|
|
|
(version "1.3.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "tblib" version))
|
|
|
|
|
(sha256 (base32
|
|
|
|
|
"02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Upstream runs tests after installation and the package itself
|
|
|
|
|
;; resides in a subdirectory. Extend PYTHONPATH so it will be
|
|
|
|
|
;; found.
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getcwd) "/build/lib:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/ionelmc/python-tblib")
|
|
|
|
|
(synopsis "Traceback serialization library")
|
|
|
|
|
(description
|
|
|
|
|
"Traceback serialization allows you to:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item Pickle tracebacks and raise exceptions with pickled tracebacks in
|
|
|
|
|
different processes. This allows better error handling when running code over
|
|
|
|
|
multiple processes (imagine multiprocessing, billiard, futures, celery etc).
|
|
|
|
|
|
|
|
|
|
@item Parse traceback strings and raise with the parsed tracebacks.
|
|
|
|
|
@end itemize")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-05-29 13:00:33 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-tblib
|
|
|
|
|
(package-with-python2 python-tblib))
|
2016-05-29 13:00:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-sqlparse
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sqlparse")
|
|
|
|
|
(version "0.1.19")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "sqlparse" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* _
|
|
|
|
|
;; setup.py-integrated 2to3 only affects the build files, but
|
|
|
|
|
;; py.test is using the source files. So we need to convert them
|
|
|
|
|
;; manually.
|
|
|
|
|
(when (zero? (system* "python3"))
|
|
|
|
|
(system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
|
|
|
|
|
(zero? (system* "py.test")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/andialbrecht/sqlparse")
|
|
|
|
|
(synopsis "Non-validating SQL parser")
|
|
|
|
|
(description "Sqlparse is a non-validating SQL parser for Python. It
|
|
|
|
|
provides support for parsing, splitting and formatting SQL statements.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-05-29 13:00:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-sqlparse
|
|
|
|
|
(package-with-python2 python-sqlparse))
|
2016-06-04 02:40:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-greenlet
|
|
|
|
|
(package
|
|
|
|
|
(name "python-greenlet")
|
|
|
|
|
(version "0.4.9")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "greenlet" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://greenlet.readthedocs.io/")
|
|
|
|
|
(synopsis "Lightweight in-process concurrent programming")
|
|
|
|
|
(description
|
|
|
|
|
"Greenlet package is a spin-off of Stackless, a version of CPython
|
|
|
|
|
that supports micro-threads called \"tasklets\". Tasklets run
|
|
|
|
|
pseudo-concurrently (typically in a single or a few OS-level threads) and
|
|
|
|
|
are synchronized with data exchanges on \"channels\".")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (list license:psfl license:expat))))
|
2016-06-04 02:40:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-greenlet
|
|
|
|
|
(package-with-python2 python-greenlet))
|
2016-06-04 02:41:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-gevent
|
|
|
|
|
(package
|
|
|
|
|
(name "python-gevent")
|
|
|
|
|
(version "1.1.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "gevent" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; unbunding libev and c-ares
|
|
|
|
|
(for-each delete-file-recursively '("libev" "c-ares"))
|
|
|
|
|
;; fixing testsuite
|
|
|
|
|
(call-with-output-file "greentest/__init__.py" noop)
|
|
|
|
|
(substitute* "greentest/testrunner.py"
|
|
|
|
|
(("import util") "from . import util")
|
|
|
|
|
(("from util import log") "from .util import log"))))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-greenlet" ,python-greenlet)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("c-ares" ,c-ares)
|
|
|
|
|
("libev" ,libev)))
|
|
|
|
|
(home-page "http://www.gevent.org/")
|
|
|
|
|
(synopsis "Coroutine-based network library")
|
|
|
|
|
(description
|
|
|
|
|
"gevent is a coroutine-based Python networking library that uses greenlet
|
|
|
|
|
to provide a high-level synchronous API on top of the libev event loop.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-gevent
|
|
|
|
|
(package-with-python2 python-gevent))
|
2016-06-04 04:05:07 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-twisted
|
|
|
|
|
(package
|
|
|
|
|
(name "python-twisted")
|
|
|
|
|
(version "16.2.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-06-23 07:23:28 -04:00
|
|
|
|
(uri (pypi-uri "Twisted" version ".tar.bz2"))
|
2016-06-04 04:05:07 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-06-27 08:18:12 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-zope-interface" ,python-zope-interface)))
|
2016-06-04 04:05:07 -04:00
|
|
|
|
(home-page "https://twistedmatrix.com/")
|
|
|
|
|
(synopsis "Asynchronous networking framework written in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Twisted is an extensible framework for Python programming, with special
|
|
|
|
|
focus on event-based network programming and multiprotocol integration.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-twisted
|
|
|
|
|
(package-with-python2 python-twisted))
|
2016-06-07 02:27:10 -04:00
|
|
|
|
|
2016-09-11 14:20:58 -04:00
|
|
|
|
(define-public python-pika
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pika")
|
|
|
|
|
(version "0.10.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pika" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-10-29 21:34:32 -04:00
|
|
|
|
`(("python-pyev" ,python-pyev)
|
|
|
|
|
("python-tornado" ,python-tornado)
|
|
|
|
|
("python-twisted" ,python-twisted)))
|
2016-09-11 14:20:58 -04:00
|
|
|
|
(home-page "https://pika.readthedocs.org")
|
|
|
|
|
(synopsis "Pure Python AMQP Client Library")
|
|
|
|
|
(description
|
|
|
|
|
"Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
|
|
|
|
|
Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
|
|
|
|
|
network support library.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pika
|
|
|
|
|
(package-with-python2 python-pika))
|
|
|
|
|
|
2016-06-07 02:27:10 -04:00
|
|
|
|
(define-public python-ply
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ply")
|
|
|
|
|
(version "3.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/"
|
|
|
|
|
"96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5"
|
|
|
|
|
"/ply-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://www.dabeaz.com/ply/")
|
|
|
|
|
(synopsis "Python Lex & Yacc")
|
|
|
|
|
(description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
|
|
|
|
|
It uses LR parsing and does extensive error checking.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-06-07 02:27:10 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-ply))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ply
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-ply)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-06-07 09:52:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-tabulate
|
|
|
|
|
(package
|
|
|
|
|
(name "python-tabulate")
|
|
|
|
|
(version "0.7.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "tabulate" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch"))
|
|
|
|
|
;; Fix tests
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet '(substitute* '("test/test_cli.py"
|
|
|
|
|
"test/test_input.py"
|
|
|
|
|
"test/test_output.py"
|
|
|
|
|
"test/test_regression.py")
|
|
|
|
|
(("from common") "from nose.tools")))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
;; For testing
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "https://bitbucket.org/astanin/python-tabulate")
|
|
|
|
|
(synopsis "Pretty-print tabular data")
|
|
|
|
|
(description
|
|
|
|
|
"Tabulate is a library and command-line utility to pretty-print tabular
|
|
|
|
|
data in Python.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-tabulate
|
|
|
|
|
(package-with-python2 python-tabulate))
|
2016-06-07 09:53:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-kazoo
|
|
|
|
|
(package
|
|
|
|
|
(name "python-kazoo")
|
|
|
|
|
(version "2.2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "kazoo" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; XXX: needs zookeeper
|
|
|
|
|
(native-inputs
|
2016-06-27 08:32:36 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
2016-06-07 09:53:34 -04:00
|
|
|
|
(home-page "https://kazoo.readthedocs.org")
|
|
|
|
|
(synopsis "High-level Zookeeper client library")
|
|
|
|
|
(description
|
|
|
|
|
"Kazoo is a Python client library for the Apache Zookeeper distributed
|
|
|
|
|
application service. It is designed to be easy to use and to avoid common
|
|
|
|
|
programming errors.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-06-07 09:53:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-kazoo
|
|
|
|
|
(package-with-python2 python-kazoo))
|
2016-06-07 09:54:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pykafka
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pykafka")
|
|
|
|
|
(version "2.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-06-13 14:31:13 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/8b/3e/"
|
|
|
|
|
"384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/"
|
|
|
|
|
"pykafka-" version ".tar.gz"))
|
2016-06-07 09:54:06 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
|
|
|
|
|
(native-inputs
|
2016-06-27 08:36:38 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
2016-06-07 09:54:06 -04:00
|
|
|
|
`(("python-gevent" ,python-gevent)
|
|
|
|
|
("python-kazoo" ,python-kazoo)
|
|
|
|
|
("python-tabulate" ,python-tabulate)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("librdkafka" ,librdkafka)))
|
|
|
|
|
(home-page "https://pykafka.readthedocs.io/")
|
|
|
|
|
(synopsis "Apache Kafka client for Python")
|
|
|
|
|
(description
|
|
|
|
|
"PyKafka is a client for the Apache Kafka distributed messaging system.
|
|
|
|
|
It includes Python implementations of Kafka producers and consumers, which
|
|
|
|
|
are optionally backed by a C extension built on librdkafka.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-06-07 09:54:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pykafka
|
|
|
|
|
(package-with-python2 python-pykafka))
|
2016-06-12 11:40:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-wcwidth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-wcwidth")
|
|
|
|
|
(version "0.1.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/"
|
|
|
|
|
"c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/"
|
|
|
|
|
"wcwidth-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/jquast/wcwidth")
|
2016-07-29 04:23:52 -04:00
|
|
|
|
(synopsis "Measure number of terminal column cells of wide-character codes")
|
2016-06-12 11:40:06 -04:00
|
|
|
|
(description "Wcwidth measures the number of terminal column cells of
|
|
|
|
|
wide-character codes. It is useful for those implementing a terminal emulator,
|
|
|
|
|
or programs that carefully produce output to be interpreted by one. It is a
|
|
|
|
|
Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
|
|
|
|
|
specified in POSIX.1-2001 and POSIX.1-2008.")
|
2016-06-29 22:17:26 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-wcwidth))))))
|
2016-06-12 11:40:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-wcwidth
|
|
|
|
|
(package
|
|
|
|
|
(inherit (package-with-python2
|
|
|
|
|
(strip-python2-variant python-wcwidth)))
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)))))
|
2016-06-16 08:08:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-jsonrpclib
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-jsonrpclib")
|
|
|
|
|
(version "0.1.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/j/jsonrpclib/"
|
|
|
|
|
"jsonrpclib-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#:python ,python-2))
|
|
|
|
|
(home-page "https://github.com/joshmarshall/jsonrpclib/")
|
|
|
|
|
(synopsis "Implementation of JSON-RPC specification for Python")
|
|
|
|
|
(description
|
|
|
|
|
"This library is an implementation of the JSON-RPC specification.
|
|
|
|
|
It supports both the original 1.0 specification, as well as the
|
|
|
|
|
new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
|
|
|
|
|
etc.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-06-23 11:06:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-chai
|
|
|
|
|
(package
|
|
|
|
|
(name "python-chai")
|
|
|
|
|
(version "1.1.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "chai" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/agoragames/chai")
|
|
|
|
|
(synopsis "Mocking framework for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Chai provides an api for mocking, stubbing and spying your python
|
|
|
|
|
objects, patterned after the Mocha library for Ruby.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-06-23 11:06:52 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-chai
|
|
|
|
|
(package-with-python2 python-chai))
|
|
|
|
|
|
2016-06-23 11:07:39 -04:00
|
|
|
|
(define-public python-arrow
|
|
|
|
|
(package
|
|
|
|
|
(name "python-arrow")
|
|
|
|
|
(version "0.8.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "arrow" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
|
|
|
|
;; For testing
|
|
|
|
|
("python-chai" ,python-chai)
|
|
|
|
|
("python-simplejson" ,python-simplejson)))
|
2016-06-27 08:38:05 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-dateutil" ,python-dateutil-2)))
|
2016-06-23 11:07:39 -04:00
|
|
|
|
(home-page "https://github.com/crsmithdev/arrow/")
|
|
|
|
|
(synopsis "Dates and times for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Arrow is a Python library to creating, manipulating, formatting and
|
|
|
|
|
converting dates, times, and timestamps. It implements and updates the
|
|
|
|
|
datetime type.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:asl2.0)))
|
2016-06-23 11:07:39 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-arrow
|
|
|
|
|
(package-with-python2 python-arrow))
|
|
|
|
|
|
2016-06-23 11:08:14 -04:00
|
|
|
|
(define-public python-inflection
|
|
|
|
|
(package
|
|
|
|
|
(name "python-inflection")
|
|
|
|
|
(version "0.3.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin (method url-fetch)
|
|
|
|
|
(uri (pypi-uri "inflection" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/jpvanhal/inflection")
|
|
|
|
|
(synopsis "Python string transformation library")
|
|
|
|
|
(description
|
|
|
|
|
"Inflection is a string transformation library. It singularizes
|
|
|
|
|
and pluralizes English words, and transforms strings from CamelCase to
|
|
|
|
|
underscored string.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-inflection
|
|
|
|
|
(package-with-python2 python-inflection))
|
|
|
|
|
|
2016-06-23 11:09:03 -04:00
|
|
|
|
(define-public python-pylev
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pylev")
|
|
|
|
|
(version "1.3.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pylev" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://github.com/toastdriven/pylev")
|
|
|
|
|
(synopsis "Levenshtein distance implementation in Python")
|
|
|
|
|
(description "Pure Python Levenshtein implementation, based off the
|
|
|
|
|
Wikipedia code samples at
|
|
|
|
|
@url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-06-23 11:09:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pylev
|
|
|
|
|
(package-with-python2 python-pylev))
|
|
|
|
|
|
2016-06-23 11:09:51 -04:00
|
|
|
|
(define-public python-cleo
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cleo")
|
|
|
|
|
(version "0.4.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cleo" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-06-27 08:39:25 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
2016-06-23 11:09:51 -04:00
|
|
|
|
;; For testing
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
2016-06-27 08:39:25 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-psutil" ,python-psutil)
|
|
|
|
|
("python-pylev" ,python-pylev)))
|
2016-06-23 11:09:51 -04:00
|
|
|
|
(home-page "https://github.com/sdispater/cleo")
|
|
|
|
|
(synopsis "Command-line arguments library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Cleo allows you to create command-line commands with signature in
|
|
|
|
|
docstring and colored output.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-cleo
|
|
|
|
|
(package-with-python2 python-cleo))
|
|
|
|
|
|
2016-06-23 11:10:45 -04:00
|
|
|
|
(define-public python-lazy-object-proxy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-lazy-object-proxy")
|
|
|
|
|
(version "1.2.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "lazy-object-proxy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/ionelmc/python-lazy-object-proxy")
|
|
|
|
|
(synopsis "Lazy object proxy for python")
|
|
|
|
|
(description
|
|
|
|
|
"Lazy object proxy is an object that wraps a callable but defers the call
|
|
|
|
|
until the object is actually required, and caches the result of said call.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-2)))
|
2016-06-23 11:10:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-lazy-object-proxy
|
|
|
|
|
(package-with-python2 python-lazy-object-proxy))
|
|
|
|
|
|
2016-06-23 11:11:57 -04:00
|
|
|
|
(define-public python-dnspython
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dnspython")
|
2016-10-07 02:21:04 -04:00
|
|
|
|
(version "1.15.0")
|
2016-06-23 11:11:57 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://www.dnspython.org/kits/"
|
|
|
|
|
version "/dnspython-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-07 02:21:04 -04:00
|
|
|
|
"0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
|
2016-06-23 11:11:57 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; XXX: requires internet access
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://www.dnspython.org")
|
|
|
|
|
(synopsis "DNS toolkit for Python")
|
|
|
|
|
(description
|
|
|
|
|
"dnspython is a DNS toolkit for Python. It supports almost all record
|
|
|
|
|
types. It can be used for queries, zone transfers, and dynamic updates.
|
|
|
|
|
It supports TSIG authenticated messages and EDNS0.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-dnspython
|
|
|
|
|
(package-with-python2 python-dnspython))
|
|
|
|
|
|
2016-06-23 11:13:32 -04:00
|
|
|
|
(define-public python-email-validator
|
|
|
|
|
(package
|
|
|
|
|
(name "python-email-validator")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin (method url-fetch)
|
|
|
|
|
(uri (pypi-uri "email_validator" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'use-dnspython
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("dnspython3") "dnspython"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2016-06-27 08:40:34 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
2016-06-23 11:13:32 -04:00
|
|
|
|
`(("python-dnspython" ,python-dnspython)
|
2016-06-27 08:40:34 -04:00
|
|
|
|
("python-idna" ,python-idna)))
|
2016-06-23 11:13:32 -04:00
|
|
|
|
(home-page "https://github.com/JoshData/python-email-validator")
|
|
|
|
|
(synopsis "Email address validation library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"This library validates email address syntax and deliverability.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:cc0)))
|
2016-06-23 11:13:32 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-email-validator
|
|
|
|
|
(package-with-python2 python-email-validator))
|
|
|
|
|
|
2016-06-23 11:14:53 -04:00
|
|
|
|
(define-public python-ukpostcodeparser
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ukpostcodeparser")
|
|
|
|
|
(version "1.0.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "UkPostcodeParser" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/hamstah/ukpostcodeparser")
|
|
|
|
|
(synopsis "UK Postcode parser for Python")
|
|
|
|
|
(description
|
|
|
|
|
"This library provides the @code{parse_uk_postcode} function for
|
|
|
|
|
parsing UK postcodes.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ukpostcodeparser
|
|
|
|
|
(package-with-python2 python-ukpostcodeparser))
|
2016-06-23 11:16:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-fake-factory
|
|
|
|
|
(package
|
|
|
|
|
(name "python-fake-factory")
|
2016-09-22 13:58:30 -04:00
|
|
|
|
(version "0.7.2")
|
2016-06-23 11:16:04 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "fake-factory" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-09-22 13:58:30 -04:00
|
|
|
|
"0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g"))))
|
2016-06-23 11:16:04 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2016-06-27 08:41:52 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)
|
2016-06-23 11:16:04 -04:00
|
|
|
|
;; For testing
|
|
|
|
|
("python-email-validator" ,python-email-validator)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-ukpostcodeparser" ,python-ukpostcodeparser)))
|
2016-06-27 08:41:52 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-dateutil" ,python-dateutil-2)
|
|
|
|
|
("python-six" ,python-six)))
|
2016-09-22 13:58:30 -04:00
|
|
|
|
(home-page "https://github.com/joke2k/faker")
|
2016-06-23 11:16:04 -04:00
|
|
|
|
(synopsis "Python package that generates fake data")
|
|
|
|
|
(description
|
|
|
|
|
"Faker is a Python package that generates fake data such as names,
|
|
|
|
|
addresses, and phone numbers.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-fake-factory))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-fake-factory
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant
|
|
|
|
|
python-fake-factory))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-06-27 08:43:25 -04:00
|
|
|
|
(propagated-inputs
|
2016-06-23 11:16:04 -04:00
|
|
|
|
`(("python2-ipaddress" ,python2-ipaddress)
|
2016-06-27 08:43:25 -04:00
|
|
|
|
,@(package-propagated-inputs base))))))
|
2016-06-23 11:16:04 -04:00
|
|
|
|
|
2016-06-25 10:49:39 -04:00
|
|
|
|
(define-public python-pyaml
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyaml")
|
|
|
|
|
(version "15.8.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyaml" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyyaml" ,python-pyyaml)))
|
|
|
|
|
(home-page "https://github.com/mk-fg/pretty-yaml")
|
|
|
|
|
(synopsis "YAML pretty-print library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"pyaml is a PyYAML based python module to produce pretty and readable
|
|
|
|
|
YAML-serialized data.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))
|
2016-06-25 10:49:39 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-pyaml
|
|
|
|
|
(package-with-python2 python-pyaml))
|
|
|
|
|
|
2016-06-25 10:50:12 -04:00
|
|
|
|
(define-public python-flexmock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flexmock")
|
|
|
|
|
(version "0.10.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "flexmock" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://flexmock.readthedocs.org")
|
|
|
|
|
(synopsis "Testing library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"flexmock is a testing library for Python that makes it easy to create
|
|
|
|
|
mocks, stubs and fakes.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)))
|
2016-06-25 10:50:12 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-flexmock
|
|
|
|
|
(package-with-python2 python-flexmock))
|
|
|
|
|
|
2016-06-25 10:51:22 -04:00
|
|
|
|
(define-public python-orator
|
|
|
|
|
(package
|
|
|
|
|
(name "python-orator")
|
|
|
|
|
(version "0.8.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "orator" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; no tests
|
|
|
|
|
(native-inputs
|
2016-06-27 09:10:49 -04:00
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
2016-06-25 10:51:22 -04:00
|
|
|
|
`(("python-arrow" ,python-arrow)
|
|
|
|
|
("python-blinker" ,python-blinker)
|
|
|
|
|
("python-cleo" ,python-cleo)
|
|
|
|
|
("python-fake-factory" ,python-fake-factory)
|
|
|
|
|
("python-inflection" ,python-inflection)
|
|
|
|
|
("python-lazy-object-proxy" ,python-lazy-object-proxy)
|
|
|
|
|
("python-pyaml" ,python-pyaml)
|
|
|
|
|
("python-simplejson" ,python-simplejson)
|
|
|
|
|
("python-wrapt" ,python-wrapt)))
|
|
|
|
|
(home-page "https://orator-orm.com/")
|
|
|
|
|
(synopsis "ActiveRecord ORM for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Orator provides a simple ActiveRecord-like Object Relational Mapping
|
|
|
|
|
implementation for Python.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-orator))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-orator
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-orator))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-06-27 09:13:12 -04:00
|
|
|
|
(propagated-inputs
|
2016-06-25 10:51:22 -04:00
|
|
|
|
`(("python2-ipaddress" ,python2-ipaddress)
|
2016-06-27 09:13:12 -04:00
|
|
|
|
,@(package-propagated-inputs base))))))
|
2016-06-29 03:40:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-prompt-toolkit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-prompt-toolkit")
|
2016-08-23 09:09:06 -04:00
|
|
|
|
(version "1.0.7")
|
2016-06-29 03:40:40 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-08-23 09:09:06 -04:00
|
|
|
|
(uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
|
2016-06-29 03:40:40 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-08-23 09:09:06 -04:00
|
|
|
|
"1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg"))))
|
2016-06-29 03:40:40 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-10-29 21:08:30 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; The test suite uses some Windows-specific data types.
|
2016-06-29 03:40:40 -04:00
|
|
|
|
(inputs `(("python-wcwidth" ,python-wcwidth)
|
|
|
|
|
("python-pygments" ,python-pygments)))
|
|
|
|
|
(native-inputs `(("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
|
|
|
|
|
(synopsis "Library for building command line interfaces in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Prompt-Toolkit is a library for building interactive command line
|
|
|
|
|
interfaces in Python. It's like GNU Readline but it also features syntax
|
|
|
|
|
highlighting while typing, out-of-the-box multi-line input editing, advanced
|
|
|
|
|
code completion, incremental search, support for Chinese double-width
|
|
|
|
|
characters, mouse support, and auto suggestions.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-06-29 03:40:40 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-prompt-toolkit))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-prompt-toolkit
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-07-09 08:48:32 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-jedi
|
|
|
|
|
(package
|
|
|
|
|
(name "python-jedi")
|
|
|
|
|
(version "0.9.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jedi" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/davidhalter/jedi")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Autocompletion for Python that can be used for text editors")
|
|
|
|
|
(description
|
|
|
|
|
"Jedi is an autocompletion tool for Python that can be used for text editors.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-jedi))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-jedi
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-jedi))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-07-20 05:33:32 -04:00
|
|
|
|
|
|
|
|
|
(define-public ptpython
|
|
|
|
|
(package
|
|
|
|
|
(name "ptpython")
|
|
|
|
|
(version "0.34")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ptpython" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-docopt" ,python-docopt)
|
|
|
|
|
("python-jedi" ,python-jedi)
|
|
|
|
|
("python-prompt-toolkit" ,python-prompt-toolkit)
|
|
|
|
|
("python-pygments" ,python-pygments)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/jonathanslenders/ptpython")
|
|
|
|
|
(synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
|
|
|
|
|
(description
|
|
|
|
|
"ptpython is a Python read-eval-print loop with IDE-like features.
|
|
|
|
|
It supports syntax highlighting, multiline editing, autocompletion, mouse,
|
|
|
|
|
color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
|
|
|
|
|
etc.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-07-20 05:33:32 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay ptpython-2))))))
|
|
|
|
|
|
|
|
|
|
(define-public ptpython-2
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant ptpython))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(name "ptpython2"))))
|
2016-08-11 09:42:22 -04:00
|
|
|
|
|
2016-08-13 15:23:31 -04:00
|
|
|
|
(define-public python-requests-oauthlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-requests-oauthlib")
|
|
|
|
|
(version "0.6.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "requests-oauthlib" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; removes tests that require network access
|
|
|
|
|
(add-before 'check 'pre-check
|
|
|
|
|
(lambda _
|
|
|
|
|
(delete-file "tests/test_core.py")
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-requests-mock" ,python-requests-mock)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-oauthlib" ,python-oauthlib)
|
|
|
|
|
("python-requests" ,python-requests)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/requests/requests-oauthlib")
|
|
|
|
|
(synopsis
|
|
|
|
|
"OAuthlib authentication support for Requests")
|
|
|
|
|
(description
|
|
|
|
|
"Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
|
|
|
|
|
provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
|
|
|
|
|
(license license:isc)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-requests-oauthlib))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-requests-oauthlib
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-requests-oauthlib))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
|
|
|
|
|
2016-08-11 09:42:22 -04:00
|
|
|
|
(define-public python-stem
|
|
|
|
|
(package
|
|
|
|
|
(name "python-stem")
|
|
|
|
|
(version "1.4.1b")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "stem" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "./run_tests.py" "--unit")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-pep8" ,python-pep8)
|
|
|
|
|
("python-pyflakes" ,python-pyflakes)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-pycrypto" ,python-pycrypto)))
|
|
|
|
|
(home-page "https://stem.torproject.org/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python controller library that allows applications to interact with Tor")
|
|
|
|
|
(description
|
|
|
|
|
"Stem is a Python controller library for Tor. With it you can use Tor's
|
|
|
|
|
control protocol to script against the Tor process and read descriptor data
|
|
|
|
|
relays publish about themselves.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:lgpl3)))
|
2016-08-11 09:42:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-stem
|
|
|
|
|
(package-with-python2 python-stem))
|
2016-08-15 21:40:43 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyserial
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyserial")
|
|
|
|
|
(version "3.1.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyserial" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/pyserial/pyserial")
|
|
|
|
|
(synopsis "Python Serial Port Bindings")
|
|
|
|
|
(description "@code{pyserial} provide serial port bindings for Python. It
|
|
|
|
|
supports different byte sizes, stop bits, parity and flow control with RTS/CTS
|
|
|
|
|
and/or Xon/Xoff. The port is accessed in RAW mode.")
|
2016-08-05 13:21:17 -04:00
|
|
|
|
(license license:bsd-3)
|
2016-08-15 21:40:43 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-pyserial))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyserial
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pyserial))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-13 16:22:49 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-kivy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-kivy")
|
|
|
|
|
(version "1.9.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "kivy" version))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; Tests require many optional packages
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'build (lambda _ (zero? (system* "make" "force"))))
|
|
|
|
|
(add-after 'patch-generated-file-shebangs 'set-sdl-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "KIVY_SDL2_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "sdl-union")
|
|
|
|
|
"/include/SDL2"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-cython" ,python-cython)
|
|
|
|
|
("gstreamer" ,gstreamer)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("sdl-union"
|
|
|
|
|
,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
|
|
|
|
|
(home-page "http://kivy.org")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Multitouch application framework")
|
|
|
|
|
(description
|
|
|
|
|
"A software library for rapid development of
|
|
|
|
|
hardware-accelerated multitouch applications.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-kivy
|
|
|
|
|
(package-with-python2 python-kivy))
|
|
|
|
|
|
|
|
|
|
(define-public python-kivy-next
|
|
|
|
|
(let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package (inherit python-kivy)
|
|
|
|
|
(name "python-kivy-next")
|
2016-08-17 06:04:01 -04:00
|
|
|
|
(version (string-append "1.9.1-" revision "."
|
2016-08-13 16:22:49 -04:00
|
|
|
|
(string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/kivy/kivy")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-kivy-next
|
|
|
|
|
(package-with-python2 python-kivy-next))
|
2016-08-05 13:25:15 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-binaryornot
|
|
|
|
|
(package
|
|
|
|
|
(name "python-binaryornot")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "binaryornot" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-chardet" ,python-chardet)
|
|
|
|
|
("python-hypothesis" ,python-hypothesis)))
|
|
|
|
|
(home-page "https://github.com/audreyr/binaryornot")
|
|
|
|
|
(synopsis "Package to check if a file is binary or text")
|
|
|
|
|
(description "Ultra-lightweight pure Python package to check if a file is
|
|
|
|
|
binary or text.")
|
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-binaryornot))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-binaryornot
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-enum34" ,python2-enum34)
|
|
|
|
|
,@(package-inputs base))))))
|
2016-08-05 13:26:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-nltk
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nltk")
|
|
|
|
|
(version "3.2.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nltk" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-29 22:09:39 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; The tests require some extra resources to be downloaded.
|
|
|
|
|
;; TODO Try packaging these resources.
|
|
|
|
|
#:tests? #f))
|
2016-08-05 13:26:34 -04:00
|
|
|
|
(home-page "http://nltk.org/")
|
|
|
|
|
(synopsis "Natural Language Toolkit")
|
|
|
|
|
(description "It provides interfaces to over 50 corpora and lexical
|
|
|
|
|
resources such as WordNet, along with a suite of text processing libraries
|
|
|
|
|
for classification, tokenization, stemming, tagging, parsing, and semantic
|
|
|
|
|
reasoning, wrappers for natural language processing libraries.")
|
|
|
|
|
(license license:asl2.0)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-nltk))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nltk
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-nltk))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:28:14 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pymongo
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pymongo")
|
|
|
|
|
(version "3.3.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pymongo" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-certifi" ,python-certifi)))
|
|
|
|
|
(home-page "http://github.com/mongodb/mongo-python-driver")
|
|
|
|
|
(synopsis "Python driver for MongoDB")
|
|
|
|
|
(description "Python driver for MongoDB.")
|
|
|
|
|
(license license:asl2.0)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pymongo))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pymongo
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pymongo))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:29:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-sh
|
|
|
|
|
(package
|
|
|
|
|
(name "python-sh")
|
|
|
|
|
(version "1.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "sh" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "https://github.com/amoffat/sh")
|
|
|
|
|
(synopsis "Python subprocess interface")
|
|
|
|
|
(description "Abstracts process invocation by providing a function
|
|
|
|
|
interface for programs.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-sh))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-sh
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-sh))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:30:24 -04:00
|
|
|
|
|
2016-09-11 14:33:40 -04:00
|
|
|
|
(define-public python-consul
|
|
|
|
|
(package
|
|
|
|
|
(name "python-consul")
|
|
|
|
|
(version "0.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "python-consul" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/cablehead/python-consul")
|
|
|
|
|
(synopsis "Python client for Consul")
|
|
|
|
|
(description
|
|
|
|
|
"Python client for @url{http://www.consul.io/,Consul}, a tool for service
|
|
|
|
|
discovery, monitoring and configuration.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-consul
|
|
|
|
|
(let ((consul (package-with-python2 python-consul)))
|
|
|
|
|
(package (inherit consul)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs consul))))))
|
|
|
|
|
|
2016-08-05 13:30:24 -04:00
|
|
|
|
(define-public python-schematics
|
|
|
|
|
(package
|
|
|
|
|
(name "python-schematics")
|
|
|
|
|
(version "1.1.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/schematics/schematics/archive/v" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; requires a bunch of not very nice packages with fixed
|
|
|
|
|
; version requirements (eg python-coveralls)
|
|
|
|
|
(home-page "https://github.com/schematics/schematics")
|
|
|
|
|
(synopsis "Python Data Structures for Humans")
|
|
|
|
|
(description "Python Data Structures for Humans.")
|
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-schematics))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-schematics
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-schematics))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:31:57 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-publicsuffix
|
|
|
|
|
(package
|
|
|
|
|
(name "python-publicsuffix")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "publicsuffix" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; tests use the internet
|
|
|
|
|
(home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
|
|
|
|
|
(synopsis "Get suffix for a domain name")
|
|
|
|
|
(description "Get a public suffix for a domain name using the Public Suffix
|
|
|
|
|
List.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-nltk))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-publicsuffix
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-publicsuffix))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:33:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-publicsuffix2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-publicsuffix2")
|
|
|
|
|
(version "2.20160621")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-29 21:05:15 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; The test suite requires network access.
|
2016-08-05 13:33:09 -04:00
|
|
|
|
(home-page "https://github.com/pombredanne/python-publicsuffix2")
|
|
|
|
|
(synopsis "Get a public suffix for a domain name using the Public Suffix List")
|
|
|
|
|
(description "Get a public suffix for a domain name using the Public Suffix
|
|
|
|
|
List. Forked from and using the same API as the publicsuffix package.")
|
|
|
|
|
(license (list license:expat license:mpl2.0))
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-publicsuffix2))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-publicsuffix2
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-05 13:34:43 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-url")
|
|
|
|
|
(version "0.2.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-publicsuffix" ,python-publicsuffix)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
|
|
|
|
|
(home-page "http://github.com/seomoz/url-py")
|
|
|
|
|
(synopsis "URL Parsing")
|
|
|
|
|
(description "Library for parsing urls.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-url))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-url
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-url))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-publicsuffix" ,python2-publicsuffix)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-14 13:38:20 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-freezegun
|
|
|
|
|
(package
|
|
|
|
|
(name "python-freezegun")
|
|
|
|
|
(version "0.3.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "freezegun" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-coverage" ,python-coverage)
|
|
|
|
|
("python-dateutil-2" ,python-dateutil-2)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
;; The tests are normally executed via `make test`, but the PyPi
|
|
|
|
|
;; package does not include the Makefile.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "nosetests" "./tests/")))))))
|
|
|
|
|
(home-page "https://github.com/spulec/freezegun")
|
|
|
|
|
(synopsis "Test utility for mocking the datetime module")
|
|
|
|
|
(description
|
|
|
|
|
"FreezeGun is a library that allows your python tests to travel through
|
|
|
|
|
time by mocking the datetime module.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-freezegun
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-freezegun))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-17 12:45:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-odfpy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-odfpy")
|
|
|
|
|
(version "1.3.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "odfpy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((srfi srfi-1)
|
|
|
|
|
(guix build python-build-system)
|
|
|
|
|
(guix build utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
;; The test runner invokes python2 and python3 for test*.py.
|
|
|
|
|
;; To avoid having both in inputs, we replicate it here.
|
|
|
|
|
(lambda _
|
|
|
|
|
(every (lambda (test-file)
|
|
|
|
|
(zero? (system* "python" test-file)))
|
|
|
|
|
(find-files "tests" "^test.*\\.py$")))))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/eea/odfpy")
|
|
|
|
|
(synopsis "Python API and tools to manipulate OpenDocument files")
|
|
|
|
|
(description "Collection of libraries and utility programs written in
|
|
|
|
|
Python to manipulate OpenDocument 1.2 files.")
|
|
|
|
|
(license
|
|
|
|
|
;; The software is mainly dual GPL2+ and ASL2.0, but includes a
|
|
|
|
|
;; number of files with other licenses.
|
|
|
|
|
(list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-odfpy
|
|
|
|
|
(package-with-python2 python-odfpy))
|
2016-09-10 06:19:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-cachecontrol
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cachecontrol")
|
|
|
|
|
(version "0.11.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
;; Pypi does not have tests.
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/ionrock/cachecontrol/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Drop test that requires internet access.
|
|
|
|
|
(delete-file "tests/test_regressions.py")
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getcwd) "/build/lib:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(zero? (system* "py.test" "-vv")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-redis" ,python-redis)
|
|
|
|
|
("python-webtest" ,python-webtest)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-requests" ,python-requests)
|
|
|
|
|
("python-lockfile" ,python-lockfile)))
|
|
|
|
|
(home-page "https://github.com/ionrock/cachecontrol")
|
|
|
|
|
(synopsis "The httplib2 caching algorithms for use with requests")
|
|
|
|
|
(description "CacheControl is a port of the caching algorithms in
|
|
|
|
|
@code{httplib2} for use with @code{requests} session objects.")
|
|
|
|
|
(license license:asl2.0)
|
2016-09-10 21:30:54 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-cachecontrol))))))
|
2016-09-10 06:19:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-cachecontrol
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-cachecontrol))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-13 06:30:40 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-lit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-lit")
|
|
|
|
|
(version "0.5.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "lit" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://llvm.org/")
|
|
|
|
|
(synopsis "LLVM Software Testing Tool")
|
|
|
|
|
(description "@code{lit} is a portable tool for executing LLVM and Clang
|
|
|
|
|
style test suites, summarizing their results, and providing indication of
|
|
|
|
|
failures.")
|
|
|
|
|
(license license:ncsa)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-lit))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-lit
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-lit))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 10:07:35 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-pep8
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-pep8")
|
|
|
|
|
(version "1.0.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-pep8" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
|
|
|
|
|
;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
|
|
|
|
|
#:configure-flags '("--single-version-externally-managed" "--root=/")))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pep8" ,python-pep8)))
|
|
|
|
|
(home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
|
|
|
|
|
(synopsis "Py.test plugin to check PEP8 requirements")
|
|
|
|
|
(description "Pytest plugin for checking PEP8 compliance.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-pep8))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-pep8
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 10:07:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-flakes
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-flakes")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-flakes" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
|
|
|
|
|
#:configure-flags '("--single-version-externally-managed" "--root=/")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
|
|
|
|
(lambda _ ; It's easier to run tests after install.
|
|
|
|
|
(zero? (system* "py.test" "-vv")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
("python-pytest-pep8" ,python-pytest-pep8)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyflakes" ,python-pyflakes)))
|
|
|
|
|
(home-page "https://github.com/fschulze/pytest-flakes")
|
|
|
|
|
(synopsis "Py.test plugin to check source code with pyflakes")
|
|
|
|
|
(description "Pytest plugin for checking Python source code with pyflakes.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-flakes))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-flakes
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 10:07:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-natsort
|
|
|
|
|
(package
|
|
|
|
|
(name "python-natsort")
|
|
|
|
|
(version "5.0.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "natsort" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'set-cachedir
|
|
|
|
|
;; Tests require write access to $HOME by default
|
|
|
|
|
(lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-hypothesis" ,python-hypothesis)
|
|
|
|
|
("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-pytest-flakes" ,python-pytest-flakes)
|
|
|
|
|
("python-pytest-pep8" ,python-pytest-pep8)))
|
|
|
|
|
(propagated-inputs ; TODO: Add python-fastnumbers.
|
|
|
|
|
`(("python-pyicu" ,python-pyicu)))
|
|
|
|
|
(home-page "https://github.com/SethMMorton/natsort")
|
|
|
|
|
(synopsis "Natural sorting for python and shell")
|
|
|
|
|
(description
|
|
|
|
|
"Natsort lets you apply natural sorting on lists instead of
|
|
|
|
|
lexicographical. If you use the built-in @code{sorted} method in python
|
|
|
|
|
on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be
|
|
|
|
|
returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a
|
|
|
|
|
function @code{natsorted} that identifies numbers and sorts them separately
|
|
|
|
|
from strings. It can also sort version numbers, real numbers, mixed types
|
|
|
|
|
and more, and comes with a shell command @command{natsort} that exposes this
|
|
|
|
|
functionality in the command line.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-natsort))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-natsort
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-natsort))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-pathlib" ,python2-pathlib)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
("python2-enum34" ,python2-enum34)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-16 15:43:32 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-glances
|
|
|
|
|
(package
|
|
|
|
|
(name "python-glances")
|
|
|
|
|
(version "2.7.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Glances" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-psutil" ,python-psutil)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/nicolargo/glances")
|
|
|
|
|
(synopsis
|
|
|
|
|
"A cross-platform curses-based monitoring tool")
|
|
|
|
|
(description
|
|
|
|
|
"Glances is a curses-based monitoring tool for a wide variety of platforms.
|
|
|
|
|
Glances uses the PsUtil library to get information from your system. It monitors
|
|
|
|
|
CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
|
|
|
|
|
(license license:lgpl3+)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-glances))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-glances
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-glances))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 14:27:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-graphql-core
|
|
|
|
|
(package
|
|
|
|
|
(name "python-graphql-core")
|
|
|
|
|
(version "0.5.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "graphql-core" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2016-10-29 21:49:41 -04:00
|
|
|
|
`(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
|
|
|
|
|
#:phases
|
2016-09-11 14:27:29 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-hardcoded-version
|
|
|
|
|
(lambda _ (substitute*
|
|
|
|
|
"setup.py"
|
|
|
|
|
(("'gevent==1.1rc1'") "'gevent'"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-gevent" ,python-gevent)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest-mock" ,python-pytest-mock)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-promise" ,python-promise)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/graphql-python/graphql-core")
|
|
|
|
|
(synopsis "GraphQL implementation for Python")
|
|
|
|
|
(description
|
|
|
|
|
"GraphQL implementation for Python. GraphQL is a data query language and
|
|
|
|
|
runtime designed and used to request and deliver data to mobile and web apps.
|
|
|
|
|
This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
|
|
|
|
|
to Python.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-graphql-core))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-graphql-core
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-graphql-core))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 14:28:12 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-graphql-relay
|
|
|
|
|
(package
|
|
|
|
|
(name "python-graphql-relay")
|
|
|
|
|
(version "0.4.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "graphql-relay" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-graphql-core" ,python-graphql-core)
|
|
|
|
|
("python-promise" ,python-promise)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/graphql-python/graphql-relay-py")
|
|
|
|
|
(synopsis "Relay implementation for Python")
|
|
|
|
|
(description
|
|
|
|
|
"This is a library to allow the easy creation of Relay-compliant servers
|
|
|
|
|
using the GraphQL Python reference implementation of a GraphQL server. It
|
|
|
|
|
should be noted that the code is a exact port of the original
|
|
|
|
|
@url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
|
|
|
|
|
from Facebook.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-graphql-relay))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-graphql-relay
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-graphql-relay))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 14:32:49 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-graphene
|
|
|
|
|
(package
|
|
|
|
|
(name "python-graphene")
|
|
|
|
|
(version "0.10.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "graphene" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-django-filter" ,python-django-filter)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-psycopg2" ,python-psycopg2)
|
|
|
|
|
("python-pytest-django" ,python-pytest-django)
|
|
|
|
|
("python-sqlalchemy-utils" ,python-sqlalchemy-utils)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-graphql-core" ,python-graphql-core)
|
|
|
|
|
("python-graphql-relay" ,python-graphql-relay)
|
|
|
|
|
("python-iso8601" ,python-iso8601)
|
|
|
|
|
("python-promise" ,python-promise)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "http://graphene-python.org/")
|
|
|
|
|
(synopsis "GraphQL Framework for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Graphene is a Python library for building GraphQL schemas/types.
|
|
|
|
|
A GraphQL schema describes your data model, and provides a GraphQL server
|
|
|
|
|
with an associated set of resolve methods that know how to fetch data.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-graphene))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-graphene
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-graphene))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
("python2-sqlalchemy" ,python2-sqlalchemy)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-11 14:39:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-nautilus
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nautilus")
|
|
|
|
|
(version "0.4.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nautilus" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; fails to import test modules
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-bcrypt" ,python-bcrypt)
|
|
|
|
|
("python-click" ,python-click)
|
|
|
|
|
("python-consul" ,python-consul)
|
|
|
|
|
("python-graphql-core" ,python-graphql-core)
|
|
|
|
|
("python-graphql-relay" ,python-graphql-relay)
|
|
|
|
|
("python-graphene" ,python-graphene)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-nose2" ,python-nose2)
|
|
|
|
|
("python-peewee" ,python-peewee)
|
|
|
|
|
("python-pika" ,python-pika)
|
|
|
|
|
("python-pycparser" ,python-pycparser)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-tornado" ,python-tornado)
|
|
|
|
|
("python-wtforms" ,python-wtforms)))
|
|
|
|
|
(home-page "https://github.com/AlecAivazis/nautilus")
|
|
|
|
|
(synopsis "Library for creating microservice applications")
|
|
|
|
|
(description
|
|
|
|
|
"Nautilus is a framework for flux based microservices that looks to
|
|
|
|
|
provide extendible implementations of common aspects of a cloud so that you can
|
|
|
|
|
focus on building massively scalable web applications.")
|
|
|
|
|
(license license:expat)))
|
2016-10-15 21:45:07 -04:00
|
|
|
|
|
2016-10-16 13:15:46 -04:00
|
|
|
|
(define-public python-betamax
|
|
|
|
|
(package
|
|
|
|
|
(name "python-betamax")
|
|
|
|
|
(version "0.8.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "betamax" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; Many tests fail because they require networking.
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-requests" ,python-requests)))
|
|
|
|
|
(home-page "https://github.com/sigmavirus24/betamax")
|
|
|
|
|
(synopsis "Record HTTP interactions with python-requests")
|
|
|
|
|
(description "Betamax will record your test suite's HTTP interactions and
|
|
|
|
|
replay them during future tests. It is designed to work with python-requests.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-betamax))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-betamax
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-betamax))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-10-23 14:16:39 -04:00
|
|
|
|
|
2016-10-15 21:45:07 -04:00
|
|
|
|
(define-public python-s3transfer
|
|
|
|
|
(package
|
|
|
|
|
(name "python-s3transfer")
|
|
|
|
|
(version "0.1.8")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "s3transfer" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-10-26 20:53:39 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; 7 of the 'integration' tests require network access or login
|
|
|
|
|
;; credentials.
|
|
|
|
|
(zero? (system* "nosetests" "--exclude=integration")))))))
|
2016-10-15 21:45:07 -04:00
|
|
|
|
(native-inputs
|
2016-10-26 20:53:39 -04:00
|
|
|
|
`(("python-docutils" ,python-docutils)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)))
|
2016-10-15 21:45:07 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-botocore" ,python-botocore)))
|
|
|
|
|
(synopsis "Amazon S3 Transfer Manager")
|
|
|
|
|
(description "S3transfer is a Python library for managing Amazon S3
|
|
|
|
|
transfers.")
|
|
|
|
|
(home-page "https://github.com/boto/s3transfer")
|
|
|
|
|
(license license:asl2.0)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-s3transfer))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-s3transfer
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-futures" ,python2-futures)
|
|
|
|
|
("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-10-20 03:52:02 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-setproctitle
|
|
|
|
|
(package
|
|
|
|
|
(name "python-setproctitle")
|
|
|
|
|
(version "1.1.10")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "setproctitle" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'patch-Makefile
|
|
|
|
|
;; Stricly this is only required for the python2 variant.
|
|
|
|
|
;; But adding a phase in an inherited package seems to be
|
|
|
|
|
;; cumbersum. So we patch even for python3.
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((nose (assoc-ref %build-inputs "python2-nose")))
|
|
|
|
|
(when nose
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
|
|
|
|
|
(string-append nose "/bin/nosetests "))))
|
|
|
|
|
#t)))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "PYTHON" (or (which "python3") (which "python")))
|
|
|
|
|
(setenv "PYCONFIG" (or (which "python3-config")
|
|
|
|
|
(which "python-config")))
|
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
|
;; No need to extend PYTHONPATH to find the built package, since
|
|
|
|
|
;; the Makefile will build anyway
|
|
|
|
|
(zero? (system* "make" "check")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("procps" ,procps))) ; required for tests
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/dvarrazzo/py-setproctitle")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Setproctitle implementation for Python to customize the process title")
|
|
|
|
|
(description "The library allows a process to change its title (as displayed
|
|
|
|
|
by system tools such as ps and top).
|
|
|
|
|
|
|
|
|
|
Changing the title is mostly useful in multi-process systems, for
|
|
|
|
|
example when a master process is forked: changing the children's title
|
|
|
|
|
allows to identify the task each process is busy with. The technique
|
|
|
|
|
is used by PostgreSQL and the OpenSSH Server for example.")
|
|
|
|
|
(license license:bsd-3)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-setproctitle))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-setproctitle
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-setproctitle))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-nose" ,python2-nose)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-09-25 16:23:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-validictory
|
|
|
|
|
(package
|
|
|
|
|
(name "python-validictory")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "validictory" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'bootstrap
|
|
|
|
|
;; Move the tests out of the package directory to avoid
|
|
|
|
|
;; packaging them.
|
|
|
|
|
(lambda* _
|
|
|
|
|
(rename-file "validictory/tests" "tests")
|
|
|
|
|
(delete-file "tests/__init__.py")))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Extend PYTHONPATH so the built package will be found.
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getcwd) "/build/lib:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(zero? (system* "py.test" "-vv" )))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/jamesturk/validictory")
|
|
|
|
|
(synopsis "General purpose Python data validator")
|
|
|
|
|
(description "It allows validation of arbitrary Python data structures.
|
|
|
|
|
|
|
|
|
|
The schema format is based on the JSON Schema
|
|
|
|
|
proposal (http://json-schema.org), so combined with json the library is also
|
|
|
|
|
useful as a validator for JSON data.")
|
2016-10-22 15:25:10 -04:00
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-validictory))))))
|
2016-09-25 16:23:34 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-validictory
|
2016-10-22 15:25:10 -04:00
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-validictory))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-10-20 17:45:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-aniso8601
|
|
|
|
|
(package
|
|
|
|
|
(name "python-aniso8601")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "aniso8601" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-dateutil-2" ,python-dateutil-2)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://bitbucket.org/nielsenb/aniso8601")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python library for parsing ISO 8601 strings")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains a library for parsing ISO 8601 datetime strings.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-10-20 17:45:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-flask-restful
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask-restful")
|
|
|
|
|
(version "0.3.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Flask-RESTful" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-aniso8601" ,python-aniso8601)
|
|
|
|
|
("python-flask" ,python-flask)
|
|
|
|
|
("python-pycrypto" ,python-pycrypto)
|
|
|
|
|
("python-pytz" ,python-pytz)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; Optional dependency of Flask. Tests need it.
|
|
|
|
|
("python-blinker" ,python-blinker)
|
|
|
|
|
("python-mock" ,python-mock) ; For tests
|
|
|
|
|
("python-nose" ,python-nose) ; For tests
|
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://www.github.com/flask-restful/flask-restful/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Flask module for creating REST APIs")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains a Flask module for creating REST APIs.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-10-20 17:45:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-flask-basicauth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask-basicauth")
|
|
|
|
|
(version "0.2.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Flask-BasicAuth" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-flask" ,python-flask)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/jpvanhal/flask-basicauth")
|
|
|
|
|
(synopsis
|
|
|
|
|
"HTTP basic access authentication for Flask")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides HTTP basic access authentication for Flask.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-10-20 17:45:39 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-flask-sqlalchemy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask-sqlalchemy")
|
|
|
|
|
(version "2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Flask-SQLAlchemy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-flask" ,python-flask)
|
|
|
|
|
("python-sqlalchemy" ,python-sqlalchemy)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://github.com/mitsuhiko/flask-sqlalchemy")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Module adding SQLAlchemy support to your Flask application")
|
|
|
|
|
(description
|
|
|
|
|
"This package adds SQLAlchemy support to your Flask application.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-10-29 21:32:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-pyev
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyev")
|
|
|
|
|
(version "0.9.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyev" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no test suite
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((libev (string-append (assoc-ref inputs "libev")
|
|
|
|
|
"/lib/libev.so.4")))
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
|
|
|
|
|
(string-append "libev_dll_name = \"" libev "\"")))))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libev" ,libev)))
|
|
|
|
|
(home-page "http://pythonhosted.org/pyev/")
|
|
|
|
|
(synopsis "Python libev interface")
|
|
|
|
|
(description "Pyev provides a Python interface to libev.")
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyev
|
|
|
|
|
(package-with-python2 python-pyev))
|
2016-10-30 14:18:35 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-imagesize
|
|
|
|
|
(package
|
|
|
|
|
(name "python-imagesize")
|
|
|
|
|
(version "0.7.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "imagesize" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-11-05 14:13:05 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; Test files are not distributed on PyPi:
|
|
|
|
|
;; https://github.com/shibukawa/imagesize_py/issues/7
|
|
|
|
|
#:tests? #f))
|
2016-10-30 14:18:35 -04:00
|
|
|
|
(home-page "https://github.com/shibukawa/imagesize_py")
|
|
|
|
|
(synopsis "Gets image size of files in variaous formats in Python")
|
|
|
|
|
(description
|
|
|
|
|
"This package allows determination of image size from
|
|
|
|
|
PNG, JPEG, JPEG2000 and GIF files in pure Python.")
|
|
|
|
|
(license license:expat)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-imagesize))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-imagesize
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-imagesize))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(native-inputs `(("python2-setuptools" ,python2-setuptools)
|
|
|
|
|
,@(package-native-inputs base))))))
|
2016-10-20 06:15:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-axolotl-curve25519
|
|
|
|
|
(package
|
|
|
|
|
(name "python-axolotl-curve25519")
|
|
|
|
|
(version "0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "git://github.com/tgalal/python-axolotl-curve25519")
|
|
|
|
|
(commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2")))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
|
|
|
|
|
#:configure-flags '("--root=/")))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "https://github.com/tgalal/python-axolotl-curve25519")
|
|
|
|
|
(synopsis "Python wrapper for curve25519 library")
|
|
|
|
|
(description "This is a python wrapper for the curve25519 library
|
|
|
|
|
with ed25519 signatures. The C code was pulled from
|
|
|
|
|
libaxolotl-android. At the moment this wrapper is meant for use by
|
|
|
|
|
python-axolotl.")
|
|
|
|
|
(license (list license:gpl3 ; Most files
|
2016-11-05 16:33:32 -04:00
|
|
|
|
license:bsd-3)))) ; curve/curve25519-donna.c
|
2016-10-20 06:15:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-axolotl-curve25519
|
|
|
|
|
(package-with-python2 python-axolotl-curve25519))
|
2016-10-20 06:15:04 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-axolotl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-axolotl")
|
|
|
|
|
(version "0.1.35")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/tgalal/python-axolotl/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1z8d89p7v40p4bwywjm9h4z28fdvra79ddw06azlkrfjbl7dxmz8"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Don't install tests
|
|
|
|
|
(add-before 'install 'remove-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
'("axolotl/tests" "build/lib/axolotl/tests"))
|
|
|
|
|
#t)))
|
|
|
|
|
;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
|
|
|
|
|
#:configure-flags '("--root=/")))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-axolotl-curve25519" ,python-axolotl-curve25519)
|
|
|
|
|
("python-dateutil" ,python-dateutil)
|
|
|
|
|
("python-protobuf" ,python-protobuf)
|
|
|
|
|
("python-pycrypto" ,python-pycrypto)))
|
|
|
|
|
(home-page "https://github.com/tgalal/python-axolotl")
|
|
|
|
|
(synopsis "Python port of libaxolotl-android")
|
|
|
|
|
(description "This is a python port of libaxolotl-android. This
|
|
|
|
|
is a ratcheting forward secrecy protocol that works in synchronous and
|
|
|
|
|
asynchronous messaging environments.")
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-axolotl
|
|
|
|
|
(package-with-python2 python-axolotl))
|
2016-11-09 19:09:02 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-termstyle
|
|
|
|
|
(package
|
|
|
|
|
(name "python-termstyle")
|
|
|
|
|
(version "0.1.11")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "termstyle" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://github.com/gfxmonk/termstyle")
|
|
|
|
|
(synopsis "Console text coloring for Python")
|
|
|
|
|
(description "This package provides console text coloring for Python.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-11-09 19:09:03 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-rednose
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rednose")
|
|
|
|
|
(version "1.2.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rednose" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-deps
|
|
|
|
|
(lambda _
|
|
|
|
|
;; See <https://github.com/JBKahn/rednose/issues/12>
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("python-termstyle") "termstyle"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-colorama" ,python-colorama)
|
|
|
|
|
("python-termstyle" ,python-termstyle)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "https://github.com/JBKahn/rednose")
|
|
|
|
|
(synopsis "Colored output for Python nosetests")
|
|
|
|
|
(description "This package provides colored output for the
|
|
|
|
|
@command{nosetests} command of the Python Nose unit test framework.")
|
|
|
|
|
(license license:bsd-3)))
|
2016-11-09 19:09:04 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-flask-restplus
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flask-restplus")
|
|
|
|
|
(version "0.9.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "flask-restplus" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-aniso8601" ,python-aniso8601)
|
|
|
|
|
("python-flask" ,python-flask)
|
|
|
|
|
("python-jsonschema" ,python-jsonschema)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-tzlocal" ,python-tzlocal)
|
|
|
|
|
("python-blinker" ,python-blinker)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-rednose" ,python-rednose)))
|
|
|
|
|
(home-page "https://github.com/noirbizarre/flask-restplus")
|
|
|
|
|
(synopsis "Framework for documented API development with Flask")
|
|
|
|
|
(description "This package provides a framework for API development with
|
|
|
|
|
the Flask web framework in Python. It is similar to package
|
|
|
|
|
@code{python-flask-restful} but supports the @code{python-swagger}
|
|
|
|
|
documentation builder.")
|
|
|
|
|
(license license:expat)))
|