| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Nikita Karetnikov <[email protected]> |
| 3 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <[email protected]> |
| 4 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <[email protected]> |
| 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <[email protected]> |
| 6 | ;;; Copyright © 2014, 2017 Eric Bavier <[email protected]> |
| 7 | ;;; Copyright © 2014, 2015 Federico Beffa <[email protected]> |
| 8 | ;;; Copyright © 2015 Omar Radwan <[email protected]> |
| 9 | ;;; Copyright © 2015 Pierre-Antoine Rault <[email protected]> |
| 10 | ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <[email protected]> |
| 11 | ;;; Copyright © 2015, 2016 Christopher Allan Webber <[email protected]> |
| 12 | ;;; Copyright © 2015 Eric Dvorsak <[email protected]> |
| 13 | ;;; Copyright © 2015, 2016 David Thompson <[email protected]> |
| 14 | ;;; Copyright © 2015, 2016, 2017 Leo Famulari <[email protected]> |
| 15 | ;;; Copyright © 2015, 2017 Ben Woodcroft <[email protected]> |
| 16 | ;;; Copyright © 2015, 2016 Erik Edrosa <[email protected]> |
| 17 | ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <[email protected]> |
| 18 | ;;; Copyright © 2015, 2017 Kyle Meyer <[email protected]> |
| 19 | ;;; Copyright © 2015, 2016 Chris Marusich <[email protected]> |
| 20 | ;;; Copyright © 2016 Danny Milosavljevic <[email protected]> |
| 21 | ;;; Copyright © 2016 Lukas Gradl <[email protected]> |
| 22 | ;;; Copyright © 2016 Hartmut Goebel <[email protected]> |
| 23 | ;;; Copyright © 2016 Daniel Pimentel <[email protected]> |
| 24 | ;;; Copyright © 2016 Sou Bunnbu <[email protected]> |
| 25 | ;;; Copyright © 2016, 2017 Troy Sankey <[email protected]> |
| 26 | ;;; Copyright © 2016, 2017 ng0 <[email protected]> |
| 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@[email protected]> |
| 28 | ;;; Copyright © 2016 David Craven <[email protected]> |
| 29 | ;;; Copyright © 2016, 2017 Marius Bakke <[email protected]> |
| 30 | ;;; Copyright © 2016, 2017 Stefan Reichör <[email protected]> |
| 31 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@[email protected]> |
| 32 | ;;; Copyright © 2016, 2017 Alex Vong <[email protected]> |
| 33 | ;;; Copyright © 2016, 2017 Arun Isaac <[email protected]> |
| 34 | ;;; Copyright © 2016, 2017 Julien Lepiller <[email protected]> |
| 35 | ;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <[email protected]> |
| 36 | ;;; Copyright © 2016, 2017 Thomas Danckaert <[email protected]> |
| 37 | ;;; Copyright © 2017 Carlo Zancanaro <[email protected]> |
| 38 | ;;; Copyright © 2017 Frederick M. Muriithi <[email protected]> |
| 39 | ;;; Copyright © 2017 Adriano Peluso <[email protected]> |
| 40 | ;;; Copyright © 2017 Ben Sturmfels <[email protected]> |
| 41 | ;;; Copyright © 2017 Mathieu Othacehe <[email protected]> |
| 42 | ;;; Copyright © 2017 José Miguel Sánchez García <[email protected]> |
| 43 | ;;; Copyright © 2017 Roel Janssen <[email protected]> |
| 44 | ;;; Copyright © 2017 Kei Kebreau <[email protected]> |
| 45 | ;;; Copyright © 2017 Rutger Helling <[email protected]> |
| 46 | ;;; Copyright © 2017 Muriithi Frederick Muriuki <[email protected]> |
| 47 | ;;; Copyright © 2017 Brendan Tildesley <[email protected]> |
| 48 | ;;; |
| 49 | ;;; This file is part of GNU Guix. |
| 50 | ;;; |
| 51 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 52 | ;;; under the terms of the GNU General Public License as published by |
| 53 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 54 | ;;; your option) any later version. |
| 55 | ;;; |
| 56 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 57 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 58 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 59 | ;;; GNU General Public License for more details. |
| 60 | ;;; |
| 61 | ;;; You should have received a copy of the GNU General Public License |
| 62 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 63 | |
| 64 | (define-module (gnu packages python) |
| 65 | #:use-module ((guix licenses) #:prefix license:) |
| 66 | #:use-module (gnu packages) |
| 67 | #:use-module (gnu packages algebra) |
| 68 | #:use-module (gnu packages adns) |
| 69 | #:use-module (gnu packages attr) |
| 70 | #:use-module (gnu packages backup) |
| 71 | #:use-module (gnu packages bash) |
| 72 | #:use-module (gnu packages check) |
| 73 | #:use-module (gnu packages compression) |
| 74 | #:use-module (gnu packages crypto) |
| 75 | #:use-module (gnu packages databases) |
| 76 | #:use-module (gnu packages file) |
| 77 | #:use-module (gnu packages fontutils) |
| 78 | #:use-module (gnu packages gcc) |
| 79 | #:use-module (gnu packages ghostscript) |
| 80 | #:use-module (gnu packages gl) |
| 81 | #:use-module (gnu packages glib) |
| 82 | #:use-module (gnu packages graphviz) |
| 83 | #:use-module (gnu packages graphics) |
| 84 | #:use-module (gnu packages gstreamer) |
| 85 | #:use-module (gnu packages gtk) |
| 86 | #:use-module (gnu packages icu4c) |
| 87 | #:use-module (gnu packages image) |
| 88 | #:use-module (gnu packages imagemagick) |
| 89 | #:use-module (gnu packages libevent) |
| 90 | #:use-module (gnu packages libffi) |
| 91 | #:use-module (gnu packages linux) |
| 92 | #:use-module (gnu packages machine-learning) |
| 93 | #:use-module (gnu packages man) |
| 94 | #:use-module (gnu packages maths) |
| 95 | #:use-module (gnu packages multiprecision) |
| 96 | #:use-module (gnu packages networking) |
| 97 | #:use-module (gnu packages ncurses) |
| 98 | #:use-module (gnu packages openstack) |
| 99 | #:use-module (gnu packages password-utils) |
| 100 | #:use-module (gnu packages pcre) |
| 101 | #:use-module (gnu packages perl) |
| 102 | #:use-module (gnu packages pkg-config) |
| 103 | #:use-module (gnu packages python-crypto) |
| 104 | #:use-module (gnu packages python-web) |
| 105 | #:use-module (gnu packages qt) |
| 106 | #:use-module (gnu packages readline) |
| 107 | #:use-module (gnu packages sdl) |
| 108 | #:use-module (gnu packages search) |
| 109 | #:use-module (gnu packages shells) |
| 110 | #:use-module (gnu packages ssh) |
| 111 | #:use-module (gnu packages statistics) |
| 112 | #:use-module (gnu packages tex) |
| 113 | #:use-module (gnu packages texinfo) |
| 114 | #:use-module (gnu packages time) |
| 115 | #:use-module (gnu packages tls) |
| 116 | #:use-module (gnu packages version-control) |
| 117 | #:use-module (gnu packages video) |
| 118 | #:use-module (gnu packages web) |
| 119 | #:use-module (gnu packages base) |
| 120 | #:use-module (gnu packages xml) |
| 121 | #:use-module (gnu packages xorg) |
| 122 | #:use-module (gnu packages xdisorg) |
| 123 | #:use-module (gnu packages tcl) |
| 124 | #:use-module (gnu packages bdw-gc) |
| 125 | #:use-module (guix packages) |
| 126 | #:use-module (guix download) |
| 127 | #:use-module (guix git-download) |
| 128 | #:use-module (guix utils) |
| 129 | #:use-module (guix build-system gnu) |
| 130 | #:use-module (guix build-system cmake) |
| 131 | #:use-module (guix build-system python) |
| 132 | #:use-module (guix build-system trivial) |
| 133 | #:use-module (srfi srfi-1)) |
| 134 | |
| 135 | (define-public python-2.7 |
| 136 | (package |
| 137 | (name "python") |
| 138 | (version "2.7.13") |
| 139 | (source |
| 140 | (origin |
| 141 | (method url-fetch) |
| 142 | (uri (string-append "https://www.python.org/ftp/python/" |
| 143 | version "/Python-" version ".tar.xz")) |
| 144 | (sha256 |
| 145 | (base32 |
| 146 | "0cgpk3zk0fgpji59pb4zy9nzljr70qzgv1vpz5hq5xw2d2c47m9m")) |
| 147 | (patches (search-patches "python-2.7-search-paths.patch" |
| 148 | "python-2-deterministic-build-info.patch" |
| 149 | "python-2.7-site-prefixes.patch" |
| 150 | "python-2.7-source-date-epoch.patch" |
| 151 | "python-2.7-getentropy-on-old-kernels.patch")) |
| 152 | (modules '((guix build utils))) |
| 153 | ;; suboptimal to delete failing tests here, but if we delete them in the |
| 154 | ;; arguments then we need to make sure to strip out that phase when it |
| 155 | ;; gets inherited by python and python-minimal. |
| 156 | (snippet |
| 157 | '(begin |
| 158 | (for-each delete-file |
| 159 | '("Lib/test/test_compileall.py" |
| 160 | "Lib/test/test_ctypes.py" ; fails on mips64el |
| 161 | "Lib/test/test_distutils.py" |
| 162 | "Lib/test/test_import.py" |
| 163 | "Lib/test/test_shutil.py" |
| 164 | "Lib/test/test_socket.py" |
| 165 | "Lib/test/test_subprocess.py")) |
| 166 | #t)))) |
| 167 | (outputs '("out" |
| 168 | "tk")) ;tkinter; adds 50 MiB to the closure |
| 169 | (build-system gnu-build-system) |
| 170 | (arguments |
| 171 | `(;; 356 tests OK. |
| 172 | ;; 6 tests failed: |
| 173 | ;; test_compileall test_distutils test_import test_shutil test_socket |
| 174 | ;; test_subprocess |
| 175 | ;; 39 tests skipped: |
| 176 | ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 |
| 177 | ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk |
| 178 | ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses |
| 179 | ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl |
| 180 | ;; test_kqueue test_linuxaudiodev test_macos test_macostools |
| 181 | ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet |
| 182 | ;; test_socketserver test_startfile test_sunaudiodev test_timeout |
| 183 | ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet |
| 184 | ;; test_winreg test_winsound test_zipfile64 |
| 185 | ;; 4 skips unexpected on linux2: |
| 186 | ;; test_bsddb test_bsddb3 test_gdb test_ioctl |
| 187 | #:test-target "test" |
| 188 | #:configure-flags |
| 189 | (list "--enable-shared" ;allow embedding |
| 190 | "--with-system-ffi" ;build ctypes |
| 191 | "--with-ensurepip=install" ;install pip and setuptools |
| 192 | "--enable-unicode=ucs4" |
| 193 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 194 | (assoc-ref %outputs "out") "/lib")) |
| 195 | |
| 196 | #:modules ((ice-9 ftw) (ice-9 match) |
| 197 | (guix build utils) (guix build gnu-build-system)) |
| 198 | #:phases |
| 199 | (modify-phases %standard-phases |
| 200 | (add-before |
| 201 | 'configure 'patch-lib-shells |
| 202 | (lambda _ |
| 203 | ;; Filter for existing files, since some may not exist in all |
| 204 | ;; versions of python that are built with this recipe. |
| 205 | (substitute* (filter file-exists? |
| 206 | '("Lib/subprocess.py" |
| 207 | "Lib/popen2.py" |
| 208 | "Lib/distutils/tests/test_spawn.py" |
| 209 | "Lib/test/test_subprocess.py")) |
| 210 | (("/bin/sh") (which "sh"))) |
| 211 | |
| 212 | ;; Use zero as the timestamp in .pyc files so that builds are |
| 213 | ;; deterministic. TODO: Remove it when this variable is set in |
| 214 | ;; gnu-build-system.scm. |
| 215 | (setenv "SOURCE_DATE_EPOCH" "1") |
| 216 | #t)) |
| 217 | (add-before 'configure 'do-not-record-configure-flags |
| 218 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 219 | ;; Remove configure flags from the installed '_sysconfigdata.py' |
| 220 | ;; and 'Makefile' so we don't end up keeping references to the |
| 221 | ;; build tools. |
| 222 | ;; |
| 223 | ;; Preserve at least '--with-system-ffi' since otherwise the |
| 224 | ;; thing tries to build libffi, fails, and we end up with a |
| 225 | ;; Python that lacks ctypes. |
| 226 | (substitute* "configure" |
| 227 | (("^CONFIG_ARGS=.*$") |
| 228 | (format #f "CONFIG_ARGS='~a'\n" |
| 229 | (if (member "--with-system-ffi" configure-flags) |
| 230 | "--with-system-ffi" |
| 231 | "")))) |
| 232 | #t)) |
| 233 | (add-before |
| 234 | 'check 'pre-check |
| 235 | (lambda _ |
| 236 | ;; 'Lib/test/test_site.py' needs a valid $HOME |
| 237 | (setenv "HOME" (getcwd)) |
| 238 | #t)) |
| 239 | (add-after |
| 240 | 'unpack 'set-source-file-times-to-1980 |
| 241 | ;; XXX One of the tests uses a ZIP library to pack up some of the |
| 242 | ;; source tree, and fails with "ZIP does not support timestamps |
| 243 | ;; before 1980". Work around this by setting the file times in the |
| 244 | ;; source tree to sometime in early 1980. |
| 245 | (lambda _ |
| 246 | (let ((circa-1980 (* 10 366 24 60 60))) |
| 247 | (ftw "." (lambda (file stat flag) |
| 248 | (utime file circa-1980 circa-1980) |
| 249 | #t)) |
| 250 | #t))) |
| 251 | (add-after 'install 'remove-tests |
| 252 | ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* |
| 253 | ;; because these files are used by some libraries out there. |
| 254 | (lambda* (#:key outputs #:allow-other-keys) |
| 255 | (let ((out (assoc-ref outputs "out"))) |
| 256 | (match (scandir (string-append out "/lib") |
| 257 | (lambda (name) |
| 258 | (string-prefix? "python" name))) |
| 259 | ((pythonX.Y) |
| 260 | (let ((testdir (string-append out "/lib/" pythonX.Y |
| 261 | "/test"))) |
| 262 | (with-directory-excursion testdir |
| 263 | (for-each delete-file-recursively |
| 264 | (scandir testdir |
| 265 | (match-lambda |
| 266 | ((or "." "..") #f) |
| 267 | (file |
| 268 | (not |
| 269 | (string-prefix? "test_support." |
| 270 | file)))))) |
| 271 | (call-with-output-file "__init__.py" (const #t)) |
| 272 | #t))))))) |
| 273 | (add-before 'strip 'make-libraries-writable |
| 274 | (lambda* (#:key outputs #:allow-other-keys) |
| 275 | ;; Make .so files writable so they can be stripped. |
| 276 | (let ((out (assoc-ref outputs "out"))) |
| 277 | (for-each (lambda (file) |
| 278 | (chmod file #o755)) |
| 279 | (find-files (string-append out "/lib") |
| 280 | "\\.so")) |
| 281 | #t))) |
| 282 | (add-after 'install 'move-tk-inter |
| 283 | (lambda* (#:key outputs #:allow-other-keys) |
| 284 | ;; When Tkinter support is built move it to a separate output so |
| 285 | ;; that the main output doesn't contain a reference to Tcl/Tk. |
| 286 | (let ((out (assoc-ref outputs "out")) |
| 287 | (tk (assoc-ref outputs "tk"))) |
| 288 | (when tk |
| 289 | (match (find-files out "tkinter.*\\.so") |
| 290 | ((tkinter.so) |
| 291 | ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we |
| 292 | ;; want it under TK/lib/pythonX.Y/site-packages. |
| 293 | (let* ((len (string-length out)) |
| 294 | (target (string-append |
| 295 | tk "/" |
| 296 | (string-drop |
| 297 | (dirname (dirname tkinter.so)) |
| 298 | len) |
| 299 | "/site-packages"))) |
| 300 | (install-file tkinter.so target) |
| 301 | (delete-file tkinter.so))))) |
| 302 | #t)))))) |
| 303 | (inputs |
| 304 | `(("bzip2" ,bzip2) |
| 305 | ("gdbm" ,gdbm) |
| 306 | ("libffi" ,libffi) ; for ctypes |
| 307 | ("sqlite" ,sqlite) ; for sqlite extension |
| 308 | ("openssl" ,openssl) |
| 309 | ("readline" ,readline) |
| 310 | ("zlib" ,zlib) |
| 311 | ("tcl" ,tcl) |
| 312 | ("tk" ,tk))) ; for tkinter |
| 313 | (native-inputs |
| 314 | `(("pkg-config" ,pkg-config))) |
| 315 | (native-search-paths |
| 316 | (list (search-path-specification |
| 317 | (variable "PYTHONPATH") |
| 318 | (files '("lib/python2.7/site-packages"))))) |
| 319 | (home-page "https://www.python.org") |
| 320 | (synopsis "High-level, dynamically-typed programming language") |
| 321 | (description |
| 322 | "Python is a remarkably powerful dynamic programming language that |
| 323 | is used in a wide variety of application domains. Some of its key |
| 324 | distinguishing features include: clear, readable syntax; strong |
| 325 | introspection capabilities; intuitive object orientation; natural |
| 326 | expression of procedural code; full modularity, supporting hierarchical |
| 327 | packages; exception-based error handling; and very high level dynamic |
| 328 | data types.") |
| 329 | (license license:psfl))) |
| 330 | |
| 331 | ;; Current 2.x version. |
| 332 | (define-public python-2 python-2.7) |
| 333 | |
| 334 | (define-public python-3.5 |
| 335 | (package (inherit python-2) |
| 336 | (version "3.5.3") |
| 337 | (source (origin |
| 338 | (method url-fetch) |
| 339 | (uri (string-append "https://www.python.org/ftp/python/" |
| 340 | version "/Python-" version ".tar.xz")) |
| 341 | (patches (search-patches |
| 342 | "python-fix-tests.patch" |
| 343 | "python-3.5-fix-tests.patch" |
| 344 | "python-3.5-getentropy-on-old-kernels.patch" |
| 345 | "python-3-deterministic-build-info.patch" |
| 346 | "python-3-search-paths.patch")) |
| 347 | (patch-flags '("-p0")) |
| 348 | (sha256 |
| 349 | (base32 |
| 350 | "1c6v1n9nz4mlx9mw1125fxpmbrgniqdbbx9hnqx44maqazb2mzpf")) |
| 351 | (snippet |
| 352 | '(begin |
| 353 | (for-each delete-file |
| 354 | '("Lib/ctypes/test/test_win32.py" ; fails on aarch64 |
| 355 | "Lib/test/test_fcntl.py")) |
| 356 | #t)))) |
| 357 | (arguments (substitute-keyword-arguments (package-arguments python-2) |
| 358 | ((#:tests? _) #t))) |
| 359 | (native-search-paths |
| 360 | (list (search-path-specification |
| 361 | (variable "PYTHONPATH") |
| 362 | (files (list (string-append "lib/python" |
| 363 | (version-major+minor version) |
| 364 | "/site-packages")))))))) |
| 365 | |
| 366 | ;; Current 3.x version. |
| 367 | (define-public python-3 python-3.5) |
| 368 | |
| 369 | ;; Current major version. |
| 370 | (define-public python python-3) |
| 371 | |
| 372 | ;; Minimal variants of Python, mostly used to break the cycle between Tk and |
| 373 | ;; Python (Tk -> libxcb -> Python.) |
| 374 | |
| 375 | (define-public python2-minimal |
| 376 | (package (inherit python-2) |
| 377 | (name "python-minimal") |
| 378 | (outputs '("out")) |
| 379 | |
| 380 | ;; Keep zlib, which is used by 'pip' (via the 'zipimport' module), which |
| 381 | ;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus |
| 382 | ;; libffi. |
| 383 | (inputs `(("libffi" ,libffi) |
| 384 | ("zlib" ,zlib))))) |
| 385 | |
| 386 | (define-public python-minimal |
| 387 | (package (inherit python) |
| 388 | (name "python-minimal") |
| 389 | (outputs '("out")) |
| 390 | |
| 391 | ;; Build fails due to missing ctypes without libffi. |
| 392 | ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; |
| 393 | ;; zlib is required by 'zipimport', used by pip. |
| 394 | (inputs `(("libffi" ,libffi) |
| 395 | ("openssl" ,openssl) |
| 396 | ("zlib" ,zlib))))) |
| 397 | |
| 398 | (define* (wrap-python3 python |
| 399 | #:optional |
| 400 | (name (string-append (package-name python) "-wrapper"))) |
| 401 | (package (inherit python) |
| 402 | (name name) |
| 403 | (source #f) |
| 404 | (build-system trivial-build-system) |
| 405 | (outputs '("out")) |
| 406 | (inputs `(("bash" ,bash))) |
| 407 | (propagated-inputs `(("python" ,python))) |
| 408 | (arguments |
| 409 | `(#:modules ((guix build utils)) |
| 410 | #:builder |
| 411 | (begin |
| 412 | (use-modules (guix build utils)) |
| 413 | (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) |
| 414 | (python (string-append (assoc-ref %build-inputs "python") "/bin/"))) |
| 415 | (mkdir-p bin) |
| 416 | (for-each |
| 417 | (lambda (old new) |
| 418 | (symlink (string-append python old) |
| 419 | (string-append bin "/" new))) |
| 420 | `("python3" ,"pydoc3" ,"idle3" ,"pip3") |
| 421 | `("python" ,"pydoc" ,"idle" ,"pip")) |
| 422 | ;; python-config outputs search paths based upon its location, |
| 423 | ;; use a bash wrapper to avoid changing its outputs. |
| 424 | (let ((bash (string-append (assoc-ref %build-inputs "bash") |
| 425 | "/bin/bash")) |
| 426 | (old (string-append python "python3-config")) |
| 427 | (new (string-append bin "/python-config"))) |
| 428 | (with-output-to-file new |
| 429 | (lambda () |
| 430 | (format #t "#!~a~%" bash) |
| 431 | (format #t "exec \"~a\" \"$@\"~%" old) |
| 432 | (chmod new #o755) |
| 433 | #t))))))) |
| 434 | (synopsis "Wrapper for the Python 3 commands") |
| 435 | (description |
| 436 | "This package provides wrappers for the commands of Python@tie{}3.x such |
| 437 | that they can be invoked under their usual name---e.g., @command{python} |
| 438 | instead of @command{python3}."))) |
| 439 | |
| 440 | (define-public python-wrapper (wrap-python3 python)) |
| 441 | (define-public python-minimal-wrapper (wrap-python3 python-minimal)) |
| 442 | |
| 443 | (define-public python-psutil |
| 444 | (package |
| 445 | (name "python-psutil") |
| 446 | (version "4.3.0") |
| 447 | (source |
| 448 | (origin |
| 449 | (method url-fetch) |
| 450 | (uri (pypi-uri "psutil" version)) |
| 451 | (sha256 |
| 452 | (base32 |
| 453 | "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6")))) |
| 454 | (build-system python-build-system) |
| 455 | (arguments |
| 456 | ;; FIXME: some tests does not return and times out. |
| 457 | '(#:tests? #f)) |
| 458 | (home-page "https://www.github.com/giampaolo/psutil") |
| 459 | (synopsis "Library for retrieving information on running processes") |
| 460 | (description |
| 461 | "psutil (Python system and process utilities) is a library for retrieving |
| 462 | information on running processes and system utilization (CPU, memory, disks, |
| 463 | network) in Python. It is useful mainly for system monitoring, profiling and |
| 464 | limiting process resources and management of running processes. It implements |
| 465 | many functionalities offered by command line tools such as: ps, top, lsof, |
| 466 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, |
| 467 | pidof, tty, taskset, pmap.") |
| 468 | (license license:bsd-3))) |
| 469 | |
| 470 | (define-public python2-psutil |
| 471 | (package-with-python2 python-psutil)) |
| 472 | |
| 473 | (define-public python-clyent |
| 474 | (package |
| 475 | (name "python-clyent") |
| 476 | (version "1.2.1") |
| 477 | (source |
| 478 | (origin |
| 479 | (method url-fetch) |
| 480 | (uri (pypi-uri "clyent" version)) |
| 481 | (sha256 |
| 482 | (base32 |
| 483 | "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj")))) |
| 484 | (build-system python-build-system) |
| 485 | (native-inputs |
| 486 | `(("python-mock" ,python-mock))) |
| 487 | (home-page "https://github.com/binstar/clyent") |
| 488 | (synopsis "Command line client library") |
| 489 | (description "Clyent is a Python command line utiliy library. It is used |
| 490 | by @code{binstar}, @code{binstar-build} and @code{chalmers}.") |
| 491 | (license license:bsd-3))) |
| 492 | |
| 493 | (define-public python2-clyent |
| 494 | (package-with-python2 python-clyent)) |
| 495 | |
| 496 | (define-public python-babel |
| 497 | (package |
| 498 | (name "python-babel") |
| 499 | (version "2.3.4") |
| 500 | (source |
| 501 | (origin |
| 502 | (method url-fetch) |
| 503 | (uri (pypi-uri "Babel" version)) |
| 504 | (sha256 |
| 505 | (base32 |
| 506 | "0x98qqqw35xllpcama013a9788ly84z8dm1w2wwfpxh2710c8df5")))) |
| 507 | (build-system python-build-system) |
| 508 | (propagated-inputs |
| 509 | `(("python-pytz" ,python-pytz))) |
| 510 | (arguments `(#:tests? #f)) ; no test target |
| 511 | (home-page "http://babel.pocoo.org/") |
| 512 | (synopsis |
| 513 | "Tools for internationalizing Python applications") |
| 514 | (description |
| 515 | "Babel is composed of two major parts: |
| 516 | - tools to build and work with gettext message catalogs |
| 517 | - a Python interface to the CLDR (Common Locale Data Repository), providing |
| 518 | access to various locale display names, localized number and date formatting, |
| 519 | etc. ") |
| 520 | (license license:bsd-3))) |
| 521 | |
| 522 | (define-public python2-babel |
| 523 | (package-with-python2 python-babel)) |
| 524 | |
| 525 | (define-public python2-backport-ssl-match-hostname |
| 526 | (package |
| 527 | (name "python2-backport-ssl-match-hostname") |
| 528 | (version "3.5.0.1") |
| 529 | (source |
| 530 | (origin |
| 531 | (method url-fetch) |
| 532 | (uri (string-append |
| 533 | "https://pypi.python.org/packages/source/b/" |
| 534 | "backports.ssl_match_hostname/backports.ssl_match_hostname-" |
| 535 | version ".tar.gz")) |
| 536 | (sha256 |
| 537 | (base32 |
| 538 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
| 539 | (build-system python-build-system) |
| 540 | (arguments |
| 541 | `(#:python ,python-2 |
| 542 | #:tests? #f)) ; no test target |
| 543 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
| 544 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") |
| 545 | (description |
| 546 | "This backport brings the ssl.match_hostname() function to users of |
| 547 | earlier versions of Python. The function checks the hostname in the |
| 548 | certificate returned by the server to which a connection has been established, |
| 549 | and verifies that it matches the intended target hostname.") |
| 550 | (license license:psfl))) |
| 551 | |
| 552 | (define-public python-hdf4 |
| 553 | (package |
| 554 | (name "python-hdf4") |
| 555 | (version "0.9") |
| 556 | (source |
| 557 | (origin |
| 558 | (method url-fetch) |
| 559 | (uri (pypi-uri name version)) |
| 560 | (sha256 |
| 561 | (base32 |
| 562 | "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks")))) |
| 563 | (build-system python-build-system) |
| 564 | (native-inputs `(("nose" ,python-nose))) |
| 565 | (propagated-inputs `(("numpy" ,python-numpy))) |
| 566 | (inputs |
| 567 | `(("hdf4" ,hdf4) |
| 568 | ("libjpeg" ,libjpeg) |
| 569 | ("zlib" ,zlib))) |
| 570 | (arguments |
| 571 | `(#:phases |
| 572 | (modify-phases %standard-phases |
| 573 | (replace 'check |
| 574 | (lambda _ |
| 575 | ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes |
| 576 | ;; on to import numpy. Somehow this works on their CI system. |
| 577 | ;; Let's just manage PYTHONPATH here instead. |
| 578 | (substitute* "runexamples.sh" |
| 579 | (("export PYTHONPATH=.*") "")) |
| 580 | (setenv "PYTHONPATH" |
| 581 | (string-append (getcwd) ":" |
| 582 | (getenv "PYTHONPATH"))) |
| 583 | (and (zero? (system* "./runexamples.sh")) |
| 584 | (zero? (system* "nosetests" "-v")))))))) |
| 585 | (home-page "https://github.com/fhs/python-hdf4") |
| 586 | (synopsis "Python interface to the NCSA HDF4 library") |
| 587 | (description |
| 588 | "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library, |
| 589 | which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s. |
| 590 | NetCDF files can also be read and modified. Python-HDF4 is a fork of |
| 591 | @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.") |
| 592 | (license license:expat))) |
| 593 | |
| 594 | (define-public python2-hdf4 |
| 595 | (package-with-python2 python-hdf4)) |
| 596 | |
| 597 | (define-public python-h5py |
| 598 | (package |
| 599 | (name "python-h5py") |
| 600 | (version "2.7.0") |
| 601 | (source |
| 602 | (origin |
| 603 | (method url-fetch) |
| 604 | (uri (pypi-uri "h5py" version)) |
| 605 | (sha256 |
| 606 | (base32 |
| 607 | "0433sdv6xc9p7v1xs1gvbxp7p152ywi3nplgjb258q9fvw9469br")))) |
| 608 | (build-system python-build-system) |
| 609 | (arguments |
| 610 | `(#:tests? #f ; no test target |
| 611 | #:phases |
| 612 | (modify-phases %standard-phases |
| 613 | (add-after 'unpack 'fix-hdf5-paths |
| 614 | (lambda* (#:key inputs #:allow-other-keys) |
| 615 | (let ((prefix (assoc-ref inputs "hdf5"))) |
| 616 | (substitute* "setup_build.py" |
| 617 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") |
| 618 | (string-append "['" prefix "/lib" "']")) |
| 619 | (("'/opt/local/include', '/usr/local/include'") |
| 620 | (string-append "'" prefix "/include" "'"))) |
| 621 | (substitute* "setup_configure.py" |
| 622 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") |
| 623 | (string-append "['" prefix "/lib" "']"))) |
| 624 | #t)))))) |
| 625 | (propagated-inputs |
| 626 | `(("python-six" ,python-six) |
| 627 | ("python-numpy" ,python-numpy))) |
| 628 | (inputs |
| 629 | `(("hdf5" ,hdf5))) |
| 630 | (native-inputs |
| 631 | `(("python-cython" ,python-cython) |
| 632 | ("python-pkgconfig" ,python-pkgconfig))) |
| 633 | (home-page "http://www.h5py.org/") |
| 634 | (synopsis "Read and write HDF5 files from Python") |
| 635 | (description |
| 636 | "The h5py package provides both a high- and low-level interface to the |
| 637 | HDF5 library from Python. The low-level interface is intended to be a |
| 638 | complete wrapping of the HDF5 API, while the high-level component supports |
| 639 | access to HDF5 files, datasets and groups using established Python and NumPy |
| 640 | concepts.") |
| 641 | (license license:bsd-3))) |
| 642 | |
| 643 | (define-public python2-h5py |
| 644 | (package-with-python2 python-h5py)) |
| 645 | |
| 646 | (define-public python-netcdf4 |
| 647 | (package |
| 648 | (name "python-netcdf4") |
| 649 | (version "1.2.9") |
| 650 | (source |
| 651 | (origin |
| 652 | (method url-fetch) |
| 653 | (uri (pypi-uri "netCDF4" version)) |
| 654 | (sha256 |
| 655 | (base32 |
| 656 | "1h6jq338amlbk0ilzvjyl7cck80i0bah9a5spn9in71vy2qxm7i5")))) |
| 657 | (build-system python-build-system) |
| 658 | (native-inputs |
| 659 | `(("python-cython" ,python-cython))) |
| 660 | (propagated-inputs |
| 661 | `(("python-numpy" ,python-numpy))) |
| 662 | (inputs |
| 663 | `(("netcdf" ,netcdf) |
| 664 | ("hdf4" ,hdf4) |
| 665 | ("hdf5" ,hdf5))) |
| 666 | (arguments |
| 667 | '(#:phases |
| 668 | (modify-phases %standard-phases |
| 669 | (replace 'check |
| 670 | (lambda _ |
| 671 | (setenv "NO_NET" "1") ; disable opendap tests |
| 672 | (with-directory-excursion "test" |
| 673 | (setenv "PYTHONPATH" ; find and add the library we just built |
| 674 | (string-append |
| 675 | (car (find-files "../build" "lib.*" |
| 676 | #:directories? #:t |
| 677 | #:fail-on-error? #:t)) |
| 678 | ":" (getenv "PYTHONPATH"))) |
| 679 | (zero? (system* "python" "run_all.py")))))))) |
| 680 | (home-page |
| 681 | "https://github.com/Unidata/netcdf4-python") |
| 682 | (synopsis "Python/numpy interface to the netCDF library") |
| 683 | (description "Netcdf4-python is a Python interface to the netCDF C |
| 684 | library. netCDF version 4 has many features not found in earlier |
| 685 | versions of the library and is implemented on top of HDF5. This module |
| 686 | can read and write files in both the new netCDF 4 and the old netCDF 3 |
| 687 | format, and can create files that are readable by HDF5 clients. The |
| 688 | API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar |
| 689 | to users of that module.") |
| 690 | ;; The software is mainly ISC, but includes some files covered |
| 691 | ;; by the Expat license. |
| 692 | (license (list license:isc license:expat)))) |
| 693 | |
| 694 | (define-public python2-netcdf4 |
| 695 | (package-with-python2 python-netcdf4)) |
| 696 | |
| 697 | (define-public python-lockfile |
| 698 | (package |
| 699 | (name "python-lockfile") |
| 700 | (version "0.12.2") |
| 701 | (source |
| 702 | (origin |
| 703 | (method url-fetch) |
| 704 | (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/" |
| 705 | "lockfile-" version ".tar.gz")) |
| 706 | (sha256 |
| 707 | (base32 |
| 708 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
| 709 | (build-system python-build-system) |
| 710 | (arguments '(#:test-target "check")) |
| 711 | (native-inputs |
| 712 | `(("python-pbr" ,python-pbr))) |
| 713 | (home-page "https://launchpad.net/pylockfile") |
| 714 | (synopsis "Platform-independent file locking module") |
| 715 | (description |
| 716 | "The lockfile package exports a LockFile class which provides a simple |
| 717 | API for locking files.") |
| 718 | (license license:expat))) |
| 719 | |
| 720 | (define-public python2-lockfile |
| 721 | (package-with-python2 python-lockfile)) |
| 722 | |
| 723 | (define-public python-setuptools |
| 724 | (package |
| 725 | (name "python-setuptools") |
| 726 | (version "31.0.0") |
| 727 | (source |
| 728 | (origin |
| 729 | (method url-fetch) |
| 730 | (uri (pypi-uri "setuptools" version)) |
| 731 | (sha256 |
| 732 | (base32 |
| 733 | "0ypybh4hx3bv4vhg2dc74xpj1g56ggnaffm87k4abhwjwq6wq608")) |
| 734 | (modules '((guix build utils))) |
| 735 | (snippet |
| 736 | '(begin |
| 737 | ;; Remove included binaries which are used to build self-extracting |
| 738 | ;; installers for Windows. |
| 739 | ;; TODO: Find some way to build them ourself so we can include them. |
| 740 | (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$")) |
| 741 | #t)))) |
| 742 | (build-system python-build-system) |
| 743 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
| 744 | ;; One could bootstrap with an internal untested setuptools. |
| 745 | (arguments |
| 746 | `(#:tests? #f)) |
| 747 | (home-page "https://pypi.python.org/pypi/setuptools") |
| 748 | (synopsis |
| 749 | "Library designed to facilitate packaging Python projects") |
| 750 | (description |
| 751 | "Setuptools is a fully-featured, stable library designed to facilitate |
| 752 | packaging Python projects, where packaging includes: |
| 753 | Python package and module definitions, |
| 754 | distribution package metadata, |
| 755 | test hooks, |
| 756 | project installation, |
| 757 | platform-specific details, |
| 758 | Python 3 support.") |
| 759 | ;; TODO: setuptools now bundles the following libraries: |
| 760 | ;; packaging, pyparsing, six and appdirs. How to unbundle? |
| 761 | (license (list license:psfl ; setuptools itself |
| 762 | license:expat ; six, appdirs, pyparsing |
| 763 | license:asl2.0 ; packaging is dual ASL2/BSD-2 |
| 764 | license:bsd-2)))) |
| 765 | |
| 766 | (define-public python2-setuptools |
| 767 | (package-with-python2 python-setuptools)) |
| 768 | |
| 769 | (define-public python-uniseg |
| 770 | (package |
| 771 | (name "python-uniseg") |
| 772 | (version "0.7.1") |
| 773 | (source |
| 774 | (origin |
| 775 | (method url-fetch) |
| 776 | (uri (string-append "https://bitbucket.org/emptypage/uniseg-python/" |
| 777 | "get/rel-" version ".tar.gz")) |
| 778 | (file-name (string-append name "-" version ".tar.gz")) |
| 779 | (sha256 |
| 780 | (base32 |
| 781 | "1df4gddnj2a0v8z35wb2ra5vvh1f1qyxs8fgd25c8g64031mna6x")))) |
| 782 | (build-system python-build-system) |
| 783 | (arguments |
| 784 | '(#:tests? #f)) ; The test suite requires network access. |
| 785 | (home-page |
| 786 | "https://bitbucket.org/emptypage/uniseg-python") |
| 787 | (synopsis |
| 788 | "Python library to determine Unicode text segmentations") |
| 789 | (description |
| 790 | "Uniseg is a Python package used to determine Unicode text segmentations. |
| 791 | Supported segmentations include: |
| 792 | @enumerate |
| 793 | @item @dfn{Code point} (any value in the Unicode codespace) |
| 794 | @item @dfn{Grapheme cluster} (user-perceived character made of a single or |
| 795 | multiple Unicode code points, e.g. \"G\" + acute-accent) |
| 796 | @item Word break |
| 797 | @item Sentence break |
| 798 | @item Line break |
| 799 | @end enumerate") |
| 800 | (license license:expat))) |
| 801 | |
| 802 | (define-public python2-uniseg |
| 803 | (package-with-python2 python-uniseg)) |
| 804 | |
| 805 | (define-public python-humanfriendly |
| 806 | (package |
| 807 | (name "python-humanfriendly") |
| 808 | (version "4.4.1") |
| 809 | (source |
| 810 | (origin |
| 811 | (method url-fetch) |
| 812 | (uri (pypi-uri "humanfriendly" version)) |
| 813 | (sha256 |
| 814 | (base32 |
| 815 | "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) |
| 816 | (build-system python-build-system) |
| 817 | (arguments |
| 818 | `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly. |
| 819 | #:tests? #f)) |
| 820 | (propagated-inputs |
| 821 | `(("python-monotonic" ,python-monotonic))) |
| 822 | (home-page "https://humanfriendly.readthedocs.io") |
| 823 | (synopsis "Human-friendly input and output in Python") |
| 824 | (description |
| 825 | "The functions and classes in @code{humanfriendly} can be used to make |
| 826 | text interfaces more user-friendly. It includes tools to parse and format |
| 827 | numbers, file sizes, and timespans, timers for long-running operations, menus |
| 828 | to allow the user to choose from a list of options, and terminal interaction |
| 829 | helpers.") |
| 830 | (license license:expat))) |
| 831 | |
| 832 | (define-public python2-humanfriendly |
| 833 | (package-with-python2 python-humanfriendly)) |
| 834 | |
| 835 | (define-public python-capturer |
| 836 | (package |
| 837 | (name "python-capturer") |
| 838 | (version "2.4") |
| 839 | (source |
| 840 | (origin |
| 841 | (method url-fetch) |
| 842 | (uri (pypi-uri "capturer" version)) |
| 843 | (sha256 |
| 844 | (base32 |
| 845 | "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089")))) |
| 846 | (build-system python-build-system) |
| 847 | (arguments |
| 848 | `(#:tests? #f)) |
| 849 | (propagated-inputs |
| 850 | `(("python-humanfriendly" ,python-humanfriendly))) |
| 851 | (home-page "https://capturer.readthedocs.io") |
| 852 | (synopsis "Capture stdout and stderr streams of the current process") |
| 853 | (description |
| 854 | "The capturer package makes it easy to capture the stdout and stderr |
| 855 | streams of the current process and subprocesses. Output can be relayed |
| 856 | to the terminal in real time but is also available to the Python program |
| 857 | for additional processing.") |
| 858 | (license license:expat))) |
| 859 | |
| 860 | (define-public python2-capturer |
| 861 | (package-with-python2 python-capturer)) |
| 862 | |
| 863 | (define-public python-verboselogs |
| 864 | (package |
| 865 | (name "python-verboselogs") |
| 866 | (version "1.7") |
| 867 | (source |
| 868 | (origin |
| 869 | (method url-fetch) |
| 870 | (uri (pypi-uri "verboselogs" version)) |
| 871 | (sha256 |
| 872 | (base32 |
| 873 | "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3")))) |
| 874 | (build-system python-build-system) |
| 875 | (native-inputs |
| 876 | `(("python-mock" ,python-mock) |
| 877 | ("python-astroid" ,python-astroid) |
| 878 | ("python-pylint" ,python-pylint))) |
| 879 | (home-page "https://verboselogs.readthedocs.io") |
| 880 | (synopsis "Verbose logging level for Python's logging module") |
| 881 | (description |
| 882 | "The @code{verboselogs} package extends Python's @code{logging} module to |
| 883 | add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.") |
| 884 | (license license:expat))) |
| 885 | |
| 886 | (define-public python2-verboselogs |
| 887 | (package-with-python2 python-verboselogs)) |
| 888 | |
| 889 | (define-public python-coloredlogs |
| 890 | (package |
| 891 | (name "python-coloredlogs") |
| 892 | (version "7.3") |
| 893 | (source |
| 894 | (origin |
| 895 | (method url-fetch) |
| 896 | (uri (pypi-uri "coloredlogs" version)) |
| 897 | (sha256 |
| 898 | (base32 |
| 899 | "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9")))) |
| 900 | (build-system python-build-system) |
| 901 | (arguments |
| 902 | `(;Tests require some updated modules |
| 903 | #:tests? #f)) |
| 904 | (propagated-inputs |
| 905 | `(("python-capturer" ,python-capturer))) |
| 906 | (home-page "https://coloredlogs.readthedocs.io") |
| 907 | (synopsis "Colored stream handler for Python's logging module") |
| 908 | (description |
| 909 | "The @code{coloredlogs} package enables colored terminal output for |
| 910 | Python's logging module. The @code{ColoredFormatter} class inherits from |
| 911 | @code{logging.Formatter} and uses ANSI escape sequences to render your logging |
| 912 | messages in color.") |
| 913 | (license license:expat))) |
| 914 | |
| 915 | (define-public python2-coloredlogs |
| 916 | (package-with-python2 python-coloredlogs)) |
| 917 | |
| 918 | (define-public python-eventlet |
| 919 | (package |
| 920 | (name "python-eventlet") |
| 921 | (version "0.20.1") |
| 922 | (source |
| 923 | (origin |
| 924 | (method url-fetch) |
| 925 | (uri (pypi-uri "eventlet" version)) |
| 926 | (sha256 |
| 927 | (base32 |
| 928 | "0f3q55mq4n021wb7qa53pz3ix6i2py64sap66vsaqm2scjw83m9s")))) |
| 929 | (build-system python-build-system) |
| 930 | (propagated-inputs |
| 931 | `(("python-greenlet" ,python-greenlet))) |
| 932 | (arguments |
| 933 | ;; TODO: Requires unpackaged 'enum-compat'. |
| 934 | '(#:tests? #f)) |
| 935 | (home-page "http://eventlet.net") |
| 936 | (synopsis "Concurrent networking library for Python") |
| 937 | (description |
| 938 | "Eventlet is a concurrent networking library for Python that |
| 939 | allows you to change how you run your code, not how you write it. |
| 940 | It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. |
| 941 | Coroutines ensure that the developer uses a blocking style of programming |
| 942 | that is similar to threading, but provide the benefits of non-blocking I/O. |
| 943 | The event dispatch is implicit, which means you can easily use @code{Eventlet} |
| 944 | from the Python interpreter, or as a small part of a larger application.") |
| 945 | (license license:expat))) |
| 946 | |
| 947 | (define-public python2-eventlet |
| 948 | (let ((base (package-with-python2 |
| 949 | (strip-python2-variant python-eventlet)))) |
| 950 | (package (inherit base) |
| 951 | (propagated-inputs |
| 952 | `(("python2-enum34" ,python2-enum34) |
| 953 | ,@(package-propagated-inputs base)))))) |
| 954 | |
| 955 | (define-public python-six |
| 956 | (package |
| 957 | (name "python-six") |
| 958 | (version "1.10.0") |
| 959 | (source |
| 960 | (origin |
| 961 | (method url-fetch) |
| 962 | (uri (pypi-uri "six" version)) |
| 963 | (sha256 |
| 964 | (base32 |
| 965 | "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh")))) |
| 966 | (build-system python-build-system) |
| 967 | (native-inputs |
| 968 | `(("python-py" ,python-py) |
| 969 | ("python-pytest" ,python-pytest))) |
| 970 | (home-page "http://pypi.python.org/pypi/six/") |
| 971 | (synopsis "Python 2 and 3 compatibility utilities") |
| 972 | (description |
| 973 | "Six is a Python 2 and 3 compatibility library. It provides utility |
| 974 | functions for smoothing over the differences between the Python versions with |
| 975 | the goal of writing Python code that is compatible on both Python versions. |
| 976 | Six supports every Python version since 2.5. It is contained in only one |
| 977 | Python file, so it can be easily copied into your project.") |
| 978 | (license license:x11))) |
| 979 | |
| 980 | (define-public python2-six |
| 981 | (package-with-python2 python-six)) |
| 982 | |
| 983 | (define-public python-schedule |
| 984 | (package |
| 985 | (name "python-schedule") |
| 986 | (version "0.4.3") |
| 987 | (source |
| 988 | (origin |
| 989 | (method url-fetch) |
| 990 | (uri (pypi-uri "schedule" version)) |
| 991 | (sha256 |
| 992 | (base32 |
| 993 | "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i")))) |
| 994 | (build-system python-build-system) |
| 995 | (native-inputs |
| 996 | `(("python-pytest" ,python-pytest) |
| 997 | ("python-mock" ,python-mock))) |
| 998 | (home-page "https://github.com/dbader/schedule") |
| 999 | (synopsis "Schedule periodic function calls in Python") |
| 1000 | (description |
| 1001 | "Schedule is an in-process scheduler for periodic jobs that uses the |
| 1002 | builder pattern for configuration. Schedule lets you run Python functions (or |
| 1003 | any other callable) periodically at pre-determined intervals using a simple, |
| 1004 | human-friendly syntax.") |
| 1005 | (license license:expat))) |
| 1006 | |
| 1007 | (define-public python2-schedule |
| 1008 | (package-with-python2 python-schedule)) |
| 1009 | |
| 1010 | (define-public python-pandas |
| 1011 | (package |
| 1012 | (name "python-pandas") |
| 1013 | (version "0.19.2") |
| 1014 | (source |
| 1015 | (origin |
| 1016 | (method url-fetch) |
| 1017 | (uri (pypi-uri "pandas" version)) |
| 1018 | (sha256 |
| 1019 | (base32 "0540cnbwy2hc4hv2sxfs8i47xi91qzvzxfn80dl785ibiicly3vg")) |
| 1020 | (patches |
| 1021 | (search-patches "python-pandas-skip-failing-tests.patch")))) |
| 1022 | (build-system python-build-system) |
| 1023 | (propagated-inputs |
| 1024 | `(("python-numpy" ,python-numpy) |
| 1025 | ("python-pytz" ,python-pytz) |
| 1026 | ("python-dateutil" ,python-dateutil))) |
| 1027 | (native-inputs |
| 1028 | `(("python-nose" ,python-nose) |
| 1029 | ("python-cython" ,python-cython))) |
| 1030 | (home-page "http://pandas.pydata.org") |
| 1031 | (synopsis "Data structures for data analysis, time series, and statistics") |
| 1032 | (description |
| 1033 | "Pandas is a Python package providing fast, flexible, and expressive data |
| 1034 | structures designed to make working with structured (tabular, |
| 1035 | multidimensional, potentially heterogeneous) and time series data both easy |
| 1036 | and intuitive. It aims to be the fundamental high-level building block for |
| 1037 | doing practical, real world data analysis in Python.") |
| 1038 | (license license:bsd-3))) |
| 1039 | |
| 1040 | (define-public python2-pandas |
| 1041 | (package-with-python2 python-pandas)) |
| 1042 | |
| 1043 | (define-public python2-mechanize |
| 1044 | (package |
| 1045 | (name "python2-mechanize") |
| 1046 | (version "0.2.5") |
| 1047 | (source |
| 1048 | (origin |
| 1049 | (method url-fetch) |
| 1050 | (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-" |
| 1051 | version ".tar.gz")) |
| 1052 | (sha256 |
| 1053 | (base32 |
| 1054 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) |
| 1055 | (build-system python-build-system) |
| 1056 | (arguments |
| 1057 | `(#:python ,python-2 ; apparently incompatible with Python 3 |
| 1058 | #:tests? #f)) |
| 1059 | ;; test fails with message |
| 1060 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' |
| 1061 | ;; (python-3.3.2) or |
| 1062 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' |
| 1063 | ;; (python-2.7.5). |
| 1064 | ;; The source code is from March 2011 and probably not up-to-date |
| 1065 | ;; with respect to python unit tests. |
| 1066 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") |
| 1067 | (synopsis |
| 1068 | "Stateful programmatic web browsing in Python") |
| 1069 | (description |
| 1070 | "Mechanize implements stateful programmatic web browsing in Python, |
| 1071 | after Andy Lester’s Perl module WWW::Mechanize.") |
| 1072 | (license (license:non-copyleft |
| 1073 | "file://COPYING" |
| 1074 | "See COPYING in the distribution.")))) |
| 1075 | |
| 1076 | |
| 1077 | (define-public python-simplejson |
| 1078 | (package |
| 1079 | (name "python-simplejson") |
| 1080 | (version "3.10.0") |
| 1081 | (source |
| 1082 | (origin |
| 1083 | (method url-fetch) |
| 1084 | (uri (pypi-uri "simplejson" version)) |
| 1085 | (sha256 |
| 1086 | (base32 |
| 1087 | "1qhwsykjlb85igb4cfl6v6gkprzbbg8gyqdd7zscc8w3x0ifcfwm")))) |
| 1088 | (build-system python-build-system) |
| 1089 | (home-page "http://simplejson.readthedocs.org/en/latest/") |
| 1090 | (synopsis |
| 1091 | "Json library for Python") |
| 1092 | (description |
| 1093 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
| 1094 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange |
| 1095 | format. |
| 1096 | |
| 1097 | Simplejson exposes an API familiar to users of the standard library marshal |
| 1098 | and pickle modules. It is the externally maintained version of the json |
| 1099 | library contained in Python 2.6, but maintains compatibility with Python 2.5 |
| 1100 | and (currently) has significant performance advantages, even without using |
| 1101 | the optional C extension for speedups. Simplejson is also supported on |
| 1102 | Python 3.3+.") |
| 1103 | (license license:x11))) |
| 1104 | |
| 1105 | (define-public python2-simplejson |
| 1106 | (package-with-python2 python-simplejson)) |
| 1107 | |
| 1108 | |
| 1109 | (define-public python-pyicu |
| 1110 | (package |
| 1111 | (name "python-pyicu") |
| 1112 | (version "1.9.8") |
| 1113 | (source |
| 1114 | (origin |
| 1115 | (method url-fetch) |
| 1116 | (uri (pypi-uri "PyICU" version)) |
| 1117 | (sha256 |
| 1118 | (base32 |
| 1119 | "05nz4p2dpkhwj6y9kik24xbvmfxji39nl0xw0sc0nvp9fgzf6xnd")))) |
| 1120 | (build-system python-build-system) |
| 1121 | (inputs |
| 1122 | `(("icu4c" ,icu4c))) |
| 1123 | (native-inputs |
| 1124 | `(("python-pytest" ,python-pytest) |
| 1125 | ("python-six" ,python-six))) |
| 1126 | (home-page "https://github.com/ovalhub/pyicu") |
| 1127 | (synopsis "Python extension wrapping the ICU C++ API") |
| 1128 | (description |
| 1129 | "PyICU is a python extension wrapping the ICU C++ API.") |
| 1130 | (license license:x11))) |
| 1131 | |
| 1132 | (define-public python2-pyicu |
| 1133 | (package-with-python2 python-pyicu)) |
| 1134 | |
| 1135 | (define-public python2-dogtail |
| 1136 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and |
| 1137 | ;; spaces in indentation" with Python 3. |
| 1138 | (package |
| 1139 | (name "python2-dogtail") |
| 1140 | (version "0.9.9") |
| 1141 | (source (origin |
| 1142 | (method url-fetch) |
| 1143 | (uri (pypi-uri "dogtail" version)) |
| 1144 | (sha256 |
| 1145 | (base32 |
| 1146 | "0p5wfssvzr9w0bvhllzbbd8fnp4cca2qxcpcsc33dchrmh5n552x")))) |
| 1147 | (build-system python-build-system) |
| 1148 | (arguments `(#:python ,python-2 |
| 1149 | #:tests? #f)) ; invalid command "test" |
| 1150 | ;; Currently no offical homepage. |
| 1151 | (home-page "https://pypi.python.org/pypi/dogtail/") |
| 1152 | (synopsis "GUI test tool and automation framework written in Python") |
| 1153 | (description |
| 1154 | "Dogtail is a GUI test tool and automation framework written in Python. |
| 1155 | It uses Accessibility (a11y) technologies to communicate with desktop |
| 1156 | applications. dogtail scripts are written in Python and executed like any |
| 1157 | other Python program.") |
| 1158 | (license license:gpl2+))) |
| 1159 | |
| 1160 | (define-public python2-empy |
| 1161 | (package |
| 1162 | (name "python2-empy") |
| 1163 | (version "3.3") |
| 1164 | (source (origin |
| 1165 | (method url-fetch) |
| 1166 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" |
| 1167 | version ".tar.gz")) |
| 1168 | (sha256 |
| 1169 | (base32 |
| 1170 | "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) |
| 1171 | (build-system python-build-system) |
| 1172 | (arguments |
| 1173 | `(#:python ,python-2 |
| 1174 | #:phases |
| 1175 | (modify-phases %standard-phases |
| 1176 | (replace 'check |
| 1177 | (lambda _ |
| 1178 | (zero? (system* "./test.sh"))))))) |
| 1179 | (home-page "http://www.alcyone.com/software/empy/") |
| 1180 | (synopsis "Templating system for Python") |
| 1181 | (description |
| 1182 | "EmPy is a system for embedding Python expressions and statements in |
| 1183 | template text; it takes an EmPy source file, processes it, and produces |
| 1184 | output. This is accomplished via expansions, which are special signals to the |
| 1185 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
| 1186 | EmPy can expand arbitrary Python expressions and statements in this way, as |
| 1187 | well as a variety of special forms. Textual data not explicitly delimited in |
| 1188 | this way is sent unaffected to the output, allowing Python to be used in |
| 1189 | effect as a markup language. Also supported are callbacks via hooks, |
| 1190 | recording and playback via diversions, and dynamic, chainable filters. The |
| 1191 | system is highly configurable via command line options and embedded |
| 1192 | commands.") |
| 1193 | (license license:lgpl2.1+))) |
| 1194 | |
| 1195 | (define-public python2-element-tree |
| 1196 | (package |
| 1197 | (name "python2-element-tree") |
| 1198 | (version "1.2.6") |
| 1199 | (source (origin |
| 1200 | (method url-fetch) |
| 1201 | (uri (string-append |
| 1202 | "http://effbot.org/media/downloads/elementtree-" |
| 1203 | version "-20050316.tar.gz")) |
| 1204 | (sha256 |
| 1205 | (base32 |
| 1206 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) |
| 1207 | (build-system python-build-system) |
| 1208 | (arguments |
| 1209 | `(#:python ,python-2 ; seems to be part of Python 3 |
| 1210 | #:tests? #f)) ; no 'test' sub-command |
| 1211 | (synopsis "Toolkit for XML processing in Python") |
| 1212 | (description |
| 1213 | "ElementTree is a Python library supporting lightweight XML processing.") |
| 1214 | (home-page "http://effbot.org/zone/element-index.htm") |
| 1215 | (license (license:x11-style |
| 1216 | "http://docs.python.org/2/license.html" |
| 1217 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) |
| 1218 | |
| 1219 | (define-public python2-pybugz |
| 1220 | (package |
| 1221 | (name "python2-pybugz") |
| 1222 | (version "0.6.11") |
| 1223 | (source (origin |
| 1224 | (method url-fetch) |
| 1225 | (uri (string-append |
| 1226 | "http://bits.liquidx.net/projects/pybugz/pybugz-" |
| 1227 | version ".tar.gz")) |
| 1228 | (sha256 |
| 1229 | (base32 |
| 1230 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
| 1231 | (patches (search-patches "pybugz-stty.patch" |
| 1232 | "pybugz-encode-error.patch")))) |
| 1233 | (build-system python-build-system) |
| 1234 | (arguments |
| 1235 | `(#:python ,python-2 ; SyntaxError with Python 3 |
| 1236 | #:tests? #f)) ; no 'test' sub-command |
| 1237 | (propagated-inputs |
| 1238 | `(("element-tree" ,python2-element-tree))) |
| 1239 | (synopsis "Python and command-line interface to Bugzilla") |
| 1240 | (description |
| 1241 | "PyBugz is a Python library and command-line tool to query the Bugzilla |
| 1242 | bug tracking system. It is meant as an aid to speed up interaction with the |
| 1243 | bug tracker.") |
| 1244 | (home-page "http://www.liquidx.net/pybugz/") |
| 1245 | (license license:gpl2))) |
| 1246 | |
| 1247 | (define-public python-enum34 |
| 1248 | (package |
| 1249 | (name "python-enum34") |
| 1250 | (version "1.1.6") |
| 1251 | (source |
| 1252 | (origin |
| 1253 | (method url-fetch) |
| 1254 | (uri (pypi-uri "enum34" version)) |
| 1255 | (sha256 |
| 1256 | (base32 |
| 1257 | "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a")))) |
| 1258 | (build-system python-build-system) |
| 1259 | (home-page "https://pypi.python.org/pypi/enum34") |
| 1260 | (synopsis "Backported Python 3.4 Enum") |
| 1261 | (description |
| 1262 | "Enum34 is the new Python stdlib enum module available in Python 3.4 |
| 1263 | backported for previous versions of Python from 2.4 to 3.3.") |
| 1264 | (license license:bsd-3))) |
| 1265 | |
| 1266 | (define-public python2-enum34 |
| 1267 | (package-with-python2 python-enum34)) |
| 1268 | |
| 1269 | (define-public python-parse-type |
| 1270 | (package |
| 1271 | (name "python-parse-type") |
| 1272 | (version "0.3.4") |
| 1273 | (source |
| 1274 | (origin |
| 1275 | (method url-fetch) |
| 1276 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 1277 | "parse_type/parse_type-" version ".tar.gz")) |
| 1278 | (sha256 |
| 1279 | (base32 |
| 1280 | "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) |
| 1281 | (build-system python-build-system) |
| 1282 | (arguments |
| 1283 | `(#:phases |
| 1284 | (modify-phases %standard-phases |
| 1285 | (add-after 'unpack 'patch-tests |
| 1286 | (lambda _ |
| 1287 | (substitute* "tests/test_parse_type_parse.py" |
| 1288 | ;; Newer Python versions don't have the problem this test tests. |
| 1289 | (("self[.]assertRaises[(]parse.TooManyFields, p.parse, ''[)]") |
| 1290 | "")) |
| 1291 | #t))))) |
| 1292 | (propagated-inputs |
| 1293 | `(("python-six" ,python-six) |
| 1294 | ("python-parse" ,python-parse))) |
| 1295 | (native-inputs |
| 1296 | `(("python-pytest" ,python-pytest) |
| 1297 | ("python-pytest-runner" ,python-pytest-runner))) |
| 1298 | (home-page "https://github.com/jenisys/parse_type") |
| 1299 | (synopsis "Extended parse module") |
| 1300 | (description |
| 1301 | "Parse_type extends the python parse module.") |
| 1302 | (properties |
| 1303 | `((python2-variant . ,(delay python2-parse-type)))) |
| 1304 | (license license:bsd-3))) |
| 1305 | |
| 1306 | (define-public python2-parse-type |
| 1307 | (let ((base (package-with-python2 |
| 1308 | (strip-python2-variant python-parse-type)))) |
| 1309 | (package (inherit base) |
| 1310 | (propagated-inputs |
| 1311 | `(("python2-enum34" ,python2-enum34) |
| 1312 | ,@(package-propagated-inputs base)))))) |
| 1313 | |
| 1314 | (define-public python-parse |
| 1315 | (package |
| 1316 | (name "python-parse") |
| 1317 | (version "1.6.6") |
| 1318 | (source |
| 1319 | (origin |
| 1320 | (method url-fetch) |
| 1321 | (uri (pypi-uri "parse" version)) |
| 1322 | (sha256 |
| 1323 | (base32 |
| 1324 | "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi")) |
| 1325 | (patches (search-patches "python-parse-too-many-fields.patch")))) |
| 1326 | (build-system python-build-system) |
| 1327 | (arguments |
| 1328 | `(#:phases |
| 1329 | (modify-phases %standard-phases |
| 1330 | (replace 'check |
| 1331 | (lambda _ (zero? (system* "python" "test_parse.py"))))))) |
| 1332 | (home-page "https://github.com/r1chardj0n3s/parse") |
| 1333 | (synopsis "Parse strings") |
| 1334 | (description |
| 1335 | "Parse strings using a specification based on the Python format() |
| 1336 | syntax.") |
| 1337 | (license license:x11))) |
| 1338 | |
| 1339 | (define-public python-polib |
| 1340 | (package |
| 1341 | (name "python-polib") |
| 1342 | (version "1.0.8") |
| 1343 | (source (origin |
| 1344 | (method url-fetch) |
| 1345 | (uri (pypi-uri "polib" version)) |
| 1346 | (sha256 |
| 1347 | (base32 |
| 1348 | "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss")))) |
| 1349 | (build-system python-build-system) |
| 1350 | (home-page "https://bitbucket.org/izi/polib/wiki/Home") |
| 1351 | (synopsis "Manipulate, create and modify gettext files") |
| 1352 | (description "Polib can manipulate any gettext format (po, pot and mo) |
| 1353 | files. It can be used to create po files from scratch or to modify |
| 1354 | existing ones.") |
| 1355 | (license license:expat))) |
| 1356 | |
| 1357 | (define-public python2-polib |
| 1358 | (let ((base (package-with-python2 (strip-python2-variant python-polib)))) |
| 1359 | (package |
| 1360 | (inherit base) |
| 1361 | (arguments `(,@(package-arguments base) |
| 1362 | ;; Tests don't work with python2. |
| 1363 | #:tests? #f))))) |
| 1364 | |
| 1365 | (define-public scons |
| 1366 | (package |
| 1367 | (name "scons") |
| 1368 | (version "3.0.1") |
| 1369 | (source (origin |
| 1370 | (method url-fetch) |
| 1371 | (uri (string-append "mirror://sourceforge/scons/scons/" version |
| 1372 | "/scons-" version ".tar.gz")) |
| 1373 | (sha256 |
| 1374 | (base32 |
| 1375 | "0wzid419mlwqw9llrg8gsx4nkzhqy16m4m40r0xnh6cwscw5wir4")))) |
| 1376 | (build-system python-build-system) |
| 1377 | (arguments |
| 1378 | `(#:use-setuptools? #f ; still relies on distutils |
| 1379 | #:tests? #f)) ; no 'python setup.py test' command |
| 1380 | (home-page "http://scons.org/") |
| 1381 | (synopsis "Software construction tool written in Python") |
| 1382 | (description |
| 1383 | "SCons is a software construction tool. Think of SCons as an improved, |
| 1384 | cross-platform substitute for the classic Make utility with integrated |
| 1385 | functionality similar to autoconf/automake and compiler caches such as ccache. |
| 1386 | In short, SCons is an easier, more reliable and faster way to build |
| 1387 | software.") |
| 1388 | (license license:x11))) |
| 1389 | |
| 1390 | (define-public scons-python2 |
| 1391 | (package |
| 1392 | (inherit (package-with-python2 scons)) |
| 1393 | (name "scons-python2"))) |
| 1394 | |
| 1395 | (define-public python-extras |
| 1396 | (package |
| 1397 | (name "python-extras") |
| 1398 | (version "0.0.3") |
| 1399 | (source |
| 1400 | (origin |
| 1401 | (method url-fetch) |
| 1402 | (uri (string-append |
| 1403 | "https://pypi.python.org/packages/source/e/extras/extras-" |
| 1404 | version ".tar.gz")) |
| 1405 | (sha256 |
| 1406 | (base32 |
| 1407 | "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s")))) |
| 1408 | (build-system python-build-system) |
| 1409 | (arguments |
| 1410 | ;; error in setup.cfg: command 'test' has no such option 'buffer' |
| 1411 | '(#:tests? #f)) |
| 1412 | (home-page "https://github.com/testing-cabal/extras") |
| 1413 | (synopsis "Useful extensions to the Python standard library") |
| 1414 | (description |
| 1415 | "Extras is a set of extensions to the Python standard library.") |
| 1416 | (license license:expat))) |
| 1417 | |
| 1418 | (define-public python2-extras |
| 1419 | (package-with-python2 python-extras)) |
| 1420 | |
| 1421 | (define-public python-mimeparse |
| 1422 | (package |
| 1423 | (name "python-mimeparse") |
| 1424 | (version "0.1.4") |
| 1425 | (source |
| 1426 | (origin |
| 1427 | (method url-fetch) |
| 1428 | (uri (string-append |
| 1429 | "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-" |
| 1430 | version ".tar.gz")) |
| 1431 | (sha256 |
| 1432 | (base32 |
| 1433 | "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w")))) |
| 1434 | (build-system python-build-system) |
| 1435 | (arguments |
| 1436 | '(#:tests? #f)) ; no setup.py test command |
| 1437 | (home-page |
| 1438 | "https://github.com/dbtsai/python-mimeparse") |
| 1439 | (synopsis "Python library for parsing MIME types") |
| 1440 | (description |
| 1441 | "Mimeparse provides basic functions for parsing MIME type names and |
| 1442 | matching them against a list of media-ranges.") |
| 1443 | (license license:expat))) |
| 1444 | |
| 1445 | (define-public python2-mimeparse |
| 1446 | (package-with-python2 python-mimeparse)) |
| 1447 | |
| 1448 | (define-public python-pafy |
| 1449 | (package |
| 1450 | (name "python-pafy") |
| 1451 | (version "0.5.3.1") |
| 1452 | (source |
| 1453 | (origin |
| 1454 | (method url-fetch) |
| 1455 | (uri (pypi-uri "pafy" version)) |
| 1456 | (sha256 |
| 1457 | (base32 |
| 1458 | "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim")))) |
| 1459 | (build-system python-build-system) |
| 1460 | (arguments |
| 1461 | `(#:tests? #f)) ; Currently pafy can not find itself in the tests |
| 1462 | (propagated-inputs |
| 1463 | ;; Youtube-dl is a python package which is imported in the file |
| 1464 | ;; "backend_youtube_dl.py", therefore it needs to be propagated. |
| 1465 | `(("youtube-dl" ,youtube-dl))) |
| 1466 | (home-page "https://np1.github.io/pafy/") |
| 1467 | (synopsis "Retrieve YouTube content and metadata") |
| 1468 | (description |
| 1469 | "@code{pafy} is a python library to retrieve YouTube content and metadata.") |
| 1470 | (license license:lgpl3+))) |
| 1471 | |
| 1472 | (define-public python-py |
| 1473 | (package |
| 1474 | (name "python-py") |
| 1475 | (version "1.4.32") |
| 1476 | (source |
| 1477 | (origin |
| 1478 | (method url-fetch) |
| 1479 | (uri (pypi-uri "py" version)) |
| 1480 | (sha256 |
| 1481 | (base32 |
| 1482 | "19s1pql9pq85h1qzsdwgyb8a3k1qgkvh33b02m8kfqhizz8rzf64")))) |
| 1483 | (build-system python-build-system) |
| 1484 | (arguments |
| 1485 | ;; FIXME: "ImportError: 'test' module incorrectly imported from |
| 1486 | ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'. |
| 1487 | ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'. |
| 1488 | ;; Is this module globally installed?" |
| 1489 | '(#:tests? #f)) |
| 1490 | (home-page "http://pylib.readthedocs.org/") |
| 1491 | (synopsis "Python library for parsing, I/O, instrospection, and logging") |
| 1492 | (description |
| 1493 | "Py is a Python library for file name parsing, .ini file parsing, I/O, |
| 1494 | code introspection, and logging.") |
| 1495 | (license license:expat))) |
| 1496 | |
| 1497 | (define-public python2-py |
| 1498 | (package-with-python2 python-py)) |
| 1499 | |
| 1500 | ;; Recent versions of python-fixtures and python-testrepository need |
| 1501 | ;; python-pbr for packaging, which itself needs these two packages for |
| 1502 | ;; testing. |
| 1503 | ;; To fix this circular dependency, we use a build of python-pbr, based on the |
| 1504 | ;; same source, just without any test dependencies and with tests disabled. |
| 1505 | ;; python-pbr-minmal is then used to package python-fixtures and |
| 1506 | ;; python-testrepository. |
| 1507 | ;; Strictly speaking we currently could remove the test-requirements from the |
| 1508 | ;; normal python-pbr package (and save this package) since test are disabled |
| 1509 | ;; there anyway. But this may change in future. |
| 1510 | (define-public python-pbr-minimal |
| 1511 | (package |
| 1512 | (name "python-pbr-minimal") |
| 1513 | (version "3.0.1") |
| 1514 | (source |
| 1515 | (origin |
| 1516 | (method url-fetch) |
| 1517 | (uri (pypi-uri "pbr" version)) |
| 1518 | (sha256 |
| 1519 | (base32 |
| 1520 | "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p")))) |
| 1521 | (build-system python-build-system) |
| 1522 | (arguments |
| 1523 | `(#:tests? #f)) |
| 1524 | (home-page "http://docs.openstack.org/developer/pbr/") |
| 1525 | (synopsis "Minimal build of python-pbr used for bootstrapping") |
| 1526 | (description |
| 1527 | "Used only for bootstrapping python2-pbr, you should not need this.") |
| 1528 | (license license:asl2.0))) |
| 1529 | |
| 1530 | (define-public python2-pbr-minimal |
| 1531 | (package-with-python2 python-pbr-minimal)) |
| 1532 | |
| 1533 | (define-public python-pbr |
| 1534 | (package |
| 1535 | (inherit python-pbr-minimal) |
| 1536 | (name "python-pbr") |
| 1537 | (arguments |
| 1538 | `(#:tests? #f)) ;; Most tests seem to use the Internet. |
| 1539 | (propagated-inputs |
| 1540 | `(("git" ,git))) ;; pbr actually uses the "git" binary. |
| 1541 | (native-inputs |
| 1542 | `(("python-fixtures" ,python-fixtures) |
| 1543 | ;; discover, coverage, hacking, subunit |
| 1544 | ("python-mock" ,python-mock) |
| 1545 | ("python-six" ,python-six) |
| 1546 | ("python-sphinx" ,python-sphinx) |
| 1547 | ("python-testrepository" ,python-testrepository) |
| 1548 | ("python-testresources" ,python-testresources) |
| 1549 | ("python-testscenarios" ,python-testscenarios) |
| 1550 | ("python-testtools" ,python-testtools) |
| 1551 | ("python-virtualenv" ,python-virtualenv))) |
| 1552 | (synopsis "Enhance the default behavior of Python’s setuptools") |
| 1553 | (description |
| 1554 | "Python Build Reasonableness (PBR) is a library that injects some useful |
| 1555 | and sensible default behaviors into your setuptools run. It will set |
| 1556 | versions, process requirements files and generate AUTHORS and ChangeLog file |
| 1557 | from git information. |
| 1558 | "))) |
| 1559 | |
| 1560 | (define-public python2-pbr |
| 1561 | (package-with-python2 python-pbr)) |
| 1562 | |
| 1563 | (define-public python-exif-read |
| 1564 | (package |
| 1565 | (name "python-exif-read") |
| 1566 | (version "2.1.2") |
| 1567 | (source (origin |
| 1568 | (method url-fetch) |
| 1569 | (uri (pypi-uri "ExifRead" version)) |
| 1570 | (sha256 |
| 1571 | (base32 |
| 1572 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
| 1573 | (build-system python-build-system) |
| 1574 | (arguments `(#:tests? #f)) ; no tests |
| 1575 | (home-page "https://github.com/ianare/exif-py") |
| 1576 | (synopsis "Python library to extract EXIF data from image files") |
| 1577 | (description |
| 1578 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg |
| 1579 | files.") |
| 1580 | (license license:bsd-3))) |
| 1581 | |
| 1582 | (define-public python2-exif-read |
| 1583 | (package-with-python2 python-exif-read)) |
| 1584 | |
| 1585 | (define-public python-pyld |
| 1586 | (package |
| 1587 | (name "python-pyld") |
| 1588 | (version "0.7.1") |
| 1589 | (source (origin |
| 1590 | (method url-fetch) |
| 1591 | (uri (pypi-uri "PyLD" version)) |
| 1592 | (sha256 |
| 1593 | (base32 |
| 1594 | "1m0fs6897vxfkf7awah5i66i7b7smm5fnywf1w50fpzyfbfhr156")))) |
| 1595 | (build-system python-build-system) |
| 1596 | (arguments `(#:tests? #f)) ; no tests |
| 1597 | (home-page "https://github.com/digitalbazaar/pyld") |
| 1598 | (synopsis "Python implementation of the JSON-LD specification") |
| 1599 | (description |
| 1600 | "PyLD is an implementation of the JSON-LD specification.") |
| 1601 | (license license:bsd-3))) |
| 1602 | |
| 1603 | (define-public python2-pyld |
| 1604 | (package-with-python2 python-pyld)) |
| 1605 | |
| 1606 | (define-public python-click |
| 1607 | (package |
| 1608 | (name "python-click") |
| 1609 | (version "6.7") |
| 1610 | (source |
| 1611 | (origin |
| 1612 | (method url-fetch) |
| 1613 | (uri (pypi-uri "click" version)) |
| 1614 | (sha256 |
| 1615 | (base32 |
| 1616 | "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi")))) |
| 1617 | (build-system python-build-system) |
| 1618 | (arguments |
| 1619 | `(#:phases |
| 1620 | (modify-phases %standard-phases |
| 1621 | (add-after 'unpack 'fix-paths |
| 1622 | (lambda* (#:key inputs #:allow-other-keys) |
| 1623 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) |
| 1624 | "cross-libc" "libc")))) |
| 1625 | (substitute* "click/_unicodefun.py" |
| 1626 | (("'locale'") |
| 1627 | (string-append "'" glibc "/bin/locale'")))) |
| 1628 | #t)) |
| 1629 | (replace 'check |
| 1630 | (lambda _ |
| 1631 | (zero? (system* "make" "test"))))))) |
| 1632 | (native-inputs |
| 1633 | `(("python-pytest" ,python-pytest))) |
| 1634 | (home-page "http://click.pocoo.org") |
| 1635 | (synopsis "Command line library for Python") |
| 1636 | (description |
| 1637 | "Click is a Python package for creating command line interfaces in a |
| 1638 | composable way with as little code as necessary. Its name stands for |
| 1639 | \"Command Line Interface Creation Kit\". It's highly configurable but comes |
| 1640 | with sensible defaults out of the box.") |
| 1641 | (license license:bsd-3))) |
| 1642 | |
| 1643 | (define-public python2-click |
| 1644 | (package-with-python2 python-click)) |
| 1645 | |
| 1646 | (define-public python-wheel |
| 1647 | (package |
| 1648 | (name "python-wheel") |
| 1649 | (version "0.30.0a0") |
| 1650 | (source |
| 1651 | (origin |
| 1652 | (method url-fetch) |
| 1653 | (uri (pypi-uri "wheel" version)) |
| 1654 | (sha256 |
| 1655 | (base32 |
| 1656 | "1nm6mn8isny0hr86rhbfrpfj867c0phf001xgsd69xfp9ady1wwq")))) |
| 1657 | (build-system python-build-system) |
| 1658 | (native-inputs |
| 1659 | `(("python-jsonschema" ,python-jsonschema) |
| 1660 | ("python-pytest-cov" ,python-pytest-cov))) |
| 1661 | (home-page "https://bitbucket.org/pypa/wheel/") |
| 1662 | (synopsis "Format for built Python packages") |
| 1663 | (description |
| 1664 | "A wheel is a ZIP-format archive with a specially formatted filename and |
| 1665 | the @code{.whl} extension. It is designed to contain all the files for a PEP |
| 1666 | 376 compatible install in a way that is very close to the on-disk format. Many |
| 1667 | packages will be properly installed with only the @code{Unpack} step and the |
| 1668 | unpacked archive preserves enough information to @code{Spread} (copy data and |
| 1669 | scripts to their final locations) at any later time. Wheel files can be |
| 1670 | installed with a newer @code{pip} or with wheel's own command line utility.") |
| 1671 | (license license:expat) |
| 1672 | (properties `((python2-variant . ,(delay python2-wheel)))))) |
| 1673 | |
| 1674 | (define-public python2-wheel |
| 1675 | (let ((wheel (package-with-python2 |
| 1676 | (strip-python2-variant python-wheel)))) |
| 1677 | (package (inherit wheel) |
| 1678 | (native-inputs `(("python2-functools32" ,python2-functools32) |
| 1679 | ,@(package-native-inputs wheel)))))) |
| 1680 | |
| 1681 | (define-public python-vcversioner |
| 1682 | (package |
| 1683 | (name "python-vcversioner") |
| 1684 | (version "2.16.0.0") |
| 1685 | (source |
| 1686 | (origin |
| 1687 | (method url-fetch) |
| 1688 | (uri (pypi-uri "vcversioner" version)) |
| 1689 | (sha256 |
| 1690 | (base32 |
| 1691 | "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns")))) |
| 1692 | (build-system python-build-system) |
| 1693 | (synopsis "Python library for version number discovery") |
| 1694 | (description "Vcversioner is a Python library that inspects tagging |
| 1695 | information in a variety of version control systems in order to discover |
| 1696 | version numbers.") |
| 1697 | (home-page "https://github.com/habnabit/vcversioner") |
| 1698 | (license license:isc))) |
| 1699 | |
| 1700 | (define-public python2-vcversioner |
| 1701 | (package-with-python2 python-vcversioner)) |
| 1702 | |
| 1703 | (define-public python-jsonschema |
| 1704 | (package |
| 1705 | (name "python-jsonschema") |
| 1706 | (version "2.5.1") |
| 1707 | (source (origin |
| 1708 | (method url-fetch) |
| 1709 | (uri |
| 1710 | (string-append |
| 1711 | "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-" |
| 1712 | version ".tar.gz")) |
| 1713 | (sha256 |
| 1714 | (base32 |
| 1715 | "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) |
| 1716 | (build-system python-build-system) |
| 1717 | (arguments |
| 1718 | '(#:phases |
| 1719 | (modify-phases %standard-phases |
| 1720 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 1721 | (native-inputs |
| 1722 | `(("python-nose" ,python-nose) |
| 1723 | ("python-vcversioner" ,python-vcversioner))) |
| 1724 | (home-page "https://github.com/Julian/jsonschema") |
| 1725 | (synopsis "Implementation of JSON Schema for Python") |
| 1726 | (description |
| 1727 | "Jsonschema is an implementation of JSON Schema for Python.") |
| 1728 | (license license:expat) |
| 1729 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) |
| 1730 | |
| 1731 | (define-public python2-jsonschema |
| 1732 | (let ((jsonschema (package-with-python2 |
| 1733 | (strip-python2-variant python-jsonschema)))) |
| 1734 | (package (inherit jsonschema) |
| 1735 | (native-inputs |
| 1736 | `(("python2-mock" ,python2-mock) |
| 1737 | ,@(package-native-inputs jsonschema))) |
| 1738 | (propagated-inputs |
| 1739 | `(("python2-functools32" ,python2-functools32)))))) |
| 1740 | |
| 1741 | (define-public python-schema |
| 1742 | (package |
| 1743 | (name "python-schema") |
| 1744 | (version "0.6.6") |
| 1745 | (source |
| 1746 | (origin |
| 1747 | (method url-fetch) |
| 1748 | (uri (pypi-uri "schema" version)) |
| 1749 | (sha256 |
| 1750 | (base32 |
| 1751 | "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm")))) |
| 1752 | (build-system python-build-system) |
| 1753 | (native-inputs |
| 1754 | `(("python-pytest" ,python-pytest))) |
| 1755 | (home-page "https://github.com/keleshev/schema") |
| 1756 | (synopsis "Simple data validation library") |
| 1757 | (description |
| 1758 | "@code{python-schema} is a library for validating Python data |
| 1759 | structures, such as those obtained from config-files, forms, external |
| 1760 | services or command-line parsing, converted from JSON/YAML (or |
| 1761 | something else) to Python data-types.") |
| 1762 | (license license:psfl))) |
| 1763 | |
| 1764 | (define-public python2-schema |
| 1765 | (package-with-python2 python-schema)) |
| 1766 | |
| 1767 | (define-public python-schema-0.5 |
| 1768 | (package (inherit python-schema) |
| 1769 | (version "0.5.0") |
| 1770 | (source |
| 1771 | (origin |
| 1772 | (method url-fetch) |
| 1773 | (uri (pypi-uri "schema" version)) |
| 1774 | (sha256 |
| 1775 | (base32 |
| 1776 | "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s")))))) |
| 1777 | |
| 1778 | (define-public python2-schema-0.5 |
| 1779 | (package-with-python2 python-schema-0.5)) |
| 1780 | |
| 1781 | (define-public python-kitchen |
| 1782 | (package |
| 1783 | (name "python-kitchen") |
| 1784 | (version "1.2.4") |
| 1785 | (source |
| 1786 | (origin |
| 1787 | (method url-fetch) |
| 1788 | (uri (pypi-uri "kitchen" version)) |
| 1789 | (sha256 |
| 1790 | (base32 |
| 1791 | "0ggv3p4x8jvmmzhp0xm00h6pvh1g0gmycw71rjwagnrj8n23vxrq")))) |
| 1792 | (build-system python-build-system) |
| 1793 | (propagated-inputs |
| 1794 | `(("python-chardet" ,python-chardet))) |
| 1795 | (home-page "https://github.com/fedora-infra/kitchen") |
| 1796 | (synopsis "Python API for snippets") |
| 1797 | (description "@code{kitchen} module provides a python API for all sorts of |
| 1798 | little useful snippets of code that everybody ends up writing for their projects |
| 1799 | but never seem big enough to build an independent release. Use kitchen and stop |
| 1800 | cutting and pasting that code over and over.") |
| 1801 | (license (list license:lgpl2.1+ |
| 1802 | ;; subprocess.py, test_subprocess.py, |
| 1803 | ;; kitchen/pycompat25/defaultdict.py: |
| 1804 | license:psfl)))) |
| 1805 | |
| 1806 | (define-public python2-kitchen |
| 1807 | (package-with-python2 python-kitchen)) |
| 1808 | |
| 1809 | (define-public python-unidecode |
| 1810 | (package |
| 1811 | (name "python-unidecode") |
| 1812 | (version "0.04.21") |
| 1813 | (source (origin |
| 1814 | (method url-fetch) |
| 1815 | (uri (pypi-uri "Unidecode" version)) |
| 1816 | (sha256 |
| 1817 | (base32 |
| 1818 | "0lfhp9c5xrbpjvbpr12ji52g1lx04404bzzdg6pvabhzisw6l2i8")))) |
| 1819 | (build-system python-build-system) |
| 1820 | (home-page "https://pypi.python.org/pypi/Unidecode") |
| 1821 | (synopsis "ASCII transliterations of Unicode text") |
| 1822 | (description |
| 1823 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is |
| 1824 | useful when integrating with legacy code that doesn't support Unicode, or for |
| 1825 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII |
| 1826 | machine identifiers from human-readable Unicode strings that should still be |
| 1827 | somewhat intelligible.") |
| 1828 | (license license:gpl2+))) |
| 1829 | |
| 1830 | (define-public python2-unidecode |
| 1831 | (package-with-python2 python-unidecode)) |
| 1832 | |
| 1833 | (define-public python-pyjwt |
| 1834 | (package |
| 1835 | (name "python-pyjwt") |
| 1836 | (version "1.5.3") |
| 1837 | (source |
| 1838 | (origin |
| 1839 | (method url-fetch) |
| 1840 | (uri (pypi-uri "PyJWT" version)) |
| 1841 | (sha256 |
| 1842 | (base32 |
| 1843 | "1rxsg14i33vm2i6lz0my628108c81k43v10n4h3p0gx62xdyf2sh")) |
| 1844 | (modules '((guix build utils))) |
| 1845 | (snippet |
| 1846 | '(begin |
| 1847 | (for-each delete-file-recursively |
| 1848 | (find-files "." "\\.pyc$")) |
| 1849 | #t)))) |
| 1850 | (build-system python-build-system) |
| 1851 | (native-inputs |
| 1852 | `(("python-pytest" ,python-pytest-3.0) |
| 1853 | ("python-pytest-cov" ,python-pytest-cov) |
| 1854 | ("python-pytest-runner" ,python-pytest-runner))) |
| 1855 | (home-page "https://github.com/progrium/pyjwt") |
| 1856 | (synopsis "JSON Web Token implementation in Python") |
| 1857 | (description |
| 1858 | "PyJWT is a JSON Web Token implementation written in Python.") |
| 1859 | (license license:expat))) |
| 1860 | |
| 1861 | (define-public python2-pyjwt |
| 1862 | (package-with-python2 python-pyjwt)) |
| 1863 | |
| 1864 | (define-public python-pykka |
| 1865 | (package |
| 1866 | (name "python-pykka") |
| 1867 | (version "1.2.1") |
| 1868 | (source |
| 1869 | (origin |
| 1870 | (method url-fetch) |
| 1871 | (uri (pypi-uri "Pykka" version)) |
| 1872 | (sha256 |
| 1873 | (base32 |
| 1874 | "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8")))) |
| 1875 | (build-system python-build-system) |
| 1876 | (native-inputs |
| 1877 | `(("python-mock" ,python-mock) |
| 1878 | ("python-nose" ,python-nose) |
| 1879 | ("python-gevent" ,python-gevent) |
| 1880 | ("python-eventlet" ,python-eventlet))) |
| 1881 | (home-page "https://www.pykka.org/") |
| 1882 | (synopsis "Pykka is a Python implementation of the actor model") |
| 1883 | (description |
| 1884 | "Pykka is a Python implementation of the actor model. |
| 1885 | The actor model introduces some simple rules to control the sharing |
| 1886 | of state and cooperation between execution units, which makes it |
| 1887 | easier to build concurrent applications.") |
| 1888 | (license license:asl2.0))) |
| 1889 | |
| 1890 | (define-public python2-pykka |
| 1891 | (package-with-python2 python-pykka)) |
| 1892 | |
| 1893 | (define-public python-itsdangerous |
| 1894 | (package |
| 1895 | (name "python-itsdangerous") |
| 1896 | (version "0.24") |
| 1897 | (source |
| 1898 | (origin |
| 1899 | (method url-fetch) |
| 1900 | (uri (string-append |
| 1901 | "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-" |
| 1902 | version ".tar.gz")) |
| 1903 | (sha256 |
| 1904 | (base32 |
| 1905 | "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb")))) |
| 1906 | (build-system python-build-system) |
| 1907 | (home-page "https://github.com/mitsuhiko/itsdangerous") |
| 1908 | (synopsis "Python library for passing data to/from untrusted environments") |
| 1909 | (description |
| 1910 | "Itsdangerous provides various helpers to pass trusted data to untrusted |
| 1911 | environments and back.") |
| 1912 | (license license:bsd-3))) |
| 1913 | |
| 1914 | (define-public python2-itsdangerous |
| 1915 | (package-with-python2 python-itsdangerous)) |
| 1916 | |
| 1917 | (define-public python-pyyaml |
| 1918 | (package |
| 1919 | (name "python-pyyaml") |
| 1920 | (version "3.12") |
| 1921 | (source |
| 1922 | (origin |
| 1923 | (method url-fetch) |
| 1924 | (uri (pypi-uri "PyYAML" version)) |
| 1925 | (sha256 |
| 1926 | (base32 |
| 1927 | "1aqjl8dk9amd4zr99n8v2qxzgmr2hdvqfma4zh7a41rj6336c9sr")))) |
| 1928 | (build-system python-build-system) |
| 1929 | (inputs |
| 1930 | `(("libyaml" ,libyaml))) |
| 1931 | (home-page "http://pyyaml.org/wiki/PyYAML") |
| 1932 | (synopsis "YAML parser and emitter for Python") |
| 1933 | (description |
| 1934 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a |
| 1935 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension |
| 1936 | API, and sensible error messages. PyYAML supports standard YAML tags and |
| 1937 | provides Python-specific tags that allow to represent an arbitrary Python |
| 1938 | object.") |
| 1939 | (license license:expat))) |
| 1940 | |
| 1941 | (define-public python2-pyyaml |
| 1942 | (package-with-python2 python-pyyaml)) |
| 1943 | |
| 1944 | (define-public python-virtualenv |
| 1945 | (package |
| 1946 | (name "python-virtualenv") |
| 1947 | (version "15.0.3") |
| 1948 | (source |
| 1949 | (origin |
| 1950 | (method url-fetch) |
| 1951 | (uri (pypi-uri "virtualenv" version)) |
| 1952 | (sha256 |
| 1953 | (base32 |
| 1954 | "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d")))) |
| 1955 | (build-system python-build-system) |
| 1956 | (arguments |
| 1957 | `(#:phases |
| 1958 | (modify-phases %standard-phases |
| 1959 | (replace 'check |
| 1960 | (lambda _ |
| 1961 | ;; Disable failing test. See upstream bug report |
| 1962 | ;; https://github.com/pypa/virtualenv/issues/957 |
| 1963 | (substitute* "tests/test_virtualenv.py" |
| 1964 | (("skipif.*") "skipif(True, reason=\"Guix\")\n")) |
| 1965 | (zero? (system* "py.test"))))))) |
| 1966 | (native-inputs |
| 1967 | `(("python-mock" ,python-mock) |
| 1968 | ("python-pytest" ,python-pytest))) |
| 1969 | (home-page "https://virtualenv.pypa.io/") |
| 1970 | (synopsis "Virtual Python environment builder") |
| 1971 | (description |
| 1972 | "Virtualenv is a tool to create isolated Python environments.") |
| 1973 | (license license:expat))) |
| 1974 | |
| 1975 | (define-public python2-virtualenv |
| 1976 | (package-with-python2 python-virtualenv)) |
| 1977 | |
| 1978 | (define-public python-markupsafe |
| 1979 | (package |
| 1980 | (name "python-markupsafe") |
| 1981 | (version "0.23") |
| 1982 | (source |
| 1983 | (origin |
| 1984 | (method url-fetch) |
| 1985 | (uri (string-append |
| 1986 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-" |
| 1987 | version ".tar.gz")) |
| 1988 | (sha256 |
| 1989 | (base32 |
| 1990 | "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54")))) |
| 1991 | (build-system python-build-system) |
| 1992 | (home-page "https://github.com/mitsuhiko/markupsafe") |
| 1993 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") |
| 1994 | (description |
| 1995 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation |
| 1996 | for Python.") |
| 1997 | (license license:bsd-3))) |
| 1998 | |
| 1999 | (define-public python2-markupsafe |
| 2000 | (package-with-python2 python-markupsafe)) |
| 2001 | |
| 2002 | (define-public python-jinja2 |
| 2003 | (package |
| 2004 | (name "python-jinja2") |
| 2005 | (version "2.9.6") |
| 2006 | (source |
| 2007 | (origin |
| 2008 | (method url-fetch) |
| 2009 | (uri (pypi-uri "Jinja2" version)) |
| 2010 | (sha256 |
| 2011 | (base32 |
| 2012 | "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx")))) |
| 2013 | (build-system python-build-system) |
| 2014 | (arguments |
| 2015 | `(#:phases |
| 2016 | (modify-phases %standard-phases |
| 2017 | ;; These files cannot be built with Python < 3.6. See |
| 2018 | ;; https://github.com/pallets/jinja/issues/655 |
| 2019 | ;; FIXME: Remove this when the "python" package is upgraded. |
| 2020 | (add-after 'unpack 'delete-incompatible-files |
| 2021 | (lambda _ |
| 2022 | (for-each delete-file |
| 2023 | '("jinja2/asyncsupport.py" |
| 2024 | "jinja2/asyncfilters.py")) |
| 2025 | #t))))) |
| 2026 | (propagated-inputs |
| 2027 | `(("python-markupsafe" ,python-markupsafe))) |
| 2028 | (home-page "http://jinja.pocoo.org/") |
| 2029 | (synopsis "Python template engine") |
| 2030 | (description |
| 2031 | "Jinja2 is a small but fast and easy to use stand-alone template engine |
| 2032 | written in pure Python.") |
| 2033 | (license license:bsd-3))) |
| 2034 | |
| 2035 | (define-public python2-jinja2 |
| 2036 | (package-with-python2 python-jinja2)) |
| 2037 | |
| 2038 | (define-public python-pystache |
| 2039 | (package |
| 2040 | (name "python-pystache") |
| 2041 | (version "0.5.4") |
| 2042 | (source (origin |
| 2043 | (method url-fetch) |
| 2044 | (uri (pypi-uri "pystache" version)) |
| 2045 | (sha256 |
| 2046 | (base32 |
| 2047 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) |
| 2048 | (build-system python-build-system) |
| 2049 | (arguments |
| 2050 | '(#:tests? #f)) ; FIXME: Python 3 tests are failing. |
| 2051 | (home-page "http://defunkt.io/pystache/") |
| 2052 | (synopsis "Python logic-less template engine") |
| 2053 | (description |
| 2054 | "Pystache is a Python implementation of the framework agnostic, |
| 2055 | logic-free templating system Mustache.") |
| 2056 | (license license:expat) |
| 2057 | (properties `((python2-variant . ,(delay python2-pystache)))))) |
| 2058 | |
| 2059 | (define-public python2-pystache |
| 2060 | (package (inherit (package-with-python2 |
| 2061 | (strip-python2-variant python-pystache))) |
| 2062 | (arguments |
| 2063 | `(#:python ,python-2 |
| 2064 | #:phases |
| 2065 | (modify-phases %standard-phases |
| 2066 | (replace 'check |
| 2067 | (lambda _ |
| 2068 | (zero? (system* "python" "test_pystache.py"))))))))) |
| 2069 | |
| 2070 | (define-public python-joblib |
| 2071 | (package |
| 2072 | (name "python-joblib") |
| 2073 | (version "0.10.3") |
| 2074 | (source (origin |
| 2075 | (method url-fetch) |
| 2076 | (uri (pypi-uri "joblib" version)) |
| 2077 | (sha256 |
| 2078 | (base32 |
| 2079 | "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9")) |
| 2080 | (modules '((guix build utils))) |
| 2081 | (snippet |
| 2082 | '(begin |
| 2083 | ;; Remove pre-compiled .pyc files from source. |
| 2084 | (for-each delete-file-recursively |
| 2085 | (find-files "." "__pycache__" #:directories? #t)) |
| 2086 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 2087 | #t)))) |
| 2088 | (build-system python-build-system) |
| 2089 | (arguments |
| 2090 | `(#:phases |
| 2091 | (modify-phases %standard-phases |
| 2092 | (add-before 'check 'disable-failing-tests |
| 2093 | (lambda _ |
| 2094 | ;; This numpydoc tests fails for unknown reasons |
| 2095 | (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py") |
| 2096 | ;; This numpydoc test depends on matplotlib, which is not a |
| 2097 | ;; required input. |
| 2098 | (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py") |
| 2099 | ;; These tests fail to execute sys.executable |
| 2100 | (substitute* "joblib/test/test_parallel.py" |
| 2101 | (("import nose" line) |
| 2102 | (string-append "from nose.plugins.skip import SkipTest\n" line)) |
| 2103 | (("def test_nested_parallel_warnings" line) |
| 2104 | (string-append "@SkipTest\n" line)) |
| 2105 | (("def test_parallel_with_interactively_defined_functions" line) |
| 2106 | (string-append "@SkipTest\n" line))) |
| 2107 | #t))))) |
| 2108 | ;; Provide nose to enable tests command |
| 2109 | (native-inputs |
| 2110 | `(("python-nose" ,python-nose) |
| 2111 | ("python-sphinx" ,python-sphinx) |
| 2112 | ("python-docutils" ,python-docutils) |
| 2113 | ("python-numpydoc" ,python-numpydoc))) |
| 2114 | (home-page "http://pythonhosted.org/joblib/") |
| 2115 | (synopsis "Using Python functions as pipeline jobs") |
| 2116 | (description |
| 2117 | "Joblib is a set of tools to provide lightweight pipelining in Python. |
| 2118 | In particular, joblib offers: transparent disk-caching of the output values |
| 2119 | and lazy re-evaluation (memoize pattern), easy simple parallel computing |
| 2120 | logging and tracing of the execution.") |
| 2121 | (license license:bsd-3))) |
| 2122 | |
| 2123 | (define-public python2-joblib |
| 2124 | (package-with-python2 python-joblib)) |
| 2125 | |
| 2126 | (define-public python-docutils |
| 2127 | (package |
| 2128 | (name "python-docutils") |
| 2129 | (version "0.14") |
| 2130 | (source |
| 2131 | (origin |
| 2132 | (method url-fetch) |
| 2133 | (uri (pypi-uri "docutils" version)) |
| 2134 | (sha256 |
| 2135 | (base32 |
| 2136 | "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji")))) |
| 2137 | (build-system python-build-system) |
| 2138 | (arguments |
| 2139 | '(#:tests? #f)) ; no setup.py test command |
| 2140 | (home-page "http://docutils.sourceforge.net/") |
| 2141 | (synopsis "Python Documentation Utilities") |
| 2142 | (description |
| 2143 | "Docutils is a modular system for processing documentation into useful |
| 2144 | formats, such as HTML, XML, and LaTeX. For input Docutils supports |
| 2145 | reStructuredText.") |
| 2146 | ;; Most of the source code is public domain, but some source files are |
| 2147 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. |
| 2148 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
| 2149 | |
| 2150 | (define-public python2-docutils |
| 2151 | (package-with-python2 python-docutils)) |
| 2152 | |
| 2153 | (define-public python-pygments |
| 2154 | (package |
| 2155 | (name "python-pygments") |
| 2156 | (version "2.2.0") |
| 2157 | (source |
| 2158 | (origin |
| 2159 | (method url-fetch) |
| 2160 | (uri (pypi-uri "Pygments" version)) |
| 2161 | (sha256 |
| 2162 | (base32 |
| 2163 | "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv")))) |
| 2164 | (build-system python-build-system) |
| 2165 | (arguments |
| 2166 | ;; FIXME: Tests require sphinx, which depends on this. |
| 2167 | '(#:tests? #f)) |
| 2168 | (home-page "http://pygments.org/") |
| 2169 | (synopsis "Syntax highlighting") |
| 2170 | (description |
| 2171 | "Pygments is a syntax highlighting package written in Python.") |
| 2172 | (license license:bsd-2))) |
| 2173 | |
| 2174 | (define-public python2-pygments |
| 2175 | (package-with-python2 python-pygments)) |
| 2176 | |
| 2177 | (define-public python-sphinxcontrib-websupport |
| 2178 | (package |
| 2179 | (name "python-sphinxcontrib-websupport") |
| 2180 | (version "1.0.1") |
| 2181 | (source (origin |
| 2182 | (method url-fetch) |
| 2183 | (uri (pypi-uri "sphinxcontrib-websupport" version)) |
| 2184 | (sha256 |
| 2185 | (base32 |
| 2186 | "1f9f0wjpi9nhikbyaz6d19s7qvzdf1nq2g5dsh640fma4q9rd1bs")))) |
| 2187 | (build-system python-build-system) |
| 2188 | (propagated-inputs |
| 2189 | `(("python-mock" ,python-mock) |
| 2190 | ("python-pytest" ,python-pytest) |
| 2191 | ("python-xapian-bindings" ,python-xapian-bindings))) |
| 2192 | ;; Needed for running the test suite |
| 2193 | (native-inputs |
| 2194 | `(("python-six" ,python-six) |
| 2195 | ("python-jinja2" ,python-jinja2) |
| 2196 | ("python-docutils" ,python-docutils) |
| 2197 | ("python-sphinx" ,python-sphinx) |
| 2198 | ("python-sqlalchemy" ,python-sqlalchemy) |
| 2199 | ("python-whoosh" ,python-whoosh))) |
| 2200 | (home-page "http://sphinx-doc.org/") |
| 2201 | (synopsis "Sphinx API for web applications") |
| 2202 | (description "This package provides a Python API to easily integrate |
| 2203 | Sphinx documentation into your web application. It provides tools to |
| 2204 | integrate Sphinx documents in web templates and to handle searches.") |
| 2205 | (license license:bsd-3))) |
| 2206 | |
| 2207 | (define-public python-sphinx |
| 2208 | (package |
| 2209 | (name "python-sphinx") |
| 2210 | (version "1.5.1") |
| 2211 | (source |
| 2212 | (origin |
| 2213 | (method url-fetch) |
| 2214 | (uri (pypi-uri "Sphinx" version)) |
| 2215 | (sha256 |
| 2216 | (base32 |
| 2217 | "1i8p9idnli4gr0y4x67yakbdk5w6a0xjzhrg6bg51y9d1fi7fslf")))) |
| 2218 | (build-system python-build-system) |
| 2219 | (arguments |
| 2220 | `(#:phases |
| 2221 | (modify-phases %standard-phases |
| 2222 | (replace 'check |
| 2223 | (lambda _ |
| 2224 | ;; Requires Internet access. |
| 2225 | (delete-file "tests/test_build_linkcheck.py") |
| 2226 | (zero? (system* "make" "test"))))))) |
| 2227 | (propagated-inputs |
| 2228 | `(("python-imagesize" ,python-imagesize) |
| 2229 | ("python-sphinx-alabaster-theme" |
| 2230 | ,python-sphinx-alabaster-theme) |
| 2231 | ("python-babel" ,python-babel) |
| 2232 | ("python-snowballstemmer" ,python-snowballstemmer) |
| 2233 | ("python-docutils" ,python-docutils) |
| 2234 | ("python-jinja2" ,python-jinja2) |
| 2235 | ("python-pygments" ,python-pygments) |
| 2236 | ("python-requests" ,python-requests) |
| 2237 | ("python-six" ,python-six))) |
| 2238 | (native-inputs |
| 2239 | `(("graphviz" ,graphviz) |
| 2240 | ("python-html5lib" ,python-html5lib) |
| 2241 | ("python-mock" ,python-mock) |
| 2242 | ("python-nose" ,python-nose))) |
| 2243 | (home-page "http://sphinx-doc.org/") |
| 2244 | (synopsis "Python documentation generator") |
| 2245 | (description "Sphinx is a tool that makes it easy to create documentation |
| 2246 | for Python projects or other documents consisting of multiple reStructuredText |
| 2247 | sources.") |
| 2248 | (license license:bsd-3) |
| 2249 | (properties `((python2-variant . ,(delay python2-sphinx)))))) |
| 2250 | |
| 2251 | (define-public python-sphinx-1.6 |
| 2252 | (package (inherit python-sphinx) |
| 2253 | (name "python-sphinx") |
| 2254 | (version "1.6.3") |
| 2255 | (source (origin |
| 2256 | (method url-fetch) |
| 2257 | (uri (pypi-uri "Sphinx" version)) |
| 2258 | (sha256 |
| 2259 | (base32 |
| 2260 | "1rj6f3i8hmrx2qlkshi5kp5xcy98dlynwlyl05yvflj5f66dp2xg")))) |
| 2261 | (arguments |
| 2262 | `(#:phases |
| 2263 | (modify-phases %standard-phases |
| 2264 | (replace 'check |
| 2265 | (lambda _ |
| 2266 | ;; Requires Internet access. |
| 2267 | (delete-file "tests/test_build_linkcheck.py") |
| 2268 | (substitute* "tests/test_build_latex.py" |
| 2269 | (("@pytest.mark.sphinx\\('latex', testroot='images'\\)") |
| 2270 | "@pytest.mark.skip()")) |
| 2271 | (zero? (system* "make" "test"))))))) |
| 2272 | (propagated-inputs |
| 2273 | `(("python-sphinxcontrib-websupport" ,python-sphinxcontrib-websupport) |
| 2274 | ,@(package-propagated-inputs python-sphinx))) |
| 2275 | (native-inputs |
| 2276 | `(("python-pytest" ,python-pytest-3.0) |
| 2277 | ("imagemagick" ,imagemagick) ; for "convert" |
| 2278 | ,@(package-native-inputs python-sphinx))) |
| 2279 | (properties '()))) |
| 2280 | |
| 2281 | (define-public python-sphinx-1.5.3 |
| 2282 | (package |
| 2283 | (inherit python-sphinx) |
| 2284 | (name "python-sphinx") |
| 2285 | (version "1.5.3") |
| 2286 | (source |
| 2287 | (origin |
| 2288 | (method url-fetch) |
| 2289 | (uri (pypi-uri "Sphinx" version)) |
| 2290 | (sha256 |
| 2291 | (base32 |
| 2292 | "0kw1axswbvaavr8ggyf4qr6hnisnrzlbkkcdada69vk1x9xjassg")))) |
| 2293 | (native-inputs |
| 2294 | `(("python-pytest" ,python-pytest-3.0) |
| 2295 | ,@(package-native-inputs python-sphinx))))) |
| 2296 | |
| 2297 | (define-public python2-sphinx |
| 2298 | (let ((base (package-with-python2 (strip-python2-variant python-sphinx)))) |
| 2299 | (package |
| 2300 | (inherit base) |
| 2301 | (native-inputs `(("python2-mock" ,python2-mock) |
| 2302 | ("python2-enum34" ,python2-enum34) |
| 2303 | ,@(package-native-inputs base))) |
| 2304 | (propagated-inputs `(("python2-pytz" ,python2-pytz) |
| 2305 | ,@(package-propagated-inputs base)))))) |
| 2306 | |
| 2307 | (define-public python-sphinx-rtd-theme |
| 2308 | (package |
| 2309 | (name "python-sphinx-rtd-theme") |
| 2310 | (version "0.2.4") |
| 2311 | (source |
| 2312 | (origin |
| 2313 | (method url-fetch) |
| 2314 | (uri (pypi-uri "sphinx_rtd_theme" version)) |
| 2315 | (sha256 |
| 2316 | (base32 |
| 2317 | "05rlhjzdyapr2w74jjs7mrm8hi69qskcr5vya9f9drpsys7lpxrd")))) |
| 2318 | (build-system python-build-system) |
| 2319 | (arguments '(#:tests? #f)) ; No tests. |
| 2320 | (propagated-inputs |
| 2321 | `(("python-sphinx" ,python-sphinx))) |
| 2322 | (home-page "https://github.com/snide/sphinx_rtd_theme/") |
| 2323 | (synopsis "ReadTheDocs.org theme for Sphinx") |
| 2324 | (description "A theme for Sphinx used by ReadTheDocs.org.") |
| 2325 | (license license:expat))) |
| 2326 | |
| 2327 | (define-public python2-sphinx-rtd-theme |
| 2328 | (package-with-python2 python-sphinx-rtd-theme)) |
| 2329 | |
| 2330 | (define-public python-guzzle-sphinx-theme |
| 2331 | (package |
| 2332 | (name "python-guzzle-sphinx-theme") |
| 2333 | (version "0.7.11") |
| 2334 | (source |
| 2335 | (origin |
| 2336 | (method url-fetch) |
| 2337 | (uri (pypi-uri "guzzle_sphinx_theme" version)) |
| 2338 | (sha256 |
| 2339 | (base32 |
| 2340 | "1rnkzrrsbnifn3vsb4pfaia3nlvgvw6ndpxp7lzjrh23qcwid34v")))) |
| 2341 | (build-system python-build-system) |
| 2342 | (propagated-inputs |
| 2343 | `(("python-sphinx" ,python-sphinx))) |
| 2344 | (home-page "https://github.com/guzzle/guzzle_sphinx_theme") |
| 2345 | (synopsis "Sphinx theme used by Guzzle") |
| 2346 | (description "This package provides guzzle_sphinx_theme, a theme for the |
| 2347 | Sphinx documentation system, used by @uref{http://docs.guzzlephp.org, Guzzle} |
| 2348 | and several other projects.") |
| 2349 | (license license:expat))) |
| 2350 | |
| 2351 | (define-public python2-guzzle-sphinx-theme |
| 2352 | (package-with-python2 python-guzzle-sphinx-theme)) |
| 2353 | |
| 2354 | (define-public python-rst.linker |
| 2355 | (package |
| 2356 | (name "python-rst.linker") |
| 2357 | (version "1.7") |
| 2358 | (source |
| 2359 | (origin |
| 2360 | (method url-fetch) |
| 2361 | (uri (pypi-uri "rst.linker" version)) |
| 2362 | (sha256 |
| 2363 | (base32 |
| 2364 | "0bh4lnj2p1nh0wf5pgxgfbrp27xhb1rinahkb5j7s3qprq6qn0sr")))) |
| 2365 | (build-system python-build-system) |
| 2366 | (propagated-inputs |
| 2367 | `(("python-dateutil" ,python-dateutil) |
| 2368 | ("python-six" ,python-six))) |
| 2369 | (native-inputs |
| 2370 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 2371 | ;; Test would require path.py, which would introduce a cyclic dependence. |
| 2372 | (arguments `(#:tests? #f)) |
| 2373 | ;; Note: As of version 1.7 the documentation is not worth building. |
| 2374 | (home-page "https://github.com/jaraco/rst.linker") |
| 2375 | (synopsis "Sphinx plugin to add links and timestamps") |
| 2376 | (description "rst.linker allows to automatically replace text by a |
| 2377 | reStructuredText external reference or timestamps. It's primary purpose is to |
| 2378 | augment the changelog, but it can be used for other documents, too.") |
| 2379 | (license license:expat))) |
| 2380 | |
| 2381 | (define-public python2-rst.linker |
| 2382 | (package-with-python2 python-rst.linker)) |
| 2383 | |
| 2384 | (define-public python-feedgenerator |
| 2385 | (package |
| 2386 | (name "python-feedgenerator") |
| 2387 | (version "1.9") |
| 2388 | (source |
| 2389 | (origin |
| 2390 | (method url-fetch) |
| 2391 | (uri (pypi-uri "feedgenerator" version)) |
| 2392 | (sha256 |
| 2393 | (base32 |
| 2394 | "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s")) |
| 2395 | (modules '((guix build utils))) |
| 2396 | (snippet |
| 2397 | '(begin |
| 2398 | ;; Remove pre-compiled .pyc files from source. |
| 2399 | (for-each delete-file-recursively |
| 2400 | (find-files "." "__pycache__" #:directories? #t)) |
| 2401 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 2402 | #t)))) |
| 2403 | (build-system python-build-system) |
| 2404 | (propagated-inputs |
| 2405 | `(("python-pytz" ,python-pytz) |
| 2406 | ("python-six" ,python-six))) |
| 2407 | (home-page "https://github.com/getpelican/feedgenerator") |
| 2408 | (synopsis |
| 2409 | "Standalone version of Django's Atom/RSS feed generator") |
| 2410 | (description |
| 2411 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, |
| 2412 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") |
| 2413 | (license license:bsd-3))) |
| 2414 | |
| 2415 | (define-public python2-feedgenerator |
| 2416 | (package-with-python2 python-feedgenerator)) |
| 2417 | |
| 2418 | (define-public python-blinker |
| 2419 | (package |
| 2420 | (name "python-blinker") |
| 2421 | (version "1.4") |
| 2422 | (source |
| 2423 | (origin |
| 2424 | (method url-fetch) |
| 2425 | (uri (pypi-uri "blinker" version)) |
| 2426 | (sha256 |
| 2427 | (base32 |
| 2428 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
| 2429 | (build-system python-build-system) |
| 2430 | (home-page "http://pythonhosted.org/blinker/") |
| 2431 | (synopsis "Fast, simple object-to-object and broadcast signaling") |
| 2432 | (description |
| 2433 | "Blinker provides a fast dispatching system that allows any number of |
| 2434 | interested parties to subscribe to events, or \"signals\".") |
| 2435 | (license license:expat))) |
| 2436 | |
| 2437 | (define-public python2-blinker |
| 2438 | (package-with-python2 python-blinker)) |
| 2439 | |
| 2440 | (define-public pelican |
| 2441 | (package |
| 2442 | (name "pelican") |
| 2443 | (version "3.6.3") |
| 2444 | (source |
| 2445 | (origin |
| 2446 | (method url-fetch) |
| 2447 | (uri (pypi-uri "pelican" version)) |
| 2448 | (sha256 |
| 2449 | (base32 |
| 2450 | "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k")))) |
| 2451 | (build-system python-build-system) |
| 2452 | (propagated-inputs |
| 2453 | `(("python-feedgenerator" ,python-feedgenerator) |
| 2454 | ("python-jinja2" ,python-jinja2) |
| 2455 | ("python-pygments" ,python-pygments) |
| 2456 | ("python-docutils" ,python-docutils) |
| 2457 | ("python-pytz" ,python-pytz) |
| 2458 | ("python-blinker" ,python-blinker) |
| 2459 | ("python-unidecode" ,python-unidecode) |
| 2460 | ("python-six" ,python-six) |
| 2461 | ("python-dateutil" ,python-dateutil))) |
| 2462 | (home-page "http://getpelican.com/") |
| 2463 | (arguments |
| 2464 | `(;; XXX Requires a lot more packages to do unit tests :P |
| 2465 | #:tests? #f |
| 2466 | #:phases (modify-phases %standard-phases |
| 2467 | (add-before |
| 2468 | 'install 'adjust-requires |
| 2469 | ;; Since feedgenerator is installed from git, it doesn't |
| 2470 | ;; conform to the version requirements. |
| 2471 | ;; |
| 2472 | ;; We *do have* "feedgenerator >= 1.6", but strip off the |
| 2473 | ;; version requirement so setuptools doesn't get confused. |
| 2474 | (lambda _ |
| 2475 | (substitute* "setup.py" |
| 2476 | (("['\"]feedgenerator.*?['\"]") |
| 2477 | "'feedgenerator'"))))))) |
| 2478 | (synopsis "Python-based static site publishing system") |
| 2479 | (description |
| 2480 | "Pelican is a tool to generate a static blog from reStructuredText, |
| 2481 | Markdown input files, and more. Pelican uses Jinja2 for templating |
| 2482 | and is very extensible.") |
| 2483 | (license license:agpl3+))) |
| 2484 | |
| 2485 | (define-public python-scikit-image |
| 2486 | (package |
| 2487 | (name "python-scikit-image") |
| 2488 | (version "0.11.3") |
| 2489 | (source |
| 2490 | (origin |
| 2491 | (method url-fetch) |
| 2492 | (uri (string-append |
| 2493 | "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-" |
| 2494 | version ".tar.gz")) |
| 2495 | (sha256 |
| 2496 | (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn")))) |
| 2497 | (build-system python-build-system) |
| 2498 | (arguments |
| 2499 | ;; TODO: Some tests require running X11 server. Disable them? |
| 2500 | '(#:tests? #f)) |
| 2501 | ;; See DEPENDS.txt for the list of build and run time requiremnts |
| 2502 | (propagated-inputs |
| 2503 | `(("python-matplotlib" ,python-matplotlib) |
| 2504 | ("python-networkx" ,python-networkx) |
| 2505 | ("python-scipy" ,python-scipy) |
| 2506 | ("python-pillow" ,python-pillow))) |
| 2507 | (native-inputs |
| 2508 | `(("python-numpy" ,python-numpy) |
| 2509 | ("python-cython" ,python-cython) |
| 2510 | ("python-six" ,python-six))) |
| 2511 | (home-page "http://scikit-image.org/") |
| 2512 | (synopsis "Image processing in Python") |
| 2513 | (description |
| 2514 | "Scikit-image is a collection of algorithms for image processing.") |
| 2515 | (license license:bsd-3))) |
| 2516 | |
| 2517 | (define-public python2-scikit-image |
| 2518 | (package-with-python2 python-scikit-image)) |
| 2519 | |
| 2520 | (define-public python-cython |
| 2521 | (package |
| 2522 | (name "python-cython") |
| 2523 | (version "0.27") |
| 2524 | (source |
| 2525 | (origin |
| 2526 | (method url-fetch) |
| 2527 | (uri (pypi-uri "Cython" version)) |
| 2528 | (sha256 |
| 2529 | (base32 |
| 2530 | "02y0pp1nx77b8s1mpxc6da2dccl6wd31pp4ksi9via479qcvacmr")))) |
| 2531 | (build-system python-build-system) |
| 2532 | ;; we need the full python package and not just the python-wrapper |
| 2533 | ;; because we need libpython3.3m.so |
| 2534 | (inputs |
| 2535 | `(("python" ,python))) |
| 2536 | (arguments |
| 2537 | `(#:phases |
| 2538 | (modify-phases %standard-phases |
| 2539 | (add-before 'check 'set-HOME |
| 2540 | ;; some tests require access to "$HOME/.cython" |
| 2541 | (lambda _ (setenv "HOME" "/tmp") #t)) |
| 2542 | (replace 'check |
| 2543 | (lambda _ (zero? (system* "python" "runtests.py" "-vv"))))))) |
| 2544 | (home-page "http://cython.org/") |
| 2545 | (synopsis "C extensions for Python") |
| 2546 | (description "Cython is an optimising static compiler for both the Python |
| 2547 | programming language and the extended Cython programming language. It makes |
| 2548 | writing C extensions for Python as easy as Python itself.") |
| 2549 | (license license:asl2.0) |
| 2550 | (properties `((python2-variant . ,(delay python2-cython)))))) |
| 2551 | |
| 2552 | (define-public python2-cython |
| 2553 | (package (inherit (package-with-python2 |
| 2554 | (strip-python2-variant python-cython))) |
| 2555 | (name "python2-cython") |
| 2556 | (inputs |
| 2557 | `(("python-2" ,python-2))))) ; this is not automatically changed |
| 2558 | |
| 2559 | ;; The RPython toolchain currently does not support Python 3. |
| 2560 | (define-public python2-rpython |
| 2561 | (package |
| 2562 | (name "python2-rpython") |
| 2563 | (version "0.2.1") |
| 2564 | (source |
| 2565 | (origin |
| 2566 | (method url-fetch) |
| 2567 | (uri (pypi-uri "rpython" version)) |
| 2568 | (sha256 |
| 2569 | (base32 |
| 2570 | "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0")))) |
| 2571 | (build-system python-build-system) |
| 2572 | (arguments `(#:python ,python-2)) |
| 2573 | (native-inputs |
| 2574 | `(("python2-pytest" ,python2-pytest))) ; needed for running tests |
| 2575 | (home-page "https://rpython.readthedocs.org") |
| 2576 | (synopsis "Framework for implementing interpreters and virtual machines") |
| 2577 | (description "RPython is a translation and support framework for |
| 2578 | producing implementations of dynamic languages, emphasizing a clean separation |
| 2579 | between language specification and implementation aspects.") |
| 2580 | (license license:expat))) |
| 2581 | |
| 2582 | ;; NOTE: when upgrading numpy please make sure that python-pandas and |
| 2583 | ;; python-scipy still build, as these three packages are often used together. |
| 2584 | (define-public python-numpy |
| 2585 | (package |
| 2586 | (name "python-numpy") |
| 2587 | (version "1.12.0") |
| 2588 | (source |
| 2589 | (origin |
| 2590 | (method url-fetch) |
| 2591 | (uri (string-append |
| 2592 | "https://github.com/numpy/numpy/archive/v" version ".tar.gz")) |
| 2593 | (file-name (string-append name "-" version ".tar.gz")) |
| 2594 | (sha256 |
| 2595 | (base32 |
| 2596 | "025d4j4aakcp8w5i5diqh812cbbjgac7jszx1j56ivrbi1i8vv7d")))) |
| 2597 | (build-system python-build-system) |
| 2598 | (inputs |
| 2599 | `(("openblas" ,openblas) |
| 2600 | ("lapack" ,lapack))) |
| 2601 | (native-inputs |
| 2602 | `(("python-cython" ,python-cython) |
| 2603 | ("python-nose" ,python-nose) |
| 2604 | ("gfortran" ,gfortran))) |
| 2605 | (arguments |
| 2606 | `(#:phases |
| 2607 | (modify-phases %standard-phases |
| 2608 | (add-before 'build 'set-environment-variables |
| 2609 | (lambda* (#:key inputs #:allow-other-keys) |
| 2610 | (call-with-output-file "site.cfg" |
| 2611 | (lambda (port) |
| 2612 | (format port |
| 2613 | "[openblas] |
| 2614 | libraries = openblas |
| 2615 | library_dirs = ~a/lib |
| 2616 | include_dirs = ~a/include |
| 2617 | |
| 2618 | # backslash-n to make emacs happy |
| 2619 | \n[lapack] |
| 2620 | lapack_libs = lapack |
| 2621 | library_dirs = ~a/lib |
| 2622 | include_dirs = ~a/include |
| 2623 | " |
| 2624 | (assoc-ref inputs "openblas") |
| 2625 | (assoc-ref inputs "openblas") |
| 2626 | (assoc-ref inputs "lapack") |
| 2627 | (assoc-ref inputs "lapack")))) |
| 2628 | ;; Make /gnu/store/...-bash-.../bin/sh the default shell, instead of |
| 2629 | ;; /bin/sh. |
| 2630 | (substitute* "numpy/distutils/exec_command.py" |
| 2631 | (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end) |
| 2632 | (string-append match-start (assoc-ref inputs "bash") match-end))) |
| 2633 | ;; Use "gcc" executable, not "cc". |
| 2634 | (substitute* "numpy/distutils/system_info.py" |
| 2635 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") |
| 2636 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) |
| 2637 | #t)) |
| 2638 | ;; Tests can only be run after the library has been installed and not |
| 2639 | ;; within the source directory. |
| 2640 | (delete 'check) |
| 2641 | (add-after 'install 'check |
| 2642 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 2643 | ;; Make installed package available for running the tests |
| 2644 | (add-installed-pythonpath inputs outputs) |
| 2645 | (with-directory-excursion "/tmp" |
| 2646 | (zero? (system* "python" "-c" |
| 2647 | "import numpy; numpy.test(verbose=2)")))))))) |
| 2648 | (home-page "http://www.numpy.org/") |
| 2649 | (synopsis "Fundamental package for scientific computing with Python") |
| 2650 | (description "NumPy is the fundamental package for scientific computing |
| 2651 | with Python. It contains among other things: a powerful N-dimensional array |
| 2652 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
| 2653 | and Fortran code, useful linear algebra, Fourier transform, and random number |
| 2654 | capabilities.") |
| 2655 | (license license:bsd-3))) |
| 2656 | |
| 2657 | (define-public python2-numpy |
| 2658 | (package-with-python2 python-numpy)) |
| 2659 | |
| 2660 | (define-public python-numpy-next |
| 2661 | (package (inherit python-numpy) |
| 2662 | (name "python-numpy-next") |
| 2663 | (version "1.13.1") |
| 2664 | (source |
| 2665 | (origin |
| 2666 | (method url-fetch) |
| 2667 | (uri (pypi-uri "numpy" version ".zip")) |
| 2668 | (sha256 |
| 2669 | (base32 |
| 2670 | "1fsgkhh1vdkhmlz8vmdgxnj9n9yaanckxxzz9s0b4p08fqvjic69")))) |
| 2671 | (native-inputs |
| 2672 | `(("unzip" ,unzip) |
| 2673 | ("python-cython" ,python-cython) |
| 2674 | ("python-nose" ,python-nose) |
| 2675 | ("gfortran" ,gfortran))))) |
| 2676 | |
| 2677 | (define-public python2-numpy-next |
| 2678 | (package-with-python2 python-numpy-next)) |
| 2679 | |
| 2680 | (define-public python-munch |
| 2681 | (package |
| 2682 | (name "python-munch") |
| 2683 | (version "2.0.4") |
| 2684 | (source |
| 2685 | (origin |
| 2686 | (method url-fetch) |
| 2687 | (uri (pypi-uri "munch" version)) |
| 2688 | (sha256 |
| 2689 | (base32 |
| 2690 | "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l")))) |
| 2691 | (build-system python-build-system) |
| 2692 | (home-page "https://github.com/Infinidat/munch") |
| 2693 | (synopsis "Dot-accessible dictionary") |
| 2694 | (description "Munch is a dot-accessible dictionary similar to JavaScript |
| 2695 | objects.") |
| 2696 | (license license:expat))) |
| 2697 | |
| 2698 | (define-public python2-munch |
| 2699 | (package-with-python2 python-munch)) |
| 2700 | |
| 2701 | (define-public python-colormath |
| 2702 | (package |
| 2703 | (name "python-colormath") |
| 2704 | (version "2.1.1") |
| 2705 | (source |
| 2706 | (origin |
| 2707 | (method url-fetch) |
| 2708 | (uri (pypi-uri "colormath" version)) |
| 2709 | (sha256 |
| 2710 | (base32 |
| 2711 | "01wp5xwm0a89wdm1dc9rr1ij90idzdiiipxdj1yslhqzkhnjnfh0")))) |
| 2712 | (build-system python-build-system) |
| 2713 | (propagated-inputs |
| 2714 | `(("python-networkx" ,python-networkx) |
| 2715 | ("python-numpy" ,python-numpy))) |
| 2716 | (home-page "https://github.com/gtaylor/python-colormath") |
| 2717 | (synopsis "Color math and conversion library") |
| 2718 | (description |
| 2719 | "This is a Python library for color math and conversions.") |
| 2720 | (license license:bsd-3))) |
| 2721 | |
| 2722 | (define-public python2-colormath |
| 2723 | (package-with-python2 python-colormath)) |
| 2724 | |
| 2725 | (define-public python-spectra |
| 2726 | (package |
| 2727 | (name "python-spectra") |
| 2728 | (version "0.0.8") |
| 2729 | (source |
| 2730 | (origin |
| 2731 | (method url-fetch) |
| 2732 | (uri (pypi-uri "spectra" version)) |
| 2733 | (sha256 |
| 2734 | (base32 |
| 2735 | "0n87kzhpkml2s2q91rdkl8wz2kkv5b0bkrgww45lxa5vq34qh6w5")))) |
| 2736 | (build-system python-build-system) |
| 2737 | (arguments |
| 2738 | `(#:phases |
| 2739 | (modify-phases %standard-phases |
| 2740 | (replace 'check |
| 2741 | (lambda _ |
| 2742 | (zero? (system* "nosetests" "-v"))))))) |
| 2743 | (propagated-inputs |
| 2744 | `(("python-colormath" ,python-colormath))) |
| 2745 | (native-inputs |
| 2746 | `(("python-nose" ,python-nose))) |
| 2747 | (home-page "http://github.com/jsvine/spectra") |
| 2748 | (synopsis "Color scales and color conversion") |
| 2749 | (description |
| 2750 | "This package provides a Python library intended to make color math, |
| 2751 | color scales, and color space conversion easy. It has support for: |
| 2752 | |
| 2753 | @enumerate |
| 2754 | @item Color scales |
| 2755 | @item Color ranges |
| 2756 | @item Color blending |
| 2757 | @item Brightening/darkening colors |
| 2758 | @item Saturating/desaturating colors |
| 2759 | @item Conversion to/from multiple color spaces. |
| 2760 | @end enumerate\n") |
| 2761 | (license license:expat))) |
| 2762 | |
| 2763 | (define-public python2-spectra |
| 2764 | (package-with-python2 python-spectra)) |
| 2765 | |
| 2766 | (define-public python2-fastlmm |
| 2767 | (package |
| 2768 | (name "python2-fastlmm") |
| 2769 | (version "0.2.21") |
| 2770 | (source |
| 2771 | (origin |
| 2772 | (method url-fetch) |
| 2773 | (uri (pypi-uri "fastlmm" version ".zip")) |
| 2774 | (sha256 |
| 2775 | (base32 |
| 2776 | "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m")))) |
| 2777 | (build-system python-build-system) |
| 2778 | (arguments |
| 2779 | `(#:python ,python-2)) ; only Python 2.7 is supported |
| 2780 | (propagated-inputs |
| 2781 | `(("python2-numpy" ,python2-numpy) |
| 2782 | ("python2-scipy" ,python2-scipy) |
| 2783 | ("python2-matplotlib" ,python2-matplotlib) |
| 2784 | ("python2-pandas" ,python2-pandas) |
| 2785 | ("python2-scikit-learn" ,python2-scikit-learn) |
| 2786 | ("python2-pysnptools" ,python2-pysnptools))) |
| 2787 | (native-inputs |
| 2788 | `(("unzip" ,unzip) |
| 2789 | ("python2-cython" ,python2-cython) |
| 2790 | ("python2-mock" ,python2-mock) |
| 2791 | ("python2-nose" ,python2-nose))) |
| 2792 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/") |
| 2793 | (synopsis "Perform genome-wide association studies on large data sets") |
| 2794 | (description |
| 2795 | "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed |
| 2796 | Models, is a program for performing both single-SNP and SNP-set genome-wide |
| 2797 | association studies (GWAS) on extremely large data sets.") |
| 2798 | (license license:asl2.0))) |
| 2799 | |
| 2800 | (define-public python-numpy-documentation |
| 2801 | (package |
| 2802 | (name "python-numpy-documentation") |
| 2803 | (version (package-version python-numpy)) |
| 2804 | (source (package-source python-numpy)) |
| 2805 | (build-system python-build-system) |
| 2806 | (native-inputs |
| 2807 | `(("python-matplotlib" ,python-matplotlib) |
| 2808 | ("python-numpy" ,python-numpy) |
| 2809 | ("pkg-config" ,pkg-config) |
| 2810 | ("python-sphinx" ,python-sphinx) |
| 2811 | ("python-numpydoc" ,python-numpydoc) |
| 2812 | ("texlive" ,(texlive-union (list texlive-fonts-amsfonts |
| 2813 | texlive-fonts-ec |
| 2814 | texlive-generic-ifxetex |
| 2815 | texlive-generic-pdftex |
| 2816 | texlive-latex-amsfonts |
| 2817 | texlive-latex-capt-of |
| 2818 | texlive-latex-cmap |
| 2819 | texlive-latex-environ |
| 2820 | texlive-latex-eqparbox |
| 2821 | texlive-latex-etoolbox |
| 2822 | texlive-latex-expdlist |
| 2823 | texlive-latex-fancyhdr |
| 2824 | texlive-latex-fancyvrb |
| 2825 | texlive-latex-fncychap |
| 2826 | texlive-latex-float |
| 2827 | texlive-latex-framed |
| 2828 | texlive-latex-geometry |
| 2829 | texlive-latex-graphics |
| 2830 | texlive-latex-hyperref |
| 2831 | texlive-latex-mdwtools |
| 2832 | texlive-latex-multirow |
| 2833 | texlive-latex-oberdiek |
| 2834 | texlive-latex-parskip |
| 2835 | texlive-latex-preview |
| 2836 | texlive-latex-tabulary |
| 2837 | texlive-latex-threeparttable |
| 2838 | texlive-latex-titlesec |
| 2839 | texlive-latex-trimspaces |
| 2840 | texlive-latex-ucs |
| 2841 | texlive-latex-upquote |
| 2842 | texlive-latex-url |
| 2843 | texlive-latex-varwidth |
| 2844 | texlive-latex-wrapfig))) |
| 2845 | ("texinfo" ,texinfo) |
| 2846 | ("perl" ,perl) |
| 2847 | ("scipy-sphinx-theme" |
| 2848 | ,(origin ; The build script expects scipy-sphinx-theme as a git submodule |
| 2849 | (method git-fetch) |
| 2850 | (uri (git-reference |
| 2851 | (url "https://github.com/scipy/scipy-sphinx-theme.git") |
| 2852 | (commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))) |
| 2853 | (sha256 |
| 2854 | (base32 |
| 2855 | "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))) |
| 2856 | ,@(package-native-inputs python-numpy))) |
| 2857 | (arguments |
| 2858 | `(#:tests? #f ; we're only generating the documentation |
| 2859 | #:phases |
| 2860 | (modify-phases %standard-phases |
| 2861 | (delete 'build) |
| 2862 | (replace 'install |
| 2863 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 2864 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) |
| 2865 | (doc (string-append |
| 2866 | data "/doc/" ,name "-" |
| 2867 | ,(package-version python-numpy))) |
| 2868 | (info-reader (string-append data "/info")) |
| 2869 | (html (string-append doc "/html")) |
| 2870 | (scipy-sphinx-theme "scipy-sphinx-theme") |
| 2871 | (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme)) |
| 2872 | (pyver ,(string-append "PYVER="))) |
| 2873 | |
| 2874 | ;; FIXME: this is needed to for texlive-union to generate |
| 2875 | ;; fonts, which are not found. |
| 2876 | (setenv "HOME" "/tmp") |
| 2877 | |
| 2878 | (with-directory-excursion "doc" |
| 2879 | (copy-recursively sphinx-theme-checkout scipy-sphinx-theme) |
| 2880 | (mkdir-p html) |
| 2881 | (system* "make" "html" pyver) |
| 2882 | (system* "make" "latex" "PAPER=a4" pyver) |
| 2883 | (system* "make" "-C" "build/latex" |
| 2884 | "all-pdf" "PAPER=a4" pyver) |
| 2885 | ;; FIXME: Generation of the info file fails. |
| 2886 | ;; (system* "make" "info" pyver) |
| 2887 | ;; (mkdir-p info) |
| 2888 | ;; (copy-file "build/texinfo/numpy.info" |
| 2889 | ;; (string-append info "/numpy.info")) |
| 2890 | (for-each (lambda (file) |
| 2891 | (copy-file (string-append "build/latex" file) |
| 2892 | (string-append doc file))) |
| 2893 | '("/numpy-ref.pdf" "/numpy-user.pdf")) |
| 2894 | (with-directory-excursion "build/html" |
| 2895 | (for-each (lambda (file) |
| 2896 | (let* ((dir (dirname file)) |
| 2897 | (tgt-dir (string-append html "/" dir))) |
| 2898 | (unless (equal? "." dir) |
| 2899 | (mkdir-p tgt-dir)) |
| 2900 | (install-file file html))) |
| 2901 | (find-files "." ".*"))))) |
| 2902 | #t))))) |
| 2903 | (home-page (package-home-page python-numpy)) |
| 2904 | (synopsis "Documentation for the python-numpy package") |
| 2905 | (description (package-description python-numpy)) |
| 2906 | (license (package-license python-numpy)))) |
| 2907 | |
| 2908 | (define-public python2-numpy-documentation |
| 2909 | (let ((numpy-documentation (package-with-python2 python-numpy-documentation))) |
| 2910 | (package |
| 2911 | (inherit numpy-documentation) |
| 2912 | (native-inputs `(("python2-functools32" ,python2-functools32) |
| 2913 | ,@(package-native-inputs numpy-documentation)))))) |
| 2914 | |
| 2915 | (define-public python-pygit2 |
| 2916 | (package |
| 2917 | (name "python-pygit2") |
| 2918 | (version "0.26.0") |
| 2919 | (source |
| 2920 | (origin |
| 2921 | (method url-fetch) |
| 2922 | (uri (pypi-uri "pygit2" version)) |
| 2923 | (sha256 |
| 2924 | (base32 |
| 2925 | "1cbc488ra3kg7r3qky17ms0szi3cda2d96qfkv1l9djsy9hnvw57")) |
| 2926 | (patches |
| 2927 | (search-patches "python-pygit2-disable-network-tests.patch")))) |
| 2928 | (build-system python-build-system) |
| 2929 | (propagated-inputs |
| 2930 | `(("python-six" ,python-six) |
| 2931 | ("python-cffi" ,python-cffi) |
| 2932 | ("libgit2" ,libgit2) |
| 2933 | ("python-tox" ,python-tox))) |
| 2934 | (home-page "https://github.com/libgit2/pygit2") |
| 2935 | (synopsis "Python bindings for libgit2") |
| 2936 | (description "Pygit2 is a set of Python bindings to the libgit2 shared |
| 2937 | library, libgit2 implements Git plumbing.") |
| 2938 | ;; GPL2.0 only, with linking exception. |
| 2939 | (license license:gpl2))) |
| 2940 | |
| 2941 | (define-public python2-pygit2 |
| 2942 | (package-with-python2 python-pygit2)) |
| 2943 | |
| 2944 | (define-public python-pyparsing |
| 2945 | (package |
| 2946 | (name "python-pyparsing") |
| 2947 | (version "2.2.0") |
| 2948 | (source |
| 2949 | (origin |
| 2950 | (method url-fetch) |
| 2951 | (uri (string-append "mirror://sourceforge/pyparsing/pyparsing" |
| 2952 | "/pyparsing-" version |
| 2953 | "/pyparsing-" version ".tar.gz")) |
| 2954 | (sha256 |
| 2955 | (base32 |
| 2956 | "016b9gh606aa44sq92jslm89bg874ia0yyiyb643fa6dgbsbqch8")))) |
| 2957 | (build-system python-build-system) |
| 2958 | (outputs '("out" "doc")) |
| 2959 | (arguments |
| 2960 | `(#:tests? #f ; no test target |
| 2961 | #:phases |
| 2962 | (modify-phases %standard-phases |
| 2963 | (add-after 'install 'install-doc |
| 2964 | (lambda* (#:key outputs #:allow-other-keys) |
| 2965 | (let* ((doc (string-append (assoc-ref outputs "doc") |
| 2966 | "/share/doc/" ,name "-" ,version)) |
| 2967 | (html-doc (string-append doc "/html")) |
| 2968 | (examples (string-append doc "/examples"))) |
| 2969 | (mkdir-p html-doc) |
| 2970 | (mkdir-p examples) |
| 2971 | (for-each |
| 2972 | (lambda (dir tgt) |
| 2973 | (map (lambda (file) |
| 2974 | (install-file file tgt)) |
| 2975 | (find-files dir ".*"))) |
| 2976 | (list "docs" "htmldoc" "examples") |
| 2977 | (list doc html-doc examples)) |
| 2978 | #t)))))) |
| 2979 | (home-page "http://pyparsing.wikispaces.com") |
| 2980 | (synopsis "Python parsing class library") |
| 2981 | (description |
| 2982 | "The pyparsing module is an alternative approach to creating and |
| 2983 | executing simple grammars, vs. the traditional lex/yacc approach, or the use |
| 2984 | of regular expressions. The pyparsing module provides a library of classes |
| 2985 | that client code uses to construct the grammar directly in Python code.") |
| 2986 | (license license:expat))) |
| 2987 | |
| 2988 | (define-public python2-pyparsing |
| 2989 | (package-with-python2 python-pyparsing)) |
| 2990 | |
| 2991 | (define-public python-numpydoc |
| 2992 | (package |
| 2993 | (name "python-numpydoc") |
| 2994 | (version "0.5") |
| 2995 | (source |
| 2996 | (origin |
| 2997 | (method url-fetch) |
| 2998 | (uri (string-append |
| 2999 | "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-" |
| 3000 | version ".tar.gz")) |
| 3001 | (sha256 |
| 3002 | (base32 |
| 3003 | "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k")) |
| 3004 | (modules '((guix build utils))) |
| 3005 | (snippet |
| 3006 | '(begin |
| 3007 | ;; Drop a test requiring matplotlib, which we cannot add as an |
| 3008 | ;; input since it would create a circular dependency: Extend the |
| 3009 | ;; test for Python 3, where it is already dropped, to Python 2. |
| 3010 | (substitute* "numpydoc/tests/test_plot_directive.py" |
| 3011 | (("3") "2")))))) |
| 3012 | (build-system python-build-system) |
| 3013 | (propagated-inputs |
| 3014 | `(("python-sphinx" ,python-sphinx))) |
| 3015 | (native-inputs |
| 3016 | `(("python-nose" ,python-nose))) |
| 3017 | (home-page "https://pypi.python.org/pypi/numpydoc") |
| 3018 | (synopsis |
| 3019 | "Numpy's Sphinx extensions") |
| 3020 | (description |
| 3021 | "Sphinx extension to support docstrings in Numpy format.") |
| 3022 | (license license:bsd-2))) |
| 3023 | |
| 3024 | (define-public python2-numpydoc |
| 3025 | (package-with-python2 python-numpydoc)) |
| 3026 | |
| 3027 | (define-public python-numexpr |
| 3028 | (package |
| 3029 | (name "python-numexpr") |
| 3030 | (version "2.6.4") |
| 3031 | (source |
| 3032 | (origin |
| 3033 | (method url-fetch) |
| 3034 | (uri (pypi-uri "numexpr" version)) |
| 3035 | (sha256 |
| 3036 | (base32 |
| 3037 | "1kpnbb5d5n927113zccfibn16z7gidjipyac6kbbhzs0lnizkgph")))) |
| 3038 | (build-system python-build-system) |
| 3039 | (arguments `(#:tests? #f)) ; no tests included |
| 3040 | (propagated-inputs |
| 3041 | `(("python-numpy" ,python-numpy))) |
| 3042 | (home-page "https://github.com/pydata/numexpr") |
| 3043 | (synopsis "Fast numerical expression evaluator for NumPy") |
| 3044 | (description |
| 3045 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, |
| 3046 | expressions that operate on arrays are accelerated and use less memory than |
| 3047 | doing the same calculation in Python. In addition, its multi-threaded |
| 3048 | capabilities can make use of all your cores, which may accelerate |
| 3049 | computations, most specially if they are not memory-bounded (e.g. those using |
| 3050 | transcendental functions).") |
| 3051 | (license license:expat))) |
| 3052 | |
| 3053 | (define-public python2-numexpr |
| 3054 | (package-with-python2 python-numexpr)) |
| 3055 | |
| 3056 | (define-public python-cycler |
| 3057 | (package |
| 3058 | (name "python-cycler") |
| 3059 | (version "0.10.0") |
| 3060 | (source (origin |
| 3061 | (method url-fetch) |
| 3062 | (uri (pypi-uri "cycler" version)) |
| 3063 | (sha256 |
| 3064 | (base32 |
| 3065 | "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd")))) |
| 3066 | (build-system python-build-system) |
| 3067 | (arguments |
| 3068 | ;; XXX: The current version requires 'coveralls' which we don't have. |
| 3069 | ;; Enable this for the next release which uses 'python-pytest'. |
| 3070 | '(#:tests? #f)) |
| 3071 | (propagated-inputs |
| 3072 | `(("python-six" ,python-six))) |
| 3073 | (home-page "http://matplotlib.org/cycler/") |
| 3074 | (synopsis "Composable keyword argument iterator") |
| 3075 | (description |
| 3076 | "When using @code{matplotlib} and plotting more than one line, it is |
| 3077 | common to want to be able to want to be able to cycle over one or more artist |
| 3078 | styles; but the plotting logic can quickly become involved. |
| 3079 | To address this and enable easy cycling over arbitrary @code{kwargs}, the |
| 3080 | @code{Cycler} class was developed.") |
| 3081 | (license license:bsd-3))) |
| 3082 | |
| 3083 | (define-public python2-cycler |
| 3084 | (package-with-python2 python-cycler)) |
| 3085 | |
| 3086 | (define-public python-colorspacious |
| 3087 | (package |
| 3088 | (name "python-colorspacious") |
| 3089 | (version "1.1.0") |
| 3090 | (source |
| 3091 | (origin |
| 3092 | (method url-fetch) |
| 3093 | (uri (string-append "https://github.com/njsmith/colorspacious/archive/v" |
| 3094 | version ".tar.gz")) |
| 3095 | (file-name (string-append name "-" version)) |
| 3096 | (sha256 |
| 3097 | (base32 "1vflh5jm32qb0skza2i8pjacv09w6gq84fqpp2nj77s0rbmzgr4k")))) |
| 3098 | (build-system python-build-system) |
| 3099 | (propagated-inputs |
| 3100 | `(("python-numpy" ,python-numpy))) |
| 3101 | (native-inputs |
| 3102 | `(("python-nose" ,python-nose))) |
| 3103 | (arguments |
| 3104 | `(#:phases |
| 3105 | (modify-phases %standard-phases |
| 3106 | (replace 'check |
| 3107 | (lambda _ |
| 3108 | (zero? (system* "nosetests" "--all-modules" "-v" "colorspacious"))))))) |
| 3109 | (home-page "https://github.com/njsmith/colorspacious") |
| 3110 | (synopsis "Python library for colorspace conversions") |
| 3111 | (description "@code{colorspacious} is a Python library that lets you |
| 3112 | convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.") |
| 3113 | (license license:expat))) |
| 3114 | |
| 3115 | (define-public python2-colorspacious |
| 3116 | (package-with-python2 python-colorspacious)) |
| 3117 | |
| 3118 | (define-public python-matplotlib |
| 3119 | (package |
| 3120 | (name "python-matplotlib") |
| 3121 | (version "2.0.2") |
| 3122 | (source |
| 3123 | (origin |
| 3124 | (method url-fetch) |
| 3125 | (uri (pypi-uri "matplotlib" version)) |
| 3126 | (sha256 |
| 3127 | (base32 |
| 3128 | "1w8z2a1l7s72p1byfz7g03wqhygqxi8w82619dqb3a1lm97w9yqg")))) |
| 3129 | (build-system python-build-system) |
| 3130 | (propagated-inputs ; the following packages are all needed at run time |
| 3131 | `(("python-cycler" ,python-cycler) |
| 3132 | ("python-pyparsing" ,python-pyparsing) |
| 3133 | ("python-pygobject" ,python-pygobject) |
| 3134 | ("gobject-introspection" ,gobject-introspection) |
| 3135 | ("python-tkinter" ,python "tk") |
| 3136 | ("python-dateutil" ,python-dateutil) |
| 3137 | ("python-numpy" ,python-numpy) |
| 3138 | ("python-pillow" ,python-pillow) |
| 3139 | ("python-pytz" ,python-pytz) |
| 3140 | ("python-six" ,python-six) |
| 3141 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
| 3142 | ;; from 'gtk+') provides the required 'typelib' files used by |
| 3143 | ;; 'gobject-introspection'. The location of these files is set with the |
| 3144 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this |
| 3145 | ;; is done automatically by a 'native-search-path' procedure. However, |
| 3146 | ;; at run-time the user must set this variable as follows: |
| 3147 | ;; |
| 3148 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 |
| 3149 | ("gtk+" ,gtk+) |
| 3150 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of |
| 3151 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' |
| 3152 | ;; object. For this reason we need to import both libraries. |
| 3153 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo |
| 3154 | ("python-pycairo" ,python-pycairo) |
| 3155 | ("python-cairocffi" ,python-cairocffi))) |
| 3156 | (inputs |
| 3157 | `(("libpng" ,libpng) |
| 3158 | ("imagemagick" ,imagemagick) |
| 3159 | ("freetype" ,freetype) |
| 3160 | ("cairo" ,cairo) |
| 3161 | ("glib" ,glib) |
| 3162 | ;; FIXME: Add backends when available. |
| 3163 | ;("python-wxpython" ,python-wxpython) |
| 3164 | ("python-pyqt" ,python-pyqt) |
| 3165 | ("tcl" ,tcl) |
| 3166 | ("tk" ,tk))) |
| 3167 | (native-inputs |
| 3168 | `(("pkg-config" ,pkg-config) |
| 3169 | ("python-nose" ,python-nose) |
| 3170 | ("python-mock" ,python-mock))) |
| 3171 | (arguments |
| 3172 | `(#:phases |
| 3173 | (modify-phases %standard-phases |
| 3174 | (add-before 'build 'configure-environment |
| 3175 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3176 | (let ((cairo (assoc-ref inputs "cairo")) |
| 3177 | (gtk+ (assoc-ref inputs "gtk+"))) |
| 3178 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' |
| 3179 | ;; has not effect. |
| 3180 | (setenv "LD_LIBRARY_PATH" |
| 3181 | (string-append cairo "/lib:" gtk+ "/lib")) |
| 3182 | (setenv "HOME" (getcwd)) |
| 3183 | (call-with-output-file "setup.cfg" |
| 3184 | (lambda (port) |
| 3185 | (format port "[directories]~% |
| 3186 | basedirlist = ~a,~a~% |
| 3187 | [rc_options]~% |
| 3188 | backend = TkAgg~%" |
| 3189 | (assoc-ref inputs "tcl") |
| 3190 | (assoc-ref inputs "tk"))))) |
| 3191 | #t))))) |
| 3192 | (home-page "http://matplotlib.org") |
| 3193 | (synopsis "2D plotting library for Python") |
| 3194 | (description |
| 3195 | "Matplotlib is a Python 2D plotting library which produces publication |
| 3196 | quality figures in a variety of hardcopy formats and interactive environments |
| 3197 | across platforms. Matplotlib can be used in Python scripts, the python and |
| 3198 | ipython shell, web application servers, and six graphical user interface |
| 3199 | toolkits.") |
| 3200 | (license license:psfl) |
| 3201 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) |
| 3202 | |
| 3203 | (define-public python2-matplotlib |
| 3204 | (let ((matplotlib (package-with-python2 |
| 3205 | (strip-python2-variant python-matplotlib)))) |
| 3206 | (package (inherit matplotlib) |
| 3207 | ;; Make sure to use special packages for Python 2 instead |
| 3208 | ;; of those automatically rewritten by package-with-python2. |
| 3209 | (propagated-inputs |
| 3210 | `(("python2-pycairo" ,python2-pycairo) |
| 3211 | ("python2-functools32" ,python2-functools32) |
| 3212 | ("python2-pygobject-2" ,python2-pygobject-2) |
| 3213 | ("python2-subprocess32" ,python2-subprocess32) |
| 3214 | ("python2-tkinter" ,python-2 "tk") |
| 3215 | ,@(fold alist-delete (package-propagated-inputs matplotlib) |
| 3216 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) |
| 3217 | |
| 3218 | (define-public python-matplotlib-documentation |
| 3219 | (package |
| 3220 | (name "python-matplotlib-documentation") |
| 3221 | (version (package-version python-matplotlib)) |
| 3222 | (source (package-source python-matplotlib)) |
| 3223 | (build-system python-build-system) |
| 3224 | (native-inputs |
| 3225 | `(("python-matplotlib" ,python-matplotlib) |
| 3226 | ("python-colorspacious" ,python-colorspacious) |
| 3227 | ("python-sphinx" ,python-sphinx) |
| 3228 | ("python-numpydoc" ,python-numpydoc) |
| 3229 | ("python-ipython" ,python-ipython) |
| 3230 | ("python-mock" ,python-mock) |
| 3231 | ("graphviz" ,graphviz) |
| 3232 | ("texlive" ,texlive) |
| 3233 | ("texinfo" ,texinfo) |
| 3234 | ,@(package-native-inputs python-matplotlib))) |
| 3235 | (arguments |
| 3236 | `(#:tests? #f ; we're only generating documentation |
| 3237 | #:phases |
| 3238 | (modify-phases %standard-phases |
| 3239 | (replace 'build |
| 3240 | (lambda _ |
| 3241 | (chdir "doc") |
| 3242 | ;; Produce pdf in 'A4' format. |
| 3243 | (substitute* "conf.py" |
| 3244 | (("latex_paper_size = 'letter'") "") |
| 3245 | ;; latex_paper_size is deprecated -> set paper size using |
| 3246 | ;; latex_elements |
| 3247 | (("latex_elements\\['pointsize'\\] = '11pt'" match) |
| 3248 | ;; insert at a point where latex_elements{} is defined: |
| 3249 | (string-append match "\nlatex_elements['papersize'] = 'a4paper'"))) |
| 3250 | (zero? (system* "python" "make.py" "html" "latex" "texinfo")))) |
| 3251 | (replace 'install |
| 3252 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3253 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) |
| 3254 | (doc (string-append data "/doc/python-matplotlib-" ,version)) |
| 3255 | (info (string-append data "/info")) |
| 3256 | (html (string-append doc "/html"))) |
| 3257 | (mkdir-p html) |
| 3258 | (mkdir-p info) |
| 3259 | (copy-recursively "build/html" html) |
| 3260 | (symlink (string-append html "/_images") |
| 3261 | (string-append info "/matplotlib-figures")) |
| 3262 | (with-directory-excursion "build/texinfo" |
| 3263 | (substitute* "matplotlib.texi" |
| 3264 | (("@image\\{([^,]*)" all file) |
| 3265 | (string-append "@image{matplotlib-figures/" file))) |
| 3266 | (symlink (string-append html "/_images") |
| 3267 | "./matplotlib-figures") |
| 3268 | (system* "makeinfo" "--no-split" |
| 3269 | "-o" "matplotlib.info" "matplotlib.texi")) |
| 3270 | (copy-file "build/texinfo/matplotlib.info" |
| 3271 | (string-append info "/matplotlib.info")) |
| 3272 | (copy-file "build/latex/Matplotlib.pdf" |
| 3273 | (string-append doc "/Matplotlib.pdf"))) |
| 3274 | #t))))) |
| 3275 | (home-page (package-home-page python-matplotlib)) |
| 3276 | (synopsis "Documentation for the python-matplotlib package") |
| 3277 | (description (package-description python-matplotlib)) |
| 3278 | (license (package-license python-matplotlib)))) |
| 3279 | |
| 3280 | (define-public python2-matplotlib-documentation |
| 3281 | (package-with-python2 python-matplotlib-documentation)) |
| 3282 | |
| 3283 | (define-public python2-pysnptools |
| 3284 | (package |
| 3285 | (name "python2-pysnptools") |
| 3286 | (version "0.3.9") |
| 3287 | (source |
| 3288 | (origin |
| 3289 | (method url-fetch) |
| 3290 | (uri (pypi-uri "pysnptools" version ".zip")) |
| 3291 | (sha256 |
| 3292 | (base32 |
| 3293 | "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2")))) |
| 3294 | (build-system python-build-system) |
| 3295 | (arguments |
| 3296 | `(#:python ,python-2)) ; only Python 2.7 is supported |
| 3297 | (propagated-inputs |
| 3298 | `(("python2-numpy" ,python2-numpy) |
| 3299 | ("python2-scipy" ,python2-scipy) |
| 3300 | ("python2-pandas" ,python2-pandas))) |
| 3301 | (native-inputs |
| 3302 | `(("python2-cython" ,python2-cython))) |
| 3303 | (native-inputs |
| 3304 | `(("unzip" ,unzip))) |
| 3305 | (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/") |
| 3306 | (synopsis "Library for reading and manipulating genetic data") |
| 3307 | (description |
| 3308 | "PySnpTools is a library for reading and manipulating genetic data. It |
| 3309 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of |
| 3310 | those files. It can also efficiently manipulate ranges of integers using set |
| 3311 | operators such as union, intersection, and difference.") |
| 3312 | (license license:asl2.0))) |
| 3313 | |
| 3314 | (define-public python-rpy2 |
| 3315 | (package |
| 3316 | (name "python-rpy2") |
| 3317 | (version "2.9.0") |
| 3318 | (source |
| 3319 | (origin |
| 3320 | (method url-fetch) |
| 3321 | (uri (pypi-uri "rpy2" version)) |
| 3322 | (sha256 |
| 3323 | (base32 |
| 3324 | "0bqihjrdqwj5r1h86shvfb1p5hfr4a6klv1v54bzfr9r144w3rni")))) |
| 3325 | (build-system python-build-system) |
| 3326 | (arguments |
| 3327 | '(#:modules ((ice-9 ftw) |
| 3328 | (srfi srfi-1) |
| 3329 | (srfi srfi-26) |
| 3330 | (guix build utils) |
| 3331 | (guix build python-build-system)) |
| 3332 | #:phases |
| 3333 | (modify-phases %standard-phases |
| 3334 | ;; Without this phase the test loader cannot find the directories, in |
| 3335 | ;; which it is supposed to look for test files. |
| 3336 | (add-after 'unpack 'fix-tests |
| 3337 | (lambda* (#:key outputs #:allow-other-keys) |
| 3338 | (substitute* "rpy/tests.py" |
| 3339 | (("loader.discover\\(") |
| 3340 | "loader.discover(rpy_root + '/' +")) |
| 3341 | #t)) |
| 3342 | (replace 'check |
| 3343 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3344 | (let ((cwd (getcwd))) |
| 3345 | (setenv "PYTHONPATH" |
| 3346 | (string-append cwd "/build/" |
| 3347 | (find (cut string-prefix? "lib" <>) |
| 3348 | (scandir (string-append cwd "/build"))) |
| 3349 | ":" |
| 3350 | (getenv "PYTHONPATH")))) |
| 3351 | ;; FIXME: Even when all tests pass, the check phase will fail. |
| 3352 | (system* "python" "-m" "rpy2.tests" "-v")))))) |
| 3353 | (propagated-inputs |
| 3354 | `(("python-six" ,python-six) |
| 3355 | ("python-jinja2" ,python-jinja2) |
| 3356 | ("python-pytz" ,python-pytz))) |
| 3357 | (inputs |
| 3358 | `(("readline" ,readline) |
| 3359 | ("icu4c" ,icu4c) |
| 3360 | ("pcre" ,pcre) |
| 3361 | ("r-minimal" ,r-minimal) |
| 3362 | ("r-survival" ,r-survival) |
| 3363 | ("r-ggplot2" ,r-ggplot2) |
| 3364 | ("r-rsqlite" ,r-rsqlite) |
| 3365 | ("r-dplyr" ,r-dplyr) |
| 3366 | ("r-dbplyr" ,r-dbplyr) |
| 3367 | ("python-numpy" ,python-numpy))) |
| 3368 | (native-inputs |
| 3369 | `(("zlib" ,zlib))) |
| 3370 | (home-page "http://rpy.sourceforge.net/") |
| 3371 | (synopsis "Python interface to the R language") |
| 3372 | (description "rpy2 is a redesign and rewrite of rpy. It is providing a |
| 3373 | low-level interface to R from Python, a proposed high-level interface, |
| 3374 | including wrappers to graphical libraries, as well as R-like structures and |
| 3375 | functions.") |
| 3376 | ;; Any of these licenses can be picked for the R interface. The whole |
| 3377 | ;; project is released under GPLv2+ according to the license declaration |
| 3378 | ;; in "setup.py". |
| 3379 | (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+)))) |
| 3380 | |
| 3381 | (define-public python-scipy |
| 3382 | (package |
| 3383 | (name "python-scipy") |
| 3384 | (version "0.19.1") |
| 3385 | (source |
| 3386 | (origin |
| 3387 | (method url-fetch) |
| 3388 | (uri (pypi-uri "scipy" version)) |
| 3389 | (sha256 |
| 3390 | (base32 |
| 3391 | "1rl411bvla6q7qfdb47fpdnyjhfgzl6smpha33n9ar1klykjr6m1")))) |
| 3392 | (build-system python-build-system) |
| 3393 | (propagated-inputs |
| 3394 | `(("python-numpy" ,python-numpy) |
| 3395 | ("python-matplotlib" ,python-matplotlib) |
| 3396 | ("python-pyparsing" ,python-pyparsing))) |
| 3397 | (inputs |
| 3398 | `(("lapack" ,lapack) |
| 3399 | ("openblas" ,openblas))) |
| 3400 | (native-inputs |
| 3401 | `(("python-cython" ,python-cython) |
| 3402 | ("python-nose" ,python-nose) |
| 3403 | ("python-sphinx" ,python-sphinx) |
| 3404 | ("python-numpydoc" ,python-numpydoc) |
| 3405 | ("gfortran" ,gfortran) |
| 3406 | ("perl" ,perl))) |
| 3407 | (outputs '("out" "doc")) |
| 3408 | (arguments |
| 3409 | `(#:phases |
| 3410 | (modify-phases %standard-phases |
| 3411 | (add-before 'build 'configure-openblas |
| 3412 | (lambda* (#:key inputs #:allow-other-keys) |
| 3413 | (call-with-output-file "site.cfg" |
| 3414 | (lambda (port) |
| 3415 | (format port |
| 3416 | "[blas] |
| 3417 | libraries = openblas |
| 3418 | library_dirs = ~a/lib |
| 3419 | include_dirs = ~a/include |
| 3420 | |
| 3421 | # backslash-n to make emacs happy |
| 3422 | \n[atlas] |
| 3423 | library_dirs = ~a/lib |
| 3424 | atlas_libs = openblas |
| 3425 | " |
| 3426 | (assoc-ref inputs "openblas") |
| 3427 | (assoc-ref inputs "openblas") |
| 3428 | (assoc-ref inputs "openblas")))) |
| 3429 | #t)) |
| 3430 | (add-after 'install 'install-doc |
| 3431 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3432 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3433 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 3434 | (html (string-append doc "/html")) |
| 3435 | (pyver ,(string-append "PYVER="))) |
| 3436 | ;; Make installed package available for building the |
| 3437 | ;; documentation |
| 3438 | (add-installed-pythonpath inputs outputs) |
| 3439 | (with-directory-excursion "doc" |
| 3440 | ;; Fix generation of images for mathematical expressions. |
| 3441 | (substitute* (find-files "source" "conf\\.py") |
| 3442 | (("pngmath_use_preview = True") |
| 3443 | "pngmath_use_preview = False")) |
| 3444 | (mkdir-p html) |
| 3445 | (system* "make" "html" pyver) |
| 3446 | (with-directory-excursion "build/html" |
| 3447 | (for-each (lambda (file) |
| 3448 | (let* ((dir (dirname file)) |
| 3449 | (tgt-dir (string-append html "/" dir))) |
| 3450 | (install-file file html))) |
| 3451 | (find-files "." ".*"))))) |
| 3452 | #t)) |
| 3453 | (add-after 'unpack 'fix-tests |
| 3454 | (lambda _ |
| 3455 | (substitute* "scipy/integrate/tests/test_quadpack.py" |
| 3456 | (("libm.so") "libm.so.6")) |
| 3457 | #t)) |
| 3458 | ;; Tests can only be run after the library has been installed and not |
| 3459 | ;; within the source directory. |
| 3460 | (delete 'check) |
| 3461 | (add-after 'install 'check |
| 3462 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3463 | (add-installed-pythonpath inputs outputs) |
| 3464 | (with-directory-excursion "/tmp" |
| 3465 | (zero? (system* "python" "-c" |
| 3466 | "import scipy; scipy.test('full')"))) |
| 3467 | #t))))) |
| 3468 | (home-page "http://www.scipy.org/") |
| 3469 | (synopsis "The Scipy library provides efficient numerical routines") |
| 3470 | (description "The SciPy library is one of the core packages that make up |
| 3471 | the SciPy stack. It provides many user-friendly and efficient numerical |
| 3472 | routines such as routines for numerical integration and optimization.") |
| 3473 | (properties `((python2-variant . ,(delay python2-scipy)))) |
| 3474 | (license license:bsd-3))) |
| 3475 | |
| 3476 | (define-public python2-scipy |
| 3477 | (package-with-python2 |
| 3478 | (strip-python2-variant python-scipy))) |
| 3479 | |
| 3480 | (define-public python-socksipy-branch |
| 3481 | (package |
| 3482 | (name "python-socksipy-branch") |
| 3483 | (version "1.01") |
| 3484 | (source |
| 3485 | (origin |
| 3486 | (method url-fetch) |
| 3487 | (uri (pypi-uri "SocksiPy-branch" version)) |
| 3488 | (sha256 |
| 3489 | (base32 |
| 3490 | "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) |
| 3491 | (build-system python-build-system) |
| 3492 | (arguments |
| 3493 | `(#:tests? #f)) ; There are no tests |
| 3494 | (home-page "https://code.google.com/archive/p/socksipy-branch/") |
| 3495 | (synopsis "Python SOCKS module") |
| 3496 | (description |
| 3497 | "SocksiPy - A Python SOCKS client module. It provides a |
| 3498 | socket-like interface that supports connections to any TCP |
| 3499 | service through the use of a SOCKS4, SOCKS5 or HTTP proxy. |
| 3500 | The original version was developed by Dan Haim, this is a |
| 3501 | branch created by Mario Vilas to address some open issues, |
| 3502 | as the original project seems to have been abandoned circa 2007.") |
| 3503 | (license license:bsd-3))) |
| 3504 | |
| 3505 | (define-public python2-socksipy-branch |
| 3506 | (package-with-python2 python-socksipy-branch)) |
| 3507 | |
| 3508 | (define-public python-pycodestyle |
| 3509 | (package |
| 3510 | (name "python-pycodestyle") |
| 3511 | (version "2.3.1") |
| 3512 | (source |
| 3513 | (origin |
| 3514 | (method url-fetch) |
| 3515 | (uri (pypi-uri "pycodestyle" version)) |
| 3516 | (sha256 |
| 3517 | (base32 |
| 3518 | "0rk78b66p57ala26mdldl9lafr48blv5s659sah9q50qnfjmc8k8")))) |
| 3519 | (build-system python-build-system) |
| 3520 | (home-page "https://pycodestyle.readthedocs.io/") |
| 3521 | (synopsis "Python style guide checker") |
| 3522 | (description "@code{pycodestyle} (formerly pep8) is a tool to check |
| 3523 | Python code against some of the style conventions in |
| 3524 | @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.") |
| 3525 | (license license:expat))) |
| 3526 | |
| 3527 | (define-public python2-pycodestyle |
| 3528 | (package-with-python2 python-pycodestyle)) |
| 3529 | |
| 3530 | (define-public python-orderedmultidict |
| 3531 | (package |
| 3532 | (name "python-orderedmultidict") |
| 3533 | (version "0.7.11") |
| 3534 | (source |
| 3535 | (origin |
| 3536 | (method url-fetch) |
| 3537 | (uri (pypi-uri "orderedmultidict" version)) |
| 3538 | (sha256 |
| 3539 | (base32 |
| 3540 | "0dls862ibm7qbq4fnvwx0xn1v9hwyzywbff8xjjdr42dd75208yw")))) |
| 3541 | (build-system python-build-system) |
| 3542 | (arguments |
| 3543 | `(#:phases |
| 3544 | (modify-phases %standard-phases |
| 3545 | (add-after 'unpack 'fix-tests |
| 3546 | (lambda _ |
| 3547 | ;; The package uses nosetest for running the tests. |
| 3548 | ;; Adding this initfile allows to run the test suite |
| 3549 | ;; without requiring nosetest. |
| 3550 | (zero? (system* "touch" "tests/__init__.py"))))))) |
| 3551 | (propagated-inputs |
| 3552 | `(("python-six" ,python-six))) |
| 3553 | (native-inputs |
| 3554 | `(("python-pycodestyle" ,python-pycodestyle))) |
| 3555 | (home-page "https://github.com/gruns/orderedmultidict") |
| 3556 | (synopsis "Python Ordered Multivalue Dictionary - omdict") |
| 3557 | (description "This package contains a library for ordered multivalue |
| 3558 | dictionaries. A multivalue dictionary is a dictionary that can store |
| 3559 | multiple values for the same key. An ordered multivalue dictionary is a |
| 3560 | multivalue dictionary that retains the order of insertions and deletions.") |
| 3561 | (license license:unlicense))) |
| 3562 | |
| 3563 | (define-public python2-orderedmultidict |
| 3564 | (package-with-python2 python-orderedmultidict)) |
| 3565 | |
| 3566 | (define-public python-autopep8 |
| 3567 | (package |
| 3568 | (name "python-autopep8") |
| 3569 | (version "1.3.2") |
| 3570 | (source |
| 3571 | (origin |
| 3572 | (method url-fetch) |
| 3573 | (uri (pypi-uri "autopep8" version)) |
| 3574 | (sha256 |
| 3575 | (base32 |
| 3576 | "1p9pa1ffg4iy96l918808jggg9a69iaka5awmj8xid36yc5mk0ky")))) |
| 3577 | (build-system python-build-system) |
| 3578 | (propagated-inputs |
| 3579 | `(("python-pycodestyle" ,python-pycodestyle))) |
| 3580 | (home-page "https://github.com/hhatto/autopep8") |
| 3581 | (synopsis "Format Python code according to the PEP 8 style guide") |
| 3582 | (description |
| 3583 | "@code{autopep8} automatically formats Python code to conform to |
| 3584 | the PEP 8 style guide. It uses the pycodestyle utility to determine |
| 3585 | what parts of the code needs to be formatted. @code{autopep8} is |
| 3586 | capable of fixing most of the formatting issues that can be reported |
| 3587 | by pycodestyle.") |
| 3588 | (license (license:non-copyleft |
| 3589 | "https://github.com/hhatto/autopep8/blob/master/LICENSE")))) |
| 3590 | |
| 3591 | (define-public python2-autopep8 |
| 3592 | (package-with-python2 python-autopep8)) |
| 3593 | |
| 3594 | (define-public python-distutils-extra |
| 3595 | (package |
| 3596 | (name "python-distutils-extra") |
| 3597 | (version "2.38") |
| 3598 | (source |
| 3599 | (origin |
| 3600 | (method url-fetch) |
| 3601 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" |
| 3602 | version "/+download/python-distutils-extra-" |
| 3603 | version ".tar.gz")) |
| 3604 | (sha256 |
| 3605 | (base32 |
| 3606 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) |
| 3607 | (build-system python-build-system) |
| 3608 | (home-page "https://launchpad.net/python-distutils-extra/") |
| 3609 | (synopsis "Enhancements to Python's distutils") |
| 3610 | (description |
| 3611 | "The python-distutils-extra module enables you to easily integrate |
| 3612 | gettext support, themed icons, and scrollkeeper-based documentation into |
| 3613 | Python's distutils.") |
| 3614 | (license license:gpl2))) |
| 3615 | |
| 3616 | (define-public python2-distutils-extra |
| 3617 | (package-with-python2 python-distutils-extra)) |
| 3618 | |
| 3619 | (define-public python2-elib.intl |
| 3620 | (package |
| 3621 | (name "python2-elib.intl") |
| 3622 | (version "0.0.3") |
| 3623 | (source |
| 3624 | (origin |
| 3625 | ;; This project doesn't tag releases or publish tarballs, so we take |
| 3626 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. |
| 3627 | (method git-fetch) |
| 3628 | (uri (git-reference |
| 3629 | (url "https://github.com/dieterv/elib.intl.git") |
| 3630 | (commit "d09997cfef"))) |
| 3631 | (sha256 |
| 3632 | (base32 |
| 3633 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) |
| 3634 | (build-system python-build-system) |
| 3635 | (arguments |
| 3636 | ;; incompatible with Python 3 (exception syntax) |
| 3637 | `(#:python ,python-2 |
| 3638 | #:tests? #f)) |
| 3639 | (home-page "https://github.com/dieterv/elib.intl") |
| 3640 | (synopsis "Enhanced internationalization for Python") |
| 3641 | (description |
| 3642 | "The elib.intl module provides enhanced internationalization (I18N) |
| 3643 | services for your Python modules and applications.") |
| 3644 | (license license:lgpl3+))) |
| 3645 | |
| 3646 | (define-public python-pillow |
| 3647 | (package |
| 3648 | (name "python-pillow") |
| 3649 | (version "3.3.3") |
| 3650 | (source |
| 3651 | (origin |
| 3652 | (method url-fetch) |
| 3653 | (uri (pypi-uri "Pillow" version)) |
| 3654 | (patches (search-patches "python-pillow-freetype-2.7-test-failure.patch")) |
| 3655 | (sha256 |
| 3656 | (base32 |
| 3657 | "0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj")))) |
| 3658 | (build-system python-build-system) |
| 3659 | (native-inputs |
| 3660 | `(("python-nose" ,python-nose))) |
| 3661 | (inputs |
| 3662 | `(("freetype" ,freetype) |
| 3663 | ("lcms" ,lcms) |
| 3664 | ("zlib" ,zlib) |
| 3665 | ("libjpeg" ,libjpeg) |
| 3666 | ("openjpeg" ,openjpeg) |
| 3667 | ("libtiff" ,libtiff) |
| 3668 | ("libwebp" ,libwebp))) |
| 3669 | (arguments |
| 3670 | `(#:phases (modify-phases %standard-phases |
| 3671 | (add-after |
| 3672 | 'install 'check-installed |
| 3673 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3674 | (begin |
| 3675 | (setenv "HOME" (getcwd)) |
| 3676 | ;; Make installed package available for running the |
| 3677 | ;; tests |
| 3678 | (add-installed-pythonpath inputs outputs) |
| 3679 | (and (zero? (system* "python" "selftest.py" |
| 3680 | "--installed")) |
| 3681 | (zero? (system* "python" "test-installed.py")))))) |
| 3682 | (delete 'check)))) |
| 3683 | (home-page "https://pypi.python.org/pypi/Pillow") |
| 3684 | (synopsis "Fork of the Python Imaging Library") |
| 3685 | (description |
| 3686 | "The Python Imaging Library adds image processing capabilities to your |
| 3687 | Python interpreter. This library provides extensive file format support, an |
| 3688 | efficient internal representation, and fairly powerful image processing |
| 3689 | capabilities. The core image library is designed for fast access to data |
| 3690 | stored in a few basic pixel formats. It should provide a solid foundation for |
| 3691 | a general image processing tool.") |
| 3692 | (license (license:x11-style |
| 3693 | "http://www.pythonware.com/products/pil/license.htm" |
| 3694 | "The PIL Software License")))) |
| 3695 | |
| 3696 | (define-public python2-pillow |
| 3697 | (package-with-python2 python-pillow)) |
| 3698 | |
| 3699 | (define-public python-pycparser |
| 3700 | (package |
| 3701 | (name "python-pycparser") |
| 3702 | (version "2.17") |
| 3703 | (source |
| 3704 | (origin |
| 3705 | (method url-fetch) |
| 3706 | (uri (pypi-uri "pycparser" version)) |
| 3707 | (sha256 |
| 3708 | (base32 |
| 3709 | "1dkkjri0miidqb1zcqhqljfa34fcy9k5akasgwsv6k622zlk3b0a")))) |
| 3710 | (outputs '("out" "doc")) |
| 3711 | (build-system python-build-system) |
| 3712 | (native-inputs |
| 3713 | `(("pkg-config" ,pkg-config))) |
| 3714 | (arguments |
| 3715 | `(#:phases |
| 3716 | (modify-phases %standard-phases |
| 3717 | (replace 'check |
| 3718 | (lambda _ |
| 3719 | (with-directory-excursion "tests" |
| 3720 | (zero? (system* "python" "all_tests.py"))))) |
| 3721 | (add-after 'install 'install-doc |
| 3722 | (lambda* (#:key outputs #:allow-other-keys) |
| 3723 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3724 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 3725 | (examples (string-append doc "/examples"))) |
| 3726 | (mkdir-p examples) |
| 3727 | (for-each (lambda (file) |
| 3728 | (copy-file (string-append "." file) |
| 3729 | (string-append doc file))) |
| 3730 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 3731 | (copy-recursively "examples" examples))))))) |
| 3732 | (home-page "https://github.com/eliben/pycparser") |
| 3733 | (synopsis "C parser in Python") |
| 3734 | (description |
| 3735 | "Pycparser is a complete parser of the C language, written in pure Python |
| 3736 | using the PLY parsing library. It parses C code into an AST and can serve as |
| 3737 | a front-end for C compilers or analysis tools.") |
| 3738 | (license license:bsd-3))) |
| 3739 | |
| 3740 | (define-public python2-pycparser |
| 3741 | (package-with-python2 python-pycparser)) |
| 3742 | |
| 3743 | (define-public python-xcffib |
| 3744 | (package |
| 3745 | (name "python-xcffib") |
| 3746 | (version "0.5.1") |
| 3747 | (source |
| 3748 | (origin |
| 3749 | (method url-fetch) |
| 3750 | (uri (pypi-uri "xcffib" version)) |
| 3751 | (sha256 |
| 3752 | (base32 |
| 3753 | "09gbnmr5vn58mm8xi3fmd7fz6743cks6c46dphnxzwax6zsxmy60")))) |
| 3754 | (build-system python-build-system) |
| 3755 | (inputs |
| 3756 | `(("libxcb" ,libxcb))) |
| 3757 | (propagated-inputs |
| 3758 | `(("python-cffi" ,python-cffi) ; used at run time |
| 3759 | ("python-six" ,python-six))) |
| 3760 | (arguments |
| 3761 | `(;; FIXME: Tests need more work. See ".travis.yml" in the repository. |
| 3762 | #:tests? #f |
| 3763 | #:phases |
| 3764 | (modify-phases %standard-phases |
| 3765 | (add-after 'unpack 'fix-libxcb-path |
| 3766 | (lambda* (#:key inputs #:allow-other-keys) |
| 3767 | (let ((libxcb (assoc-ref inputs "libxcb"))) |
| 3768 | (substitute* '("xcffib/__init__.py") |
| 3769 | (("^soname = \"") (string-append "soname = \"" libxcb "/lib/"))) |
| 3770 | #t))) |
| 3771 | (add-after 'install 'install-doc |
| 3772 | (lambda* (#:key outputs #:allow-other-keys) |
| 3773 | (let ((doc (string-append (assoc-ref outputs "out") "/share" |
| 3774 | "/doc/" ,name "-" ,version))) |
| 3775 | (mkdir-p doc) |
| 3776 | (copy-file "README.md" |
| 3777 | (string-append doc "/README.md")) |
| 3778 | #t)))))) |
| 3779 | (home-page "https://github.com/tych0/xcffib") |
| 3780 | (synopsis "XCB Python bindings") |
| 3781 | (description |
| 3782 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds |
| 3783 | support for Python 3 and PyPy. It is based on cffi.") |
| 3784 | (license license:expat))) |
| 3785 | |
| 3786 | (define-public python2-xcffib |
| 3787 | (package-with-python2 python-xcffib)) |
| 3788 | |
| 3789 | (define-public python-cairocffi |
| 3790 | (package |
| 3791 | (name "python-cairocffi") |
| 3792 | (version "0.8.0") |
| 3793 | (source |
| 3794 | (origin |
| 3795 | (method url-fetch) |
| 3796 | ;; The archive on pypi is missing the 'utils' directory! |
| 3797 | (uri (string-append "https://github.com/Kozea/cairocffi/archive/v" |
| 3798 | version ".tar.gz")) |
| 3799 | (file-name (string-append name "-" version ".tar.gz")) |
| 3800 | (sha256 |
| 3801 | (base32 |
| 3802 | "1rk2dvy3fxrga6bvvxc2fi5lbaynm5h4a0w0aaxyn3bc77rszjg9")))) |
| 3803 | (build-system python-build-system) |
| 3804 | (outputs '("out" "doc")) |
| 3805 | (inputs |
| 3806 | `(("gdk-pixbuf" ,gdk-pixbuf) |
| 3807 | ("cairo" ,cairo))) |
| 3808 | (native-inputs |
| 3809 | `(("pkg-config" ,pkg-config) |
| 3810 | ("python-sphinx" ,python-sphinx) |
| 3811 | ("python-docutils" ,python-docutils))) |
| 3812 | (propagated-inputs |
| 3813 | `(("python-xcffib" ,python-xcffib))) ; used at run time |
| 3814 | (arguments |
| 3815 | `(;; FIXME: Tests cannot find 'libcairo.so.2'. |
| 3816 | #:tests? #f |
| 3817 | #:phases |
| 3818 | (modify-phases %standard-phases |
| 3819 | (add-after 'install 'install-doc |
| 3820 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3821 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 3822 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 3823 | (html (string-append doc "/html"))) |
| 3824 | (setenv "LD_LIBRARY_PATH" |
| 3825 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
| 3826 | (assoc-ref inputs "gdk-pixbuf") "/lib")) |
| 3827 | (setenv "LANG" "en_US.UTF-8") |
| 3828 | (mkdir-p html) |
| 3829 | (for-each (lambda (file) |
| 3830 | (copy-file (string-append "." file) |
| 3831 | (string-append doc file))) |
| 3832 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 3833 | (system* "python" "setup.py" "build_sphinx") |
| 3834 | (copy-recursively "docs/_build/html" html) |
| 3835 | #t)))))) |
| 3836 | (home-page "https://github.com/Kozea/cairocffi") |
| 3837 | (synopsis "Python bindings and object-oriented API for Cairo") |
| 3838 | (description |
| 3839 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of |
| 3840 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector |
| 3841 | graphics library with support for multiple backends including image buffers, |
| 3842 | PNG, PostScript, PDF, and SVG file output.") |
| 3843 | (license license:bsd-3))) |
| 3844 | |
| 3845 | (define-public python2-cairocffi |
| 3846 | (package-with-python2 python-cairocffi)) |
| 3847 | |
| 3848 | (define-public python-decorator |
| 3849 | (package |
| 3850 | (name "python-decorator") |
| 3851 | (version "4.1.2") |
| 3852 | (source |
| 3853 | (origin |
| 3854 | (method url-fetch) |
| 3855 | (uri (pypi-uri "decorator" version)) |
| 3856 | (sha256 |
| 3857 | (base32 "1d8npb11kxyi36mrvjdpcjij76l5zfyrz2f820brf0l0rcw4vdkw")))) |
| 3858 | (build-system python-build-system) |
| 3859 | (arguments '(#:tests? #f)) ; no test target |
| 3860 | (home-page "https://pypi.python.org/pypi/decorator/") |
| 3861 | (synopsis "Python module to simplify usage of decorators") |
| 3862 | (description |
| 3863 | "The aim of the decorator module is to simplify the usage of decorators |
| 3864 | for the average programmer, and to popularize decorators usage giving examples |
| 3865 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, |
| 3866 | etc. The core of this module is a decorator factory.") |
| 3867 | (license license:expat))) |
| 3868 | |
| 3869 | (define-public python2-decorator |
| 3870 | (package-with-python2 python-decorator)) |
| 3871 | |
| 3872 | (define-public python-drmaa |
| 3873 | (package |
| 3874 | (name "python-drmaa") |
| 3875 | (version "0.7.7") |
| 3876 | (source |
| 3877 | (origin |
| 3878 | (method url-fetch) |
| 3879 | (uri (pypi-uri "drmaa" version)) |
| 3880 | (sha256 |
| 3881 | (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx")))) |
| 3882 | (build-system python-build-system) |
| 3883 | ;; The test suite requires libdrmaa which is provided by the cluster |
| 3884 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH |
| 3885 | ;; should be set to the path of the libdrmaa library. |
| 3886 | (arguments '(#:tests? #f)) |
| 3887 | (native-inputs |
| 3888 | `(("python-nose" ,python-nose))) |
| 3889 | (home-page "https://pypi.python.org/pypi/drmaa") |
| 3890 | (synopsis "Python bindings for the DRMAA library") |
| 3891 | (description |
| 3892 | "A Python package for Distributed Resource Management (DRM) job |
| 3893 | submission and control. This package is an implementation of the DRMAA 1.0 |
| 3894 | Python language binding specification.") |
| 3895 | (license license:bsd-3))) |
| 3896 | |
| 3897 | (define-public python2-drmaa |
| 3898 | (package-with-python2 python-drmaa)) |
| 3899 | |
| 3900 | (define-public python-grako |
| 3901 | (package |
| 3902 | (name "python-grako") |
| 3903 | (version "3.99.9") |
| 3904 | (source |
| 3905 | (origin |
| 3906 | (method url-fetch) |
| 3907 | (uri |
| 3908 | (pypi-uri "grako" version ".zip")) |
| 3909 | (sha256 |
| 3910 | (base32 |
| 3911 | "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw")))) |
| 3912 | (build-system python-build-system) |
| 3913 | (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive. |
| 3914 | (native-inputs |
| 3915 | `(("unzip" ,unzip) |
| 3916 | ("python-pytest" ,python-pytest-3.0) |
| 3917 | ("python-pytest-runner" ,python-pytest-runner))) |
| 3918 | (home-page "https://bitbucket.org/neogeny/grako") |
| 3919 | (synopsis "EBNF parser generator") |
| 3920 | (description |
| 3921 | "Grako takes a grammar in a variation of EBNF as input, and outputs a |
| 3922 | memoizing PEG/Packrat parser in Python.") |
| 3923 | (license license:bsd-3))) |
| 3924 | |
| 3925 | (define-public python2-grako |
| 3926 | (package-with-python2 python-grako)) |
| 3927 | |
| 3928 | (define-public python-gridmap |
| 3929 | (package |
| 3930 | (name "python-gridmap") |
| 3931 | (version "0.13.0") |
| 3932 | (source |
| 3933 | (origin |
| 3934 | (method url-fetch) |
| 3935 | (uri (string-append |
| 3936 | "https://github.com/pygridtools/gridmap/archive/v" |
| 3937 | version ".tar.gz")) |
| 3938 | (file-name (string-append name "-" version ".tar.gz")) |
| 3939 | (sha256 |
| 3940 | (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x")))) |
| 3941 | (build-system python-build-system) |
| 3942 | (arguments |
| 3943 | '(#:tests? #f)) ; FIXME: Requires python-cherrypy. |
| 3944 | (propagated-inputs |
| 3945 | `(("python-psutil" ,python-psutil) |
| 3946 | ("python-drmaa" ,python-drmaa) |
| 3947 | ("python-pyzmq" ,python-pyzmq))) |
| 3948 | (home-page "https://github.com/pygridtools/gridmap") |
| 3949 | (synopsis "Create jobs on a cluster directly from Python") |
| 3950 | (description |
| 3951 | "Gridmap is a Python package to allow you to easily create jobs on the |
| 3952 | cluster directly from Python. You can directly map Python functions onto the |
| 3953 | cluster without needing to write any wrapper code yourself.") |
| 3954 | (license license:gpl3+))) |
| 3955 | |
| 3956 | (define-public python2-gridmap |
| 3957 | (package-with-python2 python-gridmap)) |
| 3958 | |
| 3959 | (define-public python-honcho |
| 3960 | (package |
| 3961 | (name "python-honcho") |
| 3962 | (version "1.0.1") |
| 3963 | (source |
| 3964 | (origin |
| 3965 | (method url-fetch) |
| 3966 | (uri (string-append |
| 3967 | "https://github.com/nickstenning/honcho/archive/v" |
| 3968 | version ".tar.gz")) |
| 3969 | (file-name (string-append name "-" version ".tar.gz")) |
| 3970 | (sha256 |
| 3971 | (base32 "0zizn61n5z5hq421hkypk9pw8s6fpxw30f4hsg7k4ivwzy3gjw9j")))) |
| 3972 | (build-system python-build-system) |
| 3973 | (native-inputs |
| 3974 | `(("python-pytest" ,python-pytest-3.0) |
| 3975 | ("python-mock" ,python-mock) |
| 3976 | ("python-tox" ,python-tox) |
| 3977 | ("which" ,which))) ;for tests |
| 3978 | (propagated-inputs |
| 3979 | `(("python-jinja2" ,python-jinja2))) |
| 3980 | (arguments |
| 3981 | `(#:phases |
| 3982 | (modify-phases %standard-phases |
| 3983 | (delete 'check) |
| 3984 | (add-after 'install 'check |
| 3985 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3986 | ;; fix honcho path in testsuite |
| 3987 | (substitute* "tests/conftest.py" |
| 3988 | (("'honcho'") (string-append "'" (assoc-ref outputs "out") |
| 3989 | "/bin/honcho" "'"))) |
| 3990 | ;; It's easier to run tests after install. |
| 3991 | ;; Make installed package available for running the tests |
| 3992 | (add-installed-pythonpath inputs outputs) |
| 3993 | (zero? (system* "py.test" "-v"))))))) |
| 3994 | (home-page "https://github.com/nickstenning/honcho") |
| 3995 | (synopsis "Manage Procfile-based applications") |
| 3996 | (description |
| 3997 | "A Procfile is a file which describes how to run an application |
| 3998 | consisting of serveral processes. honcho starts all listed processes. |
| 3999 | The output of all running processes is collected by honcho and |
| 4000 | displayed.") |
| 4001 | (license license:expat))) |
| 4002 | |
| 4003 | (define-public python2-honcho |
| 4004 | (package-with-python2 python-honcho)) |
| 4005 | |
| 4006 | (define-public python-pexpect |
| 4007 | (package |
| 4008 | (name "python-pexpect") |
| 4009 | (version "4.2.1") |
| 4010 | (source |
| 4011 | (origin |
| 4012 | (method url-fetch) |
| 4013 | (uri (pypi-uri "pexpect" version)) |
| 4014 | (sha256 |
| 4015 | (base32 "14ls7k99pwvl21zqv65kzrhccv50j89m5ij1hf0slmsvlxjj84rx")))) |
| 4016 | (build-system python-build-system) |
| 4017 | (arguments |
| 4018 | `(#:phases |
| 4019 | (modify-phases %standard-phases |
| 4020 | (add-before 'check 'prepare-tests |
| 4021 | (lambda _ |
| 4022 | (substitute* (find-files "tests") |
| 4023 | (("/bin/ls") (which "ls")) |
| 4024 | (("/bin/echo") (which "echo")) |
| 4025 | (("/bin/which") (which "which")) |
| 4026 | ;; Many tests try to use the /bin directory which |
| 4027 | ;; is not present in the build environment. |
| 4028 | ;; Use one that's non-empty and unlikely to change. |
| 4029 | (("/bin'") "/dev'")) |
| 4030 | ;; XXX: Socket connection test gets "Connection reset by peer". |
| 4031 | ;; Why does it not work? Delete for now. |
| 4032 | (delete-file "tests/test_socket.py") |
| 4033 | #t)) |
| 4034 | (replace 'check (lambda _ (zero? (system* "nosetests" "-v"))))))) |
| 4035 | (native-inputs |
| 4036 | `(("python-nose" ,python-nose) |
| 4037 | ("python-pytest" ,python-pytest-3.0) |
| 4038 | ("man-db" ,man-db) |
| 4039 | ("which" ,which) |
| 4040 | ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py' |
| 4041 | (propagated-inputs |
| 4042 | `(("python-ptyprocess" ,python-ptyprocess))) |
| 4043 | (home-page "http://pexpect.readthedocs.org/") |
| 4044 | (synopsis "Controlling interactive console applications") |
| 4045 | (description |
| 4046 | "Pexpect is a pure Python module for spawning child applications; |
| 4047 | controlling them; and responding to expected patterns in their output. |
| 4048 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a |
| 4049 | child application and control it as if a human were typing commands.") |
| 4050 | (license license:isc))) |
| 4051 | |
| 4052 | (define-public python2-pexpect |
| 4053 | (package-with-python2 python-pexpect)) |
| 4054 | |
| 4055 | (define-public python-setuptools-scm |
| 4056 | (package |
| 4057 | (name "python-setuptools-scm") |
| 4058 | (version "1.15.0") |
| 4059 | (source (origin |
| 4060 | (method url-fetch) |
| 4061 | (uri (pypi-uri "setuptools_scm" version)) |
| 4062 | (sha256 |
| 4063 | (base32 |
| 4064 | "0bwyc5markib0i7i2qlyhdzxhiywzxbkfiapldma8m91m82jvwfs")))) |
| 4065 | (build-system python-build-system) |
| 4066 | (home-page "https://github.com/pypa/setuptools_scm/") |
| 4067 | (synopsis "Manage Python package versions in SCM metadata") |
| 4068 | (description |
| 4069 | "Setuptools_scm handles managing your Python package versions in |
| 4070 | @dfn{software configuration management} (SCM) metadata instead of declaring |
| 4071 | them as the version argument or in a SCM managed file.") |
| 4072 | (license license:expat))) |
| 4073 | |
| 4074 | (define-public python2-setuptools-scm |
| 4075 | (package-with-python2 python-setuptools-scm)) |
| 4076 | |
| 4077 | (define-public python-pathpy |
| 4078 | (package |
| 4079 | (name "python-pathpy") |
| 4080 | (version "8.1.1") |
| 4081 | (source |
| 4082 | (origin |
| 4083 | (method url-fetch) |
| 4084 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 4085 | "path.py/path.py-" version ".tar.gz")) |
| 4086 | (sha256 |
| 4087 | (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f")))) |
| 4088 | (outputs '("out" "doc")) |
| 4089 | (build-system python-build-system) |
| 4090 | (propagated-inputs |
| 4091 | `(("python-appdirs" ,python-appdirs))) |
| 4092 | (native-inputs |
| 4093 | `(("python-setuptools-scm" ,python-setuptools-scm) |
| 4094 | ("python-sphinx" ,python-sphinx) |
| 4095 | ("python-rst.linker" ,python-rst.linker) |
| 4096 | ("python-pytest" ,python-pytest) |
| 4097 | ("python-pytest-runner" ,python-pytest-runner))) |
| 4098 | (arguments |
| 4099 | `(#:phases |
| 4100 | (modify-phases %standard-phases |
| 4101 | (add-after 'build 'build-doc |
| 4102 | (lambda _ |
| 4103 | (setenv "LANG" "en_US.UTF-8") |
| 4104 | (zero? (system* "python" "setup.py" "build_sphinx")))) |
| 4105 | (add-after 'install 'install-doc |
| 4106 | (lambda* (#:key outputs #:allow-other-keys) |
| 4107 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4108 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4109 | (html (string-append doc "/html"))) |
| 4110 | (mkdir-p html) |
| 4111 | (for-each (lambda (file) |
| 4112 | (copy-file file (string-append doc "/" file))) |
| 4113 | '("README.rst" "CHANGES.rst")) |
| 4114 | (copy-recursively "build/sphinx/html" html))))))) |
| 4115 | (home-page "https://github.com/jaraco/path.py") |
| 4116 | (synopsis "Python module wrapper for built-in os.path") |
| 4117 | (description |
| 4118 | "@code{path.py} implements path objects as first-class entities, allowing |
| 4119 | common operations on files to be invoked on those path objects directly.") |
| 4120 | (license license:expat))) |
| 4121 | |
| 4122 | (define-public python2-pathpy |
| 4123 | (package-with-python2 python-pathpy)) |
| 4124 | |
| 4125 | (define-public python-simplegeneric |
| 4126 | (package |
| 4127 | (name "python-simplegeneric") |
| 4128 | (version "0.8.1") |
| 4129 | (source |
| 4130 | (origin |
| 4131 | (method url-fetch) |
| 4132 | (uri (string-append "https://pypi.python.org/packages/source/s/" |
| 4133 | "simplegeneric/simplegeneric-" version ".zip")) |
| 4134 | (sha256 |
| 4135 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) |
| 4136 | (build-system python-build-system) |
| 4137 | (native-inputs |
| 4138 | `(("unzip" ,unzip))) |
| 4139 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
| 4140 | (synopsis "Python module for simple generic functions") |
| 4141 | (description |
| 4142 | "The simplegeneric module lets you define simple single-dispatch generic |
| 4143 | functions, akin to Python’s built-in generic functions like @code{len()}, |
| 4144 | @code{iter()} and so on. However, instead of using specially-named methods, |
| 4145 | these generic functions use simple lookup tables, akin to those used by |
| 4146 | e.g. @code{pickle.dump()} and other generic functions found in the Python |
| 4147 | standard library.") |
| 4148 | (license license:zpl2.1))) |
| 4149 | |
| 4150 | (define-public python2-simplegeneric |
| 4151 | (package-with-python2 python-simplegeneric)) |
| 4152 | |
| 4153 | (define-public python-ipython-genutils |
| 4154 | ;; TODO: This package is retired, check if can be removed, see description. |
| 4155 | (package |
| 4156 | (name "python-ipython-genutils") |
| 4157 | (version "0.1.0") |
| 4158 | (source |
| 4159 | (origin |
| 4160 | (method url-fetch) |
| 4161 | (uri (string-append "https://pypi.python.org/packages/source/i/" |
| 4162 | "ipython_genutils/ipython_genutils-" |
| 4163 | version ".tar.gz")) |
| 4164 | (sha256 |
| 4165 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) |
| 4166 | (build-system python-build-system) |
| 4167 | (arguments `(#:tests? #f)) ; no tests |
| 4168 | (home-page "http://ipython.org") |
| 4169 | (synopsis "Vestigial utilities from IPython") |
| 4170 | (description |
| 4171 | "This package provides retired utilities from IPython. No packages |
| 4172 | outside IPython/Jupyter should depend on it. |
| 4173 | |
| 4174 | This package shouldn't exist. It contains some common utilities shared by |
| 4175 | Jupyter and IPython projects during The Big Split. As soon as possible, those |
| 4176 | packages will remove their dependency on this, and this package will go |
| 4177 | away.") |
| 4178 | (license license:bsd-3))) |
| 4179 | |
| 4180 | (define-public python2-ipython-genutils |
| 4181 | (package-with-python2 python-ipython-genutils)) |
| 4182 | |
| 4183 | (define-public python-traitlets |
| 4184 | (package |
| 4185 | (name "python-traitlets") |
| 4186 | (version "4.2.0") |
| 4187 | (source |
| 4188 | (origin |
| 4189 | (method url-fetch) |
| 4190 | (uri (pypi-uri "traitlets" version)) |
| 4191 | (sha256 |
| 4192 | (base32 |
| 4193 | "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4")))) |
| 4194 | (build-system python-build-system) |
| 4195 | (arguments |
| 4196 | `(#:phases |
| 4197 | (modify-phases %standard-phases |
| 4198 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 4199 | (propagated-inputs |
| 4200 | `(("python-ipython-genutils" ,python-ipython-genutils) |
| 4201 | ("python-decorator" ,python-decorator))) |
| 4202 | (native-inputs |
| 4203 | `(("python-mock" ,python-mock) |
| 4204 | ("python-nose" ,python-nose))) |
| 4205 | (home-page "http://ipython.org") |
| 4206 | (synopsis "Configuration system for Python applications") |
| 4207 | (description |
| 4208 | "Traitlets is a framework that lets Python classes have attributes with |
| 4209 | type checking, dynamically calculated default values, and ‘on change’ |
| 4210 | callbacks. The package also includes a mechanism to use traitlets for |
| 4211 | configuration, loading values from files or from command line arguments. This |
| 4212 | is a distinct layer on top of traitlets, so you can use traitlets in your code |
| 4213 | without using the configuration machinery.") |
| 4214 | (license license:bsd-3))) |
| 4215 | |
| 4216 | (define-public python2-traitlets |
| 4217 | (package-with-python2 python-traitlets)) |
| 4218 | |
| 4219 | (define-public python-jupyter-core |
| 4220 | (package |
| 4221 | (name "python-jupyter-core") |
| 4222 | (version "4.2.1") |
| 4223 | (source |
| 4224 | (origin |
| 4225 | (method url-fetch) |
| 4226 | (uri (string-append (pypi-uri "jupyter_core" version))) |
| 4227 | (sha256 |
| 4228 | (base32 |
| 4229 | "1cy7inv218dgh4m1fbzbsiqpz733ylgjrj62jxqpfzs3r2cm7ic9")))) |
| 4230 | (build-system python-build-system) |
| 4231 | ;; FIXME: not sure how to run the tests |
| 4232 | (arguments `(#:tests? #f)) |
| 4233 | (propagated-inputs |
| 4234 | `(("python-traitlets" ,python-traitlets))) |
| 4235 | (home-page "http://jupyter.org/") |
| 4236 | (synopsis "Jupyter base package") |
| 4237 | (description |
| 4238 | "Jupyter core is the base package on which Jupyter projects rely.") |
| 4239 | (license license:bsd-3))) |
| 4240 | |
| 4241 | (define-public python2-jupyter-core |
| 4242 | (package-with-python2 python-jupyter-core)) |
| 4243 | |
| 4244 | (define-public python-jupyter-client |
| 4245 | (package |
| 4246 | (name "python-jupyter-client") |
| 4247 | (version "4.4.0") |
| 4248 | (source |
| 4249 | (origin |
| 4250 | (method url-fetch) |
| 4251 | (uri (pypi-uri "jupyter_client" version)) |
| 4252 | (sha256 |
| 4253 | (base32 |
| 4254 | "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9")))) |
| 4255 | (build-system python-build-system) |
| 4256 | ;; Tests fail because of missing native python kernel which I assume is |
| 4257 | ;; provided by the ipython package, which we cannot use because it would |
| 4258 | ;; cause a dependency cycle. |
| 4259 | (arguments `(#:tests? #f)) |
| 4260 | (propagated-inputs |
| 4261 | `(("python-pyzmq" ,python-pyzmq) |
| 4262 | ("python-traitlets" ,python-traitlets) |
| 4263 | ("python-jupyter-core" ,python-jupyter-core))) |
| 4264 | (home-page "http://jupyter.org/") |
| 4265 | (synopsis "Jupyter protocol implementation and client libraries") |
| 4266 | (description |
| 4267 | "The @code{jupyter_client} package contains the reference implementation |
| 4268 | of the Jupyter protocol. It also provides client and kernel management APIs |
| 4269 | for working with kernels, and the @code{jupyter kernelspec} entrypoint for |
| 4270 | installing @code{kernelspec}s for use with Jupyter frontends.") |
| 4271 | (license license:bsd-3))) |
| 4272 | |
| 4273 | (define-public python2-jupyter-client |
| 4274 | (package-with-python2 python-jupyter-client)) |
| 4275 | |
| 4276 | (define-public python-ipykernel |
| 4277 | (package |
| 4278 | (name "python-ipykernel") |
| 4279 | (version "4.5.2") |
| 4280 | (source |
| 4281 | (origin |
| 4282 | (method url-fetch) |
| 4283 | (uri (pypi-uri "ipykernel" version)) |
| 4284 | (sha256 |
| 4285 | (base32 "0qllv0k6zzv1r1cj1x2ygxmlrrqhbslzj8rc6r6fg3kc1rgz4m2s")))) |
| 4286 | (build-system python-build-system) |
| 4287 | ;; The tests load a submodule of IPython. However, IPython itself depends |
| 4288 | ;; on ipykernel. |
| 4289 | (arguments `(#:tests? #f)) |
| 4290 | (propagated-inputs |
| 4291 | ;; imported at runtime during connect |
| 4292 | `(("python-jupyter-client" ,python-jupyter-client))) |
| 4293 | (home-page "http://ipython.org") |
| 4294 | (synopsis "IPython Kernel for Jupyter") |
| 4295 | (description |
| 4296 | "This package provides the IPython kernel for Jupyter.") |
| 4297 | (license license:bsd-3))) |
| 4298 | |
| 4299 | (define-public python2-ipykernel |
| 4300 | (package-with-python2 python-ipykernel)) |
| 4301 | |
| 4302 | (define-public python-ipython |
| 4303 | (package |
| 4304 | (name "python-ipython") |
| 4305 | (version "5.3.0") |
| 4306 | (source |
| 4307 | (origin |
| 4308 | (method url-fetch) |
| 4309 | (uri (pypi-uri "ipython" version ".tar.gz")) |
| 4310 | (sha256 |
| 4311 | (base32 "079wyjir4a9qx6kvx096b1asm63djbidk65z3ykcbnlngmg62pmz")))) |
| 4312 | (build-system python-build-system) |
| 4313 | (outputs '("out" "doc")) |
| 4314 | (propagated-inputs |
| 4315 | `(("python-pyzmq" ,python-pyzmq) |
| 4316 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
| 4317 | ("python-terminado" ,python-terminado) |
| 4318 | ("python-matplotlib" ,python-matplotlib) |
| 4319 | ("python-numpy" ,python-numpy) |
| 4320 | ("python-numpydoc" ,python-numpydoc) |
| 4321 | ("python-jinja2" ,python-jinja2) |
| 4322 | ("python-jupyter-console" |
| 4323 | ;; The python-ipython and python-jupyter-console require each |
| 4324 | ;; other. To get the functionality in both packages working, strip |
| 4325 | ;; down the python-jupyter-console package when using it as an input |
| 4326 | ;; to python-ipython. |
| 4327 | ,python-jupyter-console-minimal) |
| 4328 | ("python-mistune" ,python-mistune) |
| 4329 | ("python-pexpect" ,python-pexpect) |
| 4330 | ("python-pickleshare" ,python-pickleshare) |
| 4331 | ("python-simplegeneric" ,python-simplegeneric) |
| 4332 | ("python-jsonschema" ,python-jsonschema) |
| 4333 | ("python-traitlets" ,python-traitlets) |
| 4334 | ("python-ipykernel" ,python-ipykernel) |
| 4335 | ("python-nbformat" ,python-nbformat) |
| 4336 | ("python-pygments" ,python-pygments))) |
| 4337 | (inputs |
| 4338 | `(("readline" ,readline) |
| 4339 | ("which" ,which))) |
| 4340 | (native-inputs |
| 4341 | `(("graphviz" ,graphviz) |
| 4342 | ("pkg-config" ,pkg-config) |
| 4343 | ("python-requests" ,python-requests) ;; for tests |
| 4344 | ("python-testpath" ,python-testpath) |
| 4345 | ("python-nose" ,python-nose) |
| 4346 | ("python-sphinx" ,python-sphinx) |
| 4347 | ("python-shpinx-rtd-theme" ,python-sphinx-rtd-theme) |
| 4348 | ;; FIXME: It's possible that a smaller union would work just as well. |
| 4349 | ("texlive" ,(texlive-union (list texlive-fonts-amsfonts |
| 4350 | texlive-fonts-ec |
| 4351 | texlive-generic-ifxetex |
| 4352 | texlive-generic-pdftex |
| 4353 | texlive-latex-amsfonts |
| 4354 | texlive-latex-capt-of |
| 4355 | texlive-latex-cmap |
| 4356 | texlive-latex-environ |
| 4357 | texlive-latex-eqparbox |
| 4358 | texlive-latex-etoolbox |
| 4359 | texlive-latex-expdlist |
| 4360 | texlive-latex-fancyhdr |
| 4361 | texlive-latex-fancyvrb |
| 4362 | texlive-latex-fncychap |
| 4363 | texlive-latex-float |
| 4364 | texlive-latex-framed |
| 4365 | texlive-latex-geometry |
| 4366 | texlive-latex-graphics |
| 4367 | texlive-latex-hyperref |
| 4368 | texlive-latex-mdwtools |
| 4369 | texlive-latex-multirow |
| 4370 | texlive-latex-oberdiek |
| 4371 | texlive-latex-parskip |
| 4372 | texlive-latex-preview |
| 4373 | texlive-latex-tabulary |
| 4374 | texlive-latex-threeparttable |
| 4375 | texlive-latex-titlesec |
| 4376 | texlive-latex-trimspaces |
| 4377 | texlive-latex-ucs |
| 4378 | texlive-latex-upquote |
| 4379 | texlive-latex-url |
| 4380 | texlive-latex-varwidth |
| 4381 | texlive-latex-wrapfig))) |
| 4382 | ("texinfo" ,texinfo))) |
| 4383 | (arguments |
| 4384 | `(#:phases |
| 4385 | (modify-phases %standard-phases |
| 4386 | (add-after |
| 4387 | 'install 'install-doc |
| 4388 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4389 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4390 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4391 | (html (string-append doc "/html")) |
| 4392 | (man1 (string-append data "/man/man1")) |
| 4393 | (info (string-append data "/info")) |
| 4394 | (examples (string-append doc "/examples")) |
| 4395 | (python-arg (string-append "PYTHON=" (which "python")))) |
| 4396 | (setenv "LANG" "en_US.utf8") |
| 4397 | ;; Make installed package available for running the tests |
| 4398 | (add-installed-pythonpath inputs outputs) |
| 4399 | (with-directory-excursion "docs" |
| 4400 | ;; FIXME: pdf fails to build |
| 4401 | ;;(system* "make" "pdf" "PAPER=a4") |
| 4402 | (system* "make" python-arg "html") |
| 4403 | (system* "make" python-arg "info")) |
| 4404 | (copy-recursively "docs/man" man1) |
| 4405 | (copy-recursively "examples" examples) |
| 4406 | (copy-recursively "docs/build/html" html) |
| 4407 | ;; (copy-file "docs/build/latex/ipython.pdf" |
| 4408 | ;; (string-append doc "/ipython.pdf")) |
| 4409 | (mkdir-p info) |
| 4410 | (copy-file "docs/build/texinfo/ipython.info" |
| 4411 | (string-append info "/ipython.info")) |
| 4412 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))))) |
| 4413 | ;; Tests can only be run after the library has been installed and not |
| 4414 | ;; within the source directory. |
| 4415 | (delete 'check) |
| 4416 | (add-after |
| 4417 | 'install 'check |
| 4418 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) |
| 4419 | (if tests? |
| 4420 | (with-directory-excursion "/tmp" |
| 4421 | ;; Make installed package available for running the tests |
| 4422 | (add-installed-pythonpath inputs outputs) |
| 4423 | (setenv "HOME" "/tmp/") ;; required by a test |
| 4424 | (zero? (system* (string-append (assoc-ref outputs "out") |
| 4425 | "/bin/iptest")))) |
| 4426 | #t))) |
| 4427 | (add-before |
| 4428 | 'install 'fix-tests |
| 4429 | (lambda* (#:key inputs #:allow-other-keys) |
| 4430 | (substitute* "./IPython/utils/_process_posix.py" |
| 4431 | (("/usr/bin/env', 'which") (which "which"))) |
| 4432 | (substitute* "./IPython/core/tests/test_inputtransformer.py" |
| 4433 | (("#!/usr/bin/env python") |
| 4434 | (string-append "#!" (which "python")))) |
| 4435 | ;; Disable 1 failing test |
| 4436 | (substitute* "./IPython/core/tests/test_magic.py" |
| 4437 | (("def test_dirops\\(\\):" all) |
| 4438 | (string-append "@dec.skipif(True)\n" all)))))))) |
| 4439 | (home-page "http://ipython.org") |
| 4440 | (synopsis "IPython is a tool for interactive computing in Python") |
| 4441 | (description |
| 4442 | "IPython provides a rich architecture for interactive computing with: |
| 4443 | Powerful interactive shells, a browser-based notebook, support for interactive |
| 4444 | data visualization, embeddable interpreters and tools for parallel |
| 4445 | computing.") |
| 4446 | (license license:bsd-3) |
| 4447 | (properties `((python2-variant . ,(delay python2-ipython)))))) |
| 4448 | |
| 4449 | (define-public python2-ipython |
| 4450 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
| 4451 | (package |
| 4452 | (inherit ipython) |
| 4453 | ;; FIXME: add pyreadline once available. |
| 4454 | (propagated-inputs |
| 4455 | `(("python2-backports-shutil-get-terminal-size" |
| 4456 | ,python2-backports-shutil-get-terminal-size) |
| 4457 | ("python2-pathlib2" ,python2-pathlib2) |
| 4458 | ,@(package-propagated-inputs ipython))) |
| 4459 | (native-inputs |
| 4460 | `(("python2-mock" ,python2-mock) |
| 4461 | ,@(package-native-inputs ipython)))))) |
| 4462 | |
| 4463 | (define-public python-urwid |
| 4464 | (package |
| 4465 | (name "python-urwid") |
| 4466 | (version "1.3.1") |
| 4467 | (source |
| 4468 | (origin |
| 4469 | (method url-fetch) |
| 4470 | (uri (pypi-uri "urwid" version)) |
| 4471 | (sha256 |
| 4472 | (base32 |
| 4473 | "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng")))) |
| 4474 | (build-system python-build-system) |
| 4475 | (arguments |
| 4476 | `(#:phases |
| 4477 | (modify-phases %standard-phases |
| 4478 | ;; Disable failing test. Bug filed upstream: |
| 4479 | ;; https://github.com/wardi/urwid/issues/164 |
| 4480 | ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3. |
| 4481 | (add-after 'unpack 'disable-failing-test |
| 4482 | (lambda _ |
| 4483 | (substitute* "urwid/tests/test_event_loops.py" |
| 4484 | (("test_remove_watch_file") |
| 4485 | "disable_remove_watch_file"))))))) |
| 4486 | (home-page "http://urwid.org") |
| 4487 | (synopsis "Console user interface library for Python") |
| 4488 | (description |
| 4489 | "Urwid is a curses-based UI/widget library for Python. It includes many |
| 4490 | features useful for text console applications.") |
| 4491 | (license license:lgpl2.1+))) |
| 4492 | |
| 4493 | (define-public python2-urwid |
| 4494 | (let ((python2-urwid (package-with-python2 python-urwid))) |
| 4495 | (package |
| 4496 | (inherit python2-urwid) |
| 4497 | (arguments |
| 4498 | (append |
| 4499 | `(;; Explicitly using Python 2 is necessary due the argument list being |
| 4500 | ;; built from only the 'delete-test_vterm.py' phase and python-urwid's |
| 4501 | ;; package arguments, which by default assumes the use of Python 3. |
| 4502 | #:python ,python-2 |
| 4503 | #:phases |
| 4504 | (modify-phases %standard-phases |
| 4505 | ;; Disable the vterm tests because of non-deterministic failures |
| 4506 | ;; with Python 2. See https://github.com/urwid/urwid/issues/230. |
| 4507 | (add-after 'unpack 'delete-test_vterm.py |
| 4508 | (delete-file "urwid/tests/test_vterm.py")))) |
| 4509 | (package-arguments python-urwid)))))) |
| 4510 | |
| 4511 | (define-public python-urwidtrees |
| 4512 | (package |
| 4513 | (name "python-urwidtrees") |
| 4514 | (version "1.0.2") |
| 4515 | (source |
| 4516 | (origin |
| 4517 | (method url-fetch) |
| 4518 | ;; package author intends on distributing via github rather than pypi: |
| 4519 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 |
| 4520 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" |
| 4521 | version ".tar.gz")) |
| 4522 | (file-name (string-append name "-" version ".tar.gz")) |
| 4523 | (sha256 |
| 4524 | (base32 |
| 4525 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
| 4526 | (build-system python-build-system) |
| 4527 | (arguments |
| 4528 | '(#:tests? #f)) ; no tests |
| 4529 | (propagated-inputs `(("python-urwid" ,python-urwid))) |
| 4530 | (home-page "https://github.com/pazz/urwidtrees") |
| 4531 | (synopsis "Tree widgets for urwid") |
| 4532 | (description "Urwidtrees is a Widget Container API for the @code{urwid} |
| 4533 | toolkit. Use it to build trees of widgets.") |
| 4534 | (license license:gpl3+))) |
| 4535 | |
| 4536 | (define-public python2-urwidtrees |
| 4537 | (package-with-python2 python-urwidtrees)) |
| 4538 | |
| 4539 | (define-public python-dbus |
| 4540 | (package |
| 4541 | (name "python-dbus") |
| 4542 | (version "1.2.0") |
| 4543 | (source |
| 4544 | (origin |
| 4545 | (method url-fetch) |
| 4546 | (uri (string-append |
| 4547 | "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-" |
| 4548 | version ".tar.gz")) |
| 4549 | (sha256 |
| 4550 | (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71")))) |
| 4551 | (build-system gnu-build-system) |
| 4552 | (arguments |
| 4553 | '(#:phases |
| 4554 | (modify-phases %standard-phases |
| 4555 | (add-before |
| 4556 | 'check 'pre-check |
| 4557 | (lambda _ |
| 4558 | ;; XXX: For the missing '/etc/machine-id'. |
| 4559 | (substitute* "test/run-test.sh" |
| 4560 | (("DBUS_FATAL_WARNINGS=1") |
| 4561 | "DBUS_FATAL_WARNINGS=0")) |
| 4562 | #t))))) |
| 4563 | (native-inputs |
| 4564 | `(("pkg-config" ,pkg-config))) |
| 4565 | (inputs |
| 4566 | `(("python" ,python) |
| 4567 | ("dbus-glib" ,dbus-glib))) |
| 4568 | (synopsis "Python bindings for D-bus") |
| 4569 | (description "python-dbus provides bindings for libdbus, the reference |
| 4570 | implementation of D-Bus.") |
| 4571 | (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/") |
| 4572 | (license license:expat))) |
| 4573 | |
| 4574 | (define-public python2-dbus |
| 4575 | (package (inherit python-dbus) |
| 4576 | (name "python2-dbus") |
| 4577 | (inputs `(("python" ,python-2) |
| 4578 | ,@(alist-delete "python" |
| 4579 | (package-inputs python-dbus) |
| 4580 | equal?))) |
| 4581 | ;; FIXME: on Python 2, the test_utf8 fails with: |
| 4582 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" |
| 4583 | (arguments `(#:tests? #f)))) |
| 4584 | |
| 4585 | (define-public python-lxml |
| 4586 | (package |
| 4587 | (name "python-lxml") |
| 4588 | (version "3.8.0") |
| 4589 | (source |
| 4590 | (origin |
| 4591 | (method url-fetch) |
| 4592 | (uri (pypi-uri "lxml" version)) |
| 4593 | (sha256 |
| 4594 | (base32 |
| 4595 | "15nvf6n285n282682qyw3wihsncb0x5amdhyi4b83bfa2nz74vvk")))) |
| 4596 | (build-system python-build-system) |
| 4597 | (inputs |
| 4598 | `(("libxml2" ,libxml2) |
| 4599 | ("libxslt" ,libxslt))) |
| 4600 | (home-page "http://lxml.de/") |
| 4601 | (synopsis |
| 4602 | "Python XML processing library") |
| 4603 | (description |
| 4604 | "The lxml XML toolkit is a Pythonic binding for the C libraries |
| 4605 | libxml2 and libxslt.") |
| 4606 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
| 4607 | |
| 4608 | (define-public python2-lxml |
| 4609 | (package-with-python2 python-lxml)) |
| 4610 | |
| 4611 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
| 4612 | ;; and pypi seems to put it under its own name, so I guess we should too |
| 4613 | (define-public python-beautifulsoup4 |
| 4614 | (package |
| 4615 | (name "python-beautifulsoup4") |
| 4616 | (version "4.5.3") |
| 4617 | (source |
| 4618 | (origin |
| 4619 | (method url-fetch) |
| 4620 | (uri (pypi-uri "beautifulsoup4" version)) |
| 4621 | (sha256 |
| 4622 | (base32 |
| 4623 | "0glaw1vyxnbp03fni7h5496n6iib0n5iim4gax1n0ngscs9s075j")))) |
| 4624 | (build-system python-build-system) |
| 4625 | (arguments |
| 4626 | `(#:phases |
| 4627 | (modify-phases %standard-phases |
| 4628 | ;; The Python 2 source is the definitive source of beautifulsoup4. We |
| 4629 | ;; must use this conversion script when building with Python 3. The |
| 4630 | ;; conversion script also runs the tests. |
| 4631 | ;; For more information, see the file 'convert-py3k' in the source |
| 4632 | ;; distribution. |
| 4633 | (replace 'check |
| 4634 | (lambda _ (zero? (system* "./convert-py3k"))))))) |
| 4635 | (home-page |
| 4636 | "http://www.crummy.com/software/BeautifulSoup/bs4/") |
| 4637 | (synopsis |
| 4638 | "Python screen-scraping library") |
| 4639 | (description |
| 4640 | "Beautiful Soup is a Python library designed for rapidly setting up |
| 4641 | screen-scraping projects. It offers Pythonic idioms for navigating, |
| 4642 | searching, and modifying a parse tree, providing a toolkit for |
| 4643 | dissecting a document and extracting what you need. It automatically |
| 4644 | converts incoming documents to Unicode and outgoing documents to UTF-8.") |
| 4645 | (license license:expat) |
| 4646 | (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) |
| 4647 | |
| 4648 | (define-public python2-beautifulsoup4 |
| 4649 | (package |
| 4650 | (inherit (package-with-python2 |
| 4651 | (strip-python2-variant python-beautifulsoup4))) |
| 4652 | (arguments `(#:python ,python-2)))) |
| 4653 | |
| 4654 | (define-public python-netifaces |
| 4655 | (package |
| 4656 | (name "python-netifaces") |
| 4657 | (version "0.10.4") |
| 4658 | (source |
| 4659 | (origin |
| 4660 | (method url-fetch) |
| 4661 | (uri (string-append |
| 4662 | "https://pypi.python.org/packages/source/n/netifaces/netifaces-" |
| 4663 | version |
| 4664 | ".tar.gz")) |
| 4665 | (sha256 |
| 4666 | (base32 |
| 4667 | "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln")))) |
| 4668 | (build-system python-build-system) |
| 4669 | (home-page |
| 4670 | "https://bitbucket.org/al45tair/netifaces") |
| 4671 | (synopsis |
| 4672 | "Python module for portable network interface information") |
| 4673 | (description |
| 4674 | "Netifaces is a Python module providing information on network |
| 4675 | interfaces in an easy and portable manner.") |
| 4676 | (license license:expat))) |
| 4677 | |
| 4678 | (define-public python2-netifaces |
| 4679 | (package-with-python2 python-netifaces)) |
| 4680 | |
| 4681 | (define-public python-networkx |
| 4682 | (package |
| 4683 | (name "python-networkx") |
| 4684 | (version "1.11") |
| 4685 | (source |
| 4686 | (origin |
| 4687 | (method url-fetch) |
| 4688 | (uri (pypi-uri "networkx" version)) |
| 4689 | (sha256 |
| 4690 | (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd")))) |
| 4691 | (build-system python-build-system) |
| 4692 | ;; python-decorator is needed at runtime |
| 4693 | (propagated-inputs |
| 4694 | `(("python-decorator" ,python-decorator))) |
| 4695 | (native-inputs |
| 4696 | `(("python-nose" ,python-nose))) |
| 4697 | (home-page "http://networkx.github.io/") |
| 4698 | (synopsis "Python module for creating and manipulating graphs and networks") |
| 4699 | (description |
| 4700 | "NetworkX is a Python package for the creation, manipulation, and study |
| 4701 | of the structure, dynamics, and functions of complex networks.") |
| 4702 | (license license:bsd-3))) |
| 4703 | |
| 4704 | (define-public python2-networkx |
| 4705 | (package-with-python2 python-networkx)) |
| 4706 | |
| 4707 | ;; Define new package, because the current version of python-colormath does |
| 4708 | ;; not build against 2.0. |
| 4709 | (define-public python-networkx2 |
| 4710 | (package (inherit python-networkx) |
| 4711 | (name "python-networkx2") |
| 4712 | (version "2.0") |
| 4713 | (source |
| 4714 | (origin |
| 4715 | (method url-fetch) |
| 4716 | (uri (pypi-uri "networkx" version ".zip")) |
| 4717 | (sha256 |
| 4718 | (base32 |
| 4719 | "1ajl2jp8qry9nyjzzkqpy0vmsr14d23z1qk7y0vr5iwjbpvzhpyd")) |
| 4720 | (patches |
| 4721 | (search-patches "python-networkx2-reproducible-build.patch")))))) |
| 4722 | |
| 4723 | (define-public python2-networkx2 |
| 4724 | (package-with-python2 python-networkx2)) |
| 4725 | |
| 4726 | (define-public snakemake |
| 4727 | (package |
| 4728 | (name "snakemake") |
| 4729 | (version "4.2.0") |
| 4730 | (source |
| 4731 | (origin |
| 4732 | (method url-fetch) |
| 4733 | (uri (pypi-uri "snakemake" version)) |
| 4734 | (sha256 |
| 4735 | (base32 "0mgl44q152ws40zj2vicqark5szyd73vqy9pf26g6hk6dk0y0c79")))) |
| 4736 | (build-system python-build-system) |
| 4737 | (arguments |
| 4738 | ;; TODO: Package missing test dependencies. |
| 4739 | '(#:tests? #f |
| 4740 | #:phases |
| 4741 | (modify-phases %standard-phases |
| 4742 | ;; For cluster execution Snakemake will call Python. Since there is |
| 4743 | ;; no suitable PYTHONPATH set, cluster execution will fail. We fix |
| 4744 | ;; this by calling the snakemake wrapper instead. |
| 4745 | (add-after 'unpack 'call-wrapper-not-wrapped-snakemake |
| 4746 | (lambda* (#:key outputs #:allow-other-keys) |
| 4747 | (substitute* "snakemake/executors.py" |
| 4748 | (("\\{sys.executable\\} -m snakemake") |
| 4749 | (string-append (assoc-ref outputs "out") |
| 4750 | "/bin/snakemake"))) |
| 4751 | #t))))) |
| 4752 | (propagated-inputs |
| 4753 | `(("python-wrapt" ,python-wrapt) |
| 4754 | ("python-requests" ,python-requests) |
| 4755 | ("python-appdirs" ,python-appdirs) |
| 4756 | ("python-configargparse" ,python-configargparse) |
| 4757 | ("python-pyyaml" ,python-pyyaml) |
| 4758 | ("python-ratelimiter" ,python-ratelimiter))) |
| 4759 | (home-page "https://bitbucket.org/snakemake/snakemake/wiki/Home") |
| 4760 | (synopsis "Python-based execution environment for make-like workflows") |
| 4761 | (description |
| 4762 | "Snakemake aims to reduce the complexity of creating workflows by |
| 4763 | providing a clean and modern domain specific specification language (DSL) in |
| 4764 | Python style, together with a fast and comfortable execution environment.") |
| 4765 | (license license:expat))) |
| 4766 | |
| 4767 | (define-public python-pyqrcode |
| 4768 | (package |
| 4769 | (name "python-pyqrcode") |
| 4770 | (version "1.2.1") |
| 4771 | (source |
| 4772 | (origin |
| 4773 | (method url-fetch) |
| 4774 | (uri (pypi-uri "PyQRCode" version)) |
| 4775 | (sha256 |
| 4776 | (base32 |
| 4777 | "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx")))) |
| 4778 | (build-system python-build-system) |
| 4779 | (home-page |
| 4780 | "https://github.com/mnooner256/pyqrcode") |
| 4781 | (synopsis "QR code generator") |
| 4782 | (description |
| 4783 | "Pyqrcode is a QR code generator written purely in Python with |
| 4784 | SVG, EPS, PNG and terminal output.") |
| 4785 | (license license:bsd-3))) |
| 4786 | |
| 4787 | (define-public python-seaborn |
| 4788 | (package |
| 4789 | (name "python-seaborn") |
| 4790 | (version "0.7.1") |
| 4791 | (source |
| 4792 | (origin |
| 4793 | (method url-fetch) |
| 4794 | (uri (pypi-uri "seaborn" version)) |
| 4795 | (sha256 |
| 4796 | (base32 "0pawrqc3mxpwd5g9pvi9gba02637bh5c8ldpp8izfwpfn52469zs")))) |
| 4797 | (build-system python-build-system) |
| 4798 | (arguments |
| 4799 | '(#:tests? #f)) ; Tests requires a running X11 server. |
| 4800 | (propagated-inputs |
| 4801 | `(("python-pandas" ,python-pandas) |
| 4802 | ("python-matplotlib" ,python-matplotlib) |
| 4803 | ("python-scipy" ,python-scipy))) |
| 4804 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
| 4805 | (synopsis "Statistical data visualization") |
| 4806 | (description |
| 4807 | "Seaborn is a library for making attractive and informative statistical |
| 4808 | graphics in Python. It is built on top of matplotlib and tightly integrated |
| 4809 | with the PyData stack, including support for numpy and pandas data structures |
| 4810 | and statistical routines from scipy and statsmodels.") |
| 4811 | (license license:bsd-3) |
| 4812 | (properties `((python2-variant . ,(delay python2-seaborn)))))) |
| 4813 | |
| 4814 | (define-public python2-seaborn |
| 4815 | (let ((base (package-with-python2 (strip-python2-variant python-seaborn)))) |
| 4816 | (package |
| 4817 | (inherit base) |
| 4818 | (propagated-inputs `(("python2-pytz" ,python2-pytz) |
| 4819 | ,@(package-propagated-inputs base)))))) |
| 4820 | |
| 4821 | (define-public python-mpmath |
| 4822 | (package |
| 4823 | (name "python-mpmath") |
| 4824 | (version "0.19") |
| 4825 | (source (origin |
| 4826 | (method url-fetch) |
| 4827 | (uri (string-append "http://mpmath.org/files/mpmath-" |
| 4828 | version ".tar.gz")) |
| 4829 | (sha256 |
| 4830 | (base32 |
| 4831 | "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8")))) |
| 4832 | (build-system python-build-system) |
| 4833 | (arguments |
| 4834 | '(#:phases |
| 4835 | (modify-phases %standard-phases |
| 4836 | (replace 'check |
| 4837 | (lambda _ |
| 4838 | (zero? |
| 4839 | (system* "python" "mpmath/tests/runtests.py" "-local"))))))) |
| 4840 | (home-page "http://mpmath.org") |
| 4841 | (synopsis "Arbitrary-precision floating-point arithmetic in python") |
| 4842 | (description |
| 4843 | "@code{mpmath} can be used as an arbitrary-precision substitute for |
| 4844 | Python's float/complex types and math/cmath modules, but also does much |
| 4845 | more advanced mathematics.") |
| 4846 | (license license:bsd-3))) |
| 4847 | |
| 4848 | (define-public python2-mpmath |
| 4849 | (package-with-python2 python-mpmath)) |
| 4850 | |
| 4851 | (define-public python-sympy |
| 4852 | (package |
| 4853 | (name "python-sympy") |
| 4854 | (version "1.1.1") |
| 4855 | (source |
| 4856 | (origin |
| 4857 | (method url-fetch) |
| 4858 | (uri (string-append |
| 4859 | "https://github.com/sympy/sympy/releases/download/sympy-" |
| 4860 | version "/sympy-" version ".tar.gz")) |
| 4861 | (sha256 |
| 4862 | (base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc")))) |
| 4863 | (build-system python-build-system) |
| 4864 | (propagated-inputs |
| 4865 | `(("python-mpmath" ,python-mpmath))) |
| 4866 | (home-page "http://www.sympy.org/") |
| 4867 | (synopsis "Python library for symbolic mathematics") |
| 4868 | (description |
| 4869 | "SymPy is a Python library for symbolic mathematics. It aims to become a |
| 4870 | full-featured computer algebra system (CAS) while keeping the code as simple |
| 4871 | as possible in order to be comprehensible and easily extensible.") |
| 4872 | (license license:bsd-3))) |
| 4873 | |
| 4874 | (define-public python2-sympy |
| 4875 | (package-with-python2 python-sympy)) |
| 4876 | |
| 4877 | (define-public python-q |
| 4878 | (package |
| 4879 | (name "python-q") |
| 4880 | (version "2.6") |
| 4881 | (source |
| 4882 | (origin |
| 4883 | (method url-fetch) |
| 4884 | (uri (pypi-uri "q" version)) |
| 4885 | (sha256 |
| 4886 | (base32 |
| 4887 | "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) |
| 4888 | (build-system python-build-system) |
| 4889 | (home-page "https://github.com/zestyping/q") |
| 4890 | (synopsis "Quick-and-dirty debugging output for tired programmers") |
| 4891 | (description |
| 4892 | "q is a Python module for \"print\" style of debugging Python code. It |
| 4893 | provides convenient short API for print out of values, tracebacks, and |
| 4894 | falling into the Python interpreter.") |
| 4895 | (license license:asl2.0))) |
| 4896 | |
| 4897 | (define-public python2-q |
| 4898 | (package-with-python2 python-q)) |
| 4899 | |
| 4900 | (define-public python2-xlib |
| 4901 | (package |
| 4902 | (name "python2-xlib") |
| 4903 | (version "0.14") |
| 4904 | (source (origin |
| 4905 | (method url-fetch) |
| 4906 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
| 4907 | "/" version "/" |
| 4908 | "python-xlib-" version ".tar.gz")) |
| 4909 | (sha256 |
| 4910 | (base32 |
| 4911 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) |
| 4912 | (build-system python-build-system) |
| 4913 | (arguments |
| 4914 | `(#:python ,python-2 ;Python 2 only |
| 4915 | #:tests? #f)) ;no tests |
| 4916 | (home-page "http://python-xlib.sourceforge.net/") |
| 4917 | (synopsis "Python X11 client library") |
| 4918 | (description |
| 4919 | "The Python X Library is intended to be a fully functional X client |
| 4920 | library for Python programs. It is useful to implement low-level X clients. |
| 4921 | It is written entirely in Python.") |
| 4922 | (license license:gpl2+))) |
| 4923 | |
| 4924 | (define-public python-singledispatch |
| 4925 | (package |
| 4926 | (name "python-singledispatch") |
| 4927 | (version "3.4.0.3") |
| 4928 | (source |
| 4929 | (origin |
| 4930 | (method url-fetch) |
| 4931 | (uri (pypi-uri "singledispatch" version)) |
| 4932 | (sha256 |
| 4933 | (base32 |
| 4934 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) |
| 4935 | (build-system python-build-system) |
| 4936 | (native-inputs |
| 4937 | `(("python-six" ,python-six))) ; required for conversion, not at run-time |
| 4938 | (home-page |
| 4939 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") |
| 4940 | (synopsis "Backport of singledispatch feature from Python 3.4") |
| 4941 | (description |
| 4942 | "This library brings functools.singledispatch from Python 3.4 to Python |
| 4943 | 2.6-3.3.") |
| 4944 | (license license:expat))) |
| 4945 | |
| 4946 | (define-public python2-singledispatch |
| 4947 | (package-with-python2 python-singledispatch)) |
| 4948 | |
| 4949 | ;; the python- version can be removed with python-3.5 |
| 4950 | (define-public python-backports-abc |
| 4951 | (package |
| 4952 | (name "python-backports-abc") |
| 4953 | (version "0.5") |
| 4954 | (source |
| 4955 | (origin |
| 4956 | (method url-fetch) |
| 4957 | (uri (pypi-uri "backports_abc" version)) |
| 4958 | (sha256 |
| 4959 | (base32 |
| 4960 | "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3")))) |
| 4961 | (build-system python-build-system) |
| 4962 | (home-page "https://github.com/cython/backports_abc") |
| 4963 | (synopsis "Backport of additions to the 'collections.abc' module") |
| 4964 | (description |
| 4965 | "Python-backports-abc provides a backport of additions to the |
| 4966 | 'collections.abc' module in Python-3.5.") |
| 4967 | (license license:psfl))) |
| 4968 | |
| 4969 | (define-public python2-backports-abc |
| 4970 | (package-with-python2 python-backports-abc)) |
| 4971 | |
| 4972 | (define-public python-backports-csv |
| 4973 | (package |
| 4974 | (name "python-backports-csv") |
| 4975 | (version "1.0.5") |
| 4976 | (source |
| 4977 | (origin |
| 4978 | (method url-fetch) |
| 4979 | (uri (pypi-uri "backports.csv" version)) |
| 4980 | (sha256 |
| 4981 | (base32 |
| 4982 | "1imzbrradkfn8s2m1qcimyn74dn1mz2p3j381jljn166rf2i6hlc")))) |
| 4983 | (build-system python-build-system) |
| 4984 | (home-page "https://github.com/ryanhiebert/backports.csv") |
| 4985 | (synopsis "Backport of Python 3's csv module for Python 2") |
| 4986 | (description |
| 4987 | "Provides a backport of Python 3's @code{csv} module for parsing |
| 4988 | comma separated values. The API of the @code{csv} module in Python 2 |
| 4989 | is drastically different from the @code{csv} module in Python 3. |
| 4990 | This is due, for the most part, to the difference between str in |
| 4991 | Python 2 and Python 3.") |
| 4992 | (license license:psfl))) |
| 4993 | |
| 4994 | (define-public python2-backports-csv |
| 4995 | (package-with-python2 python-backports-csv)) |
| 4996 | |
| 4997 | (define-public python2-backports-shutil-get-terminal-size |
| 4998 | (package |
| 4999 | (name "python2-backports-shutil-get-terminal-size") |
| 5000 | (version "1.0.0") |
| 5001 | (source |
| 5002 | (origin |
| 5003 | (method url-fetch) |
| 5004 | (uri (pypi-uri "backports.shutil_get_terminal_size" version)) |
| 5005 | (sha256 |
| 5006 | (base32 |
| 5007 | "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki")))) |
| 5008 | (build-system python-build-system) |
| 5009 | (arguments |
| 5010 | `(#:python ,python-2 |
| 5011 | #:phases |
| 5012 | (modify-phases %standard-phases |
| 5013 | (replace 'check |
| 5014 | (lambda _ |
| 5015 | (zero? (system* "py.test" "-v"))))))) |
| 5016 | (native-inputs |
| 5017 | `(("python2-pytest" ,python2-pytest))) |
| 5018 | (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size") |
| 5019 | (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}") |
| 5020 | (description |
| 5021 | "This package provides a backport of the @code{get_terminal_size |
| 5022 | function} from Python 3.3's @code{shutil}. |
| 5023 | Unlike the original version it is written in pure Python rather than C, |
| 5024 | so it might be a tiny bit slower.") |
| 5025 | (license license:expat))) |
| 5026 | |
| 5027 | (define-public python-waf |
| 5028 | (package |
| 5029 | (name "python-waf") |
| 5030 | (version "1.9.8") |
| 5031 | (source (origin |
| 5032 | (method url-fetch) |
| 5033 | (uri (string-append "https://waf.io/" |
| 5034 | "waf-" version ".tar.bz2")) |
| 5035 | (sha256 |
| 5036 | (base32 |
| 5037 | "0wl4cnmp06lfxqjxaan58bqxn27smhydz0sg5prrfbl3bsw4gv6q")))) |
| 5038 | (build-system python-build-system) |
| 5039 | (arguments |
| 5040 | '(#:phases |
| 5041 | (modify-phases %standard-phases |
| 5042 | (replace 'build |
| 5043 | (lambda _ |
| 5044 | (zero? (system* "python" "waf-light" "configure" "build")))) |
| 5045 | (replace 'check |
| 5046 | (lambda _ |
| 5047 | (zero? (system* "python" "waf" "--version")))) |
| 5048 | (replace 'install |
| 5049 | (lambda _ |
| 5050 | (copy-file "waf" %output)))))) |
| 5051 | (home-page "https://waf.io/") |
| 5052 | (synopsis "Python-based build system") |
| 5053 | (description |
| 5054 | "Waf is a Python-based framework for configuring, compiling and installing |
| 5055 | applications.") |
| 5056 | (license license:bsd-3))) |
| 5057 | |
| 5058 | (define-public python2-waf |
| 5059 | (package-with-python2 python-waf)) |
| 5060 | |
| 5061 | (define-public python-pyzmq |
| 5062 | (package |
| 5063 | (name "python-pyzmq") |
| 5064 | (version "15.1.0") |
| 5065 | (source |
| 5066 | (origin |
| 5067 | (method url-fetch) |
| 5068 | (uri (pypi-uri "pyzmq" version)) |
| 5069 | (sha256 |
| 5070 | (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx")))) |
| 5071 | (build-system python-build-system) |
| 5072 | (arguments |
| 5073 | `(#:configure-flags |
| 5074 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) |
| 5075 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext |
| 5076 | ;; --inplace' for 'python setup.py test' to work. |
| 5077 | #:tests? #f)) |
| 5078 | (inputs |
| 5079 | `(("zeromq" ,zeromq))) |
| 5080 | (native-inputs |
| 5081 | `(("pkg-config" ,pkg-config) |
| 5082 | ("python-nose" ,python-nose))) |
| 5083 | (home-page "https://github.com/zeromq/pyzmq") |
| 5084 | (synopsis "Python bindings for 0MQ") |
| 5085 | (description |
| 5086 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") |
| 5087 | (license license:bsd-4))) |
| 5088 | |
| 5089 | (define-public python2-pyzmq |
| 5090 | (package-with-python2 python-pyzmq)) |
| 5091 | |
| 5092 | (define-public python-pep8 |
| 5093 | (package |
| 5094 | (name "python-pep8") |
| 5095 | (version "1.7.0") |
| 5096 | (source |
| 5097 | (origin |
| 5098 | (method url-fetch) |
| 5099 | (uri (pypi-uri "pep8" version)) |
| 5100 | (sha256 |
| 5101 | (base32 |
| 5102 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
| 5103 | (build-system python-build-system) |
| 5104 | (home-page "http://pep8.readthedocs.org/") |
| 5105 | (synopsis "Python style guide checker") |
| 5106 | (description |
| 5107 | "This tools checks Python code against some of the style conventions in |
| 5108 | PEP 8.") |
| 5109 | (license license:expat))) |
| 5110 | |
| 5111 | (define-public python2-pep8 |
| 5112 | (package-with-python2 python-pep8)) |
| 5113 | |
| 5114 | (define-public python-pyflakes |
| 5115 | (package |
| 5116 | (name "python-pyflakes") |
| 5117 | (version "1.0.0") |
| 5118 | (source |
| 5119 | (origin |
| 5120 | (method url-fetch) |
| 5121 | (uri (pypi-uri "pyflakes" version)) |
| 5122 | (sha256 |
| 5123 | (base32 |
| 5124 | "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk")))) |
| 5125 | (build-system python-build-system) |
| 5126 | (home-page |
| 5127 | "https://github.com/pyflakes/pyflakes") |
| 5128 | (synopsis "Passive checker of Python programs") |
| 5129 | (description |
| 5130 | "Pyflakes statically checks Python source code for common errors.") |
| 5131 | (license license:expat))) |
| 5132 | |
| 5133 | (define-public python2-pyflakes |
| 5134 | (package-with-python2 python-pyflakes)) |
| 5135 | |
| 5136 | (define-public python-mccabe |
| 5137 | (package |
| 5138 | (name "python-mccabe") |
| 5139 | (version "0.4.0") |
| 5140 | (source |
| 5141 | (origin |
| 5142 | (method url-fetch) |
| 5143 | (uri (pypi-uri "mccabe" version)) |
| 5144 | (sha256 |
| 5145 | (base32 |
| 5146 | "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws")))) |
| 5147 | (build-system python-build-system) |
| 5148 | (native-inputs |
| 5149 | `(("python-pytest" ,python-pytest) |
| 5150 | ("python-pytest-runner" ,python-pytest-runner))) |
| 5151 | (home-page "https://github.com/flintwork/mccabe") |
| 5152 | (synopsis "McCabe checker, plugin for flake8") |
| 5153 | (description |
| 5154 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic |
| 5155 | complexity of Python source code.") |
| 5156 | (license license:expat))) |
| 5157 | |
| 5158 | (define-public python2-mccabe |
| 5159 | (package-with-python2 python-mccabe)) |
| 5160 | |
| 5161 | (define-public python-mccabe-0.2.1 |
| 5162 | (package (inherit python-mccabe) |
| 5163 | (version "0.2.1") |
| 5164 | (source |
| 5165 | (origin |
| 5166 | (method url-fetch) |
| 5167 | (uri (pypi-uri "mccabe" version)) |
| 5168 | (sha256 |
| 5169 | (base32 |
| 5170 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))))) |
| 5171 | |
| 5172 | (define-public python2-mccabe-0.2.1 |
| 5173 | (package-with-python2 python-mccabe-0.2.1)) |
| 5174 | |
| 5175 | ;; Flake8 2.4.1 requires an older version of pep8. |
| 5176 | ;; This should be removed ASAP. |
| 5177 | (define-public python-pep8-1.5.7 |
| 5178 | (package (inherit python-pep8) |
| 5179 | (version "1.5.7") |
| 5180 | (source |
| 5181 | (origin |
| 5182 | (method url-fetch) |
| 5183 | (uri (string-append |
| 5184 | "https://pypi.python.org/packages/source/p/pep8/pep8-" |
| 5185 | version |
| 5186 | ".tar.gz")) |
| 5187 | (sha256 |
| 5188 | (base32 |
| 5189 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))) |
| 5190 | (arguments |
| 5191 | ;; XXX Tests not compatible with Python 3.5. |
| 5192 | '(#:tests? #f)))) |
| 5193 | |
| 5194 | (define-public python2-pep8-1.5.7 |
| 5195 | (package-with-python2 python-pep8-1.5.7)) |
| 5196 | |
| 5197 | ;; Flake8 2.4.1 requires an older version of pyflakes. |
| 5198 | ;; This should be removed ASAP. |
| 5199 | (define-public python-pyflakes-0.8.1 |
| 5200 | (package (inherit python-pyflakes) |
| 5201 | (version "0.8.1") |
| 5202 | (source |
| 5203 | (origin |
| 5204 | (method url-fetch) |
| 5205 | (uri (string-append |
| 5206 | "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-" |
| 5207 | version |
| 5208 | ".tar.gz")) |
| 5209 | (sha256 |
| 5210 | (base32 |
| 5211 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))) |
| 5212 | (arguments |
| 5213 | ;; XXX Tests not compatible with Python 3.5. |
| 5214 | '(#:tests? #f)))) |
| 5215 | |
| 5216 | (define-public python2-pyflakes-0.8.1 |
| 5217 | (package-with-python2 python-pyflakes-0.8.1)) |
| 5218 | |
| 5219 | (define-public python-flake8 |
| 5220 | (package |
| 5221 | (name "python-flake8") |
| 5222 | (version "2.5.4") |
| 5223 | (source |
| 5224 | (origin |
| 5225 | (method url-fetch) |
| 5226 | (uri (pypi-uri "flake8" version)) |
| 5227 | (sha256 |
| 5228 | (base32 |
| 5229 | "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")) |
| 5230 | (modules '((guix build utils))) |
| 5231 | (snippet |
| 5232 | '(begin |
| 5233 | ;; Remove pre-compiled .pyc files from source. |
| 5234 | (for-each delete-file-recursively |
| 5235 | (find-files "." "__pycache__" #:directories? #t)) |
| 5236 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 5237 | #t)))) |
| 5238 | (build-system python-build-system) |
| 5239 | (propagated-inputs |
| 5240 | `(("python-pep8" ,python-pep8) |
| 5241 | ("python-pyflakes" ,python-pyflakes) |
| 5242 | ("python-mccabe" ,python-mccabe))) |
| 5243 | (native-inputs |
| 5244 | `(("python-mock" ,python-mock) ; TODO: only required for < 3.3 |
| 5245 | ("python-nose" ,python-nose))) |
| 5246 | (home-page "https://gitlab.com/pycqa/flake8") |
| 5247 | (synopsis |
| 5248 | "The modular source code checker: pep8, pyflakes and co") |
| 5249 | (description |
| 5250 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") |
| 5251 | (license license:expat))) |
| 5252 | |
| 5253 | (define-public python2-flake8 |
| 5254 | (package-with-python2 python-flake8)) |
| 5255 | |
| 5256 | (define-public python-flake8-polyfill |
| 5257 | (package |
| 5258 | (name "python-flake8-polyfill") |
| 5259 | (version "1.0.1") |
| 5260 | (source |
| 5261 | (origin |
| 5262 | (method url-fetch) |
| 5263 | (uri (pypi-uri "flake8-polyfill" version)) |
| 5264 | (sha256 |
| 5265 | (base32 |
| 5266 | "02gn2wxvh9vnf7m7dld7ca4l60mg5c370hv3swwppkngwaqmcw67")))) |
| 5267 | (build-system python-build-system) |
| 5268 | (arguments |
| 5269 | '(#:phases |
| 5270 | (modify-phases %standard-phases |
| 5271 | (replace 'check |
| 5272 | (lambda _ |
| 5273 | (setenv "PYTHONPATH" |
| 5274 | (string-append (getcwd) "/build/lib:" |
| 5275 | (getenv "PYTHONPATH"))) |
| 5276 | (zero? (system* "py.test" "-v"))))))) |
| 5277 | (native-inputs |
| 5278 | `(("python-flake8" ,python-flake8) |
| 5279 | ("python-mock" ,python-mock) |
| 5280 | ("python-pycodestyle" ,python-pycodestyle) |
| 5281 | ("python-pytest" ,python-pytest))) |
| 5282 | (home-page "https://gitlab.com/pycqa/flake8-polyfill") |
| 5283 | (synopsis "Polyfill package for Flake8 plugins") |
| 5284 | (description |
| 5285 | "This package that provides some compatibility helpers for Flake8 |
| 5286 | plugins that intend to support Flake8 2.x and 3.x simultaneously.") |
| 5287 | (license license:expat))) |
| 5288 | |
| 5289 | (define-public python2-flake8-polyfill |
| 5290 | (package-with-python2 python-flake8-polyfill)) |
| 5291 | |
| 5292 | (define-public python-mistune |
| 5293 | (package |
| 5294 | (name "python-mistune") |
| 5295 | (version "0.7.3") |
| 5296 | (source |
| 5297 | (origin |
| 5298 | (method url-fetch) |
| 5299 | (uri (pypi-uri "mistune" version)) |
| 5300 | (sha256 |
| 5301 | (base32 |
| 5302 | "04xpk1zvslhq3xpnf01g3ag0dy9wfv4z28p093r8k49vvxlyil11")))) |
| 5303 | (build-system python-build-system) |
| 5304 | (native-inputs |
| 5305 | `(("python-nose" ,python-nose) |
| 5306 | ("python-cython" ,python-cython))) |
| 5307 | (home-page "https://github.com/lepture/mistune") |
| 5308 | (synopsis "Markdown parser in pure Python") |
| 5309 | (description "This package provides a fast markdown parser in pure |
| 5310 | Python.") |
| 5311 | (license license:bsd-3))) |
| 5312 | |
| 5313 | (define-public python2-mistune |
| 5314 | (package-with-python2 python-mistune)) |
| 5315 | |
| 5316 | (define-public python-markdown |
| 5317 | (package |
| 5318 | (name "python-markdown") |
| 5319 | (version "2.6.8") |
| 5320 | (source |
| 5321 | (origin |
| 5322 | (method url-fetch) |
| 5323 | (uri (pypi-uri "Markdown" version)) |
| 5324 | (sha256 |
| 5325 | (base32 |
| 5326 | "0cqfhr1km2s5d8jm6hbwgkrrj9hvkjf2gab3s2axlrw1clgaij0a")))) |
| 5327 | (build-system python-build-system) |
| 5328 | (arguments |
| 5329 | `(#:phases |
| 5330 | (modify-phases %standard-phases |
| 5331 | (replace 'check |
| 5332 | (lambda _ |
| 5333 | (zero? (system* "python" "run-tests.py"))))))) |
| 5334 | (native-inputs |
| 5335 | `(("python-nose" ,python-nose) |
| 5336 | ("python-pyyaml" ,python-pyyaml))) |
| 5337 | (home-page "https://pythonhosted.org/Markdown/") |
| 5338 | (synopsis "Python implementation of Markdown") |
| 5339 | (description |
| 5340 | "This package provides a Python implementation of John Gruber's |
| 5341 | Markdown. The library features international input, various Markdown |
| 5342 | extensions, and several HTML output formats. A command line wrapper |
| 5343 | markdown_py is also provided to convert Markdown files to HTML.") |
| 5344 | (license license:bsd-3))) |
| 5345 | |
| 5346 | (define-public python2-markdown |
| 5347 | (package-with-python2 python-markdown)) |
| 5348 | |
| 5349 | (define-public python-ptyprocess |
| 5350 | (package |
| 5351 | (name "python-ptyprocess") |
| 5352 | (version "0.5.1") |
| 5353 | (source |
| 5354 | (origin |
| 5355 | (method url-fetch) |
| 5356 | (uri (string-append |
| 5357 | "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-" |
| 5358 | version ".tar.gz")) |
| 5359 | (sha256 |
| 5360 | (base32 |
| 5361 | "19l1xrjn4l9gjz01s3vg92gn2dd9d8mw1v86ppkzlnr9m5iwwc05")))) |
| 5362 | (build-system python-build-system) |
| 5363 | (native-inputs |
| 5364 | `(("python-nose" ,python-nose))) |
| 5365 | (arguments |
| 5366 | `(#:phases |
| 5367 | (modify-phases %standard-phases |
| 5368 | (replace 'check |
| 5369 | (lambda _ |
| 5370 | (zero? (system* "nosetests"))))))) |
| 5371 | (home-page "https://github.com/pexpect/ptyprocess") |
| 5372 | (synopsis "Run a subprocess in a pseudo terminal") |
| 5373 | (description |
| 5374 | "This package provides a Python library used to launch a subprocess in a |
| 5375 | pseudo terminal (pty), and interact with both the process and its pty.") |
| 5376 | (license license:isc))) |
| 5377 | |
| 5378 | (define-public python2-ptyprocess |
| 5379 | (package-with-python2 python-ptyprocess)) |
| 5380 | |
| 5381 | (define-public python-cram |
| 5382 | (package |
| 5383 | (name "python-cram") |
| 5384 | (version "0.7") |
| 5385 | (home-page "https://bitheap.org/cram/") |
| 5386 | (source (origin |
| 5387 | (method url-fetch) |
| 5388 | (uri (list (string-append home-page "cram-" |
| 5389 | version ".tar.gz") |
| 5390 | (pypi-uri "cram" version))) |
| 5391 | (sha256 |
| 5392 | (base32 |
| 5393 | "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx")))) |
| 5394 | (arguments |
| 5395 | '(#:phases |
| 5396 | (modify-phases %standard-phases |
| 5397 | (add-after 'unpack 'patch-source |
| 5398 | (lambda _ |
| 5399 | (substitute* (find-files "cram" ".*\\.py$") |
| 5400 | ;; Replace default shell path. |
| 5401 | (("/bin/sh") (which "sh"))) |
| 5402 | (substitute* (find-files "tests" ".*\\.t$") |
| 5403 | (("md5") "md5sum") |
| 5404 | (("/bin/bash") (which "bash")) |
| 5405 | (("/bin/sh") (which "sh"))) |
| 5406 | (substitute* "cram/_test.py" |
| 5407 | ;; This hack works around a bug triggered by substituting |
| 5408 | ;; the /bin/sh paths. "tests/usage.t" compares the output of |
| 5409 | ;; "cram -h", which breaks the output at 80 characters. This |
| 5410 | ;; causes the line showing the default shell to break into two |
| 5411 | ;; lines, but the test expects a single line... |
| 5412 | (("env\\['COLUMNS'\\] = '80'") |
| 5413 | "env['COLUMNS'] = '160'")) |
| 5414 | #t)) |
| 5415 | (delete 'check) |
| 5416 | (add-after 'install 'check |
| 5417 | ;; The test phase uses the built library and executable. |
| 5418 | ;; It's easier to run it after install since the build |
| 5419 | ;; directory contains version-specific PATH. |
| 5420 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 5421 | (add-installed-pythonpath inputs outputs) |
| 5422 | (setenv "PATH" (string-append (getenv "PATH") ":" |
| 5423 | (assoc-ref outputs "out") "/bin")) |
| 5424 | (zero? (system* "make" "test"))))))) |
| 5425 | (build-system python-build-system) |
| 5426 | (native-inputs |
| 5427 | `(("python-coverage" ,python-coverage) |
| 5428 | ("which" ,which))) |
| 5429 | (synopsis "Simple testing framework for command line applications") |
| 5430 | (description |
| 5431 | "Cram is a functional testing framework for command line applications. |
| 5432 | Cram tests look like snippets of interactive shell sessions. Cram runs each |
| 5433 | command and compares the command output in the test with the command’s actual |
| 5434 | output.") |
| 5435 | (license license:gpl2+))) |
| 5436 | |
| 5437 | (define-public python2-cram |
| 5438 | (package-with-python2 python-cram)) |
| 5439 | |
| 5440 | (define-public python-straight-plugin |
| 5441 | (package |
| 5442 | (name "python-straight-plugin") |
| 5443 | (version "1.4.1") |
| 5444 | (source |
| 5445 | (origin |
| 5446 | (method url-fetch) |
| 5447 | (uri (pypi-uri "straight.plugin" version)) |
| 5448 | (sha256 |
| 5449 | (base32 |
| 5450 | "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62")))) |
| 5451 | (build-system python-build-system) |
| 5452 | (home-page "https://github.com/ironfroggy/straight.plugin") |
| 5453 | (synopsis "Simple namespaced plugin facility") |
| 5454 | (description "Straight Plugin provides a type of plugin you can create from |
| 5455 | almost any existing Python modules, and an easy way for outside developers to |
| 5456 | add functionality and customization to your projects with their own plugins.") |
| 5457 | (license license:expat))) |
| 5458 | |
| 5459 | (define-public python2-straight-plugin |
| 5460 | (package-with-python2 python-straight-plugin)) |
| 5461 | |
| 5462 | (define-public python-fonttools |
| 5463 | (package |
| 5464 | (name "python-fonttools") |
| 5465 | (version "3.15.1") |
| 5466 | (source (origin |
| 5467 | (method url-fetch) |
| 5468 | (uri (pypi-uri "fonttools" version ".zip")) |
| 5469 | (sha256 |
| 5470 | (base32 |
| 5471 | "1hhj97izwliy0vybmza72d90l5d4mcn50y8akq7kyccfl82vdx4d")))) |
| 5472 | (build-system python-build-system) |
| 5473 | (arguments |
| 5474 | '(#:test-target "check" |
| 5475 | #:phases |
| 5476 | (modify-phases %standard-phases |
| 5477 | (add-after 'unpack 'patch-setuppy |
| 5478 | ;; Remove the undocumented "extra_path" argument, which adds an |
| 5479 | ;; intervening directories between site-packages and the package |
| 5480 | ;; directory. |
| 5481 | (lambda _ |
| 5482 | (substitute* "setup.py" |
| 5483 | (("^[ \t]*extra_path *= *'FontTools',") "")) |
| 5484 | #t))))) |
| 5485 | (native-inputs |
| 5486 | `(("unzip" ,unzip))) |
| 5487 | (home-page "https://github.com/behdad/fonttools") |
| 5488 | (synopsis "Tools to manipulate font files") |
| 5489 | (description |
| 5490 | "FontTools/TTX is a library to manipulate font files from Python. It |
| 5491 | supports reading and writing of TrueType/OpenType fonts, reading and writing |
| 5492 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package |
| 5493 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and |
| 5494 | from an XML-based format.") |
| 5495 | (license (license:non-copyleft |
| 5496 | "file://LICENSE.txt" |
| 5497 | "See LICENSE.txt in the distribution.")))) |
| 5498 | |
| 5499 | (define-public python2-fonttools |
| 5500 | (package-with-python2 python-fonttools)) |
| 5501 | |
| 5502 | (define-public python-ly |
| 5503 | (package |
| 5504 | (name "python-ly") |
| 5505 | (version "0.9.4") |
| 5506 | (source |
| 5507 | (origin |
| 5508 | (method url-fetch) |
| 5509 | (uri (string-append "https://pypi.python.org/packages/57/4f/" |
| 5510 | "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" |
| 5511 | "/python-ly-" version ".tar.gz")) |
| 5512 | (sha256 |
| 5513 | (base32 |
| 5514 | "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62")))) |
| 5515 | (build-system python-build-system) |
| 5516 | (arguments |
| 5517 | ;; FIXME: Some tests need network access. |
| 5518 | '(#:tests? #f)) |
| 5519 | (synopsis "Tool and library for manipulating LilyPond files") |
| 5520 | (description "This package provides a Python library to parse, manipulate |
| 5521 | or create documents in LilyPond format. A command line program ly is also |
| 5522 | provided that can be used to do various manipulations with LilyPond files.") |
| 5523 | (home-page "https://pypi.python.org/pypi/python-ly") |
| 5524 | (license license:gpl2+))) |
| 5525 | |
| 5526 | (define-public python-appdirs |
| 5527 | (package |
| 5528 | (name "python-appdirs") |
| 5529 | (version "1.4.3") |
| 5530 | (source |
| 5531 | (origin |
| 5532 | (method url-fetch) |
| 5533 | (uri (pypi-uri "appdirs" version)) |
| 5534 | (sha256 |
| 5535 | (base32 |
| 5536 | "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y")))) |
| 5537 | (build-system python-build-system) |
| 5538 | (home-page "https://github.com/ActiveState/appdirs") |
| 5539 | (synopsis |
| 5540 | "Determine platform-specific dirs, e.g. a \"user data dir\"") |
| 5541 | (description |
| 5542 | "This module provides a portable way of finding out where user data |
| 5543 | should be stored on various operating systems.") |
| 5544 | (license license:expat))) |
| 5545 | |
| 5546 | (define-public python2-appdirs |
| 5547 | (package-with-python2 python-appdirs)) |
| 5548 | |
| 5549 | (define-public python-llfuse |
| 5550 | (package |
| 5551 | (name "python-llfuse") |
| 5552 | (version "1.2") |
| 5553 | (source (origin |
| 5554 | (method url-fetch) |
| 5555 | (uri (string-append |
| 5556 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" |
| 5557 | "llfuse-" version ".tar.bz2")) |
| 5558 | (sha256 |
| 5559 | (base32 |
| 5560 | "11hms1x68bf1bqbqy7w3wpffqsd3jkgricmzrc1hrnwkswfzzlr4")))) |
| 5561 | (build-system python-build-system) |
| 5562 | (inputs |
| 5563 | `(("fuse" ,fuse) |
| 5564 | ("attr" ,attr))) |
| 5565 | (native-inputs |
| 5566 | `(("pkg-config" ,pkg-config))) |
| 5567 | (synopsis "Python bindings for FUSE") |
| 5568 | (description |
| 5569 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") |
| 5570 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") |
| 5571 | (license license:lgpl2.0+) |
| 5572 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
| 5573 | |
| 5574 | (define-public python2-llfuse |
| 5575 | (package (inherit (package-with-python2 |
| 5576 | (strip-python2-variant python-llfuse))) |
| 5577 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) |
| 5578 | |
| 5579 | ;; For attic-0.16 |
| 5580 | (define-public python-llfuse-0.41 |
| 5581 | (package (inherit python-llfuse) |
| 5582 | (version "0.41.1") |
| 5583 | (source (origin |
| 5584 | (method url-fetch) |
| 5585 | (uri (string-append |
| 5586 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" |
| 5587 | "llfuse-" version ".tar.bz2")) |
| 5588 | (sha256 |
| 5589 | (base32 |
| 5590 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
| 5591 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
| 5592 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. |
| 5593 | (license (list license:expat license:lgpl2.0+)))) |
| 5594 | |
| 5595 | (define-public python-msgpack |
| 5596 | (package |
| 5597 | (name "python-msgpack") |
| 5598 | (version "0.4.8") |
| 5599 | (source (origin |
| 5600 | (method url-fetch) |
| 5601 | (uri (pypi-uri "msgpack-python" version)) |
| 5602 | (sha256 |
| 5603 | (base32 |
| 5604 | "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs")))) |
| 5605 | (build-system python-build-system) |
| 5606 | (synopsis "MessagePack (de)serializer") |
| 5607 | (description "MessagePack is a fast, compact binary serialization format, |
| 5608 | suitable for similar data to JSON. This package provides CPython bindings for |
| 5609 | reading and writing MessagePack data.") |
| 5610 | (home-page "https://pypi.python.org/pypi/msgpack-python/") |
| 5611 | (license license:asl2.0))) |
| 5612 | |
| 5613 | (define-public python2-msgpack |
| 5614 | (package-with-python2 python-msgpack)) |
| 5615 | |
| 5616 | (define-public python-netaddr |
| 5617 | (package |
| 5618 | (name "python-netaddr") |
| 5619 | (version "0.7.19") |
| 5620 | (source |
| 5621 | (origin |
| 5622 | (method url-fetch) |
| 5623 | (uri (pypi-uri "netaddr" version)) |
| 5624 | (sha256 |
| 5625 | (base32 |
| 5626 | "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq")))) |
| 5627 | (build-system python-build-system) |
| 5628 | (arguments `(#:tests? #f)) ;; No tests. |
| 5629 | (home-page "https://github.com/drkjam/netaddr/") |
| 5630 | (synopsis "Pythonic manipulation of network addresses") |
| 5631 | (description |
| 5632 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI |
| 5633 | and MAC network addresses.") |
| 5634 | (license license:bsd-3))) |
| 5635 | |
| 5636 | (define-public python2-netaddr |
| 5637 | (package-with-python2 python-netaddr)) |
| 5638 | |
| 5639 | (define-public python-wrapt |
| 5640 | (package |
| 5641 | (name "python-wrapt") |
| 5642 | (version "1.10.8") |
| 5643 | (source |
| 5644 | (origin |
| 5645 | (method url-fetch) |
| 5646 | (uri (pypi-uri "wrapt" version)) |
| 5647 | (sha256 |
| 5648 | (base32 |
| 5649 | "0wrcm1mydvfivbkzz0h81ygzdchnscshi6xvy5n3r21r9s0px8af")))) |
| 5650 | (build-system python-build-system) |
| 5651 | (arguments |
| 5652 | ;; Tests are not included in the tarball, they are only available in the |
| 5653 | ;; git repository. |
| 5654 | `(#:tests? #f)) |
| 5655 | (home-page "https://github.com/GrahamDumpleton/wrapt") |
| 5656 | (synopsis "Module for decorators, wrappers and monkey patching") |
| 5657 | (description |
| 5658 | "The aim of the wrapt module is to provide a transparent object proxy for |
| 5659 | Python, which can be used as the basis for the construction of function |
| 5660 | wrappers and decorator functions.") |
| 5661 | (license license:bsd-2))) |
| 5662 | |
| 5663 | (define-public python2-wrapt |
| 5664 | (package-with-python2 python-wrapt)) |
| 5665 | |
| 5666 | (define-public python-xlrd |
| 5667 | (package |
| 5668 | (name "python-xlrd") |
| 5669 | (version "1.0.0") |
| 5670 | (source (origin |
| 5671 | (method url-fetch) |
| 5672 | (uri (pypi-uri "xlrd" version)) |
| 5673 | (sha256 |
| 5674 | (base32 |
| 5675 | "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g")))) |
| 5676 | (build-system python-build-system) |
| 5677 | (arguments |
| 5678 | `(#:phases |
| 5679 | (modify-phases %standard-phases |
| 5680 | ;; Current test in setup.py does not work as of 1.0.0, so use nose to |
| 5681 | ;; run tests instead for now. |
| 5682 | (replace 'check (lambda _ (zero? (system* "nosetests"))))))) |
| 5683 | (native-inputs `(("python-nose" ,python-nose))) |
| 5684 | (home-page "http://www.python-excel.org/") |
| 5685 | (synopsis "Library for extracting data from Excel files") |
| 5686 | (description "This packages provides a library to extract data from |
| 5687 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
| 5688 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
| 5689 | Unicode-aware. It is not intended as an end-user tool.") |
| 5690 | (license license:bsd-3))) |
| 5691 | |
| 5692 | (define-public python2-xlrd |
| 5693 | (package-with-python2 python-xlrd)) |
| 5694 | |
| 5695 | (define-public python-prettytable |
| 5696 | (package |
| 5697 | (name "python-prettytable") |
| 5698 | (version "0.7.2") |
| 5699 | (source |
| 5700 | (origin |
| 5701 | (method url-fetch) |
| 5702 | (uri (string-append |
| 5703 | "https://pypi.python.org/packages/source/P/PrettyTable/" |
| 5704 | "prettytable-" version ".tar.bz2")) |
| 5705 | (sha256 |
| 5706 | (base32 |
| 5707 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) |
| 5708 | (build-system python-build-system) |
| 5709 | (home-page "http://code.google.com/p/prettytable/") |
| 5710 | (synopsis "Display tabular data in an ASCII table format") |
| 5711 | (description |
| 5712 | "A library designed to represent tabular data in visually appealing ASCII |
| 5713 | tables. PrettyTable allows for selection of which columns are to be printed, |
| 5714 | independent alignment of columns (left or right justified or centred) and |
| 5715 | printing of sub-tables by specifying a row range.") |
| 5716 | (license license:bsd-3))) |
| 5717 | |
| 5718 | (define-public python2-prettytable |
| 5719 | (package-with-python2 python-prettytable)) |
| 5720 | |
| 5721 | (define-public python-tables |
| 5722 | (package |
| 5723 | (name "python-tables") |
| 5724 | (version "3.2.2") |
| 5725 | (source |
| 5726 | (origin |
| 5727 | (method url-fetch) |
| 5728 | (uri (pypi-uri "tables" version)) |
| 5729 | (sha256 |
| 5730 | (base32 |
| 5731 | "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m")) |
| 5732 | (modules '((guix build utils))) |
| 5733 | (snippet |
| 5734 | '(begin |
| 5735 | ;; Remove pre-compiled .pyc files from source. |
| 5736 | (for-each delete-file-recursively |
| 5737 | (find-files "." "__pycache__" #:directories? #t)) |
| 5738 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 5739 | #t)))) |
| 5740 | (build-system python-build-system) |
| 5741 | (arguments |
| 5742 | `(;; FIXME: python-build-system does not pass configure-flags to "build" |
| 5743 | ;; or "check", so we must override the build and check phases. |
| 5744 | #:phases |
| 5745 | (modify-phases %standard-phases |
| 5746 | (add-after 'unpack 'use-gcc |
| 5747 | (lambda _ |
| 5748 | (substitute* "setup.py" |
| 5749 | (("compiler = new_compiler\\(\\)" line) |
| 5750 | (string-append line |
| 5751 | "\ncompiler.set_executables(compiler='gcc'," |
| 5752 | "compiler_so='gcc'," |
| 5753 | "linker_exe='gcc'," |
| 5754 | "linker_so='gcc -shared')"))) |
| 5755 | #t)) |
| 5756 | (replace 'build |
| 5757 | (lambda* (#:key inputs #:allow-other-keys) |
| 5758 | (zero? (system* "python" "setup.py" "build" |
| 5759 | (string-append "--hdf5=" |
| 5760 | (assoc-ref inputs "hdf5")))))) |
| 5761 | (replace 'check |
| 5762 | (lambda* (#:key inputs #:allow-other-keys) |
| 5763 | (zero? (system* "python" "setup.py" "check" |
| 5764 | (string-append "--hdf5=" |
| 5765 | (assoc-ref inputs "hdf5"))))))))) |
| 5766 | (propagated-inputs |
| 5767 | `(("python-numexpr" ,python-numexpr) |
| 5768 | ("python-numpy" ,python-numpy))) |
| 5769 | (native-inputs |
| 5770 | `(("python-cython" ,python-cython) |
| 5771 | ("pkg-config" ,pkg-config))) |
| 5772 | (inputs |
| 5773 | `(("hdf5" ,hdf5) |
| 5774 | ("bzip2" ,bzip2) |
| 5775 | ("zlib" ,zlib))) |
| 5776 | (home-page "http://www.pytables.org/") |
| 5777 | (synopsis "Hierarchical datasets for Python") |
| 5778 | (description "PyTables is a package for managing hierarchical datasets and |
| 5779 | designed to efficiently cope with extremely large amounts of data.") |
| 5780 | (license license:bsd-3))) |
| 5781 | |
| 5782 | (define-public python2-tables |
| 5783 | (package-with-python2 python-tables)) |
| 5784 | |
| 5785 | (define-public python-pyasn1 |
| 5786 | (package |
| 5787 | (name "python-pyasn1") |
| 5788 | (version "0.2.3") |
| 5789 | (source |
| 5790 | (origin |
| 5791 | (method url-fetch) |
| 5792 | (uri (pypi-uri "pyasn1" version)) |
| 5793 | (sha256 |
| 5794 | (base32 |
| 5795 | "1b86yx23c1x74clai05a5ma8c8nfmhlx3j1mxq0ff657i2ylx33k")))) |
| 5796 | (build-system python-build-system) |
| 5797 | (home-page "http://pyasn1.sourceforge.net/") |
| 5798 | (synopsis "ASN.1 types and codecs") |
| 5799 | (description |
| 5800 | "This is an implementation of ASN.1 types and codecs in Python. It is |
| 5801 | suitable for a wide range of protocols based on the ASN.1 specification.") |
| 5802 | (license license:bsd-2))) |
| 5803 | |
| 5804 | (define-public python2-pyasn1 |
| 5805 | (package-with-python2 python-pyasn1)) |
| 5806 | |
| 5807 | (define-public python-pyasn1-modules |
| 5808 | (package |
| 5809 | (name "python-pyasn1-modules") |
| 5810 | (version "0.0.8") |
| 5811 | (source |
| 5812 | (origin |
| 5813 | (method url-fetch) |
| 5814 | (uri (pypi-uri "pyasn1-modules" version)) |
| 5815 | (sha256 |
| 5816 | (base32 |
| 5817 | "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) |
| 5818 | (build-system python-build-system) |
| 5819 | (propagated-inputs |
| 5820 | `(("python-pyasn1" ,python-pyasn1))) |
| 5821 | (home-page "https://sourceforge.net/projects/pyasn1/") |
| 5822 | (synopsis "ASN.1 codec implementations") |
| 5823 | (description |
| 5824 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and |
| 5825 | implementations of ASN.1-based codecs and protocols.") |
| 5826 | (license license:bsd-3))) |
| 5827 | |
| 5828 | (define-public python2-pyasn1-modules |
| 5829 | (package-with-python2 python-pyasn1-modules)) |
| 5830 | |
| 5831 | (define-public python-ipaddress |
| 5832 | (package |
| 5833 | (name "python-ipaddress") |
| 5834 | (version "1.0.18") |
| 5835 | (source (origin |
| 5836 | (method url-fetch) |
| 5837 | (uri (pypi-uri "ipaddress" version)) |
| 5838 | (sha256 |
| 5839 | (base32 |
| 5840 | "1q8klj9d84cmxgz66073x1j35cplr3r77vx1znhxiwl5w74391ax")))) |
| 5841 | (build-system python-build-system) |
| 5842 | (home-page "https://github.com/phihag/ipaddress") |
| 5843 | (synopsis "IP address manipulation library") |
| 5844 | (description |
| 5845 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
| 5846 | in Python. This library is used to create, poke at, and manipulate IPv4 and |
| 5847 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress |
| 5848 | module to older versions of Python.") |
| 5849 | (license license:psfl))) |
| 5850 | |
| 5851 | (define-public python2-ipaddress |
| 5852 | (package-with-python2 python-ipaddress)) |
| 5853 | |
| 5854 | (define-public python2-ipaddr |
| 5855 | (package |
| 5856 | (name "python2-ipaddr") |
| 5857 | (version "2.1.11") |
| 5858 | (source |
| 5859 | (origin |
| 5860 | (method url-fetch) |
| 5861 | (uri (pypi-uri "ipaddr" version)) |
| 5862 | (sha256 |
| 5863 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) |
| 5864 | (build-system python-build-system) |
| 5865 | (arguments |
| 5866 | `(#:python ,python-2 ;version 2 only |
| 5867 | #:phases |
| 5868 | (modify-phases %standard-phases |
| 5869 | (replace 'check |
| 5870 | (lambda* _ |
| 5871 | (zero? (system* "python" "ipaddr_test.py"))))))) |
| 5872 | (home-page "https://github.com/google/ipaddr-py") |
| 5873 | (synopsis "IP address manipulation library") |
| 5874 | (description |
| 5875 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and |
| 5876 | IPv6 addresses and networks. |
| 5877 | |
| 5878 | For new implementations you may prefer to use the standard module |
| 5879 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older |
| 5880 | versions of Python.") |
| 5881 | (license license:asl2.0))) |
| 5882 | |
| 5883 | (define-public python-idna |
| 5884 | (package |
| 5885 | (name "python-idna") |
| 5886 | (version "2.5") |
| 5887 | (source |
| 5888 | (origin |
| 5889 | (method url-fetch) |
| 5890 | (uri (pypi-uri "idna" version)) |
| 5891 | (sha256 |
| 5892 | (base32 |
| 5893 | "1ara12a7k2zc69msa0arrvw00gn61a6i6by01xb3lkkc0h4cxd9w")))) |
| 5894 | (build-system python-build-system) |
| 5895 | (home-page "https://github.com/kjd/idna") |
| 5896 | (synopsis "Internationalized domain names in applications") |
| 5897 | (description |
| 5898 | "This is a library to support the Internationalised Domain Names in |
| 5899 | Applications (IDNA) protocol as specified in RFC 5891. This version of the |
| 5900 | protocol is often referred to as “IDNA2008” and can produce different results |
| 5901 | from the earlier standard from 2003. The library is also intended to act as a |
| 5902 | suitable drop-in replacement for the “encodings.idna” module that comes with |
| 5903 | the Python standard library but currently only supports the older 2003 |
| 5904 | specification.") |
| 5905 | (license license:bsd-4))) |
| 5906 | |
| 5907 | (define-public python2-idna |
| 5908 | (package-with-python2 python-idna)) |
| 5909 | |
| 5910 | (define-public python-pretend |
| 5911 | (package |
| 5912 | (name "python-pretend") |
| 5913 | (version "1.0.8") |
| 5914 | (source |
| 5915 | (origin |
| 5916 | (method url-fetch) |
| 5917 | (uri (string-append "https://pypi.python.org/packages/source/p/" |
| 5918 | "pretend/pretend-" version ".tar.gz")) |
| 5919 | (sha256 |
| 5920 | (base32 |
| 5921 | "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk")))) |
| 5922 | (build-system python-build-system) |
| 5923 | (home-page "https://github.com/alex/pretend") |
| 5924 | (synopsis "Library for stubbing in Python") |
| 5925 | (description |
| 5926 | "Pretend is a library to make stubbing with Python easier. Stubbing is a |
| 5927 | technique for writing tests. You may hear the term mixed up with mocks, |
| 5928 | fakes, or doubles. Basically, a stub is an object that returns pre-canned |
| 5929 | responses, rather than doing any computation.") |
| 5930 | (license license:bsd-3))) |
| 5931 | |
| 5932 | (define-public python2-pretend |
| 5933 | (package-with-python2 python-pretend)) |
| 5934 | |
| 5935 | (define-public python-pip |
| 5936 | (package |
| 5937 | (name "python-pip") |
| 5938 | (version "9.0.1") |
| 5939 | (source |
| 5940 | (origin |
| 5941 | (method url-fetch) |
| 5942 | (uri (pypi-uri "pip" version)) |
| 5943 | (sha256 |
| 5944 | (base32 |
| 5945 | "03clr9c1dih5n9c00c592zzvf6r1ffimywkaq9agcqdllzhl7wh9")))) |
| 5946 | (build-system python-build-system) |
| 5947 | (arguments |
| 5948 | '(#:tests? #f)) ; there are no tests in the pypi archive. |
| 5949 | (home-page "https://pip.pypa.io/") |
| 5950 | (synopsis "Package manager for Python software") |
| 5951 | (description |
| 5952 | "Pip is a package manager for Python software, that finds packages on the |
| 5953 | Python Package Index (PyPI).") |
| 5954 | (license license:expat))) |
| 5955 | |
| 5956 | (define-public python2-pip |
| 5957 | (package-with-python2 python-pip)) |
| 5958 | |
| 5959 | (define-public python-tlsh |
| 5960 | (package |
| 5961 | (name "python-tlsh") |
| 5962 | (version "3.4.4") |
| 5963 | (home-page "https://github.com/trendmicro/tlsh") |
| 5964 | (source (origin |
| 5965 | (method url-fetch) |
| 5966 | (uri (string-append "https://github.com/trendmicro/tlsh/archive/v" |
| 5967 | version ".tar.gz")) |
| 5968 | (sha256 |
| 5969 | (base32 |
| 5970 | "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r")) |
| 5971 | (file-name (string-append name "-" version ".tar.gz")))) |
| 5972 | (build-system cmake-build-system) |
| 5973 | (arguments |
| 5974 | '(#:out-of-source? #f |
| 5975 | #:phases (modify-phases %standard-phases |
| 5976 | (replace |
| 5977 | 'install |
| 5978 | (lambda* (#:key outputs #:allow-other-keys) |
| 5979 | ;; Build and install the Python bindings. The underlying |
| 5980 | ;; C++ library is apparently not meant to be installed. |
| 5981 | (let ((out (assoc-ref outputs "out"))) |
| 5982 | (with-directory-excursion "py_ext" |
| 5983 | (and (system* "python" "setup.py" "build") |
| 5984 | (system* "python" "setup.py" "install" |
| 5985 | (string-append "--prefix=" out)))))))))) |
| 5986 | (inputs `(("python" ,python-wrapper))) ;for the bindings |
| 5987 | (synopsis "Fuzzy matching library for Python") |
| 5988 | (description |
| 5989 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. |
| 5990 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash |
| 5991 | value which can be used for similarity comparisons. Similar objects have |
| 5992 | similar hash values, which allows for the detection of similar objects by |
| 5993 | comparing their hash values. The byte stream should have a sufficient amount |
| 5994 | of complexity; for example, a byte stream of identical bytes will not generate |
| 5995 | a hash value.") |
| 5996 | (license license:asl2.0))) |
| 5997 | |
| 5998 | (define-public python2-tlsh |
| 5999 | (package |
| 6000 | (inherit python-tlsh) |
| 6001 | (name "python2-tlsh") |
| 6002 | (inputs `(("python" ,python-2))))) |
| 6003 | |
| 6004 | (define-public python-termcolor |
| 6005 | (package |
| 6006 | (name "python-termcolor") |
| 6007 | (version "1.1.0") |
| 6008 | (source |
| 6009 | (origin |
| 6010 | (method url-fetch) |
| 6011 | (uri (pypi-uri "termcolor" version)) |
| 6012 | (sha256 |
| 6013 | (base32 |
| 6014 | "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) |
| 6015 | (build-system python-build-system) |
| 6016 | (arguments |
| 6017 | ;; There are no tests. |
| 6018 | `(#:tests? #f)) |
| 6019 | (home-page "http://pypi.python.org/pypi/termcolor") |
| 6020 | (synopsis "ANSII Color formatting for terminal output") |
| 6021 | (description |
| 6022 | "This package provides ANSII Color formatting for output in terminals.") |
| 6023 | (license license:expat))) |
| 6024 | |
| 6025 | (define-public python2-termcolor |
| 6026 | (package-with-python2 python-termcolor)) |
| 6027 | |
| 6028 | (define-public python-libarchive-c |
| 6029 | (package |
| 6030 | (name "python-libarchive-c") |
| 6031 | (version "2.2") |
| 6032 | (source (origin |
| 6033 | (method url-fetch) |
| 6034 | (uri (pypi-uri "libarchive-c" version)) |
| 6035 | (sha256 |
| 6036 | (base32 |
| 6037 | "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) |
| 6038 | (build-system python-build-system) |
| 6039 | (arguments |
| 6040 | '(#:phases (modify-phases %standard-phases |
| 6041 | (add-before |
| 6042 | 'build 'reference-libarchive |
| 6043 | (lambda* (#:key inputs #:allow-other-keys) |
| 6044 | ;; Retain the absolute file name of libarchive.so. |
| 6045 | (let ((libarchive (assoc-ref inputs "libarchive"))) |
| 6046 | (substitute* "libarchive/ffi.py" |
| 6047 | (("find_library\\('archive'\\)") |
| 6048 | (string-append "'" libarchive |
| 6049 | "/lib/libarchive.so'"))))))))) |
| 6050 | (inputs |
| 6051 | `(("libarchive" ,libarchive))) |
| 6052 | (home-page "https://github.com/Changaco/python-libarchive-c") |
| 6053 | (synopsis "Python interface to libarchive") |
| 6054 | (description |
| 6055 | "This package provides Python bindings to libarchive, a C library to |
| 6056 | access possibly compressed archives in many different formats. It uses |
| 6057 | Python's @code{ctypes} foreign function interface (FFI).") |
| 6058 | (license license:lgpl2.0+))) |
| 6059 | |
| 6060 | (define-public python2-libarchive-c |
| 6061 | (package-with-python2 python-libarchive-c)) |
| 6062 | |
| 6063 | (define-public python-file |
| 6064 | (package |
| 6065 | (inherit file) |
| 6066 | (name "python-file") |
| 6067 | (build-system python-build-system) |
| 6068 | (arguments |
| 6069 | '(#:tests? #f ;no tests |
| 6070 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
| 6071 | #:phases (modify-phases %standard-phases |
| 6072 | (add-before 'build 'change-directory |
| 6073 | (lambda _ |
| 6074 | (chdir "python") |
| 6075 | #t)) |
| 6076 | (add-before 'build 'set-library-file-name |
| 6077 | (lambda* (#:key inputs #:allow-other-keys) |
| 6078 | (let ((file (assoc-ref inputs "file"))) |
| 6079 | (substitute* "magic.py" |
| 6080 | (("find_library\\('magic'\\)") |
| 6081 | (string-append "'" file "/lib/libmagic.so'"))) |
| 6082 | #t)))))) |
| 6083 | (inputs `(("file" ,file))) |
| 6084 | (self-native-input? #f) |
| 6085 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
| 6086 | this module and the python-magic module both provide a \"magic.py\" file; |
| 6087 | these two modules, which are different and were developed separately, both |
| 6088 | serve the same purpose: provide Python bindings for libmagic."))) |
| 6089 | |
| 6090 | (define-public python2-file |
| 6091 | (package-with-python2 python-file)) |
| 6092 | |
| 6093 | (define-public python-debian |
| 6094 | (package |
| 6095 | (name "python-debian") |
| 6096 | (version "0.1.28") |
| 6097 | (source |
| 6098 | (origin |
| 6099 | (method url-fetch) |
| 6100 | (uri (pypi-uri name version)) |
| 6101 | (sha256 |
| 6102 | (base32 |
| 6103 | "0i15f0xzx679sd0ldq2sls9pnnps9fv6vhqvnv9dzf4qhma42i0y")))) |
| 6104 | (build-system python-build-system) |
| 6105 | (propagated-inputs |
| 6106 | `(("python-six" ,python-six))) |
| 6107 | (home-page "http://packages.debian.org/sid/python-debian") |
| 6108 | (synopsis "Debian package related modules") |
| 6109 | (description |
| 6110 | ;; XXX: Use @enumerate instead of @itemize to work around |
| 6111 | ;; <http://bugs.gnu.org/21772>. |
| 6112 | "This package provides Python modules that abstract many formats of |
| 6113 | Debian-related files, such as: |
| 6114 | |
| 6115 | @enumerate |
| 6116 | @item Debtags information; |
| 6117 | @item @file{debian/changelog} files; |
| 6118 | @item packages files, pdiffs; |
| 6119 | @item control files of single or multiple RFC822-style paragraphs---e.g. |
| 6120 | @file{debian/control}, @file{.changes}, @file{.dsc}; |
| 6121 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to |
| 6122 | contained files and meta-information. |
| 6123 | @end enumerate\n") |
| 6124 | |
| 6125 | ;; Modules are either GPLv2+ or GPLv3+. |
| 6126 | (license license:gpl3+))) |
| 6127 | |
| 6128 | (define-public python2-debian |
| 6129 | (package-with-python2 python-debian)) |
| 6130 | |
| 6131 | (define-public python-nbformat |
| 6132 | (package |
| 6133 | (name "python-nbformat") |
| 6134 | (version "4.3.0") |
| 6135 | (source |
| 6136 | (origin |
| 6137 | (method url-fetch) |
| 6138 | (uri (pypi-uri "nbformat" version)) |
| 6139 | (sha256 |
| 6140 | (base32 |
| 6141 | "12s7j4qja8b5bs1kyw5dzmrqbjxxj8wk52cyasbiqbv7fblcrssz")))) |
| 6142 | (build-system python-build-system) |
| 6143 | (arguments `(#:tests? #f)) ; no test target |
| 6144 | (propagated-inputs |
| 6145 | `(("python-ipython-genutils" ,python-ipython-genutils) |
| 6146 | ("python-jsonschema" ,python-jsonschema) |
| 6147 | ("python-jupyter-core" ,python-jupyter-core) |
| 6148 | ("python-traitlets" ,python-traitlets))) |
| 6149 | (home-page "http://jupyter.org") |
| 6150 | (synopsis "Jupyter Notebook format") |
| 6151 | (description "This package provides the reference implementation of the |
| 6152 | Jupyter Notebook format and Python APIs for working with notebooks.") |
| 6153 | (license license:bsd-3))) |
| 6154 | |
| 6155 | (define-public python2-nbformat |
| 6156 | (package-with-python2 python-nbformat)) |
| 6157 | |
| 6158 | (define-public python-bleach |
| 6159 | (package |
| 6160 | (name "python-bleach") |
| 6161 | (version "1.4.3") |
| 6162 | (source |
| 6163 | (origin |
| 6164 | (method url-fetch) |
| 6165 | (uri (pypi-uri "bleach" version)) |
| 6166 | (sha256 |
| 6167 | (base32 |
| 6168 | "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj")))) |
| 6169 | (build-system python-build-system) |
| 6170 | (propagated-inputs |
| 6171 | `(("python-html5lib" ,python-html5lib-0.9) |
| 6172 | ("python-six" ,python-six))) |
| 6173 | (native-inputs |
| 6174 | `(("python-nose" ,python-nose))) |
| 6175 | (home-page "https://github.com/jsocol/bleach") |
| 6176 | (synopsis "Whitelist-based HTML-sanitizing tool") |
| 6177 | (description "Bleach is an easy whitelist-based HTML-sanitizing tool.") |
| 6178 | (license license:asl2.0))) |
| 6179 | |
| 6180 | (define-public python2-bleach |
| 6181 | (package-with-python2 python-bleach)) |
| 6182 | |
| 6183 | (define-public python-entrypoints |
| 6184 | (package |
| 6185 | (name "python-entrypoints") |
| 6186 | (version "0.2.2") |
| 6187 | (source |
| 6188 | (origin |
| 6189 | (method url-fetch) |
| 6190 | (uri (string-append "https://github.com/takluyver/entrypoints/archive/" |
| 6191 | version ".tar.gz")) |
| 6192 | (file-name (string-append name "-" version ".tar.gz")) |
| 6193 | (sha256 |
| 6194 | (base32 |
| 6195 | "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5")))) |
| 6196 | (build-system python-build-system) |
| 6197 | ;; The package does not come with a setup.py file, so we have to generate |
| 6198 | ;; one ourselves. |
| 6199 | (arguments |
| 6200 | `(#:tests? #f |
| 6201 | #:phases |
| 6202 | (modify-phases %standard-phases |
| 6203 | (add-after 'unpack 'create-setup.py |
| 6204 | (lambda _ |
| 6205 | (call-with-output-file "setup.py" |
| 6206 | (lambda (port) |
| 6207 | (format port "\ |
| 6208 | from setuptools import setup |
| 6209 | setup(name='entrypoints', version='~a', py_modules=['entrypoints']) |
| 6210 | " ,version)))))))) |
| 6211 | (home-page "https://github.com/takluyver/entrypoints") |
| 6212 | (synopsis "Discover and load entry points from installed Python packages") |
| 6213 | (description "Entry points are a way for Python packages to advertise |
| 6214 | objects with some common interface. The most common examples are |
| 6215 | @code{console_scripts} entry points, which define shell commands by |
| 6216 | identifying a Python function to run. The @code{entrypoints} module contains |
| 6217 | functions to find and load entry points.") |
| 6218 | (license license:expat))) |
| 6219 | |
| 6220 | (define-public python2-entrypoints |
| 6221 | (package-with-python2 python-entrypoints)) |
| 6222 | |
| 6223 | (define-public python-nbconvert |
| 6224 | (package |
| 6225 | (name "python-nbconvert") |
| 6226 | (version "5.0.0b1") |
| 6227 | (source |
| 6228 | (origin |
| 6229 | (method url-fetch) |
| 6230 | (uri (pypi-uri "nbconvert" version)) |
| 6231 | (sha256 |
| 6232 | (base32 |
| 6233 | "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp")))) |
| 6234 | (build-system python-build-system) |
| 6235 | (arguments |
| 6236 | `(;; The "bdist_egg" target is disabled by default, causing the installation |
| 6237 | ;; to fail. |
| 6238 | #:configure-flags (list "bdist_egg") |
| 6239 | ;; FIXME: 5 failures, 40 errors. |
| 6240 | #:tests? #f)) |
| 6241 | ;; #:phases |
| 6242 | ;; (modify-phases %standard-phases |
| 6243 | ;; (replace 'check |
| 6244 | ;; (lambda _ |
| 6245 | ;; (zero? (system* "py.test" "-v"))))) |
| 6246 | (native-inputs |
| 6247 | `(("python-pytest" ,python-pytest))) |
| 6248 | (propagated-inputs |
| 6249 | `(("python-bleach" ,python-bleach) |
| 6250 | ("python-entrypoints" ,python-entrypoints) |
| 6251 | ("python-jinja2" ,python-jinja2) |
| 6252 | ("python-jupyter-core" ,python-jupyter-core) |
| 6253 | ("python-mistune" ,python-mistune) |
| 6254 | ("python-nbformat" ,python-nbformat) |
| 6255 | ("python-pygments" ,python-pygments) |
| 6256 | ("python-traitlets" ,python-traitlets))) |
| 6257 | (home-page "http://jupyter.org") |
| 6258 | (synopsis "Converting Jupyter Notebooks") |
| 6259 | (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts |
| 6260 | notebooks to various other formats via Jinja templates. It allows you to |
| 6261 | convert an @code{.ipynb} notebook file into various static formats including: |
| 6262 | |
| 6263 | @enumerate |
| 6264 | @item HTML |
| 6265 | @item LaTeX |
| 6266 | @item PDF |
| 6267 | @item Reveal JS |
| 6268 | @item Markdown (md) |
| 6269 | @item ReStructured Text (rst) |
| 6270 | @item executable script |
| 6271 | @end enumerate\n") |
| 6272 | (license license:bsd-3))) |
| 6273 | |
| 6274 | (define-public python2-nbconvert |
| 6275 | (package-with-python2 python-nbconvert)) |
| 6276 | |
| 6277 | (define-public python-notebook |
| 6278 | (package |
| 6279 | (name "python-notebook") |
| 6280 | (version "4.2.3") |
| 6281 | (source (origin |
| 6282 | (method url-fetch) |
| 6283 | (uri (pypi-uri "notebook" version)) |
| 6284 | (sha256 |
| 6285 | (base32 |
| 6286 | "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r")))) |
| 6287 | (build-system python-build-system) |
| 6288 | (arguments |
| 6289 | `(#:phases |
| 6290 | (modify-phases %standard-phases |
| 6291 | (replace 'check |
| 6292 | (lambda _ |
| 6293 | ;; HOME must be set for tests |
| 6294 | (setenv "HOME" "/tmp") |
| 6295 | (zero? (system* "nosetests"))))))) |
| 6296 | (propagated-inputs |
| 6297 | `(("python-jupyter-core" ,python-jupyter-core) |
| 6298 | ("python-nbformat" ,python-nbformat) |
| 6299 | ("python-nbconvert" ,python-nbconvert) |
| 6300 | ("python-ipython" ,python-ipython))) |
| 6301 | (native-inputs |
| 6302 | `(("python-nose" ,python-nose) |
| 6303 | ("python-sphinx" ,python-sphinx) |
| 6304 | ("python-requests" ,python-requests))) |
| 6305 | (home-page "http://jupyter.org/") |
| 6306 | (synopsis "Web-based notebook environment for interactive computing") |
| 6307 | (description |
| 6308 | "The Jupyter HTML notebook is a web-based notebook environment for |
| 6309 | interactive computing.") |
| 6310 | (properties `((python2-variant . ,(delay python2-notebook)))) |
| 6311 | (license license:bsd-3))) |
| 6312 | |
| 6313 | (define-public python2-notebook |
| 6314 | (let ((base (package-with-python2 |
| 6315 | (strip-python2-variant python-notebook)))) |
| 6316 | (package (inherit base) |
| 6317 | (native-inputs |
| 6318 | `(("python2-mock" ,python2-mock) |
| 6319 | ,@(package-native-inputs base))) |
| 6320 | (arguments |
| 6321 | (substitute-keyword-arguments (package-arguments base) |
| 6322 | ((#:phases phases) |
| 6323 | `(modify-phases ,phases |
| 6324 | (add-before 'check 'disable-test-case |
| 6325 | ;; The test requires network access to localhost. Curiously it |
| 6326 | ;; fails with Python 2 only. Simply make the test-case return |
| 6327 | ;; immediately. |
| 6328 | (lambda _ |
| 6329 | (substitute* |
| 6330 | "notebook/services/nbconvert/tests/test_nbconvert_api.py" |
| 6331 | (("formats = self.nbconvert_api") "return #"))))))))))) |
| 6332 | |
| 6333 | (define-public python-widgetsnbextension |
| 6334 | (package |
| 6335 | (name "python-widgetsnbextension") |
| 6336 | (version "1.2.6") |
| 6337 | (source |
| 6338 | (origin |
| 6339 | (method url-fetch) |
| 6340 | (uri (pypi-uri "widgetsnbextension" version)) |
| 6341 | (sha256 |
| 6342 | (base32 |
| 6343 | "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666")))) |
| 6344 | (build-system python-build-system) |
| 6345 | (propagated-inputs |
| 6346 | `(("python-notebook" ,python-notebook))) |
| 6347 | (native-inputs |
| 6348 | `(("python-certifi" ,python-certifi) |
| 6349 | ("python-nose" ,python-nose))) |
| 6350 | (home-page "http://ipython.org") |
| 6351 | (synopsis "IPython HTML widgets for Jupyter") |
| 6352 | (description "This package provides interactive HTML widgets for Jupyter |
| 6353 | notebooks.") |
| 6354 | (license license:bsd-3))) |
| 6355 | |
| 6356 | (define-public python2-widgetsnbextension |
| 6357 | (package-with-python2 python-widgetsnbextension)) |
| 6358 | |
| 6359 | (define-public python-ipywidgets |
| 6360 | (package |
| 6361 | (name "python-ipywidgets") |
| 6362 | (version "5.2.2") |
| 6363 | (source |
| 6364 | (origin |
| 6365 | (method url-fetch) |
| 6366 | (uri (pypi-uri "ipywidgets" version)) |
| 6367 | (sha256 |
| 6368 | (base32 |
| 6369 | "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms")))) |
| 6370 | (build-system python-build-system) |
| 6371 | ;; FIXME: it's not clear how to run the tests. |
| 6372 | (arguments `(#:tests? #f)) |
| 6373 | (propagated-inputs |
| 6374 | `(("python-ipykernel" ,python-ipykernel) |
| 6375 | ("python-ipython" ,python-ipython) |
| 6376 | ("python-traitlets" ,python-traitlets) |
| 6377 | ("python-widgetsnbextension" ,python-widgetsnbextension))) |
| 6378 | (home-page "http://ipython.org") |
| 6379 | (synopsis "IPython HTML widgets for Jupyter") |
| 6380 | (description "Ipywidgets are interactive HTML widgets for Jupyter |
| 6381 | notebooks and the IPython kernel. Notebooks come alive when interactive |
| 6382 | widgets are used. Users gain control of their data and can visualize changes |
| 6383 | in the data.") |
| 6384 | (license license:bsd-3))) |
| 6385 | |
| 6386 | (define-public python2-ipywidgets |
| 6387 | (package-with-python2 python-ipywidgets)) |
| 6388 | |
| 6389 | (define-public python-jupyter-console |
| 6390 | (package |
| 6391 | (name "python-jupyter-console") |
| 6392 | (version "5.0.0") |
| 6393 | (source |
| 6394 | (origin |
| 6395 | (method url-fetch) |
| 6396 | (uri (pypi-uri "jupyter_console" version)) |
| 6397 | (sha256 |
| 6398 | (base32 |
| 6399 | "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx")))) |
| 6400 | (build-system python-build-system) |
| 6401 | ;; FIXME: it's not clear how to run the tests. |
| 6402 | (arguments `(#:tests? #f)) |
| 6403 | (propagated-inputs |
| 6404 | `(("python-ipykernel" ,python-ipykernel) |
| 6405 | ("python-ipython" ,python-ipython) |
| 6406 | ("python-jupyter-client" ,python-jupyter-client) |
| 6407 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
| 6408 | ("python-pygments" ,python-pygments))) |
| 6409 | (home-page "https://jupyter.org") |
| 6410 | (synopsis "Jupyter terminal console") |
| 6411 | (description "This package provides a terminal-based console frontend for |
| 6412 | Jupyter kernels. It also allows for console-based interaction with non-Python |
| 6413 | Jupyter kernels such as IJulia and IRKernel.") |
| 6414 | (license license:bsd-3))) |
| 6415 | |
| 6416 | (define-public python2-jupyter-console |
| 6417 | (package-with-python2 python-jupyter-console)) |
| 6418 | |
| 6419 | ;; The python-ipython and python-jupyter-console require each other. To get |
| 6420 | ;; the functionality in both packages working, strip down the |
| 6421 | ;; python-jupyter-console package when using it as an input to python-ipython. |
| 6422 | (define python-jupyter-console-minimal |
| 6423 | (package |
| 6424 | (inherit python-jupyter-console) |
| 6425 | (arguments |
| 6426 | (substitute-keyword-arguments |
| 6427 | (package-arguments python-jupyter-console) |
| 6428 | ((#:phases phases) |
| 6429 | `(modify-phases ,phases |
| 6430 | (add-after 'install 'delete-bin |
| 6431 | (lambda* (#:key outputs #:allow-other-keys) |
| 6432 | ;; Delete the bin files, to avoid conflicts in profiles |
| 6433 | ;; where python-ipython and python-jupyter-console are |
| 6434 | ;; both present. |
| 6435 | (delete-file-recursively |
| 6436 | (string-append |
| 6437 | (assoc-ref outputs "out") "/bin")))))))) |
| 6438 | ;; Remove the python-ipython propagated input, to avoid the cycle |
| 6439 | (propagated-inputs |
| 6440 | (alist-delete |
| 6441 | "python-ipython" |
| 6442 | (package-propagated-inputs python-jupyter-console))))) |
| 6443 | |
| 6444 | (define-public jupyter |
| 6445 | (package |
| 6446 | (name "jupyter") |
| 6447 | (version "1.0.0") |
| 6448 | (source |
| 6449 | (origin |
| 6450 | (method url-fetch) |
| 6451 | (uri (pypi-uri "jupyter" version)) |
| 6452 | (sha256 |
| 6453 | (base32 |
| 6454 | "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r")))) |
| 6455 | (build-system python-build-system) |
| 6456 | ;; FIXME: it's not clear how to run the tests. |
| 6457 | (arguments `(#:tests? #f)) |
| 6458 | (propagated-inputs |
| 6459 | `(("python-ipykernel" ,python-ipykernel) |
| 6460 | ("python-ipywidgets" ,python-ipywidgets) |
| 6461 | ("python-jupyter-console" ,python-jupyter-console) |
| 6462 | ("python-nbconvert" ,python-nbconvert) |
| 6463 | ("python-notebook" ,python-notebook))) |
| 6464 | (home-page "http://jupyter.org") |
| 6465 | (synopsis "Web application for interactive documents") |
| 6466 | (description |
| 6467 | "The Jupyter Notebook is a web application that allows you to create and |
| 6468 | share documents that contain live code, equations, visualizations and |
| 6469 | explanatory text. Uses include: data cleaning and transformation, numerical |
| 6470 | simulation, statistical modeling, machine learning and much more.") |
| 6471 | (license license:bsd-3))) |
| 6472 | |
| 6473 | (define-public python-chardet |
| 6474 | (package |
| 6475 | (name "python-chardet") |
| 6476 | (version "3.0.4") |
| 6477 | (source |
| 6478 | (origin |
| 6479 | (method url-fetch) |
| 6480 | (uri (pypi-uri "chardet" version)) |
| 6481 | (sha256 |
| 6482 | (base32 |
| 6483 | "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4")))) |
| 6484 | (native-inputs |
| 6485 | `(("python-hypothesis" ,python-hypothesis) |
| 6486 | ("python-pytest" ,python-pytest) |
| 6487 | ("python-pytest-runner" ,python-pytest-runner))) |
| 6488 | (build-system python-build-system) |
| 6489 | (home-page "https://github.com/chardet/chardet") |
| 6490 | (synopsis "Universal encoding detector for Python 2 and 3") |
| 6491 | (description |
| 6492 | "This package provides @code{chardet}, a Python module that can |
| 6493 | automatically detect a wide range of file encodings.") |
| 6494 | (license license:lgpl2.1+))) |
| 6495 | |
| 6496 | (define-public python2-chardet |
| 6497 | (package-with-python2 python-chardet)) |
| 6498 | |
| 6499 | (define-public python-docopt |
| 6500 | (package |
| 6501 | (name "python-docopt") |
| 6502 | (version "0.6.2") |
| 6503 | (source |
| 6504 | (origin |
| 6505 | (method url-fetch) |
| 6506 | ;; The release on PyPI does not include tests. |
| 6507 | (uri (string-append |
| 6508 | "https://github.com/docopt/docopt/archive/" |
| 6509 | version ".tar.gz")) |
| 6510 | (file-name (string-append name "-" version ".tar.gz")) |
| 6511 | (sha256 |
| 6512 | (base32 |
| 6513 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) |
| 6514 | (build-system python-build-system) |
| 6515 | (native-inputs |
| 6516 | `(("python-pytest" ,python-pytest))) |
| 6517 | (arguments |
| 6518 | `(#:phases |
| 6519 | (modify-phases %standard-phases |
| 6520 | (replace 'check |
| 6521 | (lambda _ (zero? (system* "py.test"))))))) |
| 6522 | (home-page "http://docopt.org") |
| 6523 | (synopsis "Command-line interface description language for Python") |
| 6524 | (description "This library allows the user to define a command-line |
| 6525 | interface from a program's help message rather than specifying it |
| 6526 | programatically with command-line parsers like @code{getopt} and |
| 6527 | @code{argparse}.") |
| 6528 | (license license:expat))) |
| 6529 | |
| 6530 | (define-public python2-docopt |
| 6531 | (package-with-python2 python-docopt)) |
| 6532 | |
| 6533 | (define-public python-pythondialog |
| 6534 | (package |
| 6535 | (name "python-pythondialog") |
| 6536 | (version "3.4.0") |
| 6537 | (source |
| 6538 | (origin |
| 6539 | (method url-fetch) |
| 6540 | (uri (pypi-uri "pythondialog" version)) |
| 6541 | (sha256 |
| 6542 | (base32 |
| 6543 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
| 6544 | (build-system python-build-system) |
| 6545 | (arguments |
| 6546 | `(#:phases |
| 6547 | (modify-phases %standard-phases |
| 6548 | (add-after 'unpack 'patch-path |
| 6549 | (lambda* (#:key inputs #:allow-other-keys) |
| 6550 | (let* ((dialog (assoc-ref inputs "dialog"))) |
| 6551 | ;; Since this library really wants to grovel the search path, we |
| 6552 | ;; must hardcode dialog's store path into it. |
| 6553 | (substitute* "dialog.py" |
| 6554 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") |
| 6555 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) |
| 6556 | #t)))) |
| 6557 | #:tests? #f)) ; no test suite |
| 6558 | (propagated-inputs |
| 6559 | `(("dialog" ,dialog))) |
| 6560 | (home-page "http://pythondialog.sourceforge.net/") |
| 6561 | (synopsis "Python interface to the UNIX dialog utility") |
| 6562 | (description "A Python wrapper for the dialog utility. Its purpose is to |
| 6563 | provide an easy to use, pythonic and comprehensive Python interface to dialog. |
| 6564 | This allows one to make simple text-mode user interfaces on Unix-like systems") |
| 6565 | (license license:lgpl2.1) |
| 6566 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
| 6567 | |
| 6568 | (define-public python2-pythondialog |
| 6569 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) |
| 6570 | (package |
| 6571 | (inherit base) |
| 6572 | (version (package-version python-pythondialog)) |
| 6573 | (source (origin |
| 6574 | (method url-fetch) |
| 6575 | (uri (pypi-uri "python2-pythondialog" version)) |
| 6576 | (sha256 |
| 6577 | (base32 |
| 6578 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) |
| 6579 | |
| 6580 | (define-public python-configobj |
| 6581 | (package |
| 6582 | (name "python-configobj") |
| 6583 | (version "5.0.6") |
| 6584 | (source (origin |
| 6585 | (method url-fetch) |
| 6586 | (uri (string-append |
| 6587 | "https://pypi.python.org/packages/source/c/configobj/" |
| 6588 | "configobj-" version ".tar.gz")) |
| 6589 | (sha256 |
| 6590 | (base32 |
| 6591 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) |
| 6592 | ;; Patch setup.py so it looks for python-setuptools, which is |
| 6593 | ;; required to parse the keyword 'install_requires' in setup.py. |
| 6594 | (patches (search-patches "python-configobj-setuptools.patch")))) |
| 6595 | (build-system python-build-system) |
| 6596 | (propagated-inputs |
| 6597 | `(("python-six" ,python-six))) |
| 6598 | (synopsis "Config file reading, writing and validation") |
| 6599 | (description "ConfigObj is a simple but powerful config file reader and |
| 6600 | writer: an ini file round tripper. Its main feature is that it is very easy to |
| 6601 | use, with a straightforward programmer’s interface and a simple syntax for |
| 6602 | config files.") |
| 6603 | (home-page "https://github.com/DiffSK/configobj") |
| 6604 | (license license:bsd-3))) |
| 6605 | |
| 6606 | (define-public python2-configobj |
| 6607 | (package-with-python2 python-configobj)) |
| 6608 | |
| 6609 | (define-public python-configargparse |
| 6610 | (package |
| 6611 | (name "python-configargparse") |
| 6612 | (version "0.12.0") |
| 6613 | (source (origin |
| 6614 | (method url-fetch) |
| 6615 | (uri (string-append |
| 6616 | "https://pypi.io/packages/source/C/ConfigArgParse/" |
| 6617 | "ConfigArgParse-" version ".tar.gz")) |
| 6618 | (sha256 |
| 6619 | (base32 |
| 6620 | "0fgkiqh6r3rbkdq3k8c48m85g52k96686rw3a6jg4lcncrkpvk98")))) |
| 6621 | (build-system python-build-system) |
| 6622 | (native-inputs |
| 6623 | `(("python-pyyaml" ,python-pyyaml))) |
| 6624 | (arguments |
| 6625 | `(#:phases |
| 6626 | (modify-phases %standard-phases |
| 6627 | (replace 'check |
| 6628 | (lambda _ |
| 6629 | ;; Bypass setuptools-shim because one test relies on "setup.py" |
| 6630 | ;; being the first argument passed to the python call. |
| 6631 | ;; |
| 6632 | ;; NOTE: Many tests do not run because they rely on Python's |
| 6633 | ;; built-in test.test_argparse, but we remove the unit tests from |
| 6634 | ;; our Python installation. |
| 6635 | (zero? (system* "python" "setup.py" "test"))))))) |
| 6636 | (synopsis "Replacement for argparse") |
| 6637 | (description "A drop-in replacement for argparse that allows options to also |
| 6638 | be set via config files and/or environment variables.") |
| 6639 | (home-page "https://github.com/bw2/ConfigArgParse") |
| 6640 | (license license:expat))) |
| 6641 | |
| 6642 | (define-public python2-configargparse |
| 6643 | (package-with-python2 python-configargparse)) |
| 6644 | |
| 6645 | (define-public python-contextlib2 |
| 6646 | (package |
| 6647 | (name "python-contextlib2") |
| 6648 | (version "0.4.0") |
| 6649 | (source |
| 6650 | (origin |
| 6651 | (method url-fetch) |
| 6652 | (uri (pypi-uri "contextlib2" version)) |
| 6653 | (sha256 |
| 6654 | (base32 |
| 6655 | "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am")))) |
| 6656 | (build-system python-build-system) |
| 6657 | (arguments |
| 6658 | `(#:phases |
| 6659 | (modify-phases %standard-phases |
| 6660 | (replace 'check |
| 6661 | (lambda _ (zero? |
| 6662 | (system* |
| 6663 | "python" "test_contextlib2.py" "-v"))))))) |
| 6664 | (home-page "http://contextlib2.readthedocs.org/") |
| 6665 | (synopsis "Tools for decorators and context managers") |
| 6666 | (description "This module is primarily a backport of the Python |
| 6667 | 3.2 contextlib to earlier Python versions. Like contextlib, it |
| 6668 | provides utilities for common tasks involving decorators and context |
| 6669 | managers. It also contains additional features that are not part of |
| 6670 | the standard library.") |
| 6671 | (license license:psfl))) |
| 6672 | |
| 6673 | (define-public python2-contextlib2 |
| 6674 | (package-with-python2 python-contextlib2)) |
| 6675 | |
| 6676 | (define-public python-texttable |
| 6677 | (package |
| 6678 | (name "python-texttable") |
| 6679 | (version "0.8.7") |
| 6680 | (source |
| 6681 | (origin |
| 6682 | (method url-fetch) |
| 6683 | (uri (pypi-uri "texttable" version)) |
| 6684 | (sha256 |
| 6685 | (base32 |
| 6686 | "1liiiydgkg37i46a418aw19fyf6z3ds51wdwwpyjbs12x0phhf4a")))) |
| 6687 | (build-system python-build-system) |
| 6688 | (arguments '(#:tests? #f)) ; no tests |
| 6689 | (home-page "https://github.com/foutaise/texttable/") |
| 6690 | (synopsis "Python module for creating simple ASCII tables") |
| 6691 | (description "Texttable is a Python module for creating simple ASCII |
| 6692 | tables.") |
| 6693 | (license license:lgpl2.1+))) |
| 6694 | |
| 6695 | (define-public python2-texttable |
| 6696 | (package-with-python2 python-texttable)) |
| 6697 | |
| 6698 | (define-public python-atomicwrites |
| 6699 | (package |
| 6700 | (name "python-atomicwrites") |
| 6701 | (version "1.1.5") |
| 6702 | (source (origin |
| 6703 | (method url-fetch) |
| 6704 | (uri (pypi-uri "atomicwrites" version)) |
| 6705 | (sha256 |
| 6706 | (base32 |
| 6707 | "11bm90fwm2avvf4f3ib8g925w7jr4m11vcsinn1bi6ns4bm32214")))) |
| 6708 | (build-system python-build-system) |
| 6709 | (synopsis "Atomic file writes in Python") |
| 6710 | (description "Library for atomic file writes using platform dependent tools |
| 6711 | for atomic file system operations.") |
| 6712 | (home-page "https://github.com/untitaker/python-atomicwrites") |
| 6713 | (license license:expat))) |
| 6714 | |
| 6715 | (define-public python2-atomicwrites |
| 6716 | (package-with-python2 python-atomicwrites)) |
| 6717 | |
| 6718 | (define-public python-click-threading |
| 6719 | (package |
| 6720 | (name "python-click-threading") |
| 6721 | (version "0.4.3") |
| 6722 | (source (origin |
| 6723 | (method url-fetch) |
| 6724 | (uri (pypi-uri "click-threading" version)) |
| 6725 | (sha256 |
| 6726 | (base32 |
| 6727 | "0xs4bg2ws0zgyiplk312l049hi23c2zqf1g771rjhh5vr2msk4cg")))) |
| 6728 | (build-system python-build-system) |
| 6729 | (propagated-inputs |
| 6730 | `(("python-click" ,python-click))) |
| 6731 | (synopsis "Utilities for multithreading in Click") |
| 6732 | (description "This package provides utilities for multithreading in Click |
| 6733 | applications.") |
| 6734 | (home-page "https://github.com/click-contrib/click-threading") |
| 6735 | (license license:expat))) |
| 6736 | |
| 6737 | (define-public python-click-log |
| 6738 | (package |
| 6739 | (name "python-click-log") |
| 6740 | (version "0.2.0") |
| 6741 | (source (origin |
| 6742 | (method url-fetch) |
| 6743 | (uri (pypi-uri "click-log" version)) |
| 6744 | (sha256 |
| 6745 | (base32 |
| 6746 | "1bjrfxji1yv4fj0g78ri2yfgn2wbivn8g69fxfinxvxpmighhshp")))) |
| 6747 | (build-system python-build-system) |
| 6748 | (propagated-inputs |
| 6749 | `(("python-click" ,python-click))) |
| 6750 | (synopsis "Logging for click applications") |
| 6751 | (description "This package provides a Python library for logging Click |
| 6752 | applications.") |
| 6753 | (home-page "https://github.com/click-contrib/click-log") |
| 6754 | (license license:expat))) |
| 6755 | |
| 6756 | (define-public python-apipkg |
| 6757 | (package |
| 6758 | (name "python-apipkg") |
| 6759 | (version "1.4") |
| 6760 | (source (origin |
| 6761 | (method url-fetch) |
| 6762 | (uri (pypi-uri "apipkg" version)) |
| 6763 | (sha256 |
| 6764 | (base32 |
| 6765 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) |
| 6766 | (build-system python-build-system) |
| 6767 | (native-inputs |
| 6768 | `(("python-pytest" ,python-pytest))) |
| 6769 | (synopsis "Namespace control and lazy-import mechanism") |
| 6770 | (description "With apipkg you can control the exported namespace of a Python |
| 6771 | package and greatly reduce the number of imports for your users. It is a small |
| 6772 | pure Python module that works on virtually all Python versions.") |
| 6773 | (home-page "https://bitbucket.org/hpk42/apipkg") |
| 6774 | (license license:expat))) |
| 6775 | |
| 6776 | (define-public python2-apipkg |
| 6777 | (package-with-python2 python-apipkg)) |
| 6778 | |
| 6779 | (define-public python-execnet |
| 6780 | (package |
| 6781 | (name "python-execnet") |
| 6782 | (version "1.4.1") |
| 6783 | (source (origin |
| 6784 | (method url-fetch) |
| 6785 | (uri (pypi-uri "execnet" version)) |
| 6786 | (sha256 |
| 6787 | (base32 |
| 6788 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) |
| 6789 | (build-system python-build-system) |
| 6790 | (arguments |
| 6791 | `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed |
| 6792 | ;; The two test failures are caused by the lack of an `ssh` executable. |
| 6793 | ;; The test suite can be run with pytest after the 'install' phase. |
| 6794 | #:tests? #f)) |
| 6795 | (native-inputs |
| 6796 | `(("python-pytest" ,python-pytest) |
| 6797 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 6798 | (propagated-inputs |
| 6799 | `(("python-apipkg" ,python-apipkg))) |
| 6800 | (synopsis "Rapid multi-Python deployment") |
| 6801 | (description "Execnet provides a share-nothing model with |
| 6802 | channel-send/receive communication for distributing execution across many |
| 6803 | Python interpreters across version, platform and network barriers. It has a |
| 6804 | minimal and fast API targeting the following uses: |
| 6805 | @enumerate |
| 6806 | @item distribute tasks to (many) local or remote CPUs |
| 6807 | @item write and deploy hybrid multi-process applications |
| 6808 | @item write scripts to administer multiple environments |
| 6809 | @end enumerate") |
| 6810 | (home-page "http://codespeak.net/execnet/") |
| 6811 | (license license:expat))) |
| 6812 | |
| 6813 | (define-public python2-execnet |
| 6814 | (package-with-python2 python-execnet)) |
| 6815 | |
| 6816 | (define-public python-icalendar |
| 6817 | (package |
| 6818 | (name "python-icalendar") |
| 6819 | (version "4.0.0") |
| 6820 | (source (origin |
| 6821 | (method url-fetch) |
| 6822 | (uri (pypi-uri "icalendar" version)) |
| 6823 | (sha256 |
| 6824 | (base32 |
| 6825 | "0jfp93x2pnpsbck92zw22dq7sl4pk0avv0gnb4x9vldrg6vlhyin")))) |
| 6826 | (build-system python-build-system) |
| 6827 | (propagated-inputs |
| 6828 | `(("python-dateutil" ,python-dateutil) |
| 6829 | ("python-pytz" ,python-pytz))) |
| 6830 | (synopsis "Python library for parsing iCalendar files") |
| 6831 | (description "The icalendar package is a parser/generator of iCalendar |
| 6832 | files for use with Python.") |
| 6833 | (home-page "https://github.com/collective/icalendar") |
| 6834 | (license license:bsd-2))) |
| 6835 | |
| 6836 | (define-public python-sphinxcontrib-newsfeed |
| 6837 | (package |
| 6838 | (name "python-sphinxcontrib-newsfeed") |
| 6839 | (version "0.1.4") |
| 6840 | (source (origin |
| 6841 | (method url-fetch) |
| 6842 | (uri (pypi-uri "sphinxcontrib-newsfeed" version)) |
| 6843 | (sha256 |
| 6844 | (base32 |
| 6845 | "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) |
| 6846 | (arguments '(#:tests? #f)) ; No tests. |
| 6847 | (build-system python-build-system) |
| 6848 | (propagated-inputs |
| 6849 | `(("python-sphinx" ,python-sphinx))) |
| 6850 | (synopsis "News Feed extension for Sphinx") |
| 6851 | (description "Sphinxcontrib-newsfeed is an extension for adding a simple |
| 6852 | Blog, News or Announcements section to a Sphinx website.") |
| 6853 | (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") |
| 6854 | (license license:bsd-2))) |
| 6855 | |
| 6856 | (define-public python-args |
| 6857 | (package |
| 6858 | (name "python-args") |
| 6859 | (version "0.1.0") |
| 6860 | (source (origin |
| 6861 | (method url-fetch) |
| 6862 | (uri (pypi-uri "args" version)) |
| 6863 | (sha256 |
| 6864 | (base32 |
| 6865 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) |
| 6866 | (build-system python-build-system) |
| 6867 | (home-page "https://github.com/kennethreitz/args") |
| 6868 | (synopsis "Command-line argument parser") |
| 6869 | (description |
| 6870 | "This library provides a Python module to parse command-line arguments.") |
| 6871 | (license license:bsd-3))) |
| 6872 | |
| 6873 | (define-public python2-args |
| 6874 | (package-with-python2 python-args)) |
| 6875 | |
| 6876 | (define-public python-clint |
| 6877 | (package |
| 6878 | (name "python-clint") |
| 6879 | (version "0.5.1") |
| 6880 | (source (origin |
| 6881 | (method url-fetch) |
| 6882 | (uri (pypi-uri "clint" version)) |
| 6883 | (sha256 |
| 6884 | (base32 |
| 6885 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) |
| 6886 | (build-system python-build-system) |
| 6887 | (arguments |
| 6888 | '(#:phases |
| 6889 | (modify-phases %standard-phases |
| 6890 | (replace 'check |
| 6891 | (lambda _ |
| 6892 | (zero? (system* "py.test" "-v"))))))) |
| 6893 | (native-inputs |
| 6894 | `(("python-pytest" ,python-pytest))) |
| 6895 | (propagated-inputs |
| 6896 | `(("python-args" ,python-args))) |
| 6897 | (home-page "https://github.com/kennethreitz/clint") |
| 6898 | (synopsis "Command-line interface tools") |
| 6899 | (description |
| 6900 | "Clint is a Python module filled with a set of tools for developing |
| 6901 | command-line applications, including tools for colored and indented |
| 6902 | output, progress bar display, and pipes.") |
| 6903 | (license license:isc))) |
| 6904 | |
| 6905 | (define-public python2-clint |
| 6906 | (package-with-python2 python-clint)) |
| 6907 | |
| 6908 | (define-public python-astor |
| 6909 | (package |
| 6910 | (name "python-astor") |
| 6911 | (version "0.5") |
| 6912 | (source (origin |
| 6913 | (method url-fetch) |
| 6914 | (uri (pypi-uri "astor" version)) |
| 6915 | (sha256 |
| 6916 | (base32 |
| 6917 | "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) |
| 6918 | (build-system python-build-system) |
| 6919 | (home-page "https://github.com/berkerpeksag/astor") |
| 6920 | (synopsis "Read and write Python ASTs") |
| 6921 | (description |
| 6922 | "Astor is designed to allow easy manipulation of Python source via the |
| 6923 | Abstract Syntax Tree.") |
| 6924 | (license license:bsd-3))) |
| 6925 | |
| 6926 | (define-public python2-astor |
| 6927 | (package-with-python2 python-astor)) |
| 6928 | |
| 6929 | (define-public python-rply |
| 6930 | (package |
| 6931 | (name "python-rply") |
| 6932 | (version "0.7.4") |
| 6933 | (source (origin |
| 6934 | (method url-fetch) |
| 6935 | (uri (pypi-uri "rply" version)) |
| 6936 | (sha256 |
| 6937 | (base32 |
| 6938 | "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) |
| 6939 | (build-system python-build-system) |
| 6940 | (propagated-inputs |
| 6941 | `(("python-appdirs" ,python-appdirs))) |
| 6942 | (home-page "https://github.com/alex/rply") |
| 6943 | (synopsis "Parser generator for Python") |
| 6944 | (description |
| 6945 | "This package provides a pure Python based parser generator, that also |
| 6946 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, |
| 6947 | with a new public API, and RPython support.") |
| 6948 | (license license:bsd-3))) |
| 6949 | |
| 6950 | (define-public python2-rply |
| 6951 | (package-with-python2 python-rply)) |
| 6952 | |
| 6953 | (define-public python-hy |
| 6954 | (package |
| 6955 | (name "python-hy") |
| 6956 | (version "0.13.0") |
| 6957 | (source (origin |
| 6958 | (method url-fetch) |
| 6959 | (uri (pypi-uri "hy" version)) |
| 6960 | (sha256 |
| 6961 | (base32 |
| 6962 | "19sfymaksx9jhksfnb15ahid46mzrhdfzz6yy2craz2qnzvpmky8")))) |
| 6963 | (build-system python-build-system) |
| 6964 | (arguments |
| 6965 | '(#:phases |
| 6966 | (modify-phases %standard-phases |
| 6967 | (replace 'check |
| 6968 | (lambda _ |
| 6969 | ;; Tests require write access to HOME. |
| 6970 | (setenv "HOME" "/tmp") |
| 6971 | (zero? (system* "nosetests"))))))) |
| 6972 | (native-inputs |
| 6973 | `(("python-coverage" ,python-coverage) |
| 6974 | ("python-nose" ,python-nose))) |
| 6975 | (propagated-inputs |
| 6976 | `(("python-astor" ,python-astor) |
| 6977 | ("python-clint" ,python-clint) |
| 6978 | ("python-rply" ,python-rply))) |
| 6979 | (home-page "http://hylang.org/") |
| 6980 | (synopsis "Lisp frontend to Python") |
| 6981 | (description |
| 6982 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms |
| 6983 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of |
| 6984 | Python at your fingertips, in Lisp form.") |
| 6985 | (license license:expat))) |
| 6986 | |
| 6987 | (define-public python2-hy |
| 6988 | (package-with-python2 python-hy)) |
| 6989 | |
| 6990 | (define-public python2-functools32 |
| 6991 | (package |
| 6992 | (name "python2-functools32") |
| 6993 | (version "3.2.3-2") |
| 6994 | (source |
| 6995 | (origin |
| 6996 | (method url-fetch) |
| 6997 | (uri (pypi-uri "functools32" version)) |
| 6998 | (sha256 |
| 6999 | (base32 |
| 7000 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) |
| 7001 | (build-system python-build-system) |
| 7002 | (arguments |
| 7003 | `(#:python ,python-2 |
| 7004 | #:tests? #f)) ; no test target |
| 7005 | (home-page "https://github.com/MiCHiLU/python-functools32") |
| 7006 | (synopsis |
| 7007 | "Backport of the functools module from Python 3.2.3") |
| 7008 | (description |
| 7009 | "This package is a backport of the @code{functools} module from Python |
| 7010 | 3.2.3 for use with older versions of Python and PyPy.") |
| 7011 | (license license:expat))) |
| 7012 | |
| 7013 | (define-public python2-subprocess32 |
| 7014 | (package |
| 7015 | (name "python2-subprocess32") |
| 7016 | (version "3.2.7") |
| 7017 | (source (origin |
| 7018 | (method url-fetch) |
| 7019 | (uri (pypi-uri "subprocess32" version)) |
| 7020 | (sha256 |
| 7021 | (base32 |
| 7022 | "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y")) |
| 7023 | (patches |
| 7024 | (search-patches "python2-subprocess32-disable-input-test.patch")))) |
| 7025 | (build-system python-build-system) |
| 7026 | (arguments |
| 7027 | `(#:python ,python-2 |
| 7028 | #:phases |
| 7029 | (modify-phases %standard-phases |
| 7030 | (add-after 'unpack 'patch-/bin/sh |
| 7031 | (lambda _ |
| 7032 | (substitute* '("subprocess32.py" |
| 7033 | "test_subprocess32.py") |
| 7034 | (("/bin/sh") (which "sh"))) |
| 7035 | #t)) |
| 7036 | (delete 'check) |
| 7037 | (add-after 'install 'check |
| 7038 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 7039 | ;; For some reason this package fails to import |
| 7040 | ;; _posixsubprocess.so when PYTHONPATH is set to the build |
| 7041 | ;; directory. Running tests after install is easier. |
| 7042 | (add-installed-pythonpath inputs outputs) |
| 7043 | (zero? (system* "python" "test_subprocess32.py"))))))) |
| 7044 | (home-page "https://github.com/google/python-subprocess32") |
| 7045 | (synopsis "Backport of the subprocess module from Python 3.2") |
| 7046 | (description |
| 7047 | "This is a backport of the @code{subprocess} standard library module |
| 7048 | from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some |
| 7049 | new features. On POSIX systems it is guaranteed to be reliable when used |
| 7050 | in threaded applications. It includes timeout support from Python 3.3 but |
| 7051 | otherwise matches 3.2’s API.") |
| 7052 | (license license:psfl))) |
| 7053 | |
| 7054 | (define-public python2-futures |
| 7055 | (package |
| 7056 | (name "python2-futures") |
| 7057 | (version "3.0.5") |
| 7058 | (source |
| 7059 | (origin |
| 7060 | (method url-fetch) |
| 7061 | (uri (pypi-uri "futures" version)) |
| 7062 | (sha256 |
| 7063 | (base32 |
| 7064 | "1pw1z4329xvlabdpwqa6b7v2fxf7hl64m4cgr22ckbym8m8m4hh5")))) |
| 7065 | (build-system python-build-system) |
| 7066 | (arguments `(#:python ,python-2)) |
| 7067 | (home-page "https://github.com/agronholm/pythonfutures") |
| 7068 | (synopsis |
| 7069 | "Backport of the concurrent.futures package from Python 3.2") |
| 7070 | (description |
| 7071 | "The concurrent.futures module provides a high-level interface for |
| 7072 | asynchronously executing callables. This package backports the |
| 7073 | concurrent.futures package from Python 3.2") |
| 7074 | (license license:bsd-3))) |
| 7075 | |
| 7076 | (define-public python-promise |
| 7077 | (package |
| 7078 | (name "python-promise") |
| 7079 | (version "0.4.2") |
| 7080 | (source |
| 7081 | (origin |
| 7082 | (method url-fetch) |
| 7083 | (uri (pypi-uri "promise" version)) |
| 7084 | (sha256 |
| 7085 | (base32 |
| 7086 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) |
| 7087 | (build-system python-build-system) |
| 7088 | ;; Tests wants python-futures, which is a python2 only program, and |
| 7089 | ;; can't be found by python-promise at test time. |
| 7090 | (arguments `(#:tests? #f)) |
| 7091 | (home-page "https://github.com/syrusakbary/promise") |
| 7092 | (synopsis "Promises/A+ implementation for Python") |
| 7093 | (description |
| 7094 | "Promises/A+ implementation for Python") |
| 7095 | (properties `((python2-variant . ,(delay python2-promise)))) |
| 7096 | (license license:expat))) |
| 7097 | |
| 7098 | (define-public python2-promise |
| 7099 | (let ((promise (package-with-python2 |
| 7100 | (strip-python2-variant python-promise)))) |
| 7101 | (package (inherit promise) |
| 7102 | (arguments (substitute-keyword-arguments (package-arguments promise) |
| 7103 | ((#:tests? _) #t))) |
| 7104 | (native-inputs |
| 7105 | `(("python2-futures" ,python2-futures) |
| 7106 | ("python2-pytest" ,python2-pytest) |
| 7107 | ,@(package-native-inputs promise)))))) |
| 7108 | |
| 7109 | (define-public python-colorama |
| 7110 | (package |
| 7111 | (name "python-colorama") |
| 7112 | (version "0.3.7") |
| 7113 | (source |
| 7114 | (origin |
| 7115 | (method url-fetch) |
| 7116 | (uri (pypi-uri "colorama" version)) |
| 7117 | (sha256 |
| 7118 | (base32 |
| 7119 | "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0")))) |
| 7120 | (build-system python-build-system) |
| 7121 | (synopsis "Colored terminal text rendering for Python") |
| 7122 | (description "Colorama is a Python library for rendering colored terminal |
| 7123 | text.") |
| 7124 | (home-page "https://pypi.python.org/pypi/colorama") |
| 7125 | (license license:bsd-3))) |
| 7126 | |
| 7127 | (define-public python2-colorama |
| 7128 | (package-with-python2 python-colorama)) |
| 7129 | |
| 7130 | (define-public python-rsa |
| 7131 | (package |
| 7132 | (name "python-rsa") |
| 7133 | (version "3.4.2") |
| 7134 | (source |
| 7135 | (origin |
| 7136 | (method url-fetch) |
| 7137 | (uri (pypi-uri "rsa" version)) |
| 7138 | (sha256 |
| 7139 | (base32 |
| 7140 | "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5")))) |
| 7141 | (build-system python-build-system) |
| 7142 | (propagated-inputs |
| 7143 | `(("python-pyasn1" ,python-pyasn1))) |
| 7144 | (synopsis "Pure-Python RSA implementation") |
| 7145 | (description "Python-RSA is a pure-Python RSA implementation. It supports |
| 7146 | encryption and decryption, signing and verifying signatures, and key |
| 7147 | generation according to PKCS#1 version 1.5. It can be used as a Python |
| 7148 | library as well as on the command line.") |
| 7149 | (home-page "http://stuvel.eu/rsa") |
| 7150 | (license license:asl2.0))) |
| 7151 | |
| 7152 | (define-public python2-rsa |
| 7153 | (package-with-python2 python-rsa)) |
| 7154 | |
| 7155 | (define-public python-pluggy |
| 7156 | (package |
| 7157 | (name "python-pluggy") |
| 7158 | (version "0.3.1") |
| 7159 | (source |
| 7160 | (origin |
| 7161 | (method url-fetch) |
| 7162 | (uri (pypi-uri "pluggy" version)) |
| 7163 | (sha256 |
| 7164 | (base32 |
| 7165 | "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m")))) |
| 7166 | (build-system python-build-system) |
| 7167 | (synopsis "Plugin and hook calling mechanism for Python") |
| 7168 | (description "Pluggy is an extraction of the plugin manager as used by |
| 7169 | Pytest but stripped of Pytest specific details.") |
| 7170 | (home-page "https://pypi.python.org/pypi/pluggy") |
| 7171 | (license license:expat))) |
| 7172 | |
| 7173 | (define-public python2-pluggy |
| 7174 | (package-with-python2 python-pluggy)) |
| 7175 | |
| 7176 | (define-public python-tox |
| 7177 | (package |
| 7178 | (name "python-tox") |
| 7179 | (version "2.8.1") |
| 7180 | (source |
| 7181 | (origin |
| 7182 | (method url-fetch) |
| 7183 | (uri (pypi-uri "tox" version)) |
| 7184 | (sha256 |
| 7185 | (base32 |
| 7186 | "1drp6mwm8wdypjym15ia8lwjxbhcksb9vzxg4ay5dh4ji57by2ny")))) |
| 7187 | (build-system python-build-system) |
| 7188 | (arguments |
| 7189 | ;; FIXME: Tests require pytest-timeout, which itself requires |
| 7190 | ;; pytest>=2.8.0 for installation. |
| 7191 | '(#:tests? #f)) |
| 7192 | (propagated-inputs |
| 7193 | `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0 |
| 7194 | ("python-py" ,python-py) |
| 7195 | ("python-virtualenv" ,python-virtualenv))) |
| 7196 | (native-inputs |
| 7197 | `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) |
| 7198 | ("python-pytest" ,python-pytest) ; >= 2.3.5 |
| 7199 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 7200 | (home-page "http://tox.testrun.org/") |
| 7201 | (synopsis "Virtualenv-based automation of test activities") |
| 7202 | (description "Tox is a generic virtualenv management and test command line |
| 7203 | tool. It can be used to check that a package installs correctly with |
| 7204 | different Python versions and interpreters, or run tests in each type of |
| 7205 | supported environment, or act as a frontend to continuous integration |
| 7206 | servers.") |
| 7207 | (license license:expat))) |
| 7208 | |
| 7209 | (define-public python2-tox |
| 7210 | (package-with-python2 python-tox)) |
| 7211 | |
| 7212 | (define-public python-jmespath |
| 7213 | (package |
| 7214 | (name "python-jmespath") |
| 7215 | (version "0.9.0") |
| 7216 | (source |
| 7217 | (origin |
| 7218 | (method url-fetch) |
| 7219 | (uri (pypi-uri "jmespath" version)) |
| 7220 | (sha256 |
| 7221 | (base32 |
| 7222 | "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8")))) |
| 7223 | (build-system python-build-system) |
| 7224 | (native-inputs |
| 7225 | `(("python-nose" ,python-nose))) |
| 7226 | (synopsis "JSON Matching Expressions") |
| 7227 | (description "JMESPath (pronounced “james path”) is a Python library that |
| 7228 | allows one to declaratively specify how to extract elements from a JSON |
| 7229 | document.") |
| 7230 | (home-page "https://github.com/jmespath/jmespath.py") |
| 7231 | (license license:expat))) |
| 7232 | |
| 7233 | (define-public python2-jmespath |
| 7234 | (package-with-python2 python-jmespath)) |
| 7235 | |
| 7236 | (define-public python-botocore |
| 7237 | (package |
| 7238 | (name "python-botocore") |
| 7239 | (version "1.7.9") |
| 7240 | (source |
| 7241 | (origin |
| 7242 | (method url-fetch) |
| 7243 | (uri (pypi-uri "botocore" version)) |
| 7244 | (sha256 |
| 7245 | (base32 |
| 7246 | "02b1bw25r1wdjs5yppb1h9igf11wj092biriv2yg8hzp5r0wrkmg")))) |
| 7247 | (build-system python-build-system) |
| 7248 | (arguments |
| 7249 | ;; FIXME: Many tests are failing. |
| 7250 | '(#:tests? #f)) |
| 7251 | (propagated-inputs |
| 7252 | `(("python-dateutil" ,python-dateutil) |
| 7253 | ("python-docutils" ,python-docutils) |
| 7254 | ("python-jmespath" ,python-jmespath))) |
| 7255 | (native-inputs |
| 7256 | `(("python-mock" ,python-mock) |
| 7257 | ("python-nose" ,python-nose) |
| 7258 | ("behave" ,behave) |
| 7259 | ("python-tox" ,python-tox) |
| 7260 | ("python-wheel" ,python-wheel))) |
| 7261 | (home-page "https://github.com/boto/botocore") |
| 7262 | (synopsis "Low-level interface to AWS") |
| 7263 | (description "Botocore is a Python library that provides a low-level |
| 7264 | interface to the Amazon Web Services (AWS) API.") |
| 7265 | (license license:asl2.0))) |
| 7266 | |
| 7267 | (define-public python2-botocore |
| 7268 | (package-with-python2 python-botocore)) |
| 7269 | |
| 7270 | (define-public python-xdo |
| 7271 | (package |
| 7272 | (name "python-xdo") |
| 7273 | (version "0.3") |
| 7274 | (source (origin |
| 7275 | (method url-fetch) |
| 7276 | (uri (string-append |
| 7277 | "http://http.debian.net/debian/pool/main/p/python-xdo/" |
| 7278 | "python-xdo_" version ".orig.tar.gz")) |
| 7279 | (sha256 |
| 7280 | (base32 |
| 7281 | "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0")))) |
| 7282 | (build-system python-build-system) |
| 7283 | (arguments |
| 7284 | '(#:phases |
| 7285 | (modify-phases %standard-phases |
| 7286 | (add-before 'install 'patch-libxdo-path |
| 7287 | ;; Hardcode the path of dynamically loaded libxdo library. |
| 7288 | (lambda* (#:key inputs #:allow-other-keys) |
| 7289 | (let ((libxdo (string-append |
| 7290 | (assoc-ref inputs "xdotool") |
| 7291 | "/lib/libxdo.so"))) |
| 7292 | (substitute* "xdo/_xdo.py" |
| 7293 | (("find_library\\(\"xdo\"\\)") |
| 7294 | (simple-format #f "\"~a\"" libxdo))) |
| 7295 | #t)))) |
| 7296 | #:tests? #f)) ; no tests provided |
| 7297 | (propagated-inputs |
| 7298 | `(("python-six" ,python-six))) |
| 7299 | (inputs |
| 7300 | `(("xdotool" ,xdotool) |
| 7301 | ("libX11" ,libx11))) |
| 7302 | (home-page "https://tracker.debian.org/pkg/python-xdo") |
| 7303 | (synopsis "Python library for simulating X11 keyboard/mouse input") |
| 7304 | (description "Provides bindings to libxdo for manipulating X11 via simulated |
| 7305 | input. (Note that this is mostly a legacy library; you may wish to look at |
| 7306 | python-xdo for newer bindings.)") |
| 7307 | (license license:bsd-3))) |
| 7308 | |
| 7309 | (define-public python2-xdo |
| 7310 | (package-with-python2 python-xdo)) |
| 7311 | |
| 7312 | (define-public python-mako |
| 7313 | (package |
| 7314 | (name "python-mako") |
| 7315 | (version "1.0.6") |
| 7316 | (source |
| 7317 | (origin |
| 7318 | (method url-fetch) |
| 7319 | (uri (pypi-uri "Mako" version)) |
| 7320 | (sha256 |
| 7321 | (base32 |
| 7322 | "03dyxgjknp4ffsv7vwfd28l5bbpzi0ylp20543wpg3iahyyrwma8")))) |
| 7323 | (build-system python-build-system) |
| 7324 | (propagated-inputs |
| 7325 | `(("python-markupsafe" ,python-markupsafe))) |
| 7326 | (native-inputs |
| 7327 | `(("python-mock" ,python-mock) |
| 7328 | ("python-nose" ,python-nose) |
| 7329 | ("python-pytest" ,python-pytest))) |
| 7330 | (home-page "http://www.makotemplates.org/") |
| 7331 | (synopsis "Templating language for Python") |
| 7332 | (description "Mako is a templating language for Python that compiles |
| 7333 | templates into Python modules.") |
| 7334 | (license license:expat))) |
| 7335 | |
| 7336 | (define-public python2-mako |
| 7337 | (package-with-python2 python-mako)) |
| 7338 | |
| 7339 | (define-public python-waitress |
| 7340 | (package |
| 7341 | (name "python-waitress") |
| 7342 | (version "0.8.10") |
| 7343 | (source |
| 7344 | (origin |
| 7345 | (method url-fetch) |
| 7346 | (uri (pypi-uri "waitress" version)) |
| 7347 | (sha256 |
| 7348 | (base32 |
| 7349 | "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w")))) |
| 7350 | (build-system python-build-system) |
| 7351 | (home-page "https://github.com/Pylons/waitress") |
| 7352 | (synopsis "Waitress WSGI server") |
| 7353 | (description "Waitress is meant to be a production-quality pure-Python WSGI |
| 7354 | server with very acceptable performance.") |
| 7355 | (license license:zpl2.1))) |
| 7356 | |
| 7357 | (define-public python2-waitress |
| 7358 | (package-with-python2 python-waitress)) |
| 7359 | |
| 7360 | (define-public python-pyquery |
| 7361 | (package |
| 7362 | (name "python-pyquery") |
| 7363 | (version "1.2.17") |
| 7364 | (source |
| 7365 | (origin |
| 7366 | (method url-fetch) |
| 7367 | (uri (pypi-uri "pyquery" version)) |
| 7368 | (sha256 |
| 7369 | (base32 |
| 7370 | "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a")))) |
| 7371 | (build-system python-build-system) |
| 7372 | (native-inputs |
| 7373 | `(("python-webob" ,python-webob) |
| 7374 | ("python-webtest" ,python-webtest))) |
| 7375 | (propagated-inputs |
| 7376 | `(("python-lxml" ,python-lxml) |
| 7377 | ("python-cssselect" ,python-cssselect))) |
| 7378 | (home-page "https://github.com/gawel/pyquery") |
| 7379 | (synopsis "Make jQuery-like queries on xml documents") |
| 7380 | (description "pyquery allows you to make jQuery queries on xml documents. |
| 7381 | The API is as much as possible the similar to jQuery. pyquery uses lxml for |
| 7382 | fast xml and html manipulation.") |
| 7383 | (license license:bsd-3))) |
| 7384 | |
| 7385 | (define-public python2-pyquery |
| 7386 | (package-with-python2 python-pyquery)) |
| 7387 | |
| 7388 | (define-public python-anyjson |
| 7389 | (package |
| 7390 | (name "python-anyjson") |
| 7391 | (version "0.3.3") |
| 7392 | (source |
| 7393 | (origin |
| 7394 | (method url-fetch) |
| 7395 | (uri (pypi-uri "anyjson" version)) |
| 7396 | (sha256 |
| 7397 | (base32 |
| 7398 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) |
| 7399 | (build-system python-build-system) |
| 7400 | (arguments |
| 7401 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. |
| 7402 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or |
| 7403 | ;; whatever) so this transformation needs to be done before the tests |
| 7404 | ;; can be run. Maybe we could add a build step to transform beforehand |
| 7405 | ;; but it could be annoying/difficult. |
| 7406 | ;; We can enable tests for the Python 2 version, though, and do below. |
| 7407 | #:tests? #f)) |
| 7408 | (home-page "http://bitbucket.org/runeh/anyjson/") |
| 7409 | (synopsis |
| 7410 | "Wraps best available JSON implementation in a common interface") |
| 7411 | (description |
| 7412 | "Anyjson loads whichever is the fastest JSON module installed |
| 7413 | and provides a uniform API regardless of which JSON implementation is used.") |
| 7414 | (license license:bsd-3) |
| 7415 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
| 7416 | |
| 7417 | (define-public python2-anyjson |
| 7418 | (let ((anyjson (package-with-python2 |
| 7419 | (strip-python2-variant python-anyjson)))) |
| 7420 | (package |
| 7421 | (inherit anyjson) |
| 7422 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! |
| 7423 | #:tests? #t |
| 7424 | ,@(package-arguments anyjson))) |
| 7425 | (native-inputs `(("python2-nose" ,python2-nose)))))) |
| 7426 | |
| 7427 | (define-public python-amqp |
| 7428 | (package |
| 7429 | (name "python-amqp") |
| 7430 | (version "1.4.9") |
| 7431 | (source |
| 7432 | (origin |
| 7433 | (method url-fetch) |
| 7434 | (uri (pypi-uri "amqp" version)) |
| 7435 | (sha256 |
| 7436 | (base32 |
| 7437 | "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid")))) |
| 7438 | (build-system python-build-system) |
| 7439 | (native-inputs |
| 7440 | `(("python-nose" ,python-nose) |
| 7441 | ("python-mock" ,python-mock))) |
| 7442 | (home-page "https://github.com/celery/py-amqp") |
| 7443 | (synopsis |
| 7444 | "Low-level AMQP client for Python (fork of amqplib)") |
| 7445 | (description |
| 7446 | "This is a fork of amqplib which was originally written by Barry Pederson. |
| 7447 | It is maintained by the Celery project, and used by kombu as a pure python |
| 7448 | alternative when librabbitmq is not available.") |
| 7449 | (license license:lgpl2.1+) |
| 7450 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
| 7451 | |
| 7452 | (define-public python2-amqp |
| 7453 | (let ((amqp (package-with-python2 |
| 7454 | (strip-python2-variant python-amqp)))) |
| 7455 | (package |
| 7456 | (inherit amqp) |
| 7457 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems |
| 7458 | ;; unmaintained. Weirdly, does not do this on the python 3 |
| 7459 | ;; version? |
| 7460 | #:tests? #f |
| 7461 | ,@(package-arguments amqp)))))) |
| 7462 | |
| 7463 | (define-public python-kombu |
| 7464 | (package |
| 7465 | (name "python-kombu") |
| 7466 | (version "3.0.37") |
| 7467 | (source |
| 7468 | (origin |
| 7469 | (method url-fetch) |
| 7470 | (uri (pypi-uri "kombu" version)) |
| 7471 | (sha256 |
| 7472 | (base32 |
| 7473 | "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70")))) |
| 7474 | (build-system python-build-system) |
| 7475 | (native-inputs |
| 7476 | `(("python-mock" ,python-mock) |
| 7477 | ("python-nose" ,python-nose))) |
| 7478 | (propagated-inputs |
| 7479 | `(("python-anyjson" ,python-anyjson) |
| 7480 | ("python-amqp" ,python-amqp) |
| 7481 | ("python-redis" ,python-redis))) |
| 7482 | (home-page "http://kombu.readthedocs.org") |
| 7483 | (synopsis "Message passing library for Python") |
| 7484 | (description "The aim of Kombu is to make messaging in Python as easy as |
| 7485 | possible by providing an idiomatic high-level interface for the AMQ protocol, |
| 7486 | and also provide proven and tested solutions to common messaging problems. |
| 7487 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for |
| 7488 | message orientation, queuing, routing, reliability and security, for which the |
| 7489 | RabbitMQ messaging server is the most popular implementation.") |
| 7490 | (license license:bsd-3) |
| 7491 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
| 7492 | |
| 7493 | (define-public python2-kombu |
| 7494 | (let ((kombu (package-with-python2 |
| 7495 | (strip-python2-variant python-kombu)))) |
| 7496 | (package |
| 7497 | (inherit kombu) |
| 7498 | (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2. |
| 7499 | ;; It works fine on the python3 variant. |
| 7500 | #:tests? #f |
| 7501 | ,@(package-arguments kombu))) |
| 7502 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 7503 | ,@(package-native-inputs kombu)))))) |
| 7504 | |
| 7505 | (define-public python-billiard |
| 7506 | (package |
| 7507 | (name "python-billiard") |
| 7508 | (version "3.3.0.23") |
| 7509 | (source |
| 7510 | (origin |
| 7511 | (method url-fetch) |
| 7512 | (uri (pypi-uri "billiard" version)) |
| 7513 | (sha256 |
| 7514 | (base32 |
| 7515 | "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9")))) |
| 7516 | (build-system python-build-system) |
| 7517 | (native-inputs |
| 7518 | `(("python-nose" ,python-nose))) |
| 7519 | (home-page "https://github.com/celery/billiard") |
| 7520 | (synopsis |
| 7521 | "Python multiprocessing fork with improvements and bugfixes") |
| 7522 | (description |
| 7523 | "Billiard is a fork of the Python 2.7 multiprocessing package. The |
| 7524 | multiprocessing package itself is a renamed and updated version of R Oudkerk's |
| 7525 | pyprocessing package. This standalone variant is intended to be compatible with |
| 7526 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") |
| 7527 | (license license:bsd-3) |
| 7528 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
| 7529 | |
| 7530 | (define-public python2-billiard |
| 7531 | (let ((billiard (package-with-python2 |
| 7532 | (strip-python2-variant python-billiard)))) |
| 7533 | (package |
| 7534 | (inherit billiard) |
| 7535 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 7536 | ("python2-mock" ,python2-mock) |
| 7537 | ,@(package-native-inputs billiard)))))) |
| 7538 | |
| 7539 | (define-public python-celery |
| 7540 | (package |
| 7541 | (name "python-celery") |
| 7542 | (version "3.1.24") |
| 7543 | (source |
| 7544 | (origin |
| 7545 | (method url-fetch) |
| 7546 | (uri (pypi-uri "celery" version)) |
| 7547 | (sha256 |
| 7548 | (base32 |
| 7549 | "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r")))) |
| 7550 | (build-system python-build-system) |
| 7551 | (arguments |
| 7552 | `(#:phases |
| 7553 | (modify-phases %standard-phases |
| 7554 | ;; These tests break with Python 3.5: |
| 7555 | ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295 |
| 7556 | (replace 'check |
| 7557 | (lambda _ |
| 7558 | (zero? |
| 7559 | (system* "nosetests" "--exclude=^test_safe_to_remove.*"))))))) |
| 7560 | (native-inputs |
| 7561 | `(("python-nose" ,python-nose))) |
| 7562 | (propagated-inputs |
| 7563 | `(("python-pytz" ,python-pytz) |
| 7564 | ("python-billiard" ,python-billiard) |
| 7565 | ("python-kombu" ,python-kombu))) |
| 7566 | (home-page "http://celeryproject.org") |
| 7567 | (synopsis "Distributed Task Queue") |
| 7568 | (description "Celery is an asynchronous task queue/job queue based on |
| 7569 | distributed message passing. It is focused on real-time operation, but |
| 7570 | supports scheduling as well. The execution units, called tasks, are executed |
| 7571 | concurrently on a single or more worker servers using multiprocessing, |
| 7572 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or |
| 7573 | synchronously (wait until ready).") |
| 7574 | (license license:bsd-3) |
| 7575 | (properties `((python2-variant . ,(delay python2-celery)))))) |
| 7576 | |
| 7577 | (define-public python2-celery |
| 7578 | (let ((celery (package-with-python2 |
| 7579 | (strip-python2-variant python-celery)))) |
| 7580 | (package |
| 7581 | (inherit celery) |
| 7582 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 7583 | ("python2-mock" ,python2-mock) |
| 7584 | ,@(package-native-inputs celery)))))) |
| 7585 | |
| 7586 | (define-public python-translitcodec |
| 7587 | (package |
| 7588 | (name "python-translitcodec") |
| 7589 | (version "0.4.0") |
| 7590 | (source |
| 7591 | (origin |
| 7592 | (method url-fetch) |
| 7593 | (uri (pypi-uri "translitcodec" version)) |
| 7594 | (sha256 |
| 7595 | (base32 |
| 7596 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) |
| 7597 | (build-system python-build-system) |
| 7598 | (arguments |
| 7599 | `(#:tests? #f)) ; no tests provided |
| 7600 | (home-page |
| 7601 | "https://github.com/claudep/translitcodec") |
| 7602 | (synopsis |
| 7603 | "Unicode to 8-bit charset transliteration codec") |
| 7604 | (description |
| 7605 | "This package contains codecs for transliterating ISO 10646 texts into |
| 7606 | best-effort representations using smaller coded character sets (ASCII, |
| 7607 | ISO 8859, etc.).") |
| 7608 | (license license:expat))) |
| 7609 | |
| 7610 | (define-public python2-translitcodec |
| 7611 | (package-with-python2 python-translitcodec)) |
| 7612 | |
| 7613 | (define-public python-editor |
| 7614 | (package |
| 7615 | (name "python-editor") |
| 7616 | (version "0.5") |
| 7617 | (source |
| 7618 | (origin |
| 7619 | (method url-fetch) |
| 7620 | (uri (pypi-uri "python-editor" version)) |
| 7621 | (sha256 |
| 7622 | (base32 |
| 7623 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) |
| 7624 | (build-system python-build-system) |
| 7625 | (home-page |
| 7626 | "https://github.com/fmoo/python-editor") |
| 7627 | (synopsis |
| 7628 | "Programmatically open an editor, capture the result") |
| 7629 | (description |
| 7630 | "python-editor is a library that provides the editor module for |
| 7631 | programmatically interfacing with your system's $EDITOR.") |
| 7632 | (license license:asl2.0))) |
| 7633 | |
| 7634 | (define-public python2-editor |
| 7635 | (package-with-python2 python-editor)) |
| 7636 | |
| 7637 | (define-public python-sphinxcontrib-programoutput |
| 7638 | (package |
| 7639 | (name "python-sphinxcontrib-programoutput") |
| 7640 | (version "0.10") |
| 7641 | (source (origin |
| 7642 | (method url-fetch) |
| 7643 | (uri (pypi-uri "sphinxcontrib-programoutput" version)) |
| 7644 | (sha256 |
| 7645 | (base32 |
| 7646 | "153hhnlbx4688zj9wd64819ps5znc2jlyp5crkgzvn5hxgy99vpx")))) |
| 7647 | (build-system python-build-system) |
| 7648 | (arguments |
| 7649 | ;; FIXME: Many tests are failing and the upstream is gone. |
| 7650 | '(#:tests? #f)) |
| 7651 | (propagated-inputs |
| 7652 | `(("python-sphinx" ,python-sphinx))) |
| 7653 | (synopsis "Sphinx extension to include program output") |
| 7654 | (description "A Sphinx extension to literally insert the output of arbitrary |
| 7655 | commands into documents, helping you to keep your command examples up to date.") |
| 7656 | (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput") |
| 7657 | (license license:bsd-2))) |
| 7658 | |
| 7659 | (define-public python2-sphinxcontrib-programoutput |
| 7660 | (package-with-python2 python-sphinxcontrib-programoutput)) |
| 7661 | |
| 7662 | (define-public python-sphinx-repoze-autointerface |
| 7663 | (package |
| 7664 | (name "python-sphinx-repoze-autointerface") |
| 7665 | (version "0.8") |
| 7666 | (source (origin |
| 7667 | (method url-fetch) |
| 7668 | (uri (pypi-uri "repoze.sphinx.autointerface" version)) |
| 7669 | (sha256 |
| 7670 | (base32 |
| 7671 | "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f")))) |
| 7672 | (build-system python-build-system) |
| 7673 | (arguments '(#:tests? #f)) ; No tests. |
| 7674 | (propagated-inputs |
| 7675 | `(("python-sphinx" ,python-sphinx) |
| 7676 | ("python-zope-interface" ,python-zope-interface))) |
| 7677 | (synopsis "Auto-generate Sphinx API docs from Zope interfaces") |
| 7678 | (description "This package defines an extension for the Sphinx documentation |
| 7679 | system. The extension allows generation of API documentation by |
| 7680 | introspection of @code{zope.interface} instances in code.") |
| 7681 | (home-page "https://github.com/repoze/repoze.sphinx.autointerface") |
| 7682 | (license license:repoze))) |
| 7683 | |
| 7684 | (define-public python2-sphinx-repoze-autointerface |
| 7685 | (package-with-python2 python-sphinx-repoze-autointerface)) |
| 7686 | |
| 7687 | (define-public python-vobject |
| 7688 | (package |
| 7689 | (name "python-vobject") |
| 7690 | (version "0.9.5") |
| 7691 | (source (origin |
| 7692 | (method url-fetch) |
| 7693 | (uri (pypi-uri "vobject" version)) |
| 7694 | (sha256 |
| 7695 | (base32 |
| 7696 | "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg")))) |
| 7697 | (build-system python-build-system) |
| 7698 | (arguments |
| 7699 | '(;; The test suite relies on some non-portable Windows interfaces. |
| 7700 | #:tests? #f)) |
| 7701 | (propagated-inputs |
| 7702 | `(("python-dateutil" ,python-dateutil) |
| 7703 | ("python-pyicu" ,python-pyicu))) |
| 7704 | (synopsis "Parse and generate vCard and vCalendar files") |
| 7705 | (description "Vobject is intended to be a full featured Python package for |
| 7706 | parsing and generating vCard and vCalendar files. Currently, iCalendar files |
| 7707 | are supported and well tested. vCard 3.0 files are supported, and all data |
| 7708 | should be imported, but only a few components are understood in a sophisticated |
| 7709 | way.") |
| 7710 | (home-page "http://eventable.github.io/vobject/") |
| 7711 | (license license:asl2.0))) |
| 7712 | |
| 7713 | (define-public python2-vobject |
| 7714 | (package-with-python2 python-vobject)) |
| 7715 | |
| 7716 | (define-public python-munkres |
| 7717 | (package |
| 7718 | (name "python-munkres") |
| 7719 | (version "1.0.8") |
| 7720 | (source (origin |
| 7721 | (method url-fetch) |
| 7722 | (uri (pypi-uri "munkres" version)) |
| 7723 | (sha256 |
| 7724 | (base32 |
| 7725 | "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq")))) |
| 7726 | (build-system python-build-system) |
| 7727 | (arguments |
| 7728 | '(#:tests? #f)) ; no test suite |
| 7729 | (home-page "http://software.clapper.org/munkres/") |
| 7730 | (synopsis "Implementation of the Munkres algorithm") |
| 7731 | (description "The Munkres module provides an implementation of the Munkres |
| 7732 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), |
| 7733 | useful for solving the Assignment Problem.") |
| 7734 | (license license:bsd-3))) |
| 7735 | |
| 7736 | (define-public python2-munkres |
| 7737 | (package-with-python2 python-munkres)) |
| 7738 | |
| 7739 | (define-public python-whoosh |
| 7740 | (package |
| 7741 | (name "python-whoosh") |
| 7742 | (version "2.7.4") |
| 7743 | (source |
| 7744 | (origin |
| 7745 | (method url-fetch) |
| 7746 | (uri (pypi-uri "Whoosh" version)) |
| 7747 | (sha256 |
| 7748 | (base32 |
| 7749 | "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw")))) |
| 7750 | (build-system python-build-system) |
| 7751 | (native-inputs |
| 7752 | `(("python-pytest" ,python-pytest))) |
| 7753 | (home-page "http://bitbucket.org/mchaput/whoosh") |
| 7754 | (synopsis "Full text indexing, search, and spell checking library") |
| 7755 | (description |
| 7756 | "Whoosh is a fast, pure-Python full text indexing, search, and spell |
| 7757 | checking library.") |
| 7758 | (license license:bsd-2))) |
| 7759 | |
| 7760 | (define-public python2-whoosh |
| 7761 | (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh)))) |
| 7762 | (package (inherit whoosh) |
| 7763 | (propagated-inputs |
| 7764 | `(("python2-backport-ssl-match-hostname" |
| 7765 | ,python2-backport-ssl-match-hostname) |
| 7766 | ,@(package-propagated-inputs whoosh)))))) |
| 7767 | |
| 7768 | (define-public python-pathlib |
| 7769 | (package |
| 7770 | (name "python-pathlib") |
| 7771 | (version "1.0.1") |
| 7772 | (source (origin |
| 7773 | (method url-fetch) |
| 7774 | (uri (pypi-uri "pathlib" version)) |
| 7775 | (sha256 |
| 7776 | (base32 |
| 7777 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) |
| 7778 | (build-system python-build-system) |
| 7779 | ;; The tests depend on the internal "test" module, which does not provide |
| 7780 | ;; a stable interface. |
| 7781 | (arguments `(#:tests? #f)) |
| 7782 | (home-page "https://pathlib.readthedocs.org/") |
| 7783 | (synopsis "Object-oriented file system paths") |
| 7784 | (description "Pathlib offers a set of classes to handle file system paths. |
| 7785 | It offers the following advantages over using string objects: |
| 7786 | |
| 7787 | @enumerate |
| 7788 | @item No more cumbersome use of os and os.path functions. Everything can |
| 7789 | be done easily through operators, attribute accesses, and method calls. |
| 7790 | @item Embodies the semantics of different path types. For example, |
| 7791 | comparing Windows paths ignores casing. |
| 7792 | @item Well-defined semantics, eliminating any inconsistencies or |
| 7793 | ambiguities (forward vs. backward slashes, etc.). |
| 7794 | @end enumerate |
| 7795 | |
| 7796 | Note: In Python 3.4, pathlib is now part of the standard library. For other |
| 7797 | Python versions please consider python-pathlib2 instead, which tracks the |
| 7798 | standard library module. This module (python-pathlib) isn't maintained |
| 7799 | anymore.") |
| 7800 | (license license:expat))) |
| 7801 | |
| 7802 | (define-public python2-pathlib |
| 7803 | (package-with-python2 python-pathlib)) |
| 7804 | |
| 7805 | (define-public python2-pathlib2 |
| 7806 | (package |
| 7807 | (name "python2-pathlib2") |
| 7808 | (version "2.1.0") |
| 7809 | (source (origin |
| 7810 | (method url-fetch) |
| 7811 | (uri (pypi-uri "pathlib2" version)) |
| 7812 | (sha256 |
| 7813 | (base32 |
| 7814 | "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy")))) |
| 7815 | (build-system python-build-system) |
| 7816 | ;; We only need the the Python 2 variant, since for Python 3 our minimum |
| 7817 | ;; version is 3.4 which already includes this package as part of the |
| 7818 | ;; standard library. |
| 7819 | (arguments |
| 7820 | `(#:python ,python-2)) |
| 7821 | (native-inputs |
| 7822 | `(("python2-six" ,python2-six))) |
| 7823 | (home-page "http://pypi.python.org/pypi/pathlib2/") |
| 7824 | (synopsis "Object-oriented file system paths - backport of standard |
| 7825 | pathlib module") |
| 7826 | (description "The goal of pathlib2 is to provide a backport of standard |
| 7827 | pathlib module which tracks the standard library module, so all the newest |
| 7828 | features of the standard pathlib can be used also on older Python versions. |
| 7829 | |
| 7830 | Pathlib offers a set of classes to handle file system paths. It offers the |
| 7831 | following advantages over using string objects: |
| 7832 | |
| 7833 | @enumerate |
| 7834 | @item No more cumbersome use of os and os.path functions. Everything can |
| 7835 | be done easily through operators, attribute accesses, and method calls. |
| 7836 | @item Embodies the semantics of different path types. For example, |
| 7837 | comparing Windows paths ignores casing. |
| 7838 | @item Well-defined semantics, eliminating any inconsistencies or |
| 7839 | ambiguities (forward vs. backward slashes, etc.). |
| 7840 | @end enumerate") |
| 7841 | (license license:expat))) |
| 7842 | |
| 7843 | (define-public python-jellyfish |
| 7844 | (package |
| 7845 | (name "python-jellyfish") |
| 7846 | (version "0.5.6") |
| 7847 | (source (origin |
| 7848 | (method url-fetch) |
| 7849 | (uri (pypi-uri "jellyfish" version)) |
| 7850 | (sha256 |
| 7851 | (base32 |
| 7852 | "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8")))) |
| 7853 | (build-system python-build-system) |
| 7854 | (native-inputs |
| 7855 | `(("python-pytest" ,python-pytest))) |
| 7856 | (home-page "https://github.com/jamesturk/jellyfish") |
| 7857 | (synopsis "Approximate and phonetic matching of strings") |
| 7858 | (description "Jellyfish uses a variety of string comparison and phonetic |
| 7859 | encoding algorithms to do fuzzy string matching.") |
| 7860 | (license license:bsd-2) |
| 7861 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
| 7862 | |
| 7863 | (define-public python2-jellyfish |
| 7864 | (let ((jellyfish (package-with-python2 |
| 7865 | (strip-python2-variant python-jellyfish)))) |
| 7866 | (package (inherit jellyfish) |
| 7867 | (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv) |
| 7868 | ,@(package-native-inputs jellyfish)))))) |
| 7869 | |
| 7870 | (define-public python2-unicodecsv |
| 7871 | (package |
| 7872 | (name "python2-unicodecsv") |
| 7873 | (version "0.14.1") |
| 7874 | (source (origin |
| 7875 | (method url-fetch) |
| 7876 | ;; The test suite is not included in the PyPi release. |
| 7877 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 |
| 7878 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" |
| 7879 | "archive/" version ".tar.gz")) |
| 7880 | (file-name (string-append name "-" version ".tar.gz")) |
| 7881 | (sha256 |
| 7882 | (base32 |
| 7883 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) |
| 7884 | (build-system python-build-system) |
| 7885 | (arguments |
| 7886 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. |
| 7887 | #:python ,python-2)) |
| 7888 | (native-inputs |
| 7889 | `(("python2-unittest2" ,python2-unittest2))) |
| 7890 | (home-page "https://github.com/jdunck/python-unicodecsv") |
| 7891 | (synopsis "Unicode CSV module for Python 2") |
| 7892 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV |
| 7893 | module, adding support for Unicode strings.") |
| 7894 | (license license:bsd-2))) |
| 7895 | |
| 7896 | (define-public python-rarfile |
| 7897 | (package |
| 7898 | (name "python-rarfile") |
| 7899 | (version "2.8") |
| 7900 | (source (origin |
| 7901 | (method url-fetch) |
| 7902 | (uri (pypi-uri "rarfile" version)) |
| 7903 | (sha256 |
| 7904 | (base32 |
| 7905 | "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra")))) |
| 7906 | (build-system python-build-system) |
| 7907 | (arguments |
| 7908 | '(#:phases |
| 7909 | (modify-phases %standard-phases |
| 7910 | (replace 'check |
| 7911 | ;; Many tests fail, but the installation proceeds. |
| 7912 | (lambda _ (zero? (system* "make" "-C" "test" "test"))))))) |
| 7913 | (native-inputs |
| 7914 | `(("which" ,which))) ; required for tests |
| 7915 | (propagated-inputs |
| 7916 | `(("libarchive" ,libarchive))) |
| 7917 | (home-page "https://github.com/markokr/rarfile") |
| 7918 | (synopsis "RAR archive reader for Python") |
| 7919 | (description "This is Python module for RAR archive reading. The interface |
| 7920 | is made as zipfile like as possible.") |
| 7921 | (license license:isc))) |
| 7922 | |
| 7923 | (define-public python2-rarfile |
| 7924 | (package-with-python2 python-rarfile)) |
| 7925 | |
| 7926 | (define-public python-magic |
| 7927 | (package |
| 7928 | (name "python-magic") |
| 7929 | (version "0.4.3") |
| 7930 | (source |
| 7931 | (origin |
| 7932 | (method url-fetch) |
| 7933 | (uri (string-append "https://github.com/ahupp/python-magic/archive/" |
| 7934 | version ".tar.gz")) |
| 7935 | (sha256 |
| 7936 | (base32 |
| 7937 | "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) |
| 7938 | (file-name (string-append name "-" version "-checkout")))) |
| 7939 | (build-system python-build-system) |
| 7940 | (arguments |
| 7941 | ;; The tests are unreliable, so don't run them. The tests fail |
| 7942 | ;; under Python3 because they were written for Python2 and |
| 7943 | ;; contain import statements that do not work in Python3. One of |
| 7944 | ;; the tests fails under Python2 because its assertions are |
| 7945 | ;; overly stringent; it relies on comparing output strings which |
| 7946 | ;; are brittle and can change depending on the version of |
| 7947 | ;; libmagic being used and the system on which the test is |
| 7948 | ;; running. In my case, under GuixSD 0.10.0, only one test |
| 7949 | ;; failed, and it seems to have failed only because the version |
| 7950 | ;; of libmagic that is packaged in Guix outputs a slightly |
| 7951 | ;; different (but not wrong) string than the one that the test |
| 7952 | ;; expected. |
| 7953 | '(#:tests? #f |
| 7954 | #:phases (modify-phases %standard-phases |
| 7955 | ;; Replace a specific method call with a hard-coded |
| 7956 | ;; path to the necessary libmagic.so file in the |
| 7957 | ;; store. If we don't do this, then the method call |
| 7958 | ;; will fail to find the libmagic.so file, which in |
| 7959 | ;; turn will cause any application using |
| 7960 | ;; python-magic to fail. |
| 7961 | (add-before 'build 'hard-code-path-to-libmagic |
| 7962 | (lambda* (#:key inputs #:allow-other-keys) |
| 7963 | (let ((file (assoc-ref inputs "file"))) |
| 7964 | (substitute* "magic.py" |
| 7965 | (("ctypes.util.find_library\\('magic'\\)") |
| 7966 | (string-append "'" file "/lib/libmagic.so'"))) |
| 7967 | #t))) |
| 7968 | (add-before 'install 'disable-egg-compression |
| 7969 | (lambda _ |
| 7970 | (let ((port (open-file "setup.cfg" "a"))) |
| 7971 | (display "\n[easy_install]\nzip_ok = 0\n" |
| 7972 | port) |
| 7973 | (close-port port) |
| 7974 | #t)))))) |
| 7975 | (inputs |
| 7976 | ;; python-magic needs to be able to find libmagic.so. |
| 7977 | `(("file" ,file))) |
| 7978 | (home-page "https://github.com/ahupp/python-magic") |
| 7979 | (synopsis "File type identification using libmagic") |
| 7980 | (description |
| 7981 | "This module uses ctypes to access the libmagic file type |
| 7982 | identification library. It makes use of the local magic database and |
| 7983 | supports both textual and MIME-type output. Note that this module and |
| 7984 | the python-file module both provide a \"magic.py\" file; these two |
| 7985 | modules, which are different and were developed separately, both serve |
| 7986 | the same purpose: to provide Python bindings for libmagic.") |
| 7987 | (license license:expat))) |
| 7988 | |
| 7989 | (define-public python2-magic |
| 7990 | (package-with-python2 python-magic)) |
| 7991 | |
| 7992 | (define-public python2-s3cmd |
| 7993 | (package |
| 7994 | (name "python2-s3cmd") |
| 7995 | (version "1.6.1") |
| 7996 | (source |
| 7997 | (origin |
| 7998 | (method url-fetch) |
| 7999 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
| 8000 | "s3cmd-" version ".tar.gz")) |
| 8001 | (sha256 |
| 8002 | (base32 |
| 8003 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) |
| 8004 | (build-system python-build-system) |
| 8005 | (arguments |
| 8006 | ;; s3cmd is written for python2 only and contains no tests. |
| 8007 | `(#:python ,python-2 |
| 8008 | #:tests? #f)) |
| 8009 | (propagated-inputs |
| 8010 | `(("python2-dateutil" ,python2-dateutil) |
| 8011 | ;; The python-file package also provides a magic.py module. |
| 8012 | ;; This is an unfortunate state of affairs; however, s3cmd |
| 8013 | ;; fails to install if it cannot find specifically the |
| 8014 | ;; python-magic package. Thus we include it, instead of using |
| 8015 | ;; python-file. Ironically, s3cmd sometimes works better |
| 8016 | ;; without libmagic bindings at all: |
| 8017 | ;; https://github.com/s3tools/s3cmd/issues/198 |
| 8018 | ("python2-magic" ,python2-magic))) |
| 8019 | (home-page "http://s3tools.org/s3cmd") |
| 8020 | (synopsis "Command line tool for S3-compatible storage services") |
| 8021 | (description |
| 8022 | "S3cmd is a command line tool for uploading, retrieving and managing data |
| 8023 | in storage services that are compatible with the Amazon Simple Storage |
| 8024 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, |
| 8025 | GnuPG encryption, and more. It also supports management of Amazon's |
| 8026 | CloudFront content delivery network.") |
| 8027 | (license license:gpl2+))) |
| 8028 | |
| 8029 | (define-public python-pkgconfig |
| 8030 | (package |
| 8031 | (name "python-pkgconfig") |
| 8032 | (version "1.1.0") |
| 8033 | (source |
| 8034 | (origin |
| 8035 | (method url-fetch) |
| 8036 | (uri (pypi-uri "pkgconfig" version)) |
| 8037 | (sha256 |
| 8038 | (base32 |
| 8039 | "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) |
| 8040 | (build-system python-build-system) |
| 8041 | (native-inputs |
| 8042 | `(("python-nose" ,python-nose))) |
| 8043 | (inputs |
| 8044 | `(("pkg-config" ,pkg-config))) |
| 8045 | (arguments |
| 8046 | `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3, |
| 8047 | ;; and on Python 2 they need the dl module deprecated since Python 2.6. |
| 8048 | #:tests? #f |
| 8049 | ;; Hard-code the path to pkg-config. |
| 8050 | #:phases |
| 8051 | (modify-phases %standard-phases |
| 8052 | (add-before |
| 8053 | 'build 'patch |
| 8054 | (lambda _ |
| 8055 | (substitute* "pkgconfig/pkgconfig.py" |
| 8056 | (("cmd = 'pkg-config") |
| 8057 | (string-append "cmd = '" (which "pkg-config")))) |
| 8058 | #t))))) |
| 8059 | (home-page "https://github.com/matze/pkgconfig") |
| 8060 | (synopsis "Python interface for pkg-config") |
| 8061 | (description "This module provides a Python interface to pkg-config. It |
| 8062 | can be used to find all pkg-config packages, check if a package exists, |
| 8063 | check if a package meets certain version requirements, query CFLAGS and |
| 8064 | LDFLAGS and parse the output to build extensions with setup.py.") |
| 8065 | (license license:expat))) |
| 8066 | |
| 8067 | (define-public python2-pkgconfig |
| 8068 | (package-with-python2 python-pkgconfig)) |
| 8069 | |
| 8070 | (define-public python-bz2file |
| 8071 | (package |
| 8072 | (name "python-bz2file") |
| 8073 | (version "0.98") |
| 8074 | (source |
| 8075 | (origin |
| 8076 | (method url-fetch) |
| 8077 | (uri (pypi-uri "bz2file" version)) |
| 8078 | (sha256 |
| 8079 | (base32 |
| 8080 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) |
| 8081 | (build-system python-build-system) |
| 8082 | (arguments |
| 8083 | `(#:tests? #f)) ; Tests use deprecated python modules. |
| 8084 | (home-page "https://github.com/nvawda/bz2file") |
| 8085 | (synopsis "Read and write bzip2-compressed files") |
| 8086 | (description |
| 8087 | "Bz2file is a Python library for reading and writing bzip2-compressed |
| 8088 | files. It contains a drop-in replacement for the I/O interface in the |
| 8089 | standard library's @code{bz2} module, including features from the latest |
| 8090 | development version of CPython that are not available in older releases.") |
| 8091 | (license license:asl2.0) |
| 8092 | (properties `((python2-variant . ,(delay python2-bz2file)))))) |
| 8093 | |
| 8094 | (define-public python2-bz2file |
| 8095 | (let ((base (package-with-python2 |
| 8096 | (strip-python2-variant python-bz2file)))) |
| 8097 | (package |
| 8098 | (inherit base) |
| 8099 | (arguments |
| 8100 | `(#:python ,python-2 |
| 8101 | #:phases |
| 8102 | (modify-phases %standard-phases |
| 8103 | ;; 'python setup.py test' does not work as of 0.98. |
| 8104 | ;; There is only the one test file, so we run it directly. |
| 8105 | (replace 'check |
| 8106 | (lambda _ (zero? (system* "python" |
| 8107 | "test_bz2file.py")))))))))) |
| 8108 | |
| 8109 | (define-public python-future |
| 8110 | (package |
| 8111 | (name "python-future") |
| 8112 | (version "0.16.0") |
| 8113 | (source |
| 8114 | (origin |
| 8115 | (method url-fetch) |
| 8116 | (uri (pypi-uri "future" version)) |
| 8117 | (sha256 |
| 8118 | (base32 |
| 8119 | "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773")))) |
| 8120 | (build-system python-build-system) |
| 8121 | ;; Many tests connect to the network or are otherwise flawed. |
| 8122 | ;; https://github.com/PythonCharmers/python-future/issues/210 |
| 8123 | (arguments |
| 8124 | `(#:tests? #f)) |
| 8125 | (home-page "http://python-future.org") |
| 8126 | (synopsis "Single-source support for Python 3 and 2") |
| 8127 | (description |
| 8128 | "@code{python-future} is the missing compatibility layer between Python 2 and |
| 8129 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase |
| 8130 | to support both Python 2 and Python 3 with minimal overhead.") |
| 8131 | (license license:expat))) |
| 8132 | |
| 8133 | (define-public python2-future |
| 8134 | (package-with-python2 python-future)) |
| 8135 | |
| 8136 | (define-public python-cysignals |
| 8137 | (package |
| 8138 | (name "python-cysignals") |
| 8139 | (version "1.1.0") |
| 8140 | (source |
| 8141 | (origin |
| 8142 | (method url-fetch) |
| 8143 | (uri (pypi-uri "cysignals" version ".tar.bz2")) |
| 8144 | (sha256 |
| 8145 | (base32 |
| 8146 | "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6")))) |
| 8147 | (build-system python-build-system) |
| 8148 | (native-inputs |
| 8149 | `(("python-cython" ,python-cython) |
| 8150 | ("python-sphinx" ,python-sphinx))) |
| 8151 | (inputs |
| 8152 | `(("pari-gp" ,pari-gp))) |
| 8153 | (arguments |
| 8154 | `(#:modules ((guix build python-build-system) |
| 8155 | ((guix build gnu-build-system) #:prefix gnu:) |
| 8156 | (guix build utils)) |
| 8157 | ;; FIXME: Tests are executed after installation and currently fail |
| 8158 | ;; when not installing into standard locations; the author is working |
| 8159 | ;; on a fix. |
| 8160 | #:tests? #f |
| 8161 | #:phases |
| 8162 | (modify-phases %standard-phases |
| 8163 | (add-before |
| 8164 | 'build 'configure |
| 8165 | (assoc-ref gnu:%standard-phases 'configure))))) |
| 8166 | (home-page |
| 8167 | "https://github.com/sagemath/cysignals") |
| 8168 | (synopsis |
| 8169 | "Handling of interrupts and signals for Cython") |
| 8170 | (description |
| 8171 | "The cysignals package provides mechanisms to handle interrupts (and |
| 8172 | other signals and errors) in Cython code, using two related approaches, |
| 8173 | for mixed Cython/Python code or external C libraries and pure Cython code, |
| 8174 | respectively.") |
| 8175 | (license license:lgpl3+))) |
| 8176 | |
| 8177 | (define-public python2-cysignals |
| 8178 | (package-with-python2 python-cysignals)) |
| 8179 | |
| 8180 | (define-public python2-shedskin |
| 8181 | (package |
| 8182 | (name "python2-shedskin") |
| 8183 | (version "0.9.4") |
| 8184 | (source |
| 8185 | (origin |
| 8186 | (method url-fetch) |
| 8187 | (uri (string-append "https://github.com/shedskin/shedskin/" |
| 8188 | "releases/download/v" version |
| 8189 | "/shedskin-" version ".tgz")) |
| 8190 | (sha256 |
| 8191 | (base32 |
| 8192 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) |
| 8193 | (build-system python-build-system) |
| 8194 | (arguments |
| 8195 | `(#:python ,python-2 |
| 8196 | #:phases (modify-phases %standard-phases |
| 8197 | (add-after 'unpack 'fix-resulting-include-libs |
| 8198 | (lambda* (#:key inputs #:allow-other-keys) |
| 8199 | (let ((libgc (assoc-ref inputs "libgc")) |
| 8200 | (pcre (assoc-ref inputs "pcre"))) |
| 8201 | (substitute* "shedskin/makefile.py" |
| 8202 | (("variable == 'CCFLAGS':[ ]*") |
| 8203 | (string-append "variable == 'CCFLAGS':\n" |
| 8204 | " line += ' -I " pcre "/include" |
| 8205 | " -I " libgc "/include'")) |
| 8206 | (("variable == 'LFLAGS':[ ]*") |
| 8207 | (string-append "variable == 'LFLAGS':\n" |
| 8208 | " line += ' -L" pcre "/lib" |
| 8209 | " -L " libgc "/lib'"))) |
| 8210 | #t)))))) |
| 8211 | (inputs `(("pcre" ,pcre) |
| 8212 | ("libgc" ,libgc))) |
| 8213 | (home-page "https://shedskin.github.io/") |
| 8214 | (synopsis "Experimental Python-2 to C++ Compiler") |
| 8215 | (description (string-append "This is an experimental compiler for a subset of |
| 8216 | Python. It generates C++ code and a Makefile.")) |
| 8217 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
| 8218 | |
| 8219 | (define-public python2-rope |
| 8220 | (package |
| 8221 | (name "python2-rope") |
| 8222 | (version "0.10.3") |
| 8223 | (source |
| 8224 | (origin |
| 8225 | (method url-fetch) |
| 8226 | (uri (pypi-uri "rope" version)) |
| 8227 | (sha256 |
| 8228 | (base32 |
| 8229 | "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) |
| 8230 | (arguments |
| 8231 | ;; Rope is currently python-2 only. |
| 8232 | ;; https://github.com/python-rope/rope/issues/57 |
| 8233 | `(#:python ,python-2)) |
| 8234 | (build-system python-build-system) |
| 8235 | (native-inputs |
| 8236 | `(("python2-unittest2" ,python2-unittest2))) |
| 8237 | (home-page "https://github.com/python-rope/rope") |
| 8238 | (synopsis "Refactoring library for Python") |
| 8239 | (description "Rope is a refactoring library for Python. It facilitates |
| 8240 | the renaming, moving and extracting of attributes, functions, modules, fields |
| 8241 | and parameters in Python 2 source code. These refactorings can also be applied |
| 8242 | to occurrences in strings and comments.") |
| 8243 | (license license:gpl2))) |
| 8244 | |
| 8245 | (define-public python-py3status |
| 8246 | (package |
| 8247 | (name "python-py3status") |
| 8248 | (version "3.1") |
| 8249 | (source |
| 8250 | (origin |
| 8251 | (method url-fetch) |
| 8252 | (uri (pypi-uri "py3status" version)) |
| 8253 | (sha256 |
| 8254 | (base32 |
| 8255 | "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) |
| 8256 | (build-system python-build-system) |
| 8257 | (inputs |
| 8258 | `(("file" ,file))) |
| 8259 | (arguments |
| 8260 | '(#:phases |
| 8261 | (modify-phases %standard-phases |
| 8262 | ;; 'file' is used for detection of configuration file encoding |
| 8263 | ;; let's make link the dependency to particular input |
| 8264 | (add-before 'build 'patch-file-path |
| 8265 | (lambda* (#:key inputs #:allow-other-keys) |
| 8266 | (let ((file-path (assoc-ref inputs "file"))) |
| 8267 | (substitute* "py3status/parse_config.py" |
| 8268 | (("check_output\\(\\['file'") |
| 8269 | (string-append "check_output(['" file-path "/bin/file'"))) |
| 8270 | #t)))) |
| 8271 | #:tests? #f)) ; TODO: Requires many libraries not in Guix. |
| 8272 | (home-page "https://github.com/ultrabug/py3status") |
| 8273 | (synopsis "Extensible i3status wrapper written in Python") |
| 8274 | (description "py3status is an i3status wrapper which extends i3status |
| 8275 | functionality in a modular way, allowing you to extend your panel with your |
| 8276 | own code, responding to click events and updating clock every second.") |
| 8277 | (license license:bsd-3))) |
| 8278 | |
| 8279 | (define-public python-tblib |
| 8280 | (package |
| 8281 | (name "python-tblib") |
| 8282 | (version "1.3.0") |
| 8283 | (source (origin |
| 8284 | (method url-fetch) |
| 8285 | (uri (pypi-uri "tblib" version)) |
| 8286 | (sha256 (base32 |
| 8287 | "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi")))) |
| 8288 | (build-system python-build-system) |
| 8289 | (arguments |
| 8290 | `(#:phases |
| 8291 | (modify-phases %standard-phases |
| 8292 | (replace 'check |
| 8293 | (lambda _ |
| 8294 | ;; Upstream runs tests after installation and the package itself |
| 8295 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be |
| 8296 | ;; found. |
| 8297 | (setenv "PYTHONPATH" |
| 8298 | (string-append (getcwd) "/build/lib:" |
| 8299 | (getenv "PYTHONPATH"))) |
| 8300 | (zero? (system* "py.test" "-vv" "tests" "README.rst"))))))) |
| 8301 | (native-inputs |
| 8302 | `(("python-pytest" ,python-pytest) |
| 8303 | ("python-six" ,python-six))) |
| 8304 | (home-page "https://github.com/ionelmc/python-tblib") |
| 8305 | (synopsis "Traceback serialization library") |
| 8306 | (description |
| 8307 | "Traceback serialization allows you to: |
| 8308 | |
| 8309 | @enumerate |
| 8310 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in |
| 8311 | different processes. This allows better error handling when running code over |
| 8312 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). |
| 8313 | |
| 8314 | @item Parse traceback strings and raise with the parsed tracebacks. |
| 8315 | @end enumerate\n") |
| 8316 | (license license:bsd-3))) |
| 8317 | |
| 8318 | (define-public python2-tblib |
| 8319 | (package-with-python2 python-tblib)) |
| 8320 | |
| 8321 | (define-public python-greenlet |
| 8322 | (package |
| 8323 | (name "python-greenlet") |
| 8324 | (version "0.4.11") |
| 8325 | (source (origin |
| 8326 | (method url-fetch) |
| 8327 | (uri (pypi-uri "greenlet" version)) |
| 8328 | (sha256 |
| 8329 | (base32 |
| 8330 | "1xhik26j4f3kc4qw9xmj0c567rb5h1zryb4ijwqnqwwjvfhbv59h")))) |
| 8331 | (build-system python-build-system) |
| 8332 | (home-page "https://greenlet.readthedocs.io/") |
| 8333 | (synopsis "Lightweight in-process concurrent programming") |
| 8334 | (description |
| 8335 | "Greenlet package is a spin-off of Stackless, a version of CPython |
| 8336 | that supports micro-threads called \"tasklets\". Tasklets run |
| 8337 | pseudo-concurrently (typically in a single or a few OS-level threads) and |
| 8338 | are synchronized with data exchanges on \"channels\".") |
| 8339 | (license (list license:psfl license:expat)))) |
| 8340 | |
| 8341 | (define-public python2-greenlet |
| 8342 | (package-with-python2 python-greenlet)) |
| 8343 | |
| 8344 | (define-public python-gevent |
| 8345 | (package |
| 8346 | (name "python-gevent") |
| 8347 | (version "1.1.1") |
| 8348 | (source (origin |
| 8349 | (method url-fetch) |
| 8350 | (uri (pypi-uri "gevent" version)) |
| 8351 | (sha256 |
| 8352 | (base32 |
| 8353 | "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf")) |
| 8354 | (modules '((guix build utils))) |
| 8355 | (snippet |
| 8356 | '(begin |
| 8357 | ;; unbunding libev and c-ares |
| 8358 | (for-each delete-file-recursively '("libev" "c-ares")) |
| 8359 | ;; fixing testsuite |
| 8360 | (call-with-output-file "greentest/__init__.py" noop) |
| 8361 | (substitute* "greentest/testrunner.py" |
| 8362 | (("import util") "from . import util") |
| 8363 | (("from util import log") "from .util import log")))))) |
| 8364 | (build-system python-build-system) |
| 8365 | (propagated-inputs |
| 8366 | `(("python-greenlet" ,python-greenlet))) |
| 8367 | (native-inputs |
| 8368 | `(("python-six" ,python-six))) |
| 8369 | (inputs |
| 8370 | `(("c-ares" ,c-ares) |
| 8371 | ("libev" ,libev))) |
| 8372 | (home-page "http://www.gevent.org/") |
| 8373 | (synopsis "Coroutine-based network library") |
| 8374 | (description |
| 8375 | "gevent is a coroutine-based Python networking library that uses greenlet |
| 8376 | to provide a high-level synchronous API on top of the libev event loop.") |
| 8377 | (license license:expat))) |
| 8378 | |
| 8379 | (define-public python2-gevent |
| 8380 | (package-with-python2 python-gevent)) |
| 8381 | |
| 8382 | (define-public python-fastimport |
| 8383 | (package |
| 8384 | (name "python-fastimport") |
| 8385 | (version "0.9.6") |
| 8386 | (source |
| 8387 | (origin |
| 8388 | (method url-fetch) |
| 8389 | (uri (pypi-uri "fastimport" version)) |
| 8390 | (sha256 |
| 8391 | (base32 "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43")))) |
| 8392 | (build-system python-build-system) |
| 8393 | (home-page "https://github.com/jelmer/python-fastimport") |
| 8394 | (synopsis "VCS fastimport parser and generator in Python") |
| 8395 | (description "This package provides a parser for and generator of the Git |
| 8396 | @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport} |
| 8397 | format.") |
| 8398 | (license license:gpl2+))) |
| 8399 | |
| 8400 | (define-public python2-fastimport |
| 8401 | (package-with-python2 python-fastimport)) |
| 8402 | |
| 8403 | (define-public python-twisted |
| 8404 | (package |
| 8405 | (name "python-twisted") |
| 8406 | (version "17.1.0") |
| 8407 | (source (origin |
| 8408 | (method url-fetch) |
| 8409 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
| 8410 | (sha256 |
| 8411 | (base32 |
| 8412 | "1p245mg15hkxp7hy5cyq2fgvlgjkb4cg0gwkwd148nzy1bbi3wnv")))) |
| 8413 | (build-system python-build-system) |
| 8414 | (arguments |
| 8415 | '(#:tests? #f)) ; FIXME: Some tests are failing. |
| 8416 | ;; #:phases |
| 8417 | ;; (modify-phases %standard-phases |
| 8418 | ;; (replace 'check |
| 8419 | ;; (lambda _ |
| 8420 | ;; (zero? (system* "./bin/trial" "twisted"))))) |
| 8421 | (propagated-inputs |
| 8422 | `(("python-zope-interface" ,python-zope-interface) |
| 8423 | ("python-incremental" ,python-incremental) |
| 8424 | ("python-constantly" ,python-constantly) |
| 8425 | ("python-automat" ,python-automat))) |
| 8426 | (home-page "https://twistedmatrix.com/") |
| 8427 | (synopsis "Asynchronous networking framework written in Python") |
| 8428 | (description |
| 8429 | "Twisted is an extensible framework for Python programming, with special |
| 8430 | focus on event-based network programming and multiprotocol integration.") |
| 8431 | (license license:expat))) |
| 8432 | |
| 8433 | (define-public python2-twisted |
| 8434 | (package-with-python2 python-twisted)) |
| 8435 | |
| 8436 | (define-public python-pika |
| 8437 | (package |
| 8438 | (name "python-pika") |
| 8439 | (version "0.10.0") |
| 8440 | (source |
| 8441 | (origin |
| 8442 | (method url-fetch) |
| 8443 | (uri (pypi-uri "pika" version)) |
| 8444 | (sha256 |
| 8445 | (base32 |
| 8446 | "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) |
| 8447 | (build-system python-build-system) |
| 8448 | (native-inputs |
| 8449 | `(("python-pyev" ,python-pyev) |
| 8450 | ("python-tornado" ,python-tornado) |
| 8451 | ("python-twisted" ,python-twisted))) |
| 8452 | (home-page "https://pika.readthedocs.org") |
| 8453 | (synopsis "Pure Python AMQP Client Library") |
| 8454 | (description |
| 8455 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing |
| 8456 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying |
| 8457 | network support library.") |
| 8458 | (license license:bsd-3))) |
| 8459 | |
| 8460 | (define-public python2-pika |
| 8461 | (package-with-python2 python-pika)) |
| 8462 | |
| 8463 | (define-public python-ply |
| 8464 | (package |
| 8465 | (name "python-ply") |
| 8466 | (version "3.9") |
| 8467 | (source |
| 8468 | (origin |
| 8469 | (method url-fetch) |
| 8470 | (uri (pypi-uri "ply" version)) |
| 8471 | (sha256 |
| 8472 | (base32 |
| 8473 | "0gpl0yli3w03ipyqfrp3w5nf0iawhsq65anf5wwm2wf5p502jzhd")))) |
| 8474 | (build-system python-build-system) |
| 8475 | (home-page "http://www.dabeaz.com/ply/") |
| 8476 | (synopsis "Python Lex & Yacc") |
| 8477 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. |
| 8478 | It uses LR parsing and does extensive error checking.") |
| 8479 | (license license:bsd-3))) |
| 8480 | |
| 8481 | (define-public python2-ply |
| 8482 | (package-with-python2 python-ply)) |
| 8483 | |
| 8484 | (define-public python-tabulate |
| 8485 | (package |
| 8486 | (name "python-tabulate") |
| 8487 | (version "0.7.7") |
| 8488 | (source (origin |
| 8489 | (method url-fetch) |
| 8490 | (uri (pypi-uri "tabulate" version)) |
| 8491 | (sha256 |
| 8492 | (base32 |
| 8493 | "1inqhspd4frxnp08c32yndr0lc4px1xfkqah184i5w09gkhvi843")))) |
| 8494 | (build-system python-build-system) |
| 8495 | (arguments |
| 8496 | ;; FIXME: The pypi release tarball is missing a 'test/common.py' |
| 8497 | ;; and the latest release is not tagged in the upstream repository. |
| 8498 | '(#:tests? #f)) |
| 8499 | (home-page "https://bitbucket.org/astanin/python-tabulate") |
| 8500 | (synopsis "Pretty-print tabular data") |
| 8501 | (description |
| 8502 | "Tabulate is a library and command-line utility to pretty-print tabular |
| 8503 | data in Python.") |
| 8504 | (license license:expat))) |
| 8505 | |
| 8506 | (define-public python2-tabulate |
| 8507 | (package-with-python2 python-tabulate)) |
| 8508 | |
| 8509 | (define-public python-kazoo |
| 8510 | (package |
| 8511 | (name "python-kazoo") |
| 8512 | (version "2.2.1") |
| 8513 | (source |
| 8514 | (origin |
| 8515 | (method url-fetch) |
| 8516 | (uri (pypi-uri "kazoo" version)) |
| 8517 | (sha256 |
| 8518 | (base32 |
| 8519 | "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj")))) |
| 8520 | (build-system python-build-system) |
| 8521 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper |
| 8522 | (propagated-inputs |
| 8523 | `(("python-six" ,python-six))) |
| 8524 | (home-page "https://kazoo.readthedocs.org") |
| 8525 | (synopsis "High-level Zookeeper client library") |
| 8526 | (description |
| 8527 | "Kazoo is a Python client library for the Apache Zookeeper distributed |
| 8528 | application service. It is designed to be easy to use and to avoid common |
| 8529 | programming errors.") |
| 8530 | (license license:asl2.0))) |
| 8531 | |
| 8532 | (define-public python2-kazoo |
| 8533 | (package-with-python2 python-kazoo)) |
| 8534 | |
| 8535 | (define-public python-pykafka |
| 8536 | (package |
| 8537 | (name "python-pykafka") |
| 8538 | (version "2.4.0") |
| 8539 | (source (origin |
| 8540 | (method url-fetch) |
| 8541 | (uri (string-append |
| 8542 | "https://pypi.python.org/packages/8b/3e/" |
| 8543 | "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/" |
| 8544 | "pykafka-" version ".tar.gz")) |
| 8545 | (sha256 |
| 8546 | (base32 |
| 8547 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) |
| 8548 | (build-system python-build-system) |
| 8549 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. |
| 8550 | (propagated-inputs |
| 8551 | `(("python-gevent" ,python-gevent) |
| 8552 | ("python-kazoo" ,python-kazoo) |
| 8553 | ("python-tabulate" ,python-tabulate))) |
| 8554 | (inputs |
| 8555 | `(("librdkafka" ,librdkafka))) |
| 8556 | (home-page "https://pykafka.readthedocs.io/") |
| 8557 | (synopsis "Apache Kafka client for Python") |
| 8558 | (description |
| 8559 | "PyKafka is a client for the Apache Kafka distributed messaging system. |
| 8560 | It includes Python implementations of Kafka producers and consumers, which |
| 8561 | are optionally backed by a C extension built on librdkafka.") |
| 8562 | (license license:asl2.0))) |
| 8563 | |
| 8564 | (define-public python2-pykafka |
| 8565 | (package-with-python2 python-pykafka)) |
| 8566 | |
| 8567 | (define-public python-wcwidth |
| 8568 | (package |
| 8569 | (name "python-wcwidth") |
| 8570 | (version "0.1.7") |
| 8571 | (source |
| 8572 | (origin |
| 8573 | (method url-fetch) |
| 8574 | (uri (pypi-uri "wcwidth" version)) |
| 8575 | (sha256 |
| 8576 | (base32 |
| 8577 | "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx")))) |
| 8578 | (build-system python-build-system) |
| 8579 | (home-page "https://github.com/jquast/wcwidth") |
| 8580 | (synopsis "Measure number of terminal column cells of wide-character codes") |
| 8581 | (description "Wcwidth measures the number of terminal column cells of |
| 8582 | wide-character codes. It is useful for those implementing a terminal emulator, |
| 8583 | or programs that carefully produce output to be interpreted by one. It is a |
| 8584 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions |
| 8585 | specified in POSIX.1-2001 and POSIX.1-2008.") |
| 8586 | (license license:expat))) |
| 8587 | |
| 8588 | (define-public python2-wcwidth |
| 8589 | (package-with-python2 python-wcwidth)) |
| 8590 | |
| 8591 | (define-public python2-jsonrpclib |
| 8592 | (package |
| 8593 | (name "python2-jsonrpclib") |
| 8594 | (version "0.1.7") |
| 8595 | (source (origin |
| 8596 | (method url-fetch) |
| 8597 | (uri (string-append |
| 8598 | "https://pypi.python.org/packages/source/j/jsonrpclib/" |
| 8599 | "jsonrpclib-" version ".tar.gz")) |
| 8600 | (sha256 |
| 8601 | (base32 |
| 8602 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) |
| 8603 | (build-system python-build-system) |
| 8604 | (arguments |
| 8605 | `(#:tests? #f |
| 8606 | #:python ,python-2)) |
| 8607 | (home-page "https://github.com/joshmarshall/jsonrpclib/") |
| 8608 | (synopsis "Implementation of JSON-RPC specification for Python") |
| 8609 | (description |
| 8610 | "This library is an implementation of the JSON-RPC specification. |
| 8611 | It supports both the original 1.0 specification, as well as the |
| 8612 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, |
| 8613 | etc.") |
| 8614 | (license license:asl2.0))) |
| 8615 | |
| 8616 | (define-public python-chai |
| 8617 | (package |
| 8618 | (name "python-chai") |
| 8619 | (version "1.1.1") |
| 8620 | (source (origin |
| 8621 | (method url-fetch) |
| 8622 | (uri (pypi-uri "chai" version)) |
| 8623 | (sha256 |
| 8624 | (base32 |
| 8625 | "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) |
| 8626 | (build-system python-build-system) |
| 8627 | (home-page "https://github.com/agoragames/chai") |
| 8628 | (synopsis "Mocking framework for Python") |
| 8629 | (description |
| 8630 | "Chai provides an api for mocking, stubbing and spying your python |
| 8631 | objects, patterned after the Mocha library for Ruby.") |
| 8632 | (license license:bsd-3))) |
| 8633 | |
| 8634 | (define-public python2-chai |
| 8635 | (package-with-python2 python-chai)) |
| 8636 | |
| 8637 | (define-public python-inflection |
| 8638 | (package |
| 8639 | (name "python-inflection") |
| 8640 | (version "0.3.1") |
| 8641 | (source |
| 8642 | (origin (method url-fetch) |
| 8643 | (uri (pypi-uri "inflection" version)) |
| 8644 | (sha256 |
| 8645 | (base32 |
| 8646 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) |
| 8647 | (build-system python-build-system) |
| 8648 | (native-inputs |
| 8649 | `(("python-pytest" ,python-pytest))) |
| 8650 | (home-page "https://github.com/jpvanhal/inflection") |
| 8651 | (synopsis "Python string transformation library") |
| 8652 | (description |
| 8653 | "Inflection is a string transformation library. It singularizes |
| 8654 | and pluralizes English words, and transforms strings from CamelCase to |
| 8655 | underscored string.") |
| 8656 | (license license:expat))) |
| 8657 | |
| 8658 | (define-public python2-inflection |
| 8659 | (package-with-python2 python-inflection)) |
| 8660 | |
| 8661 | (define-public python-pylev |
| 8662 | (package |
| 8663 | (name "python-pylev") |
| 8664 | (version "1.3.0") |
| 8665 | (source (origin |
| 8666 | (method url-fetch) |
| 8667 | (uri (pypi-uri "pylev" version)) |
| 8668 | (sha256 |
| 8669 | (base32 |
| 8670 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) |
| 8671 | (build-system python-build-system) |
| 8672 | (home-page "https://github.com/toastdriven/pylev") |
| 8673 | (synopsis "Levenshtein distance implementation in Python") |
| 8674 | (description "Pure Python Levenshtein implementation, based off the |
| 8675 | Wikipedia code samples at |
| 8676 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") |
| 8677 | (license license:bsd-3))) |
| 8678 | |
| 8679 | (define-public python2-pylev |
| 8680 | (package-with-python2 python-pylev)) |
| 8681 | |
| 8682 | (define-public python-cleo |
| 8683 | (package |
| 8684 | (name "python-cleo") |
| 8685 | (version "0.6.1") |
| 8686 | (source (origin |
| 8687 | (method url-fetch) |
| 8688 | (uri (pypi-uri "cleo" version)) |
| 8689 | (sha256 |
| 8690 | (base32 |
| 8691 | "0q1cf0szr0d54am4pypzwdnm74zpladdsinad94c2fz5i06fdpf7")))) |
| 8692 | (build-system python-build-system) |
| 8693 | (native-inputs |
| 8694 | `(;; For testing |
| 8695 | ("python-mock" ,python-mock) |
| 8696 | ("python-pytest-mock" ,python-pytest-mock) |
| 8697 | ("python-pytest" ,python-pytest))) |
| 8698 | (propagated-inputs |
| 8699 | `(("python-backpack" ,python-backpack) |
| 8700 | ("python-pastel" ,python-pastel) |
| 8701 | ("python-pylev" ,python-pylev))) |
| 8702 | (home-page "https://github.com/sdispater/cleo") |
| 8703 | (synopsis "Command-line arguments library for Python") |
| 8704 | (description |
| 8705 | "Cleo allows you to create command-line commands with signature in |
| 8706 | docstring and colored output.") |
| 8707 | (license license:expat))) |
| 8708 | |
| 8709 | (define-public python2-cleo |
| 8710 | (package-with-python2 python-cleo)) |
| 8711 | |
| 8712 | (define-public python-lazy-object-proxy |
| 8713 | (package |
| 8714 | (name "python-lazy-object-proxy") |
| 8715 | (version "1.2.2") |
| 8716 | (source (origin |
| 8717 | (method url-fetch) |
| 8718 | (uri (pypi-uri "lazy-object-proxy" version)) |
| 8719 | (sha256 |
| 8720 | (base32 |
| 8721 | "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) |
| 8722 | (build-system python-build-system) |
| 8723 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") |
| 8724 | (synopsis "Lazy object proxy for python") |
| 8725 | (description |
| 8726 | "Lazy object proxy is an object that wraps a callable but defers the call |
| 8727 | until the object is actually required, and caches the result of said call.") |
| 8728 | (license license:bsd-2))) |
| 8729 | |
| 8730 | (define-public python2-lazy-object-proxy |
| 8731 | (package-with-python2 python-lazy-object-proxy)) |
| 8732 | |
| 8733 | (define-public python-dnspython |
| 8734 | (package |
| 8735 | (name "python-dnspython") |
| 8736 | (version "1.15.0") |
| 8737 | (source (origin |
| 8738 | (method url-fetch) |
| 8739 | (uri (string-append "http://www.dnspython.org/kits/" |
| 8740 | version "/dnspython-" version ".tar.gz")) |
| 8741 | (sha256 |
| 8742 | (base32 |
| 8743 | "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i")))) |
| 8744 | (build-system python-build-system) |
| 8745 | (arguments '(#:tests? #f)) ; XXX: requires internet access |
| 8746 | (home-page "http://www.dnspython.org") |
| 8747 | (synopsis "DNS toolkit for Python") |
| 8748 | (description |
| 8749 | "dnspython is a DNS toolkit for Python. It supports almost all record |
| 8750 | types. It can be used for queries, zone transfers, and dynamic updates. |
| 8751 | It supports TSIG authenticated messages and EDNS0.") |
| 8752 | (license license:expat))) |
| 8753 | |
| 8754 | (define-public python2-dnspython |
| 8755 | (package-with-python2 python-dnspython)) |
| 8756 | |
| 8757 | (define-public python-email-validator |
| 8758 | (package |
| 8759 | (name "python-email-validator") |
| 8760 | (version "1.0.2") |
| 8761 | (source |
| 8762 | (origin (method url-fetch) |
| 8763 | (uri (pypi-uri "email_validator" version)) |
| 8764 | (sha256 |
| 8765 | (base32 |
| 8766 | "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6")))) |
| 8767 | (build-system python-build-system) |
| 8768 | (arguments |
| 8769 | '(#:phases |
| 8770 | (modify-phases %standard-phases |
| 8771 | (add-before 'build 'use-dnspython |
| 8772 | (lambda _ |
| 8773 | (substitute* "setup.py" |
| 8774 | (("dnspython3") "dnspython")) |
| 8775 | #t))))) |
| 8776 | (propagated-inputs |
| 8777 | `(("python-dnspython" ,python-dnspython) |
| 8778 | ("python-idna" ,python-idna))) |
| 8779 | (home-page "https://github.com/JoshData/python-email-validator") |
| 8780 | (synopsis "Email address validation library for Python") |
| 8781 | (description |
| 8782 | "This library validates email address syntax and deliverability.") |
| 8783 | (license license:cc0))) |
| 8784 | |
| 8785 | (define-public python2-email-validator |
| 8786 | (package-with-python2 python-email-validator)) |
| 8787 | |
| 8788 | (define-public python-ukpostcodeparser |
| 8789 | (package |
| 8790 | (name "python-ukpostcodeparser") |
| 8791 | (version "1.0.3") |
| 8792 | (source (origin |
| 8793 | (method url-fetch) |
| 8794 | (uri (pypi-uri "UkPostcodeParser" version)) |
| 8795 | (sha256 |
| 8796 | (base32 |
| 8797 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) |
| 8798 | (build-system python-build-system) |
| 8799 | (home-page "https://github.com/hamstah/ukpostcodeparser") |
| 8800 | (synopsis "UK Postcode parser for Python") |
| 8801 | (description |
| 8802 | "This library provides the @code{parse_uk_postcode} function for |
| 8803 | parsing UK postcodes.") |
| 8804 | (license license:expat))) |
| 8805 | |
| 8806 | (define-public python2-ukpostcodeparser |
| 8807 | (package-with-python2 python-ukpostcodeparser)) |
| 8808 | |
| 8809 | (define-public python-faker |
| 8810 | (package |
| 8811 | (name "python-faker") |
| 8812 | (version "0.7.9") |
| 8813 | (source (origin |
| 8814 | (method url-fetch) |
| 8815 | (uri (pypi-uri "Faker" version)) |
| 8816 | (sha256 |
| 8817 | (base32 |
| 8818 | "1fh2p2yz0fsdr4fqwxgddwbvfb6qn6vp8yx0qwqzra27yq5d1wsm")) |
| 8819 | (patches |
| 8820 | (search-patches "python-faker-fix-build-32bit.patch")) |
| 8821 | (modules '((guix build utils))) |
| 8822 | (snippet |
| 8823 | '(begin |
| 8824 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 8825 | #t)))) |
| 8826 | (build-system python-build-system) |
| 8827 | (arguments |
| 8828 | '(#:phases |
| 8829 | (modify-phases %standard-phases |
| 8830 | (replace 'check |
| 8831 | (lambda _ |
| 8832 | (zero? (system* "python" "-m" "unittest" "-v" "tests"))))))) |
| 8833 | (native-inputs |
| 8834 | `(;; For testing |
| 8835 | ("python-email-validator" ,python-email-validator) |
| 8836 | ("python-mock" ,python-mock) |
| 8837 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) |
| 8838 | (propagated-inputs |
| 8839 | `(("python-dateutil" ,python-dateutil) |
| 8840 | ("python-six" ,python-six))) |
| 8841 | (home-page "https://github.com/joke2k/faker") |
| 8842 | (synopsis "Python package that generates fake data") |
| 8843 | (description |
| 8844 | "Faker is a Python package that generates fake data such as names, |
| 8845 | addresses, and phone numbers.") |
| 8846 | (license license:expat) |
| 8847 | (properties `((python2-variant . ,(delay python2-faker)))))) |
| 8848 | |
| 8849 | (define-public python2-faker |
| 8850 | (let ((base (package-with-python2 (strip-python2-variant |
| 8851 | python-faker)))) |
| 8852 | (package |
| 8853 | (inherit base) |
| 8854 | (propagated-inputs |
| 8855 | `(("python2-ipaddress" ,python2-ipaddress) |
| 8856 | ,@(package-propagated-inputs base)))))) |
| 8857 | |
| 8858 | (define-public python-pyaml |
| 8859 | (package |
| 8860 | (name "python-pyaml") |
| 8861 | (version "17.7.2") |
| 8862 | (source (origin |
| 8863 | (method url-fetch) |
| 8864 | (uri (pypi-uri "pyaml" version)) |
| 8865 | (sha256 |
| 8866 | (base32 |
| 8867 | "132grrw0ajq4nrappi3ldbkb952k7yn9b6c7csi2rmvzm1g6ppp2")))) |
| 8868 | (build-system python-build-system) |
| 8869 | (native-inputs |
| 8870 | `(("python-unidecode" ,python-unidecode))) |
| 8871 | (propagated-inputs |
| 8872 | `(("python-pyyaml" ,python-pyyaml))) |
| 8873 | (home-page "https://github.com/mk-fg/pretty-yaml") |
| 8874 | (synopsis "YAML pretty-print library for Python") |
| 8875 | (description |
| 8876 | "pyaml is a PyYAML based python module to produce pretty and readable |
| 8877 | YAML-serialized data.") |
| 8878 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))) |
| 8879 | |
| 8880 | (define-public python2-pyaml |
| 8881 | (package-with-python2 python-pyaml)) |
| 8882 | |
| 8883 | (define-public python-backpack |
| 8884 | (package |
| 8885 | (name "python-backpack") |
| 8886 | (version "0.1") |
| 8887 | (source |
| 8888 | (origin |
| 8889 | (method url-fetch) |
| 8890 | (uri (pypi-uri "backpack" version)) |
| 8891 | (sha256 |
| 8892 | (base32 |
| 8893 | "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1")))) |
| 8894 | (build-system python-build-system) |
| 8895 | (native-inputs |
| 8896 | `(("python-pytest" ,python-pytest) |
| 8897 | ("python-nose" ,python-nose))) |
| 8898 | (propagated-inputs |
| 8899 | `(("python-simplejson" ,python-simplejson))) |
| 8900 | (home-page "https://github.com/sdispater/backpack") |
| 8901 | (synopsis "Utilities for working with Python collections") |
| 8902 | (description "Backpack provides some useful utilities for working with |
| 8903 | collections of data.") |
| 8904 | (license license:expat))) |
| 8905 | |
| 8906 | (define-public python2-backpack |
| 8907 | (package-with-python2 python-backpack)) |
| 8908 | |
| 8909 | (define-public python-prompt-toolkit |
| 8910 | (package |
| 8911 | (name "python-prompt-toolkit") |
| 8912 | (version "1.0.15") |
| 8913 | (source |
| 8914 | (origin |
| 8915 | (method url-fetch) |
| 8916 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
| 8917 | (sha256 |
| 8918 | (base32 |
| 8919 | "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5")))) |
| 8920 | (build-system python-build-system) |
| 8921 | (arguments |
| 8922 | '(#:tests? #f)) ; The test suite uses some Windows-specific data types. |
| 8923 | (propagated-inputs |
| 8924 | `(("python-wcwidth" ,python-wcwidth) |
| 8925 | ("python-six" ,python-six) |
| 8926 | ("python-pygments" ,python-pygments))) |
| 8927 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") |
| 8928 | (synopsis "Library for building command line interfaces in Python") |
| 8929 | (description |
| 8930 | "Prompt-Toolkit is a library for building interactive command line |
| 8931 | interfaces in Python. It's like GNU Readline but it also features syntax |
| 8932 | highlighting while typing, out-of-the-box multi-line input editing, advanced |
| 8933 | code completion, incremental search, support for Chinese double-width |
| 8934 | characters, mouse support, and auto suggestions.") |
| 8935 | (license license:bsd-3))) |
| 8936 | |
| 8937 | (define-public python2-prompt-toolkit |
| 8938 | (package-with-python2 python-prompt-toolkit)) |
| 8939 | |
| 8940 | (define-public python-jedi |
| 8941 | (package |
| 8942 | (name "python-jedi") |
| 8943 | (version "0.9.0") |
| 8944 | (source |
| 8945 | (origin |
| 8946 | (method url-fetch) |
| 8947 | (uri (pypi-uri "jedi" version)) |
| 8948 | (sha256 |
| 8949 | (base32 |
| 8950 | "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) |
| 8951 | (build-system python-build-system) |
| 8952 | (arguments |
| 8953 | ;; FIXME: One test fails (use "py.test" instead of 'setup.py test'). |
| 8954 | '(#:tests? #f)) |
| 8955 | (native-inputs |
| 8956 | `(("python-pytest" ,python-pytest))) |
| 8957 | (home-page "https://github.com/davidhalter/jedi") |
| 8958 | (synopsis |
| 8959 | "Autocompletion for Python that can be used for text editors") |
| 8960 | (description |
| 8961 | "Jedi is an autocompletion tool for Python that can be used for text editors.") |
| 8962 | (license license:expat))) |
| 8963 | |
| 8964 | (define-public python2-jedi |
| 8965 | (package-with-python2 python-jedi)) |
| 8966 | |
| 8967 | (define-public ptpython |
| 8968 | (package |
| 8969 | (name "ptpython") |
| 8970 | (version "0.34") |
| 8971 | (source (origin |
| 8972 | (method url-fetch) |
| 8973 | (uri (pypi-uri "ptpython" version)) |
| 8974 | (sha256 |
| 8975 | (base32 |
| 8976 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) |
| 8977 | (build-system python-build-system) |
| 8978 | (arguments |
| 8979 | '(#:tests? #f)) ; FIXME: No tests in pypi tarball. |
| 8980 | (propagated-inputs |
| 8981 | `(("python-docopt" ,python-docopt) |
| 8982 | ("python-jedi" ,python-jedi) |
| 8983 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
| 8984 | ("python-pygments" ,python-pygments))) |
| 8985 | (home-page "https://github.com/jonathanslenders/ptpython") |
| 8986 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") |
| 8987 | (description |
| 8988 | "ptpython is a Python read-eval-print loop with IDE-like features. |
| 8989 | It supports syntax highlighting, multiline editing, autocompletion, mouse, |
| 8990 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters |
| 8991 | etc.") |
| 8992 | (license license:bsd-3) |
| 8993 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
| 8994 | |
| 8995 | (define-public ptpython-2 |
| 8996 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) |
| 8997 | (package |
| 8998 | (inherit base) |
| 8999 | (name "ptpython2")))) |
| 9000 | |
| 9001 | (define-public python-stem |
| 9002 | (package |
| 9003 | (name "python-stem") |
| 9004 | (version "1.5.4") |
| 9005 | (source |
| 9006 | (origin |
| 9007 | (method url-fetch) |
| 9008 | (uri (pypi-uri "stem" version)) |
| 9009 | (sha256 |
| 9010 | (base32 |
| 9011 | "1j7pnblrn0yr6jmxvsq6y0ihmxmj5x50jl2n2606w67f6wq16j9n")))) |
| 9012 | (build-system python-build-system) |
| 9013 | (arguments |
| 9014 | `(#:phases |
| 9015 | (modify-phases %standard-phases |
| 9016 | (replace 'check |
| 9017 | (lambda _ |
| 9018 | (zero? (system* "./run_tests.py" "--unit"))))))) |
| 9019 | (native-inputs |
| 9020 | `(("python-mock" ,python-mock) |
| 9021 | ("python-pep8" ,python-pep8) |
| 9022 | ("python-pyflakes" ,python-pyflakes))) |
| 9023 | (home-page "https://stem.torproject.org/") |
| 9024 | (synopsis |
| 9025 | "Python controller library that allows applications to interact with Tor") |
| 9026 | (description |
| 9027 | "Stem is a Python controller library for Tor. With it you can use Tor's |
| 9028 | control protocol to script against the Tor process and read descriptor data |
| 9029 | relays publish about themselves.") |
| 9030 | (license license:lgpl3))) |
| 9031 | |
| 9032 | (define-public python2-stem |
| 9033 | (package-with-python2 python-stem)) |
| 9034 | |
| 9035 | (define-public python-pyserial |
| 9036 | (package |
| 9037 | (name "python-pyserial") |
| 9038 | (version "3.1.1") |
| 9039 | (source |
| 9040 | (origin |
| 9041 | (method url-fetch) |
| 9042 | (uri (pypi-uri "pyserial" version)) |
| 9043 | (sha256 |
| 9044 | (base32 |
| 9045 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) |
| 9046 | (build-system python-build-system) |
| 9047 | (arguments |
| 9048 | '(#:tests? #f)) ; FIXME: 3/49 tests are failing. |
| 9049 | ;; #:phases |
| 9050 | ;; (modify-phases %standard-phases |
| 9051 | ;; (replace 'check |
| 9052 | ;; (lambda _ |
| 9053 | ;; (zero? (system* "python" "test/run_all_tests.py" "loop://"))))))) |
| 9054 | (home-page |
| 9055 | "https://github.com/pyserial/pyserial") |
| 9056 | (synopsis "Python Serial Port Bindings") |
| 9057 | (description "@code{pyserial} provide serial port bindings for Python. It |
| 9058 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS |
| 9059 | and/or Xon/Xoff. The port is accessed in RAW mode.") |
| 9060 | (license license:bsd-3))) |
| 9061 | |
| 9062 | (define-public python2-pyserial |
| 9063 | (package-with-python2 python-pyserial)) |
| 9064 | |
| 9065 | (define-public python-kivy |
| 9066 | (package |
| 9067 | (name "python-kivy") |
| 9068 | (version "1.9.1") |
| 9069 | (source |
| 9070 | (origin |
| 9071 | (method url-fetch) |
| 9072 | (uri (pypi-uri "kivy" version)) |
| 9073 | (file-name (string-append name "-" version ".tar.gz")) |
| 9074 | (sha256 |
| 9075 | (base32 |
| 9076 | "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19")))) |
| 9077 | (build-system python-build-system) |
| 9078 | (arguments |
| 9079 | `(#:tests? #f ; Tests require many optional packages |
| 9080 | #:phases |
| 9081 | (modify-phases %standard-phases |
| 9082 | (replace 'build (lambda _ (zero? (system* "make" "force")))) |
| 9083 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths |
| 9084 | (lambda* (#:key inputs #:allow-other-keys) |
| 9085 | (setenv "KIVY_SDL2_PATH" |
| 9086 | (string-append (assoc-ref inputs "sdl-union") |
| 9087 | "/include/SDL2")) |
| 9088 | #t))))) |
| 9089 | (native-inputs |
| 9090 | `(("pkg-config" ,pkg-config) |
| 9091 | ("python-cython" ,python-cython))) |
| 9092 | (inputs |
| 9093 | `(("gstreamer" ,gstreamer) |
| 9094 | ("mesa" ,mesa) |
| 9095 | ("sdl-union" |
| 9096 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) |
| 9097 | (home-page "http://kivy.org") |
| 9098 | (synopsis |
| 9099 | "Multitouch application framework") |
| 9100 | (description |
| 9101 | "A software library for rapid development of |
| 9102 | hardware-accelerated multitouch applications.") |
| 9103 | (license license:expat))) |
| 9104 | |
| 9105 | (define-public python2-kivy |
| 9106 | (package-with-python2 python-kivy)) |
| 9107 | |
| 9108 | (define-public python-kivy-next |
| 9109 | (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe") |
| 9110 | (revision "1")) |
| 9111 | (package (inherit python-kivy) |
| 9112 | (name "python-kivy-next") |
| 9113 | (version (string-append "1.9.1-" revision "." |
| 9114 | (string-take commit 7))) |
| 9115 | (source |
| 9116 | (origin |
| 9117 | (method git-fetch) |
| 9118 | (uri (git-reference |
| 9119 | (url "https://github.com/kivy/kivy") |
| 9120 | (commit commit))) |
| 9121 | (file-name (string-append name "-" version "-checkout")) |
| 9122 | (sha256 |
| 9123 | (base32 |
| 9124 | "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p"))))))) |
| 9125 | |
| 9126 | (define-public python2-kivy-next |
| 9127 | (package-with-python2 python-kivy-next)) |
| 9128 | |
| 9129 | (define-public python-binaryornot |
| 9130 | (package |
| 9131 | (name "python-binaryornot") |
| 9132 | (version "0.4.0") |
| 9133 | (source (origin |
| 9134 | (method url-fetch) |
| 9135 | (uri (pypi-uri "binaryornot" version)) |
| 9136 | (sha256 |
| 9137 | (base32 |
| 9138 | "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb")))) |
| 9139 | (build-system python-build-system) |
| 9140 | (propagated-inputs |
| 9141 | `(("python-chardet" ,python-chardet) |
| 9142 | ("python-hypothesis" ,python-hypothesis))) |
| 9143 | (home-page "https://github.com/audreyr/binaryornot") |
| 9144 | (synopsis "Package to check if a file is binary or text") |
| 9145 | (description "Ultra-lightweight pure Python package to check if a file is |
| 9146 | binary or text.") |
| 9147 | (license license:bsd-3) |
| 9148 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) |
| 9149 | |
| 9150 | (define-public python2-binaryornot |
| 9151 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) |
| 9152 | (package (inherit base) |
| 9153 | (propagated-inputs |
| 9154 | `(("python2-enum34" ,python2-enum34) |
| 9155 | ,@(package-propagated-inputs base)))))) |
| 9156 | |
| 9157 | (define-public python-nltk |
| 9158 | (package |
| 9159 | (name "python-nltk") |
| 9160 | (version "3.2.1") |
| 9161 | (source (origin |
| 9162 | (method url-fetch) |
| 9163 | (uri (pypi-uri "nltk" version)) |
| 9164 | (sha256 |
| 9165 | (base32 |
| 9166 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) |
| 9167 | (build-system python-build-system) |
| 9168 | (arguments |
| 9169 | '(;; The tests require some extra resources to be downloaded. |
| 9170 | ;; TODO Try packaging these resources. |
| 9171 | #:tests? #f)) |
| 9172 | (home-page "http://nltk.org/") |
| 9173 | (synopsis "Natural Language Toolkit") |
| 9174 | (description "It provides interfaces to over 50 corpora and lexical |
| 9175 | resources such as WordNet, along with a suite of text processing libraries |
| 9176 | for classification, tokenization, stemming, tagging, parsing, and semantic |
| 9177 | reasoning, wrappers for natural language processing libraries.") |
| 9178 | (license license:asl2.0))) |
| 9179 | |
| 9180 | (define-public python2-nltk |
| 9181 | (package-with-python2 python-nltk)) |
| 9182 | |
| 9183 | (define-public python-pymongo |
| 9184 | (package |
| 9185 | (name "python-pymongo") |
| 9186 | (version "3.3.0") |
| 9187 | (source (origin |
| 9188 | (method url-fetch) |
| 9189 | (uri (pypi-uri "pymongo" version)) |
| 9190 | (sha256 |
| 9191 | (base32 |
| 9192 | "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) |
| 9193 | (build-system python-build-system) |
| 9194 | (propagated-inputs |
| 9195 | `(("python-certifi" ,python-certifi))) |
| 9196 | (home-page "https://github.com/mongodb/mongo-python-driver") |
| 9197 | (synopsis "Python driver for MongoDB") |
| 9198 | (description "Python driver for MongoDB.") |
| 9199 | (license license:asl2.0))) |
| 9200 | |
| 9201 | (define-public python2-pymongo |
| 9202 | (package-with-python2 python-pymongo)) |
| 9203 | |
| 9204 | (define-public python-sh |
| 9205 | (package |
| 9206 | (name "python-sh") |
| 9207 | (version "1.11") |
| 9208 | (source (origin |
| 9209 | (method url-fetch) |
| 9210 | (uri (pypi-uri "sh" version)) |
| 9211 | (sha256 |
| 9212 | (base32 |
| 9213 | "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr")))) |
| 9214 | (build-system python-build-system) |
| 9215 | (arguments |
| 9216 | `(#:tests? #f)) ; no tests |
| 9217 | (home-page "https://github.com/amoffat/sh") |
| 9218 | (synopsis "Python subprocess interface") |
| 9219 | (description "Abstracts process invocation by providing a function |
| 9220 | interface for programs.") |
| 9221 | (license license:expat))) |
| 9222 | |
| 9223 | (define-public python2-sh |
| 9224 | (package-with-python2 python-sh)) |
| 9225 | |
| 9226 | (define-public python-consul |
| 9227 | (package |
| 9228 | (name "python-consul") |
| 9229 | (version "0.6.1") |
| 9230 | (source |
| 9231 | (origin |
| 9232 | (method url-fetch) |
| 9233 | (uri (pypi-uri "python-consul" version)) |
| 9234 | (sha256 |
| 9235 | (base32 |
| 9236 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) |
| 9237 | (build-system python-build-system) |
| 9238 | (native-inputs |
| 9239 | `(("python-pytest" ,python-pytest))) |
| 9240 | (propagated-inputs |
| 9241 | `(("python-requests" ,python-requests) |
| 9242 | ("python-six" ,python-six))) |
| 9243 | (home-page "https://github.com/cablehead/python-consul") |
| 9244 | (synopsis "Python client for Consul") |
| 9245 | (description |
| 9246 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service |
| 9247 | discovery, monitoring and configuration.") |
| 9248 | (license license:expat))) |
| 9249 | |
| 9250 | (define-public python2-consul |
| 9251 | (package-with-python2 python-consul)) |
| 9252 | |
| 9253 | (define-public python-schematics |
| 9254 | (package |
| 9255 | (name "python-schematics") |
| 9256 | (version "1.1.1") |
| 9257 | (source |
| 9258 | (origin |
| 9259 | (method url-fetch) |
| 9260 | (uri (string-append |
| 9261 | "https://github.com/schematics/schematics/archive/v" version ".tar.gz")) |
| 9262 | (file-name (string-append name "-" version ".tar.gz")) |
| 9263 | (sha256 |
| 9264 | (base32 |
| 9265 | "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l")))) |
| 9266 | (build-system python-build-system) |
| 9267 | (propagated-inputs |
| 9268 | `(("python-six" ,python-six))) |
| 9269 | (arguments |
| 9270 | `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed |
| 9271 | ; version requirements (eg python-coveralls) |
| 9272 | (home-page "https://github.com/schematics/schematics") |
| 9273 | (synopsis "Python Data Structures for Humans") |
| 9274 | (description "Python Data Structures for Humans.") |
| 9275 | (license license:bsd-3))) |
| 9276 | |
| 9277 | (define-public python2-schematics |
| 9278 | (package-with-python2 python-schematics)) |
| 9279 | |
| 9280 | (define-public python-odfpy |
| 9281 | (package |
| 9282 | (name "python-odfpy") |
| 9283 | (version "1.3.3") |
| 9284 | (source (origin |
| 9285 | (method url-fetch) |
| 9286 | (uri (pypi-uri "odfpy" version)) |
| 9287 | (sha256 |
| 9288 | (base32 |
| 9289 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) |
| 9290 | (arguments |
| 9291 | `(#:modules ((srfi srfi-1) |
| 9292 | (guix build python-build-system) |
| 9293 | (guix build utils)) |
| 9294 | #:phases |
| 9295 | (modify-phases %standard-phases |
| 9296 | (replace 'check |
| 9297 | ;; The test runner invokes python2 and python3 for test*.py. |
| 9298 | ;; To avoid having both in inputs, we replicate it here. |
| 9299 | (lambda _ |
| 9300 | (every (lambda (test-file) |
| 9301 | (zero? (system* "python" test-file))) |
| 9302 | (find-files "tests" "^test.*\\.py$"))))))) |
| 9303 | (build-system python-build-system) |
| 9304 | (home-page "https://github.com/eea/odfpy") |
| 9305 | (synopsis "Python API and tools to manipulate OpenDocument files") |
| 9306 | (description "Collection of libraries and utility programs written in |
| 9307 | Python to manipulate OpenDocument 1.2 files.") |
| 9308 | (license |
| 9309 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a |
| 9310 | ;; number of files with other licenses. |
| 9311 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) |
| 9312 | |
| 9313 | (define-public python2-odfpy |
| 9314 | (package-with-python2 python-odfpy)) |
| 9315 | |
| 9316 | (define-public python-natsort |
| 9317 | (package |
| 9318 | (name "python-natsort") |
| 9319 | (version "5.0.2") |
| 9320 | (source (origin |
| 9321 | (method url-fetch) |
| 9322 | (uri (pypi-uri "natsort" version)) |
| 9323 | (sha256 |
| 9324 | (base32 |
| 9325 | "0bh6j0l8iapjnsgg3bs6q075cnzjl6zw1vlgqyv3qrygm2cxypkn")))) |
| 9326 | (build-system python-build-system) |
| 9327 | (arguments |
| 9328 | `(#:phases |
| 9329 | (modify-phases %standard-phases |
| 9330 | (add-before 'check 'set-cachedir |
| 9331 | ;; Tests require write access to $HOME by default |
| 9332 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) |
| 9333 | (native-inputs |
| 9334 | `(("python-hypothesis" ,python-hypothesis) |
| 9335 | ("python-pytest-cache" ,python-pytest-cache) |
| 9336 | ("python-pytest-cov" ,python-pytest-cov) |
| 9337 | ("python-pytest-flakes" ,python-pytest-flakes) |
| 9338 | ("python-pytest-pep8" ,python-pytest-pep8))) |
| 9339 | (propagated-inputs ; TODO: Add python-fastnumbers. |
| 9340 | `(("python-pyicu" ,python-pyicu))) |
| 9341 | (home-page "https://github.com/SethMMorton/natsort") |
| 9342 | (synopsis "Natural sorting for python and shell") |
| 9343 | (description |
| 9344 | "Natsort lets you apply natural sorting on lists instead of |
| 9345 | lexicographical. If you use the built-in @code{sorted} method in python |
| 9346 | on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be |
| 9347 | returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a |
| 9348 | function @code{natsorted} that identifies numbers and sorts them separately |
| 9349 | from strings. It can also sort version numbers, real numbers, mixed types |
| 9350 | and more, and comes with a shell command @command{natsort} that exposes this |
| 9351 | functionality in the command line.") |
| 9352 | (license license:expat) |
| 9353 | (properties `((python2-variant . ,(delay python2-natsort)))))) |
| 9354 | |
| 9355 | (define-public python2-natsort |
| 9356 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) |
| 9357 | (package (inherit base) |
| 9358 | (native-inputs |
| 9359 | `(("python2-pathlib" ,python2-pathlib) |
| 9360 | ("python2-mock" ,python2-mock) |
| 9361 | ("python2-enum34" ,python2-enum34) |
| 9362 | ,@(package-native-inputs base)))))) |
| 9363 | |
| 9364 | (define-public python-glances |
| 9365 | (package |
| 9366 | (name "python-glances") |
| 9367 | (version "2.7.1") |
| 9368 | (source |
| 9369 | (origin |
| 9370 | (method url-fetch) |
| 9371 | (uri (pypi-uri "Glances" version)) |
| 9372 | (sha256 |
| 9373 | (base32 |
| 9374 | "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) |
| 9375 | (build-system python-build-system) |
| 9376 | (propagated-inputs |
| 9377 | `(("python-psutil" ,python-psutil))) |
| 9378 | (home-page |
| 9379 | "https://github.com/nicolargo/glances") |
| 9380 | (synopsis |
| 9381 | "A cross-platform curses-based monitoring tool") |
| 9382 | (description |
| 9383 | "Glances is a curses-based monitoring tool for a wide variety of platforms. |
| 9384 | Glances uses the PsUtil library to get information from your system. It monitors |
| 9385 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") |
| 9386 | (license license:lgpl3+))) |
| 9387 | |
| 9388 | (define-public python2-glances |
| 9389 | (package-with-python2 python-glances)) |
| 9390 | |
| 9391 | (define-public python-graphql-core |
| 9392 | (package |
| 9393 | (name "python-graphql-core") |
| 9394 | (version "0.5.3") |
| 9395 | (source |
| 9396 | (origin |
| 9397 | (method url-fetch) |
| 9398 | (uri (pypi-uri "graphql-core" version)) |
| 9399 | (sha256 |
| 9400 | (base32 |
| 9401 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) |
| 9402 | (build-system python-build-system) |
| 9403 | (arguments |
| 9404 | `(#:tests? #f ; Tests require the unpackaged pytest-benchmark. |
| 9405 | #:phases |
| 9406 | (modify-phases %standard-phases |
| 9407 | (add-after 'unpack 'patch-hardcoded-version |
| 9408 | (lambda _ (substitute* |
| 9409 | "setup.py" |
| 9410 | (("'gevent==1.1rc1'") "'gevent'")) |
| 9411 | #t))))) |
| 9412 | (native-inputs |
| 9413 | `(("python-gevent" ,python-gevent) |
| 9414 | ("python-mock" ,python-mock) |
| 9415 | ("python-pytest-mock" ,python-pytest-mock))) |
| 9416 | (propagated-inputs |
| 9417 | `(("python-promise" ,python-promise) |
| 9418 | ("python-six" ,python-six))) |
| 9419 | (home-page "https://github.com/graphql-python/graphql-core") |
| 9420 | (synopsis "GraphQL implementation for Python") |
| 9421 | (description |
| 9422 | "GraphQL implementation for Python. GraphQL is a data query language and |
| 9423 | runtime designed and used to request and deliver data to mobile and web apps. |
| 9424 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} |
| 9425 | to Python.") |
| 9426 | (license license:expat))) |
| 9427 | |
| 9428 | (define-public python2-graphql-core |
| 9429 | (package-with-python2 python-graphql-core)) |
| 9430 | |
| 9431 | (define-public python-graphql-relay |
| 9432 | (package |
| 9433 | (name "python-graphql-relay") |
| 9434 | (version "0.4.5") |
| 9435 | (source |
| 9436 | (origin |
| 9437 | (method url-fetch) |
| 9438 | (uri (pypi-uri "graphql-relay" version)) |
| 9439 | (sha256 |
| 9440 | (base32 |
| 9441 | "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7")))) |
| 9442 | (build-system python-build-system) |
| 9443 | (native-inputs |
| 9444 | `(("python-pytest" ,python-pytest))) |
| 9445 | (propagated-inputs |
| 9446 | `(("python-graphql-core" ,python-graphql-core) |
| 9447 | ("python-promise" ,python-promise) |
| 9448 | ("python-six" ,python-six))) |
| 9449 | (home-page "https://github.com/graphql-python/graphql-relay-py") |
| 9450 | (synopsis "Relay implementation for Python") |
| 9451 | (description |
| 9452 | "This is a library to allow the easy creation of Relay-compliant servers |
| 9453 | using the GraphQL Python reference implementation of a GraphQL server. It |
| 9454 | should be noted that the code is a exact port of the original |
| 9455 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} |
| 9456 | from Facebook.") |
| 9457 | (license license:expat))) |
| 9458 | |
| 9459 | (define-public python2-graphql-relay |
| 9460 | (package-with-python2 python-graphql-relay)) |
| 9461 | |
| 9462 | (define-public python-graphene |
| 9463 | (package |
| 9464 | (name "python-graphene") |
| 9465 | (version "0.10.2") |
| 9466 | (source |
| 9467 | (origin |
| 9468 | (method url-fetch) |
| 9469 | (uri (pypi-uri "graphene" version)) |
| 9470 | (sha256 |
| 9471 | (base32 |
| 9472 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) |
| 9473 | (build-system python-build-system) |
| 9474 | (propagated-inputs |
| 9475 | `(("python-graphql-core" ,python-graphql-core) |
| 9476 | ("python-graphql-relay" ,python-graphql-relay) |
| 9477 | ("python-iso8601" ,python-iso8601) |
| 9478 | ("python-promise" ,python-promise) |
| 9479 | ("python-six" ,python-six))) |
| 9480 | (arguments |
| 9481 | `(#:tests? #f)) ; no tests/ in the PyPI tarball |
| 9482 | (home-page "http://graphene-python.org/") |
| 9483 | (synopsis "GraphQL Framework for Python") |
| 9484 | (description |
| 9485 | "Graphene is a Python library for building GraphQL schemas/types. |
| 9486 | A GraphQL schema describes your data model, and provides a GraphQL server |
| 9487 | with an associated set of resolve methods that know how to fetch data.") |
| 9488 | (properties `((python2-variant . ,(delay python2-graphene)))) |
| 9489 | (license license:expat))) |
| 9490 | |
| 9491 | (define-public python2-graphene |
| 9492 | (let ((base (package-with-python2 |
| 9493 | (strip-python2-variant python-graphene)))) |
| 9494 | (package (inherit base) |
| 9495 | (native-inputs |
| 9496 | `(("python2-sqlalchemy" ,python2-sqlalchemy) |
| 9497 | ,@(package-native-inputs base)))))) |
| 9498 | |
| 9499 | (define-public python-nautilus |
| 9500 | (package |
| 9501 | (name "python-nautilus") |
| 9502 | (version "0.4.9") |
| 9503 | (source |
| 9504 | (origin |
| 9505 | (method url-fetch) |
| 9506 | (uri (pypi-uri "nautilus" version)) |
| 9507 | (sha256 |
| 9508 | (base32 |
| 9509 | "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) |
| 9510 | (build-system python-build-system) |
| 9511 | (arguments `(#:tests? #f)) ; fails to import test modules |
| 9512 | (propagated-inputs |
| 9513 | `(("python-bcrypt" ,python-bcrypt) |
| 9514 | ("python-click" ,python-click) |
| 9515 | ("python-consul" ,python-consul) |
| 9516 | ("python-graphene" ,python-graphene) |
| 9517 | ("python-jinja2" ,python-jinja2) |
| 9518 | ("python-peewee" ,python-peewee) |
| 9519 | ("python-pika" ,python-pika) |
| 9520 | ("python-tornado" ,python-tornado) |
| 9521 | ("python-wtforms" ,python-wtforms))) |
| 9522 | (native-inputs |
| 9523 | `(("python-nose2" ,python-nose2))) |
| 9524 | (home-page "https://github.com/AlecAivazis/nautilus") |
| 9525 | (synopsis "Library for creating microservice applications") |
| 9526 | (description |
| 9527 | "Nautilus is a framework for flux based microservices that looks to |
| 9528 | provide extendible implementations of common aspects of a cloud so that you can |
| 9529 | focus on building massively scalable web applications.") |
| 9530 | (license license:expat))) |
| 9531 | |
| 9532 | (define-public python-snowballstemmer |
| 9533 | (package |
| 9534 | (name "python-snowballstemmer") |
| 9535 | (version "1.2.1") |
| 9536 | (source (origin |
| 9537 | (method url-fetch) |
| 9538 | (uri (pypi-uri "snowballstemmer" version)) |
| 9539 | (sha256 |
| 9540 | (base32 |
| 9541 | "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) |
| 9542 | (build-system python-build-system) |
| 9543 | (arguments |
| 9544 | `(;; No tests exist |
| 9545 | #:tests? #f)) |
| 9546 | (home-page "https://github.com/shibukawa/snowball_py") |
| 9547 | (synopsis "Snowball stemming library collection for Python") |
| 9548 | (description "This package provides 16 word stemmer algorithms generated |
| 9549 | from Snowball algorithms. It includes the 15 original ones plus the Poerter |
| 9550 | English stemmer.") |
| 9551 | (license license:bsd-3))) |
| 9552 | |
| 9553 | (define-public python2-snowballstemmer |
| 9554 | (package-with-python2 python-snowballstemmer)) |
| 9555 | |
| 9556 | (define-public python-sphinx-cloud-sptheme |
| 9557 | (package |
| 9558 | (name "python-sphinx-cloud-sptheme") |
| 9559 | (version "1.8.0") |
| 9560 | (source (origin |
| 9561 | (method url-fetch) |
| 9562 | (uri (pypi-uri "cloud_sptheme" version)) |
| 9563 | (sha256 |
| 9564 | (base32 |
| 9565 | "1dniqb6a39yh786f86c4jn666rwnyi1jvzn4616zhcchb7sfdshd")))) |
| 9566 | (build-system python-build-system) |
| 9567 | ;; FIXME: The 'pypi' release archive does not contain tests. |
| 9568 | (arguments '(#:tests? #f)) |
| 9569 | (native-inputs |
| 9570 | `(("python-sphinx" ,python-sphinx))) |
| 9571 | (home-page "https://bitbucket.org/ecollins/cloud_sptheme") |
| 9572 | (synopsis "'Cloud' theme for Sphinx documenter") |
| 9573 | (description "This package contains the \"Cloud\" theme for Sphinx and some |
| 9574 | related extensions.") |
| 9575 | (license license:bsd-3))) |
| 9576 | |
| 9577 | (define-public python2-sphinx-cloud-sptheme |
| 9578 | (package-with-python2 python-sphinx-cloud-sptheme)) |
| 9579 | |
| 9580 | (define-public python-sphinx-alabaster-theme |
| 9581 | (package |
| 9582 | (name "python-sphinx-alabaster-theme") |
| 9583 | (version "0.7.9") |
| 9584 | (source (origin |
| 9585 | (method url-fetch) |
| 9586 | (uri (pypi-uri "alabaster" version)) |
| 9587 | (sha256 |
| 9588 | (base32 |
| 9589 | "027anxzcb951gjlcc43y3rbn9qrw36d16vj9wd2smv5410xx9bs7")))) |
| 9590 | (build-system python-build-system) |
| 9591 | (propagated-inputs |
| 9592 | `(("python-pygments" ,python-pygments))) |
| 9593 | (home-page "https://alabaster.readthedocs.io/") |
| 9594 | (synopsis "Configurable sidebar-enabled Sphinx theme") |
| 9595 | (description "Alabaster is a visually (c)lean, responsive, configurable |
| 9596 | theme for the Sphinx documentation system. It's the default theme of Sphinx.") |
| 9597 | (license license:bsd-3))) |
| 9598 | |
| 9599 | (define-public python2-sphinx-alabaster-theme |
| 9600 | (package-with-python2 python-sphinx-alabaster-theme)) |
| 9601 | |
| 9602 | (define-public python-setproctitle |
| 9603 | (package |
| 9604 | (name "python-setproctitle") |
| 9605 | (version "1.1.10") |
| 9606 | (source |
| 9607 | (origin |
| 9608 | (method url-fetch) |
| 9609 | (uri (pypi-uri "setproctitle" version)) |
| 9610 | (sha256 |
| 9611 | (base32 |
| 9612 | "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) |
| 9613 | (build-system python-build-system) |
| 9614 | (arguments |
| 9615 | '(#:phases |
| 9616 | (modify-phases %standard-phases |
| 9617 | (add-before 'check 'patch-Makefile |
| 9618 | ;; Stricly this is only required for the python2 variant. |
| 9619 | ;; But adding a phase in an inherited package seems to be |
| 9620 | ;; cumbersum. So we patch even for python3. |
| 9621 | (lambda _ |
| 9622 | (let ((nose (assoc-ref %build-inputs "python2-nose"))) |
| 9623 | (when nose |
| 9624 | (substitute* "Makefile" |
| 9625 | (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") |
| 9626 | (string-append nose "/bin/nosetests ")))) |
| 9627 | #t))) |
| 9628 | (replace 'check |
| 9629 | (lambda _ |
| 9630 | (setenv "PYTHON" (or (which "python3") (which "python"))) |
| 9631 | (setenv "PYCONFIG" (or (which "python3-config") |
| 9632 | (which "python-config"))) |
| 9633 | (setenv "CC" "gcc") |
| 9634 | ;; No need to extend PYTHONPATH to find the built package, since |
| 9635 | ;; the Makefile will build anyway |
| 9636 | (zero? (system* "make" "check"))))))) |
| 9637 | (native-inputs |
| 9638 | `(("procps" ,procps))) ; required for tests |
| 9639 | (home-page |
| 9640 | "https://github.com/dvarrazzo/py-setproctitle") |
| 9641 | (synopsis |
| 9642 | "Setproctitle implementation for Python to customize the process title") |
| 9643 | (description "The library allows a process to change its title (as displayed |
| 9644 | by system tools such as ps and top). |
| 9645 | |
| 9646 | Changing the title is mostly useful in multi-process systems, for |
| 9647 | example when a master process is forked: changing the children's title |
| 9648 | allows to identify the task each process is busy with. The technique |
| 9649 | is used by PostgreSQL and the OpenSSH Server for example.") |
| 9650 | (license license:bsd-3) |
| 9651 | (properties `((python2-variant . ,(delay python2-setproctitle)))))) |
| 9652 | |
| 9653 | (define-public python2-setproctitle |
| 9654 | (let ((base (package-with-python2 |
| 9655 | (strip-python2-variant python-setproctitle)))) |
| 9656 | (package |
| 9657 | (inherit base) |
| 9658 | (native-inputs `(("python2-nose" ,python2-nose) |
| 9659 | ,@(package-native-inputs base)))))) |
| 9660 | |
| 9661 | (define-public python-validictory |
| 9662 | (package |
| 9663 | (name "python-validictory") |
| 9664 | (version "1.0.1") |
| 9665 | (source |
| 9666 | (origin |
| 9667 | (method url-fetch) |
| 9668 | (uri (pypi-uri "validictory" version)) |
| 9669 | (sha256 |
| 9670 | (base32 |
| 9671 | "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q")))) |
| 9672 | (build-system python-build-system) |
| 9673 | (arguments |
| 9674 | '(#:phases |
| 9675 | (modify-phases %standard-phases |
| 9676 | (add-after 'unpack 'bootstrap |
| 9677 | ;; Move the tests out of the package directory to avoid |
| 9678 | ;; packaging them. |
| 9679 | (lambda* _ |
| 9680 | (rename-file "validictory/tests" "tests") |
| 9681 | (delete-file "tests/__init__.py"))) |
| 9682 | (replace 'check |
| 9683 | (lambda _ |
| 9684 | ;; Extend PYTHONPATH so the built package will be found. |
| 9685 | (setenv "PYTHONPATH" |
| 9686 | (string-append (getcwd) "/build/lib:" |
| 9687 | (getenv "PYTHONPATH"))) |
| 9688 | (zero? (system* "py.test" "-vv" ))))))) |
| 9689 | (native-inputs |
| 9690 | `(("python-pytest" ,python-pytest))) |
| 9691 | (home-page |
| 9692 | "https://github.com/jamesturk/validictory") |
| 9693 | (synopsis "General purpose Python data validator") |
| 9694 | (description "It allows validation of arbitrary Python data structures. |
| 9695 | |
| 9696 | The schema format is based on the JSON Schema |
| 9697 | proposal (http://json-schema.org), so combined with json the library is also |
| 9698 | useful as a validator for JSON data.") |
| 9699 | (license license:expat))) |
| 9700 | |
| 9701 | (define-public python2-validictory |
| 9702 | (package-with-python2 python-validictory)) |
| 9703 | |
| 9704 | (define-public python-pyev |
| 9705 | (package |
| 9706 | (name "python-pyev") |
| 9707 | (version "0.9.0") |
| 9708 | (source |
| 9709 | (origin |
| 9710 | (method url-fetch) |
| 9711 | (uri (pypi-uri "pyev" version)) |
| 9712 | (sha256 |
| 9713 | (base32 |
| 9714 | "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx")))) |
| 9715 | (build-system python-build-system) |
| 9716 | (arguments |
| 9717 | `(#:tests? #f ; no test suite |
| 9718 | #:phases |
| 9719 | (modify-phases %standard-phases |
| 9720 | (add-after 'unpack 'patch |
| 9721 | (lambda* (#:key inputs #:allow-other-keys) |
| 9722 | (let ((libev (string-append (assoc-ref inputs "libev") |
| 9723 | "/lib/libev.so.4"))) |
| 9724 | (substitute* "setup.py" |
| 9725 | (("libev_dll_name = find_library\\(\\\"ev\\\"\\)") |
| 9726 | (string-append "libev_dll_name = \"" libev "\""))))))))) |
| 9727 | (inputs |
| 9728 | `(("libev" ,libev))) |
| 9729 | (home-page "http://pythonhosted.org/pyev/") |
| 9730 | (synopsis "Python libev interface") |
| 9731 | (description "Pyev provides a Python interface to libev.") |
| 9732 | (license license:gpl3))) |
| 9733 | |
| 9734 | (define-public python2-pyev |
| 9735 | (package-with-python2 python-pyev)) |
| 9736 | |
| 9737 | (define-public python-imagesize |
| 9738 | (package |
| 9739 | (name "python-imagesize") |
| 9740 | (version "0.7.1") |
| 9741 | (source |
| 9742 | (origin |
| 9743 | (method url-fetch) |
| 9744 | (uri (pypi-uri "imagesize" version)) |
| 9745 | (sha256 |
| 9746 | (base32 |
| 9747 | "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) |
| 9748 | (build-system python-build-system) |
| 9749 | (arguments |
| 9750 | '(;; Test files are not distributed on PyPi: |
| 9751 | ;; https://github.com/shibukawa/imagesize_py/issues/7 |
| 9752 | #:tests? #f)) |
| 9753 | (home-page "https://github.com/shibukawa/imagesize_py") |
| 9754 | (synopsis "Gets image size of files in variaous formats in Python") |
| 9755 | (description |
| 9756 | "This package allows determination of image size from |
| 9757 | PNG, JPEG, JPEG2000 and GIF files in pure Python.") |
| 9758 | (license license:expat))) |
| 9759 | |
| 9760 | (define-public python2-imagesize |
| 9761 | (package-with-python2 python-imagesize)) |
| 9762 | |
| 9763 | (define-public python-termstyle |
| 9764 | (package |
| 9765 | (name "python-termstyle") |
| 9766 | (version "0.1.11") |
| 9767 | (source |
| 9768 | (origin |
| 9769 | (method url-fetch) |
| 9770 | (uri (pypi-uri "termstyle" version)) |
| 9771 | (sha256 |
| 9772 | (base32 |
| 9773 | "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g")))) |
| 9774 | (build-system python-build-system) |
| 9775 | (arguments |
| 9776 | '(#:phases |
| 9777 | (modify-phases %standard-phases |
| 9778 | (replace 'check |
| 9779 | (lambda _ |
| 9780 | (zero? (system* "python" "test3.py"))))))) |
| 9781 | (home-page "https://github.com/gfxmonk/termstyle") |
| 9782 | (synopsis "Console text coloring for Python") |
| 9783 | (description "This package provides console text coloring for Python.") |
| 9784 | (license license:bsd-3))) |
| 9785 | |
| 9786 | (define-public python-argcomplete |
| 9787 | (package |
| 9788 | (name "python-argcomplete") |
| 9789 | (version "1.7.0") |
| 9790 | (source |
| 9791 | (origin |
| 9792 | (method url-fetch) |
| 9793 | (uri (pypi-uri "argcomplete" version)) |
| 9794 | (sha256 |
| 9795 | (base32 |
| 9796 | "11bwiw6j0nilgz81xnw6f1npyga3prp8asjqrm87cdr3ria5l03x")))) |
| 9797 | (build-system python-build-system) |
| 9798 | (native-inputs |
| 9799 | `(("python-pexpect" ,python-pexpect) |
| 9800 | ("tcsh" ,tcsh) |
| 9801 | ("bash-full" ,bash))) ;full Bash for 'test_file_completion' |
| 9802 | (home-page "https://github.com/kislyuk/argcomplete") |
| 9803 | (synopsis "Shell tab completion for Python argparse") |
| 9804 | (description "argcomplete provides extensible command line tab completion |
| 9805 | of arguments and options for Python scripts using @code{argparse}. It's |
| 9806 | particularly useful for programs with many options or sub-parsers that can |
| 9807 | dynamically suggest completions; for example, when browsing resources over the |
| 9808 | network.") |
| 9809 | (license license:asl2.0))) |
| 9810 | |
| 9811 | (define-public python2-argcomplete |
| 9812 | (package-with-python2 python-argcomplete)) |
| 9813 | |
| 9814 | (define-public python-xopen |
| 9815 | (package |
| 9816 | (name "python-xopen") |
| 9817 | (version "0.1.1") |
| 9818 | (source |
| 9819 | (origin |
| 9820 | (method url-fetch) |
| 9821 | (uri (pypi-uri "xopen" version)) |
| 9822 | (sha256 |
| 9823 | (base32 |
| 9824 | "1wx6mylzcsyhjl19ycb83qq6iqpmr927lz62njfsar6ldsj0qcni")) |
| 9825 | (file-name (string-append name "-" version ".tar.gz")))) |
| 9826 | (build-system python-build-system) |
| 9827 | (home-page "https://github.com/marcelm/xopen/") |
| 9828 | (synopsis "Open compressed files transparently") |
| 9829 | (description "This module provides an @code{xopen} function that works like |
| 9830 | Python's built-in @code{open} function, but can also deal with compressed files. |
| 9831 | Supported compression formats are gzip, bzip2 and, xz, and are automatically |
| 9832 | recognized by their file extensions. The focus is on being as efficient as |
| 9833 | possible on all supported Python versions.") |
| 9834 | (license license:expat))) |
| 9835 | |
| 9836 | (define-public python2-xopen |
| 9837 | (package-with-python2 python-xopen)) |
| 9838 | |
| 9839 | (define-public python2-cheetah |
| 9840 | (package |
| 9841 | (name "python2-cheetah") |
| 9842 | (version "2.4.4") |
| 9843 | (source |
| 9844 | (origin |
| 9845 | (method url-fetch) |
| 9846 | (uri (pypi-uri "Cheetah" version)) |
| 9847 | (sha256 |
| 9848 | (base32 |
| 9849 | "0l5mm4lnysjkzpjr95q5ydm9xc8bv43fxmr79ypybrf1y0lq4c5y")))) |
| 9850 | (build-system python-build-system) |
| 9851 | (arguments |
| 9852 | `(#:python ,python-2)) |
| 9853 | (propagated-inputs |
| 9854 | `(("python2-markdown" ,python2-markdown))) |
| 9855 | (home-page "https://pythonhosted.org/Cheetah/") |
| 9856 | (synopsis "Template engine") |
| 9857 | (description "Cheetah is a text-based template engine and Python code |
| 9858 | generator. |
| 9859 | |
| 9860 | Cheetah can be used as a standalone templating utility or referenced as |
| 9861 | a library from other Python applications. It has many potential uses, |
| 9862 | but web developers looking for a viable alternative to ASP, JSP, PHP and |
| 9863 | PSP are expected to be its principle user group. |
| 9864 | |
| 9865 | Features: |
| 9866 | @enumerate |
| 9867 | @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other |
| 9868 | text-based format. |
| 9869 | @item Cleanly separates content, graphic design, and program code. |
| 9870 | @item Blends the power and flexibility of Python with a simple template language |
| 9871 | that non-programmers can understand. |
| 9872 | @item Gives template writers full access to any Python data structure, module, |
| 9873 | function, object, or method in their templates. |
| 9874 | @item Makes code reuse easy by providing an object-orientated interface to |
| 9875 | templates that is accessible from Python code or other Cheetah templates. |
| 9876 | One template can subclass another and selectively reimplement sections of it. |
| 9877 | @item Provides a simple, yet powerful, caching mechanism that can dramatically |
| 9878 | improve the performance of a dynamic website. |
| 9879 | @item Compiles templates into optimized, yet readable, Python code. |
| 9880 | @end enumerate") |
| 9881 | (license (license:x11-style "file://LICENSE")))) |
| 9882 | |
| 9883 | (define-public python-dulwich |
| 9884 | (package |
| 9885 | (name "python-dulwich") |
| 9886 | (version "0.16.3") |
| 9887 | (source |
| 9888 | (origin |
| 9889 | (method url-fetch) |
| 9890 | (uri (list (string-append "https://www.dulwich.io/releases/" |
| 9891 | "dulwich-" version ".tar.gz") |
| 9892 | (pypi-uri "dulwich" version))) |
| 9893 | (sha256 |
| 9894 | (base32 "0fl47vzfgc3w3rmhn8naii905cjqcp0vc68iyvymxp7567hh6als")))) |
| 9895 | (build-system python-build-system) |
| 9896 | (arguments |
| 9897 | `(#:phases |
| 9898 | (modify-phases %standard-phases |
| 9899 | (add-before 'check 'fix-tests |
| 9900 | (lambda* (#:key inputs #:allow-other-keys) |
| 9901 | ;; The tests use Popen with a custom environment which doesn't |
| 9902 | ;; include PATH. |
| 9903 | (substitute* "dulwich/tests/compat/utils.py" |
| 9904 | (("'git'") (string-append "'" |
| 9905 | (which "git") |
| 9906 | "'"))) |
| 9907 | (substitute* '("dulwich/tests/test_repository.py" |
| 9908 | "dulwich/tests/test_hooks.py") |
| 9909 | (("#!/bin/sh") (string-append "#!" (which "sh")))) |
| 9910 | (setenv "TEST_RUNNER" "unittest") |
| 9911 | (setenv "PYTHONHASHSEED" "random") |
| 9912 | #t))))) |
| 9913 | (propagated-inputs |
| 9914 | `(("python-fastimport" ,python-fastimport))) |
| 9915 | (native-inputs |
| 9916 | `(("python-mock" ,python-mock) |
| 9917 | ("python-geventhttpclient" ,python-geventhttpclient) |
| 9918 | ("git" ,git))) |
| 9919 | (home-page "https://www.dulwich.io/") |
| 9920 | (synopsis "Git implementation in Python") |
| 9921 | (description "Dulwich is an implementation of the Git file formats and |
| 9922 | protocols written in pure Python.") |
| 9923 | ;; Can be used with either license. |
| 9924 | (license (list license:asl2.0 license:gpl2+)))) |
| 9925 | |
| 9926 | (define-public python2-dulwich |
| 9927 | (package-with-python2 python-dulwich)) |
| 9928 | |
| 9929 | (define-public python-pbkdf2 |
| 9930 | (package |
| 9931 | (name "python-pbkdf2") |
| 9932 | (version "1.3") |
| 9933 | (source |
| 9934 | (origin |
| 9935 | (method url-fetch) |
| 9936 | (uri (pypi-uri "pbkdf2" version)) |
| 9937 | (sha256 |
| 9938 | (base32 |
| 9939 | "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc")))) |
| 9940 | (build-system python-build-system) |
| 9941 | (arguments |
| 9942 | '(#:phases |
| 9943 | (modify-phases %standard-phases |
| 9944 | (replace 'check |
| 9945 | (lambda _ |
| 9946 | (setenv "PYTHONPATH" |
| 9947 | (string-append (getcwd) "/build/lib:" |
| 9948 | (getenv "PYTHONPATH"))) |
| 9949 | (zero? (system* "python" "test/test_pbkdf2.py"))))))) |
| 9950 | (propagated-inputs |
| 9951 | `(("python-pycrypto" ,python-pycrypto))) ; optional |
| 9952 | (home-page "http://www.dlitz.net/software/python-pbkdf2/") |
| 9953 | (synopsis "Password-based key derivation") |
| 9954 | (description "This module implements the password-based key derivation |
| 9955 | function, PBKDF2, specified in RSA PKCS#5 v2.0. |
| 9956 | |
| 9957 | PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which |
| 9958 | is part of the RSA Public Key Cryptography Standards series. The provided |
| 9959 | implementation takes a password or a passphrase and a salt value (and |
| 9960 | optionally a iteration count, a digest module, and a MAC module) and provides |
| 9961 | a file-like object from which an arbitrarly-sized key can be read.") |
| 9962 | (license license:expat))) |
| 9963 | |
| 9964 | (define-public python2-pbkdf2 |
| 9965 | (package-with-python2 python-pbkdf2)) |
| 9966 | |
| 9967 | (define-public python-qrcode |
| 9968 | (package |
| 9969 | (name "python-qrcode") |
| 9970 | (version "5.3") |
| 9971 | (source |
| 9972 | (origin |
| 9973 | (method url-fetch) |
| 9974 | (uri (pypi-uri "qrcode" version)) |
| 9975 | (sha256 |
| 9976 | (base32 |
| 9977 | "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1")))) |
| 9978 | (build-system python-build-system) |
| 9979 | (arguments |
| 9980 | ;; FIXME: Tests require packaging 'pymaging'. |
| 9981 | '(#:tests? #f)) |
| 9982 | (propagated-inputs |
| 9983 | `(("python-lxml" ,python-lxml) ; for SVG output |
| 9984 | ("python-pillow" ,python-pillow) ; for PNG output |
| 9985 | ("python-six" ,python-six))) |
| 9986 | (home-page "https://github.com/lincolnloop/python-qrcode") |
| 9987 | (synopsis "QR Code image generator") |
| 9988 | (description "This package provides a pure Python QR Code generator |
| 9989 | module. It uses the Python Imaging Library (PIL) to allow for the generation |
| 9990 | of QR Codes. |
| 9991 | |
| 9992 | In addition this package provides a command line tool to generate QR codes and |
| 9993 | either write these QR codes to a file or do the output as ascii art at the |
| 9994 | console.") |
| 9995 | (license license:bsd-3))) |
| 9996 | |
| 9997 | (define-public python2-qrcode |
| 9998 | (package-with-python2 python-qrcode)) |
| 9999 | |
| 10000 | (define-public python-rst2ansi |
| 10001 | (package |
| 10002 | (name "python-rst2ansi") |
| 10003 | (version "0.1.5") |
| 10004 | (source |
| 10005 | (origin |
| 10006 | (method url-fetch) |
| 10007 | (uri (pypi-uri "rst2ansi" version)) |
| 10008 | (sha256 |
| 10009 | (base32 |
| 10010 | "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv")))) |
| 10011 | (build-system python-build-system) |
| 10012 | (propagated-inputs |
| 10013 | `(("python-docutils" ,python-docutils))) |
| 10014 | (home-page "https://github.com/Snaipe/python-rst-to-ansi") |
| 10015 | (synopsis "Convert RST to ANSI-decorated console output") |
| 10016 | (description |
| 10017 | "Python module dedicated to rendering RST (reStructuredText) documents |
| 10018 | to ansi-escaped strings suitable for display in a terminal.") |
| 10019 | (license license:expat))) |
| 10020 | |
| 10021 | (define-public python-ansi2html |
| 10022 | (package |
| 10023 | (name "python-ansi2html") |
| 10024 | (version "1.2.0") |
| 10025 | (source |
| 10026 | (origin |
| 10027 | (method url-fetch) |
| 10028 | (uri (pypi-uri "ansi2html" version)) |
| 10029 | (sha256 |
| 10030 | (base32 |
| 10031 | "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y")))) |
| 10032 | (build-system python-build-system) |
| 10033 | (native-inputs |
| 10034 | `(("python-mock" ,python-mock) |
| 10035 | ("python-nose" ,python-nose))) |
| 10036 | (propagated-inputs |
| 10037 | `(("python-six" ,python-six))) |
| 10038 | (home-page "http://github.com/ralphbean/ansi2html") |
| 10039 | (synopsis "Convert ANSI-decorated console output to HTML") |
| 10040 | (description |
| 10041 | "@command{ansi2html} is a Python library and command line utility for |
| 10042 | convering text with ANSI color codes to HTML or LaTeX.") |
| 10043 | (license license:gpl3+))) |
| 10044 | |
| 10045 | (define-public python2-ansi2html |
| 10046 | (package-with-python2 python-ansi2html)) |
| 10047 | |
| 10048 | (define-public python-ddt |
| 10049 | (package |
| 10050 | (name "python-ddt") |
| 10051 | (version "1.1.1") |
| 10052 | (source |
| 10053 | (origin |
| 10054 | (method url-fetch) |
| 10055 | (uri (pypi-uri "ddt" version)) |
| 10056 | (sha256 |
| 10057 | (base32 |
| 10058 | "1c00ikkxr7lha97c81k938bzhgd4pbwamkjn0h4nkhr3xk00zp6n")))) |
| 10059 | (build-system python-build-system) |
| 10060 | (native-inputs |
| 10061 | `(("python-mock" ,python-mock) |
| 10062 | ("python-nose" ,python-nose))) |
| 10063 | (propagated-inputs |
| 10064 | `(("python-six" ,python-six) |
| 10065 | ("python-pyyaml" ,python-pyyaml))) |
| 10066 | (home-page "https://github.com/txels/ddt") |
| 10067 | (synopsis "Data-Driven Tests") |
| 10068 | (description |
| 10069 | "DDT (Data-Driven Tests) allows you to multiply one test case by running |
| 10070 | it with different test data, and make it appear as multiple test cases.") |
| 10071 | (license license:expat))) |
| 10072 | |
| 10073 | (define-public python2-ddt |
| 10074 | (package-with-python2 python-ddt)) |
| 10075 | |
| 10076 | (define-public python-pycosat |
| 10077 | (package |
| 10078 | (name "python-pycosat") |
| 10079 | (version "0.6.1") |
| 10080 | (source |
| 10081 | (origin |
| 10082 | (method url-fetch) |
| 10083 | (uri (pypi-uri "pycosat" version)) |
| 10084 | (sha256 |
| 10085 | (base32 |
| 10086 | "1kl3wh1f47rc712n4bmwplbx3fqz3x9i1b587jrbpmvdva4c8f6l")))) |
| 10087 | ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/ |
| 10088 | (build-system python-build-system) |
| 10089 | (home-page "https://github.com/ContinuumIO/pycosat") |
| 10090 | (synopsis "Bindings to picosat (a SAT solver)") |
| 10091 | (description |
| 10092 | "This package provides efficient Python bindings to @code{picosat} on |
| 10093 | the C level. When importing pycosat, the @code{picosat} solver becomes part |
| 10094 | of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability |
| 10095 | Problem} (SAT) solver.") |
| 10096 | (license license:expat))) |
| 10097 | |
| 10098 | (define-public python2-pycosat |
| 10099 | (package-with-python2 python-pycosat)) |
| 10100 | |
| 10101 | (define-public python2-ruamel.ordereddict |
| 10102 | (package |
| 10103 | (name "python2-ruamel.ordereddict") |
| 10104 | (version "0.4.9") |
| 10105 | (source |
| 10106 | (origin |
| 10107 | (method url-fetch) |
| 10108 | (uri (pypi-uri "ruamel.ordereddict" version)) |
| 10109 | (sha256 |
| 10110 | (base32 |
| 10111 | "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h")))) |
| 10112 | (build-system python-build-system) |
| 10113 | (arguments |
| 10114 | `(#:python ,python-2 |
| 10115 | #:phases |
| 10116 | (modify-phases %standard-phases |
| 10117 | (delete 'check) |
| 10118 | (add-after 'install 'check |
| 10119 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 10120 | (add-installed-pythonpath inputs outputs) |
| 10121 | (zero? (system* "python" "test/testordereddict.py"))))))) |
| 10122 | (home-page "https://bitbucket.org/ruamel/ordereddict") |
| 10123 | (synopsis "Version of dict that keeps keys in insertion order") |
| 10124 | (description |
| 10125 | "This is an implementation of an ordered dictionary with @dfn{Key |
| 10126 | Insertion Order} (KIO: updates of values do not affect the position of the |
| 10127 | key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is |
| 10128 | removed and put at the back). The standard library module @code{OrderedDict}, |
| 10129 | implemented later, implements a subset of @code{ordereddict} functionality. |
| 10130 | Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted |
| 10131 | Order} (KSO, no sorting function can be specified, but a transform can be |
| 10132 | specified to apply on the key before comparison (e.g. @code{string.lower})).") |
| 10133 | (license license:expat))) |
| 10134 | |
| 10135 | (define-public python-pypeg2 |
| 10136 | (package |
| 10137 | (name "python-pypeg2") |
| 10138 | (version "2.15.2") |
| 10139 | (source |
| 10140 | (origin |
| 10141 | (method url-fetch) |
| 10142 | (uri (pypi-uri "pyPEG2" version)) |
| 10143 | (sha256 |
| 10144 | (base32 |
| 10145 | "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b")))) |
| 10146 | (build-system python-build-system) |
| 10147 | (propagated-inputs `(("python-lxml" ,python-lxml))) |
| 10148 | (arguments |
| 10149 | ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35 |
| 10150 | '(#:tests? #f)) |
| 10151 | (home-page "https://fdik.org/pyPEG/") |
| 10152 | (synopsis "Parsering Expression Grammars in Python") |
| 10153 | (description "PyPEG is an intrinsic parser interpreter framework for |
| 10154 | Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can |
| 10155 | parse many formal languages.") |
| 10156 | (license license:gpl2))) |
| 10157 | |
| 10158 | (define-public python-incremental |
| 10159 | (package |
| 10160 | (name "python-incremental") |
| 10161 | (version "17.5.0") |
| 10162 | (source |
| 10163 | (origin |
| 10164 | (method url-fetch) |
| 10165 | (uri (pypi-uri "incremental" version)) |
| 10166 | (sha256 |
| 10167 | (base32 |
| 10168 | "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv")))) |
| 10169 | (build-system python-build-system) |
| 10170 | (home-page "https://github.com/hawkowl/incremental") |
| 10171 | (synopsis "Library for versioning Python projects") |
| 10172 | (description "Incremental is a small library that versions your Python |
| 10173 | projects.") |
| 10174 | (license license:expat))) |
| 10175 | |
| 10176 | (define-public python2-incremental |
| 10177 | (package-with-python2 python-incremental)) |
| 10178 | |
| 10179 | (define-public python-automat |
| 10180 | (package |
| 10181 | (name "python-automat") |
| 10182 | (version "0.6.0") |
| 10183 | (source (origin |
| 10184 | (method url-fetch) |
| 10185 | (uri (pypi-uri "Automat" version)) |
| 10186 | (sha256 |
| 10187 | (base32 |
| 10188 | "1a7nsrljysfmdqmpn2apfa1gg6rfah4y9sizvns8gb08rx7d07rw")))) |
| 10189 | (build-system python-build-system) |
| 10190 | ;; We disable the tests because they require python-twisted, while |
| 10191 | ;; python-twisted depends on python-automat. Twisted is optional, but the |
| 10192 | ;; tests fail if it is not available. Also see |
| 10193 | ;; <https://github.com/glyph/automat/issues/71>. |
| 10194 | (arguments '(#:tests? #f)) |
| 10195 | (native-inputs |
| 10196 | `(("python-m2r" ,python-m2r) |
| 10197 | ("python-setuptools-scm" ,python-setuptools-scm) |
| 10198 | ("python-graphviz" ,python-graphviz))) |
| 10199 | (propagated-inputs |
| 10200 | `(("python-six" ,python-six) |
| 10201 | ("python-attrs" ,python-attrs))) |
| 10202 | (home-page "https://github.com/glyph/Automat") |
| 10203 | (synopsis "Self-service finite-state machines") |
| 10204 | (description "Automat is a library for concise, idiomatic Python |
| 10205 | expression of finite-state automata (particularly deterministic finite-state |
| 10206 | transducers).") |
| 10207 | (license license:expat))) |
| 10208 | |
| 10209 | (define-public python2-automat |
| 10210 | (package-with-python2 python-automat)) |
| 10211 | |
| 10212 | (define-public python-m2r |
| 10213 | (package |
| 10214 | (name "python-m2r") |
| 10215 | (version "0.1.12") |
| 10216 | (source (origin |
| 10217 | (method url-fetch) |
| 10218 | (uri (pypi-uri "m2r" version)) |
| 10219 | (sha256 |
| 10220 | (base32 |
| 10221 | "1axrwnf425sz4qz3c0qc7yhhki4myzb8rki7pczcsgzznzmqdyxd")))) |
| 10222 | (build-system python-build-system) |
| 10223 | (propagated-inputs |
| 10224 | `(("python-docutils" ,python-docutils) |
| 10225 | ("python-mistune" ,python-mistune))) |
| 10226 | (native-inputs |
| 10227 | `(("python-pygments" ,python-pygments) |
| 10228 | ("python-mock" ,python-mock))) |
| 10229 | (home-page "https://github.com/miyakogi/m2r") |
| 10230 | (synopsis "Markdown to reStructuredText converter") |
| 10231 | (description "M2R converts a markdown file including reST markups to valid |
| 10232 | reST format.") |
| 10233 | (license license:expat))) |
| 10234 | |
| 10235 | (define-public python2-m2r |
| 10236 | (package-with-python2 python-m2r)) |
| 10237 | |
| 10238 | (define-public python-constantly |
| 10239 | (package |
| 10240 | (name "python-constantly") |
| 10241 | (version "15.1.0") |
| 10242 | (source (origin |
| 10243 | (method url-fetch) |
| 10244 | (uri (pypi-uri "constantly" version)) |
| 10245 | (sha256 |
| 10246 | (base32 |
| 10247 | "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq")))) |
| 10248 | (build-system python-build-system) |
| 10249 | (home-page "https://github.com/twisted/constantly") |
| 10250 | (synopsis "Symbolic constants in Python") |
| 10251 | (description "Constantly is a Python library that provides symbolic |
| 10252 | constant support. It includes collections and constants with text, numeric, |
| 10253 | and bit flag values.") |
| 10254 | (license license:expat))) |
| 10255 | |
| 10256 | (define-public python2-constantly |
| 10257 | (package-with-python2 python-constantly)) |
| 10258 | |
| 10259 | (define-public python-attrs |
| 10260 | (package |
| 10261 | (name "python-attrs") |
| 10262 | (version "17.2.0") |
| 10263 | (source (origin |
| 10264 | (method url-fetch) |
| 10265 | (uri (pypi-uri "attrs" version)) |
| 10266 | (sha256 |
| 10267 | (base32 |
| 10268 | "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax")))) |
| 10269 | (build-system python-build-system) |
| 10270 | (native-inputs |
| 10271 | `(("python-pytest" ,python-pytest) |
| 10272 | ("python-hypothesis" ,python-hypothesis) |
| 10273 | ("python-zope-interface" ,python-zope-interface) |
| 10274 | ("python-six" ,python-six))) |
| 10275 | (home-page "https://github.com/python-attrs/attrs/") |
| 10276 | (synopsis "Attributes without boilerplate") |
| 10277 | (description "@code{attrs} is a Python package with class decorators that |
| 10278 | ease the chores of implementing the most common attribute-related object |
| 10279 | protocols.") |
| 10280 | (license license:expat))) |
| 10281 | |
| 10282 | (define-public python2-attrs |
| 10283 | (package-with-python2 python-attrs)) |
| 10284 | |
| 10285 | (define-public python2-cliapp |
| 10286 | (package |
| 10287 | (name "python2-cliapp") |
| 10288 | (version "1.20170823") |
| 10289 | (source |
| 10290 | (origin |
| 10291 | (method url-fetch) |
| 10292 | (uri (string-append |
| 10293 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-" |
| 10294 | version ".tar.gz")) |
| 10295 | (sha256 |
| 10296 | (base32 |
| 10297 | "1i9gik0xrj6jmi95s5w988jl1y265baz5xm5pbqdyvsh8h9ln6yq")))) |
| 10298 | (build-system python-build-system) |
| 10299 | (arguments |
| 10300 | `(#:python ,python-2 |
| 10301 | #:phases |
| 10302 | (modify-phases %standard-phases |
| 10303 | ;; check phase needs to be run before the build phase. If not, |
| 10304 | ;; coverage-test-runner looks for tests for the built source files, |
| 10305 | ;; and fails. |
| 10306 | (delete 'check) |
| 10307 | (add-before 'build 'check |
| 10308 | (lambda _ |
| 10309 | ;; Disable python3 tests |
| 10310 | (substitute* "check" |
| 10311 | (("python3") "# python3")) |
| 10312 | (zero? (system* "./check"))))))) |
| 10313 | (native-inputs |
| 10314 | `(("python2-coverage-test-runner" ,python2-coverage-test-runner) |
| 10315 | ("python2-pep8" ,python2-pep8))) |
| 10316 | (propagated-inputs |
| 10317 | `(("python2-pyaml" ,python2-pyaml))) |
| 10318 | (home-page "https://liw.fi/cliapp/") |
| 10319 | (synopsis "Python framework for command line programs") |
| 10320 | (description "@code{python2-cliapp} is a python framework for |
| 10321 | command line programs. It contains the typical stuff such programs |
| 10322 | need to do, such as parsing the command line for options, and |
| 10323 | iterating over input files.") |
| 10324 | (license license:gpl2+))) |
| 10325 | |
| 10326 | (define-public python2-ttystatus |
| 10327 | (package |
| 10328 | (name "python2-ttystatus") |
| 10329 | (version "0.35") |
| 10330 | (source |
| 10331 | (origin |
| 10332 | (method url-fetch) |
| 10333 | (uri (string-append |
| 10334 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/ttystatus/snapshot/ttystatus-" |
| 10335 | version ".tar.gz")) |
| 10336 | (sha256 |
| 10337 | (base32 |
| 10338 | "0vivqbw7ddhsq1zj3g9cvvv4f0phl0pis2smsnwcr2szz2fk3hl6")))) |
| 10339 | (build-system python-build-system) |
| 10340 | (native-inputs |
| 10341 | `(("python2-coverage-test-runner" ,python2-coverage-test-runner) |
| 10342 | ("python2-pep8" ,python2-pep8))) |
| 10343 | (arguments |
| 10344 | `(#:python ,python-2 |
| 10345 | #:phases |
| 10346 | (modify-phases %standard-phases |
| 10347 | ;; check phase needs to be run before the build phase. If not, |
| 10348 | ;; coverage-test-runner looks for tests for the built source files, |
| 10349 | ;; and fails. |
| 10350 | (delete 'check) |
| 10351 | (add-before 'build 'check |
| 10352 | (lambda _ |
| 10353 | (zero? (system* "make" "check"))))))) |
| 10354 | (home-page "https://liw.fi/ttystatus/") |
| 10355 | (synopsis "Python library for showing progress reporting and |
| 10356 | status updates on terminals") |
| 10357 | (description "@code{python2-ttystatus} is a python library for |
| 10358 | showing progress reporting and status updates on terminals, for |
| 10359 | command line programs. Output is automatically adapted to the width |
| 10360 | of the terminal: truncated if it does not fit, and resized if the |
| 10361 | terminal size changes.") |
| 10362 | (license license:gpl3+))) |
| 10363 | |
| 10364 | (define-public python2-tracing |
| 10365 | (package |
| 10366 | (name "python2-tracing") |
| 10367 | (version "0.10") |
| 10368 | (source |
| 10369 | (origin |
| 10370 | (method url-fetch) |
| 10371 | (uri (string-append |
| 10372 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-" |
| 10373 | version ".tar.gz")) |
| 10374 | (sha256 |
| 10375 | (base32 |
| 10376 | "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw")))) |
| 10377 | (build-system python-build-system) |
| 10378 | (arguments |
| 10379 | `(#:python ,python-2)) |
| 10380 | (home-page "https://liw.fi/tracing/") |
| 10381 | (synopsis "Python debug logging helper") |
| 10382 | (description "@code{python2-tracing} is a python library for |
| 10383 | logging debug messages. It provides a way to turn debugging messages |
| 10384 | on and off, based on the filename they occur in. It is much faster |
| 10385 | than using @code{logging.Filter} to accomplish the same thing, which |
| 10386 | matters when code is run in production mode. The actual logging still |
| 10387 | happens using the @code{logging} library.") |
| 10388 | (license license:gpl3+))) |
| 10389 | |
| 10390 | (define-public python2-larch |
| 10391 | (package |
| 10392 | (name "python2-larch") |
| 10393 | (version "1.20151025") |
| 10394 | (source |
| 10395 | (origin |
| 10396 | (method url-fetch) |
| 10397 | (uri (string-append |
| 10398 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-" |
| 10399 | version ".tar.gz")) |
| 10400 | (patches (search-patches |
| 10401 | "python2-larch-coverage-4.0a6-compatibility.patch")) |
| 10402 | (sha256 |
| 10403 | (base32 |
| 10404 | "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663")))) |
| 10405 | (build-system python-build-system) |
| 10406 | (arguments |
| 10407 | `(#:python ,python-2 |
| 10408 | #:phases |
| 10409 | (modify-phases %standard-phases |
| 10410 | ;; check phase needs to be run before the build phase. If not, |
| 10411 | ;; coverage-test-runner looks for tests for the built source files, |
| 10412 | ;; and fails. |
| 10413 | (delete 'check) |
| 10414 | (add-before 'build 'check |
| 10415 | (lambda _ |
| 10416 | (zero? (system* "make" "check"))))))) |
| 10417 | (native-inputs |
| 10418 | `(("cmdtest" ,cmdtest) |
| 10419 | ("python2-coverage-test-runner" ,python2-coverage-test-runner))) |
| 10420 | (propagated-inputs |
| 10421 | `(("python2-tracing" ,python2-tracing))) |
| 10422 | (home-page "https://liw.fi/larch/") |
| 10423 | (synopsis "Python copy-on-write B-tree library") |
| 10424 | (description "@code{python2-larch} is an implementation of |
| 10425 | particular kind of B-tree, based on research by Ohad Rodeh. See |
| 10426 | @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details |
| 10427 | on the data structure. |
| 10428 | |
| 10429 | The distinctive feature of this B-tree is that a node is never |
| 10430 | (conceptually) modified. Instead, all updates are done by |
| 10431 | copy-on-write. This makes it easy to clone a tree, and modify only the |
| 10432 | clone, while other processes access the original tree.") |
| 10433 | (license license:gpl3+))) |
| 10434 | |
| 10435 | (define-public python-astroid |
| 10436 | (package |
| 10437 | (name "python-astroid") |
| 10438 | (version "1.5.3") |
| 10439 | (source |
| 10440 | (origin |
| 10441 | (method url-fetch) |
| 10442 | (uri (string-append |
| 10443 | "https://github.com/PyCQA/astroid/archive/astroid-" |
| 10444 | version ".tar.gz")) |
| 10445 | (sha256 |
| 10446 | (base32 |
| 10447 | "0isn5p7f9n48hmksgbrj7dkm9dyglnayzn5jngk37qywg8a74ngn")))) |
| 10448 | (build-system python-build-system) |
| 10449 | (propagated-inputs |
| 10450 | `(("python-lazy-object-proxy" ,python-lazy-object-proxy) |
| 10451 | ("python-six" ,python-six) |
| 10452 | ("python-wrapt" ,python-wrapt))) |
| 10453 | (arguments |
| 10454 | `(#:phases |
| 10455 | (modify-phases %standard-phases |
| 10456 | (replace 'check |
| 10457 | (lambda _ |
| 10458 | (zero? (system* "python" "-m" "unittest" "discover" |
| 10459 | "-p" "unittest*.py"))))))) |
| 10460 | (home-page "https://github.com/PyCQA/astroid") |
| 10461 | (synopsis "Common base representation of python source code for pylint and |
| 10462 | other projects") |
| 10463 | (description "@code{python-astroid} provides a common base representation |
| 10464 | of python source code for projects such as pychecker, pyreverse, pylint, etc. |
| 10465 | |
| 10466 | It provides a compatible representation which comes from the _ast module. It |
| 10467 | rebuilds the tree generated by the builtin _ast module by recursively walking |
| 10468 | down the AST and building an extended ast. The new node classes have |
| 10469 | additional methods and attributes for different usages. They include some |
| 10470 | support for static inference and local name scopes. Furthermore, astroid |
| 10471 | builds partial trees by inspecting living objects.") |
| 10472 | (license license:lgpl2.1+) |
| 10473 | (properties `((python2-variant . ,(delay python2-astroid)))))) |
| 10474 | |
| 10475 | (define-public python2-astroid |
| 10476 | (let ((base (package-with-python2 |
| 10477 | (strip-python2-variant python-astroid)))) |
| 10478 | (package (inherit base) |
| 10479 | (propagated-inputs |
| 10480 | `(("python2-backports-functools-lru-cache" |
| 10481 | ,python2-backports-functools-lru-cache) |
| 10482 | ("python2-enum34" ,python2-enum34) |
| 10483 | ("python2-singledispatch" ,python2-singledispatch) |
| 10484 | ,@(package-propagated-inputs base)))))) |
| 10485 | |
| 10486 | (define-public python-isort |
| 10487 | (package |
| 10488 | (name "python-isort") |
| 10489 | (version "4.2.5") |
| 10490 | (source |
| 10491 | (origin |
| 10492 | (method url-fetch) |
| 10493 | (uri (string-append |
| 10494 | "https://github.com/timothycrosley/isort/archive/" |
| 10495 | version ".tar.gz")) |
| 10496 | (file-name (string-append name "-" version ".tar.gz")) |
| 10497 | (sha256 |
| 10498 | (base32 |
| 10499 | "0zsrgkb0krn5476yncy5dd56k7dk34zqb4bnlvwy44ixgilyjmfh")))) |
| 10500 | (build-system python-build-system) |
| 10501 | (native-inputs |
| 10502 | `(("python-mock" ,python-mock) |
| 10503 | ("python-pytest" ,python-pytest))) |
| 10504 | (home-page "https://github.com/timothycrosley/isort") |
| 10505 | (synopsis "Python utility/library to sort python imports") |
| 10506 | (description "@code{python-isort} is a python utility/library to sort |
| 10507 | imports alphabetically, and automatically separated into sections. It |
| 10508 | provides a command line utility, a python library and plugins for various |
| 10509 | editors.") |
| 10510 | (license license:expat))) |
| 10511 | |
| 10512 | (define-public python2-isort |
| 10513 | (package-with-python2 python-isort)) |
| 10514 | |
| 10515 | (define-public python2-backports-functools-lru-cache |
| 10516 | (package |
| 10517 | (name "python2-backports-functools-lru-cache") |
| 10518 | (version "1.3") |
| 10519 | (source |
| 10520 | (origin |
| 10521 | (method url-fetch) |
| 10522 | ;; only the pypi tarballs contain the necessary metadata |
| 10523 | (uri (pypi-uri "backports.functools_lru_cache" version)) |
| 10524 | (sha256 |
| 10525 | (base32 |
| 10526 | "158ysf2hb0q4p4695abfiym9x1ywg0dgh8a3apd7gqaaxjy22jj4")))) |
| 10527 | (build-system python-build-system) |
| 10528 | (native-inputs |
| 10529 | `(("python2-setuptools-scm" ,python2-setuptools-scm))) |
| 10530 | (arguments |
| 10531 | `(#:python ,python-2)) |
| 10532 | (home-page "https://github.com/jaraco/backports.functools_lru_cache") |
| 10533 | (synopsis "Backport of functools.lru_cache from Python 3.3") |
| 10534 | (description "@code{python2-backports-functools-lru-cache} is a backport |
| 10535 | of @code{functools.lru_cache} from python 3.3.") |
| 10536 | (license license:expat))) |
| 10537 | |
| 10538 | (define-public python-configparser |
| 10539 | (package |
| 10540 | (name "python-configparser") |
| 10541 | (version "3.5.0") |
| 10542 | (source |
| 10543 | (origin |
| 10544 | (method url-fetch) |
| 10545 | (uri (string-append |
| 10546 | "https://bitbucket.org/ambv/configparser/get/" |
| 10547 | version ".tar.bz2")) |
| 10548 | (file-name (string-append name "-" version ".tar.gz")) |
| 10549 | (sha256 |
| 10550 | (base32 |
| 10551 | "0waq40as14abwzbb321hfz4vr1fi363nscy32ga14qvfygrg96wa")))) |
| 10552 | (build-system python-build-system) |
| 10553 | (home-page "http://docs.python.org/py3k/library/configparser.html") |
| 10554 | (synopsis "Backport of configparser from python 3.5") |
| 10555 | (description "@code{python-configparser} is a backport of |
| 10556 | @code{configparser} from Python 3.5 so that it can be used directly |
| 10557 | in other versions.") |
| 10558 | (license license:expat))) |
| 10559 | |
| 10560 | (define-public python2-configparser |
| 10561 | (package-with-python2 python-configparser)) |
| 10562 | |
| 10563 | (define-public python-mando |
| 10564 | (package |
| 10565 | (name "python-mando") |
| 10566 | (version "0.5") |
| 10567 | (source |
| 10568 | (origin |
| 10569 | (method url-fetch) |
| 10570 | (uri (pypi-uri "mando" version)) |
| 10571 | (sha256 |
| 10572 | (base32 |
| 10573 | "0q05h66439gqdmlk4jqm6xrwrzfdgs4mwk70barxhr2y83qbbdc0")))) |
| 10574 | (build-system python-build-system) |
| 10575 | (propagated-inputs |
| 10576 | `(("python-rst2ansi" ,python-rst2ansi))) |
| 10577 | (native-inputs |
| 10578 | `(("python-sphinx" ,python-sphinx-1.5.3) |
| 10579 | ("python-paramunittest" ,python-paramunittest))) |
| 10580 | (home-page "https://mando.readthedocs.org/") |
| 10581 | (synopsis |
| 10582 | "Wrapper around argparse, allowing creation of complete CLI applications") |
| 10583 | (description |
| 10584 | "This package is a wrapper around argparse, allowing you to write complete CLI |
| 10585 | applications in seconds while maintaining all the flexibility.") |
| 10586 | (license license:expat))) |
| 10587 | |
| 10588 | (define-public python2-mando |
| 10589 | (package-with-python2 python-mando)) |
| 10590 | |
| 10591 | (define-public python-mando-0.3.1 |
| 10592 | ;; python-radon (version 1.5.0) has a requirement |
| 10593 | ;; for mando<0.4,>=0.3 |
| 10594 | (package |
| 10595 | (inherit python-mando) |
| 10596 | (name "python-mando") |
| 10597 | (version "0.3.1") |
| 10598 | (source |
| 10599 | (origin |
| 10600 | (method url-fetch) |
| 10601 | (uri (string-append "https://github.com/rubik/mando/archive/v" |
| 10602 | version |
| 10603 | ".tar.gz")) |
| 10604 | (sha256 |
| 10605 | (base32 |
| 10606 | "17jlkdpqw22z1nyml5ybslilqkzmnk0dxxjml8bfghav1l5hbwd2")))))) |
| 10607 | |
| 10608 | (define-public python-fudge |
| 10609 | (package |
| 10610 | (name "python-fudge") |
| 10611 | ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2 |
| 10612 | ;; package, which is currently the only use of this package. |
| 10613 | (version "0.9.6") |
| 10614 | (source |
| 10615 | (origin |
| 10616 | (method url-fetch) |
| 10617 | (uri (pypi-uri "fudge" version)) |
| 10618 | (sha256 |
| 10619 | (base32 |
| 10620 | "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l")))) |
| 10621 | (build-system python-build-system) |
| 10622 | (arguments |
| 10623 | `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package. |
| 10624 | (home-page "https://github.com/fudge-py/fudge") |
| 10625 | (synopsis "Replace real objects with fakes/mocks/stubs while testing") |
| 10626 | (description |
| 10627 | "Fudge is a Python module for using fake objects (mocks and stubs) to |
| 10628 | test real ones. |
| 10629 | |
| 10630 | In readable Python code, you declare the methods available on your fake object |
| 10631 | and how they should be called. Then you inject that into your application and |
| 10632 | start testing. This declarative approach means you don’t have to record and |
| 10633 | playback actions and you don’t have to inspect your fakes after running code. |
| 10634 | If the fake object was used incorrectly then you’ll see an informative |
| 10635 | exception message with a traceback that points to the culprit.") |
| 10636 | (license license:expat))) |
| 10637 | |
| 10638 | (define-public python2-fudge |
| 10639 | (package-with-python2 python-fudge)) |
| 10640 | |
| 10641 | (define-public python-mwclient |
| 10642 | (package |
| 10643 | (name "python-mwclient") |
| 10644 | (version "0.8.4") |
| 10645 | (source |
| 10646 | (origin |
| 10647 | (method url-fetch) |
| 10648 | ;; The PyPI version wouldn't contain tests. |
| 10649 | (uri (string-append "https://github.com/mwclient/mwclient/archive/" |
| 10650 | "v" version ".tar.gz")) |
| 10651 | (sha256 |
| 10652 | (base32 |
| 10653 | "1jj0yhilkjir00719fc7w133x7hdyhkxhk6xblla4asig45klsfv")))) |
| 10654 | (build-system python-build-system) |
| 10655 | (propagated-inputs |
| 10656 | `(("python-requests" ,python-requests) |
| 10657 | ("python-requests-oauthlib" |
| 10658 | ,python-requests-oauthlib) |
| 10659 | ("python-six" ,python-six))) |
| 10660 | (native-inputs |
| 10661 | `(("python-mock" ,python-mock) |
| 10662 | ("python-pytest" ,python-pytest) |
| 10663 | ("python-pytest-pep8" ,python-pytest-pep8) |
| 10664 | ("python-pytest-cache" ,python-pytest-cache) |
| 10665 | ("python-pytest-cov" ,python-pytest-cov) |
| 10666 | ("python-responses" ,python-responses))) |
| 10667 | (home-page "https://github.com/btongminh/mwclient") |
| 10668 | (synopsis "MediaWiki API client") |
| 10669 | (description "This package provides a MediaWiki API client.") |
| 10670 | (license license:expat))) |
| 10671 | |
| 10672 | (define-public python2-mwclient |
| 10673 | (package-with-python2 python-mwclient)) |
| 10674 | |
| 10675 | (define-public python-utils |
| 10676 | (package |
| 10677 | (name "python-utils") |
| 10678 | (version "2.1.0") |
| 10679 | (source (origin |
| 10680 | (method url-fetch) |
| 10681 | (uri (pypi-uri "python-utils" version)) |
| 10682 | (sha256 |
| 10683 | (base32 |
| 10684 | "1mcsy6q5am4ya72rgkpb6kax6vv7c93cfkkas89xnpa4sj9zf28p")))) |
| 10685 | (build-system python-build-system) |
| 10686 | (native-inputs |
| 10687 | `(("pytest-runner" ,python-pytest-runner) |
| 10688 | ("pytest" ,python-pytest) |
| 10689 | ("six" ,python-six))) |
| 10690 | (home-page "https://github.com/WoLpH/python-utils") |
| 10691 | (synopsis "Convenient utilities not included with the standard Python install") |
| 10692 | (description |
| 10693 | "Python Utils is a collection of small Python functions and classes which |
| 10694 | make common patterns shorter and easier.") |
| 10695 | (license license:bsd-2))) |
| 10696 | |
| 10697 | (define-public python2-utils |
| 10698 | (package-with-python2 python-utils)) |
| 10699 | |
| 10700 | (define-public python-sphinx-me |
| 10701 | (package |
| 10702 | (name "python-sphinx-me") |
| 10703 | (version "0.3") |
| 10704 | (source |
| 10705 | (origin |
| 10706 | (method url-fetch) |
| 10707 | (uri (pypi-uri "sphinx-me" version)) |
| 10708 | (sha256 |
| 10709 | (base32 |
| 10710 | "06jzgp213zihnvpcy2y5jy3ykid3apc2ncp2pg6a2g05lhiziglq")))) |
| 10711 | (build-system python-build-system) |
| 10712 | (home-page "https://github.com/stephenmcd/sphinx-me") |
| 10713 | (synopsis "Create a Sphinx documentation shell") |
| 10714 | (description |
| 10715 | "Create a Sphinx documentation shell for your project and include the |
| 10716 | README file as the documentation index. It handles extracting the required |
| 10717 | meta data such as the project name, author and version from your project for |
| 10718 | use in your Sphinx docs.") |
| 10719 | (license license:bsd-2))) |
| 10720 | |
| 10721 | (define-public python2-sphinx-me |
| 10722 | (package-with-python2 python-sphinx-me)) |
| 10723 | |
| 10724 | (define-public python-diff-match-patch |
| 10725 | (package |
| 10726 | (name "python-diff-match-patch") |
| 10727 | (version "20121119") |
| 10728 | (source |
| 10729 | (origin |
| 10730 | (method url-fetch) |
| 10731 | (uri (pypi-uri "diff-match-patch" version)) |
| 10732 | (sha256 |
| 10733 | (base32 |
| 10734 | "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx")))) |
| 10735 | (build-system python-build-system) |
| 10736 | (home-page "https://code.google.com/p/google-diff-match-patch") |
| 10737 | (synopsis "Synchronize plain text") |
| 10738 | (description "Diff Match and Patch libraries offer robust algorithms to |
| 10739 | perform the operations required for synchronizing plain text.") |
| 10740 | (license license:asl2.0))) |
| 10741 | |
| 10742 | (define-public python2-diff-match-patch |
| 10743 | (package-with-python2 python-diff-match-patch)) |
| 10744 | |
| 10745 | (define-public python-dirsync |
| 10746 | (package |
| 10747 | (name "python-dirsync") |
| 10748 | (version "2.2.2") |
| 10749 | (source |
| 10750 | (origin |
| 10751 | (method url-fetch) |
| 10752 | (uri (pypi-uri "dirsync" version ".zip")) |
| 10753 | (sha256 |
| 10754 | (base32 |
| 10755 | "1hcdvmkwd5512zbxpin0k7bx5bkgzy3swjx7d0kj1y45af6r75v2")))) |
| 10756 | (build-system python-build-system) |
| 10757 | (native-inputs |
| 10758 | `(("unzip" ,unzip))) |
| 10759 | (propagated-inputs |
| 10760 | `(("six" ,python-six))) |
| 10761 | (home-page "https://bitbucket.org/tkhyn/dirsync") |
| 10762 | (synopsis "Advanced directory tree synchronisation tool") |
| 10763 | (description "Advanced directory tree synchronisation tool.") |
| 10764 | (license license:expat))) |
| 10765 | |
| 10766 | (define-public python2-dirsync |
| 10767 | (package-with-python2 python-dirsync)) |
| 10768 | |
| 10769 | (define-public python-levenshtein |
| 10770 | (package |
| 10771 | (name "python-levenshtein") |
| 10772 | (version "0.12.0") |
| 10773 | (source |
| 10774 | (origin |
| 10775 | (method url-fetch) |
| 10776 | (uri (pypi-uri "python-Levenshtein" version)) |
| 10777 | (sha256 |
| 10778 | (base32 |
| 10779 | "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3")))) |
| 10780 | (build-system python-build-system) |
| 10781 | (home-page "https://github.com/ztane/python-Levenshtein") |
| 10782 | (synopsis "Fast computation of Levenshtein distance and string similarity") |
| 10783 | (description |
| 10784 | "The Levenshtein Python C extension module contains functions for fast computation of |
| 10785 | @enumerate |
| 10786 | @item Levenshtein (edit) distance, and edit operations |
| 10787 | @item string similarity |
| 10788 | @item approximate median strings, and generally string averaging |
| 10789 | @item string sequence and set similarity |
| 10790 | @end enumerate |
| 10791 | It supports both normal and Unicode strings.") |
| 10792 | (license license:gpl2+))) |
| 10793 | |
| 10794 | (define-public python2-levenshtein |
| 10795 | (package-with-python2 python-levenshtein)) |
| 10796 | |
| 10797 | (define-public python-scandir |
| 10798 | (package |
| 10799 | (name "python-scandir") |
| 10800 | (version "1.4") |
| 10801 | (source |
| 10802 | (origin |
| 10803 | (method url-fetch) |
| 10804 | (uri (pypi-uri "scandir" version)) |
| 10805 | (sha256 |
| 10806 | (base32 "0yjrgp0mxp3d8bjkq2m1ac2ys8n76wykksvgyjrnil9gr3fx7a5d")))) |
| 10807 | (build-system python-build-system) |
| 10808 | (home-page "https://github.com/benhoyt/scandir") |
| 10809 | (synopsis "Directory iteration function") |
| 10810 | (description |
| 10811 | "Directory iteration function like os.listdir(), except that instead of |
| 10812 | returning a list of bare filenames, it yields DirEntry objects that include |
| 10813 | file type and stat information along with the name. Using scandir() increases |
| 10814 | the speed of os.walk() by 2-20 times (depending on the platform and file |
| 10815 | system) by avoiding unnecessary calls to os.stat() in most cases.") |
| 10816 | (license license:bsd-3))) |
| 10817 | |
| 10818 | (define-public python2-scandir |
| 10819 | (package-with-python2 python-scandir)) |
| 10820 | |
| 10821 | (define-public python2-stemming |
| 10822 | (package |
| 10823 | (name "python2-stemming") |
| 10824 | (version "1.0.1") |
| 10825 | (source |
| 10826 | (origin |
| 10827 | (method url-fetch) |
| 10828 | (uri (pypi-uri "stemming" version)) |
| 10829 | (sha256 |
| 10830 | (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr")))) |
| 10831 | (build-system python-build-system) |
| 10832 | (arguments |
| 10833 | `(#:python ,python-2)) |
| 10834 | (home-page "https://bitbucket.org/mchaput/stemming/overview") |
| 10835 | (synopsis "Python implementations of various stemming algorithms") |
| 10836 | (description |
| 10837 | "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins |
| 10838 | stemming algorithms for English. These implementations are straightforward and |
| 10839 | efficient, unlike some Python versions of the same algorithms available on the |
| 10840 | Web. This package is an extraction of the stemming code included in the Whoosh |
| 10841 | search engine.") |
| 10842 | (license license:public-domain))) |
| 10843 | |
| 10844 | (define-public python-factory-boy |
| 10845 | (package |
| 10846 | (name "python-factory-boy") |
| 10847 | (version "2.8.1") |
| 10848 | (source |
| 10849 | (origin |
| 10850 | (method url-fetch) |
| 10851 | (uri (pypi-uri "factory_boy" version)) |
| 10852 | (sha256 |
| 10853 | (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56")))) |
| 10854 | (build-system python-build-system) |
| 10855 | (arguments |
| 10856 | ;; Tests are not included in the tarball. |
| 10857 | `(#:tests? #f)) |
| 10858 | (propagated-inputs |
| 10859 | `(("faker" ,python-faker))) |
| 10860 | (home-page "https://github.com/benhoyt/scandir") |
| 10861 | (synopsis "Versatile test fixtures replacement") |
| 10862 | (description |
| 10863 | "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl. |
| 10864 | |
| 10865 | As a fixtures replacement tool, it aims to replace static, hard to maintain |
| 10866 | fixtures with easy-to-use factories for complex object. |
| 10867 | |
| 10868 | Instead of building an exhaustive test setup with every possible combination |
| 10869 | of corner cases, factory_boy allows you to use objects customized for the |
| 10870 | current test, while only declaring the test-specific fields") |
| 10871 | (license license:expat))) |
| 10872 | |
| 10873 | (define-public python2-factory-boy |
| 10874 | (package-with-python2 python-factory-boy)) |
| 10875 | |
| 10876 | (define-public python-translate-toolkit |
| 10877 | (package |
| 10878 | (name "python-translate-toolkit") |
| 10879 | (version "2.1.0") |
| 10880 | (source |
| 10881 | (origin |
| 10882 | (method url-fetch) |
| 10883 | (uri (pypi-uri "translate-toolkit" version ".tar.bz2")) |
| 10884 | (sha256 |
| 10885 | (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq")))) |
| 10886 | (build-system python-build-system) |
| 10887 | (native-inputs |
| 10888 | `(("python-pytest" ,python-pytest) |
| 10889 | ("python-sphinx" ,python-sphinx))) |
| 10890 | (propagated-inputs |
| 10891 | `(("python-babel" ,python-babel) |
| 10892 | ("python-beautifulsoup4" ,python-beautifulsoup4) |
| 10893 | ("python-chardet" ,python-chardet) |
| 10894 | ("python-diff-match-patch" ,python-diff-match-patch) |
| 10895 | ("python-levenshtein" ,python-levenshtein) |
| 10896 | ("python-lxml" ,python-lxml) |
| 10897 | ("python-six" ,python-six) |
| 10898 | ("python-vobject" ,python-vobject) |
| 10899 | ("python-pyyaml" ,python-pyyaml))) |
| 10900 | (arguments |
| 10901 | ;; TODO: tests are not run, because they end with |
| 10902 | ;; TypeError: parse() missing 2 required positional arguments: 'tree' and |
| 10903 | ;; 'parse_funcs' |
| 10904 | ;; during test setup. |
| 10905 | `(#:tests? #f)) |
| 10906 | (home-page "http://toolkit.translatehouse.org") |
| 10907 | (synopsis "Tools and API for translation and localization engineering") |
| 10908 | (description |
| 10909 | "Tools and API for translation and localization engineering. It contains |
| 10910 | several utilities, as well as an API for building localization tools.") |
| 10911 | (license license:gpl2+))) |
| 10912 | |
| 10913 | (define-public python2-translate-toolkit |
| 10914 | (package-with-python2 python-translate-toolkit)) |
| 10915 | |
| 10916 | (define-public python-packaging |
| 10917 | (package |
| 10918 | (name "python-packaging") |
| 10919 | (version "16.8") |
| 10920 | (source |
| 10921 | (origin |
| 10922 | (method url-fetch) |
| 10923 | (uri (pypi-uri "packaging" version)) |
| 10924 | (sha256 |
| 10925 | (base32 |
| 10926 | "17k1xbjshackwvbsnxqixbph8rbqhz4bf4g3al5xyzhavxgq6l2x")))) |
| 10927 | (build-system python-build-system) |
| 10928 | (native-inputs |
| 10929 | `(("python-pretend" ,python-pretend) |
| 10930 | ("python-pytest" ,python-pytest))) |
| 10931 | (propagated-inputs |
| 10932 | `(("python-pyparsing" ,python-pyparsing) |
| 10933 | ("python-six" ,python-six))) |
| 10934 | (home-page "https://github.com/pypa/packaging") |
| 10935 | (synopsis "Core utilities for Python packages") |
| 10936 | (description "Packaging is a Python module for dealing with Python packages. |
| 10937 | It offers an interface for working with package versions, names, and dependency |
| 10938 | information.") |
| 10939 | ;; From 'LICENSE': This software is made available under the terms of |
| 10940 | ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. |
| 10941 | ;; Contributions to this software is made under the terms of *both* these |
| 10942 | ;; licenses. |
| 10943 | (license (list license:asl2.0 license:bsd-2)))) |
| 10944 | |
| 10945 | (define-public python2-packaging |
| 10946 | (package-with-python2 python-packaging)) |
| 10947 | |
| 10948 | (define-public python-relatorio |
| 10949 | (package |
| 10950 | (name "python-relatorio") |
| 10951 | (version "0.6.4") |
| 10952 | (source |
| 10953 | (origin |
| 10954 | (method url-fetch) |
| 10955 | (uri (pypi-uri "relatorio" version)) |
| 10956 | (sha256 |
| 10957 | (base32 |
| 10958 | "0lincq79mzgazwd9gh41dybjh9c3n87r83pl8nk3j79aihyfk84z")))) |
| 10959 | (build-system python-build-system) |
| 10960 | (propagated-inputs |
| 10961 | `(("python-lxml" ,python-lxml) |
| 10962 | ("python-genshi" ,python-genshi))) |
| 10963 | (home-page "https://relatorio.tryton.org/") |
| 10964 | (synopsis "Templating library able to output ODT and PDF files") |
| 10965 | (description "Relatorio is a templating library which provides a way to |
| 10966 | easily output ODT, ODS, PNG, SVG and several other kinds of files. Support |
| 10967 | for more filetypes can be easily added by creating plugins for them.") |
| 10968 | (license license:gpl3+))) |
| 10969 | |
| 10970 | (define-public python2-relatorio |
| 10971 | (package-with-python2 python-relatorio)) |
| 10972 | |
| 10973 | (define-public python-radon |
| 10974 | (package |
| 10975 | (name "python-radon") |
| 10976 | (version "1.5.0") |
| 10977 | (source |
| 10978 | (origin |
| 10979 | (method url-fetch) |
| 10980 | (uri (pypi-uri "radon" version)) |
| 10981 | (sha256 |
| 10982 | (base32 |
| 10983 | "1h6jv36am0i827182a04ki6291lyx4kp957xfr5njgprj4nd0qsl")))) |
| 10984 | (build-system python-build-system) |
| 10985 | (propagated-inputs |
| 10986 | `(("python-colorama" ,python-colorama) |
| 10987 | ("python-flake8-polyfill" ,python-flake8-polyfill) |
| 10988 | ("python-mando" ,python-mando-0.3.1))) |
| 10989 | (native-inputs |
| 10990 | `(("python-flake8" ,python-flake8) |
| 10991 | ("python-tox" ,python-tox) |
| 10992 | ("python-pytest" ,python-pytest) |
| 10993 | ("python-paramunittest" ,python-paramunittest))) |
| 10994 | (home-page "https://radon.readthedocs.org/") |
| 10995 | (synopsis "Code Metrics in Python") |
| 10996 | (description "Radon is a Python tool which computes various code metrics. |
| 10997 | Supported metrics are: |
| 10998 | @itemize @bullet |
| 10999 | @item raw metrics: SLOC, comment lines, blank lines, &c. |
| 11000 | @item Cyclomatic Complexity (i.e. McCabe’s Complexity) |
| 11001 | @item Halstead metrics (all of them) |
| 11002 | @item the Maintainability Index (a Visual Studio metric) |
| 11003 | @end itemize") |
| 11004 | (license license:expat))) |
| 11005 | |
| 11006 | (define-public python2-radon |
| 11007 | (package-with-python2 python-radon)) |
| 11008 | |
| 11009 | (define-public python-sure |
| 11010 | (package |
| 11011 | (name "python-sure") |
| 11012 | (version "1.4.6") |
| 11013 | (source |
| 11014 | (origin |
| 11015 | (method url-fetch) |
| 11016 | (uri (pypi-uri "sure" version)) |
| 11017 | (sha256 |
| 11018 | (base32 |
| 11019 | "1iyqsy2d6radi88g1qf0lziy5b39h5cpb3g5jiqyb4xi46ig3x1z")))) |
| 11020 | (build-system python-build-system) |
| 11021 | (propagated-inputs |
| 11022 | `(("python-mock" ,python-mock) |
| 11023 | ("python-six" ,python-six))) |
| 11024 | (native-inputs |
| 11025 | `(("python-nose" ,python-nose))) |
| 11026 | (home-page "https://github.com/gabrielfalcao/sure") |
| 11027 | (synopsis "Automated testing library in python for python") |
| 11028 | (description |
| 11029 | "Sure is a python library that leverages a DSL for writing assertions. |
| 11030 | Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.") |
| 11031 | (license license:gpl3+))) |
| 11032 | |
| 11033 | (define-public python2-sure |
| 11034 | (package-with-python2 python-sure)) |
| 11035 | |
| 11036 | (define-public python2-couleur |
| 11037 | ;; This package does not seem to support python3 at all, hence, |
| 11038 | ;; only the python2 variant definition is provided. |
| 11039 | (package |
| 11040 | (name "python2-couleur") |
| 11041 | (version "0.6.2") |
| 11042 | (source |
| 11043 | (origin |
| 11044 | (method url-fetch) |
| 11045 | (uri (pypi-uri "couleur" version)) |
| 11046 | (sha256 |
| 11047 | (base32 |
| 11048 | "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1")))) |
| 11049 | (build-system python-build-system) |
| 11050 | (arguments |
| 11051 | `(#:python ,python-2)) |
| 11052 | (home-page "https://github.com/gabrielfalcao/couleur") |
| 11053 | (synopsis |
| 11054 | "ANSI terminal tool for python, colored shell and other handy fancy features") |
| 11055 | (description |
| 11056 | "@code{Couleur} provides python programs a way to use the ANSI features in a unix |
| 11057 | terminal such as coloured output in the shell, overwriting output, indentation, etc.") |
| 11058 | ;; README.md says ASL2.0, but all source code headers are LGPL3+. |
| 11059 | ;; https://github.com/gabrielfalcao/couleur/issues/11 |
| 11060 | (license license:lgpl3+))) |
| 11061 | |
| 11062 | (define-public python-misaka |
| 11063 | (package |
| 11064 | (name "python-misaka") |
| 11065 | (version "2.1.0") |
| 11066 | (source |
| 11067 | (origin |
| 11068 | (method url-fetch) |
| 11069 | (uri (pypi-uri "misaka" version)) |
| 11070 | (sha256 |
| 11071 | (base32 |
| 11072 | "1yqrq3a5rracirmvk52n28nn6ckdaz897gnigv89a9gmyn87sqw7")))) |
| 11073 | (build-system python-build-system) |
| 11074 | (arguments |
| 11075 | `(;; Line 37 of setup.py calls self.run_command('develop') |
| 11076 | ;; in the 'check' phase. This command seems to be trying |
| 11077 | ;; to write to |
| 11078 | ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/ |
| 11079 | ;; for which it does not have the permission to write. |
| 11080 | #:tests? #f)) |
| 11081 | (propagated-inputs |
| 11082 | `(("python-cffi" ,python-cffi))) |
| 11083 | (home-page "https://github.com/FSX/misaka") |
| 11084 | (synopsis "Python binding for Hoedown") |
| 11085 | (description |
| 11086 | "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing |
| 11087 | library written in C. It features a fast HTML renderer and functionality to make custom |
| 11088 | renderers (e.g. man pages or LaTeX).") |
| 11089 | (license license:expat))) |
| 11090 | |
| 11091 | (define-public python2-misaka |
| 11092 | (package-with-python2 python-misaka)) |
| 11093 | |
| 11094 | (define-public python2-steadymark |
| 11095 | ;; This is forced into being a python2 only variant |
| 11096 | ;; due to its dependence on couleur that has no support |
| 11097 | ;; for python3 |
| 11098 | (package |
| 11099 | (name "python2-steadymark") |
| 11100 | (version "0.7.3") |
| 11101 | (source |
| 11102 | (origin |
| 11103 | (method url-fetch) |
| 11104 | (uri (pypi-uri "steadymark" version)) |
| 11105 | (sha256 |
| 11106 | (base32 |
| 11107 | "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v")))) |
| 11108 | (build-system python-build-system) |
| 11109 | (native-inputs |
| 11110 | `(("python-couleur" ,python2-couleur) |
| 11111 | ("python-sure" ,python2-sure) |
| 11112 | ("python-misaka" ,python2-misaka))) |
| 11113 | (arguments |
| 11114 | `(#:python ,python-2 |
| 11115 | #:phases |
| 11116 | (modify-phases %standard-phases |
| 11117 | (add-before 'build 'patch-setup-py |
| 11118 | (lambda _ |
| 11119 | ;; Update requirements from dependency==version |
| 11120 | ;; to dependency>=version |
| 11121 | (substitute* "setup.py" |
| 11122 | (("==") ">=")) |
| 11123 | #t))))) |
| 11124 | (home-page "https://github.com/gabrielfalcao/steadymark") |
| 11125 | (synopsis "Markdown-based test runner for python") |
| 11126 | (description |
| 11127 | "@code{Steadymark} allows documentation to be written in github-flavoured |
| 11128 | markdown. The documentation may contain snippets of code surrounded by python |
| 11129 | code blocks and @code{Steadymark} will find these snippets and run them, making |
| 11130 | sure that there are no old malfunctional examples in the documentation examples.") |
| 11131 | (license license:expat))) |
| 11132 | |
| 11133 | (define-public python-jsonpointer |
| 11134 | (package |
| 11135 | (name "python-jsonpointer") |
| 11136 | (version "1.10") |
| 11137 | (source |
| 11138 | (origin |
| 11139 | (method url-fetch) |
| 11140 | (uri (pypi-uri "jsonpointer" version)) |
| 11141 | (sha256 |
| 11142 | (base32 |
| 11143 | "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz")))) |
| 11144 | (build-system python-build-system) |
| 11145 | (home-page "https://github.com/stefankoegl/python-json-pointer") |
| 11146 | (synopsis "Identify specific nodes in a JSON document") |
| 11147 | (description "@code{jsonpointer} allows you to access specific nodes |
| 11148 | by path in a JSON document (see RFC 6901).") |
| 11149 | (license license:bsd-3))) |
| 11150 | |
| 11151 | (define-public python2-jsonpointer |
| 11152 | (package-with-python2 python-jsonpointer)) |
| 11153 | |
| 11154 | (define-public python-jsonpatch |
| 11155 | (package |
| 11156 | (name "python-jsonpatch") |
| 11157 | (version "1.16") |
| 11158 | (source |
| 11159 | (origin |
| 11160 | (method url-fetch) |
| 11161 | ;; pypi version lacks tests.js |
| 11162 | (uri (string-append "https://github.com/stefankoegl/python-json-patch/" |
| 11163 | "archive/v" version ".tar.gz")) |
| 11164 | (file-name (string-append name "-" version ".tar.gz")) |
| 11165 | (sha256 |
| 11166 | (base32 |
| 11167 | "085ykisl8v7mv9h7hvhdy3l2fjzs4214gx32r5k6nx4f76hbv6y5")))) |
| 11168 | (build-system python-build-system) |
| 11169 | (native-inputs |
| 11170 | `(("python-jsonpointer" ,python-jsonpointer))) |
| 11171 | (home-page "https://github.com/stefankoegl/python-json-patch") |
| 11172 | (synopsis "Applying JSON Patches in Python 2.6+ and 3.x") |
| 11173 | (description "@code{jsonpatch} is a library and program that allows |
| 11174 | applying JSON Patches according to RFC 6902.") |
| 11175 | (license license:bsd-3))) |
| 11176 | |
| 11177 | (define-public python2-jsonpatch |
| 11178 | (package-with-python2 python-jsonpatch)) |
| 11179 | |
| 11180 | (define-public python-jsonpatch-0.4 |
| 11181 | (package (inherit python-jsonpatch) |
| 11182 | (name "python-jsonpatch") |
| 11183 | (version "0.4") |
| 11184 | (source |
| 11185 | (origin |
| 11186 | (method url-fetch) |
| 11187 | (uri (string-append "https://github.com/stefankoegl/python-json-patch/" |
| 11188 | "archive/v" version ".tar.gz")) |
| 11189 | (file-name (string-append name "-" version ".tar.gz")) |
| 11190 | (sha256 |
| 11191 | (base32 |
| 11192 | "0j0cd9z9zyp8kppp464jxrfgrnbgkzl1yi10i5gsv8yz6d95929d")))))) |
| 11193 | |
| 11194 | (define-public python2-jsonpatch-0.4 |
| 11195 | (package-with-python2 python-jsonpatch-0.4)) |
| 11196 | |
| 11197 | (define-public python-rfc3987 |
| 11198 | (package |
| 11199 | (name "python-rfc3987") |
| 11200 | (version "1.3.7") |
| 11201 | (source |
| 11202 | (origin |
| 11203 | (method url-fetch) |
| 11204 | (uri (pypi-uri "rfc3987" version)) |
| 11205 | (sha256 |
| 11206 | (base32 |
| 11207 | "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi")))) |
| 11208 | (build-system python-build-system) |
| 11209 | (home-page "http://pypi.python.org/pypi/rfc3987") |
| 11210 | (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)") |
| 11211 | (description "@code{rfc3987} provides routines for parsing and |
| 11212 | validation of URIs (see RFC 3986) and IRIs (see RFC 3987).") |
| 11213 | (license license:gpl3+))) |
| 11214 | |
| 11215 | (define-public python2-rfc3987 |
| 11216 | (package-with-python2 python-rfc3987)) |
| 11217 | |
| 11218 | (define-public python-validate-email |
| 11219 | (package |
| 11220 | (name "python-validate-email") |
| 11221 | (version "1.3") |
| 11222 | (source |
| 11223 | (origin |
| 11224 | (method url-fetch) |
| 11225 | (uri (pypi-uri "validate_email" version)) |
| 11226 | (sha256 |
| 11227 | (base32 |
| 11228 | "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq")))) |
| 11229 | (build-system python-build-system) |
| 11230 | (home-page "http://github.com/syrusakbary/validate_email") |
| 11231 | (synopsis "Verifies if an email address is valid and really exists") |
| 11232 | (description "@code{validate_email} can be used to verify if an email |
| 11233 | address is valid and really exists.") |
| 11234 | (license license:lgpl3+))) |
| 11235 | |
| 11236 | (define-public python2-validate-email |
| 11237 | (package-with-python2 python-validate-email)) |
| 11238 | |
| 11239 | (define-public python-flex |
| 11240 | (package |
| 11241 | (name "python-flex") |
| 11242 | (version "6.10.0") |
| 11243 | (source |
| 11244 | (origin |
| 11245 | (method url-fetch) |
| 11246 | (uri (pypi-uri "flex" version)) |
| 11247 | (sha256 |
| 11248 | (base32 |
| 11249 | "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk")))) |
| 11250 | (build-system python-build-system) |
| 11251 | (propagated-inputs |
| 11252 | `(("python-click" ,python-click) |
| 11253 | ("python-iso8601" ,python-iso8601) |
| 11254 | ("python-jsonpointer" ,python-jsonpointer) |
| 11255 | ("python-pyyaml" ,python-pyyaml) |
| 11256 | ("python-requests" ,python-requests) |
| 11257 | ("python-rfc3987" ,python-rfc3987) |
| 11258 | ("python-six" ,python-six) |
| 11259 | ("python-validate-email" ,python-validate-email))) |
| 11260 | (home-page "https://github.com/pipermerriam/flex") |
| 11261 | (synopsis "Validates Swagger schemata") |
| 11262 | (description "@code{flex} can be used to validate Swagger schemata.") |
| 11263 | (license license:bsd-3))) |
| 11264 | |
| 11265 | (define-public python2-flex |
| 11266 | (package-with-python2 python-flex)) |
| 11267 | |
| 11268 | (define-public python-marshmallow |
| 11269 | (package |
| 11270 | (name "python-marshmallow") |
| 11271 | (version "3.0.0b3") |
| 11272 | (source |
| 11273 | (origin |
| 11274 | (method url-fetch) |
| 11275 | (uri (pypi-uri "marshmallow" version)) |
| 11276 | (sha256 |
| 11277 | (base32 |
| 11278 | "07mcrij1yvk85lvgx44wwr9pc80xryghvlgayb057g1cazcypysd")))) |
| 11279 | (build-system python-build-system) |
| 11280 | (propagated-inputs |
| 11281 | `(("python-dateutil" ,python-dateutil) |
| 11282 | ("python-simplejson" ,python-simplejson))) |
| 11283 | (native-inputs |
| 11284 | `(("python-pytest-3.0" ,python-pytest-3.0) |
| 11285 | ("python-pytz" ,python-pytz))) |
| 11286 | (home-page "https://github.com/marshmallow-code/marshmallow") |
| 11287 | (synopsis "Convert complex datatypes to and from native |
| 11288 | Python datatypes.") |
| 11289 | (description "@code{marshmallow} provides a library for converting |
| 11290 | complex datatypes to and from native Python datatypes.") |
| 11291 | (license license:expat))) |
| 11292 | |
| 11293 | (define-public python2-marshmallow |
| 11294 | (package-with-python2 python-marshmallow)) |
| 11295 | |
| 11296 | (define-public python-apispec |
| 11297 | (package |
| 11298 | (name "python-apispec") |
| 11299 | (version "0.25.3") |
| 11300 | (source |
| 11301 | (origin |
| 11302 | (method url-fetch) |
| 11303 | (uri (pypi-uri "apispec" version)) |
| 11304 | (sha256 |
| 11305 | (base32 |
| 11306 | "0kxa8723zbisx10363yh4mmmn4higxrspymbjfz5zq8f644zagm9")))) |
| 11307 | (build-system python-build-system) |
| 11308 | (propagated-inputs |
| 11309 | `(("python-pyyaml" ,python-pyyaml))) |
| 11310 | (native-inputs |
| 11311 | `(("python-pytest-3.0" ,python-pytest-3.0) |
| 11312 | ("python-flask" ,python-flask) |
| 11313 | ("python-marshmallow" ,python-marshmallow) |
| 11314 | ("python-tornado" ,python-tornado) |
| 11315 | ("python-bottle" ,python-bottle) |
| 11316 | ("python-mock" ,python-mock))) |
| 11317 | (home-page "https://github.com/marshmallow-code/apispec") |
| 11318 | (synopsis "Swagger 2.0 API specification generator") |
| 11319 | (description "@code{python-apispec} is a pluggable API specification |
| 11320 | generator. Currently supports the OpenAPI specification (f.k.a. |
| 11321 | Swagger 2.0).") |
| 11322 | (license license:expat))) |
| 11323 | |
| 11324 | (define-public python2-apispec |
| 11325 | (package-with-python2 python-apispec)) |
| 11326 | |
| 11327 | (define-public python-flasgger |
| 11328 | (package |
| 11329 | (name "python-flasgger") |
| 11330 | (version "0.6.3") |
| 11331 | (source |
| 11332 | (origin |
| 11333 | (method url-fetch) |
| 11334 | (uri (string-append "https://github.com/rochacbruno/flasgger/archive/" |
| 11335 | version ".tar.gz")) |
| 11336 | (file-name (string-append name "-" version ".tar.gz")) |
| 11337 | (sha256 |
| 11338 | (base32 |
| 11339 | "1gqzlm0rb55fdpsy5ipkganlx9cnpi454fqyycr03jm22zql14ay")))) |
| 11340 | (build-system python-build-system) |
| 11341 | (arguments |
| 11342 | `(#:phases |
| 11343 | (modify-phases %standard-phases |
| 11344 | (replace 'check |
| 11345 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 11346 | (substitute* "Makefile" |
| 11347 | (("flake8 flasgger --ignore=F403") |
| 11348 | "flake8 flasgger --ignore=E731,F403")) |
| 11349 | (setenv "PYTHONPATH" (string-append (getcwd) |
| 11350 | ":" |
| 11351 | (getenv "PYTHONPATH"))) |
| 11352 | (zero? (system* "py.test"))))))) |
| 11353 | (propagated-inputs |
| 11354 | `(("python-flask" ,python-flask) |
| 11355 | ("python-pyyaml" ,python-pyyaml) |
| 11356 | ("python-jsonschema" ,python-jsonschema) |
| 11357 | ("python-mistune" ,python-mistune) |
| 11358 | ("python-six" ,python-six))) |
| 11359 | (native-inputs |
| 11360 | `(("python-decorator" ,python-decorator) |
| 11361 | ("python-flake8" ,python-flake8) |
| 11362 | ("python-flask-restful" ,python-flask-restful) |
| 11363 | ("python-flex" ,python-flex) |
| 11364 | ("python-pytest-3.0" ,python-pytest-3.0) |
| 11365 | ("python-pytest-cov" ,python-pytest-cov) |
| 11366 | ("python-marshmallow" ,python-marshmallow) |
| 11367 | ("python-apispec" ,python-apispec))) |
| 11368 | (home-page "https://github.com/rochacbruno/flasgger/") |
| 11369 | (synopsis "Extract Swagger specs from your Flask project") |
| 11370 | (description "@code{python-flasgger} allows extracting Swagger specs |
| 11371 | from your Flask project. It is a fork of Flask-Swagger.") |
| 11372 | (license license:expat))) |
| 11373 | |
| 11374 | (define-public python2-flasgger |
| 11375 | (package-with-python2 python-flasgger)) |
| 11376 | |
| 11377 | (define-public python-swagger-spec-validator |
| 11378 | (package |
| 11379 | (name "python-swagger-spec-validator") |
| 11380 | (version "2.1.0") |
| 11381 | (source |
| 11382 | (origin |
| 11383 | (method url-fetch) |
| 11384 | (uri (pypi-uri "swagger-spec-validator" version)) |
| 11385 | (sha256 |
| 11386 | (base32 |
| 11387 | "13hkpn2lycwr0468yqhjb3kwszqf7hjwlq61w7vdxq1caz31k4nw")))) |
| 11388 | (build-system python-build-system) |
| 11389 | (propagated-inputs |
| 11390 | `(("python-jsonschema" ,python-jsonschema) |
| 11391 | ("python-six" ,python-six))) |
| 11392 | (home-page |
| 11393 | "http://github.com/Yelp/swagger_spec_validator") |
| 11394 | (synopsis "Validation of Swagger specifications") |
| 11395 | (description "@code{swagger_spec_validator} provides a library for |
| 11396 | validating Swagger API specifications.") |
| 11397 | (license license:asl2.0))) |
| 11398 | |
| 11399 | (define-public python2-swagger-spec-validator |
| 11400 | (package-with-python2 python-swagger-spec-validator)) |
| 11401 | |
| 11402 | (define-public python-apache-libcloud |
| 11403 | (package |
| 11404 | (name "python-apache-libcloud") |
| 11405 | (version "2.0.0") |
| 11406 | (source |
| 11407 | (origin |
| 11408 | (method url-fetch) |
| 11409 | (uri (pypi-uri "apache-libcloud" version)) |
| 11410 | (sha256 |
| 11411 | (base32 |
| 11412 | "1a71z02ckcxld72k4qgmdnkjan52c4wczncs3p2mp5yafh7dsan7")))) |
| 11413 | (build-system python-build-system) |
| 11414 | (arguments |
| 11415 | `(#:phases |
| 11416 | (modify-phases %standard-phases |
| 11417 | (add-after 'unpack 'patch-ssh |
| 11418 | (lambda* (#:key inputs #:allow-other-keys) |
| 11419 | (substitute* "libcloud/compute/ssh.py" |
| 11420 | (("'ssh'") (string-append "'" (assoc-ref inputs "openssh") |
| 11421 | "/bin/ssh" "'"))) |
| 11422 | #t)) |
| 11423 | (add-after 'unpack 'patch-tests |
| 11424 | (lambda _ |
| 11425 | (substitute* "./libcloud/test/test_file_fixtures.py" |
| 11426 | ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-923>. |
| 11427 | (("def _ascii") "def _raw_data(self, method, url, body, headers): |
| 11428 | return (httplib.OK, |
| 11429 | \"1234abcd\", |
| 11430 | {\"test\": \"value\"}, |
| 11431 | httplib.responses[httplib.OK]) |
| 11432 | def _ascii")) |
| 11433 | (substitute* "libcloud/test/compute/test_ssh_client.py" |
| 11434 | (("class ShellOutSSHClientTests") |
| 11435 | "@unittest.skip(\"Guix container doesn't have ssh service\") |
| 11436 | class ShellOutSSHClientTests") |
| 11437 | ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-924>. |
| 11438 | (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'") |
| 11439 | (("'.xF0', '.x90', '.x8D', '.x88'") |
| 11440 | "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'")) |
| 11441 | #t))))) |
| 11442 | (inputs |
| 11443 | `(("openssh" ,openssh))) |
| 11444 | (propagated-inputs |
| 11445 | `(("python-paramiko" ,python-paramiko) |
| 11446 | ("python-requests" ,python-requests))) |
| 11447 | (native-inputs |
| 11448 | `(("python-lockfile" ,python-lockfile) |
| 11449 | ("python-mock" ,python-mock) |
| 11450 | ("python-requests-mock" ,python-requests-mock))) |
| 11451 | (home-page "https://libcloud.apache.org/") |
| 11452 | (synopsis "Unified Cloud API") |
| 11453 | (description "@code{libcloud} is a Python library for interacting with |
| 11454 | many of the popular cloud service providers using a unified API.") |
| 11455 | (license license:asl2.0))) |
| 11456 | |
| 11457 | (define-public python2-apache-libcloud |
| 11458 | (package-with-python2 python-apache-libcloud)) |
| 11459 | |
| 11460 | (define-public python-smmap2 |
| 11461 | (package |
| 11462 | (name "python-smmap2") |
| 11463 | (version "2.0.3") |
| 11464 | (source |
| 11465 | (origin |
| 11466 | (method url-fetch) |
| 11467 | (uri (pypi-uri "smmap2" version)) |
| 11468 | (sha256 |
| 11469 | (base32 |
| 11470 | "1hvn28p3zvxa98sbi9lrqvv2ps4q284j4jq9a619zw0m7yv0sly7")))) |
| 11471 | (build-system python-build-system) |
| 11472 | (native-inputs |
| 11473 | `(("python-nosexcover" ,python-nosexcover))) |
| 11474 | (home-page "https://github.com/Byron/smmap") |
| 11475 | (synopsis "Python sliding window memory map manager") |
| 11476 | (description "@code{smmap2} is a pure Python implementation of a sliding |
| 11477 | window memory map manager.") |
| 11478 | (license license:bsd-3))) |
| 11479 | |
| 11480 | (define-public python2-smmap2 |
| 11481 | (package-with-python2 python-smmap2)) |
| 11482 | |
| 11483 | (define-public python-regex |
| 11484 | (package |
| 11485 | (name "python-regex") |
| 11486 | (version "2017.06.07") |
| 11487 | (source (origin |
| 11488 | (method url-fetch) |
| 11489 | (uri (pypi-uri "regex" version)) |
| 11490 | (sha256 |
| 11491 | (base32 |
| 11492 | "06r6b7yigikbj3a72whl85r2b64pj1r0ypmw9yalmkm0wnxq8mz4")))) |
| 11493 | (build-system python-build-system) |
| 11494 | (home-page "https://bitbucket.org/mrabarnett/mrab-regex") |
| 11495 | (synopsis "Alternative regular expression module") |
| 11496 | (description "This regular expression implementation is backwards- |
| 11497 | compatible with the standard @code{re} module, but offers additional |
| 11498 | functionality like full case-folding for case-insensitive matches in Unicode.") |
| 11499 | (license license:psfl))) |
| 11500 | |
| 11501 | (define-public python2-regex |
| 11502 | (package-with-python2 python-regex)) |
| 11503 | |
| 11504 | (define-public python2-pyopengl |
| 11505 | (package |
| 11506 | (name "python2-pyopengl") |
| 11507 | (version "3.1.0") |
| 11508 | (source |
| 11509 | (origin |
| 11510 | (method url-fetch) |
| 11511 | (uri (pypi-uri "PyOpenGL" version)) |
| 11512 | (sha256 |
| 11513 | (base32 |
| 11514 | "1byxjj6a8rwzhxhjqlc588zdad2qwxdd7vlam2653ylll31waiwv")))) |
| 11515 | (arguments |
| 11516 | `(#:python ,python-2)) |
| 11517 | (build-system python-build-system) |
| 11518 | (home-page "http://pyopengl.sourceforge.net") |
| 11519 | (synopsis "Standard OpenGL bindings for Python") |
| 11520 | (description |
| 11521 | "PyOpenGL is the most common cross platform Python binding to OpenGL and |
| 11522 | related APIs. The binding is created using the standard @code{ctypes} |
| 11523 | library.") |
| 11524 | (license license:bsd-3))) |
| 11525 | |
| 11526 | (define-public python-rencode |
| 11527 | (package |
| 11528 | (name "python-rencode") |
| 11529 | (version "1.0.3") |
| 11530 | (source |
| 11531 | (origin |
| 11532 | (method url-fetch) |
| 11533 | (uri (pypi-uri "rencode" version)) |
| 11534 | (sha256 |
| 11535 | (base32 |
| 11536 | "08if5yax1xn5yfp8p3765ccjmfcv9di7i4m5jckgnwvdsgznwkbj")))) |
| 11537 | (build-system python-build-system) |
| 11538 | (native-inputs `(("pkg-config" ,pkg-config) |
| 11539 | ("python-cython", python-cython))) |
| 11540 | (home-page "https://github.com/aresch/rencode") |
| 11541 | (synopsis "Serialization of heterogeneous data structures") |
| 11542 | (description |
| 11543 | "The @code{rencode} module is a data structure serialization library, |
| 11544 | similar to @code{bencode} from the BitTorrent project. For complex, |
| 11545 | heterogeneous data structures with many small elements, r-encoding stake up |
| 11546 | significantly less space than b-encodings. This version of rencode is a |
| 11547 | complete rewrite in Cython to attempt to increase the performance over the |
| 11548 | pure Python module.") |
| 11549 | (license license:bsd-3))) |
| 11550 | |
| 11551 | (define-public python2-rencode |
| 11552 | (package-with-python2 python-rencode)) |
| 11553 | |
| 11554 | (define-public python-xenon |
| 11555 | (package |
| 11556 | (name "python-xenon") |
| 11557 | (version "0.5.1") |
| 11558 | (source |
| 11559 | (origin |
| 11560 | (method url-fetch) |
| 11561 | (uri (pypi-uri "xenon" version)) |
| 11562 | (sha256 |
| 11563 | (base32 |
| 11564 | "14kby2y48vp3sgwxqlm5d5789yibqwb1qli5fwcmdqg3iayrbklc")))) |
| 11565 | (build-system python-build-system) |
| 11566 | (native-inputs |
| 11567 | `(("python-pyyaml" ,python-pyyaml) |
| 11568 | ("python-radon" ,python-radon) |
| 11569 | ("python-requests" ,python-requests) |
| 11570 | ("python-flake8" ,python-flake8) |
| 11571 | ("python-tox" ,python-tox))) |
| 11572 | (arguments |
| 11573 | `(#:phases |
| 11574 | (modify-phases %standard-phases |
| 11575 | (add-before 'build 'patch-test-requirements |
| 11576 | (lambda* (#:key inputs #:allow-other-keys) |
| 11577 | ;; Update requirements from dependency==version to |
| 11578 | ;; dependency>=version. |
| 11579 | (substitute* "requirements.txt" |
| 11580 | (("==") ">=") |
| 11581 | ((",<1.5.0") "")) |
| 11582 | ;; Remove httpretty dependency for tests. |
| 11583 | (substitute* "setup.py" |
| 11584 | (("httpretty") "")) |
| 11585 | #t))))) |
| 11586 | (home-page "https://xenon.readthedocs.org/") |
| 11587 | (synopsis "Monitor code metrics for Python on your CI server") |
| 11588 | (description |
| 11589 | "Xenon is a monitoring tool based on Radon. It monitors code complexity. |
| 11590 | Ideally, @code{xenon} is run every time code is committed. Through command |
| 11591 | line options, various thresholds can be set for the complexity of code. It |
| 11592 | will fail (i.e. it will exit with a non-zero exit code) when any of these |
| 11593 | requirements is not met.") |
| 11594 | (license license:expat))) |
| 11595 | |
| 11596 | (define-public python2-xenon |
| 11597 | (package-with-python2 python-xenon)) |
| 11598 | |
| 11599 | (define-public python-pysocks |
| 11600 | (package |
| 11601 | (name "python-pysocks") |
| 11602 | (version "1.6.7") |
| 11603 | (source |
| 11604 | (origin |
| 11605 | (method url-fetch) |
| 11606 | (uri (pypi-uri "PySocks" version)) |
| 11607 | (sha256 |
| 11608 | (base32 |
| 11609 | "1krkiss578zqwcg4c8iqz1hwscwhsvy2djp3xyvps5gsgvr2j0yh")))) |
| 11610 | (build-system python-build-system) |
| 11611 | (arguments `(#:tests? #f)) |
| 11612 | (home-page "https://github.com/Anorov/PySocks") |
| 11613 | (synopsis "SOCKS client module") |
| 11614 | (description "@code{pysocks} is an updated and semi-actively maintained |
| 11615 | version of @code{SocksiPy} with bug fixes and extra features.") |
| 11616 | (license license:bsd-3))) |
| 11617 | |
| 11618 | (define-public python2-pysocks |
| 11619 | (package-with-python2 python-pysocks)) |
| 11620 | |
| 11621 | (define-public python-pydiff |
| 11622 | (package |
| 11623 | (name "python-pydiff") |
| 11624 | (version "0.2") |
| 11625 | (source |
| 11626 | (origin |
| 11627 | (method url-fetch) |
| 11628 | (uri (pypi-uri "pydiff" version)) |
| 11629 | (sha256 |
| 11630 | (base32 |
| 11631 | "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44")))) |
| 11632 | (build-system python-build-system) |
| 11633 | (home-page "https://github.com/myint/pydiff") |
| 11634 | (synopsis "Library to diff two Python files at the bytecode level") |
| 11635 | (description |
| 11636 | "@code{pydiff} makes it easy to look for actual code changes while |
| 11637 | ignoring formatting changes.") |
| 11638 | (license license:expat))) |
| 11639 | |
| 11640 | (define-public python2-pydiff |
| 11641 | (package-with-python2 python-pydiff)) |
| 11642 | |
| 11643 | (define-public python-tqdm |
| 11644 | (package |
| 11645 | (name "python-tqdm") |
| 11646 | (version "4.15.0") |
| 11647 | (source |
| 11648 | (origin |
| 11649 | (method url-fetch) |
| 11650 | (uri (pypi-uri "tqdm" version)) |
| 11651 | (sha256 |
| 11652 | (base32 |
| 11653 | "0lwrmby8qz23gvqwkpivfrv4q8nfh90cz9ml6slwvwmcxxsdrhbf")))) |
| 11654 | (build-system python-build-system) |
| 11655 | (native-inputs |
| 11656 | `(("python-flake8" ,python-flake8) |
| 11657 | ("python-nose" ,python-nose) |
| 11658 | ("python-nose-timer" ,python-nose-timer) |
| 11659 | ("python-coverage" ,python-coverage) |
| 11660 | ("python-virtualenv" ,python-virtualenv))) |
| 11661 | (home-page "https://github.com/tqdm/tqdm") |
| 11662 | (synopsis "Fast, extensible progress meter") |
| 11663 | (description |
| 11664 | "Make loops show a progress bar on the console by just wrapping any |
| 11665 | iterable with @code{|tqdm(iterable)|}. Offers many options to define |
| 11666 | design and layout.") |
| 11667 | (license (list license:mpl2.0 license:expat)))) |
| 11668 | |
| 11669 | (define-public python2-tqdm |
| 11670 | (package-with-python2 python-tqdm)) |
| 11671 | |
| 11672 | (define-public python-pkginfo |
| 11673 | (package |
| 11674 | (name "python-pkginfo") |
| 11675 | (version "1.4.1") |
| 11676 | (source |
| 11677 | (origin |
| 11678 | (method url-fetch) |
| 11679 | (uri (pypi-uri "pkginfo" version)) |
| 11680 | (sha256 |
| 11681 | (base32 |
| 11682 | "17pqjfpq3c6xzdmk8pski6jcjgjv78q00zjf2bgzb668pzm6l6mv")))) |
| 11683 | (build-system python-build-system) |
| 11684 | (arguments |
| 11685 | ;; The tests are broken upstream. |
| 11686 | '(#:tests? #f)) |
| 11687 | (home-page |
| 11688 | "https://code.launchpad.net/~tseaver/pkginfo/trunk") |
| 11689 | (synopsis |
| 11690 | "Query metadatdata from sdists, bdists, and installed packages") |
| 11691 | (description |
| 11692 | "API to query the distutils metadata written in @file{PKG-INFO} inside a |
| 11693 | source distriubtion (an sdist) or a binary distribution (e.g., created by |
| 11694 | running bdist_egg). It can also query the EGG-INFO directory of an installed |
| 11695 | distribution, and the *.egg-info stored in a \"development checkout\" (e.g, |
| 11696 | created by running @code{python setup.py develop}).") |
| 11697 | (license license:expat))) |
| 11698 | |
| 11699 | (define-public python2-pkginfo |
| 11700 | (package-with-python2 python-pkginfo)) |
| 11701 | |
| 11702 | (define-public python-twine |
| 11703 | (package |
| 11704 | (name "python-twine") |
| 11705 | (version "1.9.1") |
| 11706 | (source |
| 11707 | (origin |
| 11708 | (method url-fetch) |
| 11709 | (uri (pypi-uri "twine" version)) |
| 11710 | (sha256 |
| 11711 | (base32 |
| 11712 | "1ay1b6kdq6k4bfbjsvf6ymj41wrgpvinhxndb09355pwhxwmp96a")))) |
| 11713 | (build-system python-build-system) |
| 11714 | (propagated-inputs |
| 11715 | `(("python-tqdm" ,python-tqdm) |
| 11716 | ("python-pkginfo", python-pkginfo) |
| 11717 | ("python-requests" ,python-requests) |
| 11718 | ("python-requests-toolbelt" ,python-requests-toolbelt))) |
| 11719 | (home-page "https://github.com/pypa/twine") |
| 11720 | (synopsis "Collection of utilities for interacting with PyPI") |
| 11721 | (description |
| 11722 | "@code{twine} currently supports registering projects and uploading |
| 11723 | distributions. It authenticates the user over HTTPS, allows them to pre-sign |
| 11724 | their files and supports any packaging format (including wheels).") |
| 11725 | (license license:asl2.0))) |
| 11726 | |
| 11727 | (define-public python2-twine |
| 11728 | (package-with-python2 python-twine)) |
| 11729 | |
| 11730 | (define-public python-linecache2 |
| 11731 | (package |
| 11732 | (name "python-linecache2") |
| 11733 | (version "1.0.0") |
| 11734 | (source |
| 11735 | (origin |
| 11736 | (method url-fetch) |
| 11737 | (uri (pypi-uri "linecache2" version)) |
| 11738 | (sha256 |
| 11739 | (base32 |
| 11740 | "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb")))) |
| 11741 | (build-system python-build-system) |
| 11742 | (arguments |
| 11743 | `(;; The tests depend on unittest2, and our version is a bit too old. |
| 11744 | #:tests? #f)) |
| 11745 | (native-inputs |
| 11746 | `(("python-pbr" ,python-pbr))) |
| 11747 | (home-page |
| 11748 | "https://github.com/testing-cabal/linecache2") |
| 11749 | (synopsis "Backports of the linecache module") |
| 11750 | (description |
| 11751 | "The linecache module allows one to get any line from any file, while |
| 11752 | attempting to optimize internally, using a cache, the common case where many |
| 11753 | lines are read from a single file.") |
| 11754 | (license license:psfl))) |
| 11755 | |
| 11756 | (define-public python2-linecache2 |
| 11757 | (package-with-python2 python-linecache2)) |
| 11758 | |
| 11759 | (define-public python-traceback2 |
| 11760 | (package |
| 11761 | (name "python-traceback2") |
| 11762 | (version "1.4.0") |
| 11763 | (source |
| 11764 | (origin |
| 11765 | (method url-fetch) |
| 11766 | (uri (pypi-uri "traceback2" version)) |
| 11767 | (sha256 |
| 11768 | (base32 |
| 11769 | "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05")))) |
| 11770 | (build-system python-build-system) |
| 11771 | (arguments |
| 11772 | `(;; python-traceback2 and python-unittest2 depend on one another. |
| 11773 | #:tests? #f)) |
| 11774 | (native-inputs |
| 11775 | `(("python-pbr" ,python-pbr))) |
| 11776 | (propagated-inputs |
| 11777 | `(("python-linecache2" ,python-linecache2))) |
| 11778 | (home-page |
| 11779 | "https://github.com/testing-cabal/traceback2") |
| 11780 | (synopsis "Backports of the traceback module") |
| 11781 | (description |
| 11782 | "This module provides a standard interface to extract, format and print |
| 11783 | stack traces of Python programs. It exactly mimics the behavior of the Python |
| 11784 | interpreter when it prints a stack trace.") |
| 11785 | (license license:psfl))) |
| 11786 | |
| 11787 | (define-public python2-traceback2 |
| 11788 | (package-with-python2 python-traceback2)) |
| 11789 | |
| 11790 | (define-public python-ratelimiter |
| 11791 | (package |
| 11792 | (name "python-ratelimiter") |
| 11793 | (version "1.2.0") |
| 11794 | (source |
| 11795 | (origin |
| 11796 | (method url-fetch) |
| 11797 | (uri (pypi-uri "ratelimiter" version)) |
| 11798 | (sha256 |
| 11799 | (base32 |
| 11800 | "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p")))) |
| 11801 | (build-system python-build-system) |
| 11802 | (arguments |
| 11803 | '(#:tests? #f)) ; There are no tests in the pypi archive. |
| 11804 | (home-page "https://github.com/RazerM/ratelimiter") |
| 11805 | (synopsis "Simple rate limiting object") |
| 11806 | (description |
| 11807 | "The @code{ratelimiter} module ensures that an operation will not be |
| 11808 | executed more than a given number of times during a given period.") |
| 11809 | (license license:asl2.0))) |
| 11810 | |
| 11811 | (define-public python2-ratelimiter |
| 11812 | (package-with-python2 python-ratelimiter)) |
| 11813 | |
| 11814 | (define-public python-dukpy |
| 11815 | (package |
| 11816 | (name "python-dukpy") |
| 11817 | (version "0.3") |
| 11818 | (source |
| 11819 | (origin |
| 11820 | (method url-fetch) |
| 11821 | (uri (string-append "https://github.com/kovidgoyal/dukpy/archive/v" |
| 11822 | version ".tar.gz")) |
| 11823 | (sha256 |
| 11824 | (base32 |
| 11825 | "0pj39rfwlzivqm5hkrsza7gssg6ggpxlq5ivc8f3h7x5pfgc6y6c")))) |
| 11826 | (build-system python-build-system) |
| 11827 | (home-page "https://github.com/kovidgoyal/dukpy") |
| 11828 | (synopsis "Run JavaScript in python") |
| 11829 | (description |
| 11830 | "dukpy is a JavaScript runtime environment for Python using the duktape |
| 11831 | embeddable JavaScript engine.") |
| 11832 | ;; Dukpy is licensed under MIT like the embedded duktape library, |
| 11833 | ;; with 'errors.c' as GPL3. |
| 11834 | (license (list license:expat license:gpl3)))) |
| 11835 | |
| 11836 | (define-public python2-dukpy |
| 11837 | (package-with-python2 python-dukpy)) |
| 11838 | |
| 11839 | (define-public python-jsonrpclib-pelix |
| 11840 | (package |
| 11841 | (name "python-jsonrpclib-pelix") |
| 11842 | (version "0.3.1") |
| 11843 | (source |
| 11844 | (origin |
| 11845 | (method url-fetch) |
| 11846 | (uri (pypi-uri "jsonrpclib-pelix" version)) |
| 11847 | (sha256 |
| 11848 | (base32 |
| 11849 | "1qs95vxplxwspbrqy8bvc195s58iy43qkf75yrjfql2sim8b25sl")))) |
| 11850 | (build-system python-build-system) |
| 11851 | (home-page "https://github.com/tcalmant/jsonrpclib/") |
| 11852 | (synopsis "JSON-RPC 2.0 client library for Python") |
| 11853 | (description |
| 11854 | "This library implements the JSON-RPC v2.0 |
| 11855 | specification (backwards-compatible) as a client library for Python. This |
| 11856 | version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote |
| 11857 | services.") |
| 11858 | (license license:asl2.0))) |
| 11859 | |
| 11860 | (define-public python2-jsonrpclib-pelix |
| 11861 | (package-with-python2 python-jsonrpclib-pelix)) |
| 11862 | |
| 11863 | (define-public python-setuptools-scm-git-archive |
| 11864 | (package |
| 11865 | (name "python-setuptools-scm-git-archive") |
| 11866 | (version "1.0") |
| 11867 | (source |
| 11868 | (origin |
| 11869 | (method url-fetch) |
| 11870 | (uri (pypi-uri "setuptools_scm_git_archive" version)) |
| 11871 | (sha256 |
| 11872 | (base32 |
| 11873 | "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj")))) |
| 11874 | (build-system python-build-system) |
| 11875 | (native-inputs |
| 11876 | `(("python-pytest-3.0" ,python-pytest-3.0))) |
| 11877 | (propagated-inputs |
| 11878 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 11879 | (home-page "https://github.com/Changaco/setuptools_scm_git_archive/") |
| 11880 | (synopsis "Setuptools_scm plugin for git archives") |
| 11881 | (description |
| 11882 | "The setuptools_scm_git_archive package is a plugin to |
| 11883 | setuptools_scm, which supports obtaining versions from git archives that |
| 11884 | belong to tagged versions.") |
| 11885 | (license license:expat))) |
| 11886 | |
| 11887 | (define-public python2-setuptools-scm-git-archive |
| 11888 | (package-with-python2 python-setuptools-scm-git-archive)) |
| 11889 | |
| 11890 | (define-public python-pyclipper |
| 11891 | (package |
| 11892 | (name "python-pyclipper") |
| 11893 | (version "1.0.6") |
| 11894 | (source |
| 11895 | (origin |
| 11896 | (method url-fetch) |
| 11897 | (uri (pypi-uri "pyclipper" version ".zip")) |
| 11898 | (sha256 |
| 11899 | (base32 |
| 11900 | "1zpmwv3bya3j984y5cf9x9d5108kf6mxldcba68wiq0frv5qrssw")))) |
| 11901 | (build-system python-build-system) |
| 11902 | (arguments |
| 11903 | `(#:tests? #f)); 8 Tests fail, 37 succeed |
| 11904 | (propagated-inputs |
| 11905 | `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive))) |
| 11906 | (native-inputs |
| 11907 | `(("unzip" ,unzip))) |
| 11908 | (home-page "https://github.com/greginvm/pyclipper") |
| 11909 | (synopsis "Wrapper for Angus Johnson's Clipper library") |
| 11910 | (description |
| 11911 | "Pyclipper is a Cython wrapper for the C++ translation of the |
| 11912 | Angus Johnson's polygon clipping Clipper library (ver. 6.2.1).") |
| 11913 | (license license:expat))) |
| 11914 | |
| 11915 | (define-public python2-pyclipper |
| 11916 | (package-with-python2 python-pyclipper)) |
| 11917 | |
| 11918 | (define-public python2-booleanoperations |
| 11919 | (package |
| 11920 | (name "python2-booleanoperations") |
| 11921 | (version "0.7.1") |
| 11922 | (source |
| 11923 | (origin |
| 11924 | (method url-fetch) |
| 11925 | (uri (pypi-uri "booleanOperations" version ".zip")) |
| 11926 | (sha256 |
| 11927 | (base32 |
| 11928 | "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn")))) |
| 11929 | (build-system python-build-system) |
| 11930 | (arguments |
| 11931 | `(#:python ,python-2)) |
| 11932 | (native-inputs |
| 11933 | `(("unzip" ,unzip) |
| 11934 | ("python2-pytest-3.0" ,python2-pytest-3.0) |
| 11935 | ("python2-pytest-runner" ,python2-pytest-runner))) |
| 11936 | (propagated-inputs |
| 11937 | `(("python-fonttools" ,python2-fonttools) |
| 11938 | ("python-pyclipper" ,python2-pyclipper) |
| 11939 | ("python-ufolib" ,python2-ufolib))) |
| 11940 | (home-page "https://github.com/typemytype/booleanOperations") |
| 11941 | (synopsis "Boolean operations on paths") |
| 11942 | (description |
| 11943 | "BooleanOperations provides a Python library that enables |
| 11944 | boolean operations on paths.") |
| 11945 | (license license:expat))) |