| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 3 | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> |
| 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 6 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 7 | ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch> |
| 8 | ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com> |
| 9 | ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu> |
| 10 | ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> |
| 11 | ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
| 12 | ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> |
| 13 | ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org> |
| 14 | ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name> |
| 15 | ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com> |
| 16 | ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com> |
| 17 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
| 18 | ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com> |
| 19 | ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com> |
| 20 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> |
| 21 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
| 22 | ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 23 | ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org> |
| 24 | ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com> |
| 25 | ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com> |
| 26 | ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is> |
| 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
| 28 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
| 29 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> |
| 30 | ;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at> |
| 31 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
| 32 | ;;; |
| 33 | ;;; This file is part of GNU Guix. |
| 34 | ;;; |
| 35 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 36 | ;;; under the terms of the GNU General Public License as published by |
| 37 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 38 | ;;; your option) any later version. |
| 39 | ;;; |
| 40 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 41 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 42 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 43 | ;;; GNU General Public License for more details. |
| 44 | ;;; |
| 45 | ;;; You should have received a copy of the GNU General Public License |
| 46 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 47 | |
| 48 | (define-module (gnu packages python) |
| 49 | #:use-module ((guix licenses) #:prefix license:) |
| 50 | #:use-module (gnu packages) |
| 51 | #:use-module (gnu packages algebra) |
| 52 | #:use-module (gnu packages adns) |
| 53 | #:use-module (gnu packages attr) |
| 54 | #:use-module (gnu packages backup) |
| 55 | #:use-module (gnu packages compression) |
| 56 | #:use-module (gnu packages databases) |
| 57 | #:use-module (gnu packages django) |
| 58 | #:use-module (gnu packages file) |
| 59 | #:use-module (gnu packages fontutils) |
| 60 | #:use-module (gnu packages gcc) |
| 61 | #:use-module (gnu packages ghostscript) |
| 62 | #:use-module (gnu packages gl) |
| 63 | #:use-module (gnu packages glib) |
| 64 | #:use-module (gnu packages gstreamer) |
| 65 | #:use-module (gnu packages gtk) |
| 66 | #:use-module (gnu packages icu4c) |
| 67 | #:use-module (gnu packages image) |
| 68 | #:use-module (gnu packages imagemagick) |
| 69 | #:use-module (gnu packages libevent) |
| 70 | #:use-module (gnu packages libffi) |
| 71 | #:use-module (gnu packages linux) |
| 72 | #:use-module (gnu packages maths) |
| 73 | #:use-module (gnu packages multiprecision) |
| 74 | #:use-module (gnu packages networking) |
| 75 | #:use-module (gnu packages ncurses) |
| 76 | #:use-module (gnu packages openstack) |
| 77 | #:use-module (gnu packages password-utils) |
| 78 | #:use-module (gnu packages pcre) |
| 79 | #:use-module (gnu packages perl) |
| 80 | #:use-module (gnu packages pkg-config) |
| 81 | #:use-module (gnu packages readline) |
| 82 | #:use-module (gnu packages sdl) |
| 83 | #:use-module (gnu packages statistics) |
| 84 | #:use-module (gnu packages tex) |
| 85 | #:use-module (gnu packages texinfo) |
| 86 | #:use-module (gnu packages tls) |
| 87 | #:use-module (gnu packages version-control) |
| 88 | #:use-module (gnu packages web) |
| 89 | #:use-module (gnu packages base) |
| 90 | #:use-module (gnu packages xml) |
| 91 | #:use-module (gnu packages xorg) |
| 92 | #:use-module (gnu packages xdisorg) |
| 93 | #:use-module (gnu packages zip) |
| 94 | #:use-module (gnu packages tcl) |
| 95 | #:use-module (gnu packages bdw-gc) |
| 96 | #:use-module (guix packages) |
| 97 | #:use-module (guix download) |
| 98 | #:use-module (guix git-download) |
| 99 | #:use-module (guix utils) |
| 100 | #:use-module (guix build-system gnu) |
| 101 | #:use-module (guix build-system cmake) |
| 102 | #:use-module (guix build-system python) |
| 103 | #:use-module (guix build-system trivial) |
| 104 | #:use-module (srfi srfi-1)) |
| 105 | |
| 106 | (define-public python-2.7 |
| 107 | (package |
| 108 | (name "python") |
| 109 | (version "2.7.12") |
| 110 | (source |
| 111 | (origin |
| 112 | (method url-fetch) |
| 113 | (uri (string-append "https://www.python.org/ftp/python/" |
| 114 | version "/Python-" version ".tar.xz")) |
| 115 | (sha256 |
| 116 | (base32 |
| 117 | "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp")) |
| 118 | (patches (search-patches "python-2.7-search-paths.patch" |
| 119 | "python-2-deterministic-build-info.patch" |
| 120 | "python-2.7-source-date-epoch.patch")) |
| 121 | (modules '((guix build utils))) |
| 122 | ;; suboptimal to delete failing tests here, but if we delete them in the |
| 123 | ;; arguments then we need to make sure to strip out that phase when it |
| 124 | ;; gets inherited by python and python-minimal. |
| 125 | (snippet |
| 126 | '(begin |
| 127 | (for-each delete-file |
| 128 | '("Lib/test/test_compileall.py" |
| 129 | "Lib/test/test_ctypes.py" ; fails on mips64el |
| 130 | "Lib/test/test_distutils.py" |
| 131 | "Lib/test/test_import.py" |
| 132 | "Lib/test/test_shutil.py" |
| 133 | "Lib/test/test_socket.py" |
| 134 | "Lib/test/test_subprocess.py")) |
| 135 | #t)))) |
| 136 | (outputs '("out" |
| 137 | "tk")) ;tkinter; adds 50 MiB to the closure |
| 138 | (build-system gnu-build-system) |
| 139 | (arguments |
| 140 | `(;; 356 tests OK. |
| 141 | ;; 6 tests failed: |
| 142 | ;; test_compileall test_distutils test_import test_shutil test_socket |
| 143 | ;; test_subprocess |
| 144 | ;; 39 tests skipped: |
| 145 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 |
| 146 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk |
| 147 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses |
| 148 | ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl |
| 149 | ;; test_kqueue test_linuxaudiodev test_macos test_macostools |
| 150 | ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet |
| 151 | ;; test_socketserver test_startfile test_sunaudiodev test_timeout |
| 152 | ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet |
| 153 | ;; test_winreg test_winsound test_zipfile64 |
| 154 | ;; 4 skips unexpected on linux2: |
| 155 | ;; test_bsddb test_bsddb3 test_gdb test_ioctl |
| 156 | #:test-target "test" |
| 157 | #:configure-flags |
| 158 | (list "--enable-shared" ;allow embedding |
| 159 | "--with-system-ffi" ;build ctypes |
| 160 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 161 | (assoc-ref %outputs "out") "/lib")) |
| 162 | |
| 163 | #:modules ((ice-9 ftw) (ice-9 match) |
| 164 | (guix build utils) (guix build gnu-build-system)) |
| 165 | #:phases |
| 166 | (modify-phases %standard-phases |
| 167 | (add-before |
| 168 | 'configure 'patch-lib-shells |
| 169 | (lambda _ |
| 170 | ;; Filter for existing files, since some may not exist in all |
| 171 | ;; versions of python that are built with this recipe. |
| 172 | (substitute* (filter file-exists? |
| 173 | '("Lib/subprocess.py" |
| 174 | "Lib/popen2.py" |
| 175 | "Lib/distutils/tests/test_spawn.py" |
| 176 | "Lib/test/test_subprocess.py")) |
| 177 | (("/bin/sh") (which "sh"))) |
| 178 | |
| 179 | ;; Use zero as the timestamp in .pyc files so that builds are |
| 180 | ;; deterministic. TODO: Remove it when this variable is set in |
| 181 | ;; gnu-build-system.scm. |
| 182 | (setenv "SOURCE_DATE_EPOCH" "1") |
| 183 | #t)) |
| 184 | (add-before 'configure 'do-not-record-configure-flags |
| 185 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 186 | ;; Remove configure flags from the installed '_sysconfigdata.py' |
| 187 | ;; and 'Makefile' so we don't end up keeping references to the |
| 188 | ;; build tools. |
| 189 | ;; |
| 190 | ;; Preserve at least '--with-system-ffi' since otherwise the |
| 191 | ;; thing tries to build libffi, fails, and we end up with a |
| 192 | ;; Python that lacks ctypes. |
| 193 | (substitute* "configure" |
| 194 | (("^CONFIG_ARGS=.*$") |
| 195 | (format #f "CONFIG_ARGS='~a'\n" |
| 196 | (if (member "--with-system-ffi" configure-flags) |
| 197 | "--with-system-ffi" |
| 198 | "")))) |
| 199 | #t)) |
| 200 | (add-before |
| 201 | 'check 'pre-check |
| 202 | (lambda _ |
| 203 | ;; 'Lib/test/test_site.py' needs a valid $HOME |
| 204 | (setenv "HOME" (getcwd)) |
| 205 | #t)) |
| 206 | (add-after |
| 207 | 'unpack 'set-source-file-times-to-1980 |
| 208 | ;; XXX One of the tests uses a ZIP library to pack up some of the |
| 209 | ;; source tree, and fails with "ZIP does not support timestamps |
| 210 | ;; before 1980". Work around this by setting the file times in the |
| 211 | ;; source tree to sometime in early 1980. |
| 212 | (lambda _ |
| 213 | (let ((circa-1980 (* 10 366 24 60 60))) |
| 214 | (ftw "." (lambda (file stat flag) |
| 215 | (utime file circa-1980 circa-1980) |
| 216 | #t)) |
| 217 | #t))) |
| 218 | (add-after 'install 'remove-tests |
| 219 | ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* |
| 220 | ;; because these files are used by some libraries out there. |
| 221 | (lambda* (#:key outputs #:allow-other-keys) |
| 222 | (let ((out (assoc-ref outputs "out"))) |
| 223 | (match (scandir (string-append out "/lib") |
| 224 | (lambda (name) |
| 225 | (string-prefix? "python" name))) |
| 226 | ((pythonX.Y) |
| 227 | (let ((testdir (string-append out "/lib/" pythonX.Y |
| 228 | "/test"))) |
| 229 | (with-directory-excursion testdir |
| 230 | (for-each delete-file-recursively |
| 231 | (scandir testdir |
| 232 | (match-lambda |
| 233 | ((or "." "..") #f) |
| 234 | (file |
| 235 | (not |
| 236 | (string-prefix? "test_support." |
| 237 | file)))))) |
| 238 | (call-with-output-file "__init__.py" (const #t)) |
| 239 | #t))))))) |
| 240 | (add-before 'strip 'make-libraries-writable |
| 241 | (lambda* (#:key outputs #:allow-other-keys) |
| 242 | ;; Make .so files writable so they can be stripped. |
| 243 | (let ((out (assoc-ref outputs "out"))) |
| 244 | (for-each (lambda (file) |
| 245 | (chmod file #o755)) |
| 246 | (find-files (string-append out "/lib") |
| 247 | "\\.so")) |
| 248 | #t))) |
| 249 | (add-after 'install 'move-tk-inter |
| 250 | (lambda* (#:key outputs #:allow-other-keys) |
| 251 | ;; When Tkinter support is built move it to a separate output so |
| 252 | ;; that the main output doesn't contain a reference to Tcl/Tk. |
| 253 | (let ((out (assoc-ref outputs "out")) |
| 254 | (tk (assoc-ref outputs "tk"))) |
| 255 | (when tk |
| 256 | (match (find-files out "tkinter.*\\.so") |
| 257 | ((tkinter.so) |
| 258 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we |
| 259 | ;; want it under TK/lib/pythonX.Y/site-packages. |
| 260 | (let* ((len (string-length out)) |
| 261 | (target (string-append |
| 262 | tk "/" |
| 263 | (string-drop |
| 264 | (dirname (dirname tkinter.so)) |
| 265 | len) |
| 266 | "/site-packages"))) |
| 267 | (install-file tkinter.so target) |
| 268 | (delete-file tkinter.so))))) |
| 269 | #t)))))) |
| 270 | (inputs |
| 271 | `(("bzip2" ,bzip2) |
| 272 | ("gdbm" ,gdbm) |
| 273 | ("libffi" ,libffi) ; for ctypes |
| 274 | ("sqlite" ,sqlite) ; for sqlite extension |
| 275 | ("openssl" ,openssl) |
| 276 | ("readline" ,readline) |
| 277 | ("zlib" ,zlib) |
| 278 | ("tcl" ,tcl) |
| 279 | ("tk" ,tk))) ; for tkinter |
| 280 | (native-inputs |
| 281 | `(("pkg-config" ,pkg-config))) |
| 282 | (native-search-paths |
| 283 | (list (search-path-specification |
| 284 | (variable "PYTHONPATH") |
| 285 | (files '("lib/python2.7/site-packages"))))) |
| 286 | (home-page "https://www.python.org") |
| 287 | (synopsis "High-level, dynamically-typed programming language") |
| 288 | (description |
| 289 | "Python is a remarkably powerful dynamic programming language that |
| 290 | is used in a wide variety of application domains. Some of its key |
| 291 | distinguishing features include: clear, readable syntax; strong |
| 292 | introspection capabilities; intuitive object orientation; natural |
| 293 | expression of procedural code; full modularity, supporting hierarchical |
| 294 | packages; exception-based error handling; and very high level dynamic |
| 295 | data types.") |
| 296 | (license license:psfl))) |
| 297 | |
| 298 | ;; Current 2.x version. |
| 299 | (define-public python-2 python-2.7) |
| 300 | |
| 301 | (define-public python-3.5 |
| 302 | (package (inherit python-2) |
| 303 | (version "3.5.2") |
| 304 | (source (origin |
| 305 | (method url-fetch) |
| 306 | (uri (string-append "https://www.python.org/ftp/python/" |
| 307 | version "/Python-" version ".tar.xz")) |
| 308 | (patches (search-patches |
| 309 | "python-fix-tests.patch" |
| 310 | "python-3.5-fix-tests.patch" |
| 311 | "python-3-deterministic-build-info.patch" |
| 312 | "python-3-search-paths.patch")) |
| 313 | (patch-flags '("-p0")) |
| 314 | (sha256 |
| 315 | (base32 |
| 316 | "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400")))) |
| 317 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
| 318 | ((#:tests? _) #t))) |
| 319 | (native-search-paths |
| 320 | (list (search-path-specification |
| 321 | (variable "PYTHONPATH") |
| 322 | (files (list (string-append "lib/python" |
| 323 | (version-major+minor version) |
| 324 | "/site-packages")))))))) |
| 325 | |
| 326 | (define-public python-3.4 |
| 327 | (package (inherit python-3.5) |
| 328 | (version "3.4.5") |
| 329 | (source (origin |
| 330 | (method url-fetch) |
| 331 | (uri (string-append "https://www.python.org/ftp/python/" |
| 332 | version "/Python-" version ".tar.xz")) |
| 333 | (patches (search-patches |
| 334 | "python-fix-tests.patch" |
| 335 | "python-3.4-fix-tests.patch" |
| 336 | "python-3-deterministic-build-info.patch" |
| 337 | "python-3-search-paths.patch")) |
| 338 | (patch-flags '("-p0")) |
| 339 | (sha256 |
| 340 | (base32 |
| 341 | "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f")))))) |
| 342 | |
| 343 | ;; Current 3.x version. |
| 344 | (define-public python-3 python-3.5) |
| 345 | |
| 346 | ;; Current major version. |
| 347 | (define-public python python-3) |
| 348 | |
| 349 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
| 350 | ;; Python (Tk -> libxcb -> Python.) |
| 351 | |
| 352 | (define-public python2-minimal |
| 353 | (package (inherit python-2) |
| 354 | (name "python-minimal") |
| 355 | (outputs '("out")) |
| 356 | (arguments |
| 357 | (substitute-keyword-arguments (package-arguments python-2) |
| 358 | ((#:configure-flags cf) |
| 359 | `(append ,cf '("--without-system-ffi"))))) |
| 360 | (inputs '()))) ;none of the optional dependencies |
| 361 | |
| 362 | (define-public python-minimal |
| 363 | (package (inherit python) |
| 364 | (name "python-minimal") |
| 365 | (outputs '("out")) |
| 366 | |
| 367 | ;; Build fails due to missing ctypes without libffi. |
| 368 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; |
| 369 | ;; zlib is required by 'zipimport', used by pip. |
| 370 | (inputs `(("libffi" ,libffi) |
| 371 | ("openssl" ,openssl) |
| 372 | ("zlib" ,zlib))))) |
| 373 | |
| 374 | (define* (wrap-python3 python |
| 375 | #:optional |
| 376 | (name (string-append (package-name python) "-wrapper"))) |
| 377 | (package (inherit python) |
| 378 | (name name) |
| 379 | (source #f) |
| 380 | (build-system trivial-build-system) |
| 381 | (outputs '("out")) |
| 382 | (propagated-inputs `(("python" ,python))) |
| 383 | (arguments |
| 384 | `(#:modules ((guix build utils)) |
| 385 | #:builder |
| 386 | (begin |
| 387 | (use-modules (guix build utils)) |
| 388 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) |
| 389 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) |
| 390 | (mkdir-p bin) |
| 391 | (for-each |
| 392 | (lambda (old new) |
| 393 | (symlink (string-append python old) |
| 394 | (string-append bin "/" new))) |
| 395 | `("python3" ,"pydoc3" ,"idle3" ,"pip3" ,"python3-config") |
| 396 | `("python" ,"pydoc" ,"idle" ,"pip" ,"python-config")))))) |
| 397 | (synopsis "Wrapper for the Python 3 commands") |
| 398 | (description |
| 399 | "This package provides wrappers for the commands of Python@tie{}3.x such |
| 400 | that they can be invoked under their usual name---e.g., @command{python} |
| 401 | instead of @command{python3}."))) |
| 402 | |
| 403 | (define-public python-wrapper (wrap-python3 python)) |
| 404 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) |
| 405 | |
| 406 | (define-public python-psutil |
| 407 | (package |
| 408 | (name "python-psutil") |
| 409 | (version "4.3.0") |
| 410 | (source |
| 411 | (origin |
| 412 | (method url-fetch) |
| 413 | (uri (pypi-uri "psutil" version)) |
| 414 | (sha256 |
| 415 | (base32 |
| 416 | "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6")))) |
| 417 | (build-system python-build-system) |
| 418 | (native-inputs |
| 419 | `(("python-setuptools" ,python-setuptools))) |
| 420 | (home-page "https://www.github.com/giampaolo/psutil") |
| 421 | (synopsis "Library for retrieving information on running processes") |
| 422 | (description |
| 423 | "psutil (Python system and process utilities) is a library for retrieving |
| 424 | information on running processes and system utilization (CPU, memory, disks, |
| 425 | network) in Python. It is useful mainly for system monitoring, profiling and |
| 426 | limiting process resources and management of running processes. It implements |
| 427 | many functionalities offered by command line tools such as: ps, top, lsof, |
| 428 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, |
| 429 | pidof, tty, taskset, pmap.") |
| 430 | (license license:bsd-3))) |
| 431 | |
| 432 | (define-public python2-psutil |
| 433 | (package-with-python2 python-psutil)) |
| 434 | |
| 435 | (define-public python-passlib |
| 436 | (package |
| 437 | (name "python-passlib") |
| 438 | (version "1.6.5") |
| 439 | (source |
| 440 | (origin |
| 441 | (method url-fetch) |
| 442 | (uri (pypi-uri "passlib" version)) |
| 443 | (sha256 |
| 444 | (base32 |
| 445 | "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8")))) |
| 446 | (build-system python-build-system) |
| 447 | (native-inputs |
| 448 | `(("python-nose" ,python-nose) |
| 449 | ("python-setuptools" ,python-setuptools))) |
| 450 | (inputs |
| 451 | `(("python-py-bcrypt" ,python-py-bcrypt))) |
| 452 | (arguments |
| 453 | `(#:phases |
| 454 | (alist-cons-before |
| 455 | 'check 'set-PYTHON_EGG_CACHE |
| 456 | ;; some tests require access to "$HOME/.cython" |
| 457 | (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp")) |
| 458 | %standard-phases))) |
| 459 | (home-page "https://bitbucket.org/ecollins/passlib") |
| 460 | (synopsis |
| 461 | "Comprehensive password hashing framework") |
| 462 | (description |
| 463 | "Passlib is a password hashing library for Python 2 & 3, which provides |
| 464 | cross-platform implementations of over 30 password hashing algorithms, as well |
| 465 | as a framework for managing existing password hashes. It's designed to be |
| 466 | useful for a wide range of tasks, from verifying a hash found in /etc/shadow, |
| 467 | to providing full-strength password hashing for multi-user application.") |
| 468 | (license license:bsd-3))) |
| 469 | |
| 470 | (define-public python2-passlib |
| 471 | (package-with-python2 python-passlib)) |
| 472 | |
| 473 | (define-public python-py-bcrypt |
| 474 | (package |
| 475 | (name "python-py-bcrypt") |
| 476 | (version "0.4") |
| 477 | (source |
| 478 | (origin |
| 479 | (method url-fetch) |
| 480 | (uri (string-append |
| 481 | "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" |
| 482 | version |
| 483 | ".tar.gz")) |
| 484 | (sha256 |
| 485 | (base32 |
| 486 | "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) |
| 487 | (build-system python-build-system) |
| 488 | (native-inputs |
| 489 | `(("python-setuptools" ,python-setuptools))) |
| 490 | (home-page "https://code.google.com/p/py-bcrypt") |
| 491 | (synopsis |
| 492 | "Bcrypt password hashing and key derivation") |
| 493 | (description |
| 494 | "A python wrapper of OpenBSD's Blowfish password hashing code. This |
| 495 | system hashes passwords using a version of Bruce Schneier's Blowfish block |
| 496 | cipher with modifications designed to raise the cost of off-line password |
| 497 | cracking and frustrate fast hardware implementation. The computation cost of |
| 498 | the algorithm is parametised, so it can be increased as computers get faster. |
| 499 | The intent is to make a compromise of a password database less likely to |
| 500 | result in an attacker gaining knowledge of the plaintext passwords (e.g. using |
| 501 | John the Ripper).") |
| 502 | ;; "sha2.c" is under BSD-3; |
| 503 | ;; "blowfish.c" and "bcrypt.c" are under BSD-4; |
| 504 | ;; the rest is under ISC. |
| 505 | (license (list license:isc license:bsd-3 license:bsd-4)))) |
| 506 | |
| 507 | (define-public python2-py-bcrypt |
| 508 | (package-with-python2 python-py-bcrypt)) |
| 509 | |
| 510 | |
| 511 | (define-public python-paramiko |
| 512 | (package |
| 513 | (name "python-paramiko") |
| 514 | (version "1.16.0") |
| 515 | (source |
| 516 | (origin |
| 517 | (method url-fetch) |
| 518 | (uri (pypi-uri "paramiko" version)) |
| 519 | (sha256 |
| 520 | (base32 |
| 521 | "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj")))) |
| 522 | (build-system python-build-system) |
| 523 | (native-inputs |
| 524 | `(("python-setuptools" ,python-setuptools))) |
| 525 | (propagated-inputs |
| 526 | `(("python-pycrypto" ,python-pycrypto))) |
| 527 | (inputs |
| 528 | `(("python-ecdsa" ,python-ecdsa))) |
| 529 | (home-page "http://www.paramiko.org/") |
| 530 | (synopsis "SSHv2 protocol library") |
| 531 | (description "Paramiko is a python implementation of the SSHv2 protocol, |
| 532 | providing both client and server functionality. While it leverages a Python C |
| 533 | extension for low level cryptography (PyCrypto), Paramiko itself is a pure |
| 534 | Python interface around SSH networking concepts.") |
| 535 | (license license:lgpl2.1+))) |
| 536 | |
| 537 | (define-public python2-paramiko |
| 538 | (package-with-python2 python-paramiko)) |
| 539 | |
| 540 | |
| 541 | (define-public python-httplib2 |
| 542 | (package |
| 543 | (name "python-httplib2") |
| 544 | (version "0.9.2") |
| 545 | (source |
| 546 | (origin |
| 547 | (method url-fetch) |
| 548 | (uri (pypi-uri "httplib2" version)) |
| 549 | (sha256 |
| 550 | (base32 |
| 551 | "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3")))) |
| 552 | (build-system python-build-system) |
| 553 | (native-inputs |
| 554 | `(("python-setuptools" ,python-setuptools))) |
| 555 | (home-page "https://github.com/jcgregorio/httplib2") |
| 556 | (synopsis "Comprehensive HTTP client library") |
| 557 | (description |
| 558 | "A comprehensive HTTP client library supporting many features left out of |
| 559 | other HTTP libraries.") |
| 560 | (license license:expat))) |
| 561 | |
| 562 | (define-public python2-httplib2 |
| 563 | (package-with-python2 python-httplib2)) |
| 564 | |
| 565 | (define-public python-ecdsa |
| 566 | (package |
| 567 | (name "python-ecdsa") |
| 568 | (version "0.13") |
| 569 | (source |
| 570 | (origin |
| 571 | (method url-fetch) |
| 572 | (uri (string-append |
| 573 | "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-" |
| 574 | version |
| 575 | ".tar.gz")) |
| 576 | (sha256 |
| 577 | (base32 |
| 578 | "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4")))) |
| 579 | (build-system python-build-system) |
| 580 | (native-inputs |
| 581 | `(("python-setuptools" ,python-setuptools))) |
| 582 | (inputs |
| 583 | `(("openssl" ,openssl))) |
| 584 | (home-page |
| 585 | "http://github.com/warner/python-ecdsa") |
| 586 | (synopsis |
| 587 | "ECDSA cryptographic signature library (pure python)") |
| 588 | (description |
| 589 | "This is an easy-to-use implementation of ECDSA cryptography (Elliptic |
| 590 | Curve Digital Signature Algorithm), implemented purely in Python. With this |
| 591 | library, you can quickly create keypairs (signing key and verifying key), sign |
| 592 | messages, and verify the signatures. The keys and signatures are very short, |
| 593 | making them easy to handle and incorporate into other protocols.") |
| 594 | (license license:expat))) |
| 595 | |
| 596 | (define-public python2-ecdsa |
| 597 | (package-with-python2 python-ecdsa)) |
| 598 | |
| 599 | (define-public python-ccm |
| 600 | (package |
| 601 | (name "python-ccm") |
| 602 | (version "2.1.6") |
| 603 | (source |
| 604 | (origin |
| 605 | (method url-fetch) |
| 606 | (uri (pypi-uri "ccm" version)) |
| 607 | (sha256 |
| 608 | (base32 |
| 609 | "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n")))) |
| 610 | (build-system python-build-system) |
| 611 | (native-inputs |
| 612 | `(("python-setuptools" ,python-setuptools))) |
| 613 | (inputs |
| 614 | `(("python-pyyaml" ,python-pyyaml) |
| 615 | ("python-six" ,python-six))) |
| 616 | (home-page "https://github.com/pcmanus/ccm") |
| 617 | (synopsis "Cassandra Cluster Manager") |
| 618 | (description "A script/library to create, launch and remove an Apache |
| 619 | Cassandra cluster on localhost.") |
| 620 | (license license:asl2.0))) |
| 621 | |
| 622 | (define-public python2-ccm |
| 623 | (package-with-python2 python-ccm)) |
| 624 | |
| 625 | (define-public python-pytz |
| 626 | (package |
| 627 | (name "python-pytz") |
| 628 | (version "2016.3") |
| 629 | (source |
| 630 | (origin |
| 631 | (method url-fetch) |
| 632 | (uri (pypi-uri "pytz" version ".tar.bz2")) |
| 633 | (sha256 |
| 634 | (base32 |
| 635 | "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1")))) |
| 636 | (build-system python-build-system) |
| 637 | (arguments `(#:tests? #f)) ; no test target |
| 638 | (home-page "http://pythonhosted.org/pytz") |
| 639 | (synopsis "Python timezone library") |
| 640 | (description |
| 641 | "This library allows accurate and cross platform timezone calculations |
| 642 | using Python 2.4 or higher and provides access to the Olson timezone database.") |
| 643 | (license license:expat))) |
| 644 | |
| 645 | (define-public python2-pytz |
| 646 | (package-with-python2 python-pytz)) |
| 647 | |
| 648 | |
| 649 | (define-public python-babel |
| 650 | (package |
| 651 | (name "python-babel") |
| 652 | (version "2.3.2") |
| 653 | (source |
| 654 | (origin |
| 655 | (method url-fetch) |
| 656 | (uri (pypi-uri "Babel" version)) |
| 657 | (sha256 |
| 658 | (base32 |
| 659 | "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw")))) |
| 660 | (build-system python-build-system) |
| 661 | (inputs |
| 662 | `(("python-pytz" ,python-pytz) |
| 663 | ("python-setuptools" ,python-setuptools))) |
| 664 | (arguments `(#:tests? #f)) ; no test target |
| 665 | (home-page "http://babel.pocoo.org/") |
| 666 | (synopsis |
| 667 | "Tools for internationalizing Python applications") |
| 668 | (description |
| 669 | "Babel is composed of two major parts: |
| 670 | - tools to build and work with gettext message catalogs |
| 671 | - a Python interface to the CLDR (Common Locale Data Repository), providing |
| 672 | access to various locale display names, localized number and date formatting, |
| 673 | etc. ") |
| 674 | (license license:bsd-3))) |
| 675 | |
| 676 | (define-public python2-babel |
| 677 | (package-with-python2 python-babel)) |
| 678 | |
| 679 | (define-public python2-backport-ssl-match-hostname |
| 680 | (package |
| 681 | (name "python2-backport-ssl-match-hostname") |
| 682 | (version "3.5.0.1") |
| 683 | (source |
| 684 | (origin |
| 685 | (method url-fetch) |
| 686 | (uri (string-append |
| 687 | "https://pypi.python.org/packages/source/b/" |
| 688 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" |
| 689 | version ".tar.gz")) |
| 690 | (sha256 |
| 691 | (base32 |
| 692 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
| 693 | (build-system python-build-system) |
| 694 | (arguments |
| 695 | `(#:python ,python-2 |
| 696 | #:tests? #f)) ; no test target |
| 697 | (inputs |
| 698 | `(("python2-setuptools" ,python2-setuptools))) |
| 699 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
| 700 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") |
| 701 | (description |
| 702 | "This backport brings the ssl.match_hostname() function to users of |
| 703 | earlier versions of Python. The function checks the hostname in the |
| 704 | certificate returned by the server to which a connection has been established, |
| 705 | and verifies that it matches the intended target hostname.") |
| 706 | (license license:psfl))) |
| 707 | |
| 708 | (define-public python-h5py |
| 709 | (package |
| 710 | (name "python-h5py") |
| 711 | (version "2.6.0") |
| 712 | (source |
| 713 | (origin |
| 714 | (method url-fetch) |
| 715 | (uri (pypi-uri "h5py" version)) |
| 716 | (sha256 |
| 717 | (base32 |
| 718 | "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj")))) |
| 719 | (build-system python-build-system) |
| 720 | (arguments |
| 721 | `(#:tests? #f ; no test target |
| 722 | #:phases |
| 723 | (modify-phases %standard-phases |
| 724 | (add-after 'unpack 'fix-hdf5-paths |
| 725 | (lambda* (#:key inputs #:allow-other-keys) |
| 726 | (let ((prefix (assoc-ref inputs "hdf5"))) |
| 727 | (substitute* "setup_build.py" |
| 728 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") |
| 729 | (string-append "['" prefix "/lib" "']")) |
| 730 | (("'/opt/local/include', '/usr/local/include'") |
| 731 | (string-append "'" prefix "/include" "'"))) |
| 732 | (substitute* "setup_configure.py" |
| 733 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") |
| 734 | (string-append "['" prefix "/lib" "']"))) |
| 735 | #t)))))) |
| 736 | (propagated-inputs |
| 737 | `(("python-numpy" ,python-numpy))) |
| 738 | (inputs |
| 739 | `(("hdf5" ,hdf5) |
| 740 | ("python-six" ,python-six))) |
| 741 | (native-inputs |
| 742 | `(("python-cython" ,python-cython) |
| 743 | ("python-pkgconfig" ,python-pkgconfig))) |
| 744 | (home-page "http://www.h5py.org/") |
| 745 | (synopsis "Read and write HDF5 files from Python") |
| 746 | (description |
| 747 | "The h5py package provides both a high- and low-level interface to the |
| 748 | HDF5 library from Python. The low-level interface is intended to be a |
| 749 | complete wrapping of the HDF5 API, while the high-level component supports |
| 750 | access to HDF5 files, datasets and groups using established Python and NumPy |
| 751 | concepts.") |
| 752 | (license license:bsd-3) |
| 753 | (properties `((python2-variant . ,(delay python2-h5py)))))) |
| 754 | |
| 755 | (define-public python2-h5py |
| 756 | (package-with-python2 (strip-python2-variant python-h5py))) |
| 757 | |
| 758 | (define-public python-lockfile |
| 759 | (package |
| 760 | (name "python-lockfile") |
| 761 | (version "0.12.2") |
| 762 | (source |
| 763 | (origin |
| 764 | (method url-fetch) |
| 765 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" |
| 766 | "lockfile-" version ".tar.gz")) |
| 767 | (sha256 |
| 768 | (base32 |
| 769 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
| 770 | (build-system python-build-system) |
| 771 | (arguments '(#:test-target "check")) |
| 772 | (native-inputs |
| 773 | `(("python-pbr" ,python-pbr))) |
| 774 | (home-page "http://code.google.com/p/pylockfile/") |
| 775 | (synopsis "Platform-independent file locking module") |
| 776 | (description |
| 777 | "The lockfile package exports a LockFile class which provides a simple |
| 778 | API for locking files.") |
| 779 | (license license:expat) |
| 780 | (properties `((python2-variant . ,(delay python2-lockfile)))))) |
| 781 | |
| 782 | (define-public python2-lockfile |
| 783 | (let ((base (package-with-python2 (strip-python2-variant python-lockfile)))) |
| 784 | (package |
| 785 | (inherit base) |
| 786 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 787 | ,@(package-native-inputs base)))))) |
| 788 | |
| 789 | (define-public python-mock |
| 790 | (package |
| 791 | (name "python-mock") |
| 792 | (version "1.0.1") |
| 793 | (source |
| 794 | (origin |
| 795 | (method url-fetch) |
| 796 | (uri (string-append "https://pypi.python.org/packages/source/m/mock/" |
| 797 | "mock-" version ".tar.gz")) |
| 798 | (sha256 |
| 799 | (base32 |
| 800 | "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq")))) |
| 801 | (build-system python-build-system) |
| 802 | (arguments '(#:test-target "check")) |
| 803 | (home-page "http://code.google.com/p/mock/") |
| 804 | (synopsis "Python mocking and patching library for testing") |
| 805 | (description |
| 806 | "Mock is a library for testing in Python. It allows you to replace parts |
| 807 | of your system under test with mock objects and make assertions about how they |
| 808 | have been used.") |
| 809 | (license license:expat))) |
| 810 | |
| 811 | (define-public python2-mock |
| 812 | (package-with-python2 python-mock)) |
| 813 | |
| 814 | |
| 815 | (define-public python-setuptools |
| 816 | (package |
| 817 | (name "python-setuptools") |
| 818 | (version "18.3.1") |
| 819 | (source |
| 820 | (origin |
| 821 | (method url-fetch) |
| 822 | (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-" |
| 823 | version ".tar.gz")) |
| 824 | (sha256 |
| 825 | (base32 |
| 826 | "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig")))) |
| 827 | (build-system python-build-system) |
| 828 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
| 829 | ;; One could bootstrap with an internal untested setuptools. |
| 830 | (arguments |
| 831 | `(#:tests? #f)) |
| 832 | (home-page "https://pypi.python.org/pypi/setuptools") |
| 833 | (synopsis |
| 834 | "Library designed to facilitate packaging Python projects") |
| 835 | (description |
| 836 | "Setuptools is a fully-featured, stable library designed to facilitate |
| 837 | packaging Python projects, where packaging includes: |
| 838 | Python package and module definitions, |
| 839 | distribution package metadata, |
| 840 | test hooks, |
| 841 | project installation, |
| 842 | platform-specific details, |
| 843 | Python 3 support.") |
| 844 | (license license:psfl))) |
| 845 | |
| 846 | (define-public python2-setuptools |
| 847 | (package-with-python2 python-setuptools)) |
| 848 | |
| 849 | |
| 850 | (define-public python-pycrypto |
| 851 | (package |
| 852 | (name "python-pycrypto") |
| 853 | (version "2.6.1") |
| 854 | (source |
| 855 | (origin |
| 856 | (method url-fetch) |
| 857 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 858 | "pycrypto/pycrypto-" version ".tar.gz")) |
| 859 | (sha256 |
| 860 | (base32 |
| 861 | "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) |
| 862 | (build-system python-build-system) |
| 863 | (native-inputs |
| 864 | `(("python-setuptools" ,python-setuptools))) |
| 865 | (inputs |
| 866 | `(("python" ,python) |
| 867 | ("gmp" ,gmp))) |
| 868 | (arguments |
| 869 | `(#:phases |
| 870 | (alist-cons-before |
| 871 | 'build 'set-build-env |
| 872 | ;; pycrypto runs an autoconf configure script behind the scenes |
| 873 | (lambda _ |
| 874 | (setenv "CONFIG_SHELL" (which "bash"))) |
| 875 | %standard-phases))) |
| 876 | (home-page "http://www.pycrypto.org/") |
| 877 | (synopsis "Cryptographic modules for Python") |
| 878 | (description |
| 879 | "Pycrypto is a collection of both secure hash functions (such as SHA256 |
| 880 | and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, |
| 881 | etc.). The package is structured to make adding new modules easy.") |
| 882 | (license license:public-domain))) |
| 883 | |
| 884 | (define-public python2-pycrypto |
| 885 | (let ((pycrypto (package-with-python2 python-pycrypto))) |
| 886 | (package (inherit pycrypto) |
| 887 | (inputs |
| 888 | `(("python" ,python-2) |
| 889 | ,@(alist-delete |
| 890 | "python" |
| 891 | (package-inputs pycrypto))))))) |
| 892 | |
| 893 | (define-public python-keyring |
| 894 | (package |
| 895 | (name "python-keyring") |
| 896 | (version "8.7") |
| 897 | (source |
| 898 | (origin |
| 899 | (method url-fetch) |
| 900 | (uri (pypi-uri "keyring" version)) |
| 901 | (sha256 |
| 902 | (base32 |
| 903 | "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx")))) |
| 904 | (build-system python-build-system) |
| 905 | (native-inputs |
| 906 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 907 | (inputs |
| 908 | `(("python-pycrypto" ,python-pycrypto))) |
| 909 | (arguments |
| 910 | `(#:tests? #f)) ;TODO: tests require pytest |
| 911 | (home-page "http://bitbucket.org/kang/python-keyring-lib") |
| 912 | (synopsis "Store and access your passwords safely") |
| 913 | (description |
| 914 | "The Python keyring lib provides a easy way to access the system keyring |
| 915 | service from python. It can be used in any application that needs safe |
| 916 | password storage.") |
| 917 | ;; "MIT" and PSF dual license |
| 918 | (license license:x11) |
| 919 | (properties `((python2-variant . ,(delay python2-keyring)))))) |
| 920 | |
| 921 | (define-public python2-keyring |
| 922 | (let ((base (package-with-python2 (strip-python2-variant python-keyring)))) |
| 923 | (package |
| 924 | (inherit base) |
| 925 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 926 | ,@(package-native-inputs base)))))) |
| 927 | |
| 928 | (define-public python-six |
| 929 | (package |
| 930 | (name "python-six") |
| 931 | (version "1.10.0") |
| 932 | (source |
| 933 | (origin |
| 934 | (method url-fetch) |
| 935 | (uri (pypi-uri "six" version)) |
| 936 | (sha256 |
| 937 | (base32 |
| 938 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
| 939 | (build-system python-build-system) |
| 940 | (inputs |
| 941 | `(("python-setuptools" ,python-setuptools))) |
| 942 | (home-page "http://pypi.python.org/pypi/six/") |
| 943 | (synopsis "Python 2 and 3 compatibility utilities") |
| 944 | (description |
| 945 | "Six is a Python 2 and 3 compatibility library. It provides utility |
| 946 | functions for smoothing over the differences between the Python versions with |
| 947 | the goal of writing Python code that is compatible on both Python versions. |
| 948 | Six supports every Python version since 2.5. It is contained in only one |
| 949 | Python file, so it can be easily copied into your project.") |
| 950 | (license license:x11))) |
| 951 | |
| 952 | (define-public python2-six |
| 953 | (package-with-python2 python-six)) |
| 954 | |
| 955 | (define-public python-dateutil-2 |
| 956 | (package |
| 957 | (name "python-dateutil") |
| 958 | (version "2.5.2") |
| 959 | (source |
| 960 | (origin |
| 961 | (method url-fetch) |
| 962 | (uri (pypi-uri "python-dateutil" version)) |
| 963 | (sha256 |
| 964 | (base32 |
| 965 | "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86")))) |
| 966 | (build-system python-build-system) |
| 967 | (inputs |
| 968 | `(("python-six" ,python-six))) |
| 969 | (home-page "http://labix.org/python-dateutil") |
| 970 | (synopsis "Extensions to the standard datetime module") |
| 971 | (description |
| 972 | "The dateutil module provides powerful extensions to the standard |
| 973 | datetime module, available in Python 2.3+.") |
| 974 | (license license:bsd-3) |
| 975 | (properties `((python2-variant . ,(delay python2-dateutil-2)))))) |
| 976 | |
| 977 | (define-public python2-dateutil-2 |
| 978 | (let ((base (package-with-python2 (strip-python2-variant python-dateutil-2)))) |
| 979 | (package |
| 980 | (inherit base) |
| 981 | (inputs `(("python2-setuptools" ,python2-setuptools) |
| 982 | ,@(package-inputs base)))))) |
| 983 | |
| 984 | (define-public python-dateutil |
| 985 | (package |
| 986 | (name "python-dateutil") |
| 987 | (version "1.5") ; last version for python < 3 |
| 988 | (source |
| 989 | (origin |
| 990 | (method url-fetch) |
| 991 | (uri (string-append "http://labix.org/download/python-dateutil/" |
| 992 | "python-dateutil-" version ".tar.gz")) |
| 993 | (sha256 |
| 994 | (base32 |
| 995 | "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0")))) |
| 996 | (build-system python-build-system) |
| 997 | (inputs |
| 998 | `(("python-setuptools" ,python-setuptools))) |
| 999 | (home-page "http://labix.org/python-dateutil") |
| 1000 | (synopsis "Extensions to the standard datetime module") |
| 1001 | (description |
| 1002 | "The dateutil module provides powerful extensions to the standard |
| 1003 | datetime module, available in Python 2.3+.") |
| 1004 | (license license:psfl))) |
| 1005 | |
| 1006 | (define-public python2-dateutil |
| 1007 | (package-with-python2 python-dateutil)) |
| 1008 | |
| 1009 | (define-public python-parsedatetime |
| 1010 | (package |
| 1011 | (name "python-parsedatetime") |
| 1012 | (version "2.1") |
| 1013 | (source |
| 1014 | (origin |
| 1015 | (method url-fetch) |
| 1016 | (uri (pypi-uri "parsedatetime" version)) |
| 1017 | (sha256 |
| 1018 | (base32 |
| 1019 | "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p")))) |
| 1020 | (build-system python-build-system) |
| 1021 | (native-inputs |
| 1022 | `(("python-nose" ,python-nose) |
| 1023 | ("python-pyicu" ,python-pyicu))) |
| 1024 | (home-page "http://github.com/bear/parsedatetime/") |
| 1025 | (synopsis |
| 1026 | "Parse human-readable date/time text") |
| 1027 | (description |
| 1028 | "Parse human-readable date/time text.") |
| 1029 | (license license:asl2.0) |
| 1030 | (properties `((python2-variant . ,(delay python2-parsedatetime)))))) |
| 1031 | |
| 1032 | (define-public python2-parsedatetime |
| 1033 | (let ((base (package-with-python2 (strip-python2-variant python-parsedatetime)))) |
| 1034 | (package |
| 1035 | (inherit base) |
| 1036 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 1037 | ,@(package-native-inputs base)))))) |
| 1038 | |
| 1039 | (define-public python-pandas |
| 1040 | (package |
| 1041 | (name "python-pandas") |
| 1042 | (version "0.18.1") |
| 1043 | (source |
| 1044 | (origin |
| 1045 | (method url-fetch) |
| 1046 | (uri (string-append |
| 1047 | "https://pypi.python.org/packages/11/09/" |
| 1048 | "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/" |
| 1049 | "pandas-" version ".tar.gz")) |
| 1050 | (sha256 |
| 1051 | (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j")))) |
| 1052 | (build-system python-build-system) |
| 1053 | (propagated-inputs |
| 1054 | `(("python-numpy" ,python-numpy))) |
| 1055 | (inputs |
| 1056 | `(("python-pytz" ,python-pytz) |
| 1057 | ("python-dateutil" ,python-dateutil-2))) |
| 1058 | (native-inputs |
| 1059 | `(("python-nose" ,python-nose))) |
| 1060 | (home-page "http://pandas.pydata.org") |
| 1061 | (synopsis "Data structures for data analysis, time series, and statistics") |
| 1062 | (description |
| 1063 | "Pandas is a Python package providing fast, flexible, and expressive data |
| 1064 | structures designed to make working with structured (tabular, |
| 1065 | multidimensional, potentially heterogeneous) and time series data both easy |
| 1066 | and intuitive. It aims to be the fundamental high-level building block for |
| 1067 | doing practical, real world data analysis in Python.") |
| 1068 | (license license:bsd-3) |
| 1069 | (properties `((python2-variant . ,(delay python2-pandas)))))) |
| 1070 | |
| 1071 | (define-public python2-pandas |
| 1072 | (let ((base (package-with-python2 (strip-python2-variant python-pandas)))) |
| 1073 | (package |
| 1074 | (inherit base) |
| 1075 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 1076 | ,@(package-native-inputs base)))))) |
| 1077 | |
| 1078 | (define-public python-tzlocal |
| 1079 | (package |
| 1080 | (name "python-tzlocal") |
| 1081 | (version "1.2.2") |
| 1082 | (source |
| 1083 | (origin |
| 1084 | (method url-fetch) |
| 1085 | (uri (pypi-uri "tzlocal" version)) |
| 1086 | (sha256 |
| 1087 | (base32 |
| 1088 | "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb")))) |
| 1089 | (build-system python-build-system) |
| 1090 | (inputs `(("python-pytz" ,python-pytz))) |
| 1091 | (home-page "https://github.com/regebro/tzlocal") |
| 1092 | (synopsis |
| 1093 | "Local timezone information for Python") |
| 1094 | (description |
| 1095 | "Tzlocal returns a tzinfo object with the local timezone information. |
| 1096 | This module attempts to fix a glaring hole in pytz, that there is no way to |
| 1097 | get the local timezone information, unless you know the zoneinfo name, and |
| 1098 | under several distributions that's hard or impossible to figure out.") |
| 1099 | (license license:cc0))) |
| 1100 | |
| 1101 | (define-public python2-pysqlite |
| 1102 | (package |
| 1103 | (name "python2-pysqlite") |
| 1104 | (version "2.8.1") |
| 1105 | (source |
| 1106 | (origin |
| 1107 | (method url-fetch) |
| 1108 | (uri (pypi-uri "pysqlite" version)) |
| 1109 | (sha256 |
| 1110 | (base32 |
| 1111 | "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm")))) |
| 1112 | (build-system python-build-system) |
| 1113 | (inputs |
| 1114 | `(("sqlite" ,sqlite))) |
| 1115 | (arguments |
| 1116 | `(#:python ,python-2 ; incompatible with Python 3 |
| 1117 | #:tests? #f)) ; no test target |
| 1118 | (home-page "http://github.com/ghaering/pysqlite") |
| 1119 | (synopsis "SQLite bindings for Python") |
| 1120 | (description |
| 1121 | "Pysqlite provides SQLite bindings for Python that comply to the |
| 1122 | Database API 2.0T.") |
| 1123 | (license license:zlib))) |
| 1124 | |
| 1125 | |
| 1126 | (define-public python2-mechanize |
| 1127 | (package |
| 1128 | (name "python2-mechanize") |
| 1129 | (version "0.2.5") |
| 1130 | (source |
| 1131 | (origin |
| 1132 | (method url-fetch) |
| 1133 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" |
| 1134 | version ".tar.gz")) |
| 1135 | (sha256 |
| 1136 | (base32 |
| 1137 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) |
| 1138 | (build-system python-build-system) |
| 1139 | (inputs |
| 1140 | `(("python2-setuptools" ,python2-setuptools))) |
| 1141 | (arguments |
| 1142 | `(#:python ,python-2 ; apparently incompatible with Python 3 |
| 1143 | #:tests? #f)) |
| 1144 | ;; test fails with message |
| 1145 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' |
| 1146 | ;; (python-3.3.2) or |
| 1147 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' |
| 1148 | ;; (python-2.7.5). |
| 1149 | ;; The source code is from March 2011 and probably not up-to-date |
| 1150 | ;; with respect to python unit tests. |
| 1151 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") |
| 1152 | (synopsis |
| 1153 | "Stateful programmatic web browsing in Python") |
| 1154 | (description |
| 1155 | "Mechanize implements stateful programmatic web browsing in Python, |
| 1156 | after Andy Lester’s Perl module WWW::Mechanize.") |
| 1157 | (license (license:non-copyleft |
| 1158 | "file://COPYING" |
| 1159 | "See COPYING in the distribution.")))) |
| 1160 | |
| 1161 | |
| 1162 | (define-public python-simplejson |
| 1163 | (package |
| 1164 | (name "python-simplejson") |
| 1165 | (version "3.8.2") |
| 1166 | (source |
| 1167 | (origin |
| 1168 | (method url-fetch) |
| 1169 | (uri (pypi-uri "simplejson" version)) |
| 1170 | (sha256 |
| 1171 | (base32 |
| 1172 | "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m")))) |
| 1173 | (build-system python-build-system) |
| 1174 | (home-page "http://simplejson.readthedocs.org/en/latest/") |
| 1175 | (synopsis |
| 1176 | "Json library for Python") |
| 1177 | (description |
| 1178 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
| 1179 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange |
| 1180 | format. |
| 1181 | |
| 1182 | Simplejson exposes an API familiar to users of the standard library marshal |
| 1183 | and pickle modules. It is the externally maintained version of the json |
| 1184 | library contained in Python 2.6, but maintains compatibility with Python 2.5 |
| 1185 | and (currently) has significant performance advantages, even without using |
| 1186 | the optional C extension for speedups. Simplejson is also supported on |
| 1187 | Python 3.3+.") |
| 1188 | (license license:x11))) |
| 1189 | |
| 1190 | (define-public python2-simplejson |
| 1191 | (package-with-python2 python-simplejson)) |
| 1192 | |
| 1193 | |
| 1194 | (define-public python-pyicu |
| 1195 | (package |
| 1196 | (name "python-pyicu") |
| 1197 | (version "1.9.2") |
| 1198 | (source |
| 1199 | (origin |
| 1200 | (method url-fetch) |
| 1201 | (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-" |
| 1202 | version ".tar.gz")) |
| 1203 | (sha256 |
| 1204 | (base32 |
| 1205 | "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v")))) |
| 1206 | (build-system python-build-system) |
| 1207 | (inputs |
| 1208 | `(("icu4c" ,icu4c))) |
| 1209 | (home-page "http://pyicu.osafoundation.org/") |
| 1210 | (synopsis "Python extension wrapping the ICU C++ API") |
| 1211 | (description |
| 1212 | "PyICU is a python extension wrapping the ICU C++ API.") |
| 1213 | (license license:x11) |
| 1214 | (properties `((python2-variant . ,(delay python2-pyicu)))))) |
| 1215 | |
| 1216 | (define-public python2-pyicu |
| 1217 | (package |
| 1218 | (inherit (package-with-python2 |
| 1219 | (strip-python2-variant python-pyicu))) |
| 1220 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 1221 | |
| 1222 | (define-public python2-dogtail |
| 1223 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and |
| 1224 | ;; spaces in indentation" with Python 3. |
| 1225 | (package |
| 1226 | (name "python2-dogtail") |
| 1227 | (version "0.8.2") |
| 1228 | (source (origin |
| 1229 | (method url-fetch) |
| 1230 | (uri (string-append |
| 1231 | "https://fedorahosted.org/released/dogtail/dogtail-" |
| 1232 | version ".tar.gz")) |
| 1233 | (sha256 |
| 1234 | (base32 |
| 1235 | "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1")))) |
| 1236 | (build-system python-build-system) |
| 1237 | (arguments `(#:python ,python-2 |
| 1238 | #:tests? #f)) ; invalid command "test" |
| 1239 | (home-page "https://fedorahosted.org/dogtail/") |
| 1240 | (synopsis "GUI test tool and automation framework written in Python") |
| 1241 | (description |
| 1242 | "Dogtail is a GUI test tool and automation framework written in Python. |
| 1243 | It uses Accessibility (a11y) technologies to communicate with desktop |
| 1244 | applications. dogtail scripts are written in Python and executed like any |
| 1245 | other Python program.") |
| 1246 | (license license:gpl2+))) |
| 1247 | |
| 1248 | (define-public python2-empy |
| 1249 | (package |
| 1250 | (name "python2-empy") |
| 1251 | (version "3.3") |
| 1252 | (source (origin |
| 1253 | (method url-fetch) |
| 1254 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" |
| 1255 | version ".tar.gz")) |
| 1256 | (sha256 |
| 1257 | (base32 |
| 1258 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) |
| 1259 | (build-system python-build-system) |
| 1260 | (arguments |
| 1261 | `(#:python ,python-2 |
| 1262 | #:phases (alist-replace |
| 1263 | 'check |
| 1264 | (lambda _ |
| 1265 | (zero? (system* "./test.sh"))) |
| 1266 | %standard-phases))) |
| 1267 | (home-page "http://www.alcyone.com/software/empy/") |
| 1268 | (synopsis "Templating system for Python") |
| 1269 | (description |
| 1270 | "EmPy is a system for embedding Python expressions and statements in |
| 1271 | template text; it takes an EmPy source file, processes it, and produces |
| 1272 | output. This is accomplished via expansions, which are special signals to the |
| 1273 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
| 1274 | EmPy can expand arbitrary Python expressions and statements in this way, as |
| 1275 | well as a variety of special forms. Textual data not explicitly delimited in |
| 1276 | this way is sent unaffected to the output, allowing Python to be used in |
| 1277 | effect as a markup language. Also supported are callbacks via hooks, |
| 1278 | recording and playback via diversions, and dynamic, chainable filters. The |
| 1279 | system is highly configurable via command line options and embedded |
| 1280 | commands.") |
| 1281 | (license license:lgpl2.1+))) |
| 1282 | |
| 1283 | (define-public python2-element-tree |
| 1284 | (package |
| 1285 | (name "python2-element-tree") |
| 1286 | (version "1.2.6") |
| 1287 | (source (origin |
| 1288 | (method url-fetch) |
| 1289 | (uri (string-append |
| 1290 | "http://effbot.org/media/downloads/elementtree-" |
| 1291 | version "-20050316.tar.gz")) |
| 1292 | (sha256 |
| 1293 | (base32 |
| 1294 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) |
| 1295 | (build-system python-build-system) |
| 1296 | (arguments |
| 1297 | `(#:python ,python-2 ; seems to be part of Python 3 |
| 1298 | #:tests? #f)) ; no 'test' sub-command |
| 1299 | (synopsis "Toolkit for XML processing in Python") |
| 1300 | (description |
| 1301 | "ElementTree is a Python library supporting lightweight XML processing.") |
| 1302 | (home-page "http://effbot.org/zone/element-index.htm") |
| 1303 | (license (license:x11-style |
| 1304 | "http://docs.python.org/2/license.html" |
| 1305 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) |
| 1306 | |
| 1307 | (define-public python2-pybugz |
| 1308 | (package |
| 1309 | (name "python2-pybugz") |
| 1310 | (version "0.6.11") |
| 1311 | (source (origin |
| 1312 | (method url-fetch) |
| 1313 | (uri (string-append |
| 1314 | "http://bits.liquidx.net/projects/pybugz/pybugz-" |
| 1315 | version ".tar.gz")) |
| 1316 | (sha256 |
| 1317 | (base32 |
| 1318 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
| 1319 | (patches (search-patches "pybugz-stty.patch" |
| 1320 | "pybugz-encode-error.patch")))) |
| 1321 | (build-system python-build-system) |
| 1322 | (arguments |
| 1323 | `(#:python ,python-2 ; SyntaxError with Python 3 |
| 1324 | #:tests? #f)) ; no 'test' sub-command |
| 1325 | (inputs `(("element-tree" ,python2-element-tree))) |
| 1326 | (synopsis "Python and command-line interface to Bugzilla") |
| 1327 | (description |
| 1328 | "PyBugz is a Python library and command-line tool to query the Bugzilla |
| 1329 | bug tracking system. It is meant as an aid to speed up interaction with the |
| 1330 | bug tracker.") |
| 1331 | (home-page "http://www.liquidx.net/pybugz/") |
| 1332 | (license license:gpl2))) |
| 1333 | |
| 1334 | (define-public python-enum34 |
| 1335 | (package |
| 1336 | (name "python-enum34") |
| 1337 | (version "1.1.0") |
| 1338 | (source |
| 1339 | (origin |
| 1340 | (method url-fetch) |
| 1341 | (uri (pypi-uri "enum34" version)) |
| 1342 | (sha256 |
| 1343 | (base32 |
| 1344 | "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp")))) |
| 1345 | (build-system python-build-system) |
| 1346 | (arguments |
| 1347 | `(#:phases |
| 1348 | (alist-replace |
| 1349 | 'check |
| 1350 | (lambda _ (zero? (system* "python" "enum/test_enum.py"))) |
| 1351 | %standard-phases))) |
| 1352 | (home-page "https://pypi.python.org/pypi/enum34") |
| 1353 | (synopsis "Backported Python 3.4 Enum") |
| 1354 | (description |
| 1355 | "Enum34 is the new Python stdlib enum module available in Python 3.4 |
| 1356 | backported for previous versions of Python from 2.4 to 3.3.") |
| 1357 | (license license:bsd-3))) |
| 1358 | |
| 1359 | (define-public python2-enum34 |
| 1360 | (package-with-python2 python-enum34)) |
| 1361 | |
| 1362 | (define-public python-parse-type |
| 1363 | (package |
| 1364 | (name "python-parse-type") |
| 1365 | (version "0.3.4") |
| 1366 | (source |
| 1367 | (origin |
| 1368 | (method url-fetch) |
| 1369 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 1370 | "parse_type/parse_type-" version ".tar.gz")) |
| 1371 | (sha256 |
| 1372 | (base32 |
| 1373 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) |
| 1374 | (build-system python-build-system) |
| 1375 | (inputs |
| 1376 | `(("python-setuptools" ,python-setuptools) |
| 1377 | ("python-six" ,python-six) |
| 1378 | ("python-parse" ,python-parse))) |
| 1379 | (arguments '(#:tests? #f)) ;TODO: tests require pytest |
| 1380 | (home-page "https://github.com/jenisys/parse_type") |
| 1381 | (synopsis "Extended parse module") |
| 1382 | (description |
| 1383 | "Parse_type extends the python parse module.") |
| 1384 | (license license:bsd-3))) |
| 1385 | |
| 1386 | (define-public python-parse |
| 1387 | (package |
| 1388 | (name "python-parse") |
| 1389 | (version "1.6.6") |
| 1390 | (source |
| 1391 | (origin |
| 1392 | (method url-fetch) |
| 1393 | (uri (pypi-uri "parse" version)) |
| 1394 | (sha256 |
| 1395 | (base32 |
| 1396 | "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi")))) |
| 1397 | (build-system python-build-system) |
| 1398 | (arguments |
| 1399 | `(#:phases |
| 1400 | (alist-replace |
| 1401 | 'check |
| 1402 | (lambda _ (zero? (system* "python" "test_parse.py"))) |
| 1403 | %standard-phases))) |
| 1404 | (home-page "https://github.com/r1chardj0n3s/parse") |
| 1405 | (synopsis "Parse strings") |
| 1406 | (description |
| 1407 | "Parse strings using a specification based on the Python format() |
| 1408 | syntax.") |
| 1409 | (license license:x11))) |
| 1410 | |
| 1411 | |
| 1412 | (define-public scons |
| 1413 | (package |
| 1414 | (name "scons") |
| 1415 | (version "2.3.4") |
| 1416 | (source (origin |
| 1417 | (method url-fetch) |
| 1418 | (uri (string-append "mirror://sourceforge/scons/scons/" version |
| 1419 | "/scons-" version ".tar.gz")) |
| 1420 | (sha256 |
| 1421 | (base32 |
| 1422 | "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb")))) |
| 1423 | (build-system python-build-system) |
| 1424 | (arguments |
| 1425 | ;; With Python 3.x, fails to build with a syntax error. |
| 1426 | `(#:python ,python-2 |
| 1427 | #:tests? #f)) ; no 'python setup.py test' command |
| 1428 | (home-page "http://scons.org/") |
| 1429 | (synopsis "Software construction tool written in Python") |
| 1430 | (description |
| 1431 | "SCons is a software construction tool. Think of SCons as an improved, |
| 1432 | cross-platform substitute for the classic Make utility with integrated |
| 1433 | functionality similar to autoconf/automake and compiler caches such as ccache. |
| 1434 | In short, SCons is an easier, more reliable and faster way to build |
| 1435 | software.") |
| 1436 | (license license:x11))) |
| 1437 | |
| 1438 | (define-public python-extras |
| 1439 | (package |
| 1440 | (name "python-extras") |
| 1441 | (version "0.0.3") |
| 1442 | (source |
| 1443 | (origin |
| 1444 | (method url-fetch) |
| 1445 | (uri (string-append |
| 1446 | "https://pypi.python.org/packages/source/e/extras/extras-" |
| 1447 | version ".tar.gz")) |
| 1448 | (sha256 |
| 1449 | (base32 |
| 1450 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) |
| 1451 | (build-system python-build-system) |
| 1452 | (inputs |
| 1453 | `(("python-setuptools" ,python-setuptools))) |
| 1454 | (arguments |
| 1455 | ;; error in setup.cfg: command 'test' has no such option 'buffer' |
| 1456 | '(#:tests? #f)) |
| 1457 | (home-page "https://github.com/testing-cabal/extras") |
| 1458 | (synopsis "Useful extensions to the Python standard library") |
| 1459 | (description |
| 1460 | "Extras is a set of extensions to the Python standard library.") |
| 1461 | (license license:expat))) |
| 1462 | |
| 1463 | (define-public python2-extras |
| 1464 | (package-with-python2 python-extras)) |
| 1465 | |
| 1466 | (define-public python-mimeparse |
| 1467 | (package |
| 1468 | (name "python-mimeparse") |
| 1469 | (version "0.1.4") |
| 1470 | (source |
| 1471 | (origin |
| 1472 | (method url-fetch) |
| 1473 | (uri (string-append |
| 1474 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" |
| 1475 | version ".tar.gz")) |
| 1476 | (sha256 |
| 1477 | (base32 |
| 1478 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) |
| 1479 | (build-system python-build-system) |
| 1480 | (inputs |
| 1481 | `(("python-setuptools" ,python-setuptools))) |
| 1482 | (arguments |
| 1483 | '(#:tests? #f)) ; no setup.py test command |
| 1484 | (home-page |
| 1485 | "https://github.com/dbtsai/python-mimeparse") |
| 1486 | (synopsis "Python library for parsing MIME types") |
| 1487 | (description |
| 1488 | "Mimeparse provides basic functions for parsing MIME type names and |
| 1489 | matching them against a list of media-ranges.") |
| 1490 | (license license:expat))) |
| 1491 | |
| 1492 | (define-public python2-mimeparse |
| 1493 | (package-with-python2 python-mimeparse)) |
| 1494 | |
| 1495 | (define-public python-nose |
| 1496 | (package |
| 1497 | (name "python-nose") |
| 1498 | (version "1.3.7") |
| 1499 | (source |
| 1500 | (origin |
| 1501 | (method url-fetch) |
| 1502 | (uri (pypi-uri "nose" version)) |
| 1503 | (sha256 |
| 1504 | (base32 |
| 1505 | "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi")))) |
| 1506 | (build-system python-build-system) |
| 1507 | (inputs |
| 1508 | `(("python-setuptools" ,python-setuptools))) |
| 1509 | (arguments |
| 1510 | '(#:tests? #f)) ; FIXME: test suite fails |
| 1511 | (home-page "http://readthedocs.org/docs/nose/") |
| 1512 | (synopsis "Python testing library") |
| 1513 | (description |
| 1514 | "Nose extends the unittest library to make testing easier.") |
| 1515 | (license license:lgpl2.0+))) |
| 1516 | |
| 1517 | (define-public python2-nose |
| 1518 | (package-with-python2 python-nose)) |
| 1519 | |
| 1520 | (define-public python-nose2 |
| 1521 | (package |
| 1522 | (name "python-nose2") |
| 1523 | (version "0.6.5") |
| 1524 | (source |
| 1525 | (origin |
| 1526 | (method url-fetch) |
| 1527 | (uri (pypi-uri "nose2" version)) |
| 1528 | (sha256 |
| 1529 | (base32 |
| 1530 | "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7")))) |
| 1531 | (build-system python-build-system) |
| 1532 | (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector' |
| 1533 | (native-inputs |
| 1534 | `(("python-setuptools" ,python-setuptools))) |
| 1535 | (inputs |
| 1536 | `(("python-cov-core" ,python-cov-core) |
| 1537 | ("python-pytest-cov" ,python-pytest-cov) |
| 1538 | ("python-six" ,python-six))) |
| 1539 | (home-page "https://github.com/nose-devs/nose2") |
| 1540 | (synopsis "Next generation of nicer testing for Python") |
| 1541 | (description |
| 1542 | "Nose2 is the next generation of nicer testing for Python, based on the |
| 1543 | plugins branch of unittest2. Nose2 aims to improve on nose by providing a |
| 1544 | better plugin api, being easier for users to configure, and simplifying internal |
| 1545 | interfaces and processes.") |
| 1546 | (license license:bsd-2))) |
| 1547 | |
| 1548 | (define-public python2-nose2 |
| 1549 | (package-with-python2 python-nose2)) |
| 1550 | |
| 1551 | (define-public python-unittest2 |
| 1552 | (package |
| 1553 | (name "python-unittest2") |
| 1554 | (version "0.5.1") |
| 1555 | (source |
| 1556 | (origin |
| 1557 | (method url-fetch) |
| 1558 | (uri (string-append |
| 1559 | "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-" |
| 1560 | version ".tar.gz")) |
| 1561 | (sha256 |
| 1562 | (base32 |
| 1563 | "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q")))) |
| 1564 | (build-system python-build-system) |
| 1565 | (inputs |
| 1566 | `(("python-setuptools" ,python-setuptools))) |
| 1567 | (home-page "http://pypi.python.org/pypi/unittest2") |
| 1568 | (synopsis "Python unit testing library") |
| 1569 | (description |
| 1570 | "Unittest2 is a replacement for the unittest module in the Python |
| 1571 | standard library.") |
| 1572 | (license license:psfl))) |
| 1573 | |
| 1574 | (define-public python2-unittest2 |
| 1575 | (package (inherit python-unittest2) |
| 1576 | (name "python2-unittest2") |
| 1577 | (version "0.5.1") |
| 1578 | (source |
| 1579 | (origin |
| 1580 | (method url-fetch) |
| 1581 | (uri (string-append |
| 1582 | "https://pypi.python.org/packages/source/u/unittest2/unittest2-" |
| 1583 | version ".tar.gz")) |
| 1584 | (sha256 |
| 1585 | (base32 |
| 1586 | "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda")))) |
| 1587 | (inputs |
| 1588 | `(("python2-setuptools" ,python2-setuptools))) |
| 1589 | (arguments |
| 1590 | `(#:python ,python-2 |
| 1591 | #:tests? #f)))) ; no setup.py test command |
| 1592 | |
| 1593 | (define-public python-py |
| 1594 | (package |
| 1595 | (name "python-py") |
| 1596 | (version "1.4.31") |
| 1597 | (source |
| 1598 | (origin |
| 1599 | (method url-fetch) |
| 1600 | (uri (pypi-uri "py" version)) |
| 1601 | (sha256 |
| 1602 | (base32 |
| 1603 | "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56")))) |
| 1604 | (build-system python-build-system) |
| 1605 | (inputs |
| 1606 | `(("python-setuptools" ,python-setuptools))) |
| 1607 | (home-page "http://pylib.readthedocs.org/") |
| 1608 | (synopsis "Python library for parsing, I/O, instrospection, and logging") |
| 1609 | (description |
| 1610 | "Py is a Python library for file name parsing, .ini file parsing, I/O, |
| 1611 | code introspection, and logging.") |
| 1612 | (license license:expat))) |
| 1613 | |
| 1614 | (define-public python2-py |
| 1615 | (package-with-python2 python-py)) |
| 1616 | |
| 1617 | (define-public python-pytest |
| 1618 | (package |
| 1619 | (name "python-pytest") |
| 1620 | (version "2.7.3") |
| 1621 | (source |
| 1622 | (origin |
| 1623 | (method url-fetch) |
| 1624 | (uri (string-append |
| 1625 | "https://pypi.python.org/packages/source/p/pytest/pytest-" |
| 1626 | version ".tar.gz")) |
| 1627 | (sha256 |
| 1628 | (base32 |
| 1629 | "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm")) |
| 1630 | (modules '((guix build utils))) |
| 1631 | (snippet |
| 1632 | ;; One of the tests involves the /usr directory, so it fails. |
| 1633 | '(substitute* "testing/test_argcomplete.py" |
| 1634 | (("def test_remove_dir_prefix\\(self\\):") |
| 1635 | "@pytest.mark.xfail\n def test_remove_dir_prefix(self):"))))) |
| 1636 | (build-system python-build-system) |
| 1637 | (inputs |
| 1638 | `(("python-setuptools" ,python-setuptools) |
| 1639 | ("python-py" ,python-py) |
| 1640 | ("python-nose" ,python-nose) |
| 1641 | ("python-mock" ,python-mock))) |
| 1642 | (home-page "http://pytest.org") |
| 1643 | (synopsis "Python testing library") |
| 1644 | (description |
| 1645 | "Pytest is a testing tool that provides auto-discovery of test modules |
| 1646 | and functions, detailed info on failing assert statements, modular fixtures, |
| 1647 | and many external plugins.") |
| 1648 | (license license:expat))) |
| 1649 | |
| 1650 | (define-public python2-pytest |
| 1651 | (package-with-python2 python-pytest)) |
| 1652 | |
| 1653 | (define-public python-pytest-cov |
| 1654 | (package |
| 1655 | (name "python-pytest-cov") |
| 1656 | (version "2.2.1") |
| 1657 | (source |
| 1658 | (origin |
| 1659 | (method url-fetch) |
| 1660 | (uri (pypi-uri "pytest-cov" version)) |
| 1661 | (sha256 |
| 1662 | (base32 |
| 1663 | "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8")))) |
| 1664 | (build-system python-build-system) |
| 1665 | (inputs |
| 1666 | `(("python-coverage" ,python-coverage) |
| 1667 | ("python-pytest" ,python-pytest))) |
| 1668 | (home-page "https://github.com/pytest-dev/pytest-cov") |
| 1669 | (synopsis "Pytest plugin for measuring coverage") |
| 1670 | (description |
| 1671 | "Pytest-cov produces coverage reports. It supports centralised testing and |
| 1672 | distributed testing in both @code{load} and @code{each} modes. It also |
| 1673 | supports coverage of subprocesses.") |
| 1674 | (license license:expat) |
| 1675 | (properties `((python2-variant . ,(delay python2-pytest-cov)))))) |
| 1676 | |
| 1677 | (define-public python2-pytest-cov |
| 1678 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-cov)))) |
| 1679 | (package |
| 1680 | (inherit base) |
| 1681 | (inputs `(("python2-setuptools" ,python2-setuptools) |
| 1682 | ,@(package-inputs base)))))) |
| 1683 | |
| 1684 | (define-public python-pytest-runner |
| 1685 | (package |
| 1686 | (name "python-pytest-runner") |
| 1687 | (version "2.6.2") |
| 1688 | (source |
| 1689 | (origin |
| 1690 | (method url-fetch) |
| 1691 | (uri (pypi-uri "pytest-runner" version)) |
| 1692 | (sha256 |
| 1693 | (base32 |
| 1694 | "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7")))) |
| 1695 | (build-system python-build-system) |
| 1696 | (arguments |
| 1697 | `(#:phases |
| 1698 | (modify-phases %standard-phases |
| 1699 | ;; The fancy way of setting the version with setuptools_scm does not |
| 1700 | ;; seem to work here. |
| 1701 | (add-after 'unpack 'set-version |
| 1702 | (lambda _ |
| 1703 | (substitute* "docs/conf.py" |
| 1704 | (("version = setuptools_scm\\.get_version\\(root='\\.\\.')") |
| 1705 | (string-append "version = \"" ,version "\""))) |
| 1706 | #t))))) |
| 1707 | (native-inputs |
| 1708 | `(("python-pytest" ,python-pytest) |
| 1709 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 1710 | (home-page "https://github.com/pytest-dev/pytest-runner") |
| 1711 | (synopsis "Invoke py.test as a distutils command") |
| 1712 | (description |
| 1713 | "This package provides a @command{pytest-runner} command that |
| 1714 | @file{setup.py} files can use to run tests.") |
| 1715 | (license license:expat) |
| 1716 | (properties `((python2-variant . ,(delay python2-pytest-runner)))))) |
| 1717 | |
| 1718 | (define-public python2-pytest-runner |
| 1719 | (let ((base (package-with-python2 |
| 1720 | (strip-python2-variant python-pytest-runner)))) |
| 1721 | (package |
| 1722 | (inherit base) |
| 1723 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 1724 | ,@(package-native-inputs base)))))) |
| 1725 | |
| 1726 | (define-public python2-pytest-runner |
| 1727 | (package-with-python2 python-pytest-runner)) |
| 1728 | |
| 1729 | (define-public python-pytest-mock |
| 1730 | (package |
| 1731 | (name "python-pytest-mock") |
| 1732 | (version "1.2") |
| 1733 | (source |
| 1734 | (origin |
| 1735 | (method url-fetch) |
| 1736 | (uri (pypi-uri "pytest-mock" version ".zip")) |
| 1737 | (sha256 |
| 1738 | (base32 |
| 1739 | "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp")))) |
| 1740 | (build-system python-build-system) |
| 1741 | (native-inputs |
| 1742 | `(("unzip" ,unzip))) |
| 1743 | (inputs |
| 1744 | `(("python-py" ,python-py) |
| 1745 | ("python-pytest" ,python-pytest))) |
| 1746 | (home-page "https://github.com/pytest-dev/pytest-mock/") |
| 1747 | (synopsis "Thin-wrapper around the mock package for easier use with py.test") |
| 1748 | (description |
| 1749 | "This plugin installs a @code{mocker} fixture which is a thin-wrapper |
| 1750 | around the patching API provided by the @code{mock} package, but with the |
| 1751 | benefit of not having to worry about undoing patches at the end of a test. |
| 1752 | The mocker fixture has the same API as @code{mock.patch}, supporting the |
| 1753 | same arguments.") |
| 1754 | (properties `((python2-variant . ,(delay python2-pytest-mock)))) |
| 1755 | (license license:expat))) |
| 1756 | |
| 1757 | (define-public python2-pytest-mock |
| 1758 | (let ((base (package-with-python2 |
| 1759 | (strip-python2-variant python-pytest-mock)))) |
| 1760 | (package (inherit base) |
| 1761 | (native-inputs |
| 1762 | `(("python2-setuptools" ,python2-setuptools) |
| 1763 | ,@(package-native-inputs base))) |
| 1764 | (inputs |
| 1765 | `(("python2-mock" ,python2-mock) |
| 1766 | ,@(package-inputs base)))))) |
| 1767 | |
| 1768 | (define-public python-pytest-xdist |
| 1769 | (package |
| 1770 | (name "python-pytest-xdist") |
| 1771 | (version "1.14") |
| 1772 | (source |
| 1773 | (origin |
| 1774 | (method url-fetch) |
| 1775 | (uri (pypi-uri "pytest-xdist" version ".zip")) |
| 1776 | (sha256 |
| 1777 | (base32 |
| 1778 | "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja")))) |
| 1779 | (build-system python-build-system) |
| 1780 | (native-inputs |
| 1781 | `(("unzip" ,unzip) |
| 1782 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 1783 | (inputs |
| 1784 | `(("python-apipkg" ,python-apipkg) |
| 1785 | ("python-execnet" ,python-execnet) |
| 1786 | ("python-pytest" ,python-pytest) |
| 1787 | ("python-py" ,python-py))) |
| 1788 | (home-page |
| 1789 | "https://github.com/pytest-dev/pytest-xdist") |
| 1790 | (synopsis |
| 1791 | "Plugin for py.test with distributed testing and loop-on-failing modes") |
| 1792 | (description |
| 1793 | "The pytest-xdist plugin extends py.test with some unique test execution |
| 1794 | modes: parallelization, running tests in boxed subprocesses, the ability |
| 1795 | to run tests repeatedly when failed, and the ability to run tests on multiple |
| 1796 | Python interpreters or platforms. It uses rsync to copy the existing |
| 1797 | program code to a remote location, executes there, and then syncs the |
| 1798 | result back.") |
| 1799 | (license license:expat) |
| 1800 | (properties `((python2-variant . ,(delay python2-pytest-xdist)))))) |
| 1801 | |
| 1802 | (define-public python2-pytest-xdist |
| 1803 | (let ((base (package-with-python2 |
| 1804 | (strip-python2-variant python-pytest-xdist)))) |
| 1805 | (package |
| 1806 | (inherit base) |
| 1807 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 1808 | ,@(package-native-inputs base)))))) |
| 1809 | |
| 1810 | (define-public python-scripttest |
| 1811 | (package |
| 1812 | (name "python-scripttest") |
| 1813 | (version "1.3") |
| 1814 | (source |
| 1815 | (origin |
| 1816 | (method url-fetch) |
| 1817 | (uri (string-append |
| 1818 | "https://pypi.python.org/packages/source/s/scripttest/scripttest-" |
| 1819 | version ".tar.gz")) |
| 1820 | (sha256 |
| 1821 | (base32 |
| 1822 | "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m")))) |
| 1823 | (build-system python-build-system) |
| 1824 | (inputs |
| 1825 | `(("python-setuptools" ,python-setuptools) |
| 1826 | ("python-pytest" ,python-pytest))) |
| 1827 | (home-page "http://pythonpaste.org/scripttest/") |
| 1828 | (synopsis "Python library to test command-line scripts") |
| 1829 | (description "Scripttest is a Python helper library for testing |
| 1830 | interactive command-line applications. With it you can run a script in a |
| 1831 | subprocess and see the output as well as any file modifications.") |
| 1832 | (license license:expat))) |
| 1833 | |
| 1834 | (define-public python2-scripttest |
| 1835 | (package-with-python2 python-scripttest)) |
| 1836 | |
| 1837 | (define-public python-testtools |
| 1838 | (package |
| 1839 | (name "python-testtools") |
| 1840 | (version "1.0.0") |
| 1841 | (source |
| 1842 | (origin |
| 1843 | (method url-fetch) |
| 1844 | (uri (string-append |
| 1845 | "https://pypi.python.org/packages/source/t/testtools/testtools-" |
| 1846 | version ".tar.gz")) |
| 1847 | (sha256 |
| 1848 | (base32 |
| 1849 | "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx")))) |
| 1850 | (build-system python-build-system) |
| 1851 | (propagated-inputs |
| 1852 | `(("python-mimeparse" ,python-mimeparse))) |
| 1853 | (inputs |
| 1854 | `(("python-setuptools" ,python-setuptools) |
| 1855 | ("python-extras" ,python-extras))) |
| 1856 | (home-page "https://github.com/testing-cabal/testtools") |
| 1857 | (synopsis |
| 1858 | "Extensions to the Python standard library unit testing framework") |
| 1859 | (description |
| 1860 | "Testtools extends the Python standard library unit testing framework to |
| 1861 | provide matchers, more debugging information, and cross-Python |
| 1862 | compatibility.") |
| 1863 | (license license:psfl))) |
| 1864 | |
| 1865 | (define-public python2-testtools |
| 1866 | (package-with-python2 python-testtools)) |
| 1867 | |
| 1868 | (define-public python-testscenarios |
| 1869 | (package |
| 1870 | (name "python-testscenarios") |
| 1871 | (version "0.4") |
| 1872 | (source |
| 1873 | (origin |
| 1874 | (method url-fetch) |
| 1875 | (uri (string-append |
| 1876 | "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-" |
| 1877 | version ".tar.gz")) |
| 1878 | (sha256 |
| 1879 | (base32 |
| 1880 | "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) |
| 1881 | (build-system python-build-system) |
| 1882 | (inputs |
| 1883 | `(("python-setuptools" ,python-setuptools) |
| 1884 | ("python-testtools" ,python-testtools) |
| 1885 | ("python-mimeparse" ,python-mimeparse))) |
| 1886 | (home-page "https://launchpad.net/testscenarios") |
| 1887 | (synopsis "Pyunit extension for dependency injection") |
| 1888 | (description |
| 1889 | "Testscenarios provides clean dependency injection for Python unittest |
| 1890 | style tests.") |
| 1891 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
| 1892 | |
| 1893 | (define-public python2-testscenarios |
| 1894 | (package-with-python2 python-testscenarios)) |
| 1895 | |
| 1896 | (define-public python-testresources |
| 1897 | (package |
| 1898 | (name "python-testresources") |
| 1899 | (version "0.2.7") |
| 1900 | (source |
| 1901 | (origin |
| 1902 | (method url-fetch) |
| 1903 | (uri (string-append |
| 1904 | "https://pypi.python.org/packages/source/t/testresources/testresources-" |
| 1905 | version ".tar.gz")) |
| 1906 | (sha256 |
| 1907 | (base32 |
| 1908 | "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md")))) |
| 1909 | (build-system python-build-system) |
| 1910 | (inputs |
| 1911 | `(("python-setuptools" ,python-setuptools))) |
| 1912 | (home-page "https://launchpad.net/testresources") |
| 1913 | (synopsis |
| 1914 | "Pyunit extension for managing test resources") |
| 1915 | (description |
| 1916 | "Testresources is an extension to Python's unittest to allow declarative |
| 1917 | use of resources by test cases.") |
| 1918 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
| 1919 | |
| 1920 | (define-public python2-testresources |
| 1921 | (package-with-python2 python-testresources)) |
| 1922 | |
| 1923 | (define-public python-subunit |
| 1924 | (package |
| 1925 | (name "python-subunit") |
| 1926 | (version "0.0.21") |
| 1927 | (source |
| 1928 | (origin |
| 1929 | (method url-fetch) |
| 1930 | (uri (string-append |
| 1931 | "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-" |
| 1932 | version ".tar.gz")) |
| 1933 | (sha256 |
| 1934 | (base32 |
| 1935 | "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv")))) |
| 1936 | (build-system python-build-system) |
| 1937 | (inputs |
| 1938 | `(("python-setuptools" ,python-setuptools) |
| 1939 | ("python-testtools" ,python-testtools) |
| 1940 | ("python-mimeparse" ,python-mimeparse) |
| 1941 | ("python-testscenarios" ,python-testscenarios))) |
| 1942 | (home-page "http://launchpad.net/subunit") |
| 1943 | (synopsis "Python implementation of the subunit protocol") |
| 1944 | (description |
| 1945 | "Python-subunit is a Python implementation of the subunit test streaming |
| 1946 | protocol.") |
| 1947 | (license (list license:bsd-3 license:asl2.0)))) ; at the user's option |
| 1948 | |
| 1949 | (define-public python2-subunit |
| 1950 | (package-with-python2 python-subunit)) |
| 1951 | |
| 1952 | ;; Recent versions of python-fixtures need a recent version of python-pbr, |
| 1953 | ;; which needs a recent version of python-fixtures. To fix this circular |
| 1954 | ;; dependency, we keep old versions of python-fixtures and python-pbr to |
| 1955 | ;; bootstrap the whole thing: |
| 1956 | ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11 |
| 1957 | ;; - python-pbr-0.11 is used to build python-fixtures |
| 1958 | ;; - python-fixtures is used to build python-pbr |
| 1959 | (define-public python-fixtures-0.3.16 |
| 1960 | (package |
| 1961 | (name "python-fixtures") |
| 1962 | (version "0.3.16") |
| 1963 | (source |
| 1964 | (origin |
| 1965 | (method url-fetch) |
| 1966 | (uri (string-append |
| 1967 | "https://pypi.python.org/packages/source/f/fixtures/fixtures-" |
| 1968 | version ".tar.gz")) |
| 1969 | (sha256 |
| 1970 | (base32 |
| 1971 | "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc")))) |
| 1972 | (build-system python-build-system) |
| 1973 | (inputs |
| 1974 | `(("python-setuptools" ,python-setuptools))) |
| 1975 | (arguments |
| 1976 | '(#:tests? #f)) ; no setup.py test command |
| 1977 | (home-page "https://launchpad.net/python-fixtures") |
| 1978 | (synopsis "Python test fixture library") |
| 1979 | (description |
| 1980 | "Fixtures provides a way to create reusable state, useful when writing |
| 1981 | Python tests.") |
| 1982 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
| 1983 | |
| 1984 | (define-public python2-fixtures-0.3.16 |
| 1985 | (package-with-python2 python-fixtures-0.3.16)) |
| 1986 | |
| 1987 | (define-public python-pbr-0.11 |
| 1988 | (package |
| 1989 | (name "python-pbr") |
| 1990 | (version "0.11.0") |
| 1991 | (source |
| 1992 | (origin |
| 1993 | (method url-fetch) |
| 1994 | (uri (string-append |
| 1995 | "https://pypi.python.org/packages/source/p/pbr/pbr-" |
| 1996 | version ".tar.gz")) |
| 1997 | (sha256 |
| 1998 | (base32 |
| 1999 | "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p")))) |
| 2000 | (build-system python-build-system) |
| 2001 | (arguments |
| 2002 | `(#:tests? #f)) ;; Most tests seem to use the Internet. |
| 2003 | (inputs |
| 2004 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) |
| 2005 | ("python-pip" ,python-pip) |
| 2006 | ("python-setuptools" ,python-setuptools))) |
| 2007 | (home-page "https://launchpad.net/pbr") |
| 2008 | (synopsis "Change the default behavior of Python’s setuptools") |
| 2009 | (description |
| 2010 | "Python Build Reasonableness (PBR) is a library that injects some useful |
| 2011 | and sensible default behaviors into your setuptools run.") |
| 2012 | (license license:asl2.0))) |
| 2013 | |
| 2014 | (define-public python2-pbr-0.11 |
| 2015 | (package-with-python2 python-pbr-0.11)) |
| 2016 | |
| 2017 | (define-public python-pbr |
| 2018 | (package |
| 2019 | (name "python-pbr") |
| 2020 | (version "1.8.1") |
| 2021 | (source |
| 2022 | (origin |
| 2023 | (method url-fetch) |
| 2024 | (uri (string-append |
| 2025 | "https://pypi.python.org/packages/source/p/pbr/pbr-" |
| 2026 | version |
| 2027 | ".tar.gz")) |
| 2028 | (sha256 |
| 2029 | (base32 |
| 2030 | "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) |
| 2031 | (build-system python-build-system) |
| 2032 | (arguments |
| 2033 | `(#:tests? #f)) ;; Most tests seem to use the Internet. |
| 2034 | (propagated-inputs |
| 2035 | `(("python-testrepository" ,python-testrepository) |
| 2036 | ("git" ,git))) ;; pbr actually uses the "git" binary. |
| 2037 | (inputs |
| 2038 | `(("python-fixtures" ,python-fixtures) |
| 2039 | ("python-mimeparse" ,python-mimeparse) |
| 2040 | ("python-mock" ,python-mock) |
| 2041 | ("python-setuptools" ,python-setuptools) |
| 2042 | ("python-six" ,python-six) |
| 2043 | ("python-sphinx" ,python-sphinx) |
| 2044 | ("python-testrepository" ,python-testrepository) |
| 2045 | ("python-testresources" ,python-testresources) |
| 2046 | ("python-testscenarios" ,python-testscenarios) |
| 2047 | ("python-testtools" ,python-testtools) |
| 2048 | ("python-virtualenv" ,python-virtualenv))) |
| 2049 | (home-page "https://launchpad.net/pbr") |
| 2050 | (synopsis "Change the default behavior of Python’s setuptools") |
| 2051 | (description |
| 2052 | "Python Build Reasonableness (PBR) is a library that injects some useful |
| 2053 | and sensible default behaviors into your setuptools run.") |
| 2054 | (license license:asl2.0))) |
| 2055 | |
| 2056 | (define-public python2-pbr |
| 2057 | (package-with-python2 python-pbr)) |
| 2058 | |
| 2059 | (define-public python-fixtures |
| 2060 | (package |
| 2061 | (name "python-fixtures") |
| 2062 | (version "1.4.0") |
| 2063 | (source |
| 2064 | (origin |
| 2065 | (method url-fetch) |
| 2066 | (uri (pypi-uri "fixtures" version)) |
| 2067 | (sha256 |
| 2068 | (base32 |
| 2069 | "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y")))) |
| 2070 | (build-system python-build-system) |
| 2071 | (propagated-inputs |
| 2072 | `(("python-six" ,python-six) |
| 2073 | ("python-pbr-0.11" ,python-pbr-0.11))) |
| 2074 | (inputs |
| 2075 | `(("python-pip" ,python-pip) |
| 2076 | ("python-setuptools" ,python-setuptools) |
| 2077 | ;; Tests |
| 2078 | ("python-testtools" ,python-testtools))) |
| 2079 | (arguments |
| 2080 | '(#:tests? #f)) ; no setup.py test command |
| 2081 | (home-page "https://launchpad.net/python-fixtures") |
| 2082 | (synopsis "Python test fixture library") |
| 2083 | (description |
| 2084 | "Fixtures provides a way to create reusable state, useful when writing |
| 2085 | Python tests.") |
| 2086 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
| 2087 | |
| 2088 | (define-public python2-fixtures |
| 2089 | (package-with-python2 python-fixtures)) |
| 2090 | |
| 2091 | (define-public python-testrepository |
| 2092 | (package |
| 2093 | (name "python-testrepository") |
| 2094 | (version "0.0.20") |
| 2095 | (source |
| 2096 | (origin |
| 2097 | (method url-fetch) |
| 2098 | (uri (string-append |
| 2099 | "https://pypi.python.org/packages/source/t/testrepository/testrepository-" |
| 2100 | version ".tar.gz")) |
| 2101 | (sha256 |
| 2102 | (base32 |
| 2103 | "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) |
| 2104 | (build-system python-build-system) |
| 2105 | (propagated-inputs |
| 2106 | `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16) |
| 2107 | ("python-testtools" ,python-testtools))) |
| 2108 | (inputs |
| 2109 | `(("python-setuptools" ,python-setuptools) |
| 2110 | ("python-subunit" ,python-subunit) |
| 2111 | ("python-mimeparse" ,python-mimeparse))) |
| 2112 | (home-page "https://launchpad.net/testrepository") |
| 2113 | (synopsis "Database for Python test results") |
| 2114 | (description "Testrepository provides a database of test results which can |
| 2115 | be used as part of a developer's workflow to check things such as what tests |
| 2116 | have failed since the last commit or what tests are currently failing.") |
| 2117 | (license (list license:bsd-3 license:asl2.0)))) ; at user's option |
| 2118 | |
| 2119 | (define-public python2-testrepository |
| 2120 | (package-with-python2 python-testrepository)) |
| 2121 | |
| 2122 | (define-public python-coverage |
| 2123 | (package |
| 2124 | (name "python-coverage") |
| 2125 | (version "4.1") |
| 2126 | (source |
| 2127 | (origin |
| 2128 | (method url-fetch) |
| 2129 | (uri (pypi-uri "coverage" version)) |
| 2130 | (sha256 |
| 2131 | (base32 |
| 2132 | "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1")))) |
| 2133 | (build-system python-build-system) |
| 2134 | (inputs |
| 2135 | `(("python-setuptools" ,python-setuptools))) |
| 2136 | (home-page "http://nedbatchelder.com/code/coverage") |
| 2137 | (synopsis "Code coverage measurement for Python") |
| 2138 | (description |
| 2139 | "Coverage measures code coverage, typically during test execution. It |
| 2140 | uses the code analysis tools and tracing hooks provided in the Python standard |
| 2141 | library to determine which lines are executable, and which have been |
| 2142 | executed.") |
| 2143 | (license license:bsd-3))) |
| 2144 | |
| 2145 | (define-public python2-coverage |
| 2146 | (package-with-python2 python-coverage)) |
| 2147 | |
| 2148 | (define-public python-cov-core |
| 2149 | (package |
| 2150 | (name "python-cov-core") |
| 2151 | (version "1.15.0") |
| 2152 | (source |
| 2153 | (origin |
| 2154 | (method url-fetch) |
| 2155 | (uri (pypi-uri "cov-core" version)) |
| 2156 | (sha256 |
| 2157 | (base32 |
| 2158 | "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a")))) |
| 2159 | (build-system python-build-system) |
| 2160 | (native-inputs |
| 2161 | `(("python-coverage" ,python-coverage))) |
| 2162 | (home-page "https://github.com/schlamar/cov-core") |
| 2163 | (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov") |
| 2164 | (description |
| 2165 | "This is a library package for use by pytest-cov, nose-cov and nose2-cov. |
| 2166 | It is useful for developing coverage plugins for these testing frameworks.") |
| 2167 | (license license:expat) |
| 2168 | (properties `((python2-variant . ,(delay python2-cov-core)))))) |
| 2169 | |
| 2170 | (define-public python2-cov-core |
| 2171 | (let ((cov-core (package-with-python2 (strip-python2-variant python-cov-core)))) |
| 2172 | (package (inherit cov-core) |
| 2173 | (native-inputs |
| 2174 | `(("python2-setuptools" ,python2-setuptools) |
| 2175 | ,@(package-native-inputs cov-core)))))) |
| 2176 | |
| 2177 | (define-public python-discover |
| 2178 | (package |
| 2179 | (name "python-discover") |
| 2180 | (version "0.4.0") |
| 2181 | (source |
| 2182 | (origin |
| 2183 | (method url-fetch) |
| 2184 | (uri (string-append |
| 2185 | "https://pypi.python.org/packages/source/d/discover/discover-" |
| 2186 | version ".tar.gz")) |
| 2187 | (sha256 |
| 2188 | (base32 |
| 2189 | "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5")))) |
| 2190 | (build-system python-build-system) |
| 2191 | (inputs |
| 2192 | `(("python-setuptools" ,python-setuptools))) |
| 2193 | (home-page "http://pypi.python.org/pypi/discover/") |
| 2194 | (synopsis |
| 2195 | "Python test discovery for unittest") |
| 2196 | (description |
| 2197 | "Discover provides test discovery for unittest, a feature that has been |
| 2198 | backported from Python 2.7 for Python 2.4+.") |
| 2199 | (license license:bsd-3))) |
| 2200 | |
| 2201 | (define-public python2-discover |
| 2202 | (package-with-python2 python-discover)) |
| 2203 | |
| 2204 | (define-public behave |
| 2205 | (package |
| 2206 | (name "behave") |
| 2207 | (version "1.2.5") |
| 2208 | (source (origin |
| 2209 | (method url-fetch) |
| 2210 | (uri (pypi-uri "behave" version ".tar.bz2")) |
| 2211 | (sha256 |
| 2212 | (base32 |
| 2213 | "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c")))) |
| 2214 | (build-system python-build-system) |
| 2215 | (inputs |
| 2216 | `(("python-setuptools" ,python-setuptools) |
| 2217 | ("python-six" ,python-six) |
| 2218 | ("python-parse" ,python-parse) |
| 2219 | ("python-parse-type" ,python-parse-type))) |
| 2220 | (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and |
| 2221 | ;PyHamcrest>=1.8 |
| 2222 | (home-page "http://github.com/behave/behave") |
| 2223 | (synopsis "Python behavior-driven development") |
| 2224 | (description |
| 2225 | "Behave is a tool for behavior-driven development in python. |
| 2226 | Behavior-driven development (or BDD) is an agile software development |
| 2227 | technique that encourages collaboration between developers, QA and |
| 2228 | non-technical or business participants in a software project. Behave uses |
| 2229 | tests written in a natural language style, backed up by Python code.") |
| 2230 | (license license:x11))) |
| 2231 | |
| 2232 | (define-public python-exif-read |
| 2233 | (package |
| 2234 | (name "python-exif-read") |
| 2235 | (version "2.1.2") |
| 2236 | (source (origin |
| 2237 | (method url-fetch) |
| 2238 | (uri (pypi-uri "ExifRead" version)) |
| 2239 | (sha256 |
| 2240 | (base32 |
| 2241 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
| 2242 | (build-system python-build-system) |
| 2243 | (inputs |
| 2244 | `(("python-setuptools" ,python-setuptools))) |
| 2245 | (arguments `(#:tests? #f)) ; no tests |
| 2246 | (home-page "https://github.com/ianare/exif-py") |
| 2247 | (synopsis "Python library to extract EXIF data from image files") |
| 2248 | (description |
| 2249 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg |
| 2250 | files.") |
| 2251 | (license license:bsd-3))) |
| 2252 | |
| 2253 | (define-public python2-exif-read |
| 2254 | (package-with-python2 python-exif-read)) |
| 2255 | |
| 2256 | (define-public python-pyld |
| 2257 | (package |
| 2258 | (name "python-pyld") |
| 2259 | (version "0.6.8") |
| 2260 | (source (origin |
| 2261 | (method url-fetch) |
| 2262 | (uri (pypi-uri "PyLD" version)) |
| 2263 | (sha256 |
| 2264 | (base32 |
| 2265 | "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad")))) |
| 2266 | (build-system python-build-system) |
| 2267 | (inputs |
| 2268 | `(("python-setuptools" ,python-setuptools))) |
| 2269 | (arguments `(#:tests? #f)) ; no tests |
| 2270 | (home-page "http://github.com/digitalbazaar/pyld") |
| 2271 | (synopsis "Python implementation of the JSON-LD specification") |
| 2272 | (description |
| 2273 | "PyLD is an implementation of the JSON-LD specification.") |
| 2274 | (license license:bsd-3))) |
| 2275 | |
| 2276 | (define-public python2-pyld |
| 2277 | (package-with-python2 python-pyld)) |
| 2278 | |
| 2279 | (define-public python-certifi |
| 2280 | (package |
| 2281 | (name "python-certifi") |
| 2282 | (version "2015.11.20.1") |
| 2283 | (source (origin |
| 2284 | (method url-fetch) |
| 2285 | (uri (pypi-uri "certifi" version)) |
| 2286 | (sha256 |
| 2287 | (base32 |
| 2288 | "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h")))) |
| 2289 | (build-system python-build-system) |
| 2290 | (inputs |
| 2291 | `(("python-setuptools" ,python-setuptools))) |
| 2292 | (arguments `(#:tests? #f)) ; no tests |
| 2293 | (home-page "http://python-requests.org/") |
| 2294 | (synopsis "Python CA certificate bundle") |
| 2295 | (description |
| 2296 | "Certifi is a Python library that contains a CA certificate bundle, which |
| 2297 | is used by the Requests library to verify HTTPS requests.") |
| 2298 | (license license:asl2.0))) |
| 2299 | |
| 2300 | (define-public python2-certifi |
| 2301 | (package-with-python2 python-certifi)) |
| 2302 | |
| 2303 | (define-public python-click |
| 2304 | (package |
| 2305 | (name "python-click") |
| 2306 | (version "6.6") |
| 2307 | (source |
| 2308 | (origin |
| 2309 | (method url-fetch) |
| 2310 | (uri (pypi-uri "click" version)) |
| 2311 | (sha256 |
| 2312 | (base32 |
| 2313 | "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) |
| 2314 | (build-system python-build-system) |
| 2315 | (arguments |
| 2316 | `(#:phases |
| 2317 | (modify-phases %standard-phases |
| 2318 | (add-after 'unpack 'fix-paths |
| 2319 | (lambda* (#:key inputs #:allow-other-keys) |
| 2320 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) |
| 2321 | "cross-libc" "libc")))) |
| 2322 | (substitute* "click/_unicodefun.py" |
| 2323 | (("'locale'") |
| 2324 | (string-append "'" glibc "/bin/locale'")))) |
| 2325 | #t))))) |
| 2326 | (native-inputs |
| 2327 | `(("python-setuptools" ,python-setuptools))) |
| 2328 | (home-page "http://click.pocoo.org") |
| 2329 | (synopsis "Command line library for Python") |
| 2330 | (description |
| 2331 | "Click is a Python package for creating command line interfaces in a |
| 2332 | composable way with as little code as necessary. Its name stands for |
| 2333 | \"Command Line Interface Creation Kit\". It's highly configurable but comes |
| 2334 | with sensible defaults out of the box.") |
| 2335 | (license license:bsd-3))) |
| 2336 | |
| 2337 | (define-public python2-click |
| 2338 | (package-with-python2 python-click)) |
| 2339 | |
| 2340 | (define-public python-wheel |
| 2341 | (package |
| 2342 | (name "python-wheel") |
| 2343 | (version "0.29.0") |
| 2344 | (source |
| 2345 | (origin |
| 2346 | (method url-fetch) |
| 2347 | (uri (pypi-uri "wheel" version)) |
| 2348 | (sha256 |
| 2349 | (base32 |
| 2350 | "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy")))) |
| 2351 | (build-system python-build-system) |
| 2352 | (native-inputs |
| 2353 | `(("python-setuptools" ,python-setuptools) |
| 2354 | ("python-jsonschema" ,python-jsonschema) |
| 2355 | ("python-pytest-cov" ,python-pytest-cov))) |
| 2356 | (home-page "https://bitbucket.org/pypa/wheel/") |
| 2357 | (synopsis "Format for built Python packages") |
| 2358 | (description |
| 2359 | "A wheel is a ZIP-format archive with a specially formatted filename and |
| 2360 | the @code{.whl} extension. It is designed to contain all the files for a PEP |
| 2361 | 376 compatible install in a way that is very close to the on-disk format. Many |
| 2362 | packages will be properly installed with only the @code{Unpack} step and the |
| 2363 | unpacked archive preserves enough information to @code{Spread} (copy data and |
| 2364 | scripts to their final locations) at any later time. Wheel files can be |
| 2365 | installed with a newer @code{pip} or with wheel's own command line utility.") |
| 2366 | (license license:expat) |
| 2367 | (properties `((python2-variant . ,(delay python2-wheel)))))) |
| 2368 | |
| 2369 | (define-public python2-wheel |
| 2370 | (let ((wheel (package-with-python2 |
| 2371 | (strip-python2-variant python-wheel)))) |
| 2372 | (package (inherit wheel) |
| 2373 | (native-inputs `(("python2-functools32" ,python2-functools32) |
| 2374 | ,@(package-native-inputs wheel)))))) |
| 2375 | |
| 2376 | |
| 2377 | (define-public python-requests |
| 2378 | (package |
| 2379 | (name "python-requests") |
| 2380 | (version "2.9.1") |
| 2381 | (source (origin |
| 2382 | (method url-fetch) |
| 2383 | (uri (pypi-uri "requests" version)) |
| 2384 | (sha256 |
| 2385 | (base32 |
| 2386 | "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5")))) |
| 2387 | (build-system python-build-system) |
| 2388 | (native-inputs |
| 2389 | `(("python-setuptools" ,python-setuptools) |
| 2390 | ("python-py" ,python-py) |
| 2391 | ("python-pytest" ,python-pytest) |
| 2392 | ("python-pytest-cov" ,python-pytest-cov) |
| 2393 | ("python-wheel" ,python-wheel))) |
| 2394 | (home-page "http://python-requests.org/") |
| 2395 | (synopsis "Python HTTP library") |
| 2396 | (description |
| 2397 | "Requests is a Python HTTP client library. It aims to be easier to use |
| 2398 | than Python’s urllib2 library.") |
| 2399 | (license license:asl2.0))) |
| 2400 | |
| 2401 | ;; Some software requires an older version of Requests, notably Docker |
| 2402 | ;; Compose. |
| 2403 | (define-public python-requests-2.7 |
| 2404 | (package (inherit python-requests) |
| 2405 | (version "2.7.0") |
| 2406 | (source (origin |
| 2407 | (method url-fetch) |
| 2408 | (uri (pypi-uri "requests" version)) |
| 2409 | (sha256 |
| 2410 | (base32 |
| 2411 | "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) |
| 2412 | |
| 2413 | (define-public python2-requests |
| 2414 | (package-with-python2 python-requests)) |
| 2415 | |
| 2416 | (define-public python-vcversioner |
| 2417 | (package |
| 2418 | (name "python-vcversioner") |
| 2419 | (version "2.14.0.0") |
| 2420 | (source |
| 2421 | (origin |
| 2422 | (method url-fetch) |
| 2423 | (uri (pypi-uri "vcversioner" version)) |
| 2424 | (sha256 |
| 2425 | (base32 |
| 2426 | "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c")))) |
| 2427 | (build-system python-build-system) |
| 2428 | (inputs |
| 2429 | `(("python-setuptools" ,python-setuptools))) |
| 2430 | (synopsis "Python library for version number discovery") |
| 2431 | (description "Vcversioner is a Python library that inspects tagging |
| 2432 | information in a variety of version control systems in order to discover |
| 2433 | version numbers.") |
| 2434 | (home-page "https://github.com/habnabit/vcversioner") |
| 2435 | (license license:isc))) |
| 2436 | |
| 2437 | (define-public python2-vcversioner |
| 2438 | (package-with-python2 python-vcversioner)) |
| 2439 | |
| 2440 | (define-public python-jsonschema |
| 2441 | (package |
| 2442 | (name "python-jsonschema") |
| 2443 | (version "2.5.1") |
| 2444 | (source (origin |
| 2445 | (method url-fetch) |
| 2446 | (uri |
| 2447 | (string-append |
| 2448 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" |
| 2449 | version ".tar.gz")) |
| 2450 | (sha256 |
| 2451 | (base32 |
| 2452 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
| 2453 | (build-system python-build-system) |
| 2454 | (inputs |
| 2455 | `(("python-setuptools" ,python-setuptools) |
| 2456 | ("python-vcversioner" ,python-vcversioner))) |
| 2457 | (home-page "http://github.com/Julian/jsonschema") |
| 2458 | (synopsis "Implementation of JSON Schema for Python") |
| 2459 | (description |
| 2460 | "Jsonschema is an implementation of JSON Schema for Python.") |
| 2461 | (license license:expat) |
| 2462 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) |
| 2463 | |
| 2464 | (define-public python2-jsonschema |
| 2465 | (let ((jsonschema (package-with-python2 |
| 2466 | (strip-python2-variant python-jsonschema)))) |
| 2467 | (package (inherit jsonschema) |
| 2468 | (inputs |
| 2469 | `(("python2-functools32" ,python2-functools32) |
| 2470 | ,@(package-inputs jsonschema)))))) |
| 2471 | |
| 2472 | (define-public python-unidecode |
| 2473 | (package |
| 2474 | (name "python-unidecode") |
| 2475 | (version "0.04.18") |
| 2476 | (source (origin |
| 2477 | (method url-fetch) |
| 2478 | (uri (pypi-uri "Unidecode" version)) |
| 2479 | (sha256 |
| 2480 | (base32 |
| 2481 | "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi")))) |
| 2482 | (build-system python-build-system) |
| 2483 | (inputs |
| 2484 | `(("python-setuptools" ,python-setuptools))) |
| 2485 | (home-page "https://pypi.python.org/pypi/Unidecode") |
| 2486 | (synopsis "ASCII transliterations of Unicode text") |
| 2487 | (description |
| 2488 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is |
| 2489 | useful when integrating with legacy code that doesn't support Unicode, or for |
| 2490 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII |
| 2491 | machine identifiers from human-readable Unicode strings that should still be |
| 2492 | somewhat intelligeble.") |
| 2493 | (license license:gpl2+))) |
| 2494 | |
| 2495 | (define-public python2-unidecode |
| 2496 | (package-with-python2 python-unidecode)) |
| 2497 | |
| 2498 | (define-public python-pyjwt |
| 2499 | (package |
| 2500 | (name "python-pyjwt") |
| 2501 | (version "1.4.0") |
| 2502 | (source |
| 2503 | (origin |
| 2504 | (method url-fetch) |
| 2505 | (uri (pypi-uri "PyJWT" version)) |
| 2506 | (sha256 |
| 2507 | (base32 |
| 2508 | "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1")))) |
| 2509 | (build-system python-build-system) |
| 2510 | (native-inputs |
| 2511 | `(("python-setuptools" ,python-setuptools) |
| 2512 | ("python-pytest-runner" ,python-pytest-runner))) |
| 2513 | (arguments |
| 2514 | '(#:tests? #f)) ; test suite doesn't work |
| 2515 | (home-page "http://github.com/progrium/pyjwt") |
| 2516 | (synopsis "JSON Web Token implementation in Python") |
| 2517 | (description |
| 2518 | "PyJWT is a JSON Web Token implementation written in Python.") |
| 2519 | (license license:expat))) |
| 2520 | |
| 2521 | (define-public python2-pyjwt |
| 2522 | (package-with-python2 python-pyjwt)) |
| 2523 | |
| 2524 | (define-public python-oauthlib |
| 2525 | (package |
| 2526 | (name "python-oauthlib") |
| 2527 | (version "1.0.3") |
| 2528 | (source (origin |
| 2529 | (method url-fetch) |
| 2530 | (uri (pypi-uri "oauthlib" version)) |
| 2531 | (sha256 |
| 2532 | (base32 |
| 2533 | "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg")))) |
| 2534 | (build-system python-build-system) |
| 2535 | (native-inputs |
| 2536 | `(("python-coverage" ,python-coverage) |
| 2537 | ("python-nose" ,python-nose) |
| 2538 | ("python-mock" ,python-mock))) |
| 2539 | (inputs |
| 2540 | `(("python-blinker" ,python-blinker) |
| 2541 | ("python-cryptography" ,python-cryptography) |
| 2542 | ("python-pyjwt" ,python-pyjwt))) |
| 2543 | (home-page "https://github.com/idan/oauthlib") |
| 2544 | (synopsis "OAuth implementation for Python") |
| 2545 | (description |
| 2546 | "Oauthlib is a generic, spec-compliant, thorough implementation of the |
| 2547 | OAuth request-signing logic.") |
| 2548 | (license license:bsd-3) |
| 2549 | (properties `((python2-variant . ,(delay python2-oauthlib)))))) |
| 2550 | |
| 2551 | (define-public python2-oauthlib |
| 2552 | (let ((base (package-with-python2 (strip-python2-variant python-oauthlib)))) |
| 2553 | (package |
| 2554 | (inherit base) |
| 2555 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 2556 | ("python2-unittest2" ,python2-unittest2) |
| 2557 | ,@(package-native-inputs base)))))) |
| 2558 | |
| 2559 | (define-public python-itsdangerous |
| 2560 | (package |
| 2561 | (name "python-itsdangerous") |
| 2562 | (version "0.24") |
| 2563 | (source |
| 2564 | (origin |
| 2565 | (method url-fetch) |
| 2566 | (uri (string-append |
| 2567 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" |
| 2568 | version ".tar.gz")) |
| 2569 | (sha256 |
| 2570 | (base32 |
| 2571 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) |
| 2572 | (build-system python-build-system) |
| 2573 | (home-page "http://github.com/mitsuhiko/itsdangerous") |
| 2574 | (synopsis "Python library for passing data to/from untrusted environments") |
| 2575 | (description |
| 2576 | "Itsdangerous provides various helpers to pass trusted data to untrusted |
| 2577 | environments and back.") |
| 2578 | (license license:bsd-3) |
| 2579 | (properties `((python2-variant . ,(delay python2-itsdangerous)))))) |
| 2580 | |
| 2581 | (define-public python2-itsdangerous |
| 2582 | (let ((base (package-with-python2 |
| 2583 | (strip-python2-variant python-itsdangerous)))) |
| 2584 | (package |
| 2585 | (inherit base) |
| 2586 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 2587 | ,@(package-native-inputs base)))))) |
| 2588 | |
| 2589 | (define-public python-pyyaml |
| 2590 | (package |
| 2591 | (name "python-pyyaml") |
| 2592 | (version "3.11") |
| 2593 | (source |
| 2594 | (origin |
| 2595 | (method url-fetch) |
| 2596 | (uri (string-append |
| 2597 | "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-" |
| 2598 | version ".tar.gz")) |
| 2599 | (sha256 |
| 2600 | (base32 |
| 2601 | "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63")))) |
| 2602 | (build-system python-build-system) |
| 2603 | (inputs |
| 2604 | `(("libyaml" ,libyaml))) |
| 2605 | (native-inputs |
| 2606 | `(("python-setuptools" ,python-setuptools))) |
| 2607 | (home-page "http://pyyaml.org/wiki/PyYAML") |
| 2608 | (synopsis "YAML parser and emitter for Python") |
| 2609 | (description |
| 2610 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a |
| 2611 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension |
| 2612 | API, and sensible error messages. PyYAML supports standard YAML tags and |
| 2613 | provides Python-specific tags that allow to represent an arbitrary Python |
| 2614 | object.") |
| 2615 | (license license:expat))) |
| 2616 | |
| 2617 | (define-public python2-pyyaml |
| 2618 | (package-with-python2 python-pyyaml)) |
| 2619 | |
| 2620 | (define-public python-virtualenv |
| 2621 | (package |
| 2622 | (name "python-virtualenv") |
| 2623 | (version "15.0.3") |
| 2624 | (source |
| 2625 | (origin |
| 2626 | (method url-fetch) |
| 2627 | (uri (pypi-uri "virtualenv" version)) |
| 2628 | (sha256 |
| 2629 | (base32 |
| 2630 | "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d")))) |
| 2631 | (build-system python-build-system) |
| 2632 | (arguments |
| 2633 | `(#:phases |
| 2634 | (modify-phases %standard-phases |
| 2635 | (replace 'check |
| 2636 | (lambda _ |
| 2637 | ;; Disable failing test. See upstream bug report |
| 2638 | ;; https://github.com/pypa/virtualenv/issues/957 |
| 2639 | (substitute* "tests/test_virtualenv.py" |
| 2640 | (("skipif.*") "skipif(True, reason=\"Guix\")\n")) |
| 2641 | (zero? (system* "py.test"))))))) |
| 2642 | (inputs |
| 2643 | `(("python-setuptools" ,python-setuptools) |
| 2644 | ("python-mock" ,python-mock) |
| 2645 | ("python-pytest" ,python-pytest))) |
| 2646 | (home-page "https://virtualenv.pypa.io/") |
| 2647 | (synopsis "Virtual Python environment builder") |
| 2648 | (description |
| 2649 | "Virtualenv is a tool to create isolated Python environments.") |
| 2650 | (license license:expat))) |
| 2651 | |
| 2652 | (define-public python2-virtualenv |
| 2653 | (package-with-python2 python-virtualenv)) |
| 2654 | |
| 2655 | (define-public python-markupsafe |
| 2656 | (package |
| 2657 | (name "python-markupsafe") |
| 2658 | (version "0.23") |
| 2659 | (source |
| 2660 | (origin |
| 2661 | (method url-fetch) |
| 2662 | (uri (string-append |
| 2663 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" |
| 2664 | version ".tar.gz")) |
| 2665 | (sha256 |
| 2666 | (base32 |
| 2667 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) |
| 2668 | (build-system python-build-system) |
| 2669 | (inputs |
| 2670 | `(("python-setuptools" ,python-setuptools))) |
| 2671 | (home-page "http://github.com/mitsuhiko/markupsafe") |
| 2672 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") |
| 2673 | (description |
| 2674 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation |
| 2675 | for Python.") |
| 2676 | (license license:bsd-3))) |
| 2677 | |
| 2678 | (define-public python2-markupsafe |
| 2679 | (package-with-python2 python-markupsafe)) |
| 2680 | |
| 2681 | (define-public python-jinja2 |
| 2682 | (package |
| 2683 | (name "python-jinja2") |
| 2684 | (version "2.8") |
| 2685 | (source |
| 2686 | (origin |
| 2687 | (method url-fetch) |
| 2688 | (uri (pypi-uri "Jinja2" version)) |
| 2689 | (sha256 |
| 2690 | (base32 |
| 2691 | "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw")))) |
| 2692 | (build-system python-build-system) |
| 2693 | (inputs |
| 2694 | `(("python-setuptools" ,python-setuptools) |
| 2695 | ("python-markupsafe" ,python-markupsafe))) |
| 2696 | (home-page "http://jinja.pocoo.org/") |
| 2697 | (synopsis "Python template engine") |
| 2698 | (description |
| 2699 | "Jinja2 is a small but fast and easy to use stand-alone template engine |
| 2700 | written in pure Python.") |
| 2701 | (license license:bsd-3))) |
| 2702 | |
| 2703 | (define-public python2-jinja2 |
| 2704 | (package-with-python2 python-jinja2)) |
| 2705 | |
| 2706 | (define-public python-pystache |
| 2707 | (package |
| 2708 | (name "python-pystache") |
| 2709 | (version "0.5.4") |
| 2710 | (source (origin |
| 2711 | (method url-fetch) |
| 2712 | (uri (pypi-uri "pystache" version)) |
| 2713 | (sha256 |
| 2714 | (base32 |
| 2715 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) |
| 2716 | (build-system python-build-system) |
| 2717 | (native-inputs |
| 2718 | `(("python-setuptools" ,python-setuptools))) |
| 2719 | (home-page "http://defunkt.io/pystache/") |
| 2720 | (synopsis "Python logic-less template engine") |
| 2721 | (description |
| 2722 | "Pystache is a Python implementation of the framework agnostic, |
| 2723 | logic-free templating system Mustache.") |
| 2724 | (license license:expat))) |
| 2725 | |
| 2726 | (define-public python2-pystache |
| 2727 | (package-with-python2 python-pystache)) |
| 2728 | |
| 2729 | (define-public python-joblib |
| 2730 | (package |
| 2731 | (name "python-joblib") |
| 2732 | (version "0.9.0b4") |
| 2733 | (source (origin |
| 2734 | (method url-fetch) |
| 2735 | (uri (string-append "https://pypi.python.org/packages/source/" |
| 2736 | "j/joblib/joblib-" version ".tar.gz")) |
| 2737 | (sha256 |
| 2738 | (base32 |
| 2739 | "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")))) |
| 2740 | (build-system python-build-system) |
| 2741 | (native-inputs |
| 2742 | `(("python-setuptools" ,python-setuptools) |
| 2743 | ("python-nose" ,python-nose))) |
| 2744 | (home-page "http://pythonhosted.org/joblib/") |
| 2745 | (synopsis "Using Python functions as pipeline jobs") |
| 2746 | (description |
| 2747 | "Joblib is a set of tools to provide lightweight pipelining in Python. |
| 2748 | In particular, joblib offers: transparent disk-caching of the output values |
| 2749 | and lazy re-evaluation (memoize pattern), easy simple parallel computing |
| 2750 | logging and tracing of the execution.") |
| 2751 | (license license:bsd-3))) |
| 2752 | |
| 2753 | (define-public python2-joblib |
| 2754 | (package-with-python2 python-joblib)) |
| 2755 | |
| 2756 | (define-public python-docutils |
| 2757 | (package |
| 2758 | (name "python-docutils") |
| 2759 | (version "0.12") |
| 2760 | (source |
| 2761 | (origin |
| 2762 | (method url-fetch) |
| 2763 | (uri (string-append |
| 2764 | "https://pypi.python.org/packages/source/d/docutils/docutils-" |
| 2765 | version ".tar.gz")) |
| 2766 | (sha256 |
| 2767 | (base32 |
| 2768 | "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7")))) |
| 2769 | (build-system python-build-system) |
| 2770 | (inputs |
| 2771 | `(("python-setuptools" ,python-setuptools))) |
| 2772 | (arguments |
| 2773 | '(#:tests? #f)) ; no setup.py test command |
| 2774 | (home-page "http://docutils.sourceforge.net/") |
| 2775 | (synopsis "Python Documentation Utilities") |
| 2776 | (description |
| 2777 | "Docutils is a modular system for processing documentation into useful |
| 2778 | formats, such as HTML, XML, and LaTeX. For input Docutils supports |
| 2779 | reStructuredText.") |
| 2780 | ;; Most of the source code is public domain, but some source files are |
| 2781 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. |
| 2782 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
| 2783 | |
| 2784 | (define-public python2-docutils |
| 2785 | (package-with-python2 python-docutils)) |
| 2786 | |
| 2787 | (define-public python-pygments |
| 2788 | (package |
| 2789 | (name "python-pygments") |
| 2790 | (version "2.0.2") |
| 2791 | (source |
| 2792 | (origin |
| 2793 | (method url-fetch) |
| 2794 | (uri (pypi-uri "Pygments" version)) |
| 2795 | (sha256 |
| 2796 | (base32 |
| 2797 | "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k")))) |
| 2798 | (build-system python-build-system) |
| 2799 | (inputs |
| 2800 | `(("python-setuptools" ,python-setuptools))) |
| 2801 | (home-page "http://pygments.org/") |
| 2802 | (synopsis "Syntax highlighting") |
| 2803 | (description |
| 2804 | "Pygments is a syntax highlighting package written in Python.") |
| 2805 | (license license:bsd-2))) |
| 2806 | |
| 2807 | (define-public python2-pygments |
| 2808 | (package-with-python2 python-pygments)) |
| 2809 | |
| 2810 | (define-public python-sphinx |
| 2811 | (package |
| 2812 | (name "python-sphinx") |
| 2813 | (version "1.2.3") |
| 2814 | (source |
| 2815 | (origin |
| 2816 | (method url-fetch) |
| 2817 | (uri (string-append |
| 2818 | "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" |
| 2819 | version ".tar.gz")) |
| 2820 | (sha256 |
| 2821 | (base32 |
| 2822 | "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) |
| 2823 | (build-system python-build-system) |
| 2824 | (inputs |
| 2825 | `(("python-setuptools" ,python-setuptools) |
| 2826 | ("python-jinja2" ,python-jinja2) |
| 2827 | ("python-docutils" ,python-docutils) |
| 2828 | ("python-pygments" ,python-pygments))) |
| 2829 | (home-page "http://sphinx-doc.org/") |
| 2830 | (synopsis "Python documentation generator") |
| 2831 | (description "Sphinx is a tool that makes it easy to create documentation |
| 2832 | for Python projects or other documents consisting of multiple reStructuredText |
| 2833 | sources.") |
| 2834 | (license license:bsd-3))) |
| 2835 | |
| 2836 | (define-public python2-sphinx |
| 2837 | (package-with-python2 python-sphinx)) |
| 2838 | |
| 2839 | (define-public python-sphinx-rtd-theme |
| 2840 | (package |
| 2841 | (name "python-sphinx-rtd-theme") |
| 2842 | (version "0.1.6") |
| 2843 | (source |
| 2844 | (origin |
| 2845 | (method url-fetch) |
| 2846 | (uri (string-append "https://pypi.python.org/packages/source/s/" |
| 2847 | "sphinx_rtd_theme/sphinx_rtd_theme-" |
| 2848 | version ".tar.gz")) |
| 2849 | (sha256 |
| 2850 | (base32 |
| 2851 | "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) |
| 2852 | (build-system python-build-system) |
| 2853 | (arguments |
| 2854 | `(;; With standard flags, the install phase attempts to create a zip'd |
| 2855 | ;; egg file, and fails with an error: 'ZIP does not support timestamps |
| 2856 | ;; before 1980' |
| 2857 | #:configure-flags '("--single-version-externally-managed" |
| 2858 | "--record=sphinx-rtd-theme.txt"))) |
| 2859 | (native-inputs |
| 2860 | `(("python-setuptools" ,python-setuptools))) |
| 2861 | (inputs |
| 2862 | `(("python-docutils" ,python-docutils) |
| 2863 | ("python-sphinx" ,python-sphinx))) |
| 2864 | (home-page "https://github.com/snide/sphinx_rtd_theme/") |
| 2865 | (synopsis "ReadTheDocs.org theme for Sphinx") |
| 2866 | (description "A theme for Sphinx used by ReadTheDocs.org.") |
| 2867 | (license license:expat))) |
| 2868 | |
| 2869 | (define-public python2-sphinx-rtd-theme |
| 2870 | (package-with-python2 python-sphinx-rtd-theme)) |
| 2871 | |
| 2872 | (define-public python-feedgenerator |
| 2873 | (package |
| 2874 | (name "python-feedgenerator") |
| 2875 | (version "1.8") |
| 2876 | (source |
| 2877 | (origin |
| 2878 | (method url-fetch) |
| 2879 | (uri (pypi-uri "feedgenerator" version)) |
| 2880 | (sha256 |
| 2881 | (base32 |
| 2882 | "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0")))) |
| 2883 | (build-system python-build-system) |
| 2884 | (native-inputs |
| 2885 | `(("python-setuptools" ,python-setuptools) |
| 2886 | ("python-pytz" ,python-pytz) |
| 2887 | ("python-six" ,python-six))) |
| 2888 | (home-page "https://github.com/getpelican/feedgenerator") |
| 2889 | (synopsis |
| 2890 | "Standalone version of Django's Atom/RSS feed generator") |
| 2891 | (description |
| 2892 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, |
| 2893 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") |
| 2894 | (license license:bsd-3))) |
| 2895 | |
| 2896 | (define-public python2-feedgenerator |
| 2897 | (package-with-python2 python-feedgenerator)) |
| 2898 | |
| 2899 | (define-public python-blinker |
| 2900 | (package |
| 2901 | (name "python-blinker") |
| 2902 | (version "1.4") |
| 2903 | (source |
| 2904 | (origin |
| 2905 | (method url-fetch) |
| 2906 | (uri (pypi-uri "blinker" version)) |
| 2907 | (sha256 |
| 2908 | (base32 |
| 2909 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
| 2910 | (build-system python-build-system) |
| 2911 | (native-inputs |
| 2912 | `(("python-setuptools" ,python-setuptools))) |
| 2913 | ;; No "test" command supplied to setuptools, so unless there's another way |
| 2914 | ;; to run tests, we're skipping them! |
| 2915 | (arguments '(#:tests? #f)) |
| 2916 | (home-page "http://pythonhosted.org/blinker/") |
| 2917 | (synopsis "Fast, simple object-to-object and broadcast signaling") |
| 2918 | (description |
| 2919 | "Blinker provides a fast dispatching system that allows any number of |
| 2920 | interested parties to subscribe to events, or \"signals\".") |
| 2921 | (license license:expat))) |
| 2922 | |
| 2923 | (define-public python2-blinker |
| 2924 | (package-with-python2 python-blinker)) |
| 2925 | |
| 2926 | (define-public pelican |
| 2927 | (package |
| 2928 | (name "pelican") |
| 2929 | (version "3.6.3") |
| 2930 | (source |
| 2931 | (origin |
| 2932 | (method url-fetch) |
| 2933 | (uri (pypi-uri "pelican" version)) |
| 2934 | (sha256 |
| 2935 | (base32 |
| 2936 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
| 2937 | (build-system python-build-system) |
| 2938 | (inputs |
| 2939 | `(("python-feedgenerator" ,python-feedgenerator) |
| 2940 | ("python-jinja2" ,python-jinja2) |
| 2941 | ("python-pygments" ,python-pygments) |
| 2942 | ("python-docutils" ,python-docutils) |
| 2943 | ("python-pytz" ,python-pytz) |
| 2944 | ("python-blinker" ,python-blinker) |
| 2945 | ("python-unidecode" ,python-unidecode) |
| 2946 | ("python-six" ,python-six) |
| 2947 | ("python-dateutil-2" ,python-dateutil-2))) |
| 2948 | (home-page "http://getpelican.com/") |
| 2949 | (arguments |
| 2950 | `(;; XXX Requires a lot more packages to do unit tests :P |
| 2951 | #:tests? #f |
| 2952 | #:phases (modify-phases %standard-phases |
| 2953 | (add-before |
| 2954 | 'install 'adjust-requires |
| 2955 | ;; Since feedgenerator is installed from git, it doesn't |
| 2956 | ;; conform to the version requirements. |
| 2957 | ;; |
| 2958 | ;; We *do have* "feedgenerator >= 1.6", but strip off the |
| 2959 | ;; version requirement so setuptools doesn't get confused. |
| 2960 | (lambda _ |
| 2961 | (substitute* "setup.py" |
| 2962 | (("['\"]feedgenerator.*?['\"]") |
| 2963 | "'feedgenerator'"))))))) |
| 2964 | (synopsis "Python-based static site publishing system") |
| 2965 | (description |
| 2966 | "Pelican is a tool to generate a static blog from reStructuredText, |
| 2967 | Markdown input files, and more. Pelican uses Jinja2 for templating |
| 2968 | and is very extensible.") |
| 2969 | (license license:agpl3+))) |
| 2970 | |
| 2971 | (define-public python-scikit-learn |
| 2972 | (package |
| 2973 | (name "python-scikit-learn") |
| 2974 | (version "0.16.1") |
| 2975 | (source |
| 2976 | (origin |
| 2977 | (method url-fetch) |
| 2978 | (uri (string-append |
| 2979 | "https://github.com/scikit-learn/scikit-learn/archive/" |
| 2980 | version ".tar.gz")) |
| 2981 | (file-name (string-append name "-" version ".tar.gz")) |
| 2982 | (sha256 |
| 2983 | (base32 |
| 2984 | "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih")))) |
| 2985 | (build-system python-build-system) |
| 2986 | (arguments |
| 2987 | `(#:phases |
| 2988 | (alist-cons-before |
| 2989 | 'check 'set-HOME |
| 2990 | ;; some tests require access to "$HOME" |
| 2991 | (lambda _ (setenv "HOME" "/tmp")) |
| 2992 | ;; Tests can only be run after the library has been installed and not |
| 2993 | ;; within the source directory. |
| 2994 | (alist-cons-after |
| 2995 | 'install 'check |
| 2996 | (lambda _ |
| 2997 | (with-directory-excursion "/tmp" |
| 2998 | ;; With Python 3 one test of 3334 fails |
| 2999 | ;; (sklearn.tests.test_common.test_transformers); see |
| 3000 | ;; https://github.com/scikit-learn/scikit-learn/issues/3693 |
| 3001 | (system* "nosetests" "-v" "sklearn"))) |
| 3002 | (alist-delete 'check %standard-phases))))) |
| 3003 | (inputs |
| 3004 | `(("openblas" ,openblas) |
| 3005 | ("python-nose" ,python-nose))) |
| 3006 | (propagated-inputs |
| 3007 | `(("python-numpy" ,python-numpy) |
| 3008 | ("python-scipy" ,python-scipy))) |
| 3009 | (home-page "http://scikit-learn.org/") |
| 3010 | (synopsis "Machine Learning in Python") |
| 3011 | (description |
| 3012 | "Scikit-learn provides simple and efficient tools for data |
| 3013 | mining and data analysis.") |
| 3014 | (license license:bsd-3) |
| 3015 | (properties `((python2-variant . ,(delay python2-scikit-learn)))))) |
| 3016 | |
| 3017 | (define-public python2-scikit-learn |
| 3018 | (package-with-python2 (strip-python2-variant python-scikit-learn))) |
| 3019 | |
| 3020 | (define-public python-scikit-image |
| 3021 | (package |
| 3022 | (name "python-scikit-image") |
| 3023 | (version "0.11.3") |
| 3024 | (source |
| 3025 | (origin |
| 3026 | (method url-fetch) |
| 3027 | (uri (string-append |
| 3028 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" |
| 3029 | version ".tar.gz")) |
| 3030 | (sha256 |
| 3031 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) |
| 3032 | (build-system python-build-system) |
| 3033 | (propagated-inputs |
| 3034 | `(("python-matplotlib" ,python-matplotlib) |
| 3035 | ("python-networkx" ,python-networkx) |
| 3036 | ("python-numpy" ,python-numpy) |
| 3037 | ("python-scipy" ,python-scipy) |
| 3038 | ("python-six" ,python-six) |
| 3039 | ("python-pillow" ,python-pillow))) |
| 3040 | (native-inputs |
| 3041 | `(("python-cython" ,python-cython) |
| 3042 | ("python-setuptools" ,python-setuptools))) |
| 3043 | (home-page "http://scikit-image.org/") |
| 3044 | (synopsis "Image processing in Python") |
| 3045 | (description |
| 3046 | "Scikit-image is a collection of algorithms for image processing.") |
| 3047 | (license license:bsd-3) |
| 3048 | (properties `((python2-variant . ,(delay python2-scikit-image)))))) |
| 3049 | |
| 3050 | (define-public python2-scikit-image |
| 3051 | (let ((scikit-image (package-with-python2 |
| 3052 | (strip-python2-variant python-scikit-image)))) |
| 3053 | (package (inherit scikit-image) |
| 3054 | (native-inputs |
| 3055 | `(("python2-mock" ,python2-mock) |
| 3056 | ,@(package-native-inputs scikit-image))) |
| 3057 | (propagated-inputs |
| 3058 | `(("python2-pytz" ,python2-pytz) |
| 3059 | ,@(package-propagated-inputs scikit-image)))))) |
| 3060 | |
| 3061 | (define-public python-redis |
| 3062 | (package |
| 3063 | (name "python-redis") |
| 3064 | (version "2.10.3") |
| 3065 | (source |
| 3066 | (origin |
| 3067 | (method url-fetch) |
| 3068 | (uri (string-append |
| 3069 | "https://pypi.python.org/packages/source/r/redis/redis-" |
| 3070 | version ".tar.gz")) |
| 3071 | (sha256 |
| 3072 | (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4")))) |
| 3073 | (build-system python-build-system) |
| 3074 | ;; Tests require a running Redis server |
| 3075 | (arguments '(#:tests? #f)) |
| 3076 | (native-inputs |
| 3077 | `(("python-setuptools" ,python-setuptools) |
| 3078 | ("python-pytest" ,python-pytest))) |
| 3079 | (home-page "https://github.com/andymccurdy/redis-py") |
| 3080 | (synopsis "Redis Python client") |
| 3081 | (description |
| 3082 | "This package provides a Python interface to the Redis key-value store.") |
| 3083 | (license license:expat))) |
| 3084 | |
| 3085 | (define-public python2-redis |
| 3086 | (package-with-python2 python-redis)) |
| 3087 | |
| 3088 | (define-public python-rq |
| 3089 | (package |
| 3090 | (name "python-rq") |
| 3091 | (version "0.5.2") |
| 3092 | (source |
| 3093 | (origin |
| 3094 | (method url-fetch) |
| 3095 | (uri (string-append |
| 3096 | "https://pypi.python.org/packages/source/r/rq/rq-" |
| 3097 | version ".tar.gz")) |
| 3098 | (sha256 |
| 3099 | (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix")))) |
| 3100 | (build-system python-build-system) |
| 3101 | (propagated-inputs |
| 3102 | `(("python-click" ,python-click) |
| 3103 | ("python-redis" ,python-redis))) |
| 3104 | (native-inputs |
| 3105 | `(("python-setuptools" ,python-setuptools))) |
| 3106 | (home-page "http://python-rq.org/") |
| 3107 | (synopsis "Simple job queues for Python") |
| 3108 | (description |
| 3109 | "RQ (Redis Queue) is a simple Python library for queueing jobs and |
| 3110 | processing them in the background with workers. It is backed by Redis and it |
| 3111 | is designed to have a low barrier to entry.") |
| 3112 | (license license:bsd-2))) |
| 3113 | |
| 3114 | (define-public python2-rq |
| 3115 | (package-with-python2 python-rq)) |
| 3116 | |
| 3117 | (define-public python-cython |
| 3118 | (package |
| 3119 | (name "python-cython") |
| 3120 | (version "0.24.1") |
| 3121 | (source |
| 3122 | (origin |
| 3123 | (method url-fetch) |
| 3124 | (uri (pypi-uri "Cython" version)) |
| 3125 | (sha256 |
| 3126 | (base32 |
| 3127 | "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044")))) |
| 3128 | (build-system python-build-system) |
| 3129 | ;; we need the full python package and not just the python-wrapper |
| 3130 | ;; because we need libpython3.3m.so |
| 3131 | (inputs |
| 3132 | `(("python" ,python))) |
| 3133 | (arguments |
| 3134 | `(#:phases |
| 3135 | (modify-phases %standard-phases |
| 3136 | (add-before 'check 'set-HOME |
| 3137 | ;; some tests require access to "$HOME/.cython" |
| 3138 | (lambda _ (setenv "HOME" "/tmp"))) |
| 3139 | (replace 'check |
| 3140 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))))))) |
| 3141 | (home-page "http://cython.org/") |
| 3142 | (synopsis "C extensions for Python") |
| 3143 | (description "Cython is an optimising static compiler for both the Python |
| 3144 | programming language and the extended Cython programming language. It makes |
| 3145 | writing C extensions for Python as easy as Python itself.") |
| 3146 | (license license:asl2.0) |
| 3147 | (properties `((python2-variant . ,(delay python2-cython)))))) |
| 3148 | |
| 3149 | (define-public python2-cython |
| 3150 | (package (inherit (package-with-python2 |
| 3151 | (strip-python2-variant python-cython))) |
| 3152 | (name "python2-cython") |
| 3153 | (inputs |
| 3154 | `(("python-2" ,python-2))))) ; this is not automatically changed |
| 3155 | |
| 3156 | ;; This version of numpy is missing the documentation and is only used to |
| 3157 | ;; build matplotlib which is required to build numpy's documentation. |
| 3158 | (define python-numpy-bootstrap |
| 3159 | (package |
| 3160 | (name "python-numpy-bootstrap") |
| 3161 | (version "1.10.4") |
| 3162 | (source |
| 3163 | (origin |
| 3164 | (method url-fetch) |
| 3165 | (uri (string-append "mirror://sourceforge/numpy/NumPy/" version |
| 3166 | "/numpy-" version ".tar.gz")) |
| 3167 | (sha256 |
| 3168 | (base32 |
| 3169 | "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp")))) |
| 3170 | (build-system python-build-system) |
| 3171 | (inputs |
| 3172 | `(("python-nose" ,python-nose) |
| 3173 | ("openblas" ,openblas) |
| 3174 | ("lapack" ,lapack))) |
| 3175 | (native-inputs |
| 3176 | `(("gfortran" ,gfortran))) |
| 3177 | (arguments |
| 3178 | `(#:phases |
| 3179 | (alist-cons-before |
| 3180 | 'build 'set-environment-variables |
| 3181 | (lambda* (#:key inputs #:allow-other-keys) |
| 3182 | (call-with-output-file "site.cfg" |
| 3183 | (lambda (port) |
| 3184 | (format port |
| 3185 | "[openblas] |
| 3186 | libraries = openblas |
| 3187 | library_dirs = ~a/lib |
| 3188 | include_dirs = ~a/include |
| 3189 | |
| 3190 | [lapack] |
| 3191 | lapack_libs = lapack |
| 3192 | library_dirs = ~a/lib |
| 3193 | include_dirs = ~a/include |
| 3194 | " |
| 3195 | (assoc-ref inputs "openblas") |
| 3196 | (assoc-ref inputs "openblas") |
| 3197 | (assoc-ref inputs "lapack") |
| 3198 | (assoc-ref inputs "lapack")))) |
| 3199 | ;; Use "gcc" executable, not "cc". |
| 3200 | (substitute* "numpy/distutils/system_info.py" |
| 3201 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") |
| 3202 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) |
| 3203 | #t) |
| 3204 | ;; Tests can only be run after the library has been installed and not |
| 3205 | ;; within the source directory. |
| 3206 | (alist-cons-after |
| 3207 | 'install 'check |
| 3208 | (lambda _ |
| 3209 | (with-directory-excursion "/tmp" |
| 3210 | (zero? (system* "python" "-c" |
| 3211 | "import numpy; numpy.test(verbose=2)")))) |
| 3212 | (alist-delete |
| 3213 | 'check |
| 3214 | %standard-phases))))) |
| 3215 | (home-page "http://www.numpy.org/") |
| 3216 | (synopsis "Fundamental package for scientific computing with Python") |
| 3217 | (description "NumPy is the fundamental package for scientific computing |
| 3218 | with Python. It contains among other things: a powerful N-dimensional array |
| 3219 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
| 3220 | and Fortran code, useful linear algebra, Fourier transform, and random number |
| 3221 | capabilities.") |
| 3222 | (license license:bsd-3))) |
| 3223 | |
| 3224 | (define python2-numpy-bootstrap |
| 3225 | (package-with-python2 python-numpy-bootstrap)) |
| 3226 | |
| 3227 | (define-public python2-fastlmm |
| 3228 | (package |
| 3229 | (name "python2-fastlmm") |
| 3230 | (version "0.2.21") |
| 3231 | (source |
| 3232 | (origin |
| 3233 | (method url-fetch) |
| 3234 | (uri (pypi-uri "fastlmm" version ".zip")) |
| 3235 | (sha256 |
| 3236 | (base32 |
| 3237 | "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m")))) |
| 3238 | (build-system python-build-system) |
| 3239 | (arguments |
| 3240 | `(#:python ,python-2)) ; only Python 2.7 is supported |
| 3241 | (propagated-inputs |
| 3242 | `(("python2-numpy" ,python2-numpy) |
| 3243 | ("python2-scipy" ,python2-scipy) |
| 3244 | ("python2-matplotlib" ,python2-matplotlib) |
| 3245 | ("python2-pandas" ,python2-pandas) |
| 3246 | ("python2-scikit-learn" ,python2-scikit-learn) |
| 3247 | ("python2-cython" ,python2-cython) |
| 3248 | ("python2-pysnptools" ,python2-pysnptools))) |
| 3249 | (native-inputs |
| 3250 | `(("unzip" ,unzip) |
| 3251 | ("python2-mock" ,python2-mock) |
| 3252 | ("python2-setuptools" ,python2-setuptools))) |
| 3253 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") |
| 3254 | (synopsis "Perform genome-wide association studies on large data sets") |
| 3255 | (description |
| 3256 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed |
| 3257 | Models, is a program for performing both single-SNP and SNP-set genome-wide |
| 3258 | association studies (GWAS) on extremely large data sets.") |
| 3259 | (license license:asl2.0))) |
| 3260 | |
| 3261 | (define-public python-numpy |
| 3262 | (package (inherit python-numpy-bootstrap) |
| 3263 | (name "python-numpy") |
| 3264 | (outputs '("out" "doc")) |
| 3265 | (inputs |
| 3266 | `(("which" ,which) |
| 3267 | ("python-setuptools" ,python-setuptools) |
| 3268 | ("python-matplotlib" ,python-matplotlib) |
| 3269 | ("python-sphinx" ,python-sphinx) |
| 3270 | ("python-pyparsing" ,python-pyparsing) |
| 3271 | ("python-numpydoc" ,python-numpydoc) |
| 3272 | ,@(package-inputs python-numpy-bootstrap))) |
| 3273 | (native-inputs |
| 3274 | `(("pkg-config" ,pkg-config) |
| 3275 | ("texlive" ,texlive) |
| 3276 | ("texinfo" ,texinfo) |
| 3277 | ("perl" ,perl) |
| 3278 | ,@(package-native-inputs python-numpy-bootstrap))) |
| 3279 | (arguments |
| 3280 | `(,@(substitute-keyword-arguments |
| 3281 | (package-arguments python-numpy-bootstrap) |
| 3282 | ((#:phases phases) |
| 3283 | `(alist-cons-after |
| 3284 | 'install 'install-doc |
| 3285 | (lambda* (#:key outputs #:allow-other-keys) |
| 3286 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3287 | (doc (string-append |
| 3288 | data "/doc/" ,name "-" |
| 3289 | ,(package-version python-numpy-bootstrap))) |
| 3290 | (info (string-append data "/info")) |
| 3291 | (html (string-append doc "/html")) |
| 3292 | (pyver ,(string-append "PYVER="))) |
| 3293 | (with-directory-excursion "doc" |
| 3294 | (mkdir-p html) |
| 3295 | (system* "make" "html" pyver) |
| 3296 | (system* "make" "latex" "PAPER=a4" pyver) |
| 3297 | (system* "make" "-C" "build/latex" |
| 3298 | "all-pdf" "PAPER=a4" pyver) |
| 3299 | ;; FIXME: Generation of the info file fails. |
| 3300 | ;; (system* "make" "info" pyver) |
| 3301 | ;; (mkdir-p info) |
| 3302 | ;; (copy-file "build/texinfo/numpy.info" |
| 3303 | ;; (string-append info "/numpy.info")) |
| 3304 | (for-each (lambda (file) |
| 3305 | (copy-file (string-append "build/latex" file) |
| 3306 | (string-append doc file))) |
| 3307 | '("/numpy-ref.pdf" "/numpy-user.pdf")) |
| 3308 | (with-directory-excursion "build/html" |
| 3309 | (for-each (lambda (file) |
| 3310 | (let* ((dir (dirname file)) |
| 3311 | (tgt-dir (string-append html "/" dir))) |
| 3312 | (unless (equal? "." dir) |
| 3313 | (mkdir-p tgt-dir)) |
| 3314 | (install-file file html))) |
| 3315 | (find-files "." ".*")))))) |
| 3316 | ,phases))))))) |
| 3317 | |
| 3318 | (define-public python2-numpy |
| 3319 | (package-with-python2 python-numpy)) |
| 3320 | |
| 3321 | (define-public python-pyparsing |
| 3322 | (package |
| 3323 | (name "python-pyparsing") |
| 3324 | (version "2.0.3") |
| 3325 | (source |
| 3326 | (origin |
| 3327 | (method url-fetch) |
| 3328 | (uri (string-append "mirror://sourceforge/pyparsing/pyparsing" |
| 3329 | "/pyparsing-" version |
| 3330 | "/pyparsing-" version ".tar.gz")) |
| 3331 | (sha256 |
| 3332 | (base32 |
| 3333 | "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6")))) |
| 3334 | (build-system python-build-system) |
| 3335 | (outputs '("out" "doc")) |
| 3336 | (arguments |
| 3337 | `(#:tests? #f ; no test target |
| 3338 | #:modules ((guix build python-build-system) |
| 3339 | (guix build utils)) |
| 3340 | #:phases |
| 3341 | (alist-cons-after |
| 3342 | 'install 'install-doc |
| 3343 | (lambda* (#:key outputs #:allow-other-keys) |
| 3344 | (let* ((doc (string-append (assoc-ref outputs "doc") |
| 3345 | "/share/doc/" ,name "-" ,version)) |
| 3346 | (html-doc (string-append doc "/html")) |
| 3347 | (examples (string-append doc "/examples"))) |
| 3348 | (mkdir-p html-doc) |
| 3349 | (mkdir-p examples) |
| 3350 | (for-each |
| 3351 | (lambda (dir tgt) |
| 3352 | (map (lambda (file) |
| 3353 | (install-file file tgt)) |
| 3354 | (find-files dir ".*"))) |
| 3355 | (list "docs" "htmldoc" "examples") |
| 3356 | (list doc html-doc examples)))) |
| 3357 | %standard-phases))) |
| 3358 | (home-page "http://pyparsing.wikispaces.com") |
| 3359 | (synopsis "Python parsing class library") |
| 3360 | (description |
| 3361 | "The pyparsing module is an alternative approach to creating and |
| 3362 | executing simple grammars, vs. the traditional lex/yacc approach, or the use |
| 3363 | of regular expressions. The pyparsing module provides a library of classes |
| 3364 | that client code uses to construct the grammar directly in Python code.") |
| 3365 | (license license:expat))) |
| 3366 | |
| 3367 | (define-public python2-pyparsing |
| 3368 | (package-with-python2 python-pyparsing)) |
| 3369 | |
| 3370 | (define-public python-numpydoc |
| 3371 | (package |
| 3372 | (name "python-numpydoc") |
| 3373 | (version "0.5") |
| 3374 | (source |
| 3375 | (origin |
| 3376 | (method url-fetch) |
| 3377 | (uri (string-append |
| 3378 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
| 3379 | version ".tar.gz")) |
| 3380 | (sha256 |
| 3381 | (base32 |
| 3382 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
| 3383 | (modules '((guix build utils))) |
| 3384 | (snippet |
| 3385 | '(begin |
| 3386 | ;; Drop a test requiring matplotlib, which we cannot add as an |
| 3387 | ;; input since it would create a circular dependency: Extend the |
| 3388 | ;; test for Python 3, where it is already dropped, to Python 2. |
| 3389 | (substitute* "numpydoc/tests/test_plot_directive.py" |
| 3390 | (("3") "2")))))) |
| 3391 | (build-system python-build-system) |
| 3392 | (inputs |
| 3393 | `(("python-setuptools" ,python-setuptools) |
| 3394 | ("python-docutils" ,python-docutils) |
| 3395 | ("python-sphinx" ,python-sphinx) |
| 3396 | ("python-nose" ,python-nose))) |
| 3397 | (home-page "https://pypi.python.org/pypi/numpydoc") |
| 3398 | (synopsis |
| 3399 | "Numpy's Sphinx extensions") |
| 3400 | (description |
| 3401 | "Sphinx extension to support docstrings in Numpy format.") |
| 3402 | (license license:bsd-2))) |
| 3403 | |
| 3404 | (define-public python2-numpydoc |
| 3405 | (package-with-python2 python-numpydoc)) |
| 3406 | |
| 3407 | (define-public python-numexpr |
| 3408 | (package |
| 3409 | (name "python-numexpr") |
| 3410 | (version "2.6.0") |
| 3411 | (source |
| 3412 | (origin |
| 3413 | (method url-fetch) |
| 3414 | (uri (pypi-uri "numexpr" version)) |
| 3415 | (sha256 |
| 3416 | (base32 |
| 3417 | "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag")))) |
| 3418 | (build-system python-build-system) |
| 3419 | (arguments `(#:tests? #f)) ; no tests included |
| 3420 | (propagated-inputs |
| 3421 | `(("python-numpy" ,python-numpy))) |
| 3422 | (home-page "https://github.com/pydata/numexpr") |
| 3423 | (synopsis "Fast numerical expression evaluator for NumPy") |
| 3424 | (description |
| 3425 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, |
| 3426 | expressions that operate on arrays are accelerated and use less memory than |
| 3427 | doing the same calculation in Python. In addition, its multi-threaded |
| 3428 | capabilities can make use of all your cores, which may accelerate |
| 3429 | computations, most specially if they are not memory-bounded (e.g. those using |
| 3430 | transcendental functions).") |
| 3431 | (license license:expat) |
| 3432 | (properties `((python2-variant . ,(delay python2-numexpr)))))) |
| 3433 | |
| 3434 | (define-public python2-numexpr |
| 3435 | (package-with-python2 (strip-python2-variant python-numexpr))) |
| 3436 | |
| 3437 | (define-public python-matplotlib |
| 3438 | (package |
| 3439 | (name "python-matplotlib") |
| 3440 | (version "1.4.3") |
| 3441 | (source |
| 3442 | (origin |
| 3443 | (method url-fetch) |
| 3444 | (uri (string-append "mirror://sourceforge/matplotlib/matplotlib" |
| 3445 | "/matplotlib-" version |
| 3446 | "/matplotlib-" version ".tar.gz")) |
| 3447 | (sha256 |
| 3448 | (base32 |
| 3449 | "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av")) |
| 3450 | (patches (search-patches "matplotlib-setupext-tk.patch")))) |
| 3451 | (build-system python-build-system) |
| 3452 | (outputs '("out" "doc")) |
| 3453 | (propagated-inputs ; the following packages are all needed at run time |
| 3454 | `(("python-pyparsing" ,python-pyparsing) |
| 3455 | ("python-pygobject" ,python-pygobject) |
| 3456 | ("gobject-introspection" ,gobject-introspection) |
| 3457 | ("python-tkinter" ,python "tk") |
| 3458 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
| 3459 | ;; from 'gtk+') provides the required 'typelib' files used by |
| 3460 | ;; 'gobject-introspection'. The location of these files is set with the |
| 3461 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this |
| 3462 | ;; is done automatically by a 'native-search-path' procedure. However, |
| 3463 | ;; at run-time the user must set this variable as follows: |
| 3464 | ;; |
| 3465 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 |
| 3466 | ("gtk+" ,gtk+) |
| 3467 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of |
| 3468 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' |
| 3469 | ;; object. For this reason we need to import both libraries. |
| 3470 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo |
| 3471 | ("python-pycairo" ,python-pycairo) |
| 3472 | ("python-cairocffi" ,python-cairocffi))) |
| 3473 | (inputs |
| 3474 | `(("python-setuptools" ,python-setuptools) |
| 3475 | ("python-dateutil" ,python-dateutil-2) |
| 3476 | ("python-six" ,python-six) |
| 3477 | ("python-pytz" ,python-pytz) |
| 3478 | ("python-numpy" ,python-numpy-bootstrap) |
| 3479 | ("python-sphinx" ,python-sphinx) |
| 3480 | ("python-numpydoc" ,python-numpydoc) |
| 3481 | ("python-nose" ,python-nose) |
| 3482 | ("python-mock" ,python-mock) |
| 3483 | ("libpng" ,libpng) |
| 3484 | ("imagemagick" ,imagemagick) |
| 3485 | ("freetype" ,freetype) |
| 3486 | ("cairo" ,cairo) |
| 3487 | ("glib" ,glib) |
| 3488 | ("python-pillow" ,python-pillow) |
| 3489 | ;; FIXME: Add backends when available. |
| 3490 | ;("python-wxpython" ,python-wxpython) |
| 3491 | ;("python-pyqt" ,python-pyqt) |
| 3492 | ("tcl" ,tcl) |
| 3493 | ("tk" ,tk))) |
| 3494 | (native-inputs |
| 3495 | `(("pkg-config" ,pkg-config) |
| 3496 | ("texlive" ,texlive) |
| 3497 | ("texinfo" ,texinfo))) |
| 3498 | (arguments |
| 3499 | `(#:phases |
| 3500 | (alist-cons-before |
| 3501 | 'build 'configure-environment |
| 3502 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3503 | (let ((cairo (assoc-ref inputs "cairo")) |
| 3504 | (gtk+ (assoc-ref inputs "gtk+"))) |
| 3505 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' |
| 3506 | ;; has not effect. |
| 3507 | (setenv "LD_LIBRARY_PATH" |
| 3508 | (string-append cairo "/lib:" gtk+ "/lib")) |
| 3509 | (setenv "HOME" (getcwd)) |
| 3510 | (call-with-output-file "setup.cfg" |
| 3511 | (lambda (port) |
| 3512 | (format port "[directories]~% |
| 3513 | basedirlist = ~a,~a~% |
| 3514 | [rc_options]~% |
| 3515 | backend = TkAgg~%" |
| 3516 | (assoc-ref inputs "tcl") |
| 3517 | (assoc-ref inputs "tk")))))) |
| 3518 | (alist-cons-after |
| 3519 | 'install 'install-doc |
| 3520 | (lambda* (#:key outputs #:allow-other-keys) |
| 3521 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3522 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 3523 | (info (string-append data "/info")) |
| 3524 | (html (string-append doc "/html"))) |
| 3525 | (with-directory-excursion "doc" |
| 3526 | ;; Produce pdf in 'A4' format. |
| 3527 | (substitute* (find-files "." "conf\\.py") |
| 3528 | (("latex_paper_size = 'letter'") |
| 3529 | "latex_paper_size = 'a4'")) |
| 3530 | (mkdir-p html) |
| 3531 | (mkdir-p info) |
| 3532 | ;; The doc recommends to run the 'html' target twice. |
| 3533 | (system* "python" "make.py" "html") |
| 3534 | (system* "python" "make.py" "html") |
| 3535 | (copy-recursively "build/html" html) |
| 3536 | (system* "python" "make.py" "latex") |
| 3537 | (system* "python" "make.py" "texinfo") |
| 3538 | (symlink (string-append html "/_images") |
| 3539 | (string-append info "/matplotlib-figures")) |
| 3540 | (with-directory-excursion "build/texinfo" |
| 3541 | (substitute* "matplotlib.texi" |
| 3542 | (("@image\\{([^,]*)" all file) |
| 3543 | (string-append "@image{matplotlib-figures/" file))) |
| 3544 | (symlink (string-append html "/_images") |
| 3545 | "./matplotlib-figures") |
| 3546 | (system* "makeinfo" "--no-split" |
| 3547 | "-o" "matplotlib.info" "matplotlib.texi")) |
| 3548 | (copy-file "build/texinfo/matplotlib.info" |
| 3549 | (string-append info "/matplotlib.info")) |
| 3550 | (copy-file "build/latex/Matplotlib.pdf" |
| 3551 | (string-append doc "/Matplotlib.pdf"))))) |
| 3552 | %standard-phases)))) |
| 3553 | (home-page "http://matplotlib.org") |
| 3554 | (synopsis "2D plotting library for Python") |
| 3555 | (description |
| 3556 | "Matplotlib is a Python 2D plotting library which produces publication |
| 3557 | quality figures in a variety of hardcopy formats and interactive environments |
| 3558 | across platforms. Matplotlib can be used in Python scripts, the python and |
| 3559 | ipython shell, web application servers, and six graphical user interface |
| 3560 | toolkits.") |
| 3561 | (license license:psfl) |
| 3562 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) |
| 3563 | |
| 3564 | (define-public python2-matplotlib |
| 3565 | (let ((matplotlib (package-with-python2 |
| 3566 | (strip-python2-variant python-matplotlib)))) |
| 3567 | (package (inherit matplotlib) |
| 3568 | ;; Make sure to use special packages for Python 2 instead |
| 3569 | ;; of those automatically rewritten by package-with-python2. |
| 3570 | (propagated-inputs |
| 3571 | `(("python2-pycairo" ,python2-pycairo) |
| 3572 | ("python2-pygobject-2" ,python2-pygobject-2) |
| 3573 | ("python2-tkinter" ,python-2 "tk") |
| 3574 | ,@(fold alist-delete (package-propagated-inputs matplotlib) |
| 3575 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) |
| 3576 | |
| 3577 | (define-public python2-pysnptools |
| 3578 | (package |
| 3579 | (name "python2-pysnptools") |
| 3580 | (version "0.3.9") |
| 3581 | (source |
| 3582 | (origin |
| 3583 | (method url-fetch) |
| 3584 | (uri (pypi-uri "pysnptools" version ".zip")) |
| 3585 | (sha256 |
| 3586 | (base32 |
| 3587 | "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2")))) |
| 3588 | (build-system python-build-system) |
| 3589 | (arguments |
| 3590 | `(#:python ,python-2)) ; only Python 2.7 is supported |
| 3591 | (propagated-inputs |
| 3592 | `(("python2-numpy" ,python2-numpy) |
| 3593 | ("python2-scipy" ,python2-scipy) |
| 3594 | ("python2-pytz" ,python2-pytz) |
| 3595 | ("python2-cython" ,python2-cython))) |
| 3596 | (inputs |
| 3597 | `(("python2-dateutil-2" ,python2-dateutil-2) |
| 3598 | ("python2-pandas" ,python2-pandas) |
| 3599 | ("python2-six" ,python2-six))) |
| 3600 | (native-inputs |
| 3601 | `(("unzip" ,unzip) |
| 3602 | ("python2-setuptools" ,python2-setuptools))) |
| 3603 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") |
| 3604 | (synopsis "Library for reading and manipulating genetic data") |
| 3605 | (description |
| 3606 | "PySnpTools is a library for reading and manipulating genetic data. It |
| 3607 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of |
| 3608 | those files. It can also efficiently manipulate ranges of integers using set |
| 3609 | operators such as union, intersection, and difference.") |
| 3610 | (license license:asl2.0))) |
| 3611 | |
| 3612 | (define-public python-rpy2 |
| 3613 | (package |
| 3614 | (name "python-rpy2") |
| 3615 | (version "2.7.6") |
| 3616 | (source |
| 3617 | (origin |
| 3618 | (method url-fetch) |
| 3619 | (uri (pypi-uri "rpy2" version)) |
| 3620 | (sha256 |
| 3621 | (base32 |
| 3622 | "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga")))) |
| 3623 | (build-system python-build-system) |
| 3624 | (inputs |
| 3625 | `(("python-six" ,python-six) |
| 3626 | ("readline" ,readline) |
| 3627 | ("icu4c" ,icu4c) |
| 3628 | ("pcre" ,pcre) |
| 3629 | ("r" ,r))) |
| 3630 | (native-inputs |
| 3631 | `(("python-setuptools" ,python-setuptools) |
| 3632 | ("zlib" ,zlib))) |
| 3633 | (home-page "http://rpy.sourceforge.net/") |
| 3634 | (synopsis "Python interface to the R language") |
| 3635 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a |
| 3636 | low-level interface to R from Python, a proposed high-level interface, |
| 3637 | including wrappers to graphical libraries, as well as R-like structures and |
| 3638 | functions.") |
| 3639 | (license license:gpl3+))) |
| 3640 | |
| 3641 | (define-public python2-rpy2 |
| 3642 | (let ((rpy2 (package-with-python2 python-rpy2))) |
| 3643 | (package (inherit rpy2) |
| 3644 | (native-inputs |
| 3645 | `(("python2-singledispatch" ,python2-singledispatch) |
| 3646 | ,@(package-native-inputs rpy2)))))) |
| 3647 | |
| 3648 | (define-public python-scipy |
| 3649 | (package |
| 3650 | (name "python-scipy") |
| 3651 | (version "0.16.0") |
| 3652 | (source |
| 3653 | (origin |
| 3654 | (method url-fetch) |
| 3655 | ; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz |
| 3656 | (uri (string-append "mirror://sourceforge/scipy/scipy/" version |
| 3657 | "/scipy-" version ".tar.xz")) |
| 3658 | (sha256 |
| 3659 | (base32 |
| 3660 | "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2")))) |
| 3661 | (build-system python-build-system) |
| 3662 | (propagated-inputs |
| 3663 | `(("python-numpy" ,python-numpy) |
| 3664 | ("python-matplotlib" ,python-matplotlib) |
| 3665 | ("python-pyparsing" ,python-pyparsing))) |
| 3666 | (inputs |
| 3667 | `(("lapack" ,lapack) |
| 3668 | ("openblas" ,openblas))) |
| 3669 | (native-inputs |
| 3670 | `(("python-nose" ,python-nose) |
| 3671 | ("python-sphinx" ,python-sphinx) |
| 3672 | ("python-numpydoc" ,python-numpydoc) |
| 3673 | ("gfortran" ,gfortran) |
| 3674 | ("texlive" ,texlive) |
| 3675 | ("perl" ,perl))) |
| 3676 | (outputs '("out" "doc")) |
| 3677 | (arguments |
| 3678 | `(#:phases |
| 3679 | (alist-cons-before |
| 3680 | 'build 'configure-openblas |
| 3681 | (lambda* (#:key inputs #:allow-other-keys) |
| 3682 | (call-with-output-file "site.cfg" |
| 3683 | (lambda (port) |
| 3684 | (format port |
| 3685 | "[blas] |
| 3686 | libraries = openblas |
| 3687 | library_dirs = ~a/lib |
| 3688 | include_dirs = ~a/include |
| 3689 | [atlas] |
| 3690 | library_dirs = ~a/lib |
| 3691 | atlas_libs = openblas |
| 3692 | " |
| 3693 | (assoc-ref inputs "openblas") |
| 3694 | (assoc-ref inputs "openblas") |
| 3695 | (assoc-ref inputs "openblas")))) |
| 3696 | #t) |
| 3697 | (alist-cons-after |
| 3698 | 'install 'install-doc |
| 3699 | (lambda* (#:key outputs #:allow-other-keys) |
| 3700 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3701 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 3702 | (html (string-append doc "/html")) |
| 3703 | (pyver ,(string-append "PYVER="))) |
| 3704 | (with-directory-excursion "doc" |
| 3705 | ;; Fix generation of images for mathematical expressions. |
| 3706 | (substitute* (find-files "source" "conf\\.py") |
| 3707 | (("pngmath_use_preview = True") |
| 3708 | "pngmath_use_preview = False")) |
| 3709 | (mkdir-p html) |
| 3710 | (system* "make" "html" pyver) |
| 3711 | (system* "make" "latex" "PAPER=a4" pyver) |
| 3712 | (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver) |
| 3713 | (copy-file "build/latex/scipy-ref.pdf" |
| 3714 | (string-append doc "/scipy-ref.pdf")) |
| 3715 | (with-directory-excursion "build/html" |
| 3716 | (for-each (lambda (file) |
| 3717 | (let* ((dir (dirname file)) |
| 3718 | (tgt-dir (string-append html "/" dir))) |
| 3719 | (install-file file html))) |
| 3720 | (find-files "." ".*")))))) |
| 3721 | ;; Tests can only be run after the library has been installed and not |
| 3722 | ;; within the source directory. |
| 3723 | (alist-cons-after |
| 3724 | 'install 'check |
| 3725 | (lambda _ |
| 3726 | (with-directory-excursion "/tmp" |
| 3727 | (zero? (system* "python" "-c" "import scipy; scipy.test()")))) |
| 3728 | (alist-delete |
| 3729 | 'check |
| 3730 | (alist-cons-after |
| 3731 | 'unpack 'fix-tests |
| 3732 | (lambda _ |
| 3733 | (substitute* "scipy/integrate/tests/test_quadpack.py" |
| 3734 | (("libm.so") "libm.so.6")) |
| 3735 | #t) |
| 3736 | %standard-phases))))))) |
| 3737 | (home-page "http://www.scipy.org/") |
| 3738 | (synopsis "The Scipy library provides efficient numerical routines") |
| 3739 | (description "The SciPy library is one of the core packages that make up |
| 3740 | the SciPy stack. It provides many user-friendly and efficient numerical |
| 3741 | routines such as routines for numerical integration and optimization.") |
| 3742 | (license license:bsd-3))) |
| 3743 | |
| 3744 | (define-public python2-scipy |
| 3745 | (package-with-python2 python-scipy)) |
| 3746 | |
| 3747 | (define-public python-socksipy-branch |
| 3748 | (package |
| 3749 | (name "python-socksipy-branch") |
| 3750 | (version "1.01") |
| 3751 | (source |
| 3752 | (origin |
| 3753 | (method url-fetch) |
| 3754 | (uri (pypi-uri "SocksiPy-branch" version)) |
| 3755 | (sha256 |
| 3756 | (base32 |
| 3757 | "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) |
| 3758 | (build-system python-build-system) |
| 3759 | (arguments |
| 3760 | `(#:tests? #f)) ; There are no tests |
| 3761 | (home-page "https://code.google.com/archive/p/socksipy-branch/") |
| 3762 | (synopsis "Python SOCKS module") |
| 3763 | (description |
| 3764 | "SocksiPy - A Python SOCKS client module. It provides a |
| 3765 | socket-like interface that supports connections to any TCP |
| 3766 | service through the use of a SOCKS4, SOCKS5 or HTTP proxy. |
| 3767 | The original version was developed by Dan Haim, this is a |
| 3768 | branch created by Mario Vilas to address some open issues, |
| 3769 | as the original project seems to have been abandoned circa 2007.") |
| 3770 | (license license:bsd-3))) |
| 3771 | |
| 3772 | (define-public python2-socksipy-branch |
| 3773 | (package-with-python2 python-socksipy-branch)) |
| 3774 | |
| 3775 | (define-public python-sqlalchemy |
| 3776 | (package |
| 3777 | (name "python-sqlalchemy") |
| 3778 | (version "1.0.12") |
| 3779 | (source |
| 3780 | (origin |
| 3781 | (method url-fetch) |
| 3782 | (uri (string-append "https://pypi.python.org/packages/source/S/" |
| 3783 | "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) |
| 3784 | (sha256 |
| 3785 | (base32 |
| 3786 | "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6")))) |
| 3787 | (build-system python-build-system) |
| 3788 | (native-inputs |
| 3789 | `(("python-cython" ,python-cython) ;for c extensions |
| 3790 | ("python-pytest" ,python-pytest) |
| 3791 | ("python-mock" ,python-mock))) ;for tests |
| 3792 | (arguments |
| 3793 | `(#:phases (alist-replace |
| 3794 | 'check |
| 3795 | (lambda _ (zero? (system* "py.test"))) |
| 3796 | %standard-phases))) |
| 3797 | (home-page "http://www.sqlalchemy.org") |
| 3798 | (synopsis "Database abstraction library") |
| 3799 | (description |
| 3800 | "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that |
| 3801 | gives application developers the full power and flexibility of SQL. It |
| 3802 | provides a full suite of well known enterprise-level persistence patterns, |
| 3803 | designed for efficient and high-performing database access, adapted into a |
| 3804 | simple and Pythonic domain language.") |
| 3805 | (license license:x11))) |
| 3806 | |
| 3807 | (define-public python2-sqlalchemy |
| 3808 | (package-with-python2 python-sqlalchemy)) |
| 3809 | |
| 3810 | (define-public python-sqlalchemy-utils |
| 3811 | (package |
| 3812 | (name "python-sqlalchemy-utils") |
| 3813 | (version "0.32.9") |
| 3814 | (source |
| 3815 | (origin |
| 3816 | (method url-fetch) |
| 3817 | (uri (pypi-uri "SQLAlchemy-Utils" version)) |
| 3818 | (sha256 |
| 3819 | (base32 |
| 3820 | "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98")))) |
| 3821 | (build-system python-build-system) |
| 3822 | (inputs |
| 3823 | `(("python-six" ,python-six) |
| 3824 | ("python-sqlalchemy" ,python-sqlalchemy))) |
| 3825 | (home-page "https://github.com/kvesteri/sqlalchemy-utils") |
| 3826 | (synopsis "Various utility functions for SQLAlchemy") |
| 3827 | (description |
| 3828 | "SQLAlchemy-utils provides various utility functions and custom data types |
| 3829 | for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.") |
| 3830 | (properties `((python2-variant . ,(delay python2-sqlalchemy-utils)))) |
| 3831 | (license license:bsd-3))) |
| 3832 | |
| 3833 | (define-public python2-sqlalchemy-utils |
| 3834 | (let ((base (package-with-python2 |
| 3835 | (strip-python2-variant python-sqlalchemy-utils)))) |
| 3836 | (package (inherit base) |
| 3837 | (native-inputs |
| 3838 | `(("python2-setuptools" ,python2-setuptools) |
| 3839 | ,@(package-native-inputs base)))))) |
| 3840 | |
| 3841 | (define-public python-alembic |
| 3842 | (package |
| 3843 | (name "python-alembic") |
| 3844 | (version "0.8.7") |
| 3845 | (source |
| 3846 | (origin |
| 3847 | (method url-fetch) |
| 3848 | (uri (pypi-uri "alembic" version)) |
| 3849 | (sha256 |
| 3850 | (base32 |
| 3851 | "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z")))) |
| 3852 | (build-system python-build-system) |
| 3853 | (native-inputs |
| 3854 | `(("python-mock" ,python-mock) |
| 3855 | ("python-pytest-cov" ,python-pytest-cov))) |
| 3856 | (propagated-inputs |
| 3857 | `(("python-sqlalchemy" ,python-sqlalchemy) |
| 3858 | ("python-mako" ,python-mako) |
| 3859 | ("python-editor" ,python-editor))) |
| 3860 | (home-page "http://bitbucket.org/zzzeek/alembic") |
| 3861 | (synopsis |
| 3862 | "Database migration tool for SQLAlchemy") |
| 3863 | (description |
| 3864 | "Alembic is a lightweight database migration tool for usage with the |
| 3865 | SQLAlchemy Database Toolkit for Python.") |
| 3866 | (license license:expat) |
| 3867 | (properties `((python2-variant . ,(delay python2-alembic)))))) |
| 3868 | |
| 3869 | (define-public python2-alembic |
| 3870 | (let ((alembic (package-with-python2 |
| 3871 | (strip-python2-variant python-alembic)))) |
| 3872 | (package |
| 3873 | (inherit alembic) |
| 3874 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 3875 | ,@(package-native-inputs alembic)))))) |
| 3876 | |
| 3877 | (define-public python-distutils-extra |
| 3878 | (package |
| 3879 | (name "python-distutils-extra") |
| 3880 | (version "2.38") |
| 3881 | (source |
| 3882 | (origin |
| 3883 | (method url-fetch) |
| 3884 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" |
| 3885 | version "/+download/python-distutils-extra-" |
| 3886 | version ".tar.gz")) |
| 3887 | (sha256 |
| 3888 | (base32 |
| 3889 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) |
| 3890 | (build-system python-build-system) |
| 3891 | (native-inputs |
| 3892 | `(("python-setuptools" ,python-setuptools))) |
| 3893 | (home-page "https://launchpad.net/python-distutils-extra/") |
| 3894 | (synopsis "Enhancements to Python's distutils") |
| 3895 | (description |
| 3896 | "The python-distutils-extra module enables you to easily integrate |
| 3897 | gettext support, themed icons, and scrollkeeper-based documentation into |
| 3898 | Python's distutils.") |
| 3899 | (license license:gpl2))) |
| 3900 | |
| 3901 | (define-public python2-distutils-extra |
| 3902 | (package-with-python2 python-distutils-extra)) |
| 3903 | |
| 3904 | (define-public python2-elib.intl |
| 3905 | (package |
| 3906 | (name "python2-elib.intl") |
| 3907 | (version "0.0.3") |
| 3908 | (source |
| 3909 | (origin |
| 3910 | ;; This project doesn't tag releases or publish tarballs, so we take |
| 3911 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. |
| 3912 | (method git-fetch) |
| 3913 | (uri (git-reference |
| 3914 | (url "https://github.com/dieterv/elib.intl.git") |
| 3915 | (commit "d09997cfef"))) |
| 3916 | (sha256 |
| 3917 | (base32 |
| 3918 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) |
| 3919 | (build-system python-build-system) |
| 3920 | (native-inputs |
| 3921 | `(("python2-setuptools" ,python2-setuptools))) |
| 3922 | (arguments |
| 3923 | ;; incompatible with Python 3 (exception syntax) |
| 3924 | `(#:python ,python-2 |
| 3925 | #:tests? #f |
| 3926 | ;; With standard flags, the install phase attempts to create a zip'd |
| 3927 | ;; egg file, and fails with an error: 'ZIP does not support timestamps |
| 3928 | ;; before 1980' |
| 3929 | #:configure-flags '("--single-version-externally-managed" |
| 3930 | "--record=elib.txt"))) |
| 3931 | (home-page "https://github.com/dieterv/elib.intl") |
| 3932 | (synopsis "Enhanced internationalization for Python") |
| 3933 | (description |
| 3934 | "The elib.intl module provides enhanced internationalization (I18N) |
| 3935 | services for your Python modules and applications.") |
| 3936 | (license license:lgpl3+))) |
| 3937 | |
| 3938 | (define-public python-pillow |
| 3939 | (package |
| 3940 | (name "python-pillow") |
| 3941 | (version "3.3.1") |
| 3942 | (source |
| 3943 | (origin |
| 3944 | (method url-fetch) |
| 3945 | (uri (pypi-uri "Pillow" version)) |
| 3946 | (sha256 |
| 3947 | (base32 |
| 3948 | "1w9x3dfrg8b5lqhpjl0fczfyf9842wbqwgxbjjq4vfpxv5jwm49l")))) |
| 3949 | (build-system python-build-system) |
| 3950 | (native-inputs |
| 3951 | `(("python-setuptools" ,python-setuptools) |
| 3952 | ("python-nose" ,python-nose))) |
| 3953 | (inputs |
| 3954 | `(("freetype" ,freetype) |
| 3955 | ("lcms" ,lcms) |
| 3956 | ("zlib" ,zlib) |
| 3957 | ("libjpeg" ,libjpeg) |
| 3958 | ("openjpeg" ,openjpeg) |
| 3959 | ("libtiff" ,libtiff) |
| 3960 | ("libwebp" ,libwebp))) |
| 3961 | (propagated-inputs |
| 3962 | `(;; Used at runtime for pkg_resources |
| 3963 | ("python-setuptools" ,python-setuptools))) |
| 3964 | (arguments |
| 3965 | `(#:phases (modify-phases %standard-phases |
| 3966 | (add-before |
| 3967 | 'install 'disable-egg-compression |
| 3968 | (lambda _ |
| 3969 | ;; Leave the .egg uncompressed since compressing it would |
| 3970 | ;; prevent the GC from identifying run-time dependencies. |
| 3971 | ;; See <http://bugs.gnu.org/20765>. |
| 3972 | (let ((port (open-file "setup.cfg" "a"))) |
| 3973 | (display "\n[easy_install]\nzip_ok = 0\n" |
| 3974 | port) |
| 3975 | (close-port port) |
| 3976 | #t))) |
| 3977 | (add-after |
| 3978 | 'install 'check-installed |
| 3979 | (lambda _ |
| 3980 | (begin |
| 3981 | (setenv "HOME" (getcwd)) |
| 3982 | (and (zero? (system* "python" "selftest.py" |
| 3983 | "--installed")) |
| 3984 | (zero? (system* "python" "test-installed.py")))))) |
| 3985 | (delete 'check)))) |
| 3986 | (home-page "https://pypi.python.org/pypi/Pillow") |
| 3987 | (synopsis "Fork of the Python Imaging Library") |
| 3988 | (description |
| 3989 | "The Python Imaging Library adds image processing capabilities to your |
| 3990 | Python interpreter. This library provides extensive file format support, an |
| 3991 | efficient internal representation, and fairly powerful image processing |
| 3992 | capabilities. The core image library is designed for fast access to data |
| 3993 | stored in a few basic pixel formats. It should provide a solid foundation for |
| 3994 | a general image processing tool.") |
| 3995 | (license (license:x11-style |
| 3996 | "http://www.pythonware.com/products/pil/license.htm" |
| 3997 | "The PIL Software License")))) |
| 3998 | |
| 3999 | (define-public python2-pillow |
| 4000 | (package-with-python2 python-pillow)) |
| 4001 | |
| 4002 | (define-public python-pycparser |
| 4003 | (package |
| 4004 | (name "python-pycparser") |
| 4005 | (version "2.14") |
| 4006 | (source |
| 4007 | (origin |
| 4008 | (method url-fetch) |
| 4009 | (uri (pypi-uri "pycparser" version)) |
| 4010 | (sha256 |
| 4011 | (base32 |
| 4012 | "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr")))) |
| 4013 | (outputs '("out" "doc")) |
| 4014 | (build-system python-build-system) |
| 4015 | (native-inputs |
| 4016 | `(("pkg-config" ,pkg-config) |
| 4017 | ("python-setuptools" ,python-setuptools))) |
| 4018 | (arguments |
| 4019 | `(#:phases |
| 4020 | (alist-replace |
| 4021 | 'check |
| 4022 | (lambda _ |
| 4023 | (with-directory-excursion "tests" |
| 4024 | (zero? (system* "python" "all_tests.py")))) |
| 4025 | (alist-cons-after |
| 4026 | 'install 'install-doc |
| 4027 | (lambda* (#:key outputs #:allow-other-keys) |
| 4028 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4029 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4030 | (examples (string-append doc "/examples"))) |
| 4031 | (mkdir-p examples) |
| 4032 | (for-each (lambda (file) |
| 4033 | (copy-file (string-append "." file) |
| 4034 | (string-append doc file))) |
| 4035 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 4036 | (copy-recursively "examples" examples))) |
| 4037 | %standard-phases)))) |
| 4038 | (home-page "https://github.com/eliben/pycparser") |
| 4039 | (synopsis "C parser in Python") |
| 4040 | (description |
| 4041 | "Pycparser is a complete parser of the C language, written in pure Python |
| 4042 | using the PLY parsing library. It parses C code into an AST and can serve as |
| 4043 | a front-end for C compilers or analysis tools.") |
| 4044 | (license license:bsd-3))) |
| 4045 | |
| 4046 | (define-public python2-pycparser |
| 4047 | (package-with-python2 python-pycparser)) |
| 4048 | |
| 4049 | (define-public python-cffi |
| 4050 | (package |
| 4051 | (name "python-cffi") |
| 4052 | (version "1.4.2") |
| 4053 | (source |
| 4054 | (origin |
| 4055 | (method url-fetch) |
| 4056 | (uri (pypi-uri "cffi" version)) |
| 4057 | (sha256 |
| 4058 | (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg")))) |
| 4059 | (build-system python-build-system) |
| 4060 | (outputs '("out" "doc")) |
| 4061 | (inputs |
| 4062 | `(("libffi" ,libffi))) |
| 4063 | (propagated-inputs ; required at run-time |
| 4064 | `(("python-pycparser" ,python-pycparser))) |
| 4065 | (native-inputs |
| 4066 | `(("pkg-config" ,pkg-config) |
| 4067 | ("python-sphinx" ,python-sphinx) |
| 4068 | ("python-pytest" ,python-pytest) |
| 4069 | ("python-setuptools" ,python-setuptools))) |
| 4070 | (arguments |
| 4071 | `(#:phases |
| 4072 | (alist-cons-after |
| 4073 | 'install 'install-doc |
| 4074 | (lambda* (#:key outputs #:allow-other-keys) |
| 4075 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4076 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4077 | (html (string-append doc "/html"))) |
| 4078 | (with-directory-excursion "doc" |
| 4079 | (system* "make" "html") |
| 4080 | (mkdir-p html) |
| 4081 | (copy-recursively "build/html" html)) |
| 4082 | (copy-file "LICENSE" (string-append doc "/LICENSE")))) |
| 4083 | %standard-phases))) |
| 4084 | (home-page "http://cffi.readthedocs.org") |
| 4085 | (synopsis "Foreign function interface for Python") |
| 4086 | (description |
| 4087 | "Foreign Function Interface for Python calling C code.") |
| 4088 | (license license:expat))) |
| 4089 | |
| 4090 | (define-public python2-cffi |
| 4091 | (package-with-python2 python-cffi)) |
| 4092 | |
| 4093 | (define-public python-xcffib |
| 4094 | (package |
| 4095 | (name "python-xcffib") |
| 4096 | (version "0.1.9") |
| 4097 | (source |
| 4098 | (origin |
| 4099 | (method url-fetch) |
| 4100 | (uri (string-append "https://pypi.python.org/packages/source/x/" |
| 4101 | "xcffib/xcffib-" version ".tar.gz")) |
| 4102 | (sha256 |
| 4103 | (base32 |
| 4104 | "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81")))) |
| 4105 | (build-system python-build-system) |
| 4106 | (inputs |
| 4107 | `(("libxcb" ,libxcb) |
| 4108 | ("python-six" ,python-six))) |
| 4109 | (native-inputs |
| 4110 | `(("python-setuptools" ,python-setuptools))) |
| 4111 | (propagated-inputs |
| 4112 | `(("python-cffi" ,python-cffi))) ; used at run time |
| 4113 | (arguments |
| 4114 | `(#:phases |
| 4115 | (alist-cons-after |
| 4116 | 'install 'install-doc |
| 4117 | (lambda* (#:key outputs #:allow-other-keys) |
| 4118 | (let ((doc (string-append (assoc-ref outputs "out") "/share" |
| 4119 | "/doc/" ,name "-" ,version))) |
| 4120 | (mkdir-p doc) |
| 4121 | (copy-file "README.md" |
| 4122 | (string-append doc "/README.md")))) |
| 4123 | %standard-phases))) |
| 4124 | (home-page "https://github.com/tych0/xcffib") |
| 4125 | (synopsis "XCB Python bindings") |
| 4126 | (description |
| 4127 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds |
| 4128 | support for Python 3 and PyPy. It is based on cffi.") |
| 4129 | (license license:expat))) |
| 4130 | |
| 4131 | (define-public python2-xcffib |
| 4132 | (package-with-python2 python-xcffib)) |
| 4133 | |
| 4134 | (define-public python-cairocffi |
| 4135 | (package |
| 4136 | (name "python-cairocffi") |
| 4137 | (version "0.6") |
| 4138 | (source |
| 4139 | (origin |
| 4140 | (method url-fetch) |
| 4141 | ;; The archive on pypi is missing the 'utils' directory! |
| 4142 | (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v" |
| 4143 | version ".tar.gz")) |
| 4144 | (file-name (string-append name "-" version ".tar.gz")) |
| 4145 | (sha256 |
| 4146 | (base32 |
| 4147 | "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51")))) |
| 4148 | (build-system python-build-system) |
| 4149 | (outputs '("out" "doc")) |
| 4150 | (inputs |
| 4151 | `(("gdk-pixbuf" ,gdk-pixbuf) |
| 4152 | ("cairo" ,cairo))) |
| 4153 | (native-inputs |
| 4154 | `(("pkg-config" ,pkg-config) |
| 4155 | ("python-sphinx" ,python-sphinx) |
| 4156 | ("python-docutils" ,python-docutils) |
| 4157 | ("python-setuptools" ,python-setuptools))) |
| 4158 | (propagated-inputs |
| 4159 | `(("python-xcffib" ,python-xcffib))) ; used at run time |
| 4160 | (arguments |
| 4161 | `(#:phases |
| 4162 | (alist-cons-after |
| 4163 | 'install 'install-doc |
| 4164 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4165 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4166 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4167 | (html (string-append doc "/html"))) |
| 4168 | (setenv "LD_LIBRARY_PATH" |
| 4169 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
| 4170 | (assoc-ref inputs "gdk-pixbuf") "/lib")) |
| 4171 | (setenv "LANG" "en_US.UTF-8") |
| 4172 | (mkdir-p html) |
| 4173 | (for-each (lambda (file) |
| 4174 | (copy-file (string-append "." file) |
| 4175 | (string-append doc file))) |
| 4176 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 4177 | (system* "python" "setup.py" "build_sphinx") |
| 4178 | (copy-recursively "docs/_build/html" html))) |
| 4179 | %standard-phases))) |
| 4180 | (home-page "https://github.com/SimonSapin/cairocffi") |
| 4181 | (synopsis "Python bindings and object-oriented API for Cairo") |
| 4182 | (description |
| 4183 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of |
| 4184 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector |
| 4185 | graphics library with support for multiple backends including image buffers, |
| 4186 | PNG, PostScript, PDF, and SVG file output.") |
| 4187 | (license license:bsd-3))) |
| 4188 | |
| 4189 | (define-public python2-cairocffi |
| 4190 | (package-with-python2 python-cairocffi)) |
| 4191 | |
| 4192 | (define-public python-decorator |
| 4193 | (package |
| 4194 | (name "python-decorator") |
| 4195 | (version "4.0.9") |
| 4196 | (source |
| 4197 | (origin |
| 4198 | (method url-fetch) |
| 4199 | (uri (pypi-uri "decorator" version)) |
| 4200 | (sha256 |
| 4201 | (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh")))) |
| 4202 | (build-system python-build-system) |
| 4203 | (arguments '(#:tests? #f)) ; no test target |
| 4204 | (native-inputs |
| 4205 | `(("python-setuptools" ,python-setuptools))) |
| 4206 | (home-page "https://pypi.python.org/pypi/decorator/") |
| 4207 | (synopsis "Python module to simplify usage of decorators") |
| 4208 | (description |
| 4209 | "The aim of the decorator module is to simplify the usage of decorators |
| 4210 | for the average programmer, and to popularize decorators usage giving examples |
| 4211 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, |
| 4212 | etc. The core of this module is a decorator factory.") |
| 4213 | (license license:expat))) |
| 4214 | |
| 4215 | (define-public python2-decorator |
| 4216 | (package-with-python2 python-decorator)) |
| 4217 | |
| 4218 | (define-public python-drmaa |
| 4219 | (package |
| 4220 | (name "python-drmaa") |
| 4221 | (version "0.7.6") |
| 4222 | (source |
| 4223 | (origin |
| 4224 | (method url-fetch) |
| 4225 | (uri (string-append |
| 4226 | "https://pypi.python.org/packages/source/d/drmaa/drmaa-" |
| 4227 | version ".tar.gz")) |
| 4228 | (sha256 |
| 4229 | (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh")))) |
| 4230 | (build-system python-build-system) |
| 4231 | ;; The test suite requires libdrmaa which is provided by the cluster |
| 4232 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH |
| 4233 | ;; should be set to the path of the libdrmaa library. |
| 4234 | (arguments '(#:tests? #f)) |
| 4235 | (native-inputs |
| 4236 | `(("python-nose" ,python-nose) |
| 4237 | ("python-setuptools" ,python-setuptools))) |
| 4238 | (home-page "https://pypi.python.org/pypi/drmaa") |
| 4239 | (synopsis "Python bindings for the DRMAA library") |
| 4240 | (description |
| 4241 | "A Python package for Distributed Resource Management (DRM) job |
| 4242 | submission and control. This package is an implementation of the DRMAA 1.0 |
| 4243 | Python language binding specification.") |
| 4244 | (license license:bsd-3))) |
| 4245 | |
| 4246 | (define-public python2-drmaa |
| 4247 | (package-with-python2 python-drmaa)) |
| 4248 | |
| 4249 | (define-public python-gridmap |
| 4250 | (package |
| 4251 | (name "python-gridmap") |
| 4252 | (version "0.13.0") |
| 4253 | (source |
| 4254 | (origin |
| 4255 | (method url-fetch) |
| 4256 | (uri (string-append |
| 4257 | "https://github.com/pygridtools/gridmap/archive/v" |
| 4258 | version ".tar.gz")) |
| 4259 | (file-name (string-append name "-" version ".tar.gz")) |
| 4260 | (sha256 |
| 4261 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) |
| 4262 | (build-system python-build-system) |
| 4263 | (inputs |
| 4264 | `(("python-psutil" ,python-psutil) |
| 4265 | ("python-drmaa" ,python-drmaa) |
| 4266 | ("python-pyzmq" ,python-pyzmq))) |
| 4267 | (native-inputs |
| 4268 | `(("python-setuptools" ,python-setuptools))) |
| 4269 | (home-page "https://github.com/pygridtools/gridmap") |
| 4270 | (synopsis "Create jobs on a cluster directly from Python") |
| 4271 | (description |
| 4272 | "Gridmap is a Python package to allow you to easily create jobs on the |
| 4273 | cluster directly from Python. You can directly map Python functions onto the |
| 4274 | cluster without needing to write any wrapper code yourself.") |
| 4275 | (license license:gpl3+))) |
| 4276 | |
| 4277 | (define-public python2-gridmap |
| 4278 | (package-with-python2 python-gridmap)) |
| 4279 | |
| 4280 | (define-public python-pexpect |
| 4281 | (package |
| 4282 | (name "python-pexpect") |
| 4283 | (version "3.3") |
| 4284 | (source |
| 4285 | (origin |
| 4286 | (method url-fetch) |
| 4287 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 4288 | "pexpect/pexpect-" version ".tar.gz")) |
| 4289 | (sha256 |
| 4290 | (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz")))) |
| 4291 | (build-system python-build-system) |
| 4292 | (arguments |
| 4293 | `(#:phases |
| 4294 | (modify-phases %standard-phases |
| 4295 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 4296 | (native-inputs |
| 4297 | `(("python-nose" ,python-nose))) |
| 4298 | (home-page "http://pexpect.readthedocs.org/") |
| 4299 | (synopsis "Controlling interactive console applications") |
| 4300 | (description |
| 4301 | "Pexpect is a pure Python module for spawning child applications; |
| 4302 | controlling them; and responding to expected patterns in their output. |
| 4303 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a |
| 4304 | child application and control it as if a human were typing commands.") |
| 4305 | (license license:isc))) |
| 4306 | |
| 4307 | (define-public python2-pexpect |
| 4308 | (package-with-python2 python-pexpect)) |
| 4309 | |
| 4310 | (define-public python-setuptools-scm |
| 4311 | (package |
| 4312 | (name "python-setuptools-scm") |
| 4313 | (version "1.11.1") |
| 4314 | (source (origin |
| 4315 | (method url-fetch) |
| 4316 | (uri (pypi-uri "setuptools_scm" version)) |
| 4317 | (sha256 |
| 4318 | (base32 |
| 4319 | "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc")))) |
| 4320 | (build-system python-build-system) |
| 4321 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
| 4322 | (home-page "https://github.com/pypa/setuptools_scm/") |
| 4323 | (synopsis "Manage Python package versions in SCM metadata") |
| 4324 | (description |
| 4325 | "Setuptools_scm handles managing your Python package versions in |
| 4326 | @dfn{software configuration management} (SCM) metadata instead of declaring |
| 4327 | them as the version argument or in a SCM managed file.") |
| 4328 | (license license:expat))) |
| 4329 | |
| 4330 | (define-public python2-setuptools-scm |
| 4331 | (package-with-python2 python-setuptools-scm)) |
| 4332 | |
| 4333 | (define-public python-pathpy |
| 4334 | (package |
| 4335 | (name "python-pathpy") |
| 4336 | (version "8.1.1") |
| 4337 | (source |
| 4338 | (origin |
| 4339 | (method url-fetch) |
| 4340 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 4341 | "path.py/path.py-" version ".tar.gz")) |
| 4342 | (sha256 |
| 4343 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) |
| 4344 | (build-system python-build-system) |
| 4345 | (propagated-inputs |
| 4346 | `(("python-appdirs" ,python-appdirs))) |
| 4347 | (native-inputs |
| 4348 | `(("python-setuptools" ,python-setuptools) |
| 4349 | ("python-setuptools-scm" ,python-setuptools-scm) |
| 4350 | ("python-pytest" ,python-pytest) |
| 4351 | ("python-pytest-runner" ,python-pytest-runner))) |
| 4352 | (home-page "http://github.com/jaraco/path.py") |
| 4353 | (synopsis "Python module wrapper for built-in os.path") |
| 4354 | (description |
| 4355 | "@code{path.py} implements path objects as first-class entities, allowing |
| 4356 | common operations on files to be invoked on those path objects directly.") |
| 4357 | (license license:expat))) |
| 4358 | |
| 4359 | (define-public python2-pathpy |
| 4360 | (package-with-python2 python-pathpy)) |
| 4361 | |
| 4362 | (define-public python-pickleshare |
| 4363 | (package |
| 4364 | (name "python-pickleshare") |
| 4365 | (version "0.5") |
| 4366 | (source |
| 4367 | (origin |
| 4368 | (method url-fetch) |
| 4369 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 4370 | "pickleshare/pickleshare-" version ".tar.gz")) |
| 4371 | (sha256 |
| 4372 | (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0")))) |
| 4373 | (build-system python-build-system) |
| 4374 | (propagated-inputs |
| 4375 | `(("python-pathpy" ,python-pathpy))) |
| 4376 | (native-inputs |
| 4377 | `(("python-setuptools" ,python-setuptools))) |
| 4378 | (home-page "https://github.com/vivainio/pickleshare") |
| 4379 | (synopsis "Tiny key value database with concurrency support") |
| 4380 | (description |
| 4381 | "PickleShare is a small ‘shelve’-like datastore with concurrency support. |
| 4382 | Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike |
| 4383 | shelve, many processes can access the database simultaneously. Changing a |
| 4384 | value in database is immediately visible to other processes accessing the same |
| 4385 | database. Concurrency is possible because the values are stored in separate |
| 4386 | files. Hence the “database” is a directory where all files are governed by |
| 4387 | PickleShare.") |
| 4388 | (license license:expat))) |
| 4389 | |
| 4390 | (define-public python2-pickleshare |
| 4391 | (package-with-python2 python-pickleshare)) |
| 4392 | |
| 4393 | (define-public python-simplegeneric |
| 4394 | (package |
| 4395 | (name "python-simplegeneric") |
| 4396 | (version "0.8.1") |
| 4397 | (source |
| 4398 | (origin |
| 4399 | (method url-fetch) |
| 4400 | (uri (string-append "https://pypi.python.org/packages/source/s/" |
| 4401 | "simplegeneric/simplegeneric-" version ".zip")) |
| 4402 | (sha256 |
| 4403 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) |
| 4404 | (build-system python-build-system) |
| 4405 | (native-inputs |
| 4406 | `(("python-setuptools" ,python-setuptools) |
| 4407 | ("unzip" ,unzip))) |
| 4408 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
| 4409 | (synopsis "Python module for simple generic functions") |
| 4410 | (description |
| 4411 | "The simplegeneric module lets you define simple single-dispatch generic |
| 4412 | functions, akin to Python’s built-in generic functions like @code{len()}, |
| 4413 | @code{iter()} and so on. However, instead of using specially-named methods, |
| 4414 | these generic functions use simple lookup tables, akin to those used by |
| 4415 | e.g. @code{pickle.dump()} and other generic functions found in the Python |
| 4416 | standard library.") |
| 4417 | (license license:zpl2.1))) |
| 4418 | |
| 4419 | (define-public python2-simplegeneric |
| 4420 | (package-with-python2 python-simplegeneric)) |
| 4421 | |
| 4422 | (define-public python-ipython-genutils |
| 4423 | (package |
| 4424 | (name "python-ipython-genutils") |
| 4425 | (version "0.1.0") |
| 4426 | (source |
| 4427 | (origin |
| 4428 | (method url-fetch) |
| 4429 | (uri (string-append "https://pypi.python.org/packages/source/i/" |
| 4430 | "ipython_genutils/ipython_genutils-" |
| 4431 | version ".tar.gz")) |
| 4432 | (sha256 |
| 4433 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) |
| 4434 | (build-system python-build-system) |
| 4435 | (arguments `(#:tests? #f)) ; no tests |
| 4436 | (home-page "http://ipython.org") |
| 4437 | (synopsis "Vestigial utilities from IPython") |
| 4438 | (description |
| 4439 | "This package provides retired utilities from IPython.") |
| 4440 | (license license:bsd-3))) |
| 4441 | |
| 4442 | (define-public python2-ipython-genutils |
| 4443 | (package-with-python2 python-ipython-genutils)) |
| 4444 | |
| 4445 | (define-public python-traitlets |
| 4446 | (package |
| 4447 | (name "python-traitlets") |
| 4448 | (version "4.1.0") |
| 4449 | (source |
| 4450 | (origin |
| 4451 | (method url-fetch) |
| 4452 | (uri (pypi-uri "traitlets" version)) |
| 4453 | (sha256 |
| 4454 | (base32 |
| 4455 | "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4")))) |
| 4456 | (build-system python-build-system) |
| 4457 | (arguments |
| 4458 | `(#:phases |
| 4459 | (modify-phases %standard-phases |
| 4460 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 4461 | (propagated-inputs |
| 4462 | `(("python-ipython-genutils" ,python-ipython-genutils) |
| 4463 | ("python-decorator" ,python-decorator))) |
| 4464 | (native-inputs |
| 4465 | `(("python-mock" ,python-mock) |
| 4466 | ("python-nose" ,python-nose))) |
| 4467 | (home-page "http://ipython.org") |
| 4468 | (synopsis "Configuration system for Python applications") |
| 4469 | (description |
| 4470 | "Traitlets is a framework that lets Python classes have attributes with |
| 4471 | type checking, dynamically calculated default values, and ‘on change’ |
| 4472 | callbacks. The package also includes a mechanism to use traitlets for |
| 4473 | configuration, loading values from files or from command line arguments. This |
| 4474 | is a distinct layer on top of traitlets, so you can use traitlets in your code |
| 4475 | without using the configuration machinery.") |
| 4476 | (license license:bsd-3))) |
| 4477 | |
| 4478 | (define-public python2-traitlets |
| 4479 | (package-with-python2 python-traitlets)) |
| 4480 | |
| 4481 | (define-public python-ipython |
| 4482 | (package |
| 4483 | (name "python-ipython") |
| 4484 | (version "3.2.1") |
| 4485 | (source |
| 4486 | (origin |
| 4487 | (method url-fetch) |
| 4488 | (patches (search-patches "python-ipython-inputhook-ctype.patch")) |
| 4489 | (uri (string-append "https://pypi.python.org/packages/source/i/" |
| 4490 | "ipython/ipython-" version ".tar.gz")) |
| 4491 | (sha256 |
| 4492 | (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9")))) |
| 4493 | (build-system python-build-system) |
| 4494 | (outputs '("out" "doc")) |
| 4495 | (propagated-inputs |
| 4496 | `(("python-pyzmq" ,python-pyzmq) |
| 4497 | ("python-terminado" ,python-terminado))) |
| 4498 | (inputs |
| 4499 | `(("readline" ,readline) |
| 4500 | ("which" ,which) |
| 4501 | ("python-matplotlib" ,python-matplotlib) |
| 4502 | ("python-numpy" ,python-numpy) |
| 4503 | ("python-numpydoc" ,python-numpydoc) |
| 4504 | ("python-jinja2" ,python-jinja2) |
| 4505 | ("python-mistune" ,python-mistune) |
| 4506 | ("python-jsonschema" ,python-jsonschema) |
| 4507 | ("python-pygments" ,python-pygments) |
| 4508 | ("python-requests" ,python-requests) ;; for tests |
| 4509 | ("python-nose" ,python-nose))) |
| 4510 | (native-inputs |
| 4511 | `(("pkg-config" ,pkg-config) |
| 4512 | ("python-sphinx" ,python-sphinx) |
| 4513 | ("texlive" ,texlive) |
| 4514 | ("texinfo" ,texinfo) |
| 4515 | ("python-setuptools" ,python-setuptools))) |
| 4516 | (arguments |
| 4517 | `(#:phases |
| 4518 | (modify-phases %standard-phases |
| 4519 | (add-after |
| 4520 | 'install 'install-doc |
| 4521 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4522 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4523 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4524 | (html (string-append doc "/html")) |
| 4525 | (man1 (string-append data "/man/man1")) |
| 4526 | (info (string-append data "/info")) |
| 4527 | (examples (string-append doc "/examples"))) |
| 4528 | (setenv "LANG" "en_US.utf8") |
| 4529 | (with-directory-excursion "docs" |
| 4530 | ;; FIXME: html and pdf fail to build |
| 4531 | ;; (system* "make" "html") |
| 4532 | ;; (system* "make" "pdf" "PAPER=a4") |
| 4533 | (system* "make" "info")) |
| 4534 | (copy-recursively "docs/man" man1) |
| 4535 | (copy-recursively "examples" examples) |
| 4536 | ;; (copy-recursively "docs/build/html" html) |
| 4537 | ;; (copy-file "docs/build/latex/ipython.pdf" |
| 4538 | ;; (string-append doc "/ipython.pdf")) |
| 4539 | (mkdir-p info) |
| 4540 | (copy-file "docs/build/texinfo/ipython.info" |
| 4541 | (string-append info "/ipython.info")) |
| 4542 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) |
| 4543 | ;; Tests can only be run after the library has been installed and not |
| 4544 | ;; within the source directory. |
| 4545 | (delete 'check) |
| 4546 | (add-after |
| 4547 | 'install 'check |
| 4548 | (lambda* (#:key outputs tests? #:allow-other-keys) |
| 4549 | (if tests? |
| 4550 | (with-directory-excursion "/tmp" |
| 4551 | (setenv "HOME" "/tmp/") ;; required by a test |
| 4552 | (zero? (system* (string-append (assoc-ref outputs "out") |
| 4553 | "/bin/iptest")))) |
| 4554 | #t))) |
| 4555 | (add-before |
| 4556 | 'install 'fix-tests |
| 4557 | (lambda* (#:key inputs #:allow-other-keys) |
| 4558 | (substitute* "./IPython/utils/_process_posix.py" |
| 4559 | (("/usr/bin/env', 'which") (which "which"))) |
| 4560 | (substitute* "./IPython/core/tests/test_inputtransformer.py" |
| 4561 | (("#!/usr/bin/env python") |
| 4562 | (string-append "#!" (which "python")))) |
| 4563 | ;; Disable 1 failing test |
| 4564 | (substitute* "./IPython/core/tests/test_magic.py" |
| 4565 | (("def test_dirops\\(\\):" all) |
| 4566 | (string-append "@dec.skipif(True)\n" all)))))))) |
| 4567 | (home-page "http://ipython.org") |
| 4568 | (synopsis "IPython is a tool for interactive computing in Python") |
| 4569 | (description |
| 4570 | "IPython provides a rich architecture for interactive computing with: |
| 4571 | Powerful interactive shells, a browser-based notebook, support for interactive |
| 4572 | data visualization, embeddable interpreters and tools for parallel |
| 4573 | computing.") |
| 4574 | (license license:bsd-3) |
| 4575 | (properties `((python2-variant . ,(delay python2-ipython)))))) |
| 4576 | |
| 4577 | (define-public python2-ipython |
| 4578 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
| 4579 | (package |
| 4580 | (inherit ipython) |
| 4581 | ;; FIXME: some tests are failing |
| 4582 | (arguments |
| 4583 | `(#:tests? #f ,@(package-arguments ipython))) |
| 4584 | ;; FIXME: add pyreadline once available. |
| 4585 | (inputs |
| 4586 | `(("python2-mock" ,python2-mock) |
| 4587 | ,@(package-inputs ipython)))))) |
| 4588 | |
| 4589 | (define-public python-isodate |
| 4590 | (package |
| 4591 | (name "python-isodate") |
| 4592 | (version "0.5.4") |
| 4593 | (source |
| 4594 | (origin |
| 4595 | (method url-fetch) |
| 4596 | (uri (pypi-uri "isodate" version)) |
| 4597 | (sha256 |
| 4598 | (base32 |
| 4599 | "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422")))) |
| 4600 | (build-system python-build-system) |
| 4601 | (inputs |
| 4602 | `(("python-setuptools" ,python-setuptools))) |
| 4603 | (home-page |
| 4604 | "http://cheeseshop.python.org/pypi/isodate") |
| 4605 | (synopsis |
| 4606 | "Python date parser and formatter") |
| 4607 | (description |
| 4608 | "Python-isodate is a python module for parsing and formatting |
| 4609 | ISO 8601 dates, time and duration.") |
| 4610 | (license license:bsd-3))) |
| 4611 | |
| 4612 | (define-public python2-isodate |
| 4613 | (package-with-python2 python-isodate)) |
| 4614 | |
| 4615 | (define-public python-html5lib |
| 4616 | (package |
| 4617 | (name "python-html5lib") |
| 4618 | (version "1.0b8") |
| 4619 | (source |
| 4620 | (origin |
| 4621 | (method url-fetch) |
| 4622 | (uri (pypi-uri "html5lib" version)) |
| 4623 | (sha256 |
| 4624 | (base32 |
| 4625 | "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q")))) |
| 4626 | (build-system python-build-system) |
| 4627 | (propagated-inputs |
| 4628 | `(("python-six" ,python-six))) ; required to "import html5lib" |
| 4629 | (inputs |
| 4630 | `(("python-setuptools" ,python-setuptools))) |
| 4631 | (arguments |
| 4632 | `(#:test-target "check")) |
| 4633 | (home-page |
| 4634 | "https://github.com/html5lib/html5lib-python") |
| 4635 | (synopsis |
| 4636 | "Python HTML parser based on the WHATWG HTML specifcation") |
| 4637 | (description |
| 4638 | "Html5lib is an HTML parser based on the WHATWG HTML specifcation |
| 4639 | and written in Python.") |
| 4640 | (license license:expat))) |
| 4641 | |
| 4642 | (define-public python2-html5lib |
| 4643 | (package-with-python2 python-html5lib)) |
| 4644 | |
| 4645 | (define-public python-urwid |
| 4646 | (package |
| 4647 | (name "python-urwid") |
| 4648 | (version "1.3.1") |
| 4649 | (source |
| 4650 | (origin |
| 4651 | (method url-fetch) |
| 4652 | (uri (pypi-uri "urwid" version)) |
| 4653 | (sha256 |
| 4654 | (base32 |
| 4655 | "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng")))) |
| 4656 | (build-system python-build-system) |
| 4657 | (arguments |
| 4658 | `(#:phases |
| 4659 | (modify-phases %standard-phases |
| 4660 | ;; Disable failing test. Bug filed upstream: |
| 4661 | ;; https://github.com/wardi/urwid/issues/164 |
| 4662 | ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3. |
| 4663 | (add-after 'unpack 'disable-failing-test |
| 4664 | (lambda _ |
| 4665 | (substitute* "urwid/tests/test_event_loops.py" |
| 4666 | (("test_remove_watch_file") |
| 4667 | "disable_remove_watch_file"))))))) |
| 4668 | (native-inputs `(("python-setuptools" ,python-setuptools))) |
| 4669 | (home-page "http://urwid.org") |
| 4670 | (synopsis "Console user interface library for Python") |
| 4671 | (description |
| 4672 | "Urwid is a curses-based UI/widget library for Python. It includes many |
| 4673 | features useful for text console applications.") |
| 4674 | (license license:lgpl2.1+))) |
| 4675 | |
| 4676 | (define-public python2-urwid |
| 4677 | (package-with-python2 python-urwid)) |
| 4678 | |
| 4679 | (define-public python-urwidtrees |
| 4680 | (package |
| 4681 | (name "python-urwidtrees") |
| 4682 | (version "1.0.2") |
| 4683 | (source |
| 4684 | (origin |
| 4685 | (method url-fetch) |
| 4686 | ;; package author intends on distributing via github rather than pypi: |
| 4687 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 |
| 4688 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" |
| 4689 | version ".tar.gz")) |
| 4690 | (file-name (string-append name "-" version ".tar.gz")) |
| 4691 | (sha256 |
| 4692 | (base32 |
| 4693 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
| 4694 | (build-system python-build-system) |
| 4695 | (arguments |
| 4696 | '(#:tests? #f)) ; no tests |
| 4697 | (inputs `(("python-urwid" ,python-urwid))) |
| 4698 | (home-page "https://github.com/pazz/urwidtrees") |
| 4699 | (synopsis "Tree widgets for urwid") |
| 4700 | (description "Urwidtrees is a Widget Container API for the @code{urwid} |
| 4701 | toolkit. Use it to build trees of widgets.") |
| 4702 | (license license:gpl3+))) |
| 4703 | |
| 4704 | (define-public python2-urwidtrees |
| 4705 | (package-with-python2 python-urwidtrees)) |
| 4706 | |
| 4707 | (define-public python-dbus |
| 4708 | (package |
| 4709 | (name "python-dbus") |
| 4710 | (version "1.2.0") |
| 4711 | (source |
| 4712 | (origin |
| 4713 | (method url-fetch) |
| 4714 | (uri (string-append |
| 4715 | "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-" |
| 4716 | version ".tar.gz")) |
| 4717 | (sha256 |
| 4718 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) |
| 4719 | (build-system gnu-build-system) |
| 4720 | (arguments |
| 4721 | '(#:phases |
| 4722 | (modify-phases %standard-phases |
| 4723 | (add-before |
| 4724 | 'check 'pre-check |
| 4725 | (lambda _ |
| 4726 | ;; XXX: For the missing '/etc/machine-id'. |
| 4727 | (substitute* "test/run-test.sh" |
| 4728 | (("DBUS_FATAL_WARNINGS=1") |
| 4729 | "DBUS_FATAL_WARNINGS=0")) |
| 4730 | #t))))) |
| 4731 | (native-inputs |
| 4732 | `(("pkg-config" ,pkg-config))) |
| 4733 | (inputs |
| 4734 | `(("python" ,python) |
| 4735 | ("dbus-glib" ,dbus-glib))) |
| 4736 | (synopsis "Python bindings for D-bus") |
| 4737 | (description "python-dbus provides bindings for libdbus, the reference |
| 4738 | implementation of D-Bus.") |
| 4739 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") |
| 4740 | (license license:expat))) |
| 4741 | |
| 4742 | (define-public python2-dbus |
| 4743 | (package (inherit python-dbus) |
| 4744 | (name "python2-dbus") |
| 4745 | (inputs `(("python" ,python-2) |
| 4746 | ,@(alist-delete "python" |
| 4747 | (package-inputs python-dbus) |
| 4748 | equal?))) |
| 4749 | ;; FIXME: on Python 2, the test_utf8 fails with: |
| 4750 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" |
| 4751 | (arguments `(#:tests? #f)))) |
| 4752 | |
| 4753 | (define-public python-apsw |
| 4754 | (package |
| 4755 | (name "python-apsw") |
| 4756 | (version "3.9.2-r1") |
| 4757 | (source |
| 4758 | (origin |
| 4759 | (method url-fetch) |
| 4760 | (uri (pypi-uri "apsw" version)) |
| 4761 | (sha256 |
| 4762 | (base32 |
| 4763 | "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs")))) |
| 4764 | (build-system python-build-system) |
| 4765 | (inputs |
| 4766 | `(("python-setuptools" ,python-setuptools) |
| 4767 | ("sqlite" ,sqlite))) |
| 4768 | (arguments |
| 4769 | `(#:phases |
| 4770 | ;; swap check and install phases |
| 4771 | (alist-cons-after |
| 4772 | 'install 'check |
| 4773 | (assoc-ref %standard-phases 'check) |
| 4774 | (alist-delete |
| 4775 | 'check |
| 4776 | %standard-phases)))) |
| 4777 | (home-page "https://github.com/rogerbinns/apsw/") |
| 4778 | (synopsis "Another Python SQLite Wrapper") |
| 4779 | (description "APSW is a Python wrapper for the SQLite |
| 4780 | embedded relational database engine. In contrast to other wrappers such as |
| 4781 | pysqlite it focuses on being a minimal layer over SQLite attempting just to |
| 4782 | translate the complete SQLite API into Python.") |
| 4783 | (license license:zlib))) |
| 4784 | |
| 4785 | (define-public python2-apsw |
| 4786 | (package-with-python2 python-apsw)) |
| 4787 | |
| 4788 | (define-public python-lxml |
| 4789 | (package |
| 4790 | (name "python-lxml") |
| 4791 | (version "3.6.0") |
| 4792 | (source |
| 4793 | (origin |
| 4794 | (method url-fetch) |
| 4795 | (uri (pypi-uri "lxml" version)) |
| 4796 | (sha256 |
| 4797 | (base32 |
| 4798 | "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w")))) |
| 4799 | (build-system python-build-system) |
| 4800 | (inputs |
| 4801 | `(("libxml2" ,libxml2) |
| 4802 | ("libxslt" ,libxslt) |
| 4803 | ("python-setuptools" ,python-setuptools))) |
| 4804 | (home-page "http://lxml.de/") |
| 4805 | (synopsis |
| 4806 | "Python XML processing library") |
| 4807 | (description |
| 4808 | "The lxml XML toolkit is a Pythonic binding for the C libraries |
| 4809 | libxml2 and libxslt.") |
| 4810 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
| 4811 | |
| 4812 | (define-public python2-lxml |
| 4813 | (package-with-python2 python-lxml)) |
| 4814 | |
| 4815 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
| 4816 | ;; and pypi seems to put it under its own name, so I guess we should too |
| 4817 | (define-public python-beautifulsoup4 |
| 4818 | (package |
| 4819 | (name "python-beautifulsoup4") |
| 4820 | (version "4.5.0") |
| 4821 | (source |
| 4822 | (origin |
| 4823 | (method url-fetch) |
| 4824 | (uri (pypi-uri "beautifulsoup4" version)) |
| 4825 | (sha256 |
| 4826 | (base32 |
| 4827 | "1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f")))) |
| 4828 | (build-system python-build-system) |
| 4829 | (home-page |
| 4830 | "http://www.crummy.com/software/BeautifulSoup/bs4/") |
| 4831 | (synopsis |
| 4832 | "Python screen-scraping library") |
| 4833 | (description |
| 4834 | "Beautiful Soup is a Python library designed for rapidly setting up |
| 4835 | screen-scraping projects. It offers Pythonic idioms for navigating, |
| 4836 | searching, and modifying a parse tree, providing a toolkit for |
| 4837 | dissecting a document and extracting what you need. It automatically |
| 4838 | converts incoming documents to Unicode and outgoing documents to UTF-8.") |
| 4839 | (license license:expat) |
| 4840 | (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) |
| 4841 | |
| 4842 | (define-public python2-beautifulsoup4 |
| 4843 | (package |
| 4844 | (inherit (package-with-python2 |
| 4845 | (strip-python2-variant python-beautifulsoup4))) |
| 4846 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 4847 | |
| 4848 | (define-public python2-cssutils |
| 4849 | (package |
| 4850 | (name "python2-cssutils") |
| 4851 | (version "1.0.1") |
| 4852 | (source |
| 4853 | (origin |
| 4854 | (method url-fetch) |
| 4855 | (uri (pypi-uri "cssutils" version)) |
| 4856 | (sha256 |
| 4857 | (base32 |
| 4858 | "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq")))) |
| 4859 | (build-system python-build-system) |
| 4860 | (native-inputs |
| 4861 | `(("python2-mock" ,python2-mock) ; for the tests |
| 4862 | ("unzip" ,unzip))) ; for unpacking the source |
| 4863 | (inputs |
| 4864 | `(("python2-setuptools" ,python2-setuptools))) |
| 4865 | (arguments |
| 4866 | `(#:python ,python-2 ; Otherwise tests fail with a syntax error. |
| 4867 | #:tests? #f ; The tests apparently download an external URL. |
| 4868 | )) |
| 4869 | (home-page "http://cthedot.de/cssutils/") |
| 4870 | (synopsis |
| 4871 | "CSS Cascading Style Sheets library for Python") |
| 4872 | (description |
| 4873 | "Cssutils is a Python package for parsing and building CSS |
| 4874 | Cascading Style Sheets. Currently it provides a DOM only and no rendering |
| 4875 | options.") |
| 4876 | (license license:lgpl3+))) |
| 4877 | |
| 4878 | (define-public python-cssselect |
| 4879 | (package |
| 4880 | (name "python-cssselect") |
| 4881 | (version "0.9.2") |
| 4882 | (source |
| 4883 | (origin |
| 4884 | (method url-fetch) |
| 4885 | (uri (pypi-uri "cssselect" version)) |
| 4886 | (sha256 |
| 4887 | (base32 |
| 4888 | "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi")))) |
| 4889 | (build-system python-build-system) |
| 4890 | (inputs |
| 4891 | `(("python-setuptools" ,python-setuptools))) |
| 4892 | (arguments |
| 4893 | ;; tests fail with message |
| 4894 | ;; AttributeError: 'module' object has no attribute 'tests' |
| 4895 | `(#:tests? #f)) |
| 4896 | (home-page |
| 4897 | "https://pythonhosted.org/cssselect/") |
| 4898 | (synopsis |
| 4899 | "CSS3 selector parser and translator to XPath 1.0") |
| 4900 | (description |
| 4901 | "Cssselect ia a Python module that parses CSS3 Selectors and translates |
| 4902 | them to XPath 1.0 expressions. Such expressions can be used in lxml or |
| 4903 | another XPath engine to find the matching elements in an XML or HTML document.") |
| 4904 | (license license:bsd-3))) |
| 4905 | |
| 4906 | (define-public python2-cssselect |
| 4907 | (package-with-python2 python-cssselect)) |
| 4908 | |
| 4909 | (define-public python-netifaces |
| 4910 | (package |
| 4911 | (name "python-netifaces") |
| 4912 | (version "0.10.4") |
| 4913 | (source |
| 4914 | (origin |
| 4915 | (method url-fetch) |
| 4916 | (uri (string-append |
| 4917 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" |
| 4918 | version |
| 4919 | ".tar.gz")) |
| 4920 | (sha256 |
| 4921 | (base32 |
| 4922 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) |
| 4923 | (build-system python-build-system) |
| 4924 | (inputs |
| 4925 | `(("python-setuptools" ,python-setuptools))) |
| 4926 | (home-page |
| 4927 | "https://bitbucket.org/al45tair/netifaces") |
| 4928 | (synopsis |
| 4929 | "Python module for portable network interface information") |
| 4930 | (description |
| 4931 | "Netifaces is a Python module providing information on network |
| 4932 | interfaces in an easy and portable manner.") |
| 4933 | (license license:expat))) |
| 4934 | |
| 4935 | (define-public python2-netifaces |
| 4936 | (package-with-python2 python-netifaces)) |
| 4937 | |
| 4938 | (define-public python-networkx |
| 4939 | (package |
| 4940 | (name "python-networkx") |
| 4941 | (version "1.11") |
| 4942 | (source |
| 4943 | (origin |
| 4944 | (method url-fetch) |
| 4945 | (uri (pypi-uri "networkx" version)) |
| 4946 | (sha256 |
| 4947 | (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd")))) |
| 4948 | (build-system python-build-system) |
| 4949 | ;; python-decorator is needed at runtime |
| 4950 | (propagated-inputs |
| 4951 | `(("python-decorator" ,python-decorator))) |
| 4952 | (native-inputs |
| 4953 | `(("python-setuptools" ,python-setuptools) |
| 4954 | ("python-nose" ,python-nose))) |
| 4955 | (home-page "http://networkx.github.io/") |
| 4956 | (synopsis "Python module for creating and manipulating graphs and networks") |
| 4957 | (description |
| 4958 | "NetworkX is a Python package for the creation, manipulation, and study |
| 4959 | of the structure, dynamics, and functions of complex networks.") |
| 4960 | (license license:bsd-3))) |
| 4961 | |
| 4962 | (define-public python2-networkx |
| 4963 | (package-with-python2 python-networkx)) |
| 4964 | |
| 4965 | (define-public snakemake |
| 4966 | (package |
| 4967 | (name "snakemake") |
| 4968 | (version "3.2.1") |
| 4969 | (source |
| 4970 | (origin |
| 4971 | (method url-fetch) |
| 4972 | (uri (string-append |
| 4973 | "https://pypi.python.org/packages/source/s/snakemake/snakemake-" |
| 4974 | version ".tar.gz")) |
| 4975 | (sha256 |
| 4976 | (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91")))) |
| 4977 | (build-system python-build-system) |
| 4978 | (inputs `(("python-setuptools" ,python-setuptools))) |
| 4979 | (home-page "https://bitbucket.org/johanneskoester/snakemake") |
| 4980 | (synopsis "Python-based execution environment for make-like workflows") |
| 4981 | (description |
| 4982 | "Snakemake aims to reduce the complexity of creating workflows by |
| 4983 | providing a clean and modern domain specific specification language (DSL) in |
| 4984 | Python style, together with a fast and comfortable execution environment.") |
| 4985 | (license license:expat))) |
| 4986 | |
| 4987 | (define-public python-seaborn |
| 4988 | (package |
| 4989 | (name "python-seaborn") |
| 4990 | (version "0.7.0") |
| 4991 | (source |
| 4992 | (origin |
| 4993 | (method url-fetch) |
| 4994 | (uri (pypi-uri "seaborn" version)) |
| 4995 | (sha256 |
| 4996 | (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m")))) |
| 4997 | (build-system python-build-system) |
| 4998 | (propagated-inputs |
| 4999 | `(("python-pandas" ,python-pandas) |
| 5000 | ("python-matplotlib" ,python-matplotlib) |
| 5001 | ("python-scipy" ,python-scipy))) |
| 5002 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
| 5003 | (synopsis "Statistical data visualization") |
| 5004 | (description |
| 5005 | "Seaborn is a library for making attractive and informative statistical |
| 5006 | graphics in Python. It is built on top of matplotlib and tightly integrated |
| 5007 | with the PyData stack, including support for numpy and pandas data structures |
| 5008 | and statistical routines from scipy and statsmodels.") |
| 5009 | (license license:bsd-3) |
| 5010 | (properties `((python2-variant . ,(delay python2-seaborn)))))) |
| 5011 | |
| 5012 | (define-public python2-seaborn |
| 5013 | (let ((base (package-with-python2 (strip-python2-variant python-seaborn)))) |
| 5014 | (package |
| 5015 | (inherit base) |
| 5016 | (propagated-inputs `(("python2-pytz" ,python2-pytz) |
| 5017 | ,@(package-propagated-inputs base))) |
| 5018 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 5019 | ,@(package-native-inputs base)))))) |
| 5020 | |
| 5021 | (define-public python-sympy |
| 5022 | (package |
| 5023 | (name "python-sympy") |
| 5024 | (version "0.7.6") |
| 5025 | (source |
| 5026 | (origin |
| 5027 | (method url-fetch) |
| 5028 | (uri (string-append |
| 5029 | "https://github.com/sympy/sympy/releases/download/sympy-" |
| 5030 | version "/sympy-" version ".tar.gz")) |
| 5031 | (sha256 |
| 5032 | (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz")))) |
| 5033 | (build-system python-build-system) |
| 5034 | (native-inputs |
| 5035 | `(("python-setuptools" ,python-setuptools))) |
| 5036 | (home-page "http://www.sympy.org/") |
| 5037 | (synopsis "Python library for symbolic mathematics") |
| 5038 | (description |
| 5039 | "SymPy is a Python library for symbolic mathematics. It aims to become a |
| 5040 | full-featured computer algebra system (CAS) while keeping the code as simple |
| 5041 | as possible in order to be comprehensible and easily extensible.") |
| 5042 | (license license:bsd-3))) |
| 5043 | |
| 5044 | (define-public python2-sympy |
| 5045 | (package-with-python2 python-sympy)) |
| 5046 | |
| 5047 | (define-public python-q |
| 5048 | (package |
| 5049 | (name "python-q") |
| 5050 | (version "2.6") |
| 5051 | (source |
| 5052 | (origin |
| 5053 | (method url-fetch) |
| 5054 | (uri (pypi-uri "q" version)) |
| 5055 | (sha256 |
| 5056 | (base32 |
| 5057 | "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) |
| 5058 | (build-system python-build-system) |
| 5059 | (home-page "https://github.com/zestyping/q") |
| 5060 | (synopsis "Quick-and-dirty debugging output for tired programmers") |
| 5061 | (description |
| 5062 | "q is a Python module for \"print\" style of debugging Python code. It |
| 5063 | provides convenient short API for print out of values, tracebacks, and |
| 5064 | falling into the Python interpreter.") |
| 5065 | (license license:asl2.0) |
| 5066 | (properties `((python2-variant . ,(delay python2-q)))))) |
| 5067 | |
| 5068 | (define-public python2-q |
| 5069 | (let ((base (package-with-python2 (strip-python2-variant python-q)))) |
| 5070 | (package |
| 5071 | (inherit base) |
| 5072 | (native-inputs |
| 5073 | `(("python2-setuptools" ,python2-setuptools) |
| 5074 | ,@(package-native-inputs base)))))) |
| 5075 | |
| 5076 | (define-public python-testlib |
| 5077 | (package |
| 5078 | (name "python-testlib") |
| 5079 | (version "0.6.5") |
| 5080 | (source |
| 5081 | (origin |
| 5082 | (method url-fetch) |
| 5083 | (uri (string-append |
| 5084 | "https://pypi.python.org/packages/source/t/testlib/testlib-" |
| 5085 | version ".zip")) |
| 5086 | (sha256 |
| 5087 | (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y")))) |
| 5088 | (build-system python-build-system) |
| 5089 | (inputs |
| 5090 | `(("python-setuptools" ,python-setuptools))) |
| 5091 | (native-inputs |
| 5092 | `(("unzip" ,unzip))) |
| 5093 | (arguments |
| 5094 | `(#:phases |
| 5095 | (alist-replace |
| 5096 | 'unpack |
| 5097 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 5098 | (let ((unzip (string-append (assoc-ref inputs "unzip") |
| 5099 | "/bin/unzip")) |
| 5100 | (source (assoc-ref inputs "source"))) |
| 5101 | (and (zero? (system* unzip source)) |
| 5102 | (chdir (string-append "testlib-" ,version))))) |
| 5103 | %standard-phases))) |
| 5104 | (synopsis "Python micro test suite harness") |
| 5105 | (description "A micro unittest suite harness for Python.") |
| 5106 | (home-page "https://github.com/trentm/testlib") |
| 5107 | (license license:expat))) |
| 5108 | |
| 5109 | (define-public python2-testlib |
| 5110 | (package-with-python2 python-testlib)) |
| 5111 | |
| 5112 | (define-public python2-xlib |
| 5113 | (package |
| 5114 | (name "python2-xlib") |
| 5115 | (version "0.14") |
| 5116 | (source (origin |
| 5117 | (method url-fetch) |
| 5118 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
| 5119 | "/" version "/" |
| 5120 | "python-xlib-" version ".tar.gz")) |
| 5121 | (sha256 |
| 5122 | (base32 |
| 5123 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) |
| 5124 | (build-system python-build-system) |
| 5125 | (arguments |
| 5126 | `(#:python ,python-2 ;Python 2 only |
| 5127 | #:tests? #f)) ;no tests |
| 5128 | (inputs |
| 5129 | `(("python-setuptools" ,python-setuptools))) |
| 5130 | (home-page "http://python-xlib.sourceforge.net/") |
| 5131 | (synopsis "Python X11 client library") |
| 5132 | (description |
| 5133 | "The Python X Library is intended to be a fully functional X client |
| 5134 | library for Python programs. It is useful to implement low-level X clients. |
| 5135 | It is written entirely in Python.") |
| 5136 | (license license:gpl2+))) |
| 5137 | |
| 5138 | (define-public python-singledispatch |
| 5139 | (package |
| 5140 | (name "python-singledispatch") |
| 5141 | (version "3.4.0.3") |
| 5142 | (source |
| 5143 | (origin |
| 5144 | (method url-fetch) |
| 5145 | (uri (pypi-uri "singledispatch" version)) |
| 5146 | (sha256 |
| 5147 | (base32 |
| 5148 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) |
| 5149 | (build-system python-build-system) |
| 5150 | (native-inputs |
| 5151 | `(("python-setuptools" ,python-setuptools))) |
| 5152 | (inputs |
| 5153 | `(("python-six" ,python-six))) |
| 5154 | (home-page |
| 5155 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") |
| 5156 | (synopsis "Backport of singledispatch feature from Python 3.4") |
| 5157 | (description |
| 5158 | "This library brings functools.singledispatch from Python 3.4 to Python |
| 5159 | 2.6-3.3.") |
| 5160 | (license license:expat))) |
| 5161 | |
| 5162 | (define-public python2-singledispatch |
| 5163 | (package-with-python2 python-singledispatch)) |
| 5164 | |
| 5165 | (define-public python-tornado |
| 5166 | (package |
| 5167 | (name "python-tornado") |
| 5168 | (version "4.3") |
| 5169 | (source |
| 5170 | (origin |
| 5171 | (method url-fetch) |
| 5172 | (uri (pypi-uri "tornado" version)) |
| 5173 | (sha256 |
| 5174 | (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9")))) |
| 5175 | (build-system python-build-system) |
| 5176 | (native-inputs |
| 5177 | `(("python-certifi" ,python-certifi))) |
| 5178 | (inputs |
| 5179 | `(("python-backports-abc" ,python-backports-abc))) |
| 5180 | (home-page "http://www.tornadoweb.org/") |
| 5181 | (synopsis "Python web framework and asynchronous networking library") |
| 5182 | (description |
| 5183 | "Tornado is a Python web framework and asynchronous networking library, |
| 5184 | originally developed at FriendFeed. By using non-blocking network I/O, |
| 5185 | Tornado can scale to tens of thousands of open connections, making it ideal |
| 5186 | for long polling, WebSockets, and other applications that require a long-lived |
| 5187 | connection to each user.") |
| 5188 | (license license:asl2.0) |
| 5189 | (properties `((python2-variant . ,(delay python2-tornado)))))) |
| 5190 | |
| 5191 | (define-public python2-tornado |
| 5192 | (let ((tornado (package-with-python2 (strip-python2-variant python-tornado)))) |
| 5193 | (package (inherit tornado) |
| 5194 | (inputs |
| 5195 | `(("python2-backport-ssl-match-hostname" |
| 5196 | ,python2-backport-ssl-match-hostname) |
| 5197 | ("python2-singledispatch" ,python2-singledispatch) |
| 5198 | ,@(package-inputs tornado))) |
| 5199 | (native-inputs |
| 5200 | `(("python2-setuptools" ,python2-setuptools) |
| 5201 | ,@(package-native-inputs tornado)))))) |
| 5202 | |
| 5203 | ;; the python- version can be removed with python-3.5 |
| 5204 | (define-public python-backports-abc |
| 5205 | (package |
| 5206 | (name "python-backports-abc") |
| 5207 | (version "0.4") |
| 5208 | (source |
| 5209 | (origin |
| 5210 | (method url-fetch) |
| 5211 | (uri (pypi-uri "backports_abc" version)) |
| 5212 | (sha256 |
| 5213 | (base32 |
| 5214 | "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb")))) |
| 5215 | (build-system python-build-system) |
| 5216 | (inputs |
| 5217 | `(("python-setuptools" ,python-setuptools))) |
| 5218 | (home-page "https://github.com/cython/backports_abc") |
| 5219 | (synopsis "Backport of additions to the 'collections.abc' module") |
| 5220 | (description |
| 5221 | "Python-backports-abc provides a backport of additions to the |
| 5222 | 'collections.abc' module in Python-3.5.") |
| 5223 | (license license:psfl))) |
| 5224 | |
| 5225 | (define-public python2-backports-abc |
| 5226 | (package-with-python2 python-backports-abc)) |
| 5227 | |
| 5228 | (define-public python-waf |
| 5229 | (package |
| 5230 | (name "python-waf") |
| 5231 | (version "1.9.1") |
| 5232 | (source (origin |
| 5233 | (method url-fetch) |
| 5234 | (uri (string-append "https://waf.io/" |
| 5235 | "waf-" version ".tar.bz2")) |
| 5236 | (sha256 |
| 5237 | (base32 |
| 5238 | "1nc4qaqx2vsanlpp9mcwvf91xjqpkvcc6fcxd5sb4fwvaxamw5v6")))) |
| 5239 | (build-system python-build-system) |
| 5240 | (arguments |
| 5241 | '(#:phases |
| 5242 | (modify-phases %standard-phases |
| 5243 | (replace 'build |
| 5244 | (lambda _ |
| 5245 | (zero? (begin |
| 5246 | (system* "python" "waf-light" "configure") |
| 5247 | (system* "python" "waf-light" "build"))))) |
| 5248 | (replace 'check |
| 5249 | (lambda _ |
| 5250 | (zero? (system* "python" "waf" "--version")))) |
| 5251 | (replace 'install |
| 5252 | (lambda _ |
| 5253 | (copy-file "waf" %output)))))) |
| 5254 | (home-page "https://waf.io/") |
| 5255 | (synopsis "Python-based build system") |
| 5256 | (description |
| 5257 | "Waf is a Python-based framework for configuring, compiling and installing |
| 5258 | applications.") |
| 5259 | (license license:bsd-3))) |
| 5260 | |
| 5261 | (define-public python2-waf |
| 5262 | (package-with-python2 python-waf)) |
| 5263 | |
| 5264 | (define-public python-pyzmq |
| 5265 | (package |
| 5266 | (name "python-pyzmq") |
| 5267 | (version "15.1.0") |
| 5268 | (source |
| 5269 | (origin |
| 5270 | (method url-fetch) |
| 5271 | (uri (pypi-uri "pyzmq" version)) |
| 5272 | (sha256 |
| 5273 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
| 5274 | (build-system python-build-system) |
| 5275 | (arguments |
| 5276 | `(#:configure-flags |
| 5277 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) |
| 5278 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext |
| 5279 | ;; --inplace' for 'python setup.py test' to work. |
| 5280 | #:tests? #f)) |
| 5281 | (inputs |
| 5282 | `(("zeromq" ,zeromq))) |
| 5283 | (native-inputs |
| 5284 | `(("pkg-config" ,pkg-config) |
| 5285 | ("python-nose" ,python-nose) |
| 5286 | ("python-setuptools" ,python-setuptools))) |
| 5287 | (home-page "http://github.com/zeromq/pyzmq") |
| 5288 | (synopsis "Python bindings for 0MQ") |
| 5289 | (description |
| 5290 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") |
| 5291 | (license license:bsd-4))) |
| 5292 | |
| 5293 | (define-public python2-pyzmq |
| 5294 | (package-with-python2 python-pyzmq)) |
| 5295 | |
| 5296 | (define-public python-pep8 |
| 5297 | (package |
| 5298 | (name "python-pep8") |
| 5299 | (version "1.7.0") |
| 5300 | (source |
| 5301 | (origin |
| 5302 | (method url-fetch) |
| 5303 | (uri (pypi-uri "pep8" version)) |
| 5304 | (sha256 |
| 5305 | (base32 |
| 5306 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
| 5307 | (build-system python-build-system) |
| 5308 | (inputs |
| 5309 | `(("python-setuptools" ,python-setuptools))) |
| 5310 | (home-page "http://pep8.readthedocs.org/") |
| 5311 | (synopsis "Python style guide checker") |
| 5312 | (description |
| 5313 | "This tools checks Python code against some of the style conventions in |
| 5314 | PEP 8.") |
| 5315 | (license license:expat))) |
| 5316 | |
| 5317 | (define-public python2-pep8 |
| 5318 | (package-with-python2 python-pep8)) |
| 5319 | |
| 5320 | (define-public python-pyflakes |
| 5321 | (package |
| 5322 | (name "python-pyflakes") |
| 5323 | (version "1.0.0") |
| 5324 | (source |
| 5325 | (origin |
| 5326 | (method url-fetch) |
| 5327 | (uri (pypi-uri "pyflakes" version)) |
| 5328 | (sha256 |
| 5329 | (base32 |
| 5330 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
| 5331 | (build-system python-build-system) |
| 5332 | (inputs |
| 5333 | `(("python-setuptools" ,python-setuptools))) |
| 5334 | (home-page |
| 5335 | "https://github.com/pyflakes/pyflakes") |
| 5336 | (synopsis "Passive checker of Python programs") |
| 5337 | (description |
| 5338 | "Pyflakes statically checks Python source code for common errors.") |
| 5339 | (license license:expat))) |
| 5340 | |
| 5341 | (define-public python2-pyflakes |
| 5342 | (package-with-python2 python-pyflakes)) |
| 5343 | |
| 5344 | (define-public python-mccabe |
| 5345 | (package |
| 5346 | (name "python-mccabe") |
| 5347 | (version "0.4.0") |
| 5348 | (source |
| 5349 | (origin |
| 5350 | (method url-fetch) |
| 5351 | (uri (pypi-uri "mccabe" version)) |
| 5352 | (sha256 |
| 5353 | (base32 |
| 5354 | "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) |
| 5355 | (build-system python-build-system) |
| 5356 | (inputs |
| 5357 | `(("python-pytest" ,python-pytest) |
| 5358 | ("python-pytest-runner" ,python-pytest-runner) |
| 5359 | ("python-setuptools" ,python-setuptools))) |
| 5360 | (home-page "https://github.com/flintwork/mccabe") |
| 5361 | (synopsis "McCabe checker, plugin for flake8") |
| 5362 | (description |
| 5363 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic |
| 5364 | complexity of Python source code.") |
| 5365 | (license license:expat))) |
| 5366 | |
| 5367 | (define-public python2-mccabe |
| 5368 | (package-with-python2 python-mccabe)) |
| 5369 | |
| 5370 | (define-public python-mccabe-0.2.1 |
| 5371 | (package (inherit python-mccabe) |
| 5372 | (version "0.2.1") |
| 5373 | (source |
| 5374 | (origin |
| 5375 | (method url-fetch) |
| 5376 | (uri (pypi-uri "mccabe" version)) |
| 5377 | (sha256 |
| 5378 | (base32 |
| 5379 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))) |
| 5380 | (inputs `(("python-setuptools" ,python-setuptools))))) |
| 5381 | |
| 5382 | (define-public python2-mccabe-0.2.1 |
| 5383 | (package-with-python2 python-mccabe-0.2.1)) |
| 5384 | |
| 5385 | ;; Flake8 2.4.1 requires an older version of pep8. |
| 5386 | ;; This should be removed ASAP. |
| 5387 | (define-public python-pep8-1.5.7 |
| 5388 | (package (inherit python-pep8) |
| 5389 | (version "1.5.7") |
| 5390 | (source |
| 5391 | (origin |
| 5392 | (method url-fetch) |
| 5393 | (uri (string-append |
| 5394 | "https://pypi.python.org/packages/source/p/pep8/pep8-" |
| 5395 | version |
| 5396 | ".tar.gz")) |
| 5397 | (sha256 |
| 5398 | (base32 |
| 5399 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))))) |
| 5400 | |
| 5401 | (define-public python2-pep8-1.5.7 |
| 5402 | (package-with-python2 python-pep8-1.5.7)) |
| 5403 | |
| 5404 | ;; Flake8 2.4.1 requires an older version of pyflakes. |
| 5405 | ;; This should be removed ASAP. |
| 5406 | (define-public python-pyflakes-0.8.1 |
| 5407 | (package (inherit python-pyflakes) |
| 5408 | (version "0.8.1") |
| 5409 | (source |
| 5410 | (origin |
| 5411 | (method url-fetch) |
| 5412 | (uri (string-append |
| 5413 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" |
| 5414 | version |
| 5415 | ".tar.gz")) |
| 5416 | (sha256 |
| 5417 | (base32 |
| 5418 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))))) |
| 5419 | |
| 5420 | (define-public python2-pyflakes-0.8.1 |
| 5421 | (package-with-python2 python-pyflakes-0.8.1)) |
| 5422 | |
| 5423 | (define-public python-flake8 |
| 5424 | (package |
| 5425 | (name "python-flake8") |
| 5426 | (version "2.5.4") |
| 5427 | (source |
| 5428 | (origin |
| 5429 | (method url-fetch) |
| 5430 | (uri (pypi-uri "flake8" version)) |
| 5431 | (sha256 |
| 5432 | (base32 |
| 5433 | "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")))) |
| 5434 | (build-system python-build-system) |
| 5435 | (inputs |
| 5436 | `(("python-setuptools" ,python-setuptools) |
| 5437 | ("python-pep8" ,python-pep8) |
| 5438 | ("python-pyflakes" ,python-pyflakes) |
| 5439 | ("python-mccabe" ,python-mccabe) |
| 5440 | ("python-mock" ,python-mock) |
| 5441 | ("python-nose" ,python-nose))) |
| 5442 | (home-page "https://gitlab.com/pycqa/flake8") |
| 5443 | (synopsis |
| 5444 | "The modular source code checker: pep8, pyflakes and co") |
| 5445 | (description |
| 5446 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") |
| 5447 | (license license:expat))) |
| 5448 | |
| 5449 | (define-public python2-flake8 |
| 5450 | (package-with-python2 python-flake8)) |
| 5451 | |
| 5452 | ;; This will only be needed by the python-hacking package and will not be |
| 5453 | ;; necessary once python-hacking > 0.10.2 is released. |
| 5454 | (define-public python-flake8-2.2.4 |
| 5455 | (package (inherit python-flake8) |
| 5456 | (inputs |
| 5457 | `(("python-setuptools" ,python-setuptools) |
| 5458 | ("python-pep8" ,python-pep8-1.5.7) |
| 5459 | ("python-pyflakes" ,python-pyflakes-0.8.1) |
| 5460 | ("python-mccabe" ,python-mccabe-0.2.1) |
| 5461 | ("python-mock" ,python-mock) |
| 5462 | ("python-nose" ,python-nose))) |
| 5463 | (version "2.2.4") |
| 5464 | (source |
| 5465 | (origin |
| 5466 | (method url-fetch) |
| 5467 | (uri (pypi-uri "flake8" version)) |
| 5468 | (sha256 |
| 5469 | (base32 |
| 5470 | "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8")))))) |
| 5471 | |
| 5472 | (define-public python2-flake8-2.2.4 |
| 5473 | (package-with-python2 python-flake8-2.2.4)) |
| 5474 | |
| 5475 | (define-public python-mistune |
| 5476 | (package |
| 5477 | (name "python-mistune") |
| 5478 | (version "0.7") |
| 5479 | (source |
| 5480 | (origin |
| 5481 | (method url-fetch) |
| 5482 | (uri (string-append |
| 5483 | "https://pypi.python.org/packages/source/m/mistune/mistune-" |
| 5484 | version |
| 5485 | ".tar.gz")) |
| 5486 | (sha256 |
| 5487 | (base32 |
| 5488 | "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx")))) |
| 5489 | (build-system python-build-system) |
| 5490 | (inputs |
| 5491 | `(("python-setuptools" ,python-setuptools) |
| 5492 | ("python-nose" ,python-nose) |
| 5493 | ("python-cython" ,python-cython))) |
| 5494 | (home-page "https://github.com/lepture/mistune") |
| 5495 | (synopsis "Markdown parser in pure Python") |
| 5496 | (description "This package provides a fast markdown parser in pure |
| 5497 | Python.") |
| 5498 | (license license:bsd-3))) |
| 5499 | |
| 5500 | (define-public python2-mistune |
| 5501 | (package-with-python2 python-mistune)) |
| 5502 | |
| 5503 | (define-public python-markdown |
| 5504 | (package |
| 5505 | (name "python-markdown") |
| 5506 | (version "2.6.5") |
| 5507 | (source |
| 5508 | (origin |
| 5509 | (method url-fetch) |
| 5510 | (uri (pypi-uri "Markdown" version)) |
| 5511 | (sha256 |
| 5512 | (base32 |
| 5513 | "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d")))) |
| 5514 | (build-system python-build-system) |
| 5515 | (arguments |
| 5516 | `(#:phases |
| 5517 | (modify-phases %standard-phases |
| 5518 | (replace 'check |
| 5519 | (lambda _ |
| 5520 | (zero? (system* "python" "run-tests.py"))))))) |
| 5521 | (native-inputs |
| 5522 | `(("python-nose" ,python-nose) |
| 5523 | ("python-pyyaml" ,python-pyyaml))) |
| 5524 | (home-page "https://pythonhosted.org/Markdown/") |
| 5525 | (synopsis "Python implementation of Markdown") |
| 5526 | (description |
| 5527 | "This package provides a Python implementation of John Gruber's |
| 5528 | Markdown. The library features international input, various Markdown |
| 5529 | extensions, and several HTML output formats. A command line wrapper |
| 5530 | markdown_py is also provided to convert Markdown files to HTML.") |
| 5531 | (license license:bsd-3))) |
| 5532 | |
| 5533 | (define-public python2-markdown |
| 5534 | (package-with-python2 python-markdown)) |
| 5535 | |
| 5536 | (define-public python-ptyprocess |
| 5537 | (package |
| 5538 | (name "python-ptyprocess") |
| 5539 | (version "0.5") |
| 5540 | (source |
| 5541 | (origin |
| 5542 | (method url-fetch) |
| 5543 | (uri (string-append |
| 5544 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" |
| 5545 | version ".tar.gz")) |
| 5546 | (sha256 |
| 5547 | (base32 |
| 5548 | "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw")))) |
| 5549 | (build-system python-build-system) |
| 5550 | (inputs |
| 5551 | `(("python-setuptools" ,python-setuptools) |
| 5552 | ("python-nose" ,python-nose))) |
| 5553 | (arguments |
| 5554 | `(#:phases |
| 5555 | (modify-phases %standard-phases |
| 5556 | (replace 'check |
| 5557 | (lambda _ |
| 5558 | (zero? (system* "nosetests"))))))) |
| 5559 | (home-page "https://github.com/pexpect/ptyprocess") |
| 5560 | (synopsis "Run a subprocess in a pseudo terminal") |
| 5561 | (description |
| 5562 | "This package provides a Python library used to launch a subprocess in a |
| 5563 | pseudo terminal (pty), and interact with both the process and its pty.") |
| 5564 | (license license:isc))) |
| 5565 | |
| 5566 | (define-public python2-ptyprocess |
| 5567 | (package-with-python2 python-ptyprocess)) |
| 5568 | |
| 5569 | (define-public python-terminado |
| 5570 | (package |
| 5571 | (name "python-terminado") |
| 5572 | (version "0.6") |
| 5573 | (source |
| 5574 | (origin |
| 5575 | (method url-fetch) |
| 5576 | (uri (pypi-uri "terminado" version)) |
| 5577 | (sha256 |
| 5578 | (base32 |
| 5579 | "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc")))) |
| 5580 | (build-system python-build-system) |
| 5581 | (propagated-inputs |
| 5582 | `(("python-tornado" ,python-tornado) |
| 5583 | ("python-ptyprocess" ,python-ptyprocess))) |
| 5584 | (native-inputs |
| 5585 | `(("python-nose" ,python-nose))) |
| 5586 | (arguments |
| 5587 | `(#:phases |
| 5588 | (modify-phases %standard-phases |
| 5589 | (replace 'check |
| 5590 | (lambda _ |
| 5591 | (zero? (system* "nosetests"))))))) |
| 5592 | (home-page "https://github.com/takluyver/terminado") |
| 5593 | (synopsis "Terminals served to term.js using Tornado websockets") |
| 5594 | (description "This package provides a Tornado websocket backend for the |
| 5595 | term.js Javascript terminal emulator library.") |
| 5596 | (license license:bsd-2) |
| 5597 | (properties `((python2-variant . ,(delay python2-terminado)))))) |
| 5598 | |
| 5599 | (define-public python2-terminado |
| 5600 | (let ((terminado (package-with-python2 (strip-python2-variant python-terminado)))) |
| 5601 | (package (inherit terminado) |
| 5602 | (propagated-inputs |
| 5603 | `(("python2-backport-ssl-match-hostname" |
| 5604 | ,python2-backport-ssl-match-hostname) |
| 5605 | ,@(package-propagated-inputs terminado))) |
| 5606 | (native-inputs |
| 5607 | `(("python2-setuptools" ,python2-setuptools) |
| 5608 | ,@(package-native-inputs terminado)))))) |
| 5609 | |
| 5610 | (define-public python-fonttools |
| 5611 | (package |
| 5612 | (name "python-fonttools") |
| 5613 | (version "2.5") |
| 5614 | (source (origin |
| 5615 | (method url-fetch) |
| 5616 | (uri (string-append |
| 5617 | "https://pypi.python.org/packages/source/F/FontTools/" |
| 5618 | "fonttools-" version ".tar.gz")) |
| 5619 | (sha256 |
| 5620 | (base32 |
| 5621 | "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) |
| 5622 | (build-system python-build-system) |
| 5623 | (arguments '(#:test-target "check")) |
| 5624 | (propagated-inputs |
| 5625 | ;; XXX: module not found if setuptools is not available. |
| 5626 | `(("python-setuptools" ,python-setuptools))) |
| 5627 | (home-page "http://github.com/behdad/fonttools") |
| 5628 | (synopsis "Tools to manipulate font files") |
| 5629 | (description |
| 5630 | "FontTools/TTX is a library to manipulate font files from Python. It |
| 5631 | supports reading and writinfg of TrueType/OpenType fonts, reading and writing |
| 5632 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package |
| 5633 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and |
| 5634 | from an XML-based format.") |
| 5635 | (license (license:non-copyleft |
| 5636 | "file://LICENSE.txt" |
| 5637 | "See LICENSE.txt in the distribution.")))) |
| 5638 | |
| 5639 | (define-public python2-fonttools |
| 5640 | (package-with-python2 python-fonttools)) |
| 5641 | |
| 5642 | (define-public python-ly |
| 5643 | (package |
| 5644 | (name "python-ly") |
| 5645 | (version "0.9.4") |
| 5646 | (source |
| 5647 | (origin |
| 5648 | (method url-fetch) |
| 5649 | (uri (string-append "https://pypi.python.org/packages/57/4f/" |
| 5650 | "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" |
| 5651 | "/python-ly-" version ".tar.gz")) |
| 5652 | (sha256 |
| 5653 | (base32 |
| 5654 | "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62")))) |
| 5655 | (build-system python-build-system) |
| 5656 | (native-inputs |
| 5657 | `(("python-setuptools" ,python-setuptools))) |
| 5658 | (synopsis "Tool and library for manipulating LilyPond files") |
| 5659 | (description "This package provides a Python library to parse, manipulate |
| 5660 | or create documents in LilyPond format. A command line program ly is also |
| 5661 | provided that can be used to do various manipulations with LilyPond files.") |
| 5662 | (home-page "https://pypi.python.org/pypi/python-ly") |
| 5663 | (license license:gpl2+))) |
| 5664 | |
| 5665 | (define-public python-appdirs |
| 5666 | (package |
| 5667 | (name "python-appdirs") |
| 5668 | (version "1.4.0") |
| 5669 | (source |
| 5670 | (origin |
| 5671 | (method url-fetch) |
| 5672 | (uri (string-append |
| 5673 | "https://pypi.python.org/packages/source/a/appdirs/appdirs-" |
| 5674 | version |
| 5675 | ".tar.gz")) |
| 5676 | (sha256 |
| 5677 | (base32 |
| 5678 | "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg")))) |
| 5679 | (build-system python-build-system) |
| 5680 | (inputs |
| 5681 | `(("python-setuptools" ,python-setuptools))) |
| 5682 | (home-page "http://github.com/ActiveState/appdirs") |
| 5683 | (synopsis |
| 5684 | "Determine platform-specific dirs, e.g. a \"user data dir\"") |
| 5685 | (description |
| 5686 | "This module provides a portable way of finding out where user data |
| 5687 | should be stored on various operating systems.") |
| 5688 | (license license:expat))) |
| 5689 | |
| 5690 | (define-public python2-appdirs |
| 5691 | (package-with-python2 python-appdirs)) |
| 5692 | |
| 5693 | (define-public python-llfuse |
| 5694 | (package |
| 5695 | (name "python-llfuse") |
| 5696 | (version "1.1.1") |
| 5697 | (source (origin |
| 5698 | (method url-fetch) |
| 5699 | (uri (string-append |
| 5700 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" |
| 5701 | "llfuse-" version ".tar.bz2")) |
| 5702 | (sha256 |
| 5703 | (base32 |
| 5704 | "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v")))) |
| 5705 | (build-system python-build-system) |
| 5706 | (inputs |
| 5707 | `(("fuse" ,fuse) |
| 5708 | ("attr" ,attr))) |
| 5709 | (native-inputs |
| 5710 | `(("pkg-config" ,pkg-config) |
| 5711 | ("python-setuptools" ,python-setuptools))) |
| 5712 | (synopsis "Python bindings for FUSE") |
| 5713 | (description |
| 5714 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") |
| 5715 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") |
| 5716 | (license license:lgpl2.0+) |
| 5717 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
| 5718 | |
| 5719 | (define-public python2-llfuse |
| 5720 | (package (inherit (package-with-python2 |
| 5721 | (strip-python2-variant python-llfuse))) |
| 5722 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) |
| 5723 | |
| 5724 | ;; For attic-0.16 |
| 5725 | (define-public python-llfuse-0.41 |
| 5726 | (package (inherit python-llfuse) |
| 5727 | (version "0.41.1") |
| 5728 | (source (origin |
| 5729 | (method url-fetch) |
| 5730 | (uri (string-append |
| 5731 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" |
| 5732 | "llfuse-" version ".tar.bz2")) |
| 5733 | (sha256 |
| 5734 | (base32 |
| 5735 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
| 5736 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
| 5737 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. |
| 5738 | (license (list license:expat license:lgpl2.0+)))) |
| 5739 | |
| 5740 | (define-public python-msgpack |
| 5741 | (package |
| 5742 | (name "python-msgpack") |
| 5743 | (version "0.4.8") |
| 5744 | (source (origin |
| 5745 | (method url-fetch) |
| 5746 | (uri (pypi-uri "msgpack-python" version)) |
| 5747 | (sha256 |
| 5748 | (base32 |
| 5749 | "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs")))) |
| 5750 | (build-system python-build-system) |
| 5751 | (synopsis "MessagePack (de)serializer") |
| 5752 | (description "MessagePack is a fast, compact binary serialization format, |
| 5753 | suitable for similar data to JSON. This package provides CPython bindings for |
| 5754 | reading and writing MessagePack data.") |
| 5755 | (home-page "https://pypi.python.org/pypi/msgpack-python/") |
| 5756 | (license license:asl2.0) |
| 5757 | (properties `((python2-variant . ,(delay python2-msgpack)))))) |
| 5758 | |
| 5759 | (define-public python2-msgpack |
| 5760 | (package (inherit (package-with-python2 |
| 5761 | (strip-python2-variant python-msgpack))) |
| 5762 | (native-inputs |
| 5763 | `(("python2-setuptools" ,python2-setuptools))))) |
| 5764 | |
| 5765 | (define-public python2-msgpack |
| 5766 | (package-with-python2 python-msgpack)) |
| 5767 | |
| 5768 | (define-public python-netaddr |
| 5769 | (package |
| 5770 | (name "python-netaddr") |
| 5771 | (version "0.7.18") |
| 5772 | (source |
| 5773 | (origin |
| 5774 | (method url-fetch) |
| 5775 | (uri (string-append |
| 5776 | "https://pypi.python.org/packages/source/n/netaddr/netaddr-" |
| 5777 | version |
| 5778 | ".tar.gz")) |
| 5779 | (sha256 |
| 5780 | (base32 |
| 5781 | "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) |
| 5782 | (build-system python-build-system) |
| 5783 | (arguments `(#:tests? #f)) ;; No tests. |
| 5784 | (inputs |
| 5785 | `(("python-setuptools" ,python-setuptools))) |
| 5786 | (home-page "https://github.com/drkjam/netaddr/") |
| 5787 | (synopsis "Pythonic manipulation of network addresses") |
| 5788 | (description |
| 5789 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI |
| 5790 | and MAC network addresses.") |
| 5791 | (license license:bsd-3))) |
| 5792 | |
| 5793 | (define-public python2-netaddr |
| 5794 | (package-with-python2 python-netaddr)) |
| 5795 | |
| 5796 | (define-public python-wrapt |
| 5797 | (package |
| 5798 | (name "python-wrapt") |
| 5799 | (version "1.10.5") |
| 5800 | (source |
| 5801 | (origin |
| 5802 | (method url-fetch) |
| 5803 | (uri (string-append |
| 5804 | "https://pypi.python.org/packages/source/w/wrapt/wrapt-" |
| 5805 | version |
| 5806 | ".tar.gz")) |
| 5807 | (sha256 |
| 5808 | (base32 |
| 5809 | "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) |
| 5810 | (build-system python-build-system) |
| 5811 | (arguments |
| 5812 | ;; Tests are not included in the tarball, they are only available in the |
| 5813 | ;; git repository. |
| 5814 | `(#:tests? #f)) |
| 5815 | (inputs |
| 5816 | `(("python-setuptools" ,python-setuptools))) |
| 5817 | (home-page "https://github.com/GrahamDumpleton/wrapt") |
| 5818 | (synopsis "Module for decorators, wrappers and monkey patching") |
| 5819 | (description |
| 5820 | "The aim of the wrapt module is to provide a transparent object proxy for |
| 5821 | Python, which can be used as the basis for the construction of function |
| 5822 | wrappers and decorator functions.") |
| 5823 | (license license:bsd-2))) |
| 5824 | |
| 5825 | (define-public python2-wrapt |
| 5826 | (package-with-python2 python-wrapt)) |
| 5827 | |
| 5828 | (define-public python-iso8601 |
| 5829 | (package |
| 5830 | (name "python-iso8601") |
| 5831 | (version "0.1.11") |
| 5832 | (source |
| 5833 | (origin |
| 5834 | (method url-fetch) |
| 5835 | (uri (pypi-uri "iso8601" version)) |
| 5836 | (sha256 |
| 5837 | (base32 |
| 5838 | "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8")))) |
| 5839 | (build-system python-build-system) |
| 5840 | (inputs |
| 5841 | `(("python-setuptools" ,python-setuptools))) |
| 5842 | (home-page "https://bitbucket.org/micktwomey/pyiso8601") |
| 5843 | (synopsis "Module to parse ISO 8601 dates") |
| 5844 | (description |
| 5845 | "This module parses the most common forms of ISO 8601 date strings (e.g. |
| 5846 | @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.") |
| 5847 | (license license:expat))) |
| 5848 | |
| 5849 | (define-public python2-iso8601 |
| 5850 | (package-with-python2 python-iso8601)) |
| 5851 | |
| 5852 | (define-public python-monotonic |
| 5853 | (package |
| 5854 | (name "python-monotonic") |
| 5855 | (version "0.3") |
| 5856 | (source |
| 5857 | (origin |
| 5858 | (method url-fetch) |
| 5859 | (uri (string-append |
| 5860 | "https://pypi.python.org/packages/source/m/monotonic/monotonic-" |
| 5861 | version |
| 5862 | ".tar.gz")) |
| 5863 | (sha256 |
| 5864 | (base32 |
| 5865 | "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) |
| 5866 | (build-system python-build-system) |
| 5867 | (inputs |
| 5868 | `(("python-setuptools" ,python-setuptools))) |
| 5869 | (home-page "https://github.com/atdt/monotonic") |
| 5870 | (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") |
| 5871 | (description |
| 5872 | "This module provides a monotonic() function which returns the value (in |
| 5873 | fractional seconds) of a clock which never goes backwards.") |
| 5874 | (license license:asl2.0))) |
| 5875 | |
| 5876 | (define-public python2-monotonic |
| 5877 | (package-with-python2 python-monotonic)) |
| 5878 | |
| 5879 | (define-public python-webob |
| 5880 | (package |
| 5881 | (name "python-webob") |
| 5882 | (version "1.5.1") |
| 5883 | (source |
| 5884 | (origin |
| 5885 | (method url-fetch) |
| 5886 | (uri (pypi-uri "WebOb" version)) |
| 5887 | (sha256 |
| 5888 | (base32 |
| 5889 | "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq")))) |
| 5890 | (build-system python-build-system) |
| 5891 | (inputs |
| 5892 | `(("python-nose" ,python-nose) |
| 5893 | ("python-setuptools" ,python-setuptools))) |
| 5894 | (home-page "http://webob.org/") |
| 5895 | (synopsis "WSGI request and response object") |
| 5896 | (description |
| 5897 | "WebOb provides wrappers around the WSGI request environment, and an |
| 5898 | object to help create WSGI responses.") |
| 5899 | (license license:expat))) |
| 5900 | |
| 5901 | (define-public python2-webob |
| 5902 | (package-with-python2 python-webob)) |
| 5903 | |
| 5904 | (define-public python-xlrd |
| 5905 | (package |
| 5906 | (name "python-xlrd") |
| 5907 | (version "1.0.0") |
| 5908 | (source (origin |
| 5909 | (method url-fetch) |
| 5910 | (uri (pypi-uri "xlrd" version)) |
| 5911 | (sha256 |
| 5912 | (base32 |
| 5913 | "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g")))) |
| 5914 | (build-system python-build-system) |
| 5915 | (arguments |
| 5916 | `(#:phases |
| 5917 | (modify-phases %standard-phases |
| 5918 | ;; Current test in setup.py does not work as of 1.0.0, so use nose to |
| 5919 | ;; run tests instead for now. |
| 5920 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 5921 | (native-inputs `(("python-nose" ,python-nose) |
| 5922 | ("python-setuptools" ,python-setuptools))) |
| 5923 | (home-page "http://www.python-excel.org/") |
| 5924 | (synopsis "Library for extracting data from Excel files") |
| 5925 | (description "This packages provides a library to extract data from |
| 5926 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
| 5927 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
| 5928 | Unicode-aware. It is not intended as an end-user tool.") |
| 5929 | (license license:bsd-3))) |
| 5930 | |
| 5931 | (define-public python2-xlrd |
| 5932 | (package-with-python2 python-xlrd)) |
| 5933 | |
| 5934 | (define-public python-prettytable |
| 5935 | (package |
| 5936 | (name "python-prettytable") |
| 5937 | (version "0.7.2") |
| 5938 | (source |
| 5939 | (origin |
| 5940 | (method url-fetch) |
| 5941 | (uri (string-append |
| 5942 | "https://pypi.python.org/packages/source/P/PrettyTable/" |
| 5943 | "prettytable-" version ".tar.bz2")) |
| 5944 | (sha256 |
| 5945 | (base32 |
| 5946 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) |
| 5947 | (build-system python-build-system) |
| 5948 | (inputs |
| 5949 | `(("python-setuptools" ,python-setuptools))) |
| 5950 | (home-page "http://code.google.com/p/prettytable/") |
| 5951 | (synopsis "Display tabular data in an ASCII table format") |
| 5952 | (description |
| 5953 | "A library designed to represent tabular data in visually appealing ASCII |
| 5954 | tables. PrettyTable allows for selection of which columns are to be printed, |
| 5955 | independent alignment of columns (left or right justified or centred) and |
| 5956 | printing of sub-tables by specifying a row range.") |
| 5957 | (license license:bsd-3))) |
| 5958 | |
| 5959 | (define-public python2-prettytable |
| 5960 | (package-with-python2 python-prettytable)) |
| 5961 | |
| 5962 | (define-public python-tables |
| 5963 | (package |
| 5964 | (name "python-tables") |
| 5965 | (version "3.2.2") |
| 5966 | (source |
| 5967 | (origin |
| 5968 | (method url-fetch) |
| 5969 | (uri (pypi-uri "tables" version)) |
| 5970 | (sha256 |
| 5971 | (base32 |
| 5972 | "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m")))) |
| 5973 | (build-system python-build-system) |
| 5974 | (arguments |
| 5975 | `(;; FIXME: python-build-system does not pass configure-flags to "build" |
| 5976 | ;; or "check", so we must override the build and check phases. |
| 5977 | #:phases |
| 5978 | (modify-phases %standard-phases |
| 5979 | (add-after 'unpack 'use-gcc |
| 5980 | (lambda _ |
| 5981 | (substitute* "setup.py" |
| 5982 | (("compiler = new_compiler\\(\\)" line) |
| 5983 | (string-append line |
| 5984 | "\ncompiler.set_executables(compiler='gcc'," |
| 5985 | "compiler_so='gcc'," |
| 5986 | "linker_exe='gcc'," |
| 5987 | "linker_so='gcc -shared')"))) |
| 5988 | #t)) |
| 5989 | (replace 'build |
| 5990 | (lambda* (#:key inputs #:allow-other-keys) |
| 5991 | (zero? (system* "python" "setup.py" "build" |
| 5992 | (string-append "--hdf5=" |
| 5993 | (assoc-ref inputs "hdf5")))))) |
| 5994 | (replace 'check |
| 5995 | (lambda* (#:key inputs #:allow-other-keys) |
| 5996 | (zero? (system* "python" "setup.py" "check" |
| 5997 | (string-append "--hdf5=" |
| 5998 | (assoc-ref inputs "hdf5"))))))))) |
| 5999 | (propagated-inputs |
| 6000 | `(("python-numexpr" ,python-numexpr) |
| 6001 | ("python-numpy" ,python-numpy))) |
| 6002 | (native-inputs |
| 6003 | `(("python-setuptools" ,python-setuptools) |
| 6004 | ("python-cython" ,python-cython) |
| 6005 | ("pkg-config" ,pkg-config))) |
| 6006 | (inputs |
| 6007 | `(("hdf5" ,hdf5) |
| 6008 | ("bzip2" ,bzip2) |
| 6009 | ("zlib" ,zlib))) |
| 6010 | (home-page "http://www.pytables.org/") |
| 6011 | (synopsis "Hierarchical datasets for Python") |
| 6012 | (description "PyTables is a package for managing hierarchical datasets and |
| 6013 | designed to efficently cope with extremely large amounts of data.") |
| 6014 | (license license:bsd-3))) |
| 6015 | |
| 6016 | (define-public python2-tables |
| 6017 | (package-with-python2 python-tables)) |
| 6018 | |
| 6019 | (define-public python-pyasn1 |
| 6020 | (package |
| 6021 | (name "python-pyasn1") |
| 6022 | (version "0.1.8") |
| 6023 | (source |
| 6024 | (origin |
| 6025 | (method url-fetch) |
| 6026 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 6027 | "pyasn1/pyasn1-" version ".tar.gz")) |
| 6028 | (sha256 |
| 6029 | (base32 |
| 6030 | "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx")))) |
| 6031 | (build-system python-build-system) |
| 6032 | (home-page "http://pyasn1.sourceforge.net/") |
| 6033 | (synopsis "ASN.1 types and codecs") |
| 6034 | (description |
| 6035 | "This is an implementation of ASN.1 types and codecs in Python. It is |
| 6036 | suitable for a wide range of protocols based on the ASN.1 specification.") |
| 6037 | (license license:bsd-2))) |
| 6038 | |
| 6039 | (define-public python2-pyasn1 |
| 6040 | (package-with-python2 python-pyasn1)) |
| 6041 | |
| 6042 | (define-public python-pyasn1-modules |
| 6043 | (package |
| 6044 | (name "python-pyasn1-modules") |
| 6045 | (version "0.0.8") |
| 6046 | (source |
| 6047 | (origin |
| 6048 | (method url-fetch) |
| 6049 | (uri (pypi-uri "pyasn1-modules" version)) |
| 6050 | (sha256 |
| 6051 | (base32 |
| 6052 | "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) |
| 6053 | (build-system python-build-system) |
| 6054 | (native-inputs |
| 6055 | `(("python-setuptools" ,python-setuptools))) |
| 6056 | (propagated-inputs |
| 6057 | `(("python-pyasn1" ,python-pyasn1))) |
| 6058 | (home-page "http://sourceforge.net/projects/pyasn1/") |
| 6059 | (synopsis "ASN.1 codec implementations") |
| 6060 | (description |
| 6061 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and |
| 6062 | implementations of ASN.1-based codecs and protocols.") |
| 6063 | (license license:bsd-3))) |
| 6064 | |
| 6065 | (define-public python2-pyasn1-modules |
| 6066 | (package-with-python2 python-pyasn1-modules)) |
| 6067 | |
| 6068 | (define-public python-ipaddress |
| 6069 | (package |
| 6070 | (name "python-ipaddress") |
| 6071 | (version "1.0.16") |
| 6072 | (source (origin |
| 6073 | (method url-fetch) |
| 6074 | (uri (pypi-uri "ipaddress" version)) |
| 6075 | (sha256 |
| 6076 | (base32 |
| 6077 | "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas")))) |
| 6078 | (build-system python-build-system) |
| 6079 | (home-page "https://github.com/phihag/ipaddress") |
| 6080 | (synopsis "IP address manipulation library") |
| 6081 | (description |
| 6082 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
| 6083 | in Python. This library is used to create, poke at, and manipulate IPv4 and |
| 6084 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress |
| 6085 | module to older versions of Python.") |
| 6086 | (license license:psfl) |
| 6087 | (properties `((python2-variant . ,(delay python2-ipaddress)))))) |
| 6088 | |
| 6089 | (define-public python2-ipaddress |
| 6090 | (let ((base (package-with-python2 (strip-python2-variant python-ipaddress)))) |
| 6091 | (package (inherit base) |
| 6092 | (native-inputs |
| 6093 | `(("python2-setuptools" ,python2-setuptools) |
| 6094 | ,@(package-native-inputs base)))))) |
| 6095 | |
| 6096 | (define-public python2-ipaddr |
| 6097 | (package |
| 6098 | (name "python2-ipaddr") |
| 6099 | (version "2.1.11") |
| 6100 | (source |
| 6101 | (origin |
| 6102 | (method url-fetch) |
| 6103 | (uri (pypi-uri "ipaddr" version)) |
| 6104 | (sha256 |
| 6105 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) |
| 6106 | (build-system python-build-system) |
| 6107 | (arguments |
| 6108 | `(#:python ,python-2 ;version 2 only |
| 6109 | #:phases |
| 6110 | (modify-phases %standard-phases |
| 6111 | (replace 'check |
| 6112 | (lambda* _ |
| 6113 | (zero? (system* "python" "ipaddr_test.py"))))))) |
| 6114 | (home-page "https://github.com/google/ipaddr-py") |
| 6115 | (synopsis "IP address manipulation library") |
| 6116 | (description |
| 6117 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and |
| 6118 | IPv6 addresses and networks. |
| 6119 | |
| 6120 | For new implementations you may prefer to use the standard module |
| 6121 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older |
| 6122 | versions of Python.") |
| 6123 | (license license:asl2.0))) |
| 6124 | |
| 6125 | (define-public python-idna |
| 6126 | (package |
| 6127 | (name "python-idna") |
| 6128 | (version "2.0") |
| 6129 | (source |
| 6130 | (origin |
| 6131 | (method url-fetch) |
| 6132 | (uri (string-append "https://pypi.python.org/packages/source/i/" |
| 6133 | "idna/idna-" version ".tar.gz")) |
| 6134 | (sha256 |
| 6135 | (base32 |
| 6136 | "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n")))) |
| 6137 | (build-system python-build-system) |
| 6138 | (native-inputs |
| 6139 | `(("python-setuptools" ,python-setuptools))) |
| 6140 | (home-page "https://github.com/kjd/idna") |
| 6141 | (synopsis "Internationalized domain names in applications") |
| 6142 | (description |
| 6143 | "This is a library to support the Internationalised Domain Names in |
| 6144 | Applications (IDNA) protocol as specified in RFC 5891. This version of the |
| 6145 | protocol is often referred to as “IDNA2008” and can produce different results |
| 6146 | from the earlier standard from 2003. The library is also intended to act as a |
| 6147 | suitable drop-in replacement for the “encodings.idna” module that comes with |
| 6148 | the Python standard library but currently only supports the older 2003 |
| 6149 | specification.") |
| 6150 | (license license:bsd-4))) |
| 6151 | |
| 6152 | (define-public python2-idna |
| 6153 | (package-with-python2 python-idna)) |
| 6154 | |
| 6155 | (define-public python-pretend |
| 6156 | (package |
| 6157 | (name "python-pretend") |
| 6158 | (version "1.0.8") |
| 6159 | (source |
| 6160 | (origin |
| 6161 | (method url-fetch) |
| 6162 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 6163 | "pretend/pretend-" version ".tar.gz")) |
| 6164 | (sha256 |
| 6165 | (base32 |
| 6166 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) |
| 6167 | (build-system python-build-system) |
| 6168 | (native-inputs |
| 6169 | `(("python-setuptools" ,python-setuptools))) |
| 6170 | (home-page "https://github.com/alex/pretend") |
| 6171 | (synopsis "Library for stubbing in Python") |
| 6172 | (description |
| 6173 | "Pretend is a library to make stubbing with Python easier. Stubbing is a |
| 6174 | technique for writing tests. You may hear the term mixed up with mocks, |
| 6175 | fakes, or doubles. Basically, a stub is an object that returns pre-canned |
| 6176 | responses, rather than doing any computation.") |
| 6177 | (license license:bsd-3))) |
| 6178 | |
| 6179 | (define-public python2-pretend |
| 6180 | (package-with-python2 python-pretend)) |
| 6181 | |
| 6182 | (define-public python-cryptography-vectors |
| 6183 | (package |
| 6184 | (name "python-cryptography-vectors") |
| 6185 | (version "1.3.4") |
| 6186 | (source |
| 6187 | (origin |
| 6188 | (method url-fetch) |
| 6189 | (uri (pypi-uri "cryptography_vectors" version)) |
| 6190 | (sha256 |
| 6191 | (base32 |
| 6192 | "15h1iz2klnpb4f8djxy7cpbnyn3wbjp7bnj4pz6s7w6plghbq524")))) |
| 6193 | (build-system python-build-system) |
| 6194 | (native-inputs |
| 6195 | `(("python-setuptools" ,python-setuptools))) |
| 6196 | (home-page "https://github.com/pyca/cryptography") |
| 6197 | (synopsis "Test vectors for the cryptography package") |
| 6198 | (description |
| 6199 | "This package contains test vectors for the cryptography package.") |
| 6200 | ;; Distributed under either BSD-3 or ASL2.0 |
| 6201 | (license (list license:bsd-3 license:asl2.0)))) |
| 6202 | |
| 6203 | (define-public python2-cryptography-vectors |
| 6204 | (package-with-python2 python-cryptography-vectors)) |
| 6205 | |
| 6206 | (define-public python-cryptography |
| 6207 | (package |
| 6208 | (name "python-cryptography") |
| 6209 | (version "1.3.4") |
| 6210 | (source |
| 6211 | (origin |
| 6212 | (method url-fetch) |
| 6213 | (uri (pypi-uri "cryptography" version)) |
| 6214 | (sha256 |
| 6215 | (base32 |
| 6216 | "1a85l548w5vvq3yhz0az7ajg2ijixzp6gagapw6wgrqvq28ghgs2")))) |
| 6217 | (build-system python-build-system) |
| 6218 | (arguments |
| 6219 | `(#:phases |
| 6220 | (modify-phases %standard-phases |
| 6221 | (add-before 'check 'disable-failing-test |
| 6222 | (lambda _ |
| 6223 | ;; This test is known to fail with OpenSSL >= 1.0.2i and older |
| 6224 | ;; versions of python-cryptography: |
| 6225 | ;; https://github.com/pyca/cryptography/issues/3196 |
| 6226 | ;; TODO: Try re-enabling the test when upgrading |
| 6227 | ;; python-cryptography. |
| 6228 | (substitute* "tests/hazmat/backends/test_openssl.py" |
| 6229 | (("def test_numeric_string_x509_name_entry") |
| 6230 | "@pytest.mark.xfail\n def test_numeric_string_x509_name_entry")) |
| 6231 | #t))))) |
| 6232 | (inputs |
| 6233 | `(("openssl" ,openssl))) |
| 6234 | (propagated-inputs |
| 6235 | `(("python-cffi" ,python-cffi) |
| 6236 | ("python-six" ,python-six) |
| 6237 | ("python-pyasn1" ,python-pyasn1) |
| 6238 | ("python-idna" ,python-idna) |
| 6239 | ("python-iso8601" ,python-iso8601))) |
| 6240 | (native-inputs |
| 6241 | `(("python-cryptography-vectors" ,python-cryptography-vectors) |
| 6242 | ("python-hypothesis" ,python-hypothesis) |
| 6243 | ("python-setuptools" ,python-setuptools) |
| 6244 | ("python-pretend" ,python-pretend) |
| 6245 | ("python-pyasn1" ,python-pyasn1) |
| 6246 | ("python-pyasn1-modules" ,python-pyasn1-modules) |
| 6247 | ("python-pytest" ,python-pytest))) |
| 6248 | (home-page "https://github.com/pyca/cryptography") |
| 6249 | (synopsis "Cryptographic recipes and primitives for Python") |
| 6250 | (description |
| 6251 | "cryptography is a package which provides cryptographic recipes and |
| 6252 | primitives to Python developers. It aims to be the “cryptographic standard |
| 6253 | library” for Python. The package includes both high level recipes, and low |
| 6254 | level interfaces to common cryptographic algorithms such as symmetric ciphers, |
| 6255 | message digests and key derivation functions.") |
| 6256 | ;; Distributed under either BSD-3 or ASL2.0 |
| 6257 | (license (list license:bsd-3 license:asl2.0)) |
| 6258 | (properties `((python2-variant . ,(delay python2-cryptography)))))) |
| 6259 | |
| 6260 | (define-public python2-cryptography |
| 6261 | (let ((crypto (package-with-python2 |
| 6262 | (strip-python2-variant python-cryptography)))) |
| 6263 | (package (inherit crypto) |
| 6264 | (propagated-inputs |
| 6265 | `(("python2-ipaddress" ,python2-ipaddress) |
| 6266 | ("python2-backport-ssl-match-hostname" |
| 6267 | ,python2-backport-ssl-match-hostname) |
| 6268 | ("python2-enum34" ,python2-enum34) |
| 6269 | ,@(package-propagated-inputs crypto)))))) |
| 6270 | |
| 6271 | (define-public python-pyopenssl |
| 6272 | (package |
| 6273 | (name "python-pyopenssl") |
| 6274 | (version "16.0.0") |
| 6275 | (source |
| 6276 | (origin |
| 6277 | (method url-fetch) |
| 6278 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 6279 | "pyOpenSSL/pyOpenSSL-" version ".tar.gz")) |
| 6280 | (sha256 |
| 6281 | (base32 |
| 6282 | "0zfijaxlq4vgi6jz0d4i5xq9ygqnyps6br7lmigjhqnh8gp10g9n")))) |
| 6283 | (build-system python-build-system) |
| 6284 | (propagated-inputs |
| 6285 | `(("python-cryptography" ,python-cryptography) |
| 6286 | ("python-six" ,python-six))) |
| 6287 | (inputs |
| 6288 | `(("openssl" ,openssl))) |
| 6289 | (native-inputs |
| 6290 | `(("python-setuptools" ,python-setuptools))) |
| 6291 | (home-page "https://github.com/pyca/pyopenssl") |
| 6292 | (synopsis "Python wrapper module around the OpenSSL library") |
| 6293 | (description |
| 6294 | "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL |
| 6295 | library.") |
| 6296 | (license license:asl2.0))) |
| 6297 | |
| 6298 | (define-public python2-pyopenssl |
| 6299 | (package-with-python2 python-pyopenssl)) |
| 6300 | |
| 6301 | (define-public python-pip |
| 6302 | (package |
| 6303 | (name "python-pip") |
| 6304 | (version "8.0.2") |
| 6305 | (source |
| 6306 | (origin |
| 6307 | (method url-fetch) |
| 6308 | (uri (pypi-uri "pip" version)) |
| 6309 | (sha256 |
| 6310 | (base32 |
| 6311 | "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26")))) |
| 6312 | (build-system python-build-system) |
| 6313 | (inputs |
| 6314 | `(("python-setuptools" ,python-setuptools) |
| 6315 | ("python-virtualenv" ,python-virtualenv) |
| 6316 | ;; Tests |
| 6317 | ("python-mock" ,python-mock) |
| 6318 | ("python-pytest" ,python-pytest) |
| 6319 | ("python-scripttest" ,python-scripttest))) |
| 6320 | (home-page "https://pip.pypa.io/") |
| 6321 | (synopsis |
| 6322 | "Package manager for Python software") |
| 6323 | (description |
| 6324 | "Pip is a package manager for Python software, that finds packages on the |
| 6325 | Python Package Index (PyPI).") |
| 6326 | (license license:expat))) |
| 6327 | |
| 6328 | (define-public python2-pip |
| 6329 | (package-with-python2 python-pip)) |
| 6330 | |
| 6331 | (define-public python-tlsh |
| 6332 | (package |
| 6333 | (name "python-tlsh") |
| 6334 | (version "3.4.4") |
| 6335 | (home-page "https://github.com/trendmicro/tlsh") |
| 6336 | (source (origin |
| 6337 | (method url-fetch) |
| 6338 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" |
| 6339 | version ".tar.gz")) |
| 6340 | (sha256 |
| 6341 | (base32 |
| 6342 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
| 6343 | (file-name (string-append name "-" version ".tar.gz")))) |
| 6344 | (build-system cmake-build-system) |
| 6345 | (arguments |
| 6346 | '(#:out-of-source? #f |
| 6347 | #:phases (modify-phases %standard-phases |
| 6348 | (replace |
| 6349 | 'install |
| 6350 | (lambda* (#:key outputs #:allow-other-keys) |
| 6351 | ;; Build and install the Python bindings. The underlying |
| 6352 | ;; C++ library is apparently not meant to be installed. |
| 6353 | (let ((out (assoc-ref outputs "out"))) |
| 6354 | (with-directory-excursion "py_ext" |
| 6355 | (and (system* "python" "setup.py" "build") |
| 6356 | (system* "python" "setup.py" "install" |
| 6357 | (string-append "--prefix=" out)))))))))) |
| 6358 | (inputs `(("python" ,python-wrapper))) ;for the bindings |
| 6359 | (synopsis "Fuzzy matching library for Python") |
| 6360 | (description |
| 6361 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. |
| 6362 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash |
| 6363 | value which can be used for similarity comparisons. Similar objects have |
| 6364 | similar hash values, which allows for the detection of similar objects by |
| 6365 | comparing their hash values. The byte stream should have a sufficient amount |
| 6366 | of complexity; for example, a byte stream of identical bytes will not generate |
| 6367 | a hash value.") |
| 6368 | (license license:asl2.0))) |
| 6369 | |
| 6370 | (define-public python2-tlsh |
| 6371 | (package |
| 6372 | (inherit python-tlsh) |
| 6373 | (name "python2-tlsh") |
| 6374 | (inputs `(("python" ,python-2))))) |
| 6375 | |
| 6376 | (define-public python-termcolor |
| 6377 | (package |
| 6378 | (name "python-termcolor") |
| 6379 | (version "1.1.0") |
| 6380 | (source |
| 6381 | (origin |
| 6382 | (method url-fetch) |
| 6383 | (uri (pypi-uri "python-termcolor" version)) |
| 6384 | (sha256 |
| 6385 | (base32 |
| 6386 | "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) |
| 6387 | (build-system python-build-system) |
| 6388 | (arguments |
| 6389 | ;; There are no tests. |
| 6390 | `(#:tests? #f)) |
| 6391 | (home-page "http://pypi.python.org/pypi/termcolor") |
| 6392 | (synopsis "ANSII Color formatting for terminal output") |
| 6393 | (description |
| 6394 | "This package provides ANSII Color formatting for output in terminals.") |
| 6395 | (license license:expat))) |
| 6396 | |
| 6397 | (define-public python2-termcolor |
| 6398 | (package-with-python2 python-termcolor)) |
| 6399 | |
| 6400 | (define-public python-libarchive-c |
| 6401 | (package |
| 6402 | (name "python-libarchive-c") |
| 6403 | (version "2.2") |
| 6404 | (source (origin |
| 6405 | (method url-fetch) |
| 6406 | (uri (pypi-uri "libarchive-c" version)) |
| 6407 | (sha256 |
| 6408 | (base32 |
| 6409 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
| 6410 | (build-system python-build-system) |
| 6411 | (arguments |
| 6412 | '(#:phases (modify-phases %standard-phases |
| 6413 | (add-before |
| 6414 | 'build 'reference-libarchive |
| 6415 | (lambda* (#:key inputs #:allow-other-keys) |
| 6416 | ;; Retain the absolute file name of libarchive.so. |
| 6417 | (let ((libarchive (assoc-ref inputs "libarchive"))) |
| 6418 | (substitute* "libarchive/ffi.py" |
| 6419 | (("find_library\\('archive'\\)") |
| 6420 | (string-append "'" libarchive |
| 6421 | "/lib/libarchive.so'")))) |
| 6422 | |
| 6423 | ;; Do not make a compressed egg (see |
| 6424 | ;; <http://bugs.gnu.org/20765>). |
| 6425 | (let ((port (open-file "setup.cfg" "a"))) |
| 6426 | (display "\n[easy_install]\nzip_ok = 0\n" |
| 6427 | port) |
| 6428 | (close-port port) |
| 6429 | #t)))))) |
| 6430 | (inputs |
| 6431 | `(("python-setuptools" ,python-setuptools) |
| 6432 | ("libarchive" ,libarchive))) |
| 6433 | (home-page "https://github.com/Changaco/python-libarchive-c") |
| 6434 | (synopsis "Python interface to libarchive") |
| 6435 | (description |
| 6436 | "This package provides Python bindings to libarchive, a C library to |
| 6437 | access possibly compressed archives in many different formats. It uses |
| 6438 | Python's @code{ctypes} foreign function interface (FFI).") |
| 6439 | (license license:lgpl2.0+))) |
| 6440 | |
| 6441 | (define-public python2-libarchive-c |
| 6442 | (package-with-python2 python-libarchive-c)) |
| 6443 | |
| 6444 | (define-public python-file |
| 6445 | (package |
| 6446 | (inherit file) |
| 6447 | (name "python-file") |
| 6448 | (build-system python-build-system) |
| 6449 | (arguments |
| 6450 | '(#:tests? #f ;no tests |
| 6451 | #:phases (modify-phases %standard-phases |
| 6452 | (add-before 'build 'change-directory |
| 6453 | (lambda _ |
| 6454 | (chdir "python") |
| 6455 | #t)) |
| 6456 | (add-before 'build 'set-library-file-name |
| 6457 | (lambda* (#:key inputs #:allow-other-keys) |
| 6458 | (let ((file (assoc-ref inputs "file"))) |
| 6459 | (substitute* "magic.py" |
| 6460 | (("find_library\\('magic'\\)") |
| 6461 | (string-append "'" file "/lib/libmagic.so'"))) |
| 6462 | #t)))))) |
| 6463 | (inputs `(("file" ,file))) |
| 6464 | (self-native-input? #f) |
| 6465 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
| 6466 | this module and the python-magic module both provide a \"magic.py\" file; |
| 6467 | these two modules, which are different and were developed separately, both |
| 6468 | serve the same purpose: provide Python bindings for libmagic.") |
| 6469 | (properties `((python2-variant . ,(delay python2-file)))))) |
| 6470 | |
| 6471 | (define-public python2-file |
| 6472 | (let ((base (package-with-python2 (strip-python2-variant python-file)))) |
| 6473 | (package |
| 6474 | (inherit base) |
| 6475 | (native-inputs |
| 6476 | `(("python2-setuptools" ,python2-setuptools) |
| 6477 | ,@(package-native-inputs base)))))) |
| 6478 | |
| 6479 | (define-public python-debian |
| 6480 | (package |
| 6481 | (name "python-debian") |
| 6482 | (version "0.1.23") |
| 6483 | (source |
| 6484 | (origin |
| 6485 | (method url-fetch) |
| 6486 | (uri (string-append |
| 6487 | "https://pypi.python.org/packages/source/p/python-debian/python-debian-" |
| 6488 | version ".tar.gz")) |
| 6489 | (sha256 |
| 6490 | (base32 |
| 6491 | "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh")))) |
| 6492 | (build-system python-build-system) |
| 6493 | (inputs |
| 6494 | `(("python-six" ,python-six))) |
| 6495 | (native-inputs |
| 6496 | `(("python-setuptools" ,python-setuptools))) |
| 6497 | (home-page "http://packages.debian.org/sid/python-debian") |
| 6498 | (synopsis "Debian package related modules") |
| 6499 | (description |
| 6500 | ;; XXX: Use @enumerate instead of @itemize to work around |
| 6501 | ;; <http://bugs.gnu.org/21772>. |
| 6502 | "This package provides Python modules that abstract many formats of |
| 6503 | Debian-related files, such as: |
| 6504 | |
| 6505 | @enumerate |
| 6506 | @item Debtags information; |
| 6507 | @item @file{debian/changelog} files; |
| 6508 | @item packages files, pdiffs; |
| 6509 | @item control files of single or multiple RFC822-style paragraphs---e.g. |
| 6510 | @file{debian/control}, @file{.changes}, @file{.dsc}; |
| 6511 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to |
| 6512 | contained files and meta-information. |
| 6513 | @end enumerate\n") |
| 6514 | |
| 6515 | ;; Modules are either GPLv2+ or GPLv3+. |
| 6516 | (license license:gpl3+))) |
| 6517 | |
| 6518 | (define-public python2-debian |
| 6519 | (package-with-python2 python-debian)) |
| 6520 | |
| 6521 | (define-public python-chardet |
| 6522 | (package |
| 6523 | (name "python-chardet") |
| 6524 | (version "2.3.0") |
| 6525 | (source |
| 6526 | (origin |
| 6527 | (method url-fetch) |
| 6528 | (uri (string-append |
| 6529 | "https://pypi.python.org/packages/source/c/chardet/chardet-" |
| 6530 | version |
| 6531 | ".tar.gz")) |
| 6532 | (sha256 |
| 6533 | (base32 |
| 6534 | "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5")))) |
| 6535 | (build-system python-build-system) |
| 6536 | (native-inputs |
| 6537 | `(("python-setuptools" ,python-setuptools))) |
| 6538 | (home-page "https://github.com/chardet/chardet") |
| 6539 | (synopsis "Universal encoding detector for Python 2 and 3") |
| 6540 | (description |
| 6541 | "This package provides @code{chardet}, a Python module that can |
| 6542 | automatically detect a wide range of file encodings.") |
| 6543 | (license license:lgpl2.1+))) |
| 6544 | |
| 6545 | (define-public python2-chardet |
| 6546 | (package-with-python2 python-chardet)) |
| 6547 | |
| 6548 | (define-public python-docopt |
| 6549 | (package |
| 6550 | (name "python-docopt") |
| 6551 | (version "0.6.2") |
| 6552 | (source |
| 6553 | (origin |
| 6554 | (method url-fetch) |
| 6555 | ;; The release on PyPI does not include tests. |
| 6556 | (uri (string-append |
| 6557 | "https://github.com/docopt/docopt/archive/" |
| 6558 | version ".tar.gz")) |
| 6559 | (file-name (string-append name "-" version ".tar.gz")) |
| 6560 | (sha256 |
| 6561 | (base32 |
| 6562 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) |
| 6563 | (build-system python-build-system) |
| 6564 | (native-inputs |
| 6565 | `(("python-pytest" ,python-pytest) |
| 6566 | ("python-setuptools" ,python-setuptools))) |
| 6567 | (arguments |
| 6568 | `(#:phases (alist-replace |
| 6569 | 'check |
| 6570 | (lambda _ (zero? (system* "py.test"))) |
| 6571 | %standard-phases))) |
| 6572 | (home-page "http://docopt.org") |
| 6573 | (synopsis "Command-line interface description language for Python") |
| 6574 | (description "This library allows the user to define a command-line |
| 6575 | interface from a program's help message rather than specifying it |
| 6576 | programatically with command-line parsers like @code{getopt} and |
| 6577 | @code{argparse}.") |
| 6578 | (license license:expat))) |
| 6579 | |
| 6580 | (define-public python2-docopt |
| 6581 | (package-with-python2 python-docopt)) |
| 6582 | |
| 6583 | (define-public python-zope-event |
| 6584 | (package |
| 6585 | (name "python-zope-event") |
| 6586 | (version "4.1.0") |
| 6587 | (source |
| 6588 | (origin |
| 6589 | (method url-fetch) |
| 6590 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6591 | "/zope.event/zope.event-" version ".tar.gz")) |
| 6592 | (sha256 |
| 6593 | (base32 |
| 6594 | "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw")))) |
| 6595 | (build-system python-build-system) |
| 6596 | (inputs |
| 6597 | `(("python-setuptools" ,python-setuptools))) |
| 6598 | (home-page "http://pypi.python.org/pypi/zope.event") |
| 6599 | (synopsis "Event publishing system for Python") |
| 6600 | (description "Zope.event provides an event publishing API, intended for |
| 6601 | use by applications which are unaware of any subscribers to their events. It |
| 6602 | is a simple event-dispatching system on which more sophisticated event |
| 6603 | dispatching systems can be built.") |
| 6604 | (license license:zpl2.1))) |
| 6605 | |
| 6606 | (define-public python2-zope-event |
| 6607 | (package-with-python2 python-zope-event)) |
| 6608 | |
| 6609 | (define-public python-zope-interface |
| 6610 | (package |
| 6611 | (name "python-zope-interface") |
| 6612 | (version "4.1.3") |
| 6613 | (source |
| 6614 | (origin |
| 6615 | (method url-fetch) |
| 6616 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6617 | "/zope.interface/zope.interface-" version ".tar.gz")) |
| 6618 | (sha256 |
| 6619 | (base32 |
| 6620 | "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if")))) |
| 6621 | (build-system python-build-system) |
| 6622 | (propagated-inputs |
| 6623 | `(("python-zope-event" ,python-zope-event))) |
| 6624 | (home-page "https://github.com/zopefoundation/zope.interface") |
| 6625 | (synopsis "Python implementation of the \"design by contract\" |
| 6626 | methodology") |
| 6627 | (description "Zope.interface provides an implementation of \"object |
| 6628 | interfaces\" for Python. Interfaces are a mechanism for labeling objects as |
| 6629 | conforming to a given API or contract.") |
| 6630 | (license license:zpl2.1))) |
| 6631 | |
| 6632 | (define-public python2-zope-interface |
| 6633 | (package-with-python2 python-zope-interface)) |
| 6634 | |
| 6635 | (define-public python-zope-exceptions |
| 6636 | (package |
| 6637 | (name "python-zope-exceptions") |
| 6638 | (version "4.0.8") |
| 6639 | (source |
| 6640 | (origin |
| 6641 | (method url-fetch) |
| 6642 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6643 | "/zope.exceptions/zope.exceptions-" |
| 6644 | version ".tar.gz")) |
| 6645 | (sha256 |
| 6646 | (base32 |
| 6647 | "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl")))) |
| 6648 | (build-system python-build-system) |
| 6649 | (arguments |
| 6650 | '(#:tests? #f)) ; circular dependency with zope.testrunner |
| 6651 | (propagated-inputs |
| 6652 | `(("python-zope-interface" ,python-zope-interface))) |
| 6653 | (home-page "http://cheeseshop.python.org/pypi/zope.exceptions") |
| 6654 | (synopsis "Zope exceptions") |
| 6655 | (description "Zope.exceptions provides general-purpose exception types |
| 6656 | that have uses outside of the Zope framework.") |
| 6657 | (license license:zpl2.1))) |
| 6658 | |
| 6659 | (define-public python2-zope-exceptions |
| 6660 | (package-with-python2 python-zope-exceptions)) |
| 6661 | |
| 6662 | (define-public python-zope-testing |
| 6663 | (package |
| 6664 | (name "python-zope-testing") |
| 6665 | (version "4.5.0") |
| 6666 | (source |
| 6667 | (origin |
| 6668 | (method url-fetch) |
| 6669 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6670 | "/zope.testing/zope.testing-" version ".tar.gz")) |
| 6671 | (sha256 |
| 6672 | (base32 |
| 6673 | "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")))) |
| 6674 | (build-system python-build-system) |
| 6675 | (native-inputs |
| 6676 | `(("python-zope-exceptions" ,python-zope-exceptions))) |
| 6677 | (propagated-inputs |
| 6678 | `(("python-zope-interface" ,python-zope-interface))) |
| 6679 | (home-page "http://pypi.python.org/pypi/zope.testing") |
| 6680 | (synopsis "Zope testing helpers") |
| 6681 | (description "Zope.testing provides a number of testing utilities for HTML |
| 6682 | forms, HTTP servers, regular expressions, and more.") |
| 6683 | (license license:zpl2.1))) |
| 6684 | |
| 6685 | (define-public python2-zope-testing |
| 6686 | (package-with-python2 python-zope-testing)) |
| 6687 | |
| 6688 | (define-public python-zope-testrunner |
| 6689 | (package |
| 6690 | (name "python-zope-testrunner") |
| 6691 | (version "4.4.9") |
| 6692 | (source |
| 6693 | (origin |
| 6694 | (method url-fetch) |
| 6695 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6696 | "/zope.testrunner/zope.testrunner-" |
| 6697 | version ".zip")) |
| 6698 | (sha256 |
| 6699 | (base32 |
| 6700 | "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1")))) |
| 6701 | (build-system python-build-system) |
| 6702 | (native-inputs |
| 6703 | `(("python-six" ,python-six) |
| 6704 | ("python-zope-exceptions" ,python-zope-exceptions) |
| 6705 | ("python-zope-testing" ,python-zope-testing) |
| 6706 | ("unzip" ,unzip))) |
| 6707 | (propagated-inputs |
| 6708 | `(("python-zope-interface" ,python-zope-interface))) |
| 6709 | (home-page "http://pypi.python.org/pypi/zope.testrunner") |
| 6710 | (synopsis "Zope testrunner script") |
| 6711 | (description "Zope.testrunner provides a script for running Python |
| 6712 | tests.") |
| 6713 | (license license:zpl2.1))) |
| 6714 | |
| 6715 | (define-public python2-zope-testrunner |
| 6716 | (let ((base (package-with-python2 python-zope-testrunner))) |
| 6717 | (package |
| 6718 | (inherit base) |
| 6719 | (native-inputs |
| 6720 | (append (package-native-inputs base) |
| 6721 | `(("python2-subunit" ,python2-subunit) |
| 6722 | ("python2-mimeparse" ,python2-mimeparse))))))) |
| 6723 | |
| 6724 | (define-public python-zope-i18nmessageid |
| 6725 | (package |
| 6726 | (name "python-zope-i18nmessageid") |
| 6727 | (version "4.0.3") |
| 6728 | (source |
| 6729 | (origin |
| 6730 | (method url-fetch) |
| 6731 | (uri (string-append |
| 6732 | "https://pypi.python.org/packages/source/z" |
| 6733 | "/zope.i18nmessageid/zope.i18nmessageid-" |
| 6734 | version ".tar.gz")) |
| 6735 | (sha256 |
| 6736 | (base32 |
| 6737 | "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml")))) |
| 6738 | (build-system python-build-system) |
| 6739 | (inputs |
| 6740 | `(("python-setuptools" ,python-setuptools))) |
| 6741 | (home-page "http://pypi.python.org/pypi/zope.i18nmessageid") |
| 6742 | (synopsis "Message identifiers for internationalization") |
| 6743 | (description "Zope.i18nmessageid provides facilities for declaring |
| 6744 | internationalized messages within program source text.") |
| 6745 | (license license:zpl2.1))) |
| 6746 | |
| 6747 | (define-public python2-zope-i18nmessageid |
| 6748 | (package-with-python2 python-zope-i18nmessageid)) |
| 6749 | |
| 6750 | (define-public python-zope-schema |
| 6751 | (package |
| 6752 | (name "python-zope-schema") |
| 6753 | (version "4.4.2") |
| 6754 | (source |
| 6755 | (origin |
| 6756 | (method url-fetch) |
| 6757 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6758 | "/zope.schema/zope.schema-" version ".tar.gz")) |
| 6759 | (sha256 |
| 6760 | (base32 |
| 6761 | "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank")))) |
| 6762 | (build-system python-build-system) |
| 6763 | (propagated-inputs |
| 6764 | `(("python-zope-event" ,python-zope-event) |
| 6765 | ("python-zope-interface" ,python-zope-interface))) |
| 6766 | (native-inputs |
| 6767 | `(("python-zope-testing" ,python-zope-testing))) |
| 6768 | (home-page "http://pypi.python.org/pypi/zope.schema") |
| 6769 | (synopsis "Zope data schemas") |
| 6770 | (description "Zope.scheme provides extensions to zope.interface for |
| 6771 | defining data schemas.") |
| 6772 | (license license:zpl2.1))) |
| 6773 | |
| 6774 | (define-public python2-zope-schema |
| 6775 | (package-with-python2 python-zope-schema)) |
| 6776 | |
| 6777 | (define-public python-zope-configuration |
| 6778 | (package |
| 6779 | (name "python-zope-configuration") |
| 6780 | (version "4.0.3") |
| 6781 | (source (origin |
| 6782 | (method url-fetch) |
| 6783 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6784 | "/zope.configuration/zope.configuration-" |
| 6785 | version ".tar.gz")) |
| 6786 | (sha256 |
| 6787 | (base32 |
| 6788 | "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n")))) |
| 6789 | (build-system python-build-system) |
| 6790 | (propagated-inputs |
| 6791 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) |
| 6792 | ("python-zope-schema" ,python-zope-schema))) |
| 6793 | (home-page "http://pypi.python.org/pypi/zope.configuration") |
| 6794 | (synopsis "Zope Configuration Markup Language") |
| 6795 | (description "Zope.configuration implements ZCML, the Zope Configuration |
| 6796 | Markup Language.") |
| 6797 | (license license:zpl2.1))) |
| 6798 | |
| 6799 | (define-public python2-zope-configuration |
| 6800 | (package-with-python2 python-zope-configuration)) |
| 6801 | |
| 6802 | (define-public python-zope-proxy |
| 6803 | (package |
| 6804 | (name "python-zope-proxy") |
| 6805 | (version "4.1.6") |
| 6806 | (source |
| 6807 | (origin |
| 6808 | (method url-fetch) |
| 6809 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6810 | "/zope.proxy/zope.proxy-" version ".tar.gz")) |
| 6811 | (sha256 |
| 6812 | (base32 |
| 6813 | "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4")))) |
| 6814 | (build-system python-build-system) |
| 6815 | (propagated-inputs |
| 6816 | `(("python-zope-interface" ,python-zope-interface))) |
| 6817 | (home-page "http://pypi.python.org/pypi/zope.proxy") |
| 6818 | (synopsis "Generic, transparent proxies") |
| 6819 | (description "Zope.proxy provides generic, transparent proxies for Python. |
| 6820 | Proxies are special objects which serve as mostly-transparent wrappers around |
| 6821 | another object, intervening in the apparent behavior of the wrapped object |
| 6822 | only when necessary to apply the policy (e.g., access checking, location |
| 6823 | brokering, etc.) for which the proxy is responsible.") |
| 6824 | (license license:zpl2.1))) |
| 6825 | |
| 6826 | (define-public python2-zope-proxy |
| 6827 | (package-with-python2 python-zope-proxy)) |
| 6828 | |
| 6829 | (define-public python-zope-location |
| 6830 | (package |
| 6831 | (name "python-zope-location") |
| 6832 | (version "4.0.3") |
| 6833 | (source |
| 6834 | (origin |
| 6835 | (method url-fetch) |
| 6836 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6837 | "/zope.location/zope.location-" version ".tar.gz")) |
| 6838 | (sha256 |
| 6839 | (base32 |
| 6840 | "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74")))) |
| 6841 | (build-system python-build-system) |
| 6842 | (native-inputs |
| 6843 | `(("python-zope-proxy" ,python-zope-proxy) |
| 6844 | ("python-zope-schema" ,python-zope-schema))) |
| 6845 | (home-page "http://pypi.python.org/pypi/zope.location/") |
| 6846 | (synopsis "Zope location library") |
| 6847 | (description "Zope.location implements the concept of \"locations\" in |
| 6848 | Zope3, which are are special objects that have a structural location.") |
| 6849 | (license license:zpl2.1))) |
| 6850 | |
| 6851 | (define-public python2-zope-location |
| 6852 | (package-with-python2 python-zope-location)) |
| 6853 | |
| 6854 | (define-public python-zope-security |
| 6855 | (package |
| 6856 | (name "python-zope-security") |
| 6857 | (version "4.0.3") |
| 6858 | (source |
| 6859 | (origin |
| 6860 | (method url-fetch) |
| 6861 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6862 | "/zope.security/zope.security-" version ".tar.gz")) |
| 6863 | (sha256 |
| 6864 | (base32 |
| 6865 | "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy")))) |
| 6866 | (build-system python-build-system) |
| 6867 | (propagated-inputs |
| 6868 | `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) |
| 6869 | ("python-zope-component" ,python-zope-component) |
| 6870 | ("python-zope-location" ,python-zope-location) |
| 6871 | ("python-zope-proxy" ,python-zope-proxy) |
| 6872 | ("python-zope-schema" ,python-zope-schema) |
| 6873 | ("python-zope-testrunner" ,python-zope-testrunner) |
| 6874 | ("python-zope-testing" ,python-zope-testing))) |
| 6875 | (home-page "http://pypi.python.org/pypi/zope.security") |
| 6876 | (synopsis "Zope security framework") |
| 6877 | (description "Zope.security provides a generic mechanism to implement |
| 6878 | security policies on Python objects.") |
| 6879 | (license license:zpl2.1))) |
| 6880 | |
| 6881 | (define-public python2-zope-security |
| 6882 | (let ((zope-security (package-with-python2 python-zope-security))) |
| 6883 | (package (inherit zope-security) |
| 6884 | (propagated-inputs |
| 6885 | `(("python2-zope-testrunner" ,python2-zope-testrunner) |
| 6886 | ,@(alist-delete |
| 6887 | "python-zope-testrunner" |
| 6888 | (package-propagated-inputs zope-security))))))) |
| 6889 | |
| 6890 | (define-public python-zope-component |
| 6891 | (package |
| 6892 | (name "python-zope-component") |
| 6893 | (version "4.2.2") |
| 6894 | (source |
| 6895 | (origin |
| 6896 | (method url-fetch) |
| 6897 | (uri (string-append "https://pypi.python.org/packages/source/z" |
| 6898 | "/zope.component/zope.component-" version ".tar.gz")) |
| 6899 | (sha256 |
| 6900 | (base32 |
| 6901 | "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18")))) |
| 6902 | (build-system python-build-system) |
| 6903 | (arguments |
| 6904 | ;; Skip tests due to circular dependency with python-zope-security. |
| 6905 | '(#:tests? #f)) |
| 6906 | (native-inputs |
| 6907 | `(("python-zope-testing" ,python-zope-testing))) |
| 6908 | (propagated-inputs |
| 6909 | `(("python-zope-event" ,python-zope-event) |
| 6910 | ("python-zope-interface" ,python-zope-interface) |
| 6911 | ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) |
| 6912 | ("python-zope-configuration" ,python-zope-configuration))) |
| 6913 | (home-page "https://github.com/zopefoundation/zope.component") |
| 6914 | (synopsis "Zope Component Architecture") |
| 6915 | (description "Zope.component represents the core of the Zope Component |
| 6916 | Architecture. Together with the zope.interface package, it provides |
| 6917 | facilities for defining, registering and looking up components.") |
| 6918 | (license license:zpl2.1))) |
| 6919 | |
| 6920 | (define-public python2-zope-component |
| 6921 | (package-with-python2 python-zope-component)) |
| 6922 | |
| 6923 | (define-public python-pythondialog |
| 6924 | (package |
| 6925 | (name "python-pythondialog") |
| 6926 | (version "3.4.0") |
| 6927 | (source |
| 6928 | (origin |
| 6929 | (method url-fetch) |
| 6930 | (uri (pypi-uri "pythondialog" version)) |
| 6931 | (sha256 |
| 6932 | (base32 |
| 6933 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
| 6934 | (build-system python-build-system) |
| 6935 | (arguments |
| 6936 | `(#:phases |
| 6937 | (modify-phases %standard-phases |
| 6938 | (add-after 'unpack 'patch-path |
| 6939 | (lambda* (#:key inputs #:allow-other-keys) |
| 6940 | (let* ((dialog (assoc-ref inputs "dialog"))) |
| 6941 | ;; Since this library really wants to grovel the search path, we |
| 6942 | ;; must hardcode dialog's store path into it. |
| 6943 | (substitute* "dialog.py" |
| 6944 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") |
| 6945 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) |
| 6946 | #t)))) |
| 6947 | #:tests? #f)) ; no test suite |
| 6948 | (propagated-inputs |
| 6949 | `(("dialog" ,dialog))) |
| 6950 | (home-page "http://pythondialog.sourceforge.net/") |
| 6951 | (synopsis "Python interface to the UNIX dialog utility") |
| 6952 | (description "A Python wrapper for the dialog utility. Its purpose is to |
| 6953 | provide an easy to use, pythonic and comprehensive Python interface to dialog. |
| 6954 | This allows one to make simple text-mode user interfaces on Unix-like systems") |
| 6955 | (license license:lgpl2.1) |
| 6956 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
| 6957 | |
| 6958 | (define-public python2-pythondialog |
| 6959 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) |
| 6960 | (package |
| 6961 | (inherit base) |
| 6962 | (version (package-version python-pythondialog)) |
| 6963 | (source (origin |
| 6964 | (method url-fetch) |
| 6965 | (uri (pypi-uri "python2-pythondialog" version)) |
| 6966 | (sha256 |
| 6967 | (base32 |
| 6968 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) |
| 6969 | |
| 6970 | (define-public python-pyrfc3339 |
| 6971 | (package |
| 6972 | (name "python-pyrfc3339") |
| 6973 | (version "1.0") |
| 6974 | (source |
| 6975 | (origin |
| 6976 | (method url-fetch) |
| 6977 | (uri (pypi-uri "pyRFC3339" version)) |
| 6978 | (sha256 |
| 6979 | (base32 |
| 6980 | "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd")))) |
| 6981 | (build-system python-build-system) |
| 6982 | (propagated-inputs |
| 6983 | `(("python-pytz" ,python-pytz))) |
| 6984 | (native-inputs |
| 6985 | `(("python-nose" ,python-nose) |
| 6986 | ("python-setuptools" ,python-setuptools))) |
| 6987 | (home-page "https://github.com/kurtraschke/pyRFC3339") |
| 6988 | (synopsis "Python timestamp library") |
| 6989 | (description "Python library for generating and parsing RFC 3339-compliant |
| 6990 | timestamps.") |
| 6991 | (license license:expat))) |
| 6992 | |
| 6993 | (define-public python2-pyrfc3339 |
| 6994 | (package-with-python2 python-pyrfc3339)) |
| 6995 | |
| 6996 | (define-public python-werkzeug |
| 6997 | (package |
| 6998 | (name "python-werkzeug") |
| 6999 | (version "0.11.5") |
| 7000 | (source |
| 7001 | (origin |
| 7002 | (method url-fetch) |
| 7003 | (uri (pypi-uri "Werkzeug" version)) |
| 7004 | (sha256 |
| 7005 | (base32 |
| 7006 | "0r41xqp4cypzcgsf6zbspbqd272wnzf20igb4w4b5wzfhgqh9nxg")))) |
| 7007 | (build-system python-build-system) |
| 7008 | (native-inputs |
| 7009 | `(("python-pytest" ,python-pytest))) |
| 7010 | (home-page "http://werkzeug.pocoo.org/") |
| 7011 | (synopsis "Utilities for WSGI applications") |
| 7012 | (description "One of the most advanced WSGI utility modules. It includes a |
| 7013 | powerful debugger, full-featured request and response objects, HTTP utilities to |
| 7014 | handle entity tags, cache control headers, HTTP dates, cookie handling, file |
| 7015 | uploads, a powerful URL routing system and a bunch of community-contributed |
| 7016 | addon modules.") |
| 7017 | (license license:x11))) |
| 7018 | |
| 7019 | (define-public python2-werkzeug |
| 7020 | (package-with-python2 python-werkzeug)) |
| 7021 | |
| 7022 | (define-public python-configobj |
| 7023 | (package |
| 7024 | (name "python-configobj") |
| 7025 | (version "5.0.6") |
| 7026 | (source (origin |
| 7027 | (method url-fetch) |
| 7028 | (uri (string-append |
| 7029 | "https://pypi.python.org/packages/source/c/configobj/" |
| 7030 | "configobj-" version ".tar.gz")) |
| 7031 | (sha256 |
| 7032 | (base32 |
| 7033 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) |
| 7034 | ;; Patch setup.py so it looks for python-setuptools, which is |
| 7035 | ;; required to parse the keyword 'install_requires' in setup.py. |
| 7036 | (patches (search-patches "python-configobj-setuptools.patch")))) |
| 7037 | (build-system python-build-system) |
| 7038 | (native-inputs |
| 7039 | `(("python-setuptools" ,python-setuptools) |
| 7040 | ("python-six" ,python-six))) |
| 7041 | (synopsis "Config file reading, writing and validation") |
| 7042 | (description "ConfigObj is a simple but powerful config file reader and |
| 7043 | writer: an ini file round tripper. Its main feature is that it is very easy to |
| 7044 | use, with a straightforward programmer’s interface and a simple syntax for |
| 7045 | config files.") |
| 7046 | (home-page "https://github.com/DiffSK/configobj") |
| 7047 | (license license:bsd-3))) |
| 7048 | |
| 7049 | (define-public python2-configobj |
| 7050 | (package-with-python2 python-configobj)) |
| 7051 | |
| 7052 | (define-public python-configargparse |
| 7053 | (package |
| 7054 | (name "python-configargparse") |
| 7055 | (version "0.10.0") |
| 7056 | (source (origin |
| 7057 | (method url-fetch) |
| 7058 | (uri (string-append |
| 7059 | "https://pypi.python.org/packages/source/C/ConfigArgParse/" |
| 7060 | "ConfigArgParse-" version ".tar.gz")) |
| 7061 | (sha256 |
| 7062 | (base32 |
| 7063 | "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v")))) |
| 7064 | (build-system python-build-system) |
| 7065 | (arguments |
| 7066 | ;; FIXME: Bug in test suite filed upstream: |
| 7067 | ;; https://github.com/bw2/ConfigArgParse/issues/32 |
| 7068 | '(#:tests? #f)) |
| 7069 | (synopsis "Replacement for argparse") |
| 7070 | (description "A drop-in replacement for argparse that allows options to also |
| 7071 | be set via config files and/or environment variables.") |
| 7072 | (home-page "https://github.com/bw2/ConfigArgParse") |
| 7073 | (license license:expat))) |
| 7074 | |
| 7075 | (define-public python2-configargparse |
| 7076 | (package-with-python2 python-configargparse)) |
| 7077 | |
| 7078 | (define-public python-ndg-httpsclient |
| 7079 | (package |
| 7080 | (name "python-ndg-httpsclient") |
| 7081 | (version "0.4.0") |
| 7082 | (source (origin |
| 7083 | (method url-fetch) |
| 7084 | (uri (string-append |
| 7085 | "https://pypi.python.org/packages/source/n/ndg-httpsclient/" |
| 7086 | "ndg_httpsclient-" version ".tar.gz")) |
| 7087 | (sha256 |
| 7088 | (base32 |
| 7089 | "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8")))) |
| 7090 | (build-system python-build-system) |
| 7091 | (propagated-inputs |
| 7092 | `(("python-pyopenssl" ,python-pyopenssl))) |
| 7093 | (synopsis "HTTPS support for Python's httplib and urllib2") |
| 7094 | (description "This is a HTTPS client implementation for httplib and urllib2 |
| 7095 | based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation |
| 7096 | over the default provided with Python and importantly enables full verification |
| 7097 | of the SSL peer.") |
| 7098 | (home-page "https://github.com/cedadev/ndg_httpsclient/") |
| 7099 | (license license:bsd-3))) |
| 7100 | |
| 7101 | ;; python2-openssl requires special care, so package-with-python2 is |
| 7102 | ;; insufficient. |
| 7103 | (define-public python2-ndg-httpsclient |
| 7104 | (package (inherit python-ndg-httpsclient) |
| 7105 | (name "python2-ndg-httpsclient") |
| 7106 | (arguments `(#:python ,python-2)) |
| 7107 | (propagated-inputs |
| 7108 | `(("python2-pyopenssl" ,python2-pyopenssl))))) |
| 7109 | |
| 7110 | (define-public python-contextlib2 |
| 7111 | (package |
| 7112 | (name "python-contextlib2") |
| 7113 | (version "0.4.0") |
| 7114 | (source |
| 7115 | (origin |
| 7116 | (method url-fetch) |
| 7117 | (uri (pypi-uri "contextlib2" version)) |
| 7118 | (sha256 |
| 7119 | (base32 |
| 7120 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) |
| 7121 | (build-system python-build-system) |
| 7122 | (arguments |
| 7123 | `(#:phases |
| 7124 | (modify-phases %standard-phases |
| 7125 | (replace 'check |
| 7126 | (lambda _ (zero? |
| 7127 | (system* |
| 7128 | "python" "test_contextlib2.py" "-v"))))))) |
| 7129 | (home-page "http://contextlib2.readthedocs.org/") |
| 7130 | (synopsis "Tools for decorators and context managers") |
| 7131 | (description "This module is primarily a backport of the Python |
| 7132 | 3.2 contextlib to earlier Python versions. Like contextlib, it |
| 7133 | provides utilities for common tasks involving decorators and context |
| 7134 | managers. It also contains additional features that are not part of |
| 7135 | the standard library.") |
| 7136 | (license license:psfl))) |
| 7137 | |
| 7138 | (define-public python2-contextlib2 |
| 7139 | (package-with-python2 python-contextlib2)) |
| 7140 | |
| 7141 | (define-public python-texttable |
| 7142 | (package |
| 7143 | (name "python-texttable") |
| 7144 | (version "0.8.4") |
| 7145 | (source |
| 7146 | (origin |
| 7147 | (method url-fetch) |
| 7148 | (uri (pypi-uri "texttable" version)) |
| 7149 | (sha256 |
| 7150 | (base32 |
| 7151 | "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) |
| 7152 | (build-system python-build-system) |
| 7153 | (arguments '(#:tests? #f)) ; no tests |
| 7154 | (home-page "https://github.com/foutaise/texttable/") |
| 7155 | (synopsis "Python module for creating simple ASCII tables") |
| 7156 | (description "Texttable is a Python module for creating simple ASCII |
| 7157 | tables.") |
| 7158 | (license license:lgpl2.1+))) |
| 7159 | |
| 7160 | (define-public python2-texttable |
| 7161 | (package-with-python2 python-texttable)) |
| 7162 | |
| 7163 | (define-public python-websocket-client |
| 7164 | (package |
| 7165 | (name "python-websocket-client") |
| 7166 | (version "0.37.0") |
| 7167 | (source |
| 7168 | (origin |
| 7169 | (method url-fetch) |
| 7170 | (uri (pypi-uri "websocket_client" version)) |
| 7171 | (sha256 |
| 7172 | (base32 |
| 7173 | "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7")))) |
| 7174 | (build-system python-build-system) |
| 7175 | (native-inputs |
| 7176 | `(("python-six" ,python-six))) ; for tests |
| 7177 | (inputs |
| 7178 | `(("python-setuptools" ,python-setuptools))) |
| 7179 | (home-page "https://github.com/liris/websocket-client") |
| 7180 | (synopsis "WebSocket client for Python") |
| 7181 | (description "The Websocket-client module provides the low level APIs for |
| 7182 | WebSocket usage in Python programs.") |
| 7183 | (license license:lgpl2.1+))) |
| 7184 | |
| 7185 | (define-public python2-websocket-client |
| 7186 | (package-with-python2 python-websocket-client)) |
| 7187 | |
| 7188 | (define-public python-atomicwrites |
| 7189 | (package |
| 7190 | (name "python-atomicwrites") |
| 7191 | (version "1.1.0") |
| 7192 | (source (origin |
| 7193 | (method url-fetch) |
| 7194 | (uri (pypi-uri "atomicwrites" version)) |
| 7195 | (sha256 |
| 7196 | (base32 |
| 7197 | "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0")))) |
| 7198 | (build-system python-build-system) |
| 7199 | (synopsis "Atomic file writes in Python") |
| 7200 | (description "Library for atomic file writes using platform dependent tools |
| 7201 | for atomic file system operations.") |
| 7202 | (home-page "https://github.com/untitaker/python-atomicwrites") |
| 7203 | (license license:expat) |
| 7204 | (properties `((python2-variant . ,(delay python2-atomicwrites)))))) |
| 7205 | |
| 7206 | (define-public python2-atomicwrites |
| 7207 | (package (inherit (package-with-python2 |
| 7208 | (strip-python2-variant python-atomicwrites))) |
| 7209 | (native-inputs |
| 7210 | `(("python2-setuptools" ,python2-setuptools))))) |
| 7211 | |
| 7212 | (define-public python-requests-toolbelt |
| 7213 | (package |
| 7214 | (name "python-requests-toolbelt") |
| 7215 | (version "0.6.2") |
| 7216 | (source (origin |
| 7217 | (method url-fetch) |
| 7218 | (uri (string-append |
| 7219 | "https://pypi.python.org/packages/" |
| 7220 | "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" |
| 7221 | "requests-toolbelt-" version ".tar.gz")) |
| 7222 | (sha256 |
| 7223 | (base32 |
| 7224 | "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) |
| 7225 | (build-system python-build-system) |
| 7226 | (propagated-inputs |
| 7227 | `(("python-requests" ,python-requests))) |
| 7228 | (synopsis "Extensions to python-requests") |
| 7229 | (description "This is a toolbelt of useful classes and functions to be used |
| 7230 | with python-requests.") |
| 7231 | (home-page "https://github.com/sigmavirus24/requests-toolbelt") |
| 7232 | (license license:asl2.0))) |
| 7233 | |
| 7234 | (define-public python-click-threading |
| 7235 | (package |
| 7236 | (name "python-click-threading") |
| 7237 | (version "0.2.0") |
| 7238 | (source (origin |
| 7239 | (method url-fetch) |
| 7240 | (uri (string-append |
| 7241 | "https://pypi.python.org/packages/" |
| 7242 | "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/" |
| 7243 | "click-threading-" version ".tar.gz")) |
| 7244 | (sha256 |
| 7245 | (base32 |
| 7246 | "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j")))) |
| 7247 | (build-system python-build-system) |
| 7248 | (propagated-inputs |
| 7249 | `(("python-click" ,python-click))) |
| 7250 | (synopsis "Utilities for multithreading in Click") |
| 7251 | (description "This package provides utilities for multithreading in Click |
| 7252 | applications.") |
| 7253 | (home-page "https://github.com/click-contrib/click-threading") |
| 7254 | (license license:expat))) |
| 7255 | |
| 7256 | (define-public python-click-log |
| 7257 | (package |
| 7258 | (name "python-click-log") |
| 7259 | (version "0.1.3") |
| 7260 | (source (origin |
| 7261 | (method url-fetch) |
| 7262 | (uri (pypi-uri "click-log" version)) |
| 7263 | (sha256 |
| 7264 | (base32 |
| 7265 | "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx")))) |
| 7266 | (build-system python-build-system) |
| 7267 | (propagated-inputs |
| 7268 | `(("python-click" ,python-click))) |
| 7269 | (synopsis "Logging for click applications") |
| 7270 | (description "This package provides a Python library for logging Click |
| 7271 | applications.") |
| 7272 | (home-page "https://github.com/click-contrib/click-log") |
| 7273 | (license license:expat))) |
| 7274 | |
| 7275 | (define-public python-apipkg |
| 7276 | (package |
| 7277 | (name "python-apipkg") |
| 7278 | (version "1.4") |
| 7279 | (source (origin |
| 7280 | (method url-fetch) |
| 7281 | (uri (pypi-uri "apipkg" version)) |
| 7282 | (sha256 |
| 7283 | (base32 |
| 7284 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) |
| 7285 | (build-system python-build-system) |
| 7286 | (inputs |
| 7287 | `(("python-pytest" ,python-pytest))) |
| 7288 | (synopsis "Namespace control and lazy-import mechanism") |
| 7289 | (description "With apipkg you can control the exported namespace of a Python |
| 7290 | package and greatly reduce the number of imports for your users. It is a small |
| 7291 | pure Python module that works on virtually all Python versions.") |
| 7292 | (home-page "https://bitbucket.org/hpk42/apipkg") |
| 7293 | (license license:expat) |
| 7294 | (properties `((python2-variant . ,(delay python2-apipkg)))))) |
| 7295 | |
| 7296 | (define-public python2-apipkg |
| 7297 | (package |
| 7298 | (inherit (package-with-python2 |
| 7299 | (strip-python2-variant python-apipkg))) |
| 7300 | (native-inputs |
| 7301 | `(("python2-setuptools" ,python2-setuptools))))) |
| 7302 | |
| 7303 | (define-public python-execnet |
| 7304 | (package |
| 7305 | (name "python-execnet") |
| 7306 | (version "1.4.1") |
| 7307 | (source (origin |
| 7308 | (method url-fetch) |
| 7309 | (uri (pypi-uri "execnet" version)) |
| 7310 | (sha256 |
| 7311 | (base32 |
| 7312 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) |
| 7313 | (build-system python-build-system) |
| 7314 | (arguments |
| 7315 | `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed |
| 7316 | ;; The two test failures are caused by the lack of an `ssh` executable. |
| 7317 | ;; The test suite can be run with pytest after the 'install' phase. |
| 7318 | #:tests? #f)) |
| 7319 | (native-inputs |
| 7320 | `(("python-pytest" ,python-pytest) |
| 7321 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 7322 | (inputs |
| 7323 | `(("python-apipkg" ,python-apipkg))) |
| 7324 | (synopsis "Rapid multi-Python deployment") |
| 7325 | (description "Execnet provides a share-nothing model with |
| 7326 | channel-send/receive communication for distributing execution across many |
| 7327 | Python interpreters across version, platform and network barriers. It has a |
| 7328 | minimal and fast API targetting the following uses: |
| 7329 | @enumerate |
| 7330 | @item distribute tasks to (many) local or remote CPUs |
| 7331 | @item write and deploy hybrid multi-process applications |
| 7332 | @item write scripts to administer multiple environments |
| 7333 | @end enumerate") |
| 7334 | (home-page "http://codespeak.net/execnet/") |
| 7335 | (license license:expat) |
| 7336 | (properties `((python2-variant . ,(delay python2-execnet)))))) |
| 7337 | |
| 7338 | (define-public python2-execnet |
| 7339 | (let ((execnet (package-with-python2 |
| 7340 | (strip-python2-variant python-execnet)))) |
| 7341 | (package |
| 7342 | (inherit execnet) |
| 7343 | (native-inputs |
| 7344 | `(("python2-setuptools" ,python2-setuptools) |
| 7345 | ,@(package-native-inputs execnet)))))) |
| 7346 | |
| 7347 | ;;; The software provided by this package was integrated into pytest 2.8. |
| 7348 | (define-public python-pytest-cache |
| 7349 | (package |
| 7350 | (name "python-pytest-cache") |
| 7351 | (version "1.0") |
| 7352 | (source (origin |
| 7353 | (method url-fetch) |
| 7354 | (uri (pypi-uri "pytest-cache" version)) |
| 7355 | (sha256 |
| 7356 | (base32 |
| 7357 | "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) |
| 7358 | (build-system python-build-system) |
| 7359 | (inputs |
| 7360 | `(("python-apipkg" ,python-apipkg) |
| 7361 | ("python-execnet" ,python-execnet) |
| 7362 | ("python-py" ,python-py) |
| 7363 | ("python-pytest" ,python-pytest))) |
| 7364 | (synopsis "Py.test plugin with mechanisms for caching across test runs") |
| 7365 | (description "The pytest-cache plugin provides tools to rerun failures from |
| 7366 | the last py.test invocation.") |
| 7367 | (home-page "https://bitbucket.org/hpk42/pytest-cache/") |
| 7368 | (license license:expat) |
| 7369 | (properties `((python2-variant . ,(delay python2-pytest-cache)))))) |
| 7370 | |
| 7371 | (define-public python2-pytest-cache |
| 7372 | (let ((pytest-cache (package-with-python2 |
| 7373 | (strip-python2-variant python-pytest-cache)))) |
| 7374 | (package |
| 7375 | (inherit pytest-cache) |
| 7376 | (native-inputs |
| 7377 | `(("python2-setuptools" ,python2-setuptools) |
| 7378 | ,@(package-native-inputs pytest-cache)))))) |
| 7379 | |
| 7380 | (define-public python-pytest-localserver |
| 7381 | (package |
| 7382 | (name "python-pytest-localserver") |
| 7383 | (version "0.3.5") |
| 7384 | (source (origin |
| 7385 | (method url-fetch) |
| 7386 | (uri (pypi-uri "pytest-localserver" version)) |
| 7387 | (sha256 |
| 7388 | (base32 |
| 7389 | "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p")))) |
| 7390 | (build-system python-build-system) |
| 7391 | (arguments |
| 7392 | `(#:phases (modify-phases %standard-phases |
| 7393 | (replace 'check |
| 7394 | (lambda _ |
| 7395 | (zero? (system* "py.test" "--genscript=runtests.py")) |
| 7396 | (zero? (system* "py.test"))))))) |
| 7397 | (native-inputs |
| 7398 | `(("python-pytest" ,python-pytest) |
| 7399 | ("python-requests" ,python-requests) |
| 7400 | ("python-six" ,python-six))) |
| 7401 | (inputs |
| 7402 | `(("python-werkzeug" ,python-werkzeug))) |
| 7403 | (synopsis "Py.test plugin to test server connections locally") |
| 7404 | (description "Pytest-localserver is a plugin for the pytest testing |
| 7405 | framework which enables you to test server connections locally.") |
| 7406 | (home-page "https://pypi.python.org/pypi/pytest-localserver") |
| 7407 | (license license:expat))) |
| 7408 | |
| 7409 | (define-public python-wsgi-intercept |
| 7410 | (package |
| 7411 | (name "python-wsgi-intercept") |
| 7412 | (version "1.2.2") |
| 7413 | (source (origin |
| 7414 | (method url-fetch) |
| 7415 | (uri (string-append |
| 7416 | "https://pypi.python.org/packages/" |
| 7417 | "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/" |
| 7418 | "wsgi_intercept-" version ".tar.gz")) |
| 7419 | (sha256 |
| 7420 | (base32 |
| 7421 | "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) |
| 7422 | (build-system python-build-system) |
| 7423 | (native-inputs |
| 7424 | `(("python-pytest" ,python-pytest) |
| 7425 | ("python-six" ,python-six))) |
| 7426 | (propagated-inputs |
| 7427 | `(("python-httplib2" ,python-httplib2) |
| 7428 | ("python-requests" ,python-requests))) |
| 7429 | (synopsis "Puts a WSGI application in place of a real URI for testing") |
| 7430 | (description "Wsgi_intercept installs a WSGI application in place of a real |
| 7431 | URI for testing. Testing a WSGI application normally involves starting a |
| 7432 | server at a local host and port, then pointing your test code to that address. |
| 7433 | Instead, this library lets you intercept calls to any specific host/port |
| 7434 | combination and redirect them into a WSGI application importable by your test |
| 7435 | program. Thus, you can avoid spawning multiple processes or threads to test |
| 7436 | your Web app.") |
| 7437 | (home-page "https://github.com/cdent/wsgi-intercept") |
| 7438 | (license license:expat))) |
| 7439 | |
| 7440 | (define-public python-pytest-xprocess |
| 7441 | (package |
| 7442 | (name "python-pytest-xprocess") |
| 7443 | (version "0.9.1") |
| 7444 | (source (origin |
| 7445 | (method url-fetch) |
| 7446 | (uri (pypi-uri "pytest-xprocess" version)) |
| 7447 | (sha256 |
| 7448 | (base32 |
| 7449 | "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) |
| 7450 | (build-system python-build-system) |
| 7451 | (propagated-inputs |
| 7452 | `(("python-pytest" ,python-pytest) |
| 7453 | ("python-pytest-cache" ,python-pytest-cache) |
| 7454 | ("python-psutil" ,python-psutil))) |
| 7455 | (synopsis "Pytest plugin to manage external processes across test runs") |
| 7456 | (description "Pytest-xprocess is an experimental py.test plugin for managing |
| 7457 | processes across test runs.") |
| 7458 | (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") |
| 7459 | (license license:expat))) |
| 7460 | |
| 7461 | (define-public python-icalendar |
| 7462 | (package |
| 7463 | (name "python-icalendar") |
| 7464 | (version "3.10") |
| 7465 | (source (origin |
| 7466 | (method url-fetch) |
| 7467 | (uri (pypi-uri "icalendar" version)) |
| 7468 | (sha256 |
| 7469 | (base32 |
| 7470 | "01amnk3621s7fagfla86npd25knbqirchg7h1jpqxqp103d02bs7")))) |
| 7471 | (build-system python-build-system) |
| 7472 | (propagated-inputs |
| 7473 | `(("python-dateutil-2" ,python-dateutil-2) |
| 7474 | ("python-pytz" ,python-pytz))) |
| 7475 | (synopsis "Python library for parsing iCalendar files") |
| 7476 | (description "The icalendar package is a parser/generator of iCalendar |
| 7477 | files for use with Python.") |
| 7478 | (home-page "https://github.com/collective/icalendar") |
| 7479 | (license license:bsd-2))) |
| 7480 | |
| 7481 | (define-public python-sphinxcontrib-newsfeed |
| 7482 | (package |
| 7483 | (name "python-sphinxcontrib-newsfeed") |
| 7484 | (version "0.1.4") |
| 7485 | (source (origin |
| 7486 | (method url-fetch) |
| 7487 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) |
| 7488 | (sha256 |
| 7489 | (base32 |
| 7490 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) |
| 7491 | (build-system python-build-system) |
| 7492 | (propagated-inputs |
| 7493 | `(("python-docutils" ,python-docutils) |
| 7494 | ("python-sphinx" ,python-sphinx))) |
| 7495 | (synopsis "News Feed extension for Sphinx") |
| 7496 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple |
| 7497 | Blog, News or Announcements section to a Sphinx website.") |
| 7498 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") |
| 7499 | (license license:bsd-2))) |
| 7500 | |
| 7501 | (define-public python-args |
| 7502 | (package |
| 7503 | (name "python-args") |
| 7504 | (version "0.1.0") |
| 7505 | (source (origin |
| 7506 | (method url-fetch) |
| 7507 | (uri (pypi-uri "args" version)) |
| 7508 | (sha256 |
| 7509 | (base32 |
| 7510 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) |
| 7511 | (build-system python-build-system) |
| 7512 | (inputs |
| 7513 | `(("python-setuptools" ,python-setuptools))) |
| 7514 | (home-page "https://github.com/kennethreitz/args") |
| 7515 | (synopsis "Command-line argument parser") |
| 7516 | (description |
| 7517 | "This library provides a Python module to parse command-line arguments.") |
| 7518 | (license license:bsd-3))) |
| 7519 | |
| 7520 | (define-public python2-args |
| 7521 | (package-with-python2 python-args)) |
| 7522 | |
| 7523 | (define-public python-clint |
| 7524 | (package |
| 7525 | (name "python-clint") |
| 7526 | (version "0.5.1") |
| 7527 | (source (origin |
| 7528 | (method url-fetch) |
| 7529 | (uri (pypi-uri "clint" version)) |
| 7530 | (sha256 |
| 7531 | (base32 |
| 7532 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) |
| 7533 | (build-system python-build-system) |
| 7534 | (inputs |
| 7535 | `(("python-args" ,python-args) |
| 7536 | ("python-setuptools" ,python-setuptools))) |
| 7537 | (home-page "https://github.com/kennethreitz/clint") |
| 7538 | (synopsis "Command-line interface tools") |
| 7539 | (description |
| 7540 | "Clint is a Python module filled with a set of tools for developing |
| 7541 | command-line applications, including tools for colored and indented |
| 7542 | output, progress bar display, and pipes.") |
| 7543 | (license license:isc))) |
| 7544 | |
| 7545 | (define-public python2-clint |
| 7546 | (package-with-python2 python-clint)) |
| 7547 | |
| 7548 | (define-public python-astor |
| 7549 | (package |
| 7550 | (name "python-astor") |
| 7551 | (version "0.5") |
| 7552 | (source (origin |
| 7553 | (method url-fetch) |
| 7554 | (uri (pypi-uri "astor" version)) |
| 7555 | (sha256 |
| 7556 | (base32 |
| 7557 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) |
| 7558 | (build-system python-build-system) |
| 7559 | (inputs |
| 7560 | `(("python-setuptools" ,python-setuptools))) |
| 7561 | (home-page "https://github.com/berkerpeksag/astor") |
| 7562 | (synopsis "Read and write Python ASTs") |
| 7563 | (description |
| 7564 | "Astor is designed to allow easy manipulation of Python source via the |
| 7565 | Abstract Syntax Tree.") |
| 7566 | (license license:bsd-3))) |
| 7567 | |
| 7568 | (define-public python2-astor |
| 7569 | (package-with-python2 python-astor)) |
| 7570 | |
| 7571 | (define-public python-rply |
| 7572 | (package |
| 7573 | (name "python-rply") |
| 7574 | (version "0.7.4") |
| 7575 | (source (origin |
| 7576 | (method url-fetch) |
| 7577 | (uri (pypi-uri "rply" version)) |
| 7578 | (sha256 |
| 7579 | (base32 |
| 7580 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) |
| 7581 | (build-system python-build-system) |
| 7582 | (inputs |
| 7583 | `(("python-appdirs" ,python-appdirs) |
| 7584 | ("python-setuptools" ,python-setuptools))) |
| 7585 | (home-page "https://github.com/alex/rply") |
| 7586 | (synopsis "Parser generator for Python") |
| 7587 | (description |
| 7588 | "This package provides a pure Python based parser generator, that also |
| 7589 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, |
| 7590 | with a new public API, and RPython support.") |
| 7591 | (license license:bsd-3))) |
| 7592 | |
| 7593 | (define-public python2-rply |
| 7594 | (package-with-python2 python-rply)) |
| 7595 | |
| 7596 | (define-public python-hy |
| 7597 | (package |
| 7598 | (name "python-hy") |
| 7599 | (version "0.11.1") |
| 7600 | (source (origin |
| 7601 | (method url-fetch) |
| 7602 | (uri (pypi-uri "hy" version)) |
| 7603 | (sha256 |
| 7604 | (base32 |
| 7605 | "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) |
| 7606 | (build-system python-build-system) |
| 7607 | (inputs |
| 7608 | `(("python-astor" ,python-astor) |
| 7609 | ("python-clint" ,python-clint) |
| 7610 | ("python-rply" ,python-rply) |
| 7611 | ("python-setuptools" ,python-setuptools))) |
| 7612 | (home-page "http://hylang.org/") |
| 7613 | (synopsis "Lisp frontend to Python") |
| 7614 | (description |
| 7615 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms |
| 7616 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of |
| 7617 | Python at your fingertips, in Lisp form.") |
| 7618 | (license license:expat))) |
| 7619 | |
| 7620 | (define-public python2-hy |
| 7621 | (package-with-python2 python-hy)) |
| 7622 | |
| 7623 | (define-public python-rauth |
| 7624 | (package |
| 7625 | (name "python-rauth") |
| 7626 | (version "0.7.2") |
| 7627 | (source |
| 7628 | (origin |
| 7629 | (method url-fetch) |
| 7630 | (uri (pypi-uri "rauth" version)) |
| 7631 | (sha256 |
| 7632 | (base32 |
| 7633 | "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) |
| 7634 | (build-system python-build-system) |
| 7635 | (arguments |
| 7636 | `(#:test-target "check")) |
| 7637 | (inputs |
| 7638 | `(("python-requests" ,python-requests))) |
| 7639 | (home-page "https://github.com/litl/rauth") |
| 7640 | (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") |
| 7641 | (description |
| 7642 | "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also |
| 7643 | provides service wrappers for convenient connection initialization and |
| 7644 | authenticated session objects providing things like keep-alive.") |
| 7645 | (license license:expat) |
| 7646 | (properties `((python2-variant . ,(delay python2-rauth)))))) |
| 7647 | |
| 7648 | (define-public python2-rauth |
| 7649 | (let ((base (package-with-python2 (strip-python2-variant python-rauth)))) |
| 7650 | (package |
| 7651 | (inherit base) |
| 7652 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 7653 | ("python2-unittest2" ,python2-unittest2) |
| 7654 | ,@(package-native-inputs base)))))) |
| 7655 | |
| 7656 | (define-public python2-functools32 |
| 7657 | (package |
| 7658 | (name "python2-functools32") |
| 7659 | (version "3.2.3-2") |
| 7660 | (source |
| 7661 | (origin |
| 7662 | (method url-fetch) |
| 7663 | (uri (pypi-uri "functools32" version)) |
| 7664 | (sha256 |
| 7665 | (base32 |
| 7666 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) |
| 7667 | (build-system python-build-system) |
| 7668 | (arguments |
| 7669 | `(#:python ,python-2 |
| 7670 | #:tests? #f)) ; no test target |
| 7671 | (native-inputs |
| 7672 | `(("python2-setuptools" ,python2-setuptools))) |
| 7673 | (home-page "https://github.com/MiCHiLU/python-functools32") |
| 7674 | (synopsis |
| 7675 | "Backport of the functools module from Python 3.2.3") |
| 7676 | (description |
| 7677 | "This package is a backport of the @code{functools} module from Python |
| 7678 | 3.2.3 for use with older versions of Python and PyPy.") |
| 7679 | (license license:expat))) |
| 7680 | |
| 7681 | (define-public python2-futures |
| 7682 | (package |
| 7683 | (name "python2-futures") |
| 7684 | (version "3.0.3") |
| 7685 | (source |
| 7686 | (origin |
| 7687 | (method url-fetch) |
| 7688 | (uri (pypi-uri "futures" version)) |
| 7689 | (sha256 |
| 7690 | (base32 |
| 7691 | "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) |
| 7692 | (build-system python-build-system) |
| 7693 | (arguments `(#:python ,python-2)) |
| 7694 | (native-inputs |
| 7695 | `(("python2-setuptools" ,python2-setuptools))) |
| 7696 | (home-page "https://github.com/agronholm/pythonfutures") |
| 7697 | (synopsis |
| 7698 | "Backport of the concurrent.futures package from Python 3.2") |
| 7699 | (description |
| 7700 | "The concurrent.futures module provides a high-level interface for |
| 7701 | asynchronously executing callables. This package backports the |
| 7702 | concurrent.futures package from Python 3.2") |
| 7703 | (license license:bsd-3))) |
| 7704 | |
| 7705 | (define-public python-promise |
| 7706 | (package |
| 7707 | (name "python-promise") |
| 7708 | (version "0.4.2") |
| 7709 | (source |
| 7710 | (origin |
| 7711 | (method url-fetch) |
| 7712 | (uri (pypi-uri "promise" version)) |
| 7713 | (sha256 |
| 7714 | (base32 |
| 7715 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) |
| 7716 | (build-system python-build-system) |
| 7717 | ;; Tests wants python-futures, which is a python2 only program, and |
| 7718 | ;; can't be found by python-promise at test time. |
| 7719 | (arguments `(#:tests? #f)) |
| 7720 | (home-page "https://github.com/syrusakbary/promise") |
| 7721 | (synopsis "Promises/A+ implementation for Python") |
| 7722 | (description |
| 7723 | "Promises/A+ implementation for Python") |
| 7724 | (properties `((python2-variant . ,(delay python2-promise)))) |
| 7725 | (license license:expat))) |
| 7726 | |
| 7727 | (define-public python2-promise |
| 7728 | (let ((promise (package-with-python2 |
| 7729 | (strip-python2-variant python-promise)))) |
| 7730 | (package (inherit promise) |
| 7731 | (arguments (substitute-keyword-arguments (package-arguments promise) |
| 7732 | ((#:tests? _) #t))) |
| 7733 | (native-inputs |
| 7734 | `(("python2-futures" ,python2-futures) |
| 7735 | ("python2-pytest" ,python2-pytest) |
| 7736 | ("python2-setuptools" ,python2-setuptools) |
| 7737 | ,@(package-native-inputs promise)))))) |
| 7738 | |
| 7739 | (define-public python-urllib3 |
| 7740 | (package |
| 7741 | (name "python-urllib3") |
| 7742 | (version "1.13.1") |
| 7743 | (source |
| 7744 | (origin |
| 7745 | (method url-fetch) |
| 7746 | (uri (pypi-uri "urllib3" version)) |
| 7747 | (sha256 |
| 7748 | (base32 |
| 7749 | "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf")))) |
| 7750 | (build-system python-build-system) |
| 7751 | (arguments `(#:tests? #f)) |
| 7752 | (native-inputs |
| 7753 | `(("python-setuptools" ,python-setuptools) |
| 7754 | ;; some packages for tests |
| 7755 | ("python-nose" ,python-nose) |
| 7756 | ("python-mock" ,python-mock) |
| 7757 | ("python-tornado" ,python-tornado))) |
| 7758 | (propagated-inputs |
| 7759 | `(;; packages for https security |
| 7760 | ("python-certifi" ,python-certifi) |
| 7761 | ("python-ndg-httpsclient" ,python-ndg-httpsclient) |
| 7762 | ("python-pyasn1" ,python-pyasn1) |
| 7763 | ("python-pyopenssl" ,python-pyopenssl))) |
| 7764 | (home-page "http://urllib3.readthedocs.org/") |
| 7765 | (synopsis "HTTP library with thread-safe connection pooling") |
| 7766 | (description |
| 7767 | "Urllib3 supports features left out of urllib and urllib2 libraries. It |
| 7768 | can reuse the same socket connection for multiple requests, it can POST files, |
| 7769 | supports url redirection and retries, and also gzip and deflate decoding.") |
| 7770 | (license license:expat))) |
| 7771 | |
| 7772 | (define-public python2-urllib3 |
| 7773 | (package-with-python2 python-urllib3)) |
| 7774 | |
| 7775 | (define-public python-colorama |
| 7776 | (package |
| 7777 | (name "python-colorama") |
| 7778 | (version "0.3.3") |
| 7779 | (source |
| 7780 | (origin |
| 7781 | (method url-fetch) |
| 7782 | (uri (pypi-uri "colorama" version)) |
| 7783 | (sha256 |
| 7784 | (base32 |
| 7785 | "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb")))) |
| 7786 | (build-system python-build-system) |
| 7787 | (inputs |
| 7788 | `(("python-setuptools" ,python-setuptools))) |
| 7789 | (synopsis "colored terminal text rendering for Python") |
| 7790 | (description "Colorama is a Python library for rendering colored terminal |
| 7791 | text.") |
| 7792 | (home-page "https://pypi.python.org/pypi/colorama") |
| 7793 | (license license:bsd-3))) |
| 7794 | |
| 7795 | (define-public python2-colorama |
| 7796 | (package-with-python2 python-colorama)) |
| 7797 | |
| 7798 | (define-public python-rsa |
| 7799 | (package |
| 7800 | (name "python-rsa") |
| 7801 | (version "3.2") |
| 7802 | (source |
| 7803 | (origin |
| 7804 | (method url-fetch) |
| 7805 | (uri (pypi-uri "rsa" version)) |
| 7806 | (sha256 |
| 7807 | (base32 |
| 7808 | "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh")))) |
| 7809 | (build-system python-build-system) |
| 7810 | (inputs |
| 7811 | `(("python-pyasn1" ,python-pyasn1) |
| 7812 | ("python-setuptools" ,python-setuptools))) |
| 7813 | (synopsis "Pure-Python RSA implementation") |
| 7814 | (description "Python-RSA is a pure-Python RSA implementation. It supports |
| 7815 | encryption and decryption, signing and verifying signatures, and key |
| 7816 | generation according to PKCS#1 version 1.5. It can be used as a Python |
| 7817 | library as well as on the command line.") |
| 7818 | (home-page "http://stuvel.eu/rsa") |
| 7819 | (license license:asl2.0))) |
| 7820 | |
| 7821 | (define-public python2-rsa |
| 7822 | (package-with-python2 python-rsa)) |
| 7823 | |
| 7824 | (define-public python-pluggy |
| 7825 | (package |
| 7826 | (name "python-pluggy") |
| 7827 | (version "0.3.1") |
| 7828 | (source |
| 7829 | (origin |
| 7830 | (method url-fetch) |
| 7831 | (uri (pypi-uri "pluggy" version)) |
| 7832 | (sha256 |
| 7833 | (base32 |
| 7834 | "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m")))) |
| 7835 | (build-system python-build-system) |
| 7836 | (inputs |
| 7837 | `(("python-setuptools" ,python-setuptools))) |
| 7838 | (synopsis "Plugin and hook calling mechanism for Python") |
| 7839 | (description "Pluggy is an extraction of the plugin manager as used by |
| 7840 | Pytest but stripped of Pytest specific details.") |
| 7841 | (home-page "https://pypi.python.org/pypi/pluggy") |
| 7842 | (license license:expat))) |
| 7843 | |
| 7844 | (define-public python2-pluggy |
| 7845 | (package-with-python2 python-pluggy)) |
| 7846 | |
| 7847 | (define-public python-tox |
| 7848 | (package |
| 7849 | (name "python-tox") |
| 7850 | (version "2.3.1") |
| 7851 | (source |
| 7852 | (origin |
| 7853 | (method url-fetch) |
| 7854 | (uri (pypi-uri "tox" version)) |
| 7855 | (sha256 |
| 7856 | (base32 |
| 7857 | "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz")))) |
| 7858 | (build-system python-build-system) |
| 7859 | (arguments |
| 7860 | ;; FIXME: Tests require a newer version of pytest, but upgrading our |
| 7861 | ;; pytest breaks other packages. |
| 7862 | '(#:tests? #f)) |
| 7863 | (inputs |
| 7864 | `(("python-setuptools" ,python-setuptools) |
| 7865 | ("python-pluggy" ,python-pluggy) |
| 7866 | ("python-py" ,python-py) |
| 7867 | ("python-virtualenv" ,python-virtualenv) |
| 7868 | ("python-pytest" ,python-pytest))) |
| 7869 | (home-page "http://tox.testrun.org/") |
| 7870 | (synopsis "Virtualenv-based automation of test activities") |
| 7871 | (description "Tox is a generic virtualenv management and test command line |
| 7872 | tool. It can be used to check that a package installs correctly with |
| 7873 | different Python versions and interpreters, or run tests in each type of |
| 7874 | supported environment, or act as a frontend to continuous integration |
| 7875 | servers.") |
| 7876 | (license license:expat))) |
| 7877 | |
| 7878 | (define-public python2-tox |
| 7879 | (package-with-python2 python-tox)) |
| 7880 | |
| 7881 | (define-public python-jmespath |
| 7882 | (package |
| 7883 | (name "python-jmespath") |
| 7884 | (version "0.9.0") |
| 7885 | (source |
| 7886 | (origin |
| 7887 | (method url-fetch) |
| 7888 | (uri (pypi-uri "jmespath" version)) |
| 7889 | (sha256 |
| 7890 | (base32 |
| 7891 | "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8")))) |
| 7892 | (build-system python-build-system) |
| 7893 | (inputs |
| 7894 | `(("python-setuptools" ,python-setuptools))) |
| 7895 | (synopsis "JSON Matching Expressions") |
| 7896 | (description "JMESPath (pronounced “james path”) is a Python library that |
| 7897 | allows one to declaratively specify how to extract elements from a JSON |
| 7898 | document.") |
| 7899 | (home-page "https://github.com/jmespath/jmespath.py") |
| 7900 | (license license:expat))) |
| 7901 | |
| 7902 | (define-public python2-jmespath |
| 7903 | (package-with-python2 python-jmespath)) |
| 7904 | |
| 7905 | (define-public python-botocore |
| 7906 | (package |
| 7907 | (name "python-botocore") |
| 7908 | (version "1.3.17") |
| 7909 | (source |
| 7910 | (origin |
| 7911 | (method url-fetch) |
| 7912 | (uri (pypi-uri "botocore" version)) |
| 7913 | (sha256 |
| 7914 | (base32 |
| 7915 | "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w")))) |
| 7916 | (build-system python-build-system) |
| 7917 | (inputs |
| 7918 | `(("python-dateutil" ,python-dateutil-2) |
| 7919 | ("python-docutils" ,python-docutils) |
| 7920 | ("python-mock" ,python-mock) |
| 7921 | ("python-nose" ,python-nose) |
| 7922 | ("python-setuptools" ,python-setuptools) |
| 7923 | ("python-tox" ,python-tox) |
| 7924 | ("python-wheel" ,python-wheel) |
| 7925 | ("python-jmespath" ,python-jmespath))) |
| 7926 | (home-page "https://github.com/boto/botocore") |
| 7927 | (synopsis "Low-level interface to AWS") |
| 7928 | (description "Botocore is a Python library that provides a low-level |
| 7929 | interface to the Amazon Web Services (AWS) API.") |
| 7930 | (license license:asl2.0))) |
| 7931 | |
| 7932 | (define-public python2-botocore |
| 7933 | (package-with-python2 python-botocore)) |
| 7934 | |
| 7935 | (define-public awscli |
| 7936 | (package |
| 7937 | (name "awscli") |
| 7938 | (version "1.9.17") |
| 7939 | (source |
| 7940 | (origin |
| 7941 | (method url-fetch) |
| 7942 | (uri (string-append |
| 7943 | "https://pypi.python.org/packages/source/a/awscli/awscli-" |
| 7944 | version ".tar.gz")) |
| 7945 | (sha256 |
| 7946 | (base32 |
| 7947 | "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i")))) |
| 7948 | (build-system python-build-system) |
| 7949 | (inputs |
| 7950 | `(("python-colorama" ,python-colorama) |
| 7951 | ("python-docutils" ,python-docutils) |
| 7952 | ("python-mock" ,python-mock) |
| 7953 | ("python-nose" ,python-nose) |
| 7954 | ("python-rsa" ,python-rsa) |
| 7955 | ("python-setuptools" ,python-setuptools) |
| 7956 | ("python-sphinx" ,python-sphinx) |
| 7957 | ("python-tox" ,python-tox) |
| 7958 | ("python-wheel" ,python-wheel) |
| 7959 | ("python-botocore" ,python-botocore))) |
| 7960 | (home-page "http://aws.amazon.com/cli/") |
| 7961 | (synopsis "Command line client for AWS") |
| 7962 | (description "AWS CLI provides a unified command line interface to the |
| 7963 | Amazon Web Services (AWS) API.") |
| 7964 | (license license:asl2.0))) |
| 7965 | |
| 7966 | (define-public python-hypothesis |
| 7967 | (package |
| 7968 | (name "python-hypothesis") |
| 7969 | (version "3.1.0") |
| 7970 | (source (origin |
| 7971 | (method url-fetch) |
| 7972 | (uri (pypi-uri "hypothesis" version)) |
| 7973 | (sha256 |
| 7974 | (base32 |
| 7975 | "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw")))) |
| 7976 | (build-system python-build-system) |
| 7977 | (propagated-inputs |
| 7978 | `(("python-flake8" ,python-flake8) |
| 7979 | ("python-pytest" ,python-pytest))) |
| 7980 | (synopsis "Library for property based testing") |
| 7981 | (description "Hypothesis is a library for testing your Python code against a |
| 7982 | much larger range of examples than you would ever want to write by hand. It’s |
| 7983 | based on the Haskell library, Quickcheck, and is designed to integrate |
| 7984 | seamlessly into your existing Python unit testing work flow.") |
| 7985 | (home-page "https://github.com/DRMacIver/hypothesis") |
| 7986 | (license license:mpl2.0) |
| 7987 | (properties `((python2-variant . ,(delay python2-hypothesis)))))) |
| 7988 | |
| 7989 | (define-public python2-hypothesis |
| 7990 | (let ((hypothesis (package-with-python2 |
| 7991 | (strip-python2-variant python-hypothesis)))) |
| 7992 | (package (inherit hypothesis) |
| 7993 | (native-inputs |
| 7994 | `(("python2-enum34" ,python2-enum34) |
| 7995 | ("python2-setuptools" ,python2-setuptools)))))) |
| 7996 | |
| 7997 | (define-public python-pytest-subtesthack |
| 7998 | (package |
| 7999 | (name "python-pytest-subtesthack") |
| 8000 | (version "0.1.1") |
| 8001 | (source (origin |
| 8002 | (method url-fetch) |
| 8003 | (uri (pypi-uri "pytest-subtesthack" version)) |
| 8004 | (sha256 |
| 8005 | (base32 |
| 8006 | "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x")))) |
| 8007 | (build-system python-build-system) |
| 8008 | (native-inputs |
| 8009 | `(;; setuptools required for python-2 variant |
| 8010 | ("python-setuptools" ,python-setuptools))) |
| 8011 | (propagated-inputs |
| 8012 | `(("python-pytest" ,python-pytest))) |
| 8013 | (synopsis "Set-up and tear-down fixtures for unit tests") |
| 8014 | (description "This plugin allows you to set up and tear down fixtures within |
| 8015 | unit test functions that use @code{py.test}. This is useful for using |
| 8016 | @command{hypothesis} inside py.test, as @command{hypothesis} will call the test |
| 8017 | function multiple times, without setting up or tearing down fixture state as is |
| 8018 | normally the case.") |
| 8019 | (home-page "https://github.com/untitaker/pytest-subtesthack/") |
| 8020 | (license license:unlicense))) |
| 8021 | |
| 8022 | (define-public python2-pytest-subtesthack |
| 8023 | (package-with-python2 python-pytest-subtesthack)) |
| 8024 | |
| 8025 | (define-public python2-xdo |
| 8026 | (package |
| 8027 | (name "python2-xdo") |
| 8028 | (version "0.2") |
| 8029 | (source (origin |
| 8030 | (method url-fetch) |
| 8031 | (uri (string-append |
| 8032 | "http://http.debian.net/debian/pool/main/p/python-xdo/" |
| 8033 | "python-xdo_" version ".orig.tar.gz")) |
| 8034 | (sha256 |
| 8035 | (base32 |
| 8036 | "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4")))) |
| 8037 | (build-system python-build-system) |
| 8038 | (arguments |
| 8039 | `(#:python ,python-2 |
| 8040 | #:tests? #f)) ; no tests provided |
| 8041 | (inputs |
| 8042 | `(("xdotool" ,xdotool) |
| 8043 | ("libX11" ,libx11))) |
| 8044 | (home-page "https://tracker.debian.org/pkg/python-xdo") |
| 8045 | (synopsis "Python library for simulating X11 keyboard/mouse input") |
| 8046 | (description "Provides bindings to libxdo for manipulating X11 via simulated |
| 8047 | input. (Note that this is mostly a legacy library; you may wish to look at |
| 8048 | python-xdo for newer bindings.)") |
| 8049 | (license license:bsd-3))) |
| 8050 | |
| 8051 | (define-public python-wtforms |
| 8052 | (package |
| 8053 | (name "python-wtforms") |
| 8054 | (version "2.1") |
| 8055 | (source |
| 8056 | (origin |
| 8057 | (method url-fetch) |
| 8058 | (uri (pypi-uri "WTForms" version ".zip")) |
| 8059 | (sha256 |
| 8060 | (base32 |
| 8061 | "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) |
| 8062 | (build-system python-build-system) |
| 8063 | (native-inputs |
| 8064 | `(("unzip" ,unzip))) |
| 8065 | (home-page "http://wtforms.simplecodes.com/") |
| 8066 | (synopsis |
| 8067 | "Form validation and rendering library for Python web development") |
| 8068 | (description |
| 8069 | "WTForms is a flexible forms validation and rendering library |
| 8070 | for Python web development. It is very similar to the web form API |
| 8071 | available in Django, but is a standalone package.") |
| 8072 | (license license:bsd-3) |
| 8073 | (properties `((python2-variant . ,(delay python2-wtforms)))))) |
| 8074 | |
| 8075 | (define-public python2-wtforms |
| 8076 | (package |
| 8077 | (inherit (package-with-python2 |
| 8078 | (strip-python2-variant python-wtforms))) |
| 8079 | (inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8080 | |
| 8081 | (define-public python-mako |
| 8082 | (package |
| 8083 | (name "python-mako") |
| 8084 | (version "1.0.3") |
| 8085 | (source |
| 8086 | (origin |
| 8087 | (method url-fetch) |
| 8088 | (uri (pypi-uri "Mako" version)) |
| 8089 | (sha256 |
| 8090 | (base32 |
| 8091 | "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n")))) |
| 8092 | (build-system python-build-system) |
| 8093 | (native-inputs |
| 8094 | `(("python-markupsafe" ,python-markupsafe) |
| 8095 | ("python-mock" ,python-mock) |
| 8096 | ("python-nose" ,python-nose))) |
| 8097 | (home-page "http://www.makotemplates.org/") |
| 8098 | (synopsis "Templating language for Python") |
| 8099 | (description "Mako is a templating language for Python that compiles |
| 8100 | templates into Python modules.") |
| 8101 | (license license:expat) |
| 8102 | (properties `((python2-variant . ,(delay python2-mako)))))) |
| 8103 | |
| 8104 | (define-public python2-mako |
| 8105 | (let ((base (package-with-python2 |
| 8106 | (strip-python2-variant python-mako)))) |
| 8107 | (package |
| 8108 | (inherit base) |
| 8109 | (native-inputs |
| 8110 | (cons `("python2-setuptools" ,python2-setuptools) |
| 8111 | (package-native-inputs base)))))) |
| 8112 | |
| 8113 | (define-public python-waitress |
| 8114 | (package |
| 8115 | (name "python-waitress") |
| 8116 | (version "0.8.10") |
| 8117 | (source |
| 8118 | (origin |
| 8119 | (method url-fetch) |
| 8120 | (uri (pypi-uri "waitress" version)) |
| 8121 | (sha256 |
| 8122 | (base32 |
| 8123 | "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w")))) |
| 8124 | (build-system python-build-system) |
| 8125 | (home-page "https://github.com/Pylons/waitress") |
| 8126 | (synopsis "Waitress WSGI server") |
| 8127 | (description "Waitress is meant to be a production-quality pure-Python WSGI |
| 8128 | server with very acceptable performance.") |
| 8129 | (license license:zpl2.1) |
| 8130 | (properties `((python2-variant . ,(delay python2-waitress)))))) |
| 8131 | |
| 8132 | (define-public python2-waitress |
| 8133 | (package |
| 8134 | (inherit (package-with-python2 |
| 8135 | (strip-python2-variant python-waitress))) |
| 8136 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8137 | |
| 8138 | (define-public python-wsgiproxy2 |
| 8139 | (package |
| 8140 | (name "python-wsgiproxy2") |
| 8141 | (version "0.4.2") |
| 8142 | (source |
| 8143 | (origin |
| 8144 | (method url-fetch) |
| 8145 | (uri (pypi-uri "WSGIProxy2" version ".zip")) |
| 8146 | (sha256 |
| 8147 | (base32 |
| 8148 | "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) |
| 8149 | (build-system python-build-system) |
| 8150 | (native-inputs |
| 8151 | `(("unzip" ,unzip) |
| 8152 | ("python-nose" ,python-nose) |
| 8153 | ("python-coverage" ,python-coverage))) |
| 8154 | (propagated-inputs |
| 8155 | `(("python-six" ,python-six) |
| 8156 | ("python-webob" ,python-webob))) |
| 8157 | (home-page |
| 8158 | "https://github.com/gawel/WSGIProxy2/") |
| 8159 | (synopsis "WSGI Proxy with various http client backends") |
| 8160 | (description "WSGI turns HTTP requests into WSGI function calls. |
| 8161 | WSGIProxy turns WSGI function calls into HTTP requests. |
| 8162 | It also includes code to sign requests and pass private data, |
| 8163 | and to spawn subprocesses to handle requests.") |
| 8164 | (license license:expat) |
| 8165 | (properties `((python2-variant . ,(delay python2-wsgiproxy2)))))) |
| 8166 | |
| 8167 | (define-public python2-wsgiproxy2 |
| 8168 | (let ((wsgiproxy2 (package-with-python2 |
| 8169 | (strip-python2-variant python-wsgiproxy2)))) |
| 8170 | (package |
| 8171 | (inherit wsgiproxy2) |
| 8172 | (inputs `(("python2-setuptools" ,python2-setuptools) |
| 8173 | ,@(package-inputs wsgiproxy2)))))) |
| 8174 | |
| 8175 | (define-public python-pastedeploy |
| 8176 | (package |
| 8177 | (name "python-pastedeploy") |
| 8178 | (version "1.5.2") |
| 8179 | (source |
| 8180 | (origin |
| 8181 | (method url-fetch) |
| 8182 | (uri (pypi-uri "PasteDeploy" version)) |
| 8183 | (sha256 |
| 8184 | (base32 |
| 8185 | "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm")))) |
| 8186 | (build-system python-build-system) |
| 8187 | (native-inputs |
| 8188 | `(("python-nose" ,python-nose))) |
| 8189 | (propagated-inputs |
| 8190 | ;; This package uses pkg_resources, part of setuptools, during runtime, |
| 8191 | ;; hence why not a native-input. |
| 8192 | `(("python-setuptools" ,python-setuptools))) |
| 8193 | (home-page "http://pythonpaste.org/deploy/") |
| 8194 | (synopsis |
| 8195 | "Load, configure, and compose WSGI applications and servers") |
| 8196 | (description |
| 8197 | "This tool provides code to load WSGI applications and servers from URIs; |
| 8198 | these URIs can refer to Python Eggs for INI-style configuration files. Paste |
| 8199 | Script provides commands to serve applications based on this configuration |
| 8200 | file.") |
| 8201 | (license license:expat))) |
| 8202 | |
| 8203 | (define-public python2-pastedeploy |
| 8204 | (package-with-python2 python-pastedeploy)) |
| 8205 | |
| 8206 | (define-public python-paste |
| 8207 | (package |
| 8208 | (name "python-paste") |
| 8209 | (version "2.0.2") |
| 8210 | (source |
| 8211 | (origin |
| 8212 | (method url-fetch) |
| 8213 | (uri (pypi-uri "Paste" version)) |
| 8214 | (sha256 |
| 8215 | (base32 |
| 8216 | "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d")) |
| 8217 | (patches (search-patches "python-paste-remove-website-test.patch" |
| 8218 | "python-paste-remove-timing-test.patch")))) |
| 8219 | (build-system python-build-system) |
| 8220 | (native-inputs |
| 8221 | `(("python-nose" ,python-nose))) |
| 8222 | (propagated-inputs |
| 8223 | `(;; Uses pkg_resources provided by setuptools internally. |
| 8224 | ("python-setuptools" ,python-setuptools) |
| 8225 | ("python-six" ,python-six))) |
| 8226 | (arguments |
| 8227 | '(;; Tests don't pass on Python 3, but work fine on Python 2. |
| 8228 | ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken, |
| 8229 | ;; but is usable enough for the minimal amount it's used in MediaGoblin |
| 8230 | ;; still... things should be better by the next Paste release.) |
| 8231 | #:tests? #f)) |
| 8232 | (home-page "http://pythonpaste.org") |
| 8233 | (synopsis |
| 8234 | "Python web development tools, focusing on WSGI") |
| 8235 | (description |
| 8236 | "Paste provides a variety of web development tools and middleware which |
| 8237 | can be nested together to build web applications. Paste's design closely |
| 8238 | follows ideas flowing from WSGI (Web Standard Gateway Interface).") |
| 8239 | (license license:expat) |
| 8240 | (properties `((python2-variant . ,(delay python2-paste)))))) |
| 8241 | |
| 8242 | (define-public python2-paste |
| 8243 | (let ((paste (package-with-python2 |
| 8244 | (strip-python2-variant python-paste)))) |
| 8245 | (package |
| 8246 | (inherit paste) |
| 8247 | (arguments |
| 8248 | ;; Tests are back for Python 2! |
| 8249 | `(#:tests? #t |
| 8250 | ,@(package-arguments paste)))))) |
| 8251 | |
| 8252 | (define-public python-pastescript |
| 8253 | (package |
| 8254 | (name "python-pastescript") |
| 8255 | (version "2.0.2") |
| 8256 | (source |
| 8257 | (origin |
| 8258 | (method url-fetch) |
| 8259 | (uri (pypi-uri "PasteScript" version)) |
| 8260 | (sha256 |
| 8261 | (base32 |
| 8262 | "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0")))) |
| 8263 | (build-system python-build-system) |
| 8264 | (native-inputs |
| 8265 | `(("python-nose" ,python-nose))) |
| 8266 | (propagated-inputs |
| 8267 | `(;; Uses pkg_resources provided by setuptools internally. |
| 8268 | ("python-setuptools" ,python-setuptools) |
| 8269 | ("python-paste" ,python-paste) |
| 8270 | ("python-pastedeploy" ,python-pastedeploy))) |
| 8271 | (home-page "http://pythonpaste.org/script/") |
| 8272 | (arguments |
| 8273 | '(;; Unfortunately, this requires the latest unittest2, |
| 8274 | ;; but that requires traceback2 which requires linecache2 which requires |
| 8275 | ;; unittest2. So we're skipping tests for now. |
| 8276 | ;; (Note: Apparently linetest2 only needs unittest2 for its tests, |
| 8277 | ;; so in theory we could get around this situation somehow.) |
| 8278 | #:tests? #f)) |
| 8279 | (synopsis |
| 8280 | "Pluggable command line tool for serving web applications and more") |
| 8281 | (description |
| 8282 | "PasteScript is a plugin-friendly command line tool which provides a |
| 8283 | variety of features, from launching web applications to bootstrapping project |
| 8284 | layouts.") |
| 8285 | (license license:expat))) |
| 8286 | |
| 8287 | (define-public python2-pastescript |
| 8288 | (package-with-python2 python-pastescript)) |
| 8289 | |
| 8290 | (define-public python-pyquery |
| 8291 | (package |
| 8292 | (name "python-pyquery") |
| 8293 | (version "1.2.13") |
| 8294 | (source |
| 8295 | (origin |
| 8296 | (method url-fetch) |
| 8297 | (uri (pypi-uri "pyquery" version)) |
| 8298 | (sha256 |
| 8299 | (base32 |
| 8300 | "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv")))) |
| 8301 | (build-system python-build-system) |
| 8302 | (propagated-inputs |
| 8303 | `(("python-lxml" ,python-lxml) |
| 8304 | ("python-cssselect" ,python-cssselect))) |
| 8305 | (home-page "https://github.com/gawel/pyquery") |
| 8306 | (synopsis "Make jQuery-like queries on xml documents") |
| 8307 | (description "pyquery allows you to make jQuery queries on xml documents. |
| 8308 | The API is as much as possible the similar to jQuery. pyquery uses lxml for |
| 8309 | fast xml and html manipulation.") |
| 8310 | (license license:bsd-3) |
| 8311 | (properties `((python2-variant . ,(delay python2-pyquery)))))) |
| 8312 | |
| 8313 | (define-public python2-pyquery |
| 8314 | (let ((pyquery (package-with-python2 |
| 8315 | (strip-python2-variant python-pyquery)))) |
| 8316 | (package |
| 8317 | (inherit pyquery) |
| 8318 | (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) |
| 8319 | |
| 8320 | (define-public python-webtest |
| 8321 | (package |
| 8322 | (name "python-webtest") |
| 8323 | (version "2.0.20") |
| 8324 | (source |
| 8325 | (origin |
| 8326 | (method url-fetch) |
| 8327 | (uri (pypi-uri "WebTest" version)) |
| 8328 | (sha256 |
| 8329 | (base32 |
| 8330 | "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv")))) |
| 8331 | (build-system python-build-system) |
| 8332 | (arguments |
| 8333 | `(;; Unfortunately we have to disable tests! |
| 8334 | ;; This release of WebTest is pinned to python-nose < 1.3, |
| 8335 | ;; but older versions of python-nose are plagued with the following |
| 8336 | ;; bug(s), which rears its ugly head during test execution: |
| 8337 | ;; https://github.com/nose-devs/nose/issues/759 |
| 8338 | ;; https://github.com/nose-devs/nose/pull/811 |
| 8339 | #:tests? #f)) |
| 8340 | ;; Commented out code is no good, but in this case, once tests |
| 8341 | ;; are ready to be enabled again, we should put the following |
| 8342 | ;; in place: |
| 8343 | ;; (native-inputs |
| 8344 | ;; `(("python-nose" ,python-nose) ; technially < 1.3, |
| 8345 | ;; ; but see above comment |
| 8346 | ;; ("python-coverage" ,python-coverage) |
| 8347 | ;; ("python-mock" ,python-mock) |
| 8348 | ;; ("python-pastedeploy" ,python-pastedeploy) |
| 8349 | ;; ("python-wsgiproxy2" ,python-wsgiproxy2) |
| 8350 | ;; ("python-pyquery" ,python-pyquery))) |
| 8351 | (propagated-inputs |
| 8352 | `(("python-waitress" ,python-waitress) |
| 8353 | ("python-webob" ,python-webob) |
| 8354 | ("python-six" ,python-six) |
| 8355 | ("python-beautifulsoup4" ,python-beautifulsoup4))) |
| 8356 | (home-page "http://webtest.pythonpaste.org/") |
| 8357 | (synopsis "Helper to test WSGI applications") |
| 8358 | (description "Webtest allows you to test your Python web applications |
| 8359 | without starting an HTTP server. It supports anything that supports the |
| 8360 | minimum of WSGI.") |
| 8361 | (license license:expat) |
| 8362 | (properties `((python2-variant . ,(delay python2-webtest)))))) |
| 8363 | |
| 8364 | (define-public python2-webtest |
| 8365 | (let ((webtest (package-with-python2 |
| 8366 | (strip-python2-variant python-webtest)))) |
| 8367 | (package |
| 8368 | (inherit webtest) |
| 8369 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8370 | ,@(package-native-inputs webtest)))))) |
| 8371 | |
| 8372 | (define-public python-anyjson |
| 8373 | (package |
| 8374 | (name "python-anyjson") |
| 8375 | (version "0.3.3") |
| 8376 | (source |
| 8377 | (origin |
| 8378 | (method url-fetch) |
| 8379 | (uri (pypi-uri "anyjson" version)) |
| 8380 | (sha256 |
| 8381 | (base32 |
| 8382 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) |
| 8383 | (build-system python-build-system) |
| 8384 | (arguments |
| 8385 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. |
| 8386 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or |
| 8387 | ;; whatever) so this transformation needs to be done before the tests |
| 8388 | ;; can be run. Maybe we could add a build step to transform beforehand |
| 8389 | ;; but it could be annoying/difficult. |
| 8390 | ;; We can enable tests for the Python 2 version, though, and do below. |
| 8391 | #:tests? #f)) |
| 8392 | (home-page "http://bitbucket.org/runeh/anyjson/") |
| 8393 | (synopsis |
| 8394 | "Wraps best available JSON implementation in a common interface") |
| 8395 | (description |
| 8396 | "Anyjson loads whichever is the fastest JSON module installed |
| 8397 | and provides a uniform API regardless of which JSON implementation is used.") |
| 8398 | (license license:bsd-3) |
| 8399 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
| 8400 | |
| 8401 | (define-public python2-anyjson |
| 8402 | (let ((anyjson (package-with-python2 |
| 8403 | (strip-python2-variant python-anyjson)))) |
| 8404 | (package |
| 8405 | (inherit anyjson) |
| 8406 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! |
| 8407 | #:tests? #t |
| 8408 | ,@(package-arguments anyjson))) |
| 8409 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8410 | ("python2-nose" ,python2-nose)))))) |
| 8411 | |
| 8412 | (define-public python-amqp |
| 8413 | (package |
| 8414 | (name "python-amqp") |
| 8415 | (version "1.4.9") |
| 8416 | (source |
| 8417 | (origin |
| 8418 | (method url-fetch) |
| 8419 | (uri (pypi-uri "amqp" version)) |
| 8420 | (sha256 |
| 8421 | (base32 |
| 8422 | "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid")))) |
| 8423 | (build-system python-build-system) |
| 8424 | (native-inputs |
| 8425 | `(("python-nose" ,python-nose) |
| 8426 | ("python-mock" ,python-mock))) |
| 8427 | (home-page "http://github.com/celery/py-amqp") |
| 8428 | (synopsis |
| 8429 | "Low-level AMQP client for Python (fork of amqplib)") |
| 8430 | (description |
| 8431 | "This is a fork of amqplib which was originally written by Barry Pederson. |
| 8432 | It is maintained by the Celery project, and used by kombu as a pure python |
| 8433 | alternative when librabbitmq is not available.") |
| 8434 | (license license:lgpl2.1+) |
| 8435 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
| 8436 | |
| 8437 | (define-public python2-amqp |
| 8438 | (let ((amqp (package-with-python2 |
| 8439 | (strip-python2-variant python-amqp)))) |
| 8440 | (package |
| 8441 | (inherit amqp) |
| 8442 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems |
| 8443 | ;; unmaintained. Weirdly, does not do this on the python 3 |
| 8444 | ;; version? |
| 8445 | #:tests? #f |
| 8446 | ,@(package-arguments amqp))) |
| 8447 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8448 | ,@(package-native-inputs amqp)))))) |
| 8449 | |
| 8450 | (define-public python-kombu |
| 8451 | (package |
| 8452 | (name "python-kombu") |
| 8453 | (version "3.0.37") |
| 8454 | (source |
| 8455 | (origin |
| 8456 | (method url-fetch) |
| 8457 | (uri (pypi-uri "kombu" version)) |
| 8458 | (sha256 |
| 8459 | (base32 |
| 8460 | "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70")))) |
| 8461 | (build-system python-build-system) |
| 8462 | (native-inputs |
| 8463 | `(("python-mock" ,python-mock) |
| 8464 | ("python-nose" ,python-nose))) |
| 8465 | (propagated-inputs |
| 8466 | `(("python-anyjson" ,python-anyjson) |
| 8467 | ("python-amqp" ,python-amqp) |
| 8468 | ("python-redis" ,python-redis))) |
| 8469 | (home-page "http://kombu.readthedocs.org") |
| 8470 | (synopsis "Message passing library for Python") |
| 8471 | (description "The aim of Kombu is to make messaging in Python as easy as |
| 8472 | possible by providing an idiomatic high-level interface for the AMQ protocol, |
| 8473 | and also provide proven and tested solutions to common messaging problems. |
| 8474 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for |
| 8475 | message orientation, queuing, routing, reliability and security, for which the |
| 8476 | RabbitMQ messaging server is the most popular implementation.") |
| 8477 | (license license:bsd-3) |
| 8478 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
| 8479 | |
| 8480 | (define-public python2-kombu |
| 8481 | (let ((kombu (package-with-python2 |
| 8482 | (strip-python2-variant python-kombu)))) |
| 8483 | (package |
| 8484 | (inherit kombu) |
| 8485 | (inputs `(("python2-setuptools" ,python2-setuptools) |
| 8486 | ("python2-unittest2" ,python2-unittest2) |
| 8487 | ,@(package-inputs kombu)))))) |
| 8488 | |
| 8489 | (define-public python-billiard |
| 8490 | (package |
| 8491 | (name "python-billiard") |
| 8492 | (version "3.3.0.23") |
| 8493 | (source |
| 8494 | (origin |
| 8495 | (method url-fetch) |
| 8496 | (uri (pypi-uri "billiard" version)) |
| 8497 | (sha256 |
| 8498 | (base32 |
| 8499 | "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9")))) |
| 8500 | (build-system python-build-system) |
| 8501 | (native-inputs |
| 8502 | `(("python-nose" ,python-nose))) |
| 8503 | (home-page "http://github.com/celery/billiard") |
| 8504 | (synopsis |
| 8505 | "Python multiprocessing fork with improvements and bugfixes") |
| 8506 | (description |
| 8507 | "Billiard is a fork of the Python 2.7 multiprocessing package. The |
| 8508 | multiprocessing package itself is a renamed and updated version of R Oudkerk's |
| 8509 | pyprocessing package. This standalone variant is intended to be compatible with |
| 8510 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") |
| 8511 | (license license:bsd-3) |
| 8512 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
| 8513 | |
| 8514 | (define-public python2-billiard |
| 8515 | (let ((billiard (package-with-python2 |
| 8516 | (strip-python2-variant python-billiard)))) |
| 8517 | (package |
| 8518 | (inherit billiard) |
| 8519 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8520 | ("python2-unittest2" ,python2-unittest2) |
| 8521 | ("python2-mock" ,python2-mock) |
| 8522 | ,@(package-native-inputs billiard)))))) |
| 8523 | |
| 8524 | (define-public python-celery |
| 8525 | (package |
| 8526 | (name "python-celery") |
| 8527 | (version "3.1.24") |
| 8528 | (source |
| 8529 | (origin |
| 8530 | (method url-fetch) |
| 8531 | (uri (pypi-uri "celery" version)) |
| 8532 | (sha256 |
| 8533 | (base32 |
| 8534 | "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r")))) |
| 8535 | (build-system python-build-system) |
| 8536 | (arguments |
| 8537 | `(#:phases |
| 8538 | (modify-phases %standard-phases |
| 8539 | ;; These tests break with Python 3.5: |
| 8540 | ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295 |
| 8541 | (replace 'check |
| 8542 | (lambda _ |
| 8543 | (zero? |
| 8544 | (system* "nosetests" "--exclude=^test_safe_to_remove.*"))))))) |
| 8545 | (native-inputs |
| 8546 | `(("python-nose" ,python-nose))) |
| 8547 | (inputs |
| 8548 | `(("python-pytz" ,python-pytz) |
| 8549 | ("python-amqp" ,python-amqp) |
| 8550 | ("python-anyjson" ,python-anyjson) |
| 8551 | ("python-billiard" ,python-billiard) |
| 8552 | ("python-kombu" ,python-kombu))) |
| 8553 | (home-page "http://celeryproject.org") |
| 8554 | (synopsis "Distributed Task Queue") |
| 8555 | (description "Celery is an asynchronous task queue/job queue based on |
| 8556 | distributed message passing. It is focused on real-time operation, but |
| 8557 | supports scheduling as well. The execution units, called tasks, are executed |
| 8558 | concurrently on a single or more worker servers using multiprocessing, |
| 8559 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or |
| 8560 | synchronously (wait until ready).") |
| 8561 | (license license:bsd-3) |
| 8562 | (properties `((python2-variant . ,(delay python2-celery)))))) |
| 8563 | |
| 8564 | (define-public python2-celery |
| 8565 | (let ((celery (package-with-python2 |
| 8566 | (strip-python2-variant python-celery)))) |
| 8567 | (package |
| 8568 | (inherit celery) |
| 8569 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8570 | ("python2-unittest2" ,python2-unittest2) |
| 8571 | ("python2-mock" ,python2-mock) |
| 8572 | ,@(package-native-inputs celery)))))) |
| 8573 | |
| 8574 | (define-public python-translitcodec |
| 8575 | (package |
| 8576 | (name "python-translitcodec") |
| 8577 | (version "0.4.0") |
| 8578 | (source |
| 8579 | (origin |
| 8580 | (method url-fetch) |
| 8581 | (uri (pypi-uri "translitcodec" version)) |
| 8582 | (sha256 |
| 8583 | (base32 |
| 8584 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) |
| 8585 | (build-system python-build-system) |
| 8586 | (arguments |
| 8587 | `(#:tests? #f)) ; no tests provided |
| 8588 | (home-page |
| 8589 | "https://github.com/claudep/translitcodec") |
| 8590 | (synopsis |
| 8591 | "Unicode to 8-bit charset transliteration codec") |
| 8592 | (description |
| 8593 | "This package contains codecs for transliterating ISO 10646 texts into |
| 8594 | best-effort representations using smaller coded character sets (ASCII, |
| 8595 | ISO 8859, etc.).") |
| 8596 | (license license:expat) |
| 8597 | (properties `((python2-variant . ,(delay python2-translitcodec)))))) |
| 8598 | |
| 8599 | (define-public python2-translitcodec |
| 8600 | (package |
| 8601 | (inherit (package-with-python2 |
| 8602 | (strip-python2-variant python-translitcodec))) |
| 8603 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8604 | |
| 8605 | (define-public python-editor |
| 8606 | (package |
| 8607 | (name "python-editor") |
| 8608 | (version "0.5") |
| 8609 | (source |
| 8610 | (origin |
| 8611 | (method url-fetch) |
| 8612 | (uri (pypi-uri "python-editor" version)) |
| 8613 | (sha256 |
| 8614 | (base32 |
| 8615 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) |
| 8616 | (build-system python-build-system) |
| 8617 | (home-page |
| 8618 | "https://github.com/fmoo/python-editor") |
| 8619 | (synopsis |
| 8620 | "Programmatically open an editor, capture the result") |
| 8621 | (description |
| 8622 | "python-editor is a library that provides the editor module for |
| 8623 | programmatically interfacing with your system's $EDITOR.") |
| 8624 | (license license:asl2.0) |
| 8625 | (properties `((python2-variant . ,(delay python2-editor)))))) |
| 8626 | |
| 8627 | (define-public python2-editor |
| 8628 | (package |
| 8629 | (inherit (package-with-python2 |
| 8630 | (strip-python2-variant python-editor))) |
| 8631 | (inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8632 | |
| 8633 | (define-public python-sphinxcontrib-programoutput |
| 8634 | (package |
| 8635 | (name "python-sphinxcontrib-programoutput") |
| 8636 | (version "0.8") |
| 8637 | (source (origin |
| 8638 | (method url-fetch) |
| 8639 | (uri (pypi-uri "sphinxcontrib-programoutput" version)) |
| 8640 | (sha256 |
| 8641 | (base32 |
| 8642 | "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp")))) |
| 8643 | (build-system python-build-system) |
| 8644 | (propagated-inputs |
| 8645 | `(("python-docutils" ,python-docutils) |
| 8646 | ("python-sphinx" ,python-sphinx))) |
| 8647 | (synopsis "Sphinx extension to include program output") |
| 8648 | (description "A Sphinx extension to literally insert the output of arbitrary |
| 8649 | commands into documents, helping you to keep your command examples up to date.") |
| 8650 | (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput") |
| 8651 | (license license:bsd-2) |
| 8652 | (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput)))))) |
| 8653 | |
| 8654 | (define-public python2-sphinxcontrib-programoutput |
| 8655 | (package |
| 8656 | (inherit (package-with-python2 |
| 8657 | (strip-python2-variant python-sphinxcontrib-programoutput))) |
| 8658 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8659 | |
| 8660 | (define-public python-sphinx-repoze-autointerface |
| 8661 | (package |
| 8662 | (name "python-sphinx-repoze-autointerface") |
| 8663 | (version "0.8") |
| 8664 | (source (origin |
| 8665 | (method url-fetch) |
| 8666 | (uri (pypi-uri "repoze.sphinx.autointerface" version)) |
| 8667 | (sha256 |
| 8668 | (base32 |
| 8669 | "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f")))) |
| 8670 | (build-system python-build-system) |
| 8671 | (propagated-inputs |
| 8672 | `(("python-docutils" ,python-docutils) |
| 8673 | ("python-sphinx" ,python-sphinx) |
| 8674 | ("python-zope-interface" ,python-zope-interface))) |
| 8675 | (synopsis "Auto-generate Sphinx API docs from Zope interfaces") |
| 8676 | (description "This package defines an extension for the Sphinx documentation |
| 8677 | system. The extension allows generation of API documentation by |
| 8678 | introspection of @code{zope.interface} instances in code.") |
| 8679 | (home-page "https://github.com/repoze/repoze.sphinx.autointerface") |
| 8680 | (license license:repoze))) |
| 8681 | |
| 8682 | (define-public python2-sphinx-repoze-autointerface |
| 8683 | (package-with-python2 python-sphinx-repoze-autointerface)) |
| 8684 | |
| 8685 | (define-public python-psycopg2 |
| 8686 | (package |
| 8687 | (name "python-psycopg2") |
| 8688 | (version "2.6.1") |
| 8689 | (source |
| 8690 | (origin |
| 8691 | (method url-fetch) |
| 8692 | (uri (pypi-uri "psycopg2" version)) |
| 8693 | (sha256 |
| 8694 | (base32 |
| 8695 | "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva")))) |
| 8696 | (build-system python-build-system) |
| 8697 | (arguments |
| 8698 | ;; Tests would require a postgresql database "psycopg2_test" |
| 8699 | ;; and a running postgresql database management service. |
| 8700 | `(#:tests? #f)) ; TODO re-enable after providing a test-db. |
| 8701 | (inputs |
| 8702 | `(("postgresql" ,postgresql))) ; libpq |
| 8703 | (home-page "http://initd.org/psycopg/") |
| 8704 | (synopsis "Python PostgreSQL adapter") |
| 8705 | (description |
| 8706 | "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ") |
| 8707 | (license license:lgpl3+) |
| 8708 | (properties `((python2-variant . ,(delay python2-psycopg2)))))) |
| 8709 | |
| 8710 | (define-public python2-psycopg2 |
| 8711 | (package |
| 8712 | (inherit (package-with-python2 |
| 8713 | (strip-python2-variant python-psycopg2))) |
| 8714 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8715 | |
| 8716 | (define-public python-vobject |
| 8717 | (package |
| 8718 | (name "python-vobject") |
| 8719 | (version "0.9.2") |
| 8720 | (source (origin |
| 8721 | (method url-fetch) |
| 8722 | (uri (pypi-uri "vobject" version)) |
| 8723 | (sha256 |
| 8724 | (base32 |
| 8725 | "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb")))) |
| 8726 | (build-system python-build-system) |
| 8727 | (inputs |
| 8728 | `(("python-dateutil-2" ,python-dateutil-2) |
| 8729 | ("python-pyicu" ,python-pyicu))) |
| 8730 | (synopsis "Parse and generate vCard and vCalendar files") |
| 8731 | (description "Vobject is intended to be a full featured Python package for |
| 8732 | parsing and generating vCard and vCalendar files. Currently, iCalendar files |
| 8733 | are supported and well tested. vCard 3.0 files are supported, and all data |
| 8734 | should be imported, but only a few components are understood in a sophisticated |
| 8735 | way.") |
| 8736 | (home-page "http://eventable.github.io/vobject/") |
| 8737 | (license license:asl2.0) |
| 8738 | (properties `((python2-variant . ,(delay python2-vobject)))))) |
| 8739 | |
| 8740 | (define-public python2-vobject |
| 8741 | (package |
| 8742 | (inherit (package-with-python2 |
| 8743 | (strip-python2-variant python-vobject))) |
| 8744 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8745 | |
| 8746 | (define-public python-munkres |
| 8747 | (package |
| 8748 | (name "python-munkres") |
| 8749 | (version "1.0.7") |
| 8750 | (source (origin |
| 8751 | (method url-fetch) |
| 8752 | (uri (pypi-uri "munkres" version)) |
| 8753 | (sha256 |
| 8754 | (base32 |
| 8755 | "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik")))) |
| 8756 | (build-system python-build-system) |
| 8757 | (arguments |
| 8758 | '(#:tests? #f)) ; no test suite |
| 8759 | (home-page "http://software.clapper.org/munkres/") |
| 8760 | (synopsis "Implementation of the Munkres algorithm") |
| 8761 | (description "The Munkres module provides an implementation of the Munkres |
| 8762 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), |
| 8763 | useful for solving the Assignment Problem.") |
| 8764 | (license license:bsd-3))) |
| 8765 | |
| 8766 | (define-public python2-munkres |
| 8767 | (package-with-python2 python-munkres)) |
| 8768 | |
| 8769 | (define-public python-flask |
| 8770 | (package |
| 8771 | (name "python-flask") |
| 8772 | (version "0.10.1") |
| 8773 | (source (origin |
| 8774 | (method url-fetch) |
| 8775 | (uri (pypi-uri "Flask" version)) |
| 8776 | (sha256 |
| 8777 | (base32 |
| 8778 | "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc")))) |
| 8779 | (build-system python-build-system) |
| 8780 | (propagated-inputs |
| 8781 | `(("python-itsdangerous" ,python-itsdangerous) |
| 8782 | ("python-jinja2" ,python-jinja2) |
| 8783 | ("python-werkzeug" ,python-werkzeug))) |
| 8784 | (home-page "https://github.com/mitsuhiko/flask/") |
| 8785 | (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") |
| 8786 | (description "Flask is a micro web framework based on the Werkzeug toolkit |
| 8787 | and Jinja2 template engine. It is called a micro framework because it does not |
| 8788 | presume or force a developer to use a particular tool or library.") |
| 8789 | (license license:bsd-3) |
| 8790 | (properties `((python2-variant . ,(delay python2-flask)))))) |
| 8791 | |
| 8792 | (define-public python2-flask |
| 8793 | (package (inherit (package-with-python2 |
| 8794 | (strip-python2-variant python-flask))) |
| 8795 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 8796 | |
| 8797 | (define-public python-cookies |
| 8798 | (package |
| 8799 | (name "python-cookies") |
| 8800 | (version "2.2.1") |
| 8801 | (source (origin |
| 8802 | (method url-fetch) |
| 8803 | (uri (pypi-uri "cookies" version)) |
| 8804 | (sha256 |
| 8805 | (base32 |
| 8806 | "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) |
| 8807 | (build-system python-build-system) |
| 8808 | (arguments |
| 8809 | `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 |
| 8810 | #:tests? #f)) |
| 8811 | (native-inputs |
| 8812 | `(("python-pytest" ,python2-pytest))) |
| 8813 | (synopsis "HTTP cookie parser and renderer") |
| 8814 | (description "A RFC 6265-compliant HTTP cookie parser and renderer in |
| 8815 | Python.") |
| 8816 | (home-page "https://gitlab.com/sashahart/cookies") |
| 8817 | (license license:expat) |
| 8818 | (properties `((python2-variant . ,(delay python2-cookies)))))) |
| 8819 | |
| 8820 | (define-public python2-cookies |
| 8821 | (let ((cookies (package-with-python2 |
| 8822 | (strip-python2-variant python-cookies)))) |
| 8823 | (package (inherit cookies) |
| 8824 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8825 | ,@(package-native-inputs cookies)))))) |
| 8826 | |
| 8827 | (define-public python-responses |
| 8828 | (package |
| 8829 | (name "python-responses") |
| 8830 | (version "0.5.1") |
| 8831 | (source (origin |
| 8832 | (method url-fetch) |
| 8833 | (uri (pypi-uri "responses" version)) |
| 8834 | (sha256 |
| 8835 | (base32 |
| 8836 | "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc")))) |
| 8837 | (build-system python-build-system) |
| 8838 | (arguments |
| 8839 | `(;; Test suite is not distributed: |
| 8840 | ;; https://github.com/getsentry/responses/issues/38 |
| 8841 | #:tests? #f)) |
| 8842 | (native-inputs |
| 8843 | `(("python-cookies" ,python-cookies) |
| 8844 | ("python-mock" ,python-mock))) |
| 8845 | (propagated-inputs |
| 8846 | `(("python-requests" ,python-requests) |
| 8847 | ("python-six" ,python-six))) |
| 8848 | (home-page "https://github.com/getsentry/responses") |
| 8849 | (synopsis "Utility for mocking out the `requests` Python library") |
| 8850 | (description "A utility library for mocking out the `requests` Python |
| 8851 | library.") |
| 8852 | (license license:asl2.0) |
| 8853 | (properties `((python2-variant . ,(delay python2-responses)))))) |
| 8854 | |
| 8855 | (define-public python2-responses |
| 8856 | (let ((responses (package-with-python2 |
| 8857 | (strip-python2-variant python-responses)))) |
| 8858 | (package (inherit responses) |
| 8859 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8860 | ,@(package-native-inputs responses)))))) |
| 8861 | |
| 8862 | (define-public python-pathlib |
| 8863 | (package |
| 8864 | (name "python-pathlib") |
| 8865 | (version "1.0.1") |
| 8866 | (source (origin |
| 8867 | (method url-fetch) |
| 8868 | (uri (pypi-uri "pathlib" version)) |
| 8869 | (sha256 |
| 8870 | (base32 |
| 8871 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) |
| 8872 | (build-system python-build-system) |
| 8873 | ;; The tests depend on the internal "test" module, which does not provide |
| 8874 | ;; a stable interface. |
| 8875 | (arguments `(#:tests? #f)) |
| 8876 | (home-page "https://pathlib.readthedocs.org/") |
| 8877 | (synopsis "Object-oriented file system paths") |
| 8878 | (description "Pathlib offers a set of classes to handle file system paths. |
| 8879 | It offers the following advantages over using string objects: |
| 8880 | |
| 8881 | @enumerate |
| 8882 | @item No more cumbersome use of os and os.path functions. Everything can |
| 8883 | be done easily through operators, attribute accesses, and method calls. |
| 8884 | @item Embodies the semantics of different path types. For example, |
| 8885 | comparing Windows paths ignores casing. |
| 8886 | @item Well-defined semantics, eliminating any inconsistencies or |
| 8887 | ambiguities (forward vs. backward slashes, etc.). |
| 8888 | @end enumerate\n") |
| 8889 | (license license:expat))) |
| 8890 | |
| 8891 | (define-public python2-pathlib |
| 8892 | (package-with-python2 python-pathlib)) |
| 8893 | |
| 8894 | (define-public python-jellyfish |
| 8895 | (package |
| 8896 | (name "python-jellyfish") |
| 8897 | (version "0.5.3") |
| 8898 | (source (origin |
| 8899 | (method url-fetch) |
| 8900 | (uri (pypi-uri "jellyfish" version)) |
| 8901 | (sha256 |
| 8902 | (base32 |
| 8903 | "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07")))) |
| 8904 | (build-system python-build-system) |
| 8905 | (native-inputs |
| 8906 | `(("python-pytest" ,python-pytest))) |
| 8907 | (home-page "https://github.com/jamesturk/jellyfish") |
| 8908 | (synopsis "Approximate and phonetic matching of strings") |
| 8909 | (description "Jellyfish uses a variety of string comparison and phonetic |
| 8910 | encoding algorithms to do fuzzy string matching.") |
| 8911 | (license license:bsd-2) |
| 8912 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
| 8913 | |
| 8914 | (define-public python2-jellyfish |
| 8915 | (let ((jellyfish (package-with-python2 |
| 8916 | (strip-python2-variant python-jellyfish)))) |
| 8917 | (package (inherit jellyfish) |
| 8918 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 8919 | ("python2-unicodecsv" ,python2-unicodecsv) |
| 8920 | ,@(package-native-inputs jellyfish)))))) |
| 8921 | |
| 8922 | (define-public python2-unicodecsv |
| 8923 | (package |
| 8924 | (name "python2-unicodecsv") |
| 8925 | (version "0.14.1") |
| 8926 | (source (origin |
| 8927 | (method url-fetch) |
| 8928 | ;; The test suite is not included in the PyPi release. |
| 8929 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 |
| 8930 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" |
| 8931 | "archive/" version ".tar.gz")) |
| 8932 | (file-name (string-append name "-" version ".tar.gz")) |
| 8933 | (sha256 |
| 8934 | (base32 |
| 8935 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) |
| 8936 | (build-system python-build-system) |
| 8937 | (arguments |
| 8938 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. |
| 8939 | #:python ,python-2)) |
| 8940 | (native-inputs |
| 8941 | `(("python2-setuptools" ,python2-setuptools) |
| 8942 | ("python2-unittest2" ,python2-unittest2))) |
| 8943 | (home-page "https://github.com/jdunck/python-unicodecsv") |
| 8944 | (synopsis "Unicode CSV module for Python 2") |
| 8945 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV |
| 8946 | module, adding support for Unicode strings.") |
| 8947 | (license license:bsd-2))) |
| 8948 | |
| 8949 | (define-public python-rarfile |
| 8950 | (package |
| 8951 | (name "python-rarfile") |
| 8952 | (version "2.7") |
| 8953 | (source (origin |
| 8954 | (method url-fetch) |
| 8955 | (uri (pypi-uri "rarfile" version)) |
| 8956 | (sha256 |
| 8957 | (base32 |
| 8958 | "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527")) |
| 8959 | ;; https://github.com/markokr/rarfile/pull/17/ |
| 8960 | (patches (search-patches "python-rarfile-fix-tests.patch")))) |
| 8961 | (build-system python-build-system) |
| 8962 | (arguments |
| 8963 | '(#:phases |
| 8964 | (modify-phases %standard-phases |
| 8965 | (replace 'check |
| 8966 | ;; Many tests fail, but the installation proceeds. |
| 8967 | (lambda _ (zero? (system* "make" "-C" "test" "test"))))))) |
| 8968 | (native-inputs |
| 8969 | `(("which" ,which))) ; required for tests |
| 8970 | (propagated-inputs |
| 8971 | `(("libarchive" ,libarchive))) |
| 8972 | (home-page "https://github.com/markokr/rarfile") |
| 8973 | (synopsis "RAR archive reader for Python") |
| 8974 | (description "This is Python module for RAR archive reading. The interface |
| 8975 | is made as zipfile like as possible.") |
| 8976 | (license license:isc))) |
| 8977 | |
| 8978 | (define-public python2-rarfile |
| 8979 | (package-with-python2 python-rarfile)) |
| 8980 | |
| 8981 | (define-public python-magic |
| 8982 | (package |
| 8983 | (name "python-magic") |
| 8984 | (version "0.4.3") |
| 8985 | (source |
| 8986 | (origin |
| 8987 | (method url-fetch) |
| 8988 | (uri (string-append "https://github.com/ahupp/python-magic/archive/" |
| 8989 | version ".tar.gz")) |
| 8990 | (sha256 |
| 8991 | (base32 |
| 8992 | "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) |
| 8993 | (file-name (string-append name "-" version "-checkout")))) |
| 8994 | (build-system python-build-system) |
| 8995 | (arguments |
| 8996 | ;; The tests are unreliable, so don't run them. The tests fail |
| 8997 | ;; under Python3 because they were written for Python2 and |
| 8998 | ;; contain import statements that do not work in Python3. One of |
| 8999 | ;; the tests fails under Python2 because its assertions are |
| 9000 | ;; overly stringent; it relies on comparing output strings which |
| 9001 | ;; are brittle and can change depending on the version of |
| 9002 | ;; libmagic being used and the system on which the test is |
| 9003 | ;; running. In my case, under GuixSD 0.10.0, only one test |
| 9004 | ;; failed, and it seems to have failed only because the version |
| 9005 | ;; of libmagic that is packaged in Guix outputs a slightly |
| 9006 | ;; different (but not wrong) string than the one that the test |
| 9007 | ;; expected. |
| 9008 | '(#:tests? #f |
| 9009 | #:phases (modify-phases %standard-phases |
| 9010 | ;; Replace a specific method call with a hard-coded |
| 9011 | ;; path to the necessary libmagic.so file in the |
| 9012 | ;; store. If we don't do this, then the method call |
| 9013 | ;; will fail to find the libmagic.so file, which in |
| 9014 | ;; turn will cause any application using |
| 9015 | ;; python-magic to fail. |
| 9016 | (add-before 'build 'hard-code-path-to-libmagic |
| 9017 | (lambda* (#:key inputs #:allow-other-keys) |
| 9018 | (let ((file (assoc-ref inputs "file"))) |
| 9019 | (substitute* "magic.py" |
| 9020 | (("ctypes.util.find_library\\('magic'\\)") |
| 9021 | (string-append "'" file "/lib/libmagic.so'"))) |
| 9022 | #t))) |
| 9023 | (add-before 'install 'disable-egg-compression |
| 9024 | (lambda _ |
| 9025 | (let ((port (open-file "setup.cfg" "a"))) |
| 9026 | (display "\n[easy_install]\nzip_ok = 0\n" |
| 9027 | port) |
| 9028 | (close-port port) |
| 9029 | #t)))))) |
| 9030 | (native-inputs |
| 9031 | `(("python-setuptools" ,python-setuptools))) |
| 9032 | (inputs |
| 9033 | ;; python-magic needs to be able to find libmagic.so. |
| 9034 | `(("file" ,file))) |
| 9035 | (home-page "https://github.com/ahupp/python-magic") |
| 9036 | (synopsis "File type identification using libmagic") |
| 9037 | (description |
| 9038 | "This module uses ctypes to access the libmagic file type |
| 9039 | identification library. It makes use of the local magic database and |
| 9040 | supports both textual and MIME-type output. Note that this module and |
| 9041 | the python-file module both provide a \"magic.py\" file; these two |
| 9042 | modules, which are different and were developed separately, both serve |
| 9043 | the same purpose: to provide Python bindings for libmagic.") |
| 9044 | (license license:expat))) |
| 9045 | |
| 9046 | (define-public python2-magic |
| 9047 | (package-with-python2 python-magic)) |
| 9048 | |
| 9049 | (define-public python2-s3cmd |
| 9050 | (package |
| 9051 | (name "python2-s3cmd") |
| 9052 | (version "1.6.1") |
| 9053 | (source |
| 9054 | (origin |
| 9055 | (method url-fetch) |
| 9056 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
| 9057 | "s3cmd-" version ".tar.gz")) |
| 9058 | (sha256 |
| 9059 | (base32 |
| 9060 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) |
| 9061 | (build-system python-build-system) |
| 9062 | (arguments |
| 9063 | ;; s3cmd is written for python2 only and contains no tests. |
| 9064 | `(#:python ,python-2 |
| 9065 | #:tests? #f)) |
| 9066 | (native-inputs |
| 9067 | `(("python2-setuptools" ,python2-setuptools))) |
| 9068 | (inputs |
| 9069 | `(("python2-dateutil" ,python2-dateutil) |
| 9070 | ;; The python-file package also provides a magic.py module. |
| 9071 | ;; This is an unfortunate state of affairs; however, s3cmd |
| 9072 | ;; fails to install if it cannot find specifically the |
| 9073 | ;; python-magic package. Thus we include it, instead of using |
| 9074 | ;; python-file. Ironically, s3cmd sometimes works better |
| 9075 | ;; without libmagic bindings at all: |
| 9076 | ;; https://github.com/s3tools/s3cmd/issues/198 |
| 9077 | ("python2-magic" ,python2-magic))) |
| 9078 | (home-page "http://s3tools.org/s3cmd") |
| 9079 | (synopsis "Command line tool for S3-compatible storage services") |
| 9080 | (description |
| 9081 | "S3cmd is a command line tool for uploading, retrieving and managing data |
| 9082 | in storage services that are compatible with the Amazon Simple Storage |
| 9083 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, |
| 9084 | GnuPG encryption, and more. It also supports management of Amazon's |
| 9085 | CloudFront content delivery network.") |
| 9086 | (license license:gpl2+))) |
| 9087 | |
| 9088 | (define-public python-pkgconfig |
| 9089 | (package |
| 9090 | (name "python-pkgconfig") |
| 9091 | (version "1.1.0") |
| 9092 | (source |
| 9093 | (origin |
| 9094 | (method url-fetch) |
| 9095 | (uri (pypi-uri "pkgconfig" version)) |
| 9096 | (sha256 |
| 9097 | (base32 |
| 9098 | "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) |
| 9099 | (build-system python-build-system) |
| 9100 | (native-inputs |
| 9101 | `(("python-nose" ,python-nose) |
| 9102 | ("python-setuptools" ,python-setuptools))) |
| 9103 | (inputs |
| 9104 | `(("pkg-config" ,pkg-config))) |
| 9105 | (arguments |
| 9106 | `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3, |
| 9107 | ;; and on Python 2 they need the dl module deprecated since Python 2.6. |
| 9108 | #:tests? #f |
| 9109 | ;; Prevent creation of the egg. This works around |
| 9110 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . |
| 9111 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
| 9112 | ;; Hard-code the path to pkg-config. |
| 9113 | #:phases |
| 9114 | (modify-phases %standard-phases |
| 9115 | (add-before |
| 9116 | 'build 'patch |
| 9117 | (lambda _ |
| 9118 | (substitute* "pkgconfig/pkgconfig.py" |
| 9119 | (("cmd = 'pkg-config") |
| 9120 | (string-append "cmd = '" (which "pkg-config")))) |
| 9121 | #t))))) |
| 9122 | (home-page "http://github.com/matze/pkgconfig") |
| 9123 | (synopsis "Python interface for pkg-config") |
| 9124 | (description "This module provides a Python interface to pkg-config. It |
| 9125 | can be used to find all pkg-config packages, check if a package exists, |
| 9126 | check if a package meets certain version requirements, query CFLAGS and |
| 9127 | LDFLAGS and parse the output to build extensions with setup.py.") |
| 9128 | (license license:expat))) |
| 9129 | |
| 9130 | (define-public python2-pkgconfig |
| 9131 | (package-with-python2 python-pkgconfig)) |
| 9132 | |
| 9133 | (define-public python-bz2file |
| 9134 | (package |
| 9135 | (name "python-bz2file") |
| 9136 | (version "0.98") |
| 9137 | (source |
| 9138 | (origin |
| 9139 | (method url-fetch) |
| 9140 | (uri (pypi-uri "bz2file" version)) |
| 9141 | (sha256 |
| 9142 | (base32 |
| 9143 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) |
| 9144 | (build-system python-build-system) |
| 9145 | (arguments |
| 9146 | `(#:tests? #f)) ; Tests use deprecated python modules. |
| 9147 | (home-page "https://github.com/nvawda/bz2file") |
| 9148 | (synopsis "Read and write bzip2-compressed files") |
| 9149 | (description |
| 9150 | "Bz2file is a Python library for reading and writing bzip2-compressed |
| 9151 | files. It contains a drop-in replacement for the I/O interface in the |
| 9152 | standard library's @code{bz2} module, including features from the latest |
| 9153 | development version of CPython that are not available in older releases.") |
| 9154 | (license license:asl2.0) |
| 9155 | (properties `((python2-variant . ,(delay python2-bz2file)))))) |
| 9156 | |
| 9157 | (define-public python2-bz2file |
| 9158 | (let ((base (package-with-python2 |
| 9159 | (strip-python2-variant python-bz2file)))) |
| 9160 | (package |
| 9161 | (inherit base) |
| 9162 | (native-inputs |
| 9163 | `(("python2-setuptools" ,python2-setuptools))) |
| 9164 | (arguments |
| 9165 | `(#:python ,python-2 |
| 9166 | #:phases |
| 9167 | (modify-phases %standard-phases |
| 9168 | ;; 'python setup.py test' does not work as of 0.98. |
| 9169 | ;; There is only the one test file, so we run it directly. |
| 9170 | (replace 'check |
| 9171 | (lambda _ (zero? (system* "python" |
| 9172 | "test_bz2file.py")))))))))) |
| 9173 | |
| 9174 | (define-public python-future |
| 9175 | (package |
| 9176 | (name "python-future") |
| 9177 | (version "0.15.2") |
| 9178 | (source |
| 9179 | (origin |
| 9180 | (method url-fetch) |
| 9181 | (uri (pypi-uri "future" version)) |
| 9182 | (sha256 |
| 9183 | (base32 |
| 9184 | "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx")))) |
| 9185 | (build-system python-build-system) |
| 9186 | ;; Many tests connect to the network or are otherwise flawed. |
| 9187 | ;; https://github.com/PythonCharmers/python-future/issues/210 |
| 9188 | (arguments |
| 9189 | `(#:tests? #f)) |
| 9190 | (home-page "http://python-future.org") |
| 9191 | (synopsis "Single-source support for Python 3 and 2") |
| 9192 | (description |
| 9193 | "@code{python-future} is the missing compatibility layer between Python 2 and |
| 9194 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase |
| 9195 | to support both Python 2 and Python 3 with minimal overhead.") |
| 9196 | (license license:expat) |
| 9197 | (properties `((python2-variant . ,(delay python2-future)))))) |
| 9198 | |
| 9199 | (define-public python2-future |
| 9200 | (let ((base (package-with-python2 |
| 9201 | (strip-python2-variant python-future)))) |
| 9202 | (package |
| 9203 | (inherit base) |
| 9204 | (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) |
| 9205 | |
| 9206 | (define-public python-cysignals |
| 9207 | (package |
| 9208 | (name "python-cysignals") |
| 9209 | (version "1.1.0") |
| 9210 | (source |
| 9211 | (origin |
| 9212 | (method url-fetch) |
| 9213 | (uri (pypi-uri "cysignals" version ".tar.bz2")) |
| 9214 | (sha256 |
| 9215 | (base32 |
| 9216 | "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6")))) |
| 9217 | (build-system python-build-system) |
| 9218 | (native-inputs |
| 9219 | `(("python-cython" ,python-cython) |
| 9220 | ("python-setuptools" ,python-setuptools) |
| 9221 | ("python-sphinx" ,python-sphinx))) |
| 9222 | (inputs |
| 9223 | `(("pari-gp" ,pari-gp))) |
| 9224 | (arguments |
| 9225 | `(#:modules ((guix build python-build-system) |
| 9226 | ((guix build gnu-build-system) #:prefix gnu:) |
| 9227 | (guix build utils)) |
| 9228 | ;; FIXME: Tests are executed after installation and currently fail |
| 9229 | ;; when not installing into standard locations; the author is working |
| 9230 | ;; on a fix. |
| 9231 | #:tests? #f |
| 9232 | #:phases |
| 9233 | (modify-phases %standard-phases |
| 9234 | (add-before |
| 9235 | 'build 'configure |
| 9236 | (assoc-ref gnu:%standard-phases 'configure))))) |
| 9237 | (home-page |
| 9238 | "https://github.com/sagemath/cysignals") |
| 9239 | (synopsis |
| 9240 | "Handling of interrupts and signals for Cython") |
| 9241 | (description |
| 9242 | "The cysignals package provides mechanisms to handle interrupts (and |
| 9243 | other signals and errors) in Cython code, using two related approaches, |
| 9244 | for mixed Cython/Python code or external C libraries and pure Cython code, |
| 9245 | respectively.") |
| 9246 | (license license:lgpl3+))) |
| 9247 | |
| 9248 | (define-public python2-cysignals |
| 9249 | (package-with-python2 python-cysignals)) |
| 9250 | |
| 9251 | (define-public python2-shedskin |
| 9252 | (package |
| 9253 | (name "python2-shedskin") |
| 9254 | (version "0.9.4") |
| 9255 | (source |
| 9256 | (origin |
| 9257 | (method url-fetch) |
| 9258 | (uri (string-append "https://github.com/shedskin/shedskin/" |
| 9259 | "releases/download/v" version |
| 9260 | "/shedskin-" version ".tgz")) |
| 9261 | (sha256 |
| 9262 | (base32 |
| 9263 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) |
| 9264 | (build-system python-build-system) |
| 9265 | (arguments |
| 9266 | `(#:python ,python-2 |
| 9267 | #:phases (modify-phases %standard-phases |
| 9268 | (add-after 'unpack 'fix-resulting-include-libs |
| 9269 | (lambda* (#:key inputs #:allow-other-keys) |
| 9270 | (let ((libgc (assoc-ref inputs "libgc")) |
| 9271 | (pcre (assoc-ref inputs "pcre"))) |
| 9272 | (substitute* "shedskin/makefile.py" |
| 9273 | (("variable == 'CCFLAGS':[ ]*") |
| 9274 | (string-append "variable == 'CCFLAGS':\n" |
| 9275 | " line += ' -I " pcre "/include" |
| 9276 | " -I " libgc "/include'")) |
| 9277 | (("variable == 'LFLAGS':[ ]*") |
| 9278 | (string-append "variable == 'LFLAGS':\n" |
| 9279 | " line += ' -L" pcre "/lib" |
| 9280 | " -L " libgc "/lib'"))) |
| 9281 | #t)))))) |
| 9282 | (native-inputs `(("python2-setuptools" ,python2-setuptools))) |
| 9283 | (inputs `(("pcre" ,pcre) |
| 9284 | ("libgc" ,libgc))) |
| 9285 | (home-page "https://shedskin.github.io/") |
| 9286 | (synopsis "Experimental Python-2 to C++ Compiler") |
| 9287 | (description (string-append "This is an experimental compiler for a subset of |
| 9288 | Python. It generates C++ code and a Makefile.")) |
| 9289 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
| 9290 | |
| 9291 | (define-public python2-rope |
| 9292 | (package |
| 9293 | (name "python2-rope") |
| 9294 | (version "0.10.3") |
| 9295 | (source |
| 9296 | (origin |
| 9297 | (method url-fetch) |
| 9298 | (uri (pypi-uri "rope" version)) |
| 9299 | (sha256 |
| 9300 | (base32 |
| 9301 | "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) |
| 9302 | (arguments |
| 9303 | ;; Rope is currently python-2 only. |
| 9304 | ;; https://github.com/python-rope/rope/issues/57 |
| 9305 | `(#:python ,python-2)) |
| 9306 | (build-system python-build-system) |
| 9307 | (native-inputs |
| 9308 | `(("python2-unittest2" ,python2-unittest2) |
| 9309 | ("python2-setuptools" ,python2-setuptools))) |
| 9310 | (home-page "https://github.com/python-rope/rope") |
| 9311 | (synopsis "Refactoring library for Python") |
| 9312 | (description "Rope is a refactoring library for Python. It facilitates |
| 9313 | the renaming, moving and extracting of attributes, functions, modules, fields |
| 9314 | and parameters in Python 2 source code. These refactorings can also be applied |
| 9315 | to occurences in strings and comments.") |
| 9316 | (license license:gpl2))) |
| 9317 | |
| 9318 | (define-public python-py3status |
| 9319 | (package |
| 9320 | (name "python-py3status") |
| 9321 | (version "3.1") |
| 9322 | (source |
| 9323 | (origin |
| 9324 | (method url-fetch) |
| 9325 | (uri (pypi-uri "py3status" version)) |
| 9326 | (sha256 |
| 9327 | (base32 |
| 9328 | "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) |
| 9329 | (build-system python-build-system) |
| 9330 | (native-inputs |
| 9331 | `(("python-setuptools" ,python-setuptools))) |
| 9332 | (home-page "https://github.com/ultrabug/py3status") |
| 9333 | (synopsis "Extensible i3status wrapper written in Python") |
| 9334 | (description "py3status is an i3status wrapper which extends i3status |
| 9335 | functionality in a modular way, allowing you to extend your panel with your |
| 9336 | own code, responding to click events and updating clock every second.") |
| 9337 | (license license:bsd-3))) |
| 9338 | |
| 9339 | (define-public python-tblib |
| 9340 | (package |
| 9341 | (name "python-tblib") |
| 9342 | (version "1.3.0") |
| 9343 | (source (origin |
| 9344 | (method url-fetch) |
| 9345 | (uri (pypi-uri "tblib" version)) |
| 9346 | (sha256 (base32 |
| 9347 | "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi")))) |
| 9348 | (build-system python-build-system) |
| 9349 | (arguments |
| 9350 | `(#:phases |
| 9351 | (modify-phases %standard-phases |
| 9352 | (replace 'check |
| 9353 | (lambda _ |
| 9354 | ;; Upstream runs tests after installation and the package itself |
| 9355 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be |
| 9356 | ;; found. |
| 9357 | (setenv "PYTHONPATH" |
| 9358 | (string-append (getcwd) "/build/lib:" |
| 9359 | (getenv "PYTHONPATH"))) |
| 9360 | (zero? (system* "py.test" "-vv" "tests" "README.rst"))))))) |
| 9361 | (native-inputs |
| 9362 | `(("python-pytest" ,python-pytest) |
| 9363 | ("python-setuptools" ,python-setuptools) |
| 9364 | ("python-six" ,python-six))) |
| 9365 | (home-page "https://github.com/ionelmc/python-tblib") |
| 9366 | (synopsis "Traceback serialization library") |
| 9367 | (description |
| 9368 | "Traceback serialization allows you to: |
| 9369 | |
| 9370 | @enumerate |
| 9371 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in |
| 9372 | different processes. This allows better error handling when running code over |
| 9373 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). |
| 9374 | |
| 9375 | @item Parse traceback strings and raise with the parsed tracebacks. |
| 9376 | @end itemize") |
| 9377 | (license license:bsd-3))) |
| 9378 | |
| 9379 | (define-public python2-tblib |
| 9380 | (package-with-python2 python-tblib)) |
| 9381 | |
| 9382 | (define-public python-sqlparse |
| 9383 | (package |
| 9384 | (name "python-sqlparse") |
| 9385 | (version "0.1.19") |
| 9386 | (source (origin |
| 9387 | (method url-fetch) |
| 9388 | (uri (pypi-uri "sqlparse" version)) |
| 9389 | (sha256 |
| 9390 | (base32 |
| 9391 | "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) |
| 9392 | (build-system python-build-system) |
| 9393 | (arguments |
| 9394 | `(#:phases |
| 9395 | (modify-phases %standard-phases |
| 9396 | (replace 'check |
| 9397 | (lambda* _ |
| 9398 | ;; setup.py-integrated 2to3 only affects the build files, but |
| 9399 | ;; py.test is using the source files. So we need to convert them |
| 9400 | ;; manually. |
| 9401 | (when (zero? (system* "python3")) |
| 9402 | (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")) |
| 9403 | (zero? (system* "py.test"))))))) |
| 9404 | (native-inputs |
| 9405 | `(("python-pytest" ,python-pytest) |
| 9406 | ("python-setuptools" ,python-setuptools))) |
| 9407 | (home-page "https://github.com/andialbrecht/sqlparse") |
| 9408 | (synopsis "Non-validating SQL parser") |
| 9409 | (description "Sqlparse is a non-validating SQL parser for Python. It |
| 9410 | provides support for parsing, splitting and formatting SQL statements.") |
| 9411 | (license license:bsd-3))) |
| 9412 | |
| 9413 | (define-public python2-sqlparse |
| 9414 | (package-with-python2 python-sqlparse)) |
| 9415 | |
| 9416 | (define-public python-greenlet |
| 9417 | (package |
| 9418 | (name "python-greenlet") |
| 9419 | (version "0.4.9") |
| 9420 | (source (origin |
| 9421 | (method url-fetch) |
| 9422 | (uri (pypi-uri "greenlet" version)) |
| 9423 | (sha256 |
| 9424 | (base32 |
| 9425 | "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr")))) |
| 9426 | (build-system python-build-system) |
| 9427 | (native-inputs |
| 9428 | `(("python-setuptools" ,python-setuptools))) |
| 9429 | (home-page "https://greenlet.readthedocs.io/") |
| 9430 | (synopsis "Lightweight in-process concurrent programming") |
| 9431 | (description |
| 9432 | "Greenlet package is a spin-off of Stackless, a version of CPython |
| 9433 | that supports micro-threads called \"tasklets\". Tasklets run |
| 9434 | pseudo-concurrently (typically in a single or a few OS-level threads) and |
| 9435 | are synchronized with data exchanges on \"channels\".") |
| 9436 | (license (list license:psfl license:expat)))) |
| 9437 | |
| 9438 | (define-public python2-greenlet |
| 9439 | (package-with-python2 python-greenlet)) |
| 9440 | |
| 9441 | (define-public python-gevent |
| 9442 | (package |
| 9443 | (name "python-gevent") |
| 9444 | (version "1.1.1") |
| 9445 | (source (origin |
| 9446 | (method url-fetch) |
| 9447 | (uri (pypi-uri "gevent" version)) |
| 9448 | (sha256 |
| 9449 | (base32 |
| 9450 | "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf")) |
| 9451 | (modules '((guix build utils))) |
| 9452 | (snippet |
| 9453 | '(begin |
| 9454 | ;; unbunding libev and c-ares |
| 9455 | (for-each delete-file-recursively '("libev" "c-ares")) |
| 9456 | ;; fixing testsuite |
| 9457 | (call-with-output-file "greentest/__init__.py" noop) |
| 9458 | (substitute* "greentest/testrunner.py" |
| 9459 | (("import util") "from . import util") |
| 9460 | (("from util import log") "from .util import log")))))) |
| 9461 | (build-system python-build-system) |
| 9462 | (propagated-inputs |
| 9463 | `(("python-greenlet" ,python-greenlet))) |
| 9464 | (native-inputs |
| 9465 | `(("python-setuptools" ,python-setuptools) |
| 9466 | ("python-six" ,python-six))) |
| 9467 | (inputs |
| 9468 | `(("c-ares" ,c-ares) |
| 9469 | ("libev" ,libev))) |
| 9470 | (home-page "http://www.gevent.org/") |
| 9471 | (synopsis "Coroutine-based network library") |
| 9472 | (description |
| 9473 | "gevent is a coroutine-based Python networking library that uses greenlet |
| 9474 | to provide a high-level synchronous API on top of the libev event loop.") |
| 9475 | (license license:expat))) |
| 9476 | |
| 9477 | (define-public python2-gevent |
| 9478 | (package-with-python2 python-gevent)) |
| 9479 | |
| 9480 | (define-public python-twisted |
| 9481 | (package |
| 9482 | (name "python-twisted") |
| 9483 | (version "16.2.0") |
| 9484 | (source (origin |
| 9485 | (method url-fetch) |
| 9486 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
| 9487 | (sha256 |
| 9488 | (base32 |
| 9489 | "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450")))) |
| 9490 | (build-system python-build-system) |
| 9491 | (native-inputs |
| 9492 | `(("python-setuptools" ,python-setuptools))) |
| 9493 | (propagated-inputs |
| 9494 | `(("python-zope-interface" ,python-zope-interface))) |
| 9495 | (home-page "https://twistedmatrix.com/") |
| 9496 | (synopsis "Asynchronous networking framework written in Python") |
| 9497 | (description |
| 9498 | "Twisted is an extensible framework for Python programming, with special |
| 9499 | focus on event-based network programming and multiprotocol integration.") |
| 9500 | (license license:expat))) |
| 9501 | |
| 9502 | (define-public python2-twisted |
| 9503 | (package-with-python2 python-twisted)) |
| 9504 | |
| 9505 | (define-public python-pika |
| 9506 | (package |
| 9507 | (name "python-pika") |
| 9508 | (version "0.10.0") |
| 9509 | (source |
| 9510 | (origin |
| 9511 | (method url-fetch) |
| 9512 | (uri (pypi-uri "pika" version)) |
| 9513 | (sha256 |
| 9514 | (base32 |
| 9515 | "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) |
| 9516 | (build-system python-build-system) |
| 9517 | (native-inputs |
| 9518 | `(("python-twisted" ,python-twisted))) |
| 9519 | (home-page "https://pika.readthedocs.org") |
| 9520 | (synopsis "Pure Python AMQP Client Library") |
| 9521 | (description |
| 9522 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing |
| 9523 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying |
| 9524 | network support library.") |
| 9525 | (license license:bsd-3))) |
| 9526 | |
| 9527 | (define-public python2-pika |
| 9528 | (package-with-python2 python-pika)) |
| 9529 | |
| 9530 | (define-public python-ply |
| 9531 | (package |
| 9532 | (name "python-ply") |
| 9533 | (version "3.8") |
| 9534 | (source |
| 9535 | (origin |
| 9536 | (method url-fetch) |
| 9537 | (uri (string-append |
| 9538 | "https://pypi.python.org/packages/" |
| 9539 | "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5" |
| 9540 | "/ply-" version ".tar.gz")) |
| 9541 | (sha256 |
| 9542 | (base32 |
| 9543 | "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7")))) |
| 9544 | (build-system python-build-system) |
| 9545 | (home-page "http://www.dabeaz.com/ply/") |
| 9546 | (synopsis "Python Lex & Yacc") |
| 9547 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. |
| 9548 | It uses LR parsing and does extensive error checking.") |
| 9549 | (license license:bsd-3) |
| 9550 | (properties `((python2-variant . ,(delay python2-ply)))))) |
| 9551 | |
| 9552 | (define-public python2-ply |
| 9553 | (package |
| 9554 | (inherit (package-with-python2 |
| 9555 | (strip-python2-variant python-ply))) |
| 9556 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 9557 | |
| 9558 | (define-public python-tabulate |
| 9559 | (package |
| 9560 | (name "python-tabulate") |
| 9561 | (version "0.7.5") |
| 9562 | (source (origin |
| 9563 | (method url-fetch) |
| 9564 | (uri (pypi-uri "tabulate" version)) |
| 9565 | (sha256 |
| 9566 | (base32 |
| 9567 | "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch")) |
| 9568 | ;; Fix tests |
| 9569 | (modules '((guix build utils))) |
| 9570 | (snippet '(substitute* '("test/test_cli.py" |
| 9571 | "test/test_input.py" |
| 9572 | "test/test_output.py" |
| 9573 | "test/test_regression.py") |
| 9574 | (("from common") "from nose.tools"))))) |
| 9575 | (build-system python-build-system) |
| 9576 | (native-inputs |
| 9577 | `(("python-setuptools" ,python-setuptools) |
| 9578 | ;; For testing |
| 9579 | ("python-nose" ,python-nose))) |
| 9580 | (home-page "https://bitbucket.org/astanin/python-tabulate") |
| 9581 | (synopsis "Pretty-print tabular data") |
| 9582 | (description |
| 9583 | "Tabulate is a library and command-line utility to pretty-print tabular |
| 9584 | data in Python.") |
| 9585 | (license license:expat))) |
| 9586 | |
| 9587 | (define-public python2-tabulate |
| 9588 | (package-with-python2 python-tabulate)) |
| 9589 | |
| 9590 | (define-public python-kazoo |
| 9591 | (package |
| 9592 | (name "python-kazoo") |
| 9593 | (version "2.2.1") |
| 9594 | (source |
| 9595 | (origin |
| 9596 | (method url-fetch) |
| 9597 | (uri (pypi-uri "kazoo" version)) |
| 9598 | (sha256 |
| 9599 | (base32 |
| 9600 | "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj")))) |
| 9601 | (build-system python-build-system) |
| 9602 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper |
| 9603 | (native-inputs |
| 9604 | `(("python-setuptools" ,python-setuptools))) |
| 9605 | (propagated-inputs |
| 9606 | `(("python-six" ,python-six))) |
| 9607 | (home-page "https://kazoo.readthedocs.org") |
| 9608 | (synopsis "High-level Zookeeper client library") |
| 9609 | (description |
| 9610 | "Kazoo is a Python client library for the Apache Zookeeper distributed |
| 9611 | application service. It is designed to be easy to use and to avoid common |
| 9612 | programming errors.") |
| 9613 | (license license:asl2.0))) |
| 9614 | |
| 9615 | (define-public python2-kazoo |
| 9616 | (package-with-python2 python-kazoo)) |
| 9617 | |
| 9618 | (define-public python-pykafka |
| 9619 | (package |
| 9620 | (name "python-pykafka") |
| 9621 | (version "2.4.0") |
| 9622 | (source (origin |
| 9623 | (method url-fetch) |
| 9624 | (uri (string-append |
| 9625 | "https://pypi.python.org/packages/8b/3e/" |
| 9626 | "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/" |
| 9627 | "pykafka-" version ".tar.gz")) |
| 9628 | (sha256 |
| 9629 | (base32 |
| 9630 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) |
| 9631 | (build-system python-build-system) |
| 9632 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. |
| 9633 | (native-inputs |
| 9634 | `(("python-setuptools" ,python-setuptools))) |
| 9635 | (propagated-inputs |
| 9636 | `(("python-gevent" ,python-gevent) |
| 9637 | ("python-kazoo" ,python-kazoo) |
| 9638 | ("python-tabulate" ,python-tabulate))) |
| 9639 | (inputs |
| 9640 | `(("librdkafka" ,librdkafka))) |
| 9641 | (home-page "https://pykafka.readthedocs.io/") |
| 9642 | (synopsis "Apache Kafka client for Python") |
| 9643 | (description |
| 9644 | "PyKafka is a client for the Apache Kafka distributed messaging system. |
| 9645 | It includes Python implementations of Kafka producers and consumers, which |
| 9646 | are optionally backed by a C extension built on librdkafka.") |
| 9647 | (license license:asl2.0))) |
| 9648 | |
| 9649 | (define-public python2-pykafka |
| 9650 | (package-with-python2 python-pykafka)) |
| 9651 | |
| 9652 | (define-public python-wcwidth |
| 9653 | (package |
| 9654 | (name "python-wcwidth") |
| 9655 | (version "0.1.6") |
| 9656 | (source |
| 9657 | (origin |
| 9658 | (method url-fetch) |
| 9659 | (uri (string-append |
| 9660 | "https://pypi.python.org/packages/" |
| 9661 | "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/" |
| 9662 | "wcwidth-" version ".tar.gz")) |
| 9663 | (sha256 |
| 9664 | (base32 |
| 9665 | "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw")))) |
| 9666 | (build-system python-build-system) |
| 9667 | (home-page "https://github.com/jquast/wcwidth") |
| 9668 | (synopsis "Measure number of terminal column cells of wide-character codes") |
| 9669 | (description "Wcwidth measures the number of terminal column cells of |
| 9670 | wide-character codes. It is useful for those implementing a terminal emulator, |
| 9671 | or programs that carefully produce output to be interpreted by one. It is a |
| 9672 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions |
| 9673 | specified in POSIX.1-2001 and POSIX.1-2008.") |
| 9674 | (license license:expat) |
| 9675 | (properties `((python2-variant . ,(delay python2-wcwidth)))))) |
| 9676 | |
| 9677 | (define-public python2-wcwidth |
| 9678 | (package |
| 9679 | (inherit (package-with-python2 |
| 9680 | (strip-python2-variant python-wcwidth))) |
| 9681 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) |
| 9682 | |
| 9683 | (define-public python2-jsonrpclib |
| 9684 | (package |
| 9685 | (name "python2-jsonrpclib") |
| 9686 | (version "0.1.7") |
| 9687 | (source (origin |
| 9688 | (method url-fetch) |
| 9689 | (uri (string-append |
| 9690 | "https://pypi.python.org/packages/source/j/jsonrpclib/" |
| 9691 | "jsonrpclib-" version ".tar.gz")) |
| 9692 | (sha256 |
| 9693 | (base32 |
| 9694 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) |
| 9695 | (build-system python-build-system) |
| 9696 | (native-inputs |
| 9697 | `(("python2-setuptools" ,python2-setuptools))) |
| 9698 | (arguments |
| 9699 | `(#:tests? #f |
| 9700 | #:python ,python-2)) |
| 9701 | (home-page "https://github.com/joshmarshall/jsonrpclib/") |
| 9702 | (synopsis "Implementation of JSON-RPC specification for Python") |
| 9703 | (description |
| 9704 | "This library is an implementation of the JSON-RPC specification. |
| 9705 | It supports both the original 1.0 specification, as well as the |
| 9706 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, |
| 9707 | etc.") |
| 9708 | (license license:asl2.0))) |
| 9709 | |
| 9710 | (define-public python-chai |
| 9711 | (package |
| 9712 | (name "python-chai") |
| 9713 | (version "1.1.1") |
| 9714 | (source (origin |
| 9715 | (method url-fetch) |
| 9716 | (uri (pypi-uri "chai" version)) |
| 9717 | (sha256 |
| 9718 | (base32 |
| 9719 | "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) |
| 9720 | (build-system python-build-system) |
| 9721 | (native-inputs |
| 9722 | `(("python-setuptools" ,python-setuptools))) |
| 9723 | (home-page "https://github.com/agoragames/chai") |
| 9724 | (synopsis "Mocking framework for Python") |
| 9725 | (description |
| 9726 | "Chai provides an api for mocking, stubbing and spying your python |
| 9727 | objects, patterned after the Mocha library for Ruby.") |
| 9728 | (license license:bsd-3))) |
| 9729 | |
| 9730 | (define-public python2-chai |
| 9731 | (package-with-python2 python-chai)) |
| 9732 | |
| 9733 | (define-public python-arrow |
| 9734 | (package |
| 9735 | (name "python-arrow") |
| 9736 | (version "0.8.0") |
| 9737 | (source (origin |
| 9738 | (method url-fetch) |
| 9739 | (uri (pypi-uri "arrow" version)) |
| 9740 | (sha256 |
| 9741 | (base32 |
| 9742 | "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j")))) |
| 9743 | (build-system python-build-system) |
| 9744 | (native-inputs |
| 9745 | `(("python-setuptools" ,python-setuptools) |
| 9746 | ;; For testing |
| 9747 | ("python-chai" ,python-chai) |
| 9748 | ("python-simplejson" ,python-simplejson))) |
| 9749 | (propagated-inputs |
| 9750 | `(("python-dateutil" ,python-dateutil-2))) |
| 9751 | (home-page "https://github.com/crsmithdev/arrow/") |
| 9752 | (synopsis "Dates and times for Python") |
| 9753 | (description |
| 9754 | "Arrow is a Python library to creating, manipulating, formatting and |
| 9755 | converting dates, times, and timestamps. It implements and updates the |
| 9756 | datetime type.") |
| 9757 | (license license:asl2.0))) |
| 9758 | |
| 9759 | (define-public python2-arrow |
| 9760 | (package-with-python2 python-arrow)) |
| 9761 | |
| 9762 | (define-public python-inflection |
| 9763 | (package |
| 9764 | (name "python-inflection") |
| 9765 | (version "0.3.1") |
| 9766 | (source |
| 9767 | (origin (method url-fetch) |
| 9768 | (uri (pypi-uri "inflection" version)) |
| 9769 | (sha256 |
| 9770 | (base32 |
| 9771 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) |
| 9772 | (build-system python-build-system) |
| 9773 | (native-inputs |
| 9774 | `(("python-setuptools" ,python-setuptools))) |
| 9775 | (home-page "http://github.com/jpvanhal/inflection") |
| 9776 | (synopsis "Python string transformation library") |
| 9777 | (description |
| 9778 | "Inflection is a string transformation library. It singularizes |
| 9779 | and pluralizes English words, and transforms strings from CamelCase to |
| 9780 | underscored string.") |
| 9781 | (license license:expat))) |
| 9782 | |
| 9783 | (define-public python2-inflection |
| 9784 | (package-with-python2 python-inflection)) |
| 9785 | |
| 9786 | (define-public python-pylev |
| 9787 | (package |
| 9788 | (name "python-pylev") |
| 9789 | (version "1.3.0") |
| 9790 | (source (origin |
| 9791 | (method url-fetch) |
| 9792 | (uri (pypi-uri "pylev" version)) |
| 9793 | (sha256 |
| 9794 | (base32 |
| 9795 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) |
| 9796 | (build-system python-build-system) |
| 9797 | (native-inputs |
| 9798 | `(("python-setuptools" ,python-setuptools))) |
| 9799 | (home-page "http://github.com/toastdriven/pylev") |
| 9800 | (synopsis "Levenshtein distance implementation in Python") |
| 9801 | (description "Pure Python Levenshtein implementation, based off the |
| 9802 | Wikipedia code samples at |
| 9803 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") |
| 9804 | (license license:bsd-3))) |
| 9805 | |
| 9806 | (define-public python2-pylev |
| 9807 | (package-with-python2 python-pylev)) |
| 9808 | |
| 9809 | (define-public python-cleo |
| 9810 | (package |
| 9811 | (name "python-cleo") |
| 9812 | (version "0.4.1") |
| 9813 | (source (origin |
| 9814 | (method url-fetch) |
| 9815 | (uri (pypi-uri "cleo" version)) |
| 9816 | (sha256 |
| 9817 | (base32 |
| 9818 | "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva")))) |
| 9819 | (build-system python-build-system) |
| 9820 | (native-inputs |
| 9821 | `(("python-setuptools" ,python-setuptools) |
| 9822 | ;; For testing |
| 9823 | ("python-mock" ,python-mock) |
| 9824 | ("python-pytest" ,python-pytest))) |
| 9825 | (propagated-inputs |
| 9826 | `(("python-psutil" ,python-psutil) |
| 9827 | ("python-pylev" ,python-pylev))) |
| 9828 | (home-page "https://github.com/sdispater/cleo") |
| 9829 | (synopsis "Command-line arguments library for Python") |
| 9830 | (description |
| 9831 | "Cleo allows you to create command-line commands with signature in |
| 9832 | docstring and colored output.") |
| 9833 | (license license:expat))) |
| 9834 | |
| 9835 | (define-public python2-cleo |
| 9836 | (package-with-python2 python-cleo)) |
| 9837 | |
| 9838 | (define-public python-lazy-object-proxy |
| 9839 | (package |
| 9840 | (name "python-lazy-object-proxy") |
| 9841 | (version "1.2.2") |
| 9842 | (source (origin |
| 9843 | (method url-fetch) |
| 9844 | (uri (pypi-uri "lazy-object-proxy" version)) |
| 9845 | (sha256 |
| 9846 | (base32 |
| 9847 | "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) |
| 9848 | (build-system python-build-system) |
| 9849 | (native-inputs |
| 9850 | `(("python-setuptools" ,python-setuptools))) |
| 9851 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") |
| 9852 | (synopsis "Lazy object proxy for python") |
| 9853 | (description |
| 9854 | "Lazy object proxy is an object that wraps a callable but defers the call |
| 9855 | until the object is actually required, and caches the result of said call.") |
| 9856 | (license license:bsd-2))) |
| 9857 | |
| 9858 | (define-public python2-lazy-object-proxy |
| 9859 | (package-with-python2 python-lazy-object-proxy)) |
| 9860 | |
| 9861 | (define-public python-dnspython |
| 9862 | (package |
| 9863 | (name "python-dnspython") |
| 9864 | (version "1.14.0") |
| 9865 | (source (origin |
| 9866 | (method url-fetch) |
| 9867 | (uri (string-append "http://www.dnspython.org/kits/" |
| 9868 | version "/dnspython-" version ".tar.gz")) |
| 9869 | (sha256 |
| 9870 | (base32 |
| 9871 | "1z472r63gdqsxhsxj3plr5vs478yf4303vrqxxpsccc940g441hl")))) |
| 9872 | (build-system python-build-system) |
| 9873 | (arguments '(#:tests? #f)) ; XXX: requires internet access |
| 9874 | (native-inputs |
| 9875 | `(("python-setuptools" ,python-setuptools))) |
| 9876 | (home-page "http://www.dnspython.org") |
| 9877 | (synopsis "DNS toolkit for Python") |
| 9878 | (description |
| 9879 | "dnspython is a DNS toolkit for Python. It supports almost all record |
| 9880 | types. It can be used for queries, zone transfers, and dynamic updates. |
| 9881 | It supports TSIG authenticated messages and EDNS0.") |
| 9882 | (license license:expat))) |
| 9883 | |
| 9884 | (define-public python2-dnspython |
| 9885 | (package-with-python2 python-dnspython)) |
| 9886 | |
| 9887 | (define-public python-email-validator |
| 9888 | (package |
| 9889 | (name "python-email-validator") |
| 9890 | (version "1.0.1") |
| 9891 | (source |
| 9892 | (origin (method url-fetch) |
| 9893 | (uri (pypi-uri "email_validator" version)) |
| 9894 | (sha256 |
| 9895 | (base32 |
| 9896 | "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw")))) |
| 9897 | (build-system python-build-system) |
| 9898 | (arguments |
| 9899 | '(#:phases |
| 9900 | (modify-phases %standard-phases |
| 9901 | (add-before 'build 'use-dnspython |
| 9902 | (lambda _ |
| 9903 | (substitute* "setup.py" |
| 9904 | (("dnspython3") "dnspython")) |
| 9905 | #t))))) |
| 9906 | (native-inputs |
| 9907 | `(("python-setuptools" ,python-setuptools))) |
| 9908 | (propagated-inputs |
| 9909 | `(("python-dnspython" ,python-dnspython) |
| 9910 | ("python-idna" ,python-idna))) |
| 9911 | (home-page "https://github.com/JoshData/python-email-validator") |
| 9912 | (synopsis "Email address validation library for Python") |
| 9913 | (description |
| 9914 | "This library validates email address syntax and deliverability.") |
| 9915 | (license license:cc0))) |
| 9916 | |
| 9917 | (define-public python2-email-validator |
| 9918 | (package-with-python2 python-email-validator)) |
| 9919 | |
| 9920 | (define-public python-ukpostcodeparser |
| 9921 | (package |
| 9922 | (name "python-ukpostcodeparser") |
| 9923 | (version "1.0.3") |
| 9924 | (source (origin |
| 9925 | (method url-fetch) |
| 9926 | (uri (pypi-uri "UkPostcodeParser" version)) |
| 9927 | (sha256 |
| 9928 | (base32 |
| 9929 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) |
| 9930 | (build-system python-build-system) |
| 9931 | (native-inputs |
| 9932 | `(("python-setuptools" ,python-setuptools))) |
| 9933 | (home-page "https://github.com/hamstah/ukpostcodeparser") |
| 9934 | (synopsis "UK Postcode parser for Python") |
| 9935 | (description |
| 9936 | "This library provides the @code{parse_uk_postcode} function for |
| 9937 | parsing UK postcodes.") |
| 9938 | (license license:expat))) |
| 9939 | |
| 9940 | (define-public python2-ukpostcodeparser |
| 9941 | (package-with-python2 python-ukpostcodeparser)) |
| 9942 | |
| 9943 | (define-public python-fake-factory |
| 9944 | (package |
| 9945 | (name "python-fake-factory") |
| 9946 | (version "0.7.2") |
| 9947 | (source (origin |
| 9948 | (method url-fetch) |
| 9949 | (uri (pypi-uri "fake-factory" version)) |
| 9950 | (sha256 |
| 9951 | (base32 |
| 9952 | "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g")))) |
| 9953 | (build-system python-build-system) |
| 9954 | (native-inputs |
| 9955 | `(("python-setuptools" ,python-setuptools) |
| 9956 | ;; For testing |
| 9957 | ("python-email-validator" ,python-email-validator) |
| 9958 | ("python-mock" ,python-mock) |
| 9959 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) |
| 9960 | (propagated-inputs |
| 9961 | `(("python-dateutil" ,python-dateutil-2) |
| 9962 | ("python-six" ,python-six))) |
| 9963 | (home-page "https://github.com/joke2k/faker") |
| 9964 | (synopsis "Python package that generates fake data") |
| 9965 | (description |
| 9966 | "Faker is a Python package that generates fake data such as names, |
| 9967 | addresses, and phone numbers.") |
| 9968 | (license license:expat) |
| 9969 | (properties `((python2-variant . ,(delay python2-fake-factory)))))) |
| 9970 | |
| 9971 | (define-public python2-fake-factory |
| 9972 | (let ((base (package-with-python2 (strip-python2-variant |
| 9973 | python-fake-factory)))) |
| 9974 | (package |
| 9975 | (inherit base) |
| 9976 | (propagated-inputs |
| 9977 | `(("python2-ipaddress" ,python2-ipaddress) |
| 9978 | ,@(package-propagated-inputs base)))))) |
| 9979 | |
| 9980 | (define-public python-pyaml |
| 9981 | (package |
| 9982 | (name "python-pyaml") |
| 9983 | (version "15.8.2") |
| 9984 | (source (origin |
| 9985 | (method url-fetch) |
| 9986 | (uri (pypi-uri "pyaml" version)) |
| 9987 | (sha256 |
| 9988 | (base32 |
| 9989 | "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w")))) |
| 9990 | (build-system python-build-system) |
| 9991 | (native-inputs |
| 9992 | `(("python-setuptools" ,python-setuptools))) |
| 9993 | (propagated-inputs |
| 9994 | `(("python-pyyaml" ,python-pyyaml))) |
| 9995 | (home-page "https://github.com/mk-fg/pretty-yaml") |
| 9996 | (synopsis "YAML pretty-print library for Python") |
| 9997 | (description |
| 9998 | "pyaml is a PyYAML based python module to produce pretty and readable |
| 9999 | YAML-serialized data.") |
| 10000 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))) |
| 10001 | |
| 10002 | (define-public python2-pyaml |
| 10003 | (package-with-python2 python-pyaml)) |
| 10004 | |
| 10005 | (define-public python-flexmock |
| 10006 | (package |
| 10007 | (name "python-flexmock") |
| 10008 | (version "0.10.2") |
| 10009 | (source (origin |
| 10010 | (method url-fetch) |
| 10011 | (uri (pypi-uri "flexmock" version)) |
| 10012 | (sha256 |
| 10013 | (base32 |
| 10014 | "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy")))) |
| 10015 | (build-system python-build-system) |
| 10016 | (native-inputs |
| 10017 | `(("python-setuptools" ,python-setuptools))) |
| 10018 | (home-page "https://flexmock.readthedocs.org") |
| 10019 | (synopsis "Testing library for Python") |
| 10020 | (description |
| 10021 | "flexmock is a testing library for Python that makes it easy to create |
| 10022 | mocks, stubs and fakes.") |
| 10023 | (license license:bsd-3))) |
| 10024 | |
| 10025 | (define-public python2-flexmock |
| 10026 | (package-with-python2 python-flexmock)) |
| 10027 | |
| 10028 | (define-public python-orator |
| 10029 | (package |
| 10030 | (name "python-orator") |
| 10031 | (version "0.8.2") |
| 10032 | (source (origin |
| 10033 | (method url-fetch) |
| 10034 | (uri (pypi-uri "orator" version)) |
| 10035 | (sha256 |
| 10036 | (base32 |
| 10037 | "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) |
| 10038 | (build-system python-build-system) |
| 10039 | (arguments '(#:tests? #f)) ; no tests |
| 10040 | (native-inputs |
| 10041 | `(("python-setuptools" ,python-setuptools))) |
| 10042 | (propagated-inputs |
| 10043 | `(("python-arrow" ,python-arrow) |
| 10044 | ("python-blinker" ,python-blinker) |
| 10045 | ("python-cleo" ,python-cleo) |
| 10046 | ("python-fake-factory" ,python-fake-factory) |
| 10047 | ("python-inflection" ,python-inflection) |
| 10048 | ("python-lazy-object-proxy" ,python-lazy-object-proxy) |
| 10049 | ("python-pyaml" ,python-pyaml) |
| 10050 | ("python-simplejson" ,python-simplejson) |
| 10051 | ("python-wrapt" ,python-wrapt))) |
| 10052 | (home-page "https://orator-orm.com/") |
| 10053 | (synopsis "ActiveRecord ORM for Python") |
| 10054 | (description |
| 10055 | "Orator provides a simple ActiveRecord-like Object Relational Mapping |
| 10056 | implementation for Python.") |
| 10057 | (license license:expat) |
| 10058 | (properties `((python2-variant . ,(delay python2-orator)))))) |
| 10059 | |
| 10060 | (define-public python2-orator |
| 10061 | (let ((base (package-with-python2 (strip-python2-variant python-orator)))) |
| 10062 | (package |
| 10063 | (inherit base) |
| 10064 | (propagated-inputs |
| 10065 | `(("python2-ipaddress" ,python2-ipaddress) |
| 10066 | ,@(package-propagated-inputs base)))))) |
| 10067 | |
| 10068 | (define-public python-prompt-toolkit |
| 10069 | (package |
| 10070 | (name "python-prompt-toolkit") |
| 10071 | (version "1.0.7") |
| 10072 | (source |
| 10073 | (origin |
| 10074 | (method url-fetch) |
| 10075 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
| 10076 | (sha256 |
| 10077 | (base32 |
| 10078 | "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg")))) |
| 10079 | (build-system python-build-system) |
| 10080 | (inputs `(("python-wcwidth" ,python-wcwidth) |
| 10081 | ("python-pygments" ,python-pygments))) |
| 10082 | (native-inputs `(("python-six" ,python-six))) |
| 10083 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") |
| 10084 | (synopsis "Library for building command line interfaces in Python") |
| 10085 | (description |
| 10086 | "Prompt-Toolkit is a library for building interactive command line |
| 10087 | interfaces in Python. It's like GNU Readline but it also features syntax |
| 10088 | highlighting while typing, out-of-the-box multi-line input editing, advanced |
| 10089 | code completion, incremental search, support for Chinese double-width |
| 10090 | characters, mouse support, and auto suggestions.") |
| 10091 | (license license:bsd-3) |
| 10092 | (properties `((python2-variant . ,(delay python2-prompt-toolkit)))))) |
| 10093 | |
| 10094 | (define-public python2-prompt-toolkit |
| 10095 | (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit)))) |
| 10096 | (package |
| 10097 | (inherit base) |
| 10098 | (native-inputs |
| 10099 | `(("python2-setuptools" ,python2-setuptools) |
| 10100 | ,@(package-native-inputs base)))))) |
| 10101 | |
| 10102 | (define-public python-jedi |
| 10103 | (package |
| 10104 | (name "python-jedi") |
| 10105 | (version "0.9.0") |
| 10106 | (source |
| 10107 | (origin |
| 10108 | (method url-fetch) |
| 10109 | (uri (pypi-uri "jedi" version)) |
| 10110 | (sha256 |
| 10111 | (base32 |
| 10112 | "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) |
| 10113 | (build-system python-build-system) |
| 10114 | (home-page "https://github.com/davidhalter/jedi") |
| 10115 | (synopsis |
| 10116 | "Autocompletion for Python that can be used for text editors") |
| 10117 | (description |
| 10118 | "Jedi is an autocompletion tool for Python that can be used for text editors.") |
| 10119 | (license license:expat) |
| 10120 | (properties `((python2-variant . ,(delay python2-jedi)))))) |
| 10121 | |
| 10122 | (define-public python2-jedi |
| 10123 | (let ((base (package-with-python2 (strip-python2-variant python-jedi)))) |
| 10124 | (package |
| 10125 | (inherit base) |
| 10126 | (native-inputs |
| 10127 | `(("python2-setuptools" ,python2-setuptools) |
| 10128 | ,@(package-native-inputs base)))))) |
| 10129 | |
| 10130 | (define-public ptpython |
| 10131 | (package |
| 10132 | (name "ptpython") |
| 10133 | (version "0.34") |
| 10134 | (source (origin |
| 10135 | (method url-fetch) |
| 10136 | (uri (pypi-uri "ptpython" version)) |
| 10137 | (sha256 |
| 10138 | (base32 |
| 10139 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) |
| 10140 | (build-system python-build-system) |
| 10141 | (inputs |
| 10142 | `(("python-docopt" ,python-docopt) |
| 10143 | ("python-jedi" ,python-jedi) |
| 10144 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
| 10145 | ("python-pygments" ,python-pygments) |
| 10146 | ("python-setuptools" ,python-setuptools))) |
| 10147 | (home-page "https://github.com/jonathanslenders/ptpython") |
| 10148 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") |
| 10149 | (description |
| 10150 | "ptpython is a Python read-eval-print loop with IDE-like features. |
| 10151 | It supports syntax highlighting, multiline editing, autocompletion, mouse, |
| 10152 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters |
| 10153 | etc.") |
| 10154 | (license license:bsd-3) |
| 10155 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
| 10156 | |
| 10157 | (define-public ptpython-2 |
| 10158 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) |
| 10159 | (package |
| 10160 | (inherit base) |
| 10161 | (name "ptpython2")))) |
| 10162 | |
| 10163 | (define-public python-requests-oauthlib |
| 10164 | (package |
| 10165 | (name "python-requests-oauthlib") |
| 10166 | (version "0.6.2") |
| 10167 | (source |
| 10168 | (origin |
| 10169 | (method url-fetch) |
| 10170 | (uri (pypi-uri "requests-oauthlib" version)) |
| 10171 | (sha256 |
| 10172 | (base32 |
| 10173 | "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) |
| 10174 | (build-system python-build-system) |
| 10175 | (arguments |
| 10176 | `(#:phases |
| 10177 | (modify-phases %standard-phases |
| 10178 | ;; removes tests that require network access |
| 10179 | (add-before 'check 'pre-check |
| 10180 | (lambda _ |
| 10181 | (delete-file "tests/test_core.py") |
| 10182 | #t))))) |
| 10183 | (native-inputs |
| 10184 | `(("python-requests-mock" ,python-requests-mock) |
| 10185 | ("python-mock" ,python-mock))) |
| 10186 | (inputs |
| 10187 | `(("python-oauthlib" ,python-oauthlib) |
| 10188 | ("python-requests" ,python-requests))) |
| 10189 | (home-page |
| 10190 | "https://github.com/requests/requests-oauthlib") |
| 10191 | (synopsis |
| 10192 | "OAuthlib authentication support for Requests") |
| 10193 | (description |
| 10194 | "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to |
| 10195 | provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") |
| 10196 | (license license:isc) |
| 10197 | (properties `((python2-variant . ,(delay python2-requests-oauthlib)))))) |
| 10198 | |
| 10199 | (define-public python2-requests-oauthlib |
| 10200 | (let ((base (package-with-python2 (strip-python2-variant python-requests-oauthlib)))) |
| 10201 | (package |
| 10202 | (inherit base) |
| 10203 | (native-inputs `(("python2-setuptools" ,python2-setuptools) |
| 10204 | ,@(package-native-inputs base)))))) |
| 10205 | |
| 10206 | (define-public python-stem |
| 10207 | (package |
| 10208 | (name "python-stem") |
| 10209 | (version "1.4.1b") |
| 10210 | (source |
| 10211 | (origin |
| 10212 | (method url-fetch) |
| 10213 | (uri (pypi-uri "stem" version ".tar.bz2")) |
| 10214 | (sha256 |
| 10215 | (base32 |
| 10216 | "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7")))) |
| 10217 | (build-system python-build-system) |
| 10218 | (arguments |
| 10219 | `(#:phases |
| 10220 | (modify-phases %standard-phases |
| 10221 | (replace 'check |
| 10222 | (lambda _ |
| 10223 | (zero? (system* "./run_tests.py" "--unit"))))))) |
| 10224 | (native-inputs |
| 10225 | `(("python-mock" ,python-mock) |
| 10226 | ("python-pep8" ,python-pep8) |
| 10227 | ("python-pyflakes" ,python-pyflakes))) |
| 10228 | (inputs |
| 10229 | `(("python-pycrypto" ,python-pycrypto))) |
| 10230 | (home-page "https://stem.torproject.org/") |
| 10231 | (synopsis |
| 10232 | "Python controller library that allows applications to interact with Tor") |
| 10233 | (description |
| 10234 | "Stem is a Python controller library for Tor. With it you can use Tor's |
| 10235 | control protocol to script against the Tor process and read descriptor data |
| 10236 | relays publish about themselves.") |
| 10237 | (license license:lgpl3))) |
| 10238 | |
| 10239 | (define-public python2-stem |
| 10240 | (package-with-python2 python-stem)) |
| 10241 | |
| 10242 | (define-public python-pyserial |
| 10243 | (package |
| 10244 | (name "python-pyserial") |
| 10245 | (version "3.1.1") |
| 10246 | (source |
| 10247 | (origin |
| 10248 | (method url-fetch) |
| 10249 | (uri (pypi-uri "pyserial" version)) |
| 10250 | (sha256 |
| 10251 | (base32 |
| 10252 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) |
| 10253 | (build-system python-build-system) |
| 10254 | (home-page |
| 10255 | "https://github.com/pyserial/pyserial") |
| 10256 | (synopsis "Python Serial Port Bindings") |
| 10257 | (description "@code{pyserial} provide serial port bindings for Python. It |
| 10258 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS |
| 10259 | and/or Xon/Xoff. The port is accessed in RAW mode.") |
| 10260 | (license license:bsd-3) |
| 10261 | (properties `((python2-variant . ,(delay python2-pyserial)))))) |
| 10262 | |
| 10263 | (define-public python2-pyserial |
| 10264 | (let ((base (package-with-python2 (strip-python2-variant python-pyserial)))) |
| 10265 | (package |
| 10266 | (inherit base) |
| 10267 | (native-inputs |
| 10268 | `(("python2-setuptools" ,python2-setuptools) |
| 10269 | ,@(package-native-inputs base)))))) |
| 10270 | |
| 10271 | (define-public python-kivy |
| 10272 | (package |
| 10273 | (name "python-kivy") |
| 10274 | (version "1.9.1") |
| 10275 | (source |
| 10276 | (origin |
| 10277 | (method url-fetch) |
| 10278 | (uri (pypi-uri "kivy" version)) |
| 10279 | (file-name (string-append name "-" version ".tar.gz")) |
| 10280 | (sha256 |
| 10281 | (base32 |
| 10282 | "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19")))) |
| 10283 | (build-system python-build-system) |
| 10284 | (arguments |
| 10285 | `(#:tests? #f ; Tests require many optional packages |
| 10286 | #:phases |
| 10287 | (modify-phases %standard-phases |
| 10288 | (replace 'build (lambda _ (zero? (system* "make" "force")))) |
| 10289 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths |
| 10290 | (lambda* (#:key inputs #:allow-other-keys) |
| 10291 | (setenv "KIVY_SDL2_PATH" |
| 10292 | (string-append (assoc-ref inputs "sdl-union") |
| 10293 | "/include/SDL2")) |
| 10294 | #t))))) |
| 10295 | (native-inputs |
| 10296 | `(("pkg-config" ,pkg-config))) |
| 10297 | (inputs |
| 10298 | `(("python-cython" ,python-cython) |
| 10299 | ("gstreamer" ,gstreamer) |
| 10300 | ("mesa" ,mesa) |
| 10301 | ("sdl-union" |
| 10302 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) |
| 10303 | (home-page "http://kivy.org") |
| 10304 | (synopsis |
| 10305 | "Multitouch application framework") |
| 10306 | (description |
| 10307 | "A software library for rapid development of |
| 10308 | hardware-accelerated multitouch applications.") |
| 10309 | (license license:expat))) |
| 10310 | |
| 10311 | (define-public python2-kivy |
| 10312 | (package-with-python2 python-kivy)) |
| 10313 | |
| 10314 | (define-public python-kivy-next |
| 10315 | (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe") |
| 10316 | (revision "1")) |
| 10317 | (package (inherit python-kivy) |
| 10318 | (name "python-kivy-next") |
| 10319 | (version (string-append "1.9.1-" revision "." |
| 10320 | (string-take commit 7))) |
| 10321 | (source |
| 10322 | (origin |
| 10323 | (method git-fetch) |
| 10324 | (uri (git-reference |
| 10325 | (url "https://github.com/kivy/kivy") |
| 10326 | (commit commit))) |
| 10327 | (file-name (string-append name "-" version "-checkout")) |
| 10328 | (sha256 |
| 10329 | (base32 |
| 10330 | "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p"))))))) |
| 10331 | |
| 10332 | (define-public python2-kivy-next |
| 10333 | (package-with-python2 python-kivy-next)) |
| 10334 | |
| 10335 | (define-public python-binaryornot |
| 10336 | (package |
| 10337 | (name "python-binaryornot") |
| 10338 | (version "0.4.0") |
| 10339 | (source (origin |
| 10340 | (method url-fetch) |
| 10341 | (uri (pypi-uri "binaryornot" version)) |
| 10342 | (sha256 |
| 10343 | (base32 |
| 10344 | "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) |
| 10345 | (build-system python-build-system) |
| 10346 | (inputs |
| 10347 | `(("python-chardet" ,python-chardet) |
| 10348 | ("python-hypothesis" ,python-hypothesis))) |
| 10349 | (home-page "https://github.com/audreyr/binaryornot") |
| 10350 | (synopsis "Package to check if a file is binary or text") |
| 10351 | (description "Ultra-lightweight pure Python package to check if a file is |
| 10352 | binary or text.") |
| 10353 | (license license:bsd-3) |
| 10354 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) |
| 10355 | |
| 10356 | (define-public python2-binaryornot |
| 10357 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) |
| 10358 | (package (inherit base) |
| 10359 | (native-inputs |
| 10360 | `(("python2-setuptools" ,python2-setuptools) |
| 10361 | ,@(package-native-inputs base))) |
| 10362 | (inputs |
| 10363 | `(("python2-enum34" ,python2-enum34) |
| 10364 | ,@(package-inputs base)))))) |
| 10365 | |
| 10366 | (define-public python-nltk |
| 10367 | (package |
| 10368 | (name "python-nltk") |
| 10369 | (version "3.2.1") |
| 10370 | (source (origin |
| 10371 | (method url-fetch) |
| 10372 | (uri (pypi-uri "nltk" version)) |
| 10373 | (sha256 |
| 10374 | (base32 |
| 10375 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) |
| 10376 | (build-system python-build-system) |
| 10377 | (home-page "http://nltk.org/") |
| 10378 | (synopsis "Natural Language Toolkit") |
| 10379 | (description "It provides interfaces to over 50 corpora and lexical |
| 10380 | resources such as WordNet, along with a suite of text processing libraries |
| 10381 | for classification, tokenization, stemming, tagging, parsing, and semantic |
| 10382 | reasoning, wrappers for natural language processing libraries.") |
| 10383 | (license license:asl2.0) |
| 10384 | (properties `((python2-variant . ,(delay python2-nltk)))))) |
| 10385 | |
| 10386 | (define-public python2-nltk |
| 10387 | (let ((base (package-with-python2 (strip-python2-variant python-nltk)))) |
| 10388 | (package (inherit base) |
| 10389 | (native-inputs |
| 10390 | `(("python2-setuptools" ,python2-setuptools) |
| 10391 | ,@(package-native-inputs base)))))) |
| 10392 | |
| 10393 | (define-public python-pymongo |
| 10394 | (package |
| 10395 | (name "python-pymongo") |
| 10396 | (version "3.3.0") |
| 10397 | (source (origin |
| 10398 | (method url-fetch) |
| 10399 | (uri (pypi-uri "pymongo" version)) |
| 10400 | (sha256 |
| 10401 | (base32 |
| 10402 | "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) |
| 10403 | (build-system python-build-system) |
| 10404 | (inputs |
| 10405 | `(("python-certifi" ,python-certifi))) |
| 10406 | (home-page "http://github.com/mongodb/mongo-python-driver") |
| 10407 | (synopsis "Python driver for MongoDB") |
| 10408 | (description "Python driver for MongoDB.") |
| 10409 | (license license:asl2.0) |
| 10410 | (properties `((python2-variant . ,(delay python2-pymongo)))))) |
| 10411 | |
| 10412 | (define-public python2-pymongo |
| 10413 | (let ((base (package-with-python2 (strip-python2-variant python-pymongo)))) |
| 10414 | (package (inherit base) |
| 10415 | (native-inputs |
| 10416 | `(("python2-setuptools" ,python2-setuptools) |
| 10417 | ,@(package-native-inputs base)))))) |
| 10418 | |
| 10419 | (define-public python-sh |
| 10420 | (package |
| 10421 | (name "python-sh") |
| 10422 | (version "1.11") |
| 10423 | (source (origin |
| 10424 | (method url-fetch) |
| 10425 | (uri (pypi-uri "sh" version)) |
| 10426 | (sha256 |
| 10427 | (base32 |
| 10428 | "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) |
| 10429 | (build-system python-build-system) |
| 10430 | (arguments |
| 10431 | `(#:tests? #f)) ; no tests |
| 10432 | (home-page "https://github.com/amoffat/sh") |
| 10433 | (synopsis "Python subprocess interface") |
| 10434 | (description "Abstracts process invocation by providing a function |
| 10435 | interface for programs.") |
| 10436 | (license license:expat) |
| 10437 | (properties `((python2-variant . ,(delay python2-sh)))))) |
| 10438 | |
| 10439 | (define-public python2-sh |
| 10440 | (let ((base (package-with-python2 (strip-python2-variant python-sh)))) |
| 10441 | (package (inherit base) |
| 10442 | (native-inputs |
| 10443 | `(("python2-setuptools" ,python2-setuptools) |
| 10444 | ,@(package-native-inputs base)))))) |
| 10445 | |
| 10446 | (define-public python-consul |
| 10447 | (package |
| 10448 | (name "python-consul") |
| 10449 | (version "0.6.1") |
| 10450 | (source |
| 10451 | (origin |
| 10452 | (method url-fetch) |
| 10453 | (uri (pypi-uri "python-consul" version)) |
| 10454 | (sha256 |
| 10455 | (base32 |
| 10456 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) |
| 10457 | (build-system python-build-system) |
| 10458 | (native-inputs |
| 10459 | `(("python-pytest" ,python-pytest) |
| 10460 | ("python-requests" ,python-requests) |
| 10461 | ("python-six" ,python-six))) |
| 10462 | (home-page "https://github.com/cablehead/python-consul") |
| 10463 | (synopsis "Python client for Consul") |
| 10464 | (description |
| 10465 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service |
| 10466 | discovery, monitoring and configuration.") |
| 10467 | (license license:expat))) |
| 10468 | |
| 10469 | (define-public python2-consul |
| 10470 | (let ((consul (package-with-python2 python-consul))) |
| 10471 | (package (inherit consul) |
| 10472 | (native-inputs |
| 10473 | `(("python2-setuptools" ,python2-setuptools) |
| 10474 | ,@(package-native-inputs consul)))))) |
| 10475 | |
| 10476 | (define-public python-schematics |
| 10477 | (package |
| 10478 | (name "python-schematics") |
| 10479 | (version "1.1.1") |
| 10480 | (source |
| 10481 | (origin |
| 10482 | (method url-fetch) |
| 10483 | (uri (string-append |
| 10484 | "https://github.com/schematics/schematics/archive/v" version ".tar.gz")) |
| 10485 | (file-name (string-append name "-" version ".tar.gz")) |
| 10486 | (sha256 |
| 10487 | (base32 |
| 10488 | "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l")))) |
| 10489 | (build-system python-build-system) |
| 10490 | (inputs |
| 10491 | `(("python-six" ,python-six))) |
| 10492 | (arguments |
| 10493 | `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed |
| 10494 | ; version requirements (eg python-coveralls) |
| 10495 | (home-page "https://github.com/schematics/schematics") |
| 10496 | (synopsis "Python Data Structures for Humans") |
| 10497 | (description "Python Data Structures for Humans.") |
| 10498 | (license license:bsd-3) |
| 10499 | (properties `((python2-variant . ,(delay python2-schematics)))))) |
| 10500 | |
| 10501 | (define-public python2-schematics |
| 10502 | (let ((base (package-with-python2 (strip-python2-variant python-schematics)))) |
| 10503 | (package (inherit base) |
| 10504 | (native-inputs |
| 10505 | `(("python2-setuptools" ,python2-setuptools) |
| 10506 | ,@(package-native-inputs base)))))) |
| 10507 | |
| 10508 | (define-public python-publicsuffix |
| 10509 | (package |
| 10510 | (name "python-publicsuffix") |
| 10511 | (version "1.1.0") |
| 10512 | (source (origin |
| 10513 | (method url-fetch) |
| 10514 | (uri (pypi-uri "publicsuffix" version)) |
| 10515 | (sha256 |
| 10516 | (base32 |
| 10517 | "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf")))) |
| 10518 | (build-system python-build-system) |
| 10519 | (arguments |
| 10520 | `(#:tests? #f)) ; tests use the internet |
| 10521 | (home-page "https://www.tablix.org/~avian/git/publicsuffix.git") |
| 10522 | (synopsis "Get suffix for a domain name") |
| 10523 | (description "Get a public suffix for a domain name using the Public Suffix |
| 10524 | List.") |
| 10525 | (license license:expat) |
| 10526 | (properties `((python2-variant . ,(delay python2-nltk)))))) |
| 10527 | |
| 10528 | (define-public python2-publicsuffix |
| 10529 | (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix)))) |
| 10530 | (package (inherit base) |
| 10531 | (native-inputs |
| 10532 | `(("python2-setuptools" ,python2-setuptools) |
| 10533 | ,@(package-native-inputs base)))))) |
| 10534 | |
| 10535 | (define-public python-publicsuffix2 |
| 10536 | (package |
| 10537 | (name "python-publicsuffix2") |
| 10538 | (version "2.20160621") |
| 10539 | (source |
| 10540 | (origin |
| 10541 | (method url-fetch) |
| 10542 | (uri (pypi-uri "publicsuffix2" version ".tar.bz2")) |
| 10543 | (sha256 |
| 10544 | (base32 |
| 10545 | "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) |
| 10546 | (build-system python-build-system) |
| 10547 | (home-page "https://github.com/pombredanne/python-publicsuffix2") |
| 10548 | (synopsis "Get a public suffix for a domain name using the Public Suffix List") |
| 10549 | (description "Get a public suffix for a domain name using the Public Suffix |
| 10550 | List. Forked from and using the same API as the publicsuffix package.") |
| 10551 | (license (list license:expat license:mpl2.0)) |
| 10552 | (properties `((python2-variant . ,(delay python2-publicsuffix2)))))) |
| 10553 | |
| 10554 | (define-public python2-publicsuffix2 |
| 10555 | (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2)))) |
| 10556 | (package (inherit base) |
| 10557 | (native-inputs |
| 10558 | `(("python2-setuptools" ,python2-setuptools) |
| 10559 | ,@(package-native-inputs base)))))) |
| 10560 | |
| 10561 | (define-public python-url |
| 10562 | (package |
| 10563 | (name "python-url") |
| 10564 | (version "0.2.0") |
| 10565 | (source (origin |
| 10566 | (method url-fetch) |
| 10567 | (uri (pypi-uri "url" version)) |
| 10568 | (sha256 |
| 10569 | (base32 |
| 10570 | "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) |
| 10571 | (build-system python-build-system) |
| 10572 | (inputs |
| 10573 | `(("python-publicsuffix" ,python-publicsuffix))) |
| 10574 | (native-inputs |
| 10575 | `(("python-coverage" ,python-coverage) |
| 10576 | ("python-nose" ,python-nose))) |
| 10577 | (arguments |
| 10578 | `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" |
| 10579 | (home-page "http://github.com/seomoz/url-py") |
| 10580 | (synopsis "URL Parsing") |
| 10581 | (description "Library for parsing urls.") |
| 10582 | (license license:expat) |
| 10583 | (properties `((python2-variant . ,(delay python2-url)))))) |
| 10584 | |
| 10585 | (define-public python2-url |
| 10586 | (let ((base (package-with-python2 (strip-python2-variant python-url)))) |
| 10587 | (package (inherit base) |
| 10588 | (inputs |
| 10589 | `(("python2-publicsuffix" ,python2-publicsuffix))) |
| 10590 | (native-inputs |
| 10591 | `(("python2-setuptools" ,python2-setuptools) |
| 10592 | ,@(package-native-inputs base)))))) |
| 10593 | |
| 10594 | (define-public python-freezegun |
| 10595 | (package |
| 10596 | (name "python-freezegun") |
| 10597 | (version "0.3.7") |
| 10598 | (source |
| 10599 | (origin |
| 10600 | (method url-fetch) |
| 10601 | (uri (pypi-uri "freezegun" version)) |
| 10602 | (sha256 |
| 10603 | (base32 |
| 10604 | "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w")))) |
| 10605 | (build-system python-build-system) |
| 10606 | (native-inputs |
| 10607 | `(("python-mock" ,python-mock) |
| 10608 | ("python-nose" ,python-nose) |
| 10609 | ("python-coverage" ,python-coverage) |
| 10610 | ("python-dateutil-2" ,python-dateutil-2))) |
| 10611 | (inputs |
| 10612 | `(("python-six" ,python-six))) |
| 10613 | (arguments |
| 10614 | `(#:phases (modify-phases %standard-phases |
| 10615 | ;; The tests are normally executed via `make test`, but the PyPi |
| 10616 | ;; package does not include the Makefile. |
| 10617 | (replace 'check |
| 10618 | (lambda _ |
| 10619 | (zero? (system* "nosetests" "./tests/"))))))) |
| 10620 | (home-page "https://github.com/spulec/freezegun") |
| 10621 | (synopsis "Test utility for mocking the datetime module") |
| 10622 | (description |
| 10623 | "FreezeGun is a library that allows your python tests to travel through |
| 10624 | time by mocking the datetime module.") |
| 10625 | (license license:asl2.0))) |
| 10626 | |
| 10627 | (define-public python2-freezegun |
| 10628 | (let ((base (package-with-python2 (strip-python2-variant python-freezegun)))) |
| 10629 | (package (inherit base) |
| 10630 | (native-inputs |
| 10631 | `(("python2-setuptools" ,python2-setuptools) |
| 10632 | ,@(package-native-inputs base)))))) |
| 10633 | |
| 10634 | (define-public python-odfpy |
| 10635 | (package |
| 10636 | (name "python-odfpy") |
| 10637 | (version "1.3.3") |
| 10638 | (source (origin |
| 10639 | (method url-fetch) |
| 10640 | (uri (pypi-uri "odfpy" version)) |
| 10641 | (sha256 |
| 10642 | (base32 |
| 10643 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) |
| 10644 | (arguments |
| 10645 | `(#:modules ((srfi srfi-1) |
| 10646 | (guix build python-build-system) |
| 10647 | (guix build utils)) |
| 10648 | #:phases |
| 10649 | (modify-phases %standard-phases |
| 10650 | (replace 'check |
| 10651 | ;; The test runner invokes python2 and python3 for test*.py. |
| 10652 | ;; To avoid having both in inputs, we replicate it here. |
| 10653 | (lambda _ |
| 10654 | (every (lambda (test-file) |
| 10655 | (zero? (system* "python" test-file))) |
| 10656 | (find-files "tests" "^test.*\\.py$"))))))) |
| 10657 | (build-system python-build-system) |
| 10658 | (home-page "https://github.com/eea/odfpy") |
| 10659 | (synopsis "Python API and tools to manipulate OpenDocument files") |
| 10660 | (description "Collection of libraries and utility programs written in |
| 10661 | Python to manipulate OpenDocument 1.2 files.") |
| 10662 | (license |
| 10663 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a |
| 10664 | ;; number of files with other licenses. |
| 10665 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) |
| 10666 | |
| 10667 | (define-public python2-odfpy |
| 10668 | (package-with-python2 python-odfpy)) |
| 10669 | |
| 10670 | (define-public python-cachecontrol |
| 10671 | (package |
| 10672 | (name "python-cachecontrol") |
| 10673 | (version "0.11.6") |
| 10674 | (source |
| 10675 | (origin |
| 10676 | (method url-fetch) |
| 10677 | ;; Pypi does not have tests. |
| 10678 | (uri (string-append |
| 10679 | "https://github.com/ionrock/cachecontrol/archive/v" |
| 10680 | version ".tar.gz")) |
| 10681 | (file-name (string-append name "-" version ".tar.gz")) |
| 10682 | (sha256 |
| 10683 | (base32 |
| 10684 | "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) |
| 10685 | (build-system python-build-system) |
| 10686 | (arguments |
| 10687 | `(#:phases |
| 10688 | (modify-phases %standard-phases |
| 10689 | (replace 'check |
| 10690 | (lambda _ |
| 10691 | ;; Drop test that requires internet access. |
| 10692 | (delete-file "tests/test_regressions.py") |
| 10693 | (setenv "PYTHONPATH" |
| 10694 | (string-append (getcwd) "/build/lib:" |
| 10695 | (getenv "PYTHONPATH"))) |
| 10696 | (zero? (system* "py.test" "-vv"))))))) |
| 10697 | (native-inputs |
| 10698 | `(("python-pytest" ,python-pytest) |
| 10699 | ("python-redis" ,python-redis) |
| 10700 | ("python-webtest" ,python-webtest) |
| 10701 | ("python-mock" ,python-mock))) |
| 10702 | (propagated-inputs |
| 10703 | `(("python-requests" ,python-requests) |
| 10704 | ("python-lockfile" ,python-lockfile))) |
| 10705 | (home-page "https://github.com/ionrock/cachecontrol") |
| 10706 | (synopsis "The httplib2 caching algorithms for use with requests") |
| 10707 | (description "CacheControl is a port of the caching algorithms in |
| 10708 | @code{httplib2} for use with @code{requests} session objects.") |
| 10709 | (license license:asl2.0) |
| 10710 | (properties `((python2-variant . ,(delay python2-cachecontrol)))))) |
| 10711 | |
| 10712 | (define-public python2-cachecontrol |
| 10713 | (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol)))) |
| 10714 | (package (inherit base) |
| 10715 | (native-inputs |
| 10716 | `(("python2-setuptools" ,python2-setuptools) |
| 10717 | ,@(package-native-inputs base)))))) |
| 10718 | |
| 10719 | (define-public python-lit |
| 10720 | (package |
| 10721 | (name "python-lit") |
| 10722 | (version "0.5.0") |
| 10723 | (source |
| 10724 | (origin |
| 10725 | (method url-fetch) |
| 10726 | (uri (pypi-uri "lit" version)) |
| 10727 | (sha256 |
| 10728 | (base32 |
| 10729 | "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y")))) |
| 10730 | (build-system python-build-system) |
| 10731 | (home-page "http://llvm.org/") |
| 10732 | (synopsis "LLVM Software Testing Tool") |
| 10733 | (description "@code{lit} is a portable tool for executing LLVM and Clang |
| 10734 | style test suites, summarizing their results, and providing indication of |
| 10735 | failures.") |
| 10736 | (license license:ncsa) |
| 10737 | (properties `((python2-variant . ,(delay python2-lit)))))) |
| 10738 | |
| 10739 | (define-public python2-lit |
| 10740 | (let ((base (package-with-python2 (strip-python2-variant python-lit)))) |
| 10741 | (package |
| 10742 | (inherit base) |
| 10743 | (native-inputs |
| 10744 | `(("python2-setuptools" ,python2-setuptools) |
| 10745 | ,@(package-native-inputs base)))))) |
| 10746 | |
| 10747 | (define-public python-pytest-pep8 |
| 10748 | (package |
| 10749 | (name "python-pytest-pep8") |
| 10750 | (version "1.0.6") |
| 10751 | (source (origin |
| 10752 | (method url-fetch) |
| 10753 | (uri (pypi-uri "pytest-pep8" version)) |
| 10754 | (sha256 |
| 10755 | (base32 |
| 10756 | "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) |
| 10757 | (build-system python-build-system) |
| 10758 | (arguments |
| 10759 | `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12. |
| 10760 | ;; Prevent creation of the egg. This works around |
| 10761 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . |
| 10762 | #:configure-flags '("--single-version-externally-managed" "--root=/"))) |
| 10763 | (native-inputs |
| 10764 | `(("python-pytest" ,python-pytest))) |
| 10765 | (propagated-inputs |
| 10766 | `(("python-pep8" ,python-pep8))) |
| 10767 | (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") |
| 10768 | (synopsis "Py.test plugin to check PEP8 requirements") |
| 10769 | (description "Pytest plugin for checking PEP8 compliance.") |
| 10770 | (license license:expat) |
| 10771 | (properties `((python2-variant . ,(delay python2-pytest-pep8)))))) |
| 10772 | |
| 10773 | (define-public python2-pytest-pep8 |
| 10774 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8)))) |
| 10775 | (package (inherit base) |
| 10776 | (native-inputs |
| 10777 | `(("python2-setuptools" ,python2-setuptools) |
| 10778 | ,@(package-native-inputs base)))))) |
| 10779 | |
| 10780 | (define-public python-pytest-flakes |
| 10781 | (package |
| 10782 | (name "python-pytest-flakes") |
| 10783 | (version "1.0.1") |
| 10784 | (source (origin |
| 10785 | (method url-fetch) |
| 10786 | (uri (pypi-uri "pytest-flakes" version)) |
| 10787 | (sha256 |
| 10788 | (base32 |
| 10789 | "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) |
| 10790 | (build-system python-build-system) |
| 10791 | (arguments |
| 10792 | `(;; Prevent creation of the egg. This works around |
| 10793 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . |
| 10794 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
| 10795 | #:phases |
| 10796 | (modify-phases %standard-phases |
| 10797 | (delete 'check) |
| 10798 | (add-after 'install 'check |
| 10799 | (lambda _ ; It's easier to run tests after install. |
| 10800 | (zero? (system* "py.test" "-vv"))))))) |
| 10801 | (native-inputs |
| 10802 | `(("python-coverage" ,python-coverage) |
| 10803 | ("python-pytest" ,python-pytest) |
| 10804 | ("python-pytest-cache" ,python-pytest-cache) |
| 10805 | ("python-pytest-pep8" ,python-pytest-pep8))) |
| 10806 | (propagated-inputs |
| 10807 | `(("python-pyflakes" ,python-pyflakes))) |
| 10808 | (home-page "https://github.com/fschulze/pytest-flakes") |
| 10809 | (synopsis "Py.test plugin to check source code with pyflakes") |
| 10810 | (description "Pytest plugin for checking Python source code with pyflakes.") |
| 10811 | (license license:expat) |
| 10812 | (properties `((python2-variant . ,(delay python2-pytest-flakes)))))) |
| 10813 | |
| 10814 | (define-public python2-pytest-flakes |
| 10815 | (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes)))) |
| 10816 | (package (inherit base) |
| 10817 | (native-inputs |
| 10818 | `(("python2-setuptools" ,python2-setuptools) |
| 10819 | ,@(package-native-inputs base)))))) |
| 10820 | |
| 10821 | (define-public python-natsort |
| 10822 | (package |
| 10823 | (name "python-natsort") |
| 10824 | (version "5.0.1") |
| 10825 | (source (origin |
| 10826 | (method url-fetch) |
| 10827 | (uri (pypi-uri "natsort" version)) |
| 10828 | (sha256 |
| 10829 | (base32 |
| 10830 | "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja")))) |
| 10831 | (build-system python-build-system) |
| 10832 | (arguments |
| 10833 | `(#:phases |
| 10834 | (modify-phases %standard-phases |
| 10835 | (add-before 'check 'set-cachedir |
| 10836 | ;; Tests require write access to $HOME by default |
| 10837 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) |
| 10838 | (native-inputs |
| 10839 | `(("python-hypothesis" ,python-hypothesis) |
| 10840 | ("python-pytest-cache" ,python-pytest-cache) |
| 10841 | ("python-pytest-cov" ,python-pytest-cov) |
| 10842 | ("python-pytest-flakes" ,python-pytest-flakes) |
| 10843 | ("python-pytest-pep8" ,python-pytest-pep8))) |
| 10844 | (propagated-inputs ; TODO: Add python-fastnumbers. |
| 10845 | `(("python-pyicu" ,python-pyicu))) |
| 10846 | (home-page "https://github.com/SethMMorton/natsort") |
| 10847 | (synopsis "Natural sorting for python and shell") |
| 10848 | (description |
| 10849 | "Natsort lets you apply natural sorting on lists instead of |
| 10850 | lexicographical. If you use the built-in @code{sorted} method in python |
| 10851 | on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be |
| 10852 | returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a |
| 10853 | function @code{natsorted} that identifies numbers and sorts them separately |
| 10854 | from strings. It can also sort version numbers, real numbers, mixed types |
| 10855 | and more, and comes with a shell command @command{natsort} that exposes this |
| 10856 | functionality in the command line.") |
| 10857 | (license license:expat) |
| 10858 | (properties `((python2-variant . ,(delay python2-natsort)))))) |
| 10859 | |
| 10860 | (define-public python2-natsort |
| 10861 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) |
| 10862 | (package (inherit base) |
| 10863 | (native-inputs |
| 10864 | `(("python2-setuptools" ,python2-setuptools) |
| 10865 | ("python2-pathlib" ,python2-pathlib) |
| 10866 | ("python2-mock" ,python2-mock) |
| 10867 | ("python2-enum34" ,python2-enum34) |
| 10868 | ,@(package-native-inputs base)))))) |
| 10869 | |
| 10870 | (define-public python-glances |
| 10871 | (package |
| 10872 | (name "python-glances") |
| 10873 | (version "2.7.1") |
| 10874 | (source |
| 10875 | (origin |
| 10876 | (method url-fetch) |
| 10877 | (uri (pypi-uri "Glances" version)) |
| 10878 | (sha256 |
| 10879 | (base32 |
| 10880 | "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) |
| 10881 | (build-system python-build-system) |
| 10882 | (inputs |
| 10883 | `(("python-psutil" ,python-psutil))) |
| 10884 | (home-page |
| 10885 | "https://github.com/nicolargo/glances") |
| 10886 | (synopsis |
| 10887 | "A cross-platform curses-based monitoring tool") |
| 10888 | (description |
| 10889 | "Glances is a curses-based monitoring tool for a wide variety of platforms. |
| 10890 | Glances uses the PsUtil library to get information from your system. It monitors |
| 10891 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") |
| 10892 | (license license:lgpl3+) |
| 10893 | (properties `((python2-variant . ,(delay python2-glances)))))) |
| 10894 | |
| 10895 | (define-public python2-glances |
| 10896 | (let ((base (package-with-python2 (strip-python2-variant python-glances)))) |
| 10897 | (package |
| 10898 | (inherit base) |
| 10899 | (native-inputs |
| 10900 | `(("python2-setuptools" ,python2-setuptools) |
| 10901 | ,@(package-native-inputs base)))))) |
| 10902 | |
| 10903 | (define-public python-graphql-core |
| 10904 | (package |
| 10905 | (name "python-graphql-core") |
| 10906 | (version "0.5.3") |
| 10907 | (source |
| 10908 | (origin |
| 10909 | (method url-fetch) |
| 10910 | (uri (pypi-uri "graphql-core" version)) |
| 10911 | (sha256 |
| 10912 | (base32 |
| 10913 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) |
| 10914 | (build-system python-build-system) |
| 10915 | (arguments |
| 10916 | `(#:phases |
| 10917 | (modify-phases %standard-phases |
| 10918 | (add-after 'unpack 'patch-hardcoded-version |
| 10919 | (lambda _ (substitute* |
| 10920 | "setup.py" |
| 10921 | (("'gevent==1.1rc1'") "'gevent'")) |
| 10922 | #t))))) |
| 10923 | (native-inputs |
| 10924 | `(("python-gevent" ,python-gevent) |
| 10925 | ("python-mock" ,python-mock) |
| 10926 | ("python-pytest-mock" ,python-pytest-mock))) |
| 10927 | (inputs |
| 10928 | `(("python-promise" ,python-promise) |
| 10929 | ("python-six" ,python-six))) |
| 10930 | (home-page "https://github.com/graphql-python/graphql-core") |
| 10931 | (synopsis "GraphQL implementation for Python") |
| 10932 | (description |
| 10933 | "GraphQL implementation for Python. GraphQL is a data query language and |
| 10934 | runtime designed and used to request and deliver data to mobile and web apps. |
| 10935 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} |
| 10936 | to Python.") |
| 10937 | (properties `((python2-variant . ,(delay python2-graphql-core)))) |
| 10938 | (license license:expat))) |
| 10939 | |
| 10940 | (define-public python2-graphql-core |
| 10941 | (let ((base (package-with-python2 |
| 10942 | (strip-python2-variant python-graphql-core)))) |
| 10943 | (package (inherit base) |
| 10944 | (native-inputs |
| 10945 | `(("python2-setuptools" ,python2-setuptools) |
| 10946 | ,@(package-native-inputs base)))))) |
| 10947 | |
| 10948 | (define-public python-graphql-relay |
| 10949 | (package |
| 10950 | (name "python-graphql-relay") |
| 10951 | (version "0.4.4") |
| 10952 | (source |
| 10953 | (origin |
| 10954 | (method url-fetch) |
| 10955 | (uri (pypi-uri "graphql-relay" version)) |
| 10956 | (sha256 |
| 10957 | (base32 |
| 10958 | "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi")))) |
| 10959 | (build-system python-build-system) |
| 10960 | (native-inputs |
| 10961 | `(("python-pytest" ,python-pytest))) |
| 10962 | (inputs |
| 10963 | `(("python-graphql-core" ,python-graphql-core) |
| 10964 | ("python-promise" ,python-promise) |
| 10965 | ("python-six" ,python-six))) |
| 10966 | (home-page "https://github.com/graphql-python/graphql-relay-py") |
| 10967 | (synopsis "Relay implementation for Python") |
| 10968 | (description |
| 10969 | "This is a library to allow the easy creation of Relay-compliant servers |
| 10970 | using the GraphQL Python reference implementation of a GraphQL server. It |
| 10971 | should be noted that the code is a exact port of the original |
| 10972 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} |
| 10973 | from Facebook.") |
| 10974 | (properties `((python2-variant . ,(delay python2-graphql-relay)))) |
| 10975 | (license license:expat))) |
| 10976 | |
| 10977 | (define-public python2-graphql-relay |
| 10978 | (let ((base (package-with-python2 |
| 10979 | (strip-python2-variant python-graphql-relay)))) |
| 10980 | (package (inherit base) |
| 10981 | (native-inputs |
| 10982 | `(("python2-setuptools" ,python2-setuptools) |
| 10983 | ,@(package-native-inputs base)))))) |
| 10984 | |
| 10985 | (define-public python-graphene |
| 10986 | (package |
| 10987 | (name "python-graphene") |
| 10988 | (version "0.10.2") |
| 10989 | (source |
| 10990 | (origin |
| 10991 | (method url-fetch) |
| 10992 | (uri (pypi-uri "graphene" version)) |
| 10993 | (sha256 |
| 10994 | (base32 |
| 10995 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) |
| 10996 | (build-system python-build-system) |
| 10997 | (native-inputs |
| 10998 | `(("python-django-filter" ,python-django-filter) |
| 10999 | ("python-mock" ,python-mock) |
| 11000 | ("python-psycopg2" ,python-psycopg2) |
| 11001 | ("python-pytest-django" ,python-pytest-django) |
| 11002 | ("python-sqlalchemy-utils" ,python-sqlalchemy-utils))) |
| 11003 | (inputs |
| 11004 | `(("python-graphql-core" ,python-graphql-core) |
| 11005 | ("python-graphql-relay" ,python-graphql-relay) |
| 11006 | ("python-iso8601" ,python-iso8601) |
| 11007 | ("python-promise" ,python-promise) |
| 11008 | ("python-six" ,python-six))) |
| 11009 | (home-page "http://graphene-python.org/") |
| 11010 | (synopsis "GraphQL Framework for Python") |
| 11011 | (description |
| 11012 | "Graphene is a Python library for building GraphQL schemas/types. |
| 11013 | A GraphQL schema describes your data model, and provides a GraphQL server |
| 11014 | with an associated set of resolve methods that know how to fetch data.") |
| 11015 | (properties `((python2-variant . ,(delay python2-graphene)))) |
| 11016 | (license license:expat))) |
| 11017 | |
| 11018 | (define-public python2-graphene |
| 11019 | (let ((base (package-with-python2 |
| 11020 | (strip-python2-variant python-graphene)))) |
| 11021 | (package (inherit base) |
| 11022 | (native-inputs |
| 11023 | `(("python2-setuptools" ,python2-setuptools) |
| 11024 | ("python2-sqlalchemy" ,python2-sqlalchemy) |
| 11025 | ,@(package-native-inputs base)))))) |
| 11026 | |
| 11027 | (define-public python-nautilus |
| 11028 | (package |
| 11029 | (name "python-nautilus") |
| 11030 | (version "0.4.9") |
| 11031 | (source |
| 11032 | (origin |
| 11033 | (method url-fetch) |
| 11034 | (uri (pypi-uri "nautilus" version)) |
| 11035 | (sha256 |
| 11036 | (base32 |
| 11037 | "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) |
| 11038 | (build-system python-build-system) |
| 11039 | (arguments `(#:tests? #f)) ; fails to import test modules |
| 11040 | (native-inputs |
| 11041 | `(("python-setuptools" ,python-setuptools))) |
| 11042 | (inputs |
| 11043 | `(("python-bcrypt" ,python-bcrypt) |
| 11044 | ("python-click" ,python-click) |
| 11045 | ("python-consul" ,python-consul) |
| 11046 | ("python-graphql-core" ,python-graphql-core) |
| 11047 | ("python-graphql-relay" ,python-graphql-relay) |
| 11048 | ("python-graphene" ,python-graphene) |
| 11049 | ("python-jinja2" ,python-jinja2) |
| 11050 | ("python-nose2" ,python-nose2) |
| 11051 | ("python-peewee" ,python-peewee) |
| 11052 | ("python-pika" ,python-pika) |
| 11053 | ("python-pycparser" ,python-pycparser) |
| 11054 | ("python-requests" ,python-requests) |
| 11055 | ("python-tornado" ,python-tornado) |
| 11056 | ("python-wtforms" ,python-wtforms))) |
| 11057 | (home-page "https://github.com/AlecAivazis/nautilus") |
| 11058 | (synopsis "Library for creating microservice applications") |
| 11059 | (description |
| 11060 | "Nautilus is a framework for flux based microservices that looks to |
| 11061 | provide extendible implementations of common aspects of a cloud so that you can |
| 11062 | focus on building massively scalable web applications.") |
| 11063 | (license license:expat))) |