| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 3 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2013, 2014, 2015, 2016, 2019 Andreas Enge <andreas@enge.fr> |
| 5 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 6 | ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org> |
| 7 | ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch> |
| 8 | ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com> |
| 9 | ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu> |
| 10 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net> |
| 11 | ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
| 12 | ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr> |
| 13 | ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org> |
| 14 | ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name> |
| 15 | ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com> |
| 16 | ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com> |
| 17 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| 18 | ;;; Copyright © 2015, 2017 Kyle Meyer <kyle@kyleam.com> |
| 19 | ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com> |
| 20 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> |
| 21 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
| 22 | ;;; Copyright © 2016, 2018 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 23 | ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org> |
| 24 | ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com> |
| 25 | ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com> |
| 26 | ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is> |
| 27 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
| 28 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
| 29 | ;;; Copyright © 2016, 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com> |
| 30 | ;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at> |
| 31 | ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org> |
| 32 | ;;; Copyright © 2016, 2017 Alex Vong <alexvong1995@gmail.com> |
| 33 | ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net> |
| 34 | ;;; Copyright © 2016, 2017, 2018 Julien Lepiller <julien@lepiller.eu> |
| 35 | ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
| 36 | ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be> |
| 37 | ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au> |
| 38 | ;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com> |
| 39 | ;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com> |
| 40 | ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au> |
| 41 | ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com> |
| 42 | ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org> |
| 43 | ;;; Copyright © 2017 Roel Janssen <roel@gnu.org> |
| 44 | ;;; Copyright © 2017, 2018 Kei Kebreau <kkebreau@posteo.net> |
| 45 | ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com> |
| 46 | ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com> |
| 47 | ;;; Copyright © 2017, 2019 Brendan Tildesley <mail@brendan.scot> |
| 48 | ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com |
| 49 | ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> |
| 50 | ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com> |
| 51 | ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org> |
| 52 | ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com> |
| 53 | ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org> |
| 54 | ;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 55 | ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com> |
| 56 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> |
| 57 | ;;; Copyright © 2018, 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 58 | ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com> |
| 59 | ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org> |
| 60 | ;;; Copyright © 2019 Brett Gilio <brettg@posteo.net> |
| 61 | ;;; Copyright © 2019 Sam <smbaines8@gmail.com> |
| 62 | ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us> |
| 63 | ;;; |
| 64 | ;;; This file is part of GNU Guix. |
| 65 | ;;; |
| 66 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 67 | ;;; under the terms of the GNU General Public License as published by |
| 68 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 69 | ;;; your option) any later version. |
| 70 | ;;; |
| 71 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 72 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 73 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 74 | ;;; GNU General Public License for more details. |
| 75 | ;;; |
| 76 | ;;; You should have received a copy of the GNU General Public License |
| 77 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 78 | |
| 79 | (define-module (gnu packages python-xyz) |
| 80 | #:use-module ((guix licenses) #:prefix license:) |
| 81 | #:use-module (gnu packages) |
| 82 | #:use-module (gnu packages algebra) |
| 83 | #:use-module (gnu packages adns) |
| 84 | #:use-module (gnu packages attr) |
| 85 | #:use-module (gnu packages backup) |
| 86 | #:use-module (gnu packages bash) |
| 87 | #:use-module (gnu packages check) |
| 88 | #:use-module (gnu packages compression) |
| 89 | #:use-module (gnu packages crypto) |
| 90 | #:use-module (gnu packages databases) |
| 91 | #:use-module (gnu packages file) |
| 92 | #:use-module (gnu packages fontutils) |
| 93 | #:use-module (gnu packages gcc) |
| 94 | #:use-module (gnu packages geo) |
| 95 | #:use-module (gnu packages ghostscript) |
| 96 | #:use-module (gnu packages gl) |
| 97 | #:use-module (gnu packages glib) |
| 98 | #:use-module (gnu packages graphviz) |
| 99 | #:use-module (gnu packages graphics) |
| 100 | #:use-module (gnu packages gstreamer) |
| 101 | #:use-module (gnu packages gtk) |
| 102 | #:use-module (gnu packages icu4c) |
| 103 | #:use-module (gnu packages image) |
| 104 | #:use-module (gnu packages imagemagick) |
| 105 | #:use-module (gnu packages libevent) |
| 106 | #:use-module (gnu packages libffi) |
| 107 | #:use-module (gnu packages linux) |
| 108 | #:use-module (gnu packages llvm) |
| 109 | #:use-module (gnu packages man) |
| 110 | #:use-module (gnu packages maths) |
| 111 | #:use-module (gnu packages monitoring) |
| 112 | #:use-module (gnu packages multiprecision) |
| 113 | #:use-module (gnu packages networking) |
| 114 | #:use-module (gnu packages ncurses) |
| 115 | #:use-module (gnu packages openstack) |
| 116 | #:use-module (gnu packages pcre) |
| 117 | #:use-module (gnu packages perl) |
| 118 | #:use-module (gnu packages pkg-config) |
| 119 | #:use-module (gnu packages python) |
| 120 | #:use-module (gnu packages python-check) |
| 121 | #:use-module (gnu packages python-crypto) |
| 122 | #:use-module (gnu packages python-web) |
| 123 | #:use-module (gnu packages qt) |
| 124 | #:use-module (gnu packages readline) |
| 125 | #:use-module (gnu packages sdl) |
| 126 | #:use-module (gnu packages search) |
| 127 | #:use-module (gnu packages shells) |
| 128 | #:use-module (gnu packages sphinx) |
| 129 | #:use-module (gnu packages ssh) |
| 130 | #:use-module (gnu packages terminals) |
| 131 | #:use-module (gnu packages tex) |
| 132 | #:use-module (gnu packages texinfo) |
| 133 | #:use-module (gnu packages time) |
| 134 | #:use-module (gnu packages tls) |
| 135 | #:use-module (gnu packages version-control) |
| 136 | #:use-module (gnu packages video) |
| 137 | #:use-module (gnu packages web) |
| 138 | #:use-module (gnu packages base) |
| 139 | #:use-module (gnu packages xml) |
| 140 | #:use-module (gnu packages xorg) |
| 141 | #:use-module (gnu packages xdisorg) |
| 142 | #:use-module (gnu packages tcl) |
| 143 | #:use-module (gnu packages bdw-gc) |
| 144 | #:use-module (gnu packages serialization) |
| 145 | #:use-module (guix packages) |
| 146 | #:use-module (guix download) |
| 147 | #:use-module (guix git-download) |
| 148 | #:use-module (guix hg-download) |
| 149 | #:use-module (guix utils) |
| 150 | #:use-module (guix build-system gnu) |
| 151 | #:use-module (guix build-system cmake) |
| 152 | #:use-module (guix build-system python) |
| 153 | #:use-module (guix build-system trivial) |
| 154 | #:use-module (srfi srfi-1) |
| 155 | #:use-module (srfi srfi-26)) |
| 156 | |
| 157 | (define-public python-psutil |
| 158 | (package |
| 159 | (name "python-psutil") |
| 160 | (version "5.6.2") |
| 161 | (source |
| 162 | (origin |
| 163 | (method url-fetch) |
| 164 | (uri (pypi-uri "psutil" version)) |
| 165 | (sha256 |
| 166 | (base32 |
| 167 | "1v95vb5385qscfdvphv8l2w22bmir3d7yhpi02n58v3mlqy1r3l2")))) |
| 168 | (build-system python-build-system) |
| 169 | (arguments |
| 170 | ;; FIXME: some tests does not return and times out. |
| 171 | '(#:tests? #f)) |
| 172 | (home-page "https://www.github.com/giampaolo/psutil") |
| 173 | (synopsis "Library for retrieving information on running processes") |
| 174 | (description |
| 175 | "psutil (Python system and process utilities) is a library for retrieving |
| 176 | information on running processes and system utilization (CPU, memory, disks, |
| 177 | network) in Python. It is useful mainly for system monitoring, profiling and |
| 178 | limiting process resources and management of running processes. It implements |
| 179 | many functionalities offered by command line tools such as: ps, top, lsof, |
| 180 | netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, |
| 181 | pidof, tty, taskset, pmap.") |
| 182 | (properties `((python2-variant . ,(delay python2-psutil)))) |
| 183 | (license license:bsd-3))) |
| 184 | |
| 185 | (define-public python2-psutil |
| 186 | (let ((base (package-with-python2 (strip-python2-variant python-psutil)))) |
| 187 | (package |
| 188 | (inherit base) |
| 189 | (propagated-inputs |
| 190 | `(("python2-enum34" ,python2-enum34) ;optional |
| 191 | ,@(package-propagated-inputs base)))))) |
| 192 | |
| 193 | (define-public python-shapely |
| 194 | (package |
| 195 | (name "python-shapely") |
| 196 | (version "1.6.4.post2") |
| 197 | (source |
| 198 | (origin |
| 199 | (method url-fetch) |
| 200 | (uri (pypi-uri "Shapely" version)) |
| 201 | (sha256 |
| 202 | (base32 |
| 203 | "03r42fmd9alp6r3q95ad6rldq2f7n1wimrw53zy5kpn33yv7pf64")))) |
| 204 | (build-system python-build-system) |
| 205 | (native-inputs |
| 206 | `(("python-cython" ,python-cython) |
| 207 | ("python-matplotlib" ,python-matplotlib) |
| 208 | ("python-pytest" ,python-pytest) |
| 209 | ("python-pytest-cov" ,python-pytest-cov))) |
| 210 | (inputs |
| 211 | `(("geos" ,geos))) |
| 212 | (propagated-inputs |
| 213 | `(("python-numpy" ,python-numpy))) |
| 214 | (arguments |
| 215 | `(#:phases |
| 216 | (modify-phases %standard-phases |
| 217 | (add-after 'unpack 'patch-geos-path |
| 218 | (lambda* (#:key inputs #:allow-other-keys) |
| 219 | (let ((geos (assoc-ref inputs "geos")) |
| 220 | (glibc (assoc-ref inputs ,(if (%current-target-system) |
| 221 | "cross-libc" "libc")))) |
| 222 | (substitute* "shapely/geos.py" |
| 223 | (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)") |
| 224 | (string-append "_lgeos = load_dll('geos_c', fallbacks=['" |
| 225 | geos "/lib/libgeos_c.so'])")) |
| 226 | (("free = load_dll\\('c'\\)\\.free") |
| 227 | (string-append "free = load_dll('c', fallbacks=['" |
| 228 | glibc "/lib/libc.so.6']).free")))) |
| 229 | #t))))) |
| 230 | (home-page "https://github.com/Toblerity/Shapely") |
| 231 | (synopsis "Library for the manipulation and analysis of geometric objects") |
| 232 | (description "Shapely is a Python package for manipulation and analysis of |
| 233 | planar geometric objects. It is based on the @code{GEOS} library.") |
| 234 | (license license:bsd-3))) |
| 235 | |
| 236 | (define-public python-shortuuid |
| 237 | (package |
| 238 | (name "python-shortuuid") |
| 239 | (version "0.5.0") |
| 240 | (source |
| 241 | (origin |
| 242 | (method url-fetch) |
| 243 | (uri (pypi-uri "shortuuid" version)) |
| 244 | (sha256 |
| 245 | (base32 |
| 246 | "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh")))) |
| 247 | (build-system python-build-system) |
| 248 | (native-inputs |
| 249 | `(("python-pep8" ,python-pep8))) |
| 250 | (home-page "https://github.com/skorokithakis/shortuuid") |
| 251 | (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs") |
| 252 | (description |
| 253 | "@code{shortuuid} is a Python library for generating concise, unambiguous |
| 254 | and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid} |
| 255 | module and then similar looking characters are removed.") |
| 256 | (license license:bsd-3))) |
| 257 | |
| 258 | (define-public python-logwrap |
| 259 | (package |
| 260 | (name "python-logwrap") |
| 261 | (version "3.2.1") |
| 262 | (source |
| 263 | (origin |
| 264 | (method url-fetch) |
| 265 | (uri (pypi-uri "logwrap" version ".zip")) |
| 266 | (sha256 |
| 267 | (base32 |
| 268 | "1d2k0hvpbi51vl410y8fbs5m0nxnlh2k7gr2nrh3k81ibhzscsra")))) |
| 269 | (build-system python-build-system) |
| 270 | (propagated-inputs |
| 271 | `(("python-six" ,python-six) |
| 272 | ("python-typing" ,python-typing))) |
| 273 | (native-inputs |
| 274 | `(("unzip" ,unzip) |
| 275 | ("python-cython" ,python-cython) |
| 276 | ("python-pytest" ,python-pytest) |
| 277 | ("python-pytest-cov" ,python-pytest-cov) |
| 278 | ("python-pytest-runner" ,python-pytest-runner))) |
| 279 | (home-page "https://github.com/penguinolog/logwrap") |
| 280 | (synopsis "Decorator for logging function arguments") |
| 281 | (description "This package provides a decorator to log function arguments |
| 282 | and function call return values in a human-readable way.") |
| 283 | (license license:asl2.0))) |
| 284 | |
| 285 | (define-public python2-shapely |
| 286 | (package-with-python2 python-shapely)) |
| 287 | |
| 288 | (define-public python-clyent |
| 289 | (package |
| 290 | (name "python-clyent") |
| 291 | (version "1.2.1") |
| 292 | (source |
| 293 | (origin |
| 294 | (method url-fetch) |
| 295 | (uri (pypi-uri "clyent" version)) |
| 296 | (sha256 |
| 297 | (base32 |
| 298 | "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj")))) |
| 299 | (build-system python-build-system) |
| 300 | (native-inputs |
| 301 | `(("python-mock" ,python-mock))) |
| 302 | (home-page "https://github.com/binstar/clyent") |
| 303 | (synopsis "Command line client library") |
| 304 | (description "Clyent is a Python command line utiliy library. It is used |
| 305 | by @code{binstar}, @code{binstar-build} and @code{chalmers}.") |
| 306 | (license license:bsd-3))) |
| 307 | |
| 308 | (define-public python2-clyent |
| 309 | (package-with-python2 python-clyent)) |
| 310 | |
| 311 | (define-public python-babel |
| 312 | (package |
| 313 | (name "python-babel") |
| 314 | (version "2.6.0") |
| 315 | (source |
| 316 | (origin |
| 317 | (method url-fetch) |
| 318 | (uri (pypi-uri "Babel" version)) |
| 319 | (sha256 |
| 320 | (base32 |
| 321 | "08rxmbx2s4irp0w0gmn498vns5xy0fagm0fg33xa772jiks51flc")))) |
| 322 | (build-system python-build-system) |
| 323 | (native-inputs |
| 324 | `(("python-freezegun" ,python-freezegun) |
| 325 | ("python-pytest" ,python-pytest))) |
| 326 | (propagated-inputs |
| 327 | `(("python-pytz" ,python-pytz))) |
| 328 | (arguments |
| 329 | `(#:phases (modify-phases %standard-phases |
| 330 | (replace 'check |
| 331 | (lambda _ (invoke "pytest" "-vv")))))) |
| 332 | (home-page "http://babel.pocoo.org/") |
| 333 | (synopsis |
| 334 | "Tools for internationalizing Python applications") |
| 335 | (description |
| 336 | "Babel is composed of two major parts: |
| 337 | - tools to build and work with gettext message catalogs |
| 338 | - a Python interface to the CLDR (Common Locale Data Repository), providing |
| 339 | access to various locale display names, localized number and date formatting, |
| 340 | etc. ") |
| 341 | (license license:bsd-3))) |
| 342 | |
| 343 | (define-public python2-babel |
| 344 | (package-with-python2 python-babel)) |
| 345 | |
| 346 | (define-public python2-backport-ssl-match-hostname |
| 347 | (package |
| 348 | (name "python2-backport-ssl-match-hostname") |
| 349 | (version "3.5.0.1") |
| 350 | (source |
| 351 | (origin |
| 352 | (method url-fetch) |
| 353 | (uri (pypi-uri "backports.ssl_match_hostname" version)) |
| 354 | (sha256 |
| 355 | (base32 |
| 356 | "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh")))) |
| 357 | (build-system python-build-system) |
| 358 | (arguments |
| 359 | `(#:python ,python-2 |
| 360 | #:tests? #f)) ; no test target |
| 361 | (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname") |
| 362 | (synopsis "Backport of ssl.match_hostname() function from Python 3.5") |
| 363 | (description |
| 364 | "This backport brings the ssl.match_hostname() function to users of |
| 365 | earlier versions of Python. The function checks the hostname in the |
| 366 | certificate returned by the server to which a connection has been established, |
| 367 | and verifies that it matches the intended target hostname.") |
| 368 | (license license:psfl))) |
| 369 | |
| 370 | (define-public python-hdf4 |
| 371 | (package |
| 372 | (name "python-hdf4") |
| 373 | (version "0.9") |
| 374 | (source |
| 375 | (origin |
| 376 | (method url-fetch) |
| 377 | (uri (pypi-uri name version)) |
| 378 | (sha256 |
| 379 | (base32 |
| 380 | "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks")))) |
| 381 | (build-system python-build-system) |
| 382 | (native-inputs `(("nose" ,python-nose))) |
| 383 | (propagated-inputs `(("numpy" ,python-numpy))) |
| 384 | (inputs |
| 385 | `(("hdf4" ,hdf4) |
| 386 | ("libjpeg" ,libjpeg) |
| 387 | ("zlib" ,zlib))) |
| 388 | (arguments |
| 389 | `(#:phases |
| 390 | (modify-phases %standard-phases |
| 391 | (replace 'check |
| 392 | (lambda _ |
| 393 | ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes |
| 394 | ;; on to import numpy. Somehow this works on their CI system. |
| 395 | ;; Let's just manage PYTHONPATH here instead. |
| 396 | (substitute* "runexamples.sh" |
| 397 | (("export PYTHONPATH=.*") "")) |
| 398 | (setenv "PYTHONPATH" |
| 399 | (string-append (getcwd) ":" |
| 400 | (getenv "PYTHONPATH"))) |
| 401 | (invoke "./runexamples.sh") |
| 402 | (invoke "nosetests" "-v")))))) |
| 403 | (home-page "https://github.com/fhs/python-hdf4") |
| 404 | (synopsis "Python interface to the NCSA HDF4 library") |
| 405 | (description |
| 406 | "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library, |
| 407 | which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s. |
| 408 | NetCDF files can also be read and modified. Python-HDF4 is a fork of |
| 409 | @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.") |
| 410 | (license license:expat))) |
| 411 | |
| 412 | (define-public python2-hdf4 |
| 413 | (package-with-python2 python-hdf4)) |
| 414 | |
| 415 | (define-public python-h5py |
| 416 | (package |
| 417 | (name "python-h5py") |
| 418 | (version "2.8.0") |
| 419 | (source |
| 420 | (origin |
| 421 | (method url-fetch) |
| 422 | (uri (pypi-uri "h5py" version)) |
| 423 | (sha256 |
| 424 | (base32 |
| 425 | "0mdr6wrq02ac93m1aqx9kad0ppfzmm4imlxqgyy1x4l7hmdcc9p6")))) |
| 426 | (build-system python-build-system) |
| 427 | (arguments |
| 428 | `(#:tests? #f ; no test target |
| 429 | #:phases |
| 430 | (modify-phases %standard-phases |
| 431 | (add-after 'unpack 'fix-hdf5-paths |
| 432 | (lambda* (#:key inputs #:allow-other-keys) |
| 433 | (let ((prefix (assoc-ref inputs "hdf5"))) |
| 434 | (substitute* "setup_build.py" |
| 435 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") |
| 436 | (string-append "['" prefix "/lib" "']")) |
| 437 | (("'/opt/local/include', '/usr/local/include'") |
| 438 | (string-append "'" prefix "/include" "'"))) |
| 439 | (substitute* "setup_configure.py" |
| 440 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") |
| 441 | (string-append "['" prefix "/lib" "']"))) |
| 442 | #t)))))) |
| 443 | (propagated-inputs |
| 444 | `(("python-six" ,python-six) |
| 445 | ("python-numpy" ,python-numpy))) |
| 446 | (inputs |
| 447 | `(("hdf5" ,hdf5))) |
| 448 | (native-inputs |
| 449 | `(("python-cython" ,python-cython) |
| 450 | ("python-pkgconfig" ,python-pkgconfig))) |
| 451 | (home-page "http://www.h5py.org/") |
| 452 | (synopsis "Read and write HDF5 files from Python") |
| 453 | (description |
| 454 | "The h5py package provides both a high- and low-level interface to the |
| 455 | HDF5 library from Python. The low-level interface is intended to be a |
| 456 | complete wrapping of the HDF5 API, while the high-level component supports |
| 457 | access to HDF5 files, datasets and groups using established Python and NumPy |
| 458 | concepts.") |
| 459 | (license license:bsd-3))) |
| 460 | |
| 461 | (define-public python2-h5py |
| 462 | (package-with-python2 python-h5py)) |
| 463 | |
| 464 | (define-public python-sh |
| 465 | (package |
| 466 | (name "python-sh") |
| 467 | (version "1.12.14") |
| 468 | (source |
| 469 | (origin |
| 470 | (method url-fetch) |
| 471 | (uri (pypi-uri "sh" version)) |
| 472 | (sha256 |
| 473 | (base32 |
| 474 | "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm")))) |
| 475 | (build-system python-build-system) |
| 476 | (arguments |
| 477 | '(#:phases |
| 478 | (modify-phases %standard-phases |
| 479 | (replace 'check |
| 480 | (lambda _ |
| 481 | ;; XXX: A Python 2 test fails when HOME=/homeless-shelter. |
| 482 | (setenv "HOME" "/tmp") |
| 483 | (invoke "python" "sh.py" "test")))))) |
| 484 | (native-inputs |
| 485 | `(("python-coverage" ,python-coverage))) |
| 486 | (home-page "https://github.com/amoffat/sh") |
| 487 | (synopsis "Python subprocess replacement") |
| 488 | (description "This package provides a replacement for Python's |
| 489 | @code{subprocess} feature.") |
| 490 | (license license:expat))) |
| 491 | |
| 492 | (define-public python2-sh |
| 493 | (package-with-python2 python-sh)) |
| 494 | |
| 495 | (define-public python-cftime |
| 496 | (package |
| 497 | (name "python-cftime") |
| 498 | (version "1.0.3.4") |
| 499 | (source |
| 500 | (origin |
| 501 | (method url-fetch) |
| 502 | (uri (pypi-uri "cftime" version)) |
| 503 | (sha256 |
| 504 | (base32 |
| 505 | "0362dhxbzk593walyjz30dll6y2y79wialik647cbwdsf3ad0x6x")))) |
| 506 | (build-system python-build-system) |
| 507 | (propagated-inputs |
| 508 | `(("python-numpy" ,python-numpy))) |
| 509 | (native-inputs |
| 510 | `(("python-coveralls" ,python-coveralls) |
| 511 | ("python-cython" ,python-cython) |
| 512 | ("python-pytest-cov" ,python-pytest-cov))) |
| 513 | (home-page "https://github.com/Unidata/cftime") |
| 514 | (synopsis "Library for time handling") |
| 515 | (description |
| 516 | "This package provides time-handling functionality that used to be part |
| 517 | of the netcdf4 package before.") |
| 518 | ;; This package claims to include code under the GPLv3 but is released |
| 519 | ;; under ISC. |
| 520 | (license (list license:isc license:gpl3+)))) |
| 521 | |
| 522 | (define-public python-netcdf4 |
| 523 | (package |
| 524 | (name "python-netcdf4") |
| 525 | (version "1.4.2") |
| 526 | (source |
| 527 | (origin |
| 528 | (method url-fetch) |
| 529 | (uri (pypi-uri "netCDF4" version)) |
| 530 | (sha256 |
| 531 | (base32 |
| 532 | "0c0sklgrmv15ygliin8qq0hp7vanmbi74m6zpi0r1ksr0hssyd5r")))) |
| 533 | (build-system python-build-system) |
| 534 | (arguments |
| 535 | '(#:phases |
| 536 | (modify-phases %standard-phases |
| 537 | (add-after 'unpack 'configure-locations |
| 538 | (lambda* (#:key inputs #:allow-other-keys) |
| 539 | (setenv "HDF5_DIR" (assoc-ref inputs "hdf5")) |
| 540 | #t))))) |
| 541 | (native-inputs |
| 542 | `(("python-cython" ,python-cython))) |
| 543 | (propagated-inputs |
| 544 | `(("python-numpy" ,python-numpy) |
| 545 | ("python-cftime" ,python-cftime))) |
| 546 | (inputs |
| 547 | `(("netcdf" ,netcdf) |
| 548 | ("hdf4" ,hdf4) |
| 549 | ("hdf5" ,hdf5))) |
| 550 | (home-page "https://github.com/Unidata/netcdf4-python") |
| 551 | (synopsis "Python/numpy interface to the netCDF library") |
| 552 | (description "Netcdf4-python is a Python interface to the netCDF C |
| 553 | library. netCDF version 4 has many features not found in earlier |
| 554 | versions of the library and is implemented on top of HDF5. This module |
| 555 | can read and write files in both the new netCDF 4 and the old netCDF 3 |
| 556 | format, and can create files that are readable by HDF5 clients. The |
| 557 | API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar |
| 558 | to users of that module.") |
| 559 | ;; The software is mainly ISC, but includes some files covered |
| 560 | ;; by the Expat license. |
| 561 | (license (list license:isc license:expat)))) |
| 562 | |
| 563 | (define-public python2-netcdf4 |
| 564 | (package-with-python2 python-netcdf4)) |
| 565 | |
| 566 | (define-public python-lockfile |
| 567 | (package |
| 568 | (name "python-lockfile") |
| 569 | (version "0.12.2") |
| 570 | (source |
| 571 | (origin |
| 572 | (method url-fetch) |
| 573 | (uri (pypi-uri "lockfile" version)) |
| 574 | (sha256 |
| 575 | (base32 |
| 576 | "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) |
| 577 | (build-system python-build-system) |
| 578 | (arguments '(#:test-target "check")) |
| 579 | (native-inputs |
| 580 | `(("python-pbr" ,python-pbr))) |
| 581 | (home-page "https://launchpad.net/pylockfile") |
| 582 | (synopsis "Platform-independent file locking module") |
| 583 | (description |
| 584 | "The lockfile package exports a LockFile class which provides a simple |
| 585 | API for locking files.") |
| 586 | (license license:expat))) |
| 587 | |
| 588 | (define-public python2-lockfile |
| 589 | (package-with-python2 python-lockfile)) |
| 590 | |
| 591 | (define-public python-semantic-version |
| 592 | (package |
| 593 | (name "python-semantic-version") |
| 594 | (version "2.6.0") |
| 595 | (source |
| 596 | (origin |
| 597 | (method url-fetch) |
| 598 | (uri (pypi-uri "semantic_version" version)) |
| 599 | (sha256 |
| 600 | (base32 |
| 601 | "1h2l9xyg1zzsda6kjcmfcgycbvrafwci283vcr1v5sbk01l2hhra")))) |
| 602 | (build-system python-build-system) |
| 603 | (arguments |
| 604 | `(#:tests? #f)) ; PyPI tarball lacks tests |
| 605 | (home-page "https://github.com/rbarrois/python-semanticversion") |
| 606 | (synopsis "Semantic versioning module for Python") |
| 607 | (description |
| 608 | "The @code{semantic_version} class is a small library for handling |
| 609 | @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python. |
| 610 | |
| 611 | It can compare versions, generate a new version that represents a bump in one of |
| 612 | the version levels, and check whether any given string is a proper semantic |
| 613 | version identifier.") |
| 614 | (license license:bsd-3))) |
| 615 | |
| 616 | (define-public python2-semantic-version |
| 617 | (package-with-python2 python-semantic-version)) |
| 618 | |
| 619 | (define-public python-serpent |
| 620 | (package |
| 621 | (name "python-serpent") |
| 622 | (version "1.28") |
| 623 | (source |
| 624 | (origin |
| 625 | (method url-fetch) |
| 626 | (uri (pypi-uri "serpent" version)) |
| 627 | (sha256 |
| 628 | (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk")))) |
| 629 | (build-system python-build-system) |
| 630 | (native-inputs |
| 631 | `(("python-attrs" ,python-attrs) |
| 632 | ("python-pytz" ,python-pytz))) |
| 633 | (home-page "https://github.com/irmen/Serpent") |
| 634 | (synopsis "Serializer for literal Python expressions") |
| 635 | (description |
| 636 | "Serpent provides @code{ast.literal_eval()}-compatible object tree |
| 637 | serialization. It serializes an object tree into bytes (an utf-8 encoded |
| 638 | string) that can be decoded and then passed as-is to @code{ast.literal_eval()} |
| 639 | to rebuild the original object tree. |
| 640 | |
| 641 | Because only safe literals are encoded, it is safe to send serpent data to |
| 642 | other machines, such as over the network.") |
| 643 | (license license:expat))) |
| 644 | |
| 645 | (define-public python-setuptools |
| 646 | (package |
| 647 | (name "python-setuptools") |
| 648 | (version "40.0.0") |
| 649 | (source |
| 650 | (origin |
| 651 | (method url-fetch) |
| 652 | (uri (pypi-uri "setuptools" version ".zip")) |
| 653 | (sha256 |
| 654 | (base32 |
| 655 | "0pq116lr14gnc62v76nk0npkm6krb2mpp7p9ab369zgv4n7dnah1")) |
| 656 | (modules '((guix build utils))) |
| 657 | (snippet |
| 658 | '(begin |
| 659 | ;; Remove included binaries which are used to build self-extracting |
| 660 | ;; installers for Windows. |
| 661 | ;; TODO: Find some way to build them ourself so we can include them. |
| 662 | (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$")) |
| 663 | #t)))) |
| 664 | (build-system python-build-system) |
| 665 | ;; FIXME: Tests require pytest, which itself relies on setuptools. |
| 666 | ;; One could bootstrap with an internal untested setuptools. |
| 667 | (arguments |
| 668 | `(#:tests? #f)) |
| 669 | (home-page "https://pypi.python.org/pypi/setuptools") |
| 670 | (synopsis |
| 671 | "Library designed to facilitate packaging Python projects") |
| 672 | (description |
| 673 | "Setuptools is a fully-featured, stable library designed to facilitate |
| 674 | packaging Python projects, where packaging includes: |
| 675 | Python package and module definitions, |
| 676 | distribution package metadata, |
| 677 | test hooks, |
| 678 | project installation, |
| 679 | platform-specific details, |
| 680 | Python 3 support.") |
| 681 | ;; TODO: setuptools now bundles the following libraries: |
| 682 | ;; packaging, pyparsing, six and appdirs. How to unbundle? |
| 683 | (license (list license:psfl ; setuptools itself |
| 684 | license:expat ; six, appdirs, pyparsing |
| 685 | license:asl2.0 ; packaging is dual ASL2/BSD-2 |
| 686 | license:bsd-2)))) |
| 687 | |
| 688 | (define-public python2-setuptools |
| 689 | (package-with-python2 python-setuptools)) |
| 690 | |
| 691 | (define-public python-uniseg |
| 692 | (package |
| 693 | (name "python-uniseg") |
| 694 | (version "0.7.1") |
| 695 | (source |
| 696 | (origin |
| 697 | (method url-fetch) |
| 698 | (uri (pypi-uri "uniseg" version ".zip")) |
| 699 | (sha256 |
| 700 | (base32 |
| 701 | "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2")))) |
| 702 | (build-system python-build-system) |
| 703 | (arguments |
| 704 | '(#:tests? #f)) ; The test suite requires network access. |
| 705 | (native-inputs |
| 706 | `(("unzip" ,unzip))) |
| 707 | (home-page |
| 708 | "https://bitbucket.org/emptypage/uniseg-python") |
| 709 | (synopsis |
| 710 | "Python library to determine Unicode text segmentations") |
| 711 | (description |
| 712 | "Uniseg is a Python package used to determine Unicode text segmentations. |
| 713 | Supported segmentations include: |
| 714 | @enumerate |
| 715 | @item @dfn{Code point} (any value in the Unicode codespace) |
| 716 | @item @dfn{Grapheme cluster} (user-perceived character made of a single or |
| 717 | multiple Unicode code points, e.g. \"G\" + acute-accent) |
| 718 | @item Word break |
| 719 | @item Sentence break |
| 720 | @item Line break |
| 721 | @end enumerate") |
| 722 | (license license:expat))) |
| 723 | |
| 724 | (define-public python2-uniseg |
| 725 | (package-with-python2 python-uniseg)) |
| 726 | |
| 727 | (define-public python-humanfriendly |
| 728 | (package |
| 729 | (name "python-humanfriendly") |
| 730 | (version "4.4.1") |
| 731 | (source |
| 732 | (origin |
| 733 | (method url-fetch) |
| 734 | (uri (pypi-uri "humanfriendly" version)) |
| 735 | (sha256 |
| 736 | (base32 |
| 737 | "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi")))) |
| 738 | (build-system python-build-system) |
| 739 | (arguments |
| 740 | `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly. |
| 741 | #:tests? #f)) |
| 742 | (propagated-inputs |
| 743 | `(("python-monotonic" ,python-monotonic))) |
| 744 | (home-page "https://humanfriendly.readthedocs.io") |
| 745 | (synopsis "Human-friendly input and output in Python") |
| 746 | (description |
| 747 | "The functions and classes in @code{humanfriendly} can be used to make |
| 748 | text interfaces more user-friendly. It includes tools to parse and format |
| 749 | numbers, file sizes, and timespans, timers for long-running operations, menus |
| 750 | to allow the user to choose from a list of options, and terminal interaction |
| 751 | helpers.") |
| 752 | (license license:expat))) |
| 753 | |
| 754 | (define-public python2-humanfriendly |
| 755 | (package-with-python2 python-humanfriendly)) |
| 756 | |
| 757 | (define-public python-capturer |
| 758 | (package |
| 759 | (name "python-capturer") |
| 760 | (version "2.4") |
| 761 | (source |
| 762 | (origin |
| 763 | (method url-fetch) |
| 764 | (uri (pypi-uri "capturer" version)) |
| 765 | (sha256 |
| 766 | (base32 |
| 767 | "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089")))) |
| 768 | (build-system python-build-system) |
| 769 | (arguments |
| 770 | `(#:tests? #f)) |
| 771 | (propagated-inputs |
| 772 | `(("python-humanfriendly" ,python-humanfriendly))) |
| 773 | (home-page "https://capturer.readthedocs.io") |
| 774 | (synopsis "Capture stdout and stderr streams of the current process") |
| 775 | (description |
| 776 | "The capturer package makes it easy to capture the stdout and stderr |
| 777 | streams of the current process and subprocesses. Output can be relayed |
| 778 | to the terminal in real time but is also available to the Python program |
| 779 | for additional processing.") |
| 780 | (license license:expat))) |
| 781 | |
| 782 | (define-public python2-capturer |
| 783 | (package-with-python2 python-capturer)) |
| 784 | |
| 785 | (define-public python-case |
| 786 | (package |
| 787 | (name "python-case") |
| 788 | (version "1.5.3") |
| 789 | (source |
| 790 | (origin |
| 791 | (method url-fetch) |
| 792 | (uri (pypi-uri "case" version)) |
| 793 | (sha256 |
| 794 | (base32 |
| 795 | "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8")))) |
| 796 | (build-system python-build-system) |
| 797 | (propagated-inputs |
| 798 | `(("python-mock" ,python-mock) |
| 799 | ("python-nose" ,python-nose) |
| 800 | ("python-six" ,python-six) |
| 801 | ("python-unittest2" ,python-unittest2))) |
| 802 | (native-inputs |
| 803 | `(("python-coverage" ,python-coverage))) |
| 804 | (home-page "https://github.com/celery/case") |
| 805 | (synopsis "Unittest utilities and convenience methods") |
| 806 | (description |
| 807 | "The @code{case} package provides utilities on top of unittest, including |
| 808 | some helpful Python 2 compatibility convenience methods.") |
| 809 | (license license:bsd-3))) |
| 810 | |
| 811 | (define-public python-verboselogs |
| 812 | (package |
| 813 | (name "python-verboselogs") |
| 814 | (version "1.7") |
| 815 | (source |
| 816 | (origin |
| 817 | (method url-fetch) |
| 818 | (uri (pypi-uri "verboselogs" version)) |
| 819 | (sha256 |
| 820 | (base32 |
| 821 | "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3")))) |
| 822 | (build-system python-build-system) |
| 823 | (native-inputs |
| 824 | `(("python-mock" ,python-mock) |
| 825 | ("python-astroid" ,python-astroid) |
| 826 | ("python-pylint" ,python-pylint))) |
| 827 | (home-page "https://verboselogs.readthedocs.io") |
| 828 | (synopsis "Verbose logging level for Python's logging module") |
| 829 | (description |
| 830 | "The @code{verboselogs} package extends Python's @code{logging} module to |
| 831 | add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.") |
| 832 | (license license:expat))) |
| 833 | |
| 834 | (define-public python2-verboselogs |
| 835 | (package-with-python2 python-verboselogs)) |
| 836 | |
| 837 | (define-public python-coloredlogs |
| 838 | (package |
| 839 | (name "python-coloredlogs") |
| 840 | (version "7.3") |
| 841 | (source |
| 842 | (origin |
| 843 | (method url-fetch) |
| 844 | (uri (pypi-uri "coloredlogs" version)) |
| 845 | (sha256 |
| 846 | (base32 |
| 847 | "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9")))) |
| 848 | (build-system python-build-system) |
| 849 | (arguments |
| 850 | `(;Tests require some updated modules |
| 851 | #:tests? #f)) |
| 852 | (propagated-inputs |
| 853 | `(("python-capturer" ,python-capturer))) |
| 854 | (home-page "https://coloredlogs.readthedocs.io") |
| 855 | (synopsis "Colored stream handler for Python's logging module") |
| 856 | (description |
| 857 | "The @code{coloredlogs} package enables colored terminal output for |
| 858 | Python's logging module. The @code{ColoredFormatter} class inherits from |
| 859 | @code{logging.Formatter} and uses ANSI escape sequences to render your logging |
| 860 | messages in color.") |
| 861 | (license license:expat))) |
| 862 | |
| 863 | (define-public python2-coloredlogs |
| 864 | (package-with-python2 python-coloredlogs)) |
| 865 | |
| 866 | (define-public python-et-xmlfile |
| 867 | (package |
| 868 | (name "python-et-xmlfile") |
| 869 | (version "1.0.1") |
| 870 | (source |
| 871 | (origin |
| 872 | (method url-fetch) |
| 873 | (uri (pypi-uri "et_xmlfile" version)) |
| 874 | (sha256 |
| 875 | (base32 |
| 876 | "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1")))) |
| 877 | (build-system python-build-system) |
| 878 | (arguments |
| 879 | `(#:phases (modify-phases %standard-phases |
| 880 | (replace 'check |
| 881 | (lambda _ |
| 882 | (invoke "pytest")))))) |
| 883 | (native-inputs |
| 884 | `(("python-pytest" ,python-pytest) |
| 885 | ("python-lxml" ,python-lxml))) ;used for the tests |
| 886 | (home-page "https://bitbucket.org/openpyxl/et_xmlfile") |
| 887 | (synopsis "Low memory implementation of @code{lxml.xmlfile}") |
| 888 | (description "This Python library is based upon the @code{xmlfile} module |
| 889 | from @code{lxml}. It aims to provide a low memory, compatible implementation |
| 890 | of @code{xmlfile}.") |
| 891 | (license license:expat))) |
| 892 | |
| 893 | (define-public python2-et-xmlfile |
| 894 | (package-with-python2 python-et-xmlfile)) |
| 895 | |
| 896 | (define-public python-openpyxl |
| 897 | (package |
| 898 | (name "python-openpyxl") |
| 899 | (version "2.6.2") |
| 900 | (source |
| 901 | (origin |
| 902 | ;; We use the upstream repository, as the tests are not included in the |
| 903 | ;; PyPI releases. |
| 904 | (method hg-fetch) |
| 905 | (uri (hg-reference |
| 906 | (url "https://bitbucket.org/openpyxl/openpyxl") |
| 907 | (changeset version))) |
| 908 | (file-name (string-append name "-" version "-checkout")) |
| 909 | (sha256 |
| 910 | (base32 "1qhij6kcvdxqjy4g6193nsv4q7fy8n4fwyd3c2z047idlm6s3j4w")))) |
| 911 | (build-system python-build-system) |
| 912 | (arguments |
| 913 | `(#:phases (modify-phases %standard-phases |
| 914 | (replace 'check |
| 915 | (lambda _ |
| 916 | (invoke "pytest")))))) |
| 917 | (native-inputs |
| 918 | ;; For the test suite. |
| 919 | `(("python-lxml" ,python-lxml) |
| 920 | ("python-pillow" ,python-pillow) |
| 921 | ("python-pytest" ,python-pytest))) |
| 922 | (propagated-inputs |
| 923 | `(("python-et-xmlfile" ,python-et-xmlfile) |
| 924 | ("python-jdcal" ,python-jdcal))) |
| 925 | (home-page "https://openpyxl.readthedocs.io") |
| 926 | (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files") |
| 927 | (description "This Python library allows reading and writing to the Excel XLSX, XLSM, |
| 928 | XLTX and XLTM file formats that are defined by the Office Open XML (OOXML) |
| 929 | standard.") |
| 930 | (license license:expat))) |
| 931 | |
| 932 | (define-public python-eventlet |
| 933 | (package |
| 934 | (name "python-eventlet") |
| 935 | (version "0.20.1") |
| 936 | (source |
| 937 | (origin |
| 938 | (method url-fetch) |
| 939 | (uri (pypi-uri "eventlet" version)) |
| 940 | (sha256 |
| 941 | (base32 |
| 942 | "0f3q55mq4n021wb7qa53pz3ix6i2py64sap66vsaqm2scjw83m9s")))) |
| 943 | (build-system python-build-system) |
| 944 | (propagated-inputs |
| 945 | `(("python-greenlet" ,python-greenlet))) |
| 946 | (arguments |
| 947 | ;; TODO: Requires unpackaged 'enum-compat'. |
| 948 | '(#:tests? #f)) |
| 949 | (home-page "http://eventlet.net") |
| 950 | (synopsis "Concurrent networking library for Python") |
| 951 | (description |
| 952 | "Eventlet is a concurrent networking library for Python that |
| 953 | allows you to change how you run your code, not how you write it. |
| 954 | It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O. |
| 955 | Coroutines ensure that the developer uses a blocking style of programming |
| 956 | that is similar to threading, but provide the benefits of non-blocking I/O. |
| 957 | The event dispatch is implicit, which means you can easily use @code{Eventlet} |
| 958 | from the Python interpreter, or as a small part of a larger application.") |
| 959 | (license license:expat))) |
| 960 | |
| 961 | (define-public python2-eventlet |
| 962 | (let ((base (package-with-python2 |
| 963 | (strip-python2-variant python-eventlet)))) |
| 964 | (package (inherit base) |
| 965 | (propagated-inputs |
| 966 | `(("python2-enum34" ,python2-enum34) |
| 967 | ,@(package-propagated-inputs base)))))) |
| 968 | |
| 969 | (define-public python-six |
| 970 | (package |
| 971 | (name "python-six") |
| 972 | (version "1.11.0") |
| 973 | (source |
| 974 | (origin |
| 975 | (method url-fetch) |
| 976 | (uri (pypi-uri "six" version)) |
| 977 | (sha256 |
| 978 | (base32 |
| 979 | "1scqzwc51c875z23phj48gircqjgnn3af8zy2izjwmnlxrxsgs3h")))) |
| 980 | (build-system python-build-system) |
| 981 | (arguments |
| 982 | `(#:phases |
| 983 | (modify-phases %standard-phases |
| 984 | (replace 'check |
| 985 | (lambda _ |
| 986 | (invoke "py.test" "-v")))))) |
| 987 | (native-inputs |
| 988 | `(("python-py" ,python-py) |
| 989 | ("python-pytest" ,python-pytest-bootstrap))) |
| 990 | (home-page "https://pypi.python.org/pypi/six/") |
| 991 | (synopsis "Python 2 and 3 compatibility utilities") |
| 992 | (description |
| 993 | "Six is a Python 2 and 3 compatibility library. It provides utility |
| 994 | functions for smoothing over the differences between the Python versions with |
| 995 | the goal of writing Python code that is compatible on both Python versions. |
| 996 | Six supports every Python version since 2.5. It is contained in only one |
| 997 | Python file, so it can be easily copied into your project.") |
| 998 | (license license:x11))) |
| 999 | |
| 1000 | (define-public python2-six |
| 1001 | (package-with-python2 python-six)) |
| 1002 | |
| 1003 | (define-public python-six-bootstrap |
| 1004 | (package |
| 1005 | (inherit python-six) |
| 1006 | (name "python-six-bootstrap") |
| 1007 | (native-inputs `()) |
| 1008 | (arguments `(#:tests? #f)))) |
| 1009 | |
| 1010 | (define-public python2-six-bootstrap |
| 1011 | (package-with-python2 python-six-bootstrap)) |
| 1012 | |
| 1013 | (define-public python-schedule |
| 1014 | (package |
| 1015 | (name "python-schedule") |
| 1016 | (version "0.4.3") |
| 1017 | (source |
| 1018 | (origin |
| 1019 | (method url-fetch) |
| 1020 | (uri (pypi-uri "schedule" version)) |
| 1021 | (sha256 |
| 1022 | (base32 |
| 1023 | "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i")))) |
| 1024 | (build-system python-build-system) |
| 1025 | (native-inputs |
| 1026 | `(("python-pytest" ,python-pytest) |
| 1027 | ("python-mock" ,python-mock))) |
| 1028 | (home-page "https://github.com/dbader/schedule") |
| 1029 | (synopsis "Schedule periodic function calls in Python") |
| 1030 | (description |
| 1031 | "Schedule is an in-process scheduler for periodic jobs that uses the |
| 1032 | builder pattern for configuration. Schedule lets you run Python functions (or |
| 1033 | any other callable) periodically at pre-determined intervals using a simple, |
| 1034 | human-friendly syntax.") |
| 1035 | (license license:expat))) |
| 1036 | |
| 1037 | (define-public python2-schedule |
| 1038 | (package-with-python2 python-schedule)) |
| 1039 | |
| 1040 | (define-public python-pandas |
| 1041 | (package |
| 1042 | (name "python-pandas") |
| 1043 | (version "0.24.2") |
| 1044 | (source |
| 1045 | (origin |
| 1046 | (method url-fetch) |
| 1047 | (uri (pypi-uri "pandas" version)) |
| 1048 | (sha256 |
| 1049 | (base32 "18imlm8xbhcbwy4wa957a1fkamrcb0z988z006jpfda3ki09z4ag")))) |
| 1050 | (build-system python-build-system) |
| 1051 | (arguments |
| 1052 | `(#:modules ((guix build utils) |
| 1053 | (guix build python-build-system) |
| 1054 | (ice-9 ftw) |
| 1055 | (srfi srfi-26)) |
| 1056 | #:phases (modify-phases %standard-phases |
| 1057 | (add-after 'unpack 'patch-which |
| 1058 | (lambda* (#:key inputs #:allow-other-keys) |
| 1059 | (let ((which (assoc-ref inputs "which"))) |
| 1060 | (substitute* "pandas/io/clipboard/__init__.py" |
| 1061 | (("^CHECK_CMD = .*") |
| 1062 | (string-append "CHECK_CMD = \"" which "\"\n")))) |
| 1063 | #t)) |
| 1064 | (replace 'check |
| 1065 | (lambda _ |
| 1066 | (let ((build-directory |
| 1067 | (string-append |
| 1068 | (getcwd) "/build/" |
| 1069 | (car (scandir "build" |
| 1070 | (cut string-prefix? "lib." <>)))))) |
| 1071 | ;; Disable the "strict data files" option which causes |
| 1072 | ;; the build to error out if required data files are |
| 1073 | ;; not available (as is the case with PyPI archives). |
| 1074 | (substitute* "setup.cfg" |
| 1075 | (("addopts = --strict-data-files") "addopts = ")) |
| 1076 | (with-directory-excursion build-directory |
| 1077 | ;; Delete tests that require "moto" which is not yet |
| 1078 | ;; in Guix. |
| 1079 | (for-each delete-file |
| 1080 | '("pandas/tests/io/conftest.py" |
| 1081 | "pandas/tests/io/json/test_compression.py" |
| 1082 | "pandas/tests/io/parser/test_network.py" |
| 1083 | "pandas/tests/io/test_parquet.py")) |
| 1084 | (invoke "pytest" "-vv" "pandas" "--skip-slow" |
| 1085 | "--skip-network" "-k" |
| 1086 | ;; XXX: Due to the deleted tests above. |
| 1087 | "not test_read_s3_jsonl")))))))) |
| 1088 | (propagated-inputs |
| 1089 | `(("python-numpy" ,python-numpy) |
| 1090 | ("python-openpyxl" ,python-openpyxl) |
| 1091 | ("python-pytz" ,python-pytz) |
| 1092 | ("python-dateutil" ,python-dateutil) |
| 1093 | ("python-xlrd" ,python-xlrd))) |
| 1094 | (inputs |
| 1095 | `(("which" ,which))) |
| 1096 | (native-inputs |
| 1097 | `(("python-cython" ,python-cython) |
| 1098 | ("python-beautifulsoup4" ,python-beautifulsoup4) |
| 1099 | ("python-lxml" ,python-lxml) |
| 1100 | ("python-html5lib" ,python-html5lib) |
| 1101 | ("python-nose" ,python-nose) |
| 1102 | ("python-pytest" ,python-pytest) |
| 1103 | ("python-pytest-mock" ,python-pytest-mock))) |
| 1104 | (home-page "https://pandas.pydata.org") |
| 1105 | (synopsis "Data structures for data analysis, time series, and statistics") |
| 1106 | (description |
| 1107 | "Pandas is a Python package providing fast, flexible, and expressive data |
| 1108 | structures designed to make working with structured (tabular, |
| 1109 | multidimensional, potentially heterogeneous) and time series data both easy |
| 1110 | and intuitive. It aims to be the fundamental high-level building block for |
| 1111 | doing practical, real world data analysis in Python.") |
| 1112 | (license license:bsd-3))) |
| 1113 | |
| 1114 | (define-public python2-pandas |
| 1115 | (package-with-python2 python-pandas)) |
| 1116 | |
| 1117 | (define-public python2-mechanize |
| 1118 | (package |
| 1119 | (name "python2-mechanize") |
| 1120 | (version "0.2.5") |
| 1121 | (source |
| 1122 | (origin |
| 1123 | (method url-fetch) |
| 1124 | (uri (pypi-uri "mechanize" version)) |
| 1125 | (sha256 |
| 1126 | (base32 |
| 1127 | "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf")))) |
| 1128 | (build-system python-build-system) |
| 1129 | (arguments |
| 1130 | `(#:python ,python-2 ; apparently incompatible with Python 3 |
| 1131 | #:tests? #f)) |
| 1132 | ;; test fails with message |
| 1133 | ;; AttributeError: 'module' object has no attribute 'test_pullparser' |
| 1134 | ;; (python-3.3.2) or |
| 1135 | ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet' |
| 1136 | ;; (python-2.7.5). |
| 1137 | ;; The source code is from March 2011 and probably not up-to-date |
| 1138 | ;; with respect to python unit tests. |
| 1139 | (home-page "http://wwwsearch.sourceforge.net/mechanize/") |
| 1140 | (synopsis |
| 1141 | "Stateful programmatic web browsing in Python") |
| 1142 | (description |
| 1143 | "Mechanize implements stateful programmatic web browsing in Python, |
| 1144 | after Andy Lester’s Perl module WWW::Mechanize.") |
| 1145 | (license (license:non-copyleft |
| 1146 | "file://COPYING" |
| 1147 | "See COPYING in the distribution.")))) |
| 1148 | |
| 1149 | |
| 1150 | (define-public python-simplejson |
| 1151 | (package |
| 1152 | (name "python-simplejson") |
| 1153 | (version "3.14.0") |
| 1154 | (source |
| 1155 | (origin |
| 1156 | (method url-fetch) |
| 1157 | (uri (pypi-uri "simplejson" version)) |
| 1158 | (sha256 |
| 1159 | (base32 |
| 1160 | "1lkv3xlf7ryzi69zqfdbkvpxdfy1rg1rq2yzcnxgf4km5m6difqy")))) |
| 1161 | (build-system python-build-system) |
| 1162 | (home-page "http://simplejson.readthedocs.org/en/latest/") |
| 1163 | (synopsis |
| 1164 | "Json library for Python") |
| 1165 | (description |
| 1166 | "JSON (JavaScript Object Notation) is a subset of JavaScript |
| 1167 | syntax (ECMA-262 3rd edition) used as a lightweight data interchange |
| 1168 | format. |
| 1169 | |
| 1170 | Simplejson exposes an API familiar to users of the standard library marshal |
| 1171 | and pickle modules. It is the externally maintained version of the json |
| 1172 | library contained in Python 2.6, but maintains compatibility with Python 2.5 |
| 1173 | and (currently) has significant performance advantages, even without using |
| 1174 | the optional C extension for speedups. Simplejson is also supported on |
| 1175 | Python 3.3+.") |
| 1176 | (license license:x11))) |
| 1177 | |
| 1178 | (define-public python2-simplejson |
| 1179 | (package-with-python2 python-simplejson)) |
| 1180 | |
| 1181 | |
| 1182 | (define-public python-pyicu |
| 1183 | (package |
| 1184 | (name "python-pyicu") |
| 1185 | (version "2.2") |
| 1186 | (source |
| 1187 | (origin |
| 1188 | (method url-fetch) |
| 1189 | (uri (pypi-uri "PyICU" version)) |
| 1190 | (sha256 |
| 1191 | (base32 |
| 1192 | "0wq9y5fi1ighgf5aws9nr87vi1w44p7q1k83rx2y3qj5d2xyhspa")))) |
| 1193 | (build-system python-build-system) |
| 1194 | (inputs |
| 1195 | `(("icu4c" ,icu4c))) |
| 1196 | (native-inputs |
| 1197 | `(("python-pytest" ,python-pytest) |
| 1198 | ("python-six" ,python-six))) |
| 1199 | (home-page "https://github.com/ovalhub/pyicu") |
| 1200 | (synopsis "Python extension wrapping the ICU C++ API") |
| 1201 | (description |
| 1202 | "PyICU is a python extension wrapping the ICU C++ API.") |
| 1203 | (properties `((python2-variant . ,(delay python2-pyicu)))) |
| 1204 | (license license:x11))) |
| 1205 | |
| 1206 | (define-public python2-pyicu |
| 1207 | (let ((base (package-with-python2 |
| 1208 | (strip-python2-variant python-pyicu)))) |
| 1209 | (package |
| 1210 | (inherit base) |
| 1211 | (arguments |
| 1212 | `(,@(package-arguments base) |
| 1213 | #:phases |
| 1214 | (modify-phases %standard-phases |
| 1215 | (add-before 'check 'delete-failing-test |
| 1216 | (λ _ |
| 1217 | ;; XXX: This fails due to Unicode issues unique to Python 2, |
| 1218 | ;; it seems: <https://github.com/ovalhub/pyicu/issues/61>. |
| 1219 | (delete-file "test/test_Script.py") |
| 1220 | #t)))))))) |
| 1221 | |
| 1222 | (define-public python2-dogtail |
| 1223 | ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and |
| 1224 | ;; spaces in indentation" with Python 3. |
| 1225 | (package |
| 1226 | (name "python2-dogtail") |
| 1227 | (version "0.9.9") |
| 1228 | (source (origin |
| 1229 | (method url-fetch) |
| 1230 | (uri (pypi-uri "dogtail" version)) |
| 1231 | (sha256 |
| 1232 | (base32 |
| 1233 | "0p5wfssvzr9w0bvhllzbbd8fnp4cca2qxcpcsc33dchrmh5n552x")))) |
| 1234 | (build-system python-build-system) |
| 1235 | (arguments `(#:python ,python-2 |
| 1236 | #:tests? #f)) ; invalid command "test" |
| 1237 | ;; Currently no offical homepage. |
| 1238 | (home-page "https://pypi.python.org/pypi/dogtail/") |
| 1239 | (synopsis "GUI test tool and automation framework written in Python") |
| 1240 | (description |
| 1241 | "Dogtail is a GUI test tool and automation framework written in Python. |
| 1242 | It uses Accessibility (a11y) technologies to communicate with desktop |
| 1243 | applications. dogtail scripts are written in Python and executed like any |
| 1244 | other Python program.") |
| 1245 | (license license:gpl2+))) |
| 1246 | |
| 1247 | (define-public python-empy |
| 1248 | (package |
| 1249 | (name "python-empy") |
| 1250 | (version "3.3.3") |
| 1251 | (source (origin |
| 1252 | (method url-fetch) |
| 1253 | (uri (string-append "http://www.alcyone.com/software/empy/empy-" |
| 1254 | version ".tar.gz")) |
| 1255 | (sha256 |
| 1256 | (base32 |
| 1257 | "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq")))) |
| 1258 | (build-system python-build-system) |
| 1259 | (arguments |
| 1260 | `(#:tests? #f)) ; python2 only |
| 1261 | (home-page "http://www.alcyone.com/software/empy/") |
| 1262 | (synopsis "Templating system for Python") |
| 1263 | (description |
| 1264 | "EmPy is a system for embedding Python expressions and statements in |
| 1265 | template text; it takes an EmPy source file, processes it, and produces |
| 1266 | output. This is accomplished via expansions, which are special signals to the |
| 1267 | EmPy system and are set off by a special prefix (by default the at sign, @@). |
| 1268 | EmPy can expand arbitrary Python expressions and statements in this way, as |
| 1269 | well as a variety of special forms. Textual data not explicitly delimited in |
| 1270 | this way is sent unaffected to the output, allowing Python to be used in |
| 1271 | effect as a markup language. Also supported are callbacks via hooks, |
| 1272 | recording and playback via diversions, and dynamic, chainable filters. The |
| 1273 | system is highly configurable via command line options and embedded |
| 1274 | commands.") |
| 1275 | (license license:lgpl2.1+))) |
| 1276 | |
| 1277 | (define-public python2-empy |
| 1278 | (let ((base (package-with-python2 (strip-python2-variant python-empy)))) |
| 1279 | (package |
| 1280 | (inherit base) |
| 1281 | (arguments `(,@(package-arguments base) |
| 1282 | #:tests? #t))))) |
| 1283 | |
| 1284 | (define-public python2-element-tree |
| 1285 | (package |
| 1286 | (name "python2-element-tree") |
| 1287 | (version "1.2.6") |
| 1288 | (source (origin |
| 1289 | (method url-fetch) |
| 1290 | (uri (string-append |
| 1291 | "http://effbot.org/media/downloads/elementtree-" |
| 1292 | version "-20050316.tar.gz")) |
| 1293 | (sha256 |
| 1294 | (base32 |
| 1295 | "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj")))) |
| 1296 | (build-system python-build-system) |
| 1297 | (arguments |
| 1298 | `(#:python ,python-2 ; seems to be part of Python 3 |
| 1299 | #:tests? #f)) ; no 'test' sub-command |
| 1300 | (synopsis "Toolkit for XML processing in Python") |
| 1301 | (description |
| 1302 | "ElementTree is a Python library supporting lightweight XML processing.") |
| 1303 | (home-page "http://effbot.org/zone/element-index.htm") |
| 1304 | (license (license:x11-style |
| 1305 | "http://docs.python.org/2/license.html" |
| 1306 | "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\".")))) |
| 1307 | |
| 1308 | (define-public python2-pybugz |
| 1309 | (package |
| 1310 | (name "python2-pybugz") |
| 1311 | (version "0.6.11") |
| 1312 | (source (origin |
| 1313 | (method url-fetch) |
| 1314 | (uri (string-append |
| 1315 | "http://bits.liquidx.net/projects/pybugz/pybugz-" |
| 1316 | version ".tar.gz")) |
| 1317 | (sha256 |
| 1318 | (base32 |
| 1319 | "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd")) |
| 1320 | (patches (search-patches "pybugz-stty.patch" |
| 1321 | "pybugz-encode-error.patch")))) |
| 1322 | (build-system python-build-system) |
| 1323 | (arguments |
| 1324 | `(#:python ,python-2 ; SyntaxError with Python 3 |
| 1325 | #:tests? #f)) ; no 'test' sub-command |
| 1326 | (propagated-inputs |
| 1327 | `(("element-tree" ,python2-element-tree))) |
| 1328 | (synopsis "Python and command-line interface to Bugzilla") |
| 1329 | (description |
| 1330 | "PyBugz is a Python library and command-line tool to query the Bugzilla |
| 1331 | bug tracking system. It is meant as an aid to speed up interaction with the |
| 1332 | bug tracker.") |
| 1333 | (home-page "http://www.liquidx.net/pybugz/") |
| 1334 | (license license:gpl2))) |
| 1335 | |
| 1336 | (define-public python2-enum |
| 1337 | (package |
| 1338 | (name "python2-enum") |
| 1339 | (version "0.4.6") |
| 1340 | (source (origin |
| 1341 | (method url-fetch) |
| 1342 | (uri (pypi-uri "enum" version)) |
| 1343 | (sha256 |
| 1344 | (base32 |
| 1345 | "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl")))) |
| 1346 | (build-system python-build-system) |
| 1347 | (arguments |
| 1348 | `(#:python ,python-2)) |
| 1349 | (home-page "http://pypi.python.org/pypi/enum/") |
| 1350 | (synopsis "Robust enumerated type support in Python") |
| 1351 | (description |
| 1352 | "This provides a module for robust enumerations in Python. It has |
| 1353 | been superseded by the Python standard library and is provided only for |
| 1354 | compatibility.") |
| 1355 | ;; Choice of either license. |
| 1356 | (license (list license:gpl3+ license:psfl)))) |
| 1357 | |
| 1358 | (define-public python-enum34 |
| 1359 | (package |
| 1360 | (name "python-enum34") |
| 1361 | (version "1.1.6") |
| 1362 | (source |
| 1363 | (origin |
| 1364 | (method url-fetch) |
| 1365 | (uri (pypi-uri "enum34" version)) |
| 1366 | (sha256 |
| 1367 | (base32 |
| 1368 | "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a")))) |
| 1369 | (build-system python-build-system) |
| 1370 | (home-page "https://pypi.python.org/pypi/enum34") |
| 1371 | (synopsis "Backported Python 3.4 Enum") |
| 1372 | (description |
| 1373 | "Enum34 is the new Python stdlib enum module available in Python 3.4 |
| 1374 | backported for previous versions of Python from 2.4 to 3.3.") |
| 1375 | (license license:bsd-3))) |
| 1376 | |
| 1377 | (define-public python2-enum34 |
| 1378 | (package-with-python2 python-enum34)) |
| 1379 | |
| 1380 | (define-public python-parse-type |
| 1381 | (package |
| 1382 | (name "python-parse-type") |
| 1383 | (version "0.4.2") |
| 1384 | (source |
| 1385 | (origin |
| 1386 | (method url-fetch) |
| 1387 | (uri (pypi-uri "parse_type" version)) |
| 1388 | (sha256 |
| 1389 | (base32 |
| 1390 | "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm")))) |
| 1391 | (build-system python-build-system) |
| 1392 | (propagated-inputs |
| 1393 | `(("python-six" ,python-six) |
| 1394 | ("python-parse" ,python-parse))) |
| 1395 | (native-inputs |
| 1396 | `(("python-pytest" ,python-pytest) |
| 1397 | ("python-pytest-runner" ,python-pytest-runner))) |
| 1398 | (home-page "https://github.com/jenisys/parse_type") |
| 1399 | (synopsis "Extended parse module") |
| 1400 | (description |
| 1401 | "Parse_type extends the python parse module.") |
| 1402 | (properties |
| 1403 | `((python2-variant . ,(delay python2-parse-type)))) |
| 1404 | (license license:bsd-3))) |
| 1405 | |
| 1406 | (define-public python2-parse-type |
| 1407 | (let ((base (package-with-python2 |
| 1408 | (strip-python2-variant python-parse-type)))) |
| 1409 | (package (inherit base) |
| 1410 | (propagated-inputs |
| 1411 | `(("python2-enum34" ,python2-enum34) |
| 1412 | ,@(package-propagated-inputs base)))))) |
| 1413 | |
| 1414 | (define-public python-parse |
| 1415 | (package |
| 1416 | (name "python-parse") |
| 1417 | (version "1.8.4") |
| 1418 | (source |
| 1419 | (origin |
| 1420 | (method url-fetch) |
| 1421 | (uri (pypi-uri "parse" version)) |
| 1422 | (sha256 |
| 1423 | (base32 |
| 1424 | "0f8997xr8nq2nq35iiviq8ningd1zvy59fg503xfpbi2dwhgdkf3")))) |
| 1425 | (build-system python-build-system) |
| 1426 | (arguments |
| 1427 | `(#:phases |
| 1428 | (modify-phases %standard-phases |
| 1429 | (replace 'check |
| 1430 | (lambda _ (invoke "python" "test_parse.py")))))) |
| 1431 | (home-page "https://github.com/r1chardj0n3s/parse") |
| 1432 | (synopsis "Parse strings") |
| 1433 | (description |
| 1434 | "Parse strings using a specification based on the Python @code{format()} |
| 1435 | syntax.") |
| 1436 | (license license:x11))) |
| 1437 | |
| 1438 | (define-public python-polib |
| 1439 | (package |
| 1440 | (name "python-polib") |
| 1441 | (version "1.0.8") |
| 1442 | (source (origin |
| 1443 | (method url-fetch) |
| 1444 | (uri (pypi-uri "polib" version)) |
| 1445 | (sha256 |
| 1446 | (base32 |
| 1447 | "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss")))) |
| 1448 | (build-system python-build-system) |
| 1449 | (home-page "https://bitbucket.org/izi/polib/wiki/Home") |
| 1450 | (synopsis "Manipulate, create and modify gettext files") |
| 1451 | (description "Polib can manipulate any gettext format (po, pot and mo) |
| 1452 | files. It can be used to create po files from scratch or to modify |
| 1453 | existing ones.") |
| 1454 | (license license:expat))) |
| 1455 | |
| 1456 | (define-public python2-polib |
| 1457 | (let ((base (package-with-python2 (strip-python2-variant python-polib)))) |
| 1458 | (package |
| 1459 | (inherit base) |
| 1460 | (arguments `(,@(package-arguments base) |
| 1461 | ;; Tests don't work with python2. |
| 1462 | #:tests? #f))))) |
| 1463 | |
| 1464 | (define-public scons |
| 1465 | (package |
| 1466 | (name "scons") |
| 1467 | (version "3.0.4") |
| 1468 | (source (origin |
| 1469 | (method git-fetch) |
| 1470 | (uri (git-reference |
| 1471 | (url "https://github.com/SCons/scons.git") |
| 1472 | (commit version))) |
| 1473 | (file-name (git-file-name name version)) |
| 1474 | (sha256 |
| 1475 | (base32 |
| 1476 | "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn")))) |
| 1477 | (build-system python-build-system) |
| 1478 | (arguments |
| 1479 | `(#:use-setuptools? #f ; still relies on distutils |
| 1480 | #:tests? #f ; no 'python setup.py test' command |
| 1481 | #:phases |
| 1482 | (modify-phases %standard-phases |
| 1483 | (add-before 'build 'bootstrap |
| 1484 | (lambda _ |
| 1485 | (substitute* "src/engine/SCons/compat/__init__.py" |
| 1486 | (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)") |
| 1487 | "sys.modules[new] = __import__(old)")) |
| 1488 | (substitute* "src/engine/SCons/Platform/__init__.py" |
| 1489 | (("mod = imp.load_module\\(full_name, file, path, desc\\)") |
| 1490 | "mod = __import__(full_name)")) |
| 1491 | (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix") |
| 1492 | (chdir "build/scons") |
| 1493 | #t))))) |
| 1494 | (home-page "http://scons.org/") |
| 1495 | (synopsis "Software construction tool written in Python") |
| 1496 | (description |
| 1497 | "SCons is a software construction tool. Think of SCons as an improved, |
| 1498 | cross-platform substitute for the classic Make utility with integrated |
| 1499 | functionality similar to autoconf/automake and compiler caches such as ccache. |
| 1500 | In short, SCons is an easier, more reliable and faster way to build |
| 1501 | software.") |
| 1502 | (license license:x11))) |
| 1503 | |
| 1504 | (define-public scons-python2 |
| 1505 | (package |
| 1506 | (inherit (package-with-python2 scons)) |
| 1507 | (name "scons-python2"))) |
| 1508 | |
| 1509 | (define-public python-extras |
| 1510 | (package |
| 1511 | (name "python-extras") |
| 1512 | (version "1.0.0") |
| 1513 | (source |
| 1514 | (origin |
| 1515 | (method url-fetch) |
| 1516 | (uri (pypi-uri "extras" version)) |
| 1517 | (sha256 |
| 1518 | (base32 |
| 1519 | "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk")))) |
| 1520 | (build-system python-build-system) |
| 1521 | (arguments |
| 1522 | ;; FIXME: Circular dependency on testtools. |
| 1523 | '(#:tests? #f)) |
| 1524 | (home-page "https://github.com/testing-cabal/extras") |
| 1525 | (synopsis "Useful extensions to the Python standard library") |
| 1526 | (description |
| 1527 | "Extras is a set of extensions to the Python standard library.") |
| 1528 | (license license:expat))) |
| 1529 | |
| 1530 | (define-public python2-extras |
| 1531 | (package-with-python2 python-extras)) |
| 1532 | |
| 1533 | (define-public python-mimeparse |
| 1534 | (package |
| 1535 | (name "python-mimeparse") |
| 1536 | (version "1.6.0") |
| 1537 | (source |
| 1538 | (origin |
| 1539 | (method url-fetch) |
| 1540 | (uri (pypi-uri "python-mimeparse" version)) |
| 1541 | (sha256 |
| 1542 | (base32 |
| 1543 | "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n")))) |
| 1544 | (build-system python-build-system) |
| 1545 | (arguments |
| 1546 | '(#:phases |
| 1547 | (modify-phases %standard-phases |
| 1548 | (replace 'check |
| 1549 | (lambda _ |
| 1550 | (invoke "./mimeparse_test.py")))))) |
| 1551 | (home-page |
| 1552 | "https://github.com/dbtsai/python-mimeparse") |
| 1553 | (synopsis "Python library for parsing MIME types") |
| 1554 | (description |
| 1555 | "Mimeparse provides basic functions for parsing MIME type names and |
| 1556 | matching them against a list of media-ranges.") |
| 1557 | (license license:expat))) |
| 1558 | |
| 1559 | (define-public python2-mimeparse |
| 1560 | (package-with-python2 python-mimeparse)) |
| 1561 | |
| 1562 | (define-public python-miniboa |
| 1563 | (package |
| 1564 | (name "python-miniboa") |
| 1565 | (version "1.0.7") |
| 1566 | (source |
| 1567 | (origin |
| 1568 | (method url-fetch) |
| 1569 | (uri (pypi-uri "miniboa" version)) |
| 1570 | (sha256 |
| 1571 | (base32 |
| 1572 | "09jh3pn4rh7kh7jayanf8jzy6gp03791b5a193w6148cf3i6k9m3")))) |
| 1573 | (build-system python-build-system) |
| 1574 | (home-page "https://github.com/shmup/miniboa") |
| 1575 | (synopsis "Simple, single-threaded Telnet server") |
| 1576 | (description |
| 1577 | "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet |
| 1578 | server.") |
| 1579 | (license license:asl2.0))) |
| 1580 | |
| 1581 | (define-public python2-miniboa |
| 1582 | (package-with-python2 python-miniboa)) |
| 1583 | |
| 1584 | (define-public python-pafy |
| 1585 | (package |
| 1586 | (name "python-pafy") |
| 1587 | (version "0.5.3.1") |
| 1588 | (source |
| 1589 | (origin |
| 1590 | (method url-fetch) |
| 1591 | (uri (pypi-uri "pafy" version)) |
| 1592 | (sha256 |
| 1593 | (base32 |
| 1594 | "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim")))) |
| 1595 | (build-system python-build-system) |
| 1596 | (arguments |
| 1597 | `(#:tests? #f)) ; Currently pafy can not find itself in the tests |
| 1598 | (propagated-inputs |
| 1599 | ;; Youtube-dl is a python package which is imported in the file |
| 1600 | ;; "backend_youtube_dl.py", therefore it needs to be propagated. |
| 1601 | `(("youtube-dl" ,youtube-dl))) |
| 1602 | (home-page "https://np1.github.io/pafy/") |
| 1603 | (synopsis "Retrieve YouTube content and metadata") |
| 1604 | (description |
| 1605 | "@code{pafy} is a python library to retrieve YouTube content and metadata.") |
| 1606 | (license license:lgpl3+))) |
| 1607 | |
| 1608 | (define-public python2-funcsigs |
| 1609 | (package |
| 1610 | (name "python2-funcsigs") |
| 1611 | (version "1.0.2") |
| 1612 | (source (origin |
| 1613 | (method url-fetch) |
| 1614 | (uri (pypi-uri "funcsigs" version)) |
| 1615 | (sha256 |
| 1616 | (base32 |
| 1617 | "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7")))) |
| 1618 | (build-system python-build-system) |
| 1619 | (arguments |
| 1620 | `(#:python ,python-2)) |
| 1621 | (native-inputs |
| 1622 | `(("python2-unittest2" ,python2-unittest2))) |
| 1623 | (home-page "http://funcsigs.readthedocs.org") |
| 1624 | (synopsis "Python function signatures from PEP362") |
| 1625 | (description |
| 1626 | "Backport of @code{funcsigs} which was introduced in Python 3.3.") |
| 1627 | (license license:asl2.0))) |
| 1628 | |
| 1629 | (define-public python2-funcsigs-bootstrap |
| 1630 | (package |
| 1631 | (inherit python2-funcsigs) |
| 1632 | (name "python2-funcsigs-bootstrap") |
| 1633 | (native-inputs `()) |
| 1634 | (arguments |
| 1635 | `(#:tests? #f |
| 1636 | ,@(package-arguments python2-funcsigs))))) |
| 1637 | |
| 1638 | (define-public python-py |
| 1639 | (package |
| 1640 | (name "python-py") |
| 1641 | (version "1.5.4") |
| 1642 | (source |
| 1643 | (origin |
| 1644 | (method url-fetch) |
| 1645 | (uri (pypi-uri "py" version)) |
| 1646 | (sha256 |
| 1647 | (base32 |
| 1648 | "1xxvwfn82457djf55f5n2c94699rfqnk43br8fif2r2q8gvrmm9z")))) |
| 1649 | (build-system python-build-system) |
| 1650 | (arguments |
| 1651 | ;; FIXME: "ImportError: 'test' module incorrectly imported from |
| 1652 | ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'. |
| 1653 | ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'. |
| 1654 | ;; Is this module globally installed?" |
| 1655 | '(#:tests? #f)) |
| 1656 | (native-inputs |
| 1657 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 1658 | (home-page "https://github.com/pytest-dev/py") |
| 1659 | (synopsis "Python library for parsing, I/O, instrospection, and logging") |
| 1660 | (description |
| 1661 | "Py is a Python library for file name parsing, .ini file parsing, I/O, |
| 1662 | code introspection, and logging.") |
| 1663 | (license license:expat))) |
| 1664 | |
| 1665 | (define-public python2-py |
| 1666 | (package-with-python2 python-py)) |
| 1667 | |
| 1668 | ;; Recent versions of python-fixtures and python-testrepository need |
| 1669 | ;; python-pbr for packaging, which itself needs these two packages for |
| 1670 | ;; testing. |
| 1671 | ;; To fix this circular dependency, we use a build of python-pbr, based on the |
| 1672 | ;; same source, just without any test dependencies and with tests disabled. |
| 1673 | ;; python-pbr-minmal is then used to package python-fixtures and |
| 1674 | ;; python-testrepository. |
| 1675 | ;; Strictly speaking we currently could remove the test-requirements from the |
| 1676 | ;; normal python-pbr package (and save this package) since test are disabled |
| 1677 | ;; there anyway. But this may change in future. |
| 1678 | (define-public python-pbr-minimal |
| 1679 | (package |
| 1680 | (name "python-pbr-minimal") |
| 1681 | (version "3.0.1") |
| 1682 | (source |
| 1683 | (origin |
| 1684 | (method url-fetch) |
| 1685 | (uri (pypi-uri "pbr" version)) |
| 1686 | (sha256 |
| 1687 | (base32 |
| 1688 | "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p")))) |
| 1689 | (build-system python-build-system) |
| 1690 | (arguments |
| 1691 | `(#:tests? #f)) |
| 1692 | (home-page "http://docs.openstack.org/developer/pbr/") |
| 1693 | (synopsis "Minimal build of python-pbr used for bootstrapping") |
| 1694 | (description |
| 1695 | "Used only for bootstrapping python2-pbr, you should not need this.") |
| 1696 | (license license:asl2.0))) |
| 1697 | |
| 1698 | (define-public python2-pbr-minimal |
| 1699 | (package-with-python2 python-pbr-minimal)) |
| 1700 | |
| 1701 | (define-public python-pbr |
| 1702 | (package |
| 1703 | (inherit python-pbr-minimal) |
| 1704 | (name "python-pbr") |
| 1705 | (arguments |
| 1706 | `(#:tests? #f)) ;; Most tests seem to use the Internet. |
| 1707 | (propagated-inputs |
| 1708 | `(("git" ,git))) ;; pbr actually uses the "git" binary. |
| 1709 | (native-inputs |
| 1710 | `(("python-fixtures" ,python-fixtures-bootstrap) |
| 1711 | ;; discover, coverage, hacking, subunit |
| 1712 | ("python-mock" ,python-mock) |
| 1713 | ("python-six" ,python-six) |
| 1714 | ("python-sphinx" ,python-sphinx) |
| 1715 | ("python-testrepository" ,python-testrepository-bootstrap) |
| 1716 | ("python-testresources" ,python-testresources-bootstrap) |
| 1717 | ("python-testscenarios" ,python-testscenarios-bootstrap) |
| 1718 | ("python-testtools" ,python-testtools-bootstrap) |
| 1719 | ("python-virtualenv" ,python-virtualenv))) |
| 1720 | (synopsis "Enhance the default behavior of Python’s setuptools") |
| 1721 | (description |
| 1722 | "Python Build Reasonableness (PBR) is a library that injects some useful |
| 1723 | and sensible default behaviors into your setuptools run. It will set |
| 1724 | versions, process requirements files and generate AUTHORS and ChangeLog file |
| 1725 | from git information. |
| 1726 | "))) |
| 1727 | |
| 1728 | (define-public python2-pbr |
| 1729 | (package-with-python2 python-pbr)) |
| 1730 | |
| 1731 | (define-public python-pyrsistent |
| 1732 | (package |
| 1733 | (name "python-pyrsistent") |
| 1734 | (version "0.14.11") |
| 1735 | (home-page "https://github.com/tobgu/pyrsistent") |
| 1736 | (source (origin |
| 1737 | (method url-fetch) |
| 1738 | (uri (pypi-uri "pyrsistent" version)) |
| 1739 | (sha256 |
| 1740 | (base32 |
| 1741 | "1qkh74bm296mp5g3r11lgsksr6bh4w1bf8pji4nmxdlfj542ga1w")))) |
| 1742 | (build-system python-build-system) |
| 1743 | (native-inputs |
| 1744 | `(("python-hypothesis" ,python-hypothesis) |
| 1745 | ("python-pytest" ,python-pytest) |
| 1746 | ("python-pytest-runner" ,python-pytest-runner))) |
| 1747 | (propagated-inputs |
| 1748 | `(("python-six" ,python-six))) |
| 1749 | (synopsis "Persistent data structures for Python") |
| 1750 | (description |
| 1751 | "Pyrsistent is a number of persistent collections (by some referred to as |
| 1752 | functional data structures). Persistent in the sense that they are immutable. |
| 1753 | |
| 1754 | All methods on a data structure that would normally mutate it instead return a |
| 1755 | new copy of the structure containing the requested updates. The original |
| 1756 | structure is left untouched.") |
| 1757 | (license license:expat))) |
| 1758 | |
| 1759 | (define-public python2-pyrsistent |
| 1760 | (package-with-python2 python-pyrsistent)) |
| 1761 | |
| 1762 | (define-public python-exif-read |
| 1763 | (package |
| 1764 | (name "python-exif-read") |
| 1765 | (version "2.1.2") |
| 1766 | (source (origin |
| 1767 | (method url-fetch) |
| 1768 | (uri (pypi-uri "ExifRead" version)) |
| 1769 | (sha256 |
| 1770 | (base32 |
| 1771 | "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr")))) |
| 1772 | (build-system python-build-system) |
| 1773 | (arguments `(#:tests? #f)) ; no tests |
| 1774 | (home-page "https://github.com/ianare/exif-py") |
| 1775 | (synopsis "Python library to extract EXIF data from image files") |
| 1776 | (description |
| 1777 | "ExifRead is a Python library to extract EXIF data from tiff and jpeg |
| 1778 | files.") |
| 1779 | (license license:bsd-3))) |
| 1780 | |
| 1781 | (define-public python2-exif-read |
| 1782 | (package-with-python2 python-exif-read)) |
| 1783 | |
| 1784 | (define-public python-pyld |
| 1785 | (package |
| 1786 | (name "python-pyld") |
| 1787 | (version "1.0.3") |
| 1788 | (source (origin |
| 1789 | (method url-fetch) |
| 1790 | (uri (pypi-uri "PyLD" version)) |
| 1791 | (sha256 |
| 1792 | (base32 |
| 1793 | "12i2g6xdj30k7xxcibg3sc5y76snwq8l6n8fy9lyi577kgy0h2pm")))) |
| 1794 | (build-system python-build-system) |
| 1795 | (home-page "https://github.com/digitalbazaar/pyld") |
| 1796 | (synopsis "Python implementation of the JSON-LD specification") |
| 1797 | (description |
| 1798 | "PyLD is an implementation of the JSON-LD specification.") |
| 1799 | (license license:bsd-3))) |
| 1800 | |
| 1801 | (define-public python2-pyld |
| 1802 | (package-with-python2 python-pyld)) |
| 1803 | |
| 1804 | (define-public python-click |
| 1805 | (package |
| 1806 | (name "python-click") |
| 1807 | (version "7.0") |
| 1808 | (source |
| 1809 | (origin |
| 1810 | (method url-fetch) |
| 1811 | (uri (pypi-uri "click" version)) |
| 1812 | (sha256 |
| 1813 | (base32 |
| 1814 | "1mzjixd4vjbjvzb6vylki9w1556a9qmdh35kzmq6cign46av952v")))) |
| 1815 | (build-system python-build-system) |
| 1816 | (arguments |
| 1817 | `(#:phases |
| 1818 | (modify-phases %standard-phases |
| 1819 | (add-after 'unpack 'fix-paths |
| 1820 | (lambda* (#:key inputs #:allow-other-keys) |
| 1821 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) |
| 1822 | "cross-libc" "libc")))) |
| 1823 | (substitute* "click/_unicodefun.py" |
| 1824 | (("'locale'") |
| 1825 | (string-append "'" glibc "/bin/locale'")))) |
| 1826 | #t)) |
| 1827 | (replace 'check |
| 1828 | (lambda _ |
| 1829 | (invoke "python" "-m" "pytest")))))) |
| 1830 | (native-inputs |
| 1831 | `(("python-pytest" ,python-pytest))) |
| 1832 | (home-page "https://palletsprojects.com/p/click/") |
| 1833 | (synopsis "Command line library for Python") |
| 1834 | (description |
| 1835 | "Click is a Python package for creating command line interfaces in a |
| 1836 | composable way with as little code as necessary. Its name stands for |
| 1837 | \"Command Line Interface Creation Kit\". It's highly configurable but comes |
| 1838 | with sensible defaults out of the box.") |
| 1839 | (license license:bsd-3))) |
| 1840 | |
| 1841 | (define-public python2-click |
| 1842 | (package-with-python2 python-click)) |
| 1843 | |
| 1844 | (define-public python-wheel |
| 1845 | (package |
| 1846 | (name "python-wheel") |
| 1847 | (version "0.32.3") |
| 1848 | (source |
| 1849 | (origin |
| 1850 | (method url-fetch) |
| 1851 | (uri (pypi-uri "wheel" version)) |
| 1852 | (sha256 |
| 1853 | (base32 |
| 1854 | "1dhxl1bf18bx9szmqcnxbg6204hp3im8089q3hkwh5jfa6zh75q2")))) |
| 1855 | (build-system python-build-system) |
| 1856 | (native-inputs |
| 1857 | `(("python-jsonschema" ,python-jsonschema) |
| 1858 | ("python-pytest-cov" ,python-pytest-cov))) |
| 1859 | (home-page "https://bitbucket.org/pypa/wheel/") |
| 1860 | (synopsis "Format for built Python packages") |
| 1861 | (description |
| 1862 | "A wheel is a ZIP-format archive with a specially formatted filename and |
| 1863 | the @code{.whl} extension. It is designed to contain all the files for a PEP |
| 1864 | 376 compatible install in a way that is very close to the on-disk format. Many |
| 1865 | packages will be properly installed with only the @code{Unpack} step and the |
| 1866 | unpacked archive preserves enough information to @code{Spread} (copy data and |
| 1867 | scripts to their final locations) at any later time. Wheel files can be |
| 1868 | installed with a newer @code{pip} or with wheel's own command line utility.") |
| 1869 | (license license:expat) |
| 1870 | (properties `((python2-variant . ,(delay python2-wheel)))))) |
| 1871 | |
| 1872 | (define-public python2-wheel |
| 1873 | (let ((wheel (package-with-python2 |
| 1874 | (strip-python2-variant python-wheel)))) |
| 1875 | (package (inherit wheel) |
| 1876 | (native-inputs `(("python2-functools32" ,python2-functools32) |
| 1877 | ,@(package-native-inputs wheel)))))) |
| 1878 | |
| 1879 | (define-public python-vcversioner |
| 1880 | (package |
| 1881 | (name "python-vcversioner") |
| 1882 | (version "2.16.0.0") |
| 1883 | (source |
| 1884 | (origin |
| 1885 | (method url-fetch) |
| 1886 | (uri (pypi-uri "vcversioner" version)) |
| 1887 | (sha256 |
| 1888 | (base32 |
| 1889 | "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns")))) |
| 1890 | (build-system python-build-system) |
| 1891 | (synopsis "Python library for version number discovery") |
| 1892 | (description "Vcversioner is a Python library that inspects tagging |
| 1893 | information in a variety of version control systems in order to discover |
| 1894 | version numbers.") |
| 1895 | (home-page "https://github.com/habnabit/vcversioner") |
| 1896 | (license license:isc))) |
| 1897 | |
| 1898 | (define-public python2-vcversioner |
| 1899 | (package-with-python2 python-vcversioner)) |
| 1900 | |
| 1901 | (define-public python-jdcal |
| 1902 | (package |
| 1903 | (name "python-jdcal") |
| 1904 | (version "1.4") |
| 1905 | (source |
| 1906 | (origin |
| 1907 | (method url-fetch) |
| 1908 | (uri (pypi-uri "jdcal" version)) |
| 1909 | (sha256 |
| 1910 | (base32 |
| 1911 | "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa")))) |
| 1912 | (build-system python-build-system) |
| 1913 | (arguments |
| 1914 | `(#:phases (modify-phases %standard-phases |
| 1915 | (replace 'check |
| 1916 | (lambda _ |
| 1917 | (invoke "pytest")))))) |
| 1918 | (native-inputs |
| 1919 | `(("python-pytest" ,python-pytest))) |
| 1920 | (home-page "https://github.com/phn/jdcal") |
| 1921 | (synopsis "Functions to convert between Julian dates Gregorian dates") |
| 1922 | (description "This Python library provides functions for converting |
| 1923 | between Julian dates and Gregorian dates.") |
| 1924 | (license license:bsd-2))) |
| 1925 | |
| 1926 | (define-public python2-jdcal |
| 1927 | (package-with-python2 python-jdcal)) |
| 1928 | |
| 1929 | (define-public python-jsonschema |
| 1930 | (package |
| 1931 | (name "python-jsonschema") |
| 1932 | (version "3.0.1") |
| 1933 | (source (origin |
| 1934 | (method url-fetch) |
| 1935 | (uri (pypi-uri "jsonschema" version)) |
| 1936 | (sha256 |
| 1937 | (base32 |
| 1938 | "03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc")))) |
| 1939 | (build-system python-build-system) |
| 1940 | (arguments |
| 1941 | '(#:phases |
| 1942 | (modify-phases %standard-phases |
| 1943 | (replace 'check |
| 1944 | (lambda _ |
| 1945 | (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) |
| 1946 | (invoke "trial" "jsonschema")))))) |
| 1947 | (native-inputs |
| 1948 | `(("python-setuptools_scm" ,python-setuptools-scm) |
| 1949 | ("python-twisted" ,python-twisted))) |
| 1950 | (propagated-inputs |
| 1951 | `(("python-attrs" ,python-attrs) |
| 1952 | ("python-pyrsistent" ,python-pyrsistent) |
| 1953 | ("python-six" ,python-six))) |
| 1954 | (home-page "https://github.com/Julian/jsonschema") |
| 1955 | (synopsis "Implementation of JSON Schema for Python") |
| 1956 | (description |
| 1957 | "Jsonschema is an implementation of JSON Schema for Python.") |
| 1958 | (license license:expat) |
| 1959 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) |
| 1960 | |
| 1961 | (define-public python2-jsonschema |
| 1962 | (let ((jsonschema (package-with-python2 |
| 1963 | (strip-python2-variant python-jsonschema)))) |
| 1964 | (package (inherit jsonschema) |
| 1965 | (propagated-inputs |
| 1966 | `(("python2-functools32" ,python2-functools32) |
| 1967 | ,@(package-propagated-inputs jsonschema)))))) |
| 1968 | |
| 1969 | ;; This old version is still required by docker-compose as of 1.24.0. |
| 1970 | (define-public python-jsonschema-2.6 |
| 1971 | (package |
| 1972 | (name "python-jsonschema") |
| 1973 | (version "2.6.0") |
| 1974 | (source (origin |
| 1975 | (method url-fetch) |
| 1976 | (uri (pypi-uri "jsonschema" version)) |
| 1977 | (sha256 |
| 1978 | (base32 |
| 1979 | "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg")))) |
| 1980 | (build-system python-build-system) |
| 1981 | (arguments |
| 1982 | '(#:phases |
| 1983 | (modify-phases %standard-phases |
| 1984 | (replace 'check (lambda _ (invoke "nosetests")))))) |
| 1985 | (native-inputs |
| 1986 | `(("python-nose" ,python-nose) |
| 1987 | ("python-vcversioner" ,python-vcversioner))) |
| 1988 | (home-page "https://github.com/Julian/jsonschema") |
| 1989 | (synopsis "Implementation of JSON Schema for Python") |
| 1990 | (description |
| 1991 | "Jsonschema is an implementation of JSON Schema for Python.") |
| 1992 | (license license:expat) |
| 1993 | (properties `((python2-variant . ,(delay python2-jsonschema)))))) |
| 1994 | |
| 1995 | (define-public python-schema |
| 1996 | (package |
| 1997 | (name "python-schema") |
| 1998 | (version "0.6.6") |
| 1999 | (source |
| 2000 | (origin |
| 2001 | (method url-fetch) |
| 2002 | (uri (pypi-uri "schema" version)) |
| 2003 | (sha256 |
| 2004 | (base32 |
| 2005 | "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm")))) |
| 2006 | (build-system python-build-system) |
| 2007 | (native-inputs |
| 2008 | `(("python-pytest" ,python-pytest))) |
| 2009 | (home-page "https://github.com/keleshev/schema") |
| 2010 | (synopsis "Simple data validation library") |
| 2011 | (description |
| 2012 | "@code{python-schema} is a library for validating Python data |
| 2013 | structures, such as those obtained from config-files, forms, external |
| 2014 | services or command-line parsing, converted from JSON/YAML (or |
| 2015 | something else) to Python data-types.") |
| 2016 | (license license:psfl))) |
| 2017 | |
| 2018 | (define-public python2-schema |
| 2019 | (package-with-python2 python-schema)) |
| 2020 | |
| 2021 | (define-public python-schema-0.5 |
| 2022 | (package (inherit python-schema) |
| 2023 | (version "0.5.0") |
| 2024 | (source |
| 2025 | (origin |
| 2026 | (method url-fetch) |
| 2027 | (uri (pypi-uri "schema" version)) |
| 2028 | (sha256 |
| 2029 | (base32 |
| 2030 | "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s")))))) |
| 2031 | |
| 2032 | (define-public python2-schema-0.5 |
| 2033 | (package-with-python2 python-schema-0.5)) |
| 2034 | |
| 2035 | (define-public python-kitchen |
| 2036 | (package |
| 2037 | (name "python-kitchen") |
| 2038 | (version "1.2.5") |
| 2039 | (source |
| 2040 | (origin |
| 2041 | (method url-fetch) |
| 2042 | (uri (pypi-uri "kitchen" version)) |
| 2043 | (sha256 |
| 2044 | (base32 |
| 2045 | "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg")))) |
| 2046 | (build-system python-build-system) |
| 2047 | (propagated-inputs |
| 2048 | `(("python-chardet" ,python-chardet))) |
| 2049 | (home-page "https://github.com/fedora-infra/kitchen") |
| 2050 | (synopsis "Python API for snippets") |
| 2051 | (description "@code{kitchen} module provides a python API for all sorts of |
| 2052 | little useful snippets of code that everybody ends up writing for their projects |
| 2053 | but never seem big enough to build an independent release. Use kitchen and stop |
| 2054 | cutting and pasting that code over and over.") |
| 2055 | (license (list license:lgpl2.1+ |
| 2056 | ;; subprocess.py, test_subprocess.py, |
| 2057 | ;; kitchen/pycompat25/defaultdict.py: |
| 2058 | license:psfl)))) |
| 2059 | |
| 2060 | (define-public python2-kitchen |
| 2061 | (package-with-python2 python-kitchen)) |
| 2062 | |
| 2063 | (define-public python-unidecode |
| 2064 | (package |
| 2065 | (name "python-unidecode") |
| 2066 | (version "1.0.23") |
| 2067 | (source (origin |
| 2068 | (method url-fetch) |
| 2069 | (uri (pypi-uri "Unidecode" version)) |
| 2070 | (sha256 |
| 2071 | (base32 |
| 2072 | "1ysjbr3nqfqj97h8zyj3v9pya413vkv7a1mzml80w37xx15kb1cb")))) |
| 2073 | (build-system python-build-system) |
| 2074 | (home-page "https://pypi.python.org/pypi/Unidecode") |
| 2075 | (synopsis "ASCII transliterations of Unicode text") |
| 2076 | (description |
| 2077 | "Unidecode provides ASCII transliterations of Unicode text. Unidecode is |
| 2078 | useful when integrating with legacy code that doesn't support Unicode, or for |
| 2079 | ease of entry of non-Roman names on a US keyboard, or when constructing ASCII |
| 2080 | machine identifiers from human-readable Unicode strings that should still be |
| 2081 | somewhat intelligible.") |
| 2082 | (license license:gpl2+))) |
| 2083 | |
| 2084 | (define-public python2-unidecode |
| 2085 | (package-with-python2 python-unidecode)) |
| 2086 | |
| 2087 | (define-public python-pyjwt |
| 2088 | (package |
| 2089 | (name "python-pyjwt") |
| 2090 | (version "1.5.3") |
| 2091 | (source |
| 2092 | (origin |
| 2093 | (method url-fetch) |
| 2094 | (uri (pypi-uri "PyJWT" version)) |
| 2095 | (sha256 |
| 2096 | (base32 |
| 2097 | "1rxsg14i33vm2i6lz0my628108c81k43v10n4h3p0gx62xdyf2sh")) |
| 2098 | (modules '((guix build utils))) |
| 2099 | (snippet |
| 2100 | '(begin |
| 2101 | (for-each delete-file-recursively |
| 2102 | (find-files "." "\\.pyc$")) |
| 2103 | #t)))) |
| 2104 | (build-system python-build-system) |
| 2105 | (native-inputs |
| 2106 | `(("python-pytest" ,python-pytest) |
| 2107 | ("python-pytest-cov" ,python-pytest-cov) |
| 2108 | ("python-pytest-runner" ,python-pytest-runner))) |
| 2109 | (home-page "https://github.com/progrium/pyjwt") |
| 2110 | (synopsis "JSON Web Token implementation in Python") |
| 2111 | (description |
| 2112 | "PyJWT is a JSON Web Token implementation written in Python.") |
| 2113 | (license license:expat))) |
| 2114 | |
| 2115 | (define-public python2-pyjwt |
| 2116 | (package-with-python2 python-pyjwt)) |
| 2117 | |
| 2118 | (define-public python-pykka |
| 2119 | (package |
| 2120 | (name "python-pykka") |
| 2121 | (version "1.2.1") |
| 2122 | (source |
| 2123 | (origin |
| 2124 | (method url-fetch) |
| 2125 | (uri (pypi-uri "Pykka" version)) |
| 2126 | (sha256 |
| 2127 | (base32 |
| 2128 | "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8")))) |
| 2129 | (build-system python-build-system) |
| 2130 | (native-inputs |
| 2131 | `(("python-mock" ,python-mock) |
| 2132 | ("python-nose" ,python-nose) |
| 2133 | ("python-gevent" ,python-gevent) |
| 2134 | ("python-eventlet" ,python-eventlet))) |
| 2135 | (home-page "https://www.pykka.org/") |
| 2136 | (synopsis "Pykka is a Python implementation of the actor model") |
| 2137 | (description |
| 2138 | "Pykka is a Python implementation of the actor model. |
| 2139 | The actor model introduces some simple rules to control the sharing |
| 2140 | of state and cooperation between execution units, which makes it |
| 2141 | easier to build concurrent applications.") |
| 2142 | (license license:asl2.0))) |
| 2143 | |
| 2144 | (define-public python2-pykka |
| 2145 | (package-with-python2 python-pykka)) |
| 2146 | |
| 2147 | (define-public python-pymsgbox |
| 2148 | (package |
| 2149 | (name "python-pymsgbox") |
| 2150 | (version "1.0.6") |
| 2151 | (source |
| 2152 | (origin |
| 2153 | (method git-fetch) |
| 2154 | (uri (git-reference |
| 2155 | ;; LICENSE.txt is not present on pypi |
| 2156 | (url "https://github.com/asweigart/PyMsgBox") |
| 2157 | (commit "55926b55f46caa969c5ddb87990ebea2737bd66f"))) |
| 2158 | (file-name (git-file-name name version)) |
| 2159 | (sha256 |
| 2160 | (base32 |
| 2161 | "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg")))) |
| 2162 | (arguments |
| 2163 | ;; Circular dependency to run tests: |
| 2164 | ;; Tests need pyautogui, which depends on pymsgbox. |
| 2165 | '(#:tests? #f)) |
| 2166 | (build-system python-build-system) |
| 2167 | (home-page "https://github.com/asweigart/PyMsgBox") |
| 2168 | (synopsis "Python module for JavaScript-like message boxes") |
| 2169 | (description |
| 2170 | "PyMsgBox is a simple, cross-platform, pure Python module for |
| 2171 | JavaScript-like message boxes. Types of dialog boxes include: |
| 2172 | @enumerate |
| 2173 | @item alert |
| 2174 | @item confirm |
| 2175 | @item prompt |
| 2176 | @item password |
| 2177 | @end enumerate |
| 2178 | ") |
| 2179 | (license license:bsd-3))) |
| 2180 | |
| 2181 | (define-public python-pympler |
| 2182 | (package |
| 2183 | (name "python-pympler") |
| 2184 | (home-page "https://pythonhosted.org/Pympler/") |
| 2185 | (version "0.5") |
| 2186 | (source (origin |
| 2187 | (method url-fetch) |
| 2188 | (uri (pypi-uri "Pympler" version)) |
| 2189 | (sha256 |
| 2190 | (base32 |
| 2191 | "03qwsbilqgvnbl3a1jmpgixbr2kq6m3fvdlzyr3wdp01bwlc85kx")))) |
| 2192 | (build-system python-build-system) |
| 2193 | (arguments |
| 2194 | `(#:phases (modify-phases %standard-phases |
| 2195 | (delete 'check) |
| 2196 | (add-after 'install 'check |
| 2197 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 2198 | (add-installed-pythonpath inputs outputs) |
| 2199 | (invoke "python" "setup.py" "test")))))) |
| 2200 | (synopsis "Measure, monitor and analyze memory behavior") |
| 2201 | (description |
| 2202 | "Pympler is a development tool to measure, monitor and analyze |
| 2203 | the memory behavior of Python objects in a running Python application. |
| 2204 | |
| 2205 | By pympling a Python application, detailed insight in the size and the |
| 2206 | lifetime of Python objects can be obtained. Undesirable or unexpected |
| 2207 | runtime behavior like memory bloat and other @samp{pymples} can easily |
| 2208 | be identified. |
| 2209 | |
| 2210 | A web profiling frontend exposes process statistics, garbage |
| 2211 | visualisation and class tracker statistics.") |
| 2212 | (license license:asl2.0))) |
| 2213 | |
| 2214 | (define-public python2-pympler |
| 2215 | (package-with-python2 python-pympler)) |
| 2216 | |
| 2217 | (define-public python-itsdangerous |
| 2218 | (package |
| 2219 | (name "python-itsdangerous") |
| 2220 | (version "1.1.0") |
| 2221 | (source |
| 2222 | (origin |
| 2223 | (method url-fetch) |
| 2224 | (uri (pypi-uri "itsdangerous" version)) |
| 2225 | (sha256 |
| 2226 | (base32 |
| 2227 | "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj")))) |
| 2228 | (build-system python-build-system) |
| 2229 | (home-page "https://palletsprojects.com/p/itsdangerous/") |
| 2230 | (synopsis "Python library for passing data to/from untrusted environments") |
| 2231 | (description |
| 2232 | "Itsdangerous provides various helpers to pass trusted data to untrusted |
| 2233 | environments and back.") |
| 2234 | (license license:bsd-3))) |
| 2235 | |
| 2236 | (define-public python2-itsdangerous |
| 2237 | (package-with-python2 python-itsdangerous)) |
| 2238 | |
| 2239 | (define-public python-pyyaml |
| 2240 | (package |
| 2241 | (name "python-pyyaml") |
| 2242 | (version "3.13") |
| 2243 | (source |
| 2244 | (origin |
| 2245 | (method url-fetch) |
| 2246 | (uri (pypi-uri "PyYAML" version)) |
| 2247 | (sha256 |
| 2248 | (base32 |
| 2249 | "1gx603g484z46cb74j9rzr6sjlh2vndxayicvlyhxdz98lhhkwry")))) |
| 2250 | (build-system python-build-system) |
| 2251 | (inputs |
| 2252 | `(("libyaml" ,libyaml))) |
| 2253 | (home-page "http://pyyaml.org/wiki/PyYAML") |
| 2254 | (synopsis "YAML parser and emitter for Python") |
| 2255 | (description |
| 2256 | "PyYAML is a YAML parser and emitter for Python. PyYAML features a |
| 2257 | complete YAML 1.1 parser, Unicode support, pickle support, capable extension |
| 2258 | API, and sensible error messages. PyYAML supports standard YAML tags and |
| 2259 | provides Python-specific tags that allow to represent an arbitrary Python |
| 2260 | object.") |
| 2261 | (license license:expat))) |
| 2262 | |
| 2263 | (define-public python2-pyyaml |
| 2264 | (package-with-python2 python-pyyaml)) |
| 2265 | |
| 2266 | (define-public python-vine |
| 2267 | (package |
| 2268 | (name "python-vine") |
| 2269 | (version "1.1.4") |
| 2270 | (source |
| 2271 | (origin |
| 2272 | (method url-fetch) |
| 2273 | (uri (pypi-uri "vine" version)) |
| 2274 | (sha256 |
| 2275 | (base32 |
| 2276 | "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj")))) |
| 2277 | (build-system python-build-system) |
| 2278 | (native-inputs |
| 2279 | `(("python-pytest" ,python-pytest) |
| 2280 | ("python-case" ,python-case))) |
| 2281 | (home-page "https://github.com/celery/vine") |
| 2282 | (synopsis "Promises for Python") |
| 2283 | (description |
| 2284 | "@code{vine} provides a special implementation of promises in that it can |
| 2285 | be used both for \"promise of a value\" and lazy evaluation. The biggest |
| 2286 | upside for this is that everything in a promise can also be a promise, |
| 2287 | e.g. filters, callbacks and errbacks can all be promises.") |
| 2288 | (license license:bsd-3))) |
| 2289 | |
| 2290 | (define-public python-virtualenv |
| 2291 | (package |
| 2292 | (name "python-virtualenv") |
| 2293 | (version "16.1.0") |
| 2294 | (source |
| 2295 | (origin |
| 2296 | (method url-fetch) |
| 2297 | (uri (pypi-uri "virtualenv" version)) |
| 2298 | (sha256 |
| 2299 | (base32 |
| 2300 | "0242cg3hdq3qdvx5flyrki8lpwlgwf5k45c21ks5049fv7ygm6gq")))) |
| 2301 | (build-system python-build-system) |
| 2302 | (arguments |
| 2303 | `(#:phases |
| 2304 | (modify-phases %standard-phases |
| 2305 | (add-before 'check 'disable-failing-test |
| 2306 | (lambda _ |
| 2307 | ;; Disable failing test. See upstream bug report |
| 2308 | ;; https://github.com/pypa/virtualenv/issues/957 |
| 2309 | (substitute* "tests/test_virtualenv.py" |
| 2310 | (("skipif.*") "skipif(True, reason=\"Guix\")\n")) |
| 2311 | #t))))) |
| 2312 | (native-inputs |
| 2313 | `(("python-mock" ,python-mock) |
| 2314 | ("python-pytest" ,python-pytest))) |
| 2315 | (home-page "https://virtualenv.pypa.io/") |
| 2316 | (synopsis "Virtual Python environment builder") |
| 2317 | (description |
| 2318 | "Virtualenv is a tool to create isolated Python environments.") |
| 2319 | (license license:expat))) |
| 2320 | |
| 2321 | (define-public python2-virtualenv |
| 2322 | (package-with-python2 python-virtualenv)) |
| 2323 | |
| 2324 | (define-public python-markupsafe |
| 2325 | (package |
| 2326 | (name "python-markupsafe") |
| 2327 | (version "1.0") |
| 2328 | (source |
| 2329 | (origin |
| 2330 | (method url-fetch) |
| 2331 | (uri (pypi-uri "MarkupSafe" version)) |
| 2332 | (sha256 |
| 2333 | (base32 |
| 2334 | "0rdn1s8x9ni7ss8rfiacj7x1085lx8mh2zdwqslnw8xc3l4nkgm6")))) |
| 2335 | (build-system python-build-system) |
| 2336 | (home-page "https://github.com/mitsuhiko/markupsafe") |
| 2337 | (synopsis "XML/HTML/XHTML markup safe string implementation for Python") |
| 2338 | (description |
| 2339 | "Markupsafe provides an XML/HTML/XHTML markup safe string implementation |
| 2340 | for Python.") |
| 2341 | (license license:bsd-3))) |
| 2342 | |
| 2343 | (define-public python2-markupsafe |
| 2344 | (package-with-python2 python-markupsafe)) |
| 2345 | |
| 2346 | (define-public python-jinja2 |
| 2347 | (package |
| 2348 | (name "python-jinja2") |
| 2349 | (version "2.10.1") |
| 2350 | (source |
| 2351 | (origin |
| 2352 | (method url-fetch) |
| 2353 | (uri (pypi-uri "Jinja2" version)) |
| 2354 | (sha256 |
| 2355 | (base32 |
| 2356 | "04shqrs56aj04ipyqykj512rw2l0zfammvj9krawzxz7xc14yp06")))) |
| 2357 | (build-system python-build-system) |
| 2358 | (propagated-inputs |
| 2359 | `(("python-markupsafe" ,python-markupsafe))) |
| 2360 | (home-page "http://jinja.pocoo.org/") |
| 2361 | (synopsis "Python template engine") |
| 2362 | (description |
| 2363 | "Jinja2 is a small but fast and easy to use stand-alone template engine |
| 2364 | written in pure Python.") |
| 2365 | (license license:bsd-3))) |
| 2366 | |
| 2367 | (define-public python2-jinja2 |
| 2368 | (package-with-python2 python-jinja2)) |
| 2369 | |
| 2370 | (define-public python-pystache |
| 2371 | (package |
| 2372 | (name "python-pystache") |
| 2373 | (version "0.5.4") |
| 2374 | (source (origin |
| 2375 | (method url-fetch) |
| 2376 | (uri (pypi-uri "pystache" version)) |
| 2377 | (sha256 |
| 2378 | (base32 |
| 2379 | "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp")))) |
| 2380 | (build-system python-build-system) |
| 2381 | (arguments |
| 2382 | '(#:tests? #f)) ; FIXME: Python 3 tests are failing. |
| 2383 | (home-page "http://defunkt.io/pystache/") |
| 2384 | (synopsis "Python logic-less template engine") |
| 2385 | (description |
| 2386 | "Pystache is a Python implementation of the framework agnostic, |
| 2387 | logic-free templating system Mustache.") |
| 2388 | (license license:expat) |
| 2389 | (properties `((python2-variant . ,(delay python2-pystache)))))) |
| 2390 | |
| 2391 | (define-public python2-pystache |
| 2392 | (package (inherit (package-with-python2 |
| 2393 | (strip-python2-variant python-pystache))) |
| 2394 | (arguments |
| 2395 | `(#:python ,python-2 |
| 2396 | #:phases |
| 2397 | (modify-phases %standard-phases |
| 2398 | (replace 'check |
| 2399 | (lambda _ |
| 2400 | (invoke "python" "test_pystache.py")))))))) |
| 2401 | |
| 2402 | (define-public python-joblib |
| 2403 | (package |
| 2404 | (name "python-joblib") |
| 2405 | (version "0.13.0") |
| 2406 | (source (origin |
| 2407 | (method url-fetch) |
| 2408 | (uri (pypi-uri "joblib" version)) |
| 2409 | (sha256 |
| 2410 | (base32 |
| 2411 | "0612nazad8dxmn3xghfrmjax6456l4xy6hn9cngs7vydi14ds7v5")))) |
| 2412 | (build-system python-build-system) |
| 2413 | (arguments |
| 2414 | `(#:phases |
| 2415 | (modify-phases %standard-phases |
| 2416 | (replace 'check |
| 2417 | (lambda _ (invoke "pytest" "-v" "joblib")))))) |
| 2418 | (native-inputs |
| 2419 | `(("python-pytest" ,python-pytest))) |
| 2420 | (home-page "https://joblib.readthedocs.io/") |
| 2421 | (synopsis "Using Python functions as pipeline jobs") |
| 2422 | (description |
| 2423 | "Joblib is a set of tools to provide lightweight pipelining in Python. |
| 2424 | In particular, joblib offers: transparent disk-caching of the output values |
| 2425 | and lazy re-evaluation (memoize pattern), easy simple parallel computing |
| 2426 | logging and tracing of the execution.") |
| 2427 | (license license:bsd-3))) |
| 2428 | |
| 2429 | (define-public python2-joblib |
| 2430 | (package-with-python2 python-joblib)) |
| 2431 | |
| 2432 | (define-public python-daemon |
| 2433 | (package |
| 2434 | (name "python-daemon") |
| 2435 | (version "2.2.3") |
| 2436 | (source |
| 2437 | (origin |
| 2438 | (method url-fetch) |
| 2439 | (uri (pypi-uri "python-daemon" version)) |
| 2440 | (sha256 |
| 2441 | (base32 |
| 2442 | "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg")))) |
| 2443 | (build-system python-build-system) |
| 2444 | (arguments |
| 2445 | `(#:phases |
| 2446 | (modify-phases %standard-phases |
| 2447 | (add-before 'check 'disable-tests |
| 2448 | (lambda _ |
| 2449 | ;; FIXME: Determine why test fails |
| 2450 | (substitute* "test/test_daemon.py" |
| 2451 | (("test_detaches_process_context") |
| 2452 | "skip_test_detaches_process_context")) |
| 2453 | #t))))) |
| 2454 | (propagated-inputs |
| 2455 | `(("python-lockfile" ,python-lockfile))) |
| 2456 | (native-inputs |
| 2457 | `(("python-unittest2" ,python-unittest2) |
| 2458 | ("python-testtools" ,python-testtools) |
| 2459 | ("python-testscenarios" ,python-testscenarios) |
| 2460 | ("python-mock" ,python-mock) |
| 2461 | ("python-docutils" ,python-docutils))) |
| 2462 | (home-page "https://pagure.io/python-daemon/") |
| 2463 | (synopsis "Python library for making a Unix daemon process") |
| 2464 | (description "Python-daemon is a library that assists a Python program to |
| 2465 | turn itself into a well-behaved Unix daemon process, as specified in PEP 3143. |
| 2466 | |
| 2467 | This library provides a @code{DaemonContext} class that manages the following |
| 2468 | important tasks for becoming a daemon process: |
| 2469 | @enumerate |
| 2470 | @item Detach the process into its own process group. |
| 2471 | @item Set process environment appropriate for running inside a chroot. |
| 2472 | @item Renounce suid and sgid privileges. |
| 2473 | @item Close all open file descriptors. |
| 2474 | @item Change the working directory, uid, gid, and umask. |
| 2475 | @item Set appropriate signal handlers. |
| 2476 | @item Open new file descriptors for stdin, stdout, and stderr. |
| 2477 | @item Manage a specified PID lock file. |
| 2478 | @item Register cleanup functions for at-exit processing. |
| 2479 | @end enumerate") |
| 2480 | ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed. |
| 2481 | (license (list license:asl2.0 license:gpl3+)))) |
| 2482 | |
| 2483 | (define-public python-docutils |
| 2484 | (package |
| 2485 | (name "python-docutils") |
| 2486 | (version "0.14") |
| 2487 | (source |
| 2488 | (origin |
| 2489 | (method url-fetch) |
| 2490 | (uri (pypi-uri "docutils" version)) |
| 2491 | (sha256 |
| 2492 | (base32 |
| 2493 | "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji")))) |
| 2494 | (build-system python-build-system) |
| 2495 | (arguments |
| 2496 | '(#:tests? #f)) ; no setup.py test command |
| 2497 | (home-page "http://docutils.sourceforge.net/") |
| 2498 | (synopsis "Python Documentation Utilities") |
| 2499 | (description |
| 2500 | "Docutils is a modular system for processing documentation into useful |
| 2501 | formats, such as HTML, XML, and LaTeX. For input Docutils supports |
| 2502 | reStructuredText.") |
| 2503 | ;; Most of the source code is public domain, but some source files are |
| 2504 | ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses. |
| 2505 | (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+)))) |
| 2506 | |
| 2507 | (define-public python2-docutils |
| 2508 | (package-with-python2 python-docutils)) |
| 2509 | |
| 2510 | (define-public python-pygments |
| 2511 | (package |
| 2512 | (name "python-pygments") |
| 2513 | (version "2.4.0") |
| 2514 | (source |
| 2515 | (origin |
| 2516 | (method url-fetch) |
| 2517 | (uri (pypi-uri "Pygments" version)) |
| 2518 | (sha256 |
| 2519 | (base32 |
| 2520 | "1xb5n3hvhk63kxypc03k7kfry20pny6gygi4bsl9kw1rnzzsdjri")))) |
| 2521 | (build-system python-build-system) |
| 2522 | (arguments |
| 2523 | ;; FIXME: Tests require sphinx, which depends on this. |
| 2524 | '(#:tests? #f)) |
| 2525 | (home-page "http://pygments.org/") |
| 2526 | (synopsis "Syntax highlighting") |
| 2527 | (description |
| 2528 | "Pygments is a syntax highlighting package written in Python.") |
| 2529 | (license license:bsd-2))) |
| 2530 | |
| 2531 | (define-public python2-pygments |
| 2532 | (package-with-python2 python-pygments)) |
| 2533 | |
| 2534 | (define-public python-bumpversion |
| 2535 | (package |
| 2536 | (name "python-bumpversion") |
| 2537 | (version "0.5.3") |
| 2538 | (source |
| 2539 | (origin |
| 2540 | (method url-fetch) |
| 2541 | (uri (pypi-uri "bumpversion" version)) |
| 2542 | (sha256 |
| 2543 | (base32 |
| 2544 | "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37")))) |
| 2545 | (build-system python-build-system) |
| 2546 | (home-page "https://github.com/peritus/bumpversion") |
| 2547 | (synopsis "Tool to bump software version") |
| 2548 | (description "This tool provides a command-line interface (CLI) to bump a |
| 2549 | software version simply.") |
| 2550 | (license license:expat))) |
| 2551 | |
| 2552 | (define-public python-deprecated |
| 2553 | (package |
| 2554 | (name "python-deprecated") |
| 2555 | (version "1.2.5") |
| 2556 | (source |
| 2557 | (origin |
| 2558 | (method git-fetch) |
| 2559 | (uri (git-reference |
| 2560 | (url "https://github.com/tantale/deprecated.git") |
| 2561 | (commit (string-append "v" version)))) |
| 2562 | (file-name (git-file-name name version)) |
| 2563 | (sha256 |
| 2564 | (base32 |
| 2565 | "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz")))) |
| 2566 | (build-system python-build-system) |
| 2567 | (arguments |
| 2568 | `(#:phases (modify-phases %standard-phases |
| 2569 | (replace 'check |
| 2570 | (lambda _ |
| 2571 | (invoke "pytest")))))) |
| 2572 | (propagated-inputs |
| 2573 | `(("python-wrapt" ,python-wrapt))) |
| 2574 | (native-inputs |
| 2575 | `(("python-bumpversion" ,python-bumpversion) |
| 2576 | ("python-pytest" ,python-pytest) |
| 2577 | ("python-pytest-cov" ,python-pytest-cov) |
| 2578 | ("python-sphinx" ,python-sphinx) |
| 2579 | ("python-tox" ,python-tox))) |
| 2580 | (home-page "https://github.com/tantale/deprecated") |
| 2581 | (synopsis "Python decorator to deprecate classes, functions or methods") |
| 2582 | (description "The @code{deprecated} decorator provides a convenient way to deprecate |
| 2583 | to deprecate classes, functions or methods.") |
| 2584 | (license license:expat))) |
| 2585 | |
| 2586 | (define-public python-pygithub |
| 2587 | (package |
| 2588 | (name "python-pygithub") |
| 2589 | (version "1.43.7") |
| 2590 | (source |
| 2591 | ;; We fetch from the Git repo because there are no tests in the PyPI |
| 2592 | ;; archive. |
| 2593 | (origin |
| 2594 | (method git-fetch) |
| 2595 | (uri (git-reference |
| 2596 | (url "https://github.com/PyGithub/PyGithub.git") |
| 2597 | (commit (string-append "v" version)))) |
| 2598 | (file-name (git-file-name name version)) |
| 2599 | (sha256 |
| 2600 | (base32 |
| 2601 | "0ww92zz0ja9w6rw83vphmn8rwmcn6abg16j4q7zxjc0rrg2cfj9i")))) |
| 2602 | (build-system python-build-system) |
| 2603 | (arguments |
| 2604 | `(#:phases (modify-phases %standard-phases |
| 2605 | ;; Some tests rely on the network. |
| 2606 | (add-after 'unpack 'disable-failing-tests |
| 2607 | (lambda _ |
| 2608 | (substitute* "tests/Issue142.py" |
| 2609 | (("testDecodeJson") "disabled_testDecodeJson")) |
| 2610 | #t)) |
| 2611 | (add-before 'check 'prepare-for-tests |
| 2612 | (lambda _ |
| 2613 | (for-each (lambda (f) |
| 2614 | (chmod f #o666)) |
| 2615 | (find-files "./tests")) |
| 2616 | (system* "python" "-m" "lib2to3" "-w" "-n" "tests") |
| 2617 | (setenv "PYTHONPATH" |
| 2618 | (string-append "./tests:" (getenv "PYTHONPATH"))) |
| 2619 | #t))))) |
| 2620 | (propagated-inputs |
| 2621 | `(("python-deprecated" ,python-deprecated) |
| 2622 | ("python-pyjwt" ,python-pyjwt) |
| 2623 | ("python-requests" ,python-requests))) |
| 2624 | (native-inputs `(("python-httpretty" ,python-httpretty))) |
| 2625 | (home-page "https://pygithub.readthedocs.io/en/latest/") |
| 2626 | (synopsis "Python library for the GitHub API") |
| 2627 | (description "This library allows managing GitHub resources such as |
| 2628 | repositories, user profiles, and organizations in your Python applications, |
| 2629 | using version 3 of the GitHub application programming interface (API).") |
| 2630 | (license license:lgpl3+))) |
| 2631 | |
| 2632 | (define-public python-rellu |
| 2633 | (package |
| 2634 | (name "python-rellu") |
| 2635 | (version "0.7") |
| 2636 | (source |
| 2637 | (origin |
| 2638 | (method url-fetch) |
| 2639 | (uri (pypi-uri "rellu" version)) |
| 2640 | (sha256 |
| 2641 | (base32 |
| 2642 | "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x")))) |
| 2643 | (build-system python-build-system) |
| 2644 | (propagated-inputs |
| 2645 | `(("python-invoke" ,python-invoke) |
| 2646 | ("python-pygithub" ,python-pygithub))) |
| 2647 | (home-page "https://github.com/robotframework/rellu") |
| 2648 | (synopsis "Utilities to create PyPI releases") |
| 2649 | (description "This collection of utilities contains tooling and templates |
| 2650 | to assist in creating releases on GitHub and publishing them on PyPI. It is |
| 2651 | designed to be used by Robot Framework and tools and libraries in its |
| 2652 | ecosystem, but can naturally be used also by other projects.") |
| 2653 | (license license:asl2.0))) |
| 2654 | |
| 2655 | (define-public python-robotframework |
| 2656 | (package |
| 2657 | (name "python-robotframework") |
| 2658 | (version "3.1.1") |
| 2659 | ;; There are no tests in the PyPI archive. |
| 2660 | (source |
| 2661 | (origin |
| 2662 | (method git-fetch) |
| 2663 | (uri (git-reference |
| 2664 | (url "https://github.com/robotframework/robotframework.git") |
| 2665 | (commit (string-append "v" version)))) |
| 2666 | (file-name (git-file-name name version)) |
| 2667 | (sha256 |
| 2668 | (base32 |
| 2669 | "1aaiamc9l35m5sf7xl2qc5q9308v7sz3p1qgzcslsjxzddphyn4v")) |
| 2670 | (patches (search-patches |
| 2671 | "python-robotframework-honor-source-date-epoch.patch")))) |
| 2672 | (build-system python-build-system) |
| 2673 | (arguments |
| 2674 | `(#:phases (modify-phases %standard-phases |
| 2675 | (add-before 'build 'build-and-install-doc |
| 2676 | (lambda* (#:key outputs #:allow-other-keys) |
| 2677 | (let* ((doc-output (assoc-ref outputs "doc")) |
| 2678 | (doc (string-append doc-output "/share/" |
| 2679 | ,name "-" ,version "/"))) |
| 2680 | (invoke "invoke" "library-docs" "all") |
| 2681 | (mkdir-p doc) |
| 2682 | (copy-recursively "doc/libraries" |
| 2683 | (string-append doc "/libraries")) |
| 2684 | #t))) |
| 2685 | (replace 'check |
| 2686 | (lambda _ |
| 2687 | (invoke "python" "utest/run.py")))))) |
| 2688 | (native-inputs |
| 2689 | `(("python-invoke" ,python-invoke) |
| 2690 | ("python-rellu" ,python-rellu) |
| 2691 | ("python:tk" ,python "tk"))) ;used when building the HTML doc |
| 2692 | (outputs '("out" "doc")) |
| 2693 | (home-page "https://robotframework.org") |
| 2694 | (synopsis "Generic automation framework") |
| 2695 | (description "Robot Framework is a generic automation framework for |
| 2696 | acceptance testing, acceptance test driven development (ATDD), and robotic |
| 2697 | process automation (RPA).") |
| 2698 | (license license:asl2.0))) |
| 2699 | |
| 2700 | (define-public python-robotframework-lint |
| 2701 | ;; There is no properly tagged release; the commit below seems to correspond |
| 2702 | ;; to the 0.9 stable release available from PyPI. The tests are not |
| 2703 | ;; included in the PyPI archive, so we fetch the sources from the upstream |
| 2704 | ;; Git repo. |
| 2705 | (let ((commit "e851879bab1f63e4e53b34a4dc8a67ed95102830") |
| 2706 | (revision "1")) |
| 2707 | (package |
| 2708 | (name "python-robotframework-lint") |
| 2709 | (version (git-version "0.9.0" revision commit)) |
| 2710 | (source |
| 2711 | (origin |
| 2712 | (method git-fetch) |
| 2713 | (uri (git-reference |
| 2714 | (url "https://github.com/boakley/robotframework-lint.git") |
| 2715 | (commit commit))) |
| 2716 | (file-name (git-file-name name version)) |
| 2717 | (sha256 |
| 2718 | (base32 |
| 2719 | "1p6fknqg5sb9qz5857ji4a877657vgfjm5v3zn45994parx6ml1m")))) |
| 2720 | (build-system python-build-system) |
| 2721 | (arguments |
| 2722 | `(#:phases |
| 2723 | (modify-phases %standard-phases |
| 2724 | (replace 'check |
| 2725 | (lambda _ |
| 2726 | (invoke "python" "-m" "robot" "-A" |
| 2727 | "tests/conf/default.args" "tests")))))) |
| 2728 | (propagated-inputs |
| 2729 | `(("python-robotframework" ,python-robotframework))) |
| 2730 | (home-page "https://github.com/boakley/robotframework-lint/") |
| 2731 | (synopsis "Static analysis tool (linter) for Robot Framework") |
| 2732 | (description "This package provides the @code{rflint} command-line |
| 2733 | utility, a static analysis tool (linter) for Robot Framework source files.") |
| 2734 | (license license:asl2.0)))) |
| 2735 | |
| 2736 | (define-public python-robotframework-sshlibrary |
| 2737 | (package |
| 2738 | (name "python-robotframework-sshlibrary") |
| 2739 | (version "3.3.0") |
| 2740 | ;; There are no tests in the PyPI archive. |
| 2741 | (source |
| 2742 | (origin |
| 2743 | (method git-fetch) |
| 2744 | (uri (git-reference |
| 2745 | (url "https://github.com/robotframework/SSHLibrary.git") |
| 2746 | (commit (string-append "v" version)))) |
| 2747 | (file-name (git-file-name name version)) |
| 2748 | (sha256 |
| 2749 | (base32 |
| 2750 | "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2")))) |
| 2751 | (build-system python-build-system) |
| 2752 | (arguments |
| 2753 | `(#:phases |
| 2754 | (modify-phases %standard-phases |
| 2755 | (add-before 'build 'build-and-install-doc |
| 2756 | (lambda* (#:key outputs #:allow-other-keys) |
| 2757 | (let* ((doc-output (assoc-ref outputs "doc")) |
| 2758 | (doc (string-append doc-output "/share/" |
| 2759 | ,name "-" ,version "/"))) |
| 2760 | (invoke "chmod" "-R" "+w" "docs") |
| 2761 | (invoke "invoke" "kw-docs" "project-docs") |
| 2762 | (mkdir-p doc) |
| 2763 | (for-each delete-file (find-files "docs" "\\.rst")) |
| 2764 | (copy-recursively "docs" doc) |
| 2765 | #t))) |
| 2766 | (replace 'check |
| 2767 | (lambda _ |
| 2768 | ;; Some tests require an SSH server; we remove them. |
| 2769 | (delete-file "utest/test_client_api.py") |
| 2770 | (delete-file "utest/test_scp.py") |
| 2771 | (invoke "python" "utest/run.py")))))) |
| 2772 | (propagated-inputs |
| 2773 | `(("python-robotframework" ,python-robotframework) |
| 2774 | ("python-paramiko" ,python-paramiko) |
| 2775 | ("python-scp" ,python-scp))) |
| 2776 | (native-inputs |
| 2777 | `(("openssh" ,openssh) |
| 2778 | ("which" ,which) |
| 2779 | ;; To generate the documentation |
| 2780 | ("python-docutils" ,python-docutils) |
| 2781 | ("python-invoke" ,python-invoke) |
| 2782 | ("python-pygments" ,python-pygments) |
| 2783 | ("python-rellu" ,python-rellu))) |
| 2784 | (outputs '("out" "doc")) |
| 2785 | (home-page "https://github.com/robotframework/SSHLibrary") |
| 2786 | (synopsis "Robot Framework library for SSH and SFTP") |
| 2787 | (description "SSHLibrary is a Robot Framework library providing support |
| 2788 | for SSH and SFTP. It has the following main usages: |
| 2789 | @itemize @bullet |
| 2790 | @item Executing commands on the remote machine, either blocking or non-blocking. |
| 2791 | @item Writing and reading in an interactive shell. |
| 2792 | @item Transferring files and directories over SFTP. |
| 2793 | @item Ensuring that files and directories exist on the remote machine. |
| 2794 | @end itemize") |
| 2795 | (license license:asl2.0))) |
| 2796 | |
| 2797 | (define-public python-scp |
| 2798 | (package |
| 2799 | (name "python-scp") |
| 2800 | (version "0.13.2") |
| 2801 | (source |
| 2802 | (origin |
| 2803 | (method url-fetch) |
| 2804 | (uri (pypi-uri "scp" version)) |
| 2805 | (sha256 |
| 2806 | (base32 |
| 2807 | "1crlpw9lnn58fs1c1rmh7s7s9y5gkgpgjsqlvg9qa51kq1knx7gg")))) |
| 2808 | (build-system python-build-system) |
| 2809 | (arguments |
| 2810 | '(#:tests? #f)) ;tests require an SSH server |
| 2811 | (propagated-inputs |
| 2812 | `(("python-paramiko" ,python-paramiko))) |
| 2813 | (home-page "https://github.com/jbardin/scp.py") |
| 2814 | (synopsis "SCP protocol module for Python and Paramiko") |
| 2815 | (description "The scp module extends the Paramiko library to send and |
| 2816 | receive files via the SCP1 protocol, as implemented by the OpenSSH |
| 2817 | @command{scp} program.") |
| 2818 | (license license:gpl2+))) |
| 2819 | |
| 2820 | (define-public python-rst.linker |
| 2821 | (package |
| 2822 | (name "python-rst.linker") |
| 2823 | (version "1.10") |
| 2824 | (source |
| 2825 | (origin |
| 2826 | (method url-fetch) |
| 2827 | (uri (pypi-uri "rst.linker" version)) |
| 2828 | (sha256 |
| 2829 | (base32 |
| 2830 | "0iqaacp7pj1s8avs4kc0qg0r7dscywaq37y6l9j14glqdikk0wdj")))) |
| 2831 | (build-system python-build-system) |
| 2832 | (propagated-inputs |
| 2833 | `(("python-dateutil" ,python-dateutil) |
| 2834 | ("python-six" ,python-six))) |
| 2835 | (native-inputs |
| 2836 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 2837 | ;; Test would require path.py, which would introduce a cyclic dependence. |
| 2838 | (arguments `(#:tests? #f)) |
| 2839 | ;; Note: As of version 1.7 the documentation is not worth building. |
| 2840 | (home-page "https://github.com/jaraco/rst.linker") |
| 2841 | (synopsis "Sphinx plugin to add links and timestamps") |
| 2842 | (description "rst.linker allows to automatically replace text by a |
| 2843 | reStructuredText external reference or timestamps. It's primary purpose is to |
| 2844 | augment the changelog, but it can be used for other documents, too.") |
| 2845 | (license license:expat))) |
| 2846 | |
| 2847 | (define-public python2-rst.linker |
| 2848 | (package-with-python2 python-rst.linker)) |
| 2849 | |
| 2850 | (define-public python-feedgenerator |
| 2851 | (package |
| 2852 | (name "python-feedgenerator") |
| 2853 | (version "1.9") |
| 2854 | (source |
| 2855 | (origin |
| 2856 | (method url-fetch) |
| 2857 | (uri (pypi-uri "feedgenerator" version)) |
| 2858 | (sha256 |
| 2859 | (base32 |
| 2860 | "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s")) |
| 2861 | (modules '((guix build utils))) |
| 2862 | (snippet |
| 2863 | '(begin |
| 2864 | ;; Remove pre-compiled .pyc files from source. |
| 2865 | (for-each delete-file-recursively |
| 2866 | (find-files "." "__pycache__" #:directories? #t)) |
| 2867 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 2868 | #t)))) |
| 2869 | (build-system python-build-system) |
| 2870 | (propagated-inputs |
| 2871 | `(("python-pytz" ,python-pytz) |
| 2872 | ("python-six" ,python-six))) |
| 2873 | (home-page "https://github.com/getpelican/feedgenerator") |
| 2874 | (synopsis |
| 2875 | "Standalone version of Django's Atom/RSS feed generator") |
| 2876 | (description |
| 2877 | "Feedgenerator-py3k is a standalone version of Django's feedgenerator, |
| 2878 | which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.") |
| 2879 | (license license:bsd-3))) |
| 2880 | |
| 2881 | (define-public python2-feedgenerator |
| 2882 | (package-with-python2 python-feedgenerator)) |
| 2883 | |
| 2884 | (define-public python-toml |
| 2885 | (package |
| 2886 | (name "python-toml") |
| 2887 | (version "0.9.4") |
| 2888 | (source |
| 2889 | (origin |
| 2890 | (method url-fetch) |
| 2891 | (uri (pypi-uri "toml" version)) |
| 2892 | (sha256 |
| 2893 | (base32 |
| 2894 | "0bdbpbip67wdm6c7xwc6mmbmskyradj4cdxn1iibj4fcx1nbv1lf")))) |
| 2895 | (build-system python-build-system) |
| 2896 | (arguments |
| 2897 | `(#:tests? #f)) ;no tests suite in release |
| 2898 | (home-page "https://github.com/uiri/toml") |
| 2899 | (synopsis "Library for TOML") |
| 2900 | (description |
| 2901 | "@code{toml} is a library for parsing and creating Tom's Obvious, Minimal |
| 2902 | Language (TOML) configuration files.") |
| 2903 | (license license:expat))) |
| 2904 | |
| 2905 | (define-public python-jsonrpc-server |
| 2906 | (package |
| 2907 | (name "python-jsonrpc-server") |
| 2908 | (version "0.1.2") |
| 2909 | (source |
| 2910 | (origin |
| 2911 | (method url-fetch) |
| 2912 | (uri (pypi-uri "python-jsonrpc-server" version)) |
| 2913 | (sha256 |
| 2914 | (base32 |
| 2915 | "0m4ykpcdy52x37n1ikysp07j7p8ialcdvvvsrjp3545sn7iiid09")))) |
| 2916 | (build-system python-build-system) |
| 2917 | (propagated-inputs |
| 2918 | `(("python-future" ,python-future) |
| 2919 | ("python-mock" ,python-mock) |
| 2920 | ("python-pytest" ,python-pytest))) |
| 2921 | (home-page |
| 2922 | "https://github.com/palantir/python-jsonrpc-server") |
| 2923 | (synopsis "JSON RPC 2.0 server library") |
| 2924 | (description |
| 2925 | "This package provides a JSON RPC 2.0 server library for Python.") |
| 2926 | (license license:expat))) |
| 2927 | |
| 2928 | (define-public python-pydocstyle |
| 2929 | (package |
| 2930 | (name "python-pydocstyle") |
| 2931 | (version "3.0.0") |
| 2932 | (source |
| 2933 | (origin |
| 2934 | (method url-fetch) |
| 2935 | (uri (pypi-uri "pydocstyle" version)) |
| 2936 | (sha256 |
| 2937 | (base32 |
| 2938 | "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap")))) |
| 2939 | (build-system python-build-system) |
| 2940 | (propagated-inputs |
| 2941 | `(("python-six" ,python-six) |
| 2942 | ("python-snowballstemmer" ,python-snowballstemmer))) |
| 2943 | (home-page |
| 2944 | "https://github.com/PyCQA/pydocstyle/") |
| 2945 | (synopsis "Python docstring style checker") |
| 2946 | (description |
| 2947 | "This package provides a style checker for the Python Language |
| 2948 | Server (PLS).") |
| 2949 | (license license:expat))) |
| 2950 | |
| 2951 | (define-public python-language-server |
| 2952 | (package |
| 2953 | (name "python-language-server") |
| 2954 | (version "0.26.1") |
| 2955 | (source |
| 2956 | (origin |
| 2957 | (method url-fetch) |
| 2958 | (uri (pypi-uri "python-language-server" version)) |
| 2959 | (sha256 |
| 2960 | (base32 |
| 2961 | "1vs9ckfmm534n1hq3m871916wsjvi5h4gyj6wlzg13ck6506lx0s")))) |
| 2962 | (build-system python-build-system) |
| 2963 | (propagated-inputs |
| 2964 | `(("python-pluggy" ,python-pluggy) |
| 2965 | ("python-jsonrpc-server" ,python-jsonrpc-server) |
| 2966 | ("python-jedi" ,python-jedi) |
| 2967 | ("python-yapf" ,python-yapf) |
| 2968 | ("python-pyflakes" ,python-pyflakes) |
| 2969 | ("python-pydocstyle" ,python-pydocstyle) |
| 2970 | ("python-pycodestyle" ,python-pycodestyle) |
| 2971 | ("python-mccabe" ,python-mccabe) |
| 2972 | ("python-rope" ,python-rope) |
| 2973 | ("python-autopep8" ,python-autopep8) |
| 2974 | ("python-pylint" ,python-pylint))) |
| 2975 | (home-page "https://github.com/palantir/python-language-server") |
| 2976 | (synopsis "Python implementation of the Language Server Protocol") |
| 2977 | (description |
| 2978 | "The Python Language Server (pyls) is an implementation of the Python 3 |
| 2979 | language specification for the Language Server Protocol (LSP). This tool is |
| 2980 | used in text editing environments to provide a complete and integrated |
| 2981 | feature-set for programming Python effectively.") |
| 2982 | (license license:expat))) |
| 2983 | |
| 2984 | (define-public python-black |
| 2985 | (package |
| 2986 | (name "python-black") |
| 2987 | (version "18.6b4") |
| 2988 | (source |
| 2989 | (origin |
| 2990 | (method url-fetch) |
| 2991 | (uri (pypi-uri "black" version)) |
| 2992 | (sha256 |
| 2993 | (base32 |
| 2994 | "0i4sfqgz6w15vd50kbhi7g7rifgqlf8yfr8y78rypd56q64qn592")))) |
| 2995 | (build-system python-build-system) |
| 2996 | (arguments |
| 2997 | `(#:phases |
| 2998 | (modify-phases %standard-phases |
| 2999 | (add-after 'patch-source-shebangs 'patch-extra-shebangs |
| 3000 | (lambda _ |
| 3001 | (let ((python3 (which "python3"))) |
| 3002 | (substitute* '("tests/data/fmtonoff.py" |
| 3003 | "tests/data/string_prefixes.py" |
| 3004 | "tests/data/function.py") |
| 3005 | (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version) |
| 3006 | (string-append "#!" python3 (if (string? minor-version) |
| 3007 | minor-version |
| 3008 | "")))))))))) |
| 3009 | (propagated-inputs |
| 3010 | `(("python-click" ,python-click) |
| 3011 | ("python-attrs" ,python-attrs) |
| 3012 | ("python-appdirs" ,python-appdirs) |
| 3013 | ("python-toml" ,python-toml))) |
| 3014 | (home-page "https://github.com/ambv/black") |
| 3015 | (synopsis "The uncompromising code formatter") |
| 3016 | (description "Black is the uncompromising Python code formatter.") |
| 3017 | (license license:expat))) |
| 3018 | |
| 3019 | (define-public python-blinker |
| 3020 | (package |
| 3021 | (name "python-blinker") |
| 3022 | (version "1.4") |
| 3023 | (source |
| 3024 | (origin |
| 3025 | (method url-fetch) |
| 3026 | (uri (pypi-uri "blinker" version)) |
| 3027 | (sha256 |
| 3028 | (base32 |
| 3029 | "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7")))) |
| 3030 | (build-system python-build-system) |
| 3031 | (home-page "http://pythonhosted.org/blinker/") |
| 3032 | (synopsis "Fast, simple object-to-object and broadcast signaling") |
| 3033 | (description |
| 3034 | "Blinker provides a fast dispatching system that allows any number of |
| 3035 | interested parties to subscribe to events, or \"signals\".") |
| 3036 | (license license:expat))) |
| 3037 | |
| 3038 | (define-public python2-blinker |
| 3039 | (package-with-python2 python-blinker)) |
| 3040 | |
| 3041 | (define-public pelican |
| 3042 | (package |
| 3043 | (name "pelican") |
| 3044 | (version "4.0.1") |
| 3045 | (source |
| 3046 | (origin |
| 3047 | (method url-fetch) |
| 3048 | (uri (pypi-uri "pelican" version)) |
| 3049 | (sha256 |
| 3050 | (base32 |
| 3051 | "05yda7n6r0ll18fpdjzkzyr0ls8hbb86fnjyb33k9jvv5avah2lr")))) |
| 3052 | (build-system python-build-system) |
| 3053 | (propagated-inputs |
| 3054 | `(("python-feedgenerator" ,python-feedgenerator) |
| 3055 | ("python-jinja2" ,python-jinja2) |
| 3056 | ("python-pygments" ,python-pygments) |
| 3057 | ("python-docutils" ,python-docutils) |
| 3058 | ("python-pytz" ,python-pytz) |
| 3059 | ("python-blinker" ,python-blinker) |
| 3060 | ("python-unidecode" ,python-unidecode) |
| 3061 | ("python-six" ,python-six) |
| 3062 | ("python-dateutil" ,python-dateutil) |
| 3063 | ("python-markdown" ,python-markdown))) |
| 3064 | (home-page "https://getpelican.com/") |
| 3065 | (arguments |
| 3066 | `(;; XXX Requires a lot more packages to do unit tests :P |
| 3067 | #:tests? #f |
| 3068 | #:phases (modify-phases %standard-phases |
| 3069 | (add-before |
| 3070 | 'install 'adjust-requires |
| 3071 | ;; Since feedgenerator is installed from git, it doesn't |
| 3072 | ;; conform to the version requirements. |
| 3073 | ;; |
| 3074 | ;; We *do have* "feedgenerator >= 1.6", but strip off the |
| 3075 | ;; version requirement so setuptools doesn't get confused. |
| 3076 | (lambda _ |
| 3077 | (substitute* "setup.py" |
| 3078 | (("['\"]feedgenerator.*?['\"]") |
| 3079 | "'feedgenerator'"))))))) |
| 3080 | (synopsis "Python-based static site publishing system") |
| 3081 | (description |
| 3082 | "Pelican is a tool to generate a static blog from reStructuredText, |
| 3083 | Markdown input files, and more. Pelican uses Jinja2 for templating |
| 3084 | and is very extensible.") |
| 3085 | (license license:agpl3+))) |
| 3086 | |
| 3087 | (define-public mallard-ducktype |
| 3088 | (package |
| 3089 | (name "mallard-ducktype") |
| 3090 | (version "1.0.1") |
| 3091 | (source |
| 3092 | (origin |
| 3093 | (method git-fetch) |
| 3094 | ;; git-reference because a proper source tarball is not available |
| 3095 | ;; https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00209.html |
| 3096 | (uri (git-reference |
| 3097 | (url "https://github.com/projectmallard/mallard-ducktype.git") |
| 3098 | (commit version))) |
| 3099 | (file-name (git-file-name name version)) |
| 3100 | (sha256 |
| 3101 | (base32 |
| 3102 | "0crland0kmpsyjfmnflcw7gaqy5b87b6ah17cmr9d5z1kyazf54n")))) |
| 3103 | (build-system python-build-system) |
| 3104 | (home-page "http://projectmallard.org") |
| 3105 | (synopsis "Convert Ducktype to Mallard documentation markup") |
| 3106 | (description |
| 3107 | "Ducktype is a lightweight syntax that can represent all the semantics |
| 3108 | of the Mallard XML documentation system. Ducktype files can be converted to |
| 3109 | Mallard using the @command{ducktype} tool. The yelp-tools package |
| 3110 | provides additional functionality on the produced Mallard documents.") |
| 3111 | (license license:expat))) |
| 3112 | |
| 3113 | (define-public python-scikit-image |
| 3114 | (package |
| 3115 | (name "python-scikit-image") |
| 3116 | (version "0.14.2") |
| 3117 | (source |
| 3118 | (origin |
| 3119 | (method url-fetch) |
| 3120 | (uri (pypi-uri "scikit-image" version)) |
| 3121 | (sha256 |
| 3122 | (base32 "07qchljkyxvg5nrm12fvszi7pmjk4m01qp0w0z8syxzxxs20pz8s")))) |
| 3123 | (build-system python-build-system) |
| 3124 | (arguments |
| 3125 | ;; TODO: Some tests require running X11 server. Disable them? |
| 3126 | '(#:tests? #f)) |
| 3127 | ;; See DEPENDS.txt for the list of build and run time requiremnts |
| 3128 | (propagated-inputs |
| 3129 | `(("python-cloudpickle" ,python-cloudpickle) |
| 3130 | ("python-dask" ,python-dask) |
| 3131 | ("python-matplotlib" ,python-matplotlib) |
| 3132 | ("python-networkx" ,python-networkx) |
| 3133 | ("python-numpy" ,python-numpy) |
| 3134 | ("python-pillow" ,python-pillow) |
| 3135 | ("python-pywavelets" ,python-pywavelets) |
| 3136 | ("python-scipy" ,python-scipy) |
| 3137 | ("python-six" ,python-six))) |
| 3138 | (native-inputs |
| 3139 | `(("python-cython" ,python-cython))) |
| 3140 | (home-page "http://scikit-image.org/") |
| 3141 | (synopsis "Image processing in Python") |
| 3142 | (description |
| 3143 | "Scikit-image is a collection of algorithms for image processing.") |
| 3144 | (license license:bsd-3))) |
| 3145 | |
| 3146 | (define-public python2-scikit-image |
| 3147 | (package-with-python2 python-scikit-image)) |
| 3148 | |
| 3149 | (define-public python-cython |
| 3150 | (package |
| 3151 | (name "python-cython") |
| 3152 | (version "0.29.7") |
| 3153 | (source |
| 3154 | (origin |
| 3155 | (method url-fetch) |
| 3156 | (uri (pypi-uri "Cython" version)) |
| 3157 | (sha256 |
| 3158 | (base32 |
| 3159 | "1s61hq2ikawxp6qvmkbfvvaxy9rqj67cddzwgcfc3dwi44b83l2m")))) |
| 3160 | (build-system python-build-system) |
| 3161 | ;; we need the full python package and not just the python-wrapper |
| 3162 | ;; because we need libpython3.3m.so |
| 3163 | (inputs |
| 3164 | `(("python" ,python))) |
| 3165 | (arguments |
| 3166 | `(#:phases |
| 3167 | (modify-phases %standard-phases |
| 3168 | (add-before 'check 'set-HOME |
| 3169 | ;; some tests require access to "$HOME/.cython" |
| 3170 | (lambda _ (setenv "HOME" "/tmp") #t)) |
| 3171 | |
| 3172 | ;; FIXME: These tests started failing on armhf after the 0.28 update |
| 3173 | ;; (commit c69d11c5930), both with an error such as this: |
| 3174 | ;; compiling (cpp) and running dictcomp ... |
| 3175 | ;; === C/C++ compiler error output: === |
| 3176 | ;; ‘ |
| 3177 | ;; dictcomp.cpp:5221: confused by earlier errors, bailing out |
| 3178 | ;; See <https://hydra.gnu.org/build/2948724> for logs. |
| 3179 | ,@(if (target-arm32?) |
| 3180 | `((add-before 'check 'disable-failing-tests |
| 3181 | (lambda _ |
| 3182 | (let ((disabled-tests (open-file "tests/bugs.txt" "a"))) |
| 3183 | (for-each (lambda (test) |
| 3184 | (format disabled-tests "~a\n" test)) |
| 3185 | '("memslice" "dictcomp")) |
| 3186 | (close-port disabled-tests))))) |
| 3187 | '()) |
| 3188 | |
| 3189 | (replace 'check |
| 3190 | (lambda _ |
| 3191 | (invoke "python" "runtests.py" "-vv")))))) |
| 3192 | (home-page "https://cython.org/") |
| 3193 | (synopsis "C extensions for Python") |
| 3194 | (description "Cython is an optimising static compiler for both the Python |
| 3195 | programming language and the extended Cython programming language. It makes |
| 3196 | writing C extensions for Python as easy as Python itself.") |
| 3197 | (license license:asl2.0) |
| 3198 | (properties `((python2-variant . ,(delay python2-cython)))))) |
| 3199 | |
| 3200 | (define-public python2-cython |
| 3201 | (package (inherit (package-with-python2 |
| 3202 | (strip-python2-variant python-cython))) |
| 3203 | (name "python2-cython") |
| 3204 | (inputs |
| 3205 | `(("python-2" ,python-2))))) ; this is not automatically changed |
| 3206 | |
| 3207 | ;; The RPython toolchain currently does not support Python 3. |
| 3208 | (define-public python2-rpython |
| 3209 | (package |
| 3210 | (name "python2-rpython") |
| 3211 | (version "0.2.1") |
| 3212 | (source |
| 3213 | (origin |
| 3214 | (method url-fetch) |
| 3215 | (uri (pypi-uri "rpython" version)) |
| 3216 | (sha256 |
| 3217 | (base32 |
| 3218 | "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0")))) |
| 3219 | (build-system python-build-system) |
| 3220 | (arguments `(#:python ,python-2)) |
| 3221 | (native-inputs |
| 3222 | `(("python2-pytest" ,python2-pytest))) ; needed for running tests |
| 3223 | (home-page "https://rpython.readthedocs.org") |
| 3224 | (synopsis "Framework for implementing interpreters and virtual machines") |
| 3225 | (description "RPython is a translation and support framework for |
| 3226 | producing implementations of dynamic languages, emphasizing a clean separation |
| 3227 | between language specification and implementation aspects.") |
| 3228 | (license license:expat))) |
| 3229 | |
| 3230 | ;; NOTE: when upgrading numpy please make sure that python-pandas and |
| 3231 | ;; python-scipy still build, as these three packages are often used together. |
| 3232 | (define-public python-numpy |
| 3233 | (package |
| 3234 | (name "python-numpy") |
| 3235 | (version "1.15.4") |
| 3236 | (source |
| 3237 | (origin |
| 3238 | (method url-fetch) |
| 3239 | (uri (string-append |
| 3240 | "https://github.com/numpy/numpy/releases/download/v" |
| 3241 | version "/numpy-" version ".tar.gz")) |
| 3242 | (sha256 |
| 3243 | (base32 |
| 3244 | "102vcl2qq4pjbm7a3d67vkkvn4466ngia1d8wi5avqwqh8j0jvkn")))) |
| 3245 | (build-system python-build-system) |
| 3246 | (inputs |
| 3247 | `(("openblas" ,openblas) |
| 3248 | ("lapack" ,lapack))) |
| 3249 | (native-inputs |
| 3250 | `(("python-cython" ,python-cython) |
| 3251 | ("python-pytest" ,python-pytest) |
| 3252 | ("gfortran" ,gfortran))) |
| 3253 | (arguments |
| 3254 | `(#:phases |
| 3255 | (modify-phases %standard-phases |
| 3256 | (add-before 'build 'configure-blas-lapack |
| 3257 | (lambda* (#:key inputs #:allow-other-keys) |
| 3258 | (call-with-output-file "site.cfg" |
| 3259 | (lambda (port) |
| 3260 | (format port |
| 3261 | "[openblas] |
| 3262 | libraries = openblas |
| 3263 | library_dirs = ~a/lib |
| 3264 | include_dirs = ~a/include |
| 3265 | |
| 3266 | # backslash-n to make emacs happy |
| 3267 | \n[lapack] |
| 3268 | lapack_libs = lapack |
| 3269 | library_dirs = ~a/lib |
| 3270 | include_dirs = ~a/include |
| 3271 | " |
| 3272 | (assoc-ref inputs "openblas") |
| 3273 | (assoc-ref inputs "openblas") |
| 3274 | (assoc-ref inputs "lapack") |
| 3275 | (assoc-ref inputs "lapack")))) |
| 3276 | #t)) |
| 3277 | (add-before 'build 'fix-executable-paths |
| 3278 | (lambda* (#:key inputs #:allow-other-keys) |
| 3279 | ;; Make /gnu/store/...-bash-.../bin/sh the default shell, |
| 3280 | ;; instead of /bin/sh. |
| 3281 | (substitute* "numpy/distutils/exec_command.py" |
| 3282 | (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end) |
| 3283 | (string-append match-start (assoc-ref inputs "bash") match-end))) |
| 3284 | ;; Use "gcc" executable, not "cc". |
| 3285 | (substitute* "numpy/distutils/system_info.py" |
| 3286 | (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") |
| 3287 | "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')")) |
| 3288 | #t)) |
| 3289 | ;; Tests can only be run after the library has been installed and not |
| 3290 | ;; within the source directory. |
| 3291 | (delete 'check) |
| 3292 | (add-after 'install 'check |
| 3293 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3294 | ;; Make installed package available for running the tests |
| 3295 | (add-installed-pythonpath inputs outputs) |
| 3296 | ;; Make sure "f2py" etc is found. |
| 3297 | (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin" |
| 3298 | ":" (getenv "PATH"))) |
| 3299 | (with-directory-excursion "/tmp" |
| 3300 | (invoke "python" "-c" |
| 3301 | "import numpy; numpy.test(verbose=2)"))))))) |
| 3302 | (home-page "http://www.numpy.org/") |
| 3303 | (synopsis "Fundamental package for scientific computing with Python") |
| 3304 | (description "NumPy is the fundamental package for scientific computing |
| 3305 | with Python. It contains among other things: a powerful N-dimensional array |
| 3306 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
| 3307 | and Fortran code, useful linear algebra, Fourier transform, and random number |
| 3308 | capabilities.") |
| 3309 | (license license:bsd-3))) |
| 3310 | |
| 3311 | (define-public python2-numpy |
| 3312 | (package-with-python2 python-numpy)) |
| 3313 | |
| 3314 | ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of |
| 3315 | ;; interest only for legacy code going back to NumPy's predecessor |
| 3316 | ;; Numeric. |
| 3317 | (define-public python2-numpy-1.8 |
| 3318 | (package (inherit python2-numpy) |
| 3319 | (version "1.8.2") |
| 3320 | (source |
| 3321 | (origin |
| 3322 | (method url-fetch) |
| 3323 | (uri (string-append |
| 3324 | "https://github.com/numpy/numpy/archive/v" version ".tar.gz")) |
| 3325 | (file-name (string-append "python2-numpy-" version ".tar.gz")) |
| 3326 | (sha256 |
| 3327 | (base32 |
| 3328 | "0sc20gz1b17xnyrkp5frca3ql5qfalpv916hfg2kqxpwr6jg0f1g")))) |
| 3329 | (arguments |
| 3330 | (substitute-keyword-arguments (package-arguments python2-numpy) |
| 3331 | ((#:phases phases) |
| 3332 | `(modify-phases ,phases |
| 3333 | (replace 'configure-blas-lapack |
| 3334 | (lambda* (#:key inputs #:allow-other-keys) |
| 3335 | (call-with-output-file "site.cfg" |
| 3336 | (lambda (port) |
| 3337 | (format port |
| 3338 | "[openblas] |
| 3339 | libraries = openblas,lapack |
| 3340 | library_dirs = ~a/lib:~a/lib |
| 3341 | include_dirs = ~a/include:~a/include |
| 3342 | " |
| 3343 | (assoc-ref inputs "openblas") |
| 3344 | (assoc-ref inputs "lapack") |
| 3345 | (assoc-ref inputs "openblas") |
| 3346 | (assoc-ref inputs "lapack")))) |
| 3347 | #t)))))) |
| 3348 | (native-inputs |
| 3349 | `(("python2-nose" ,python2-nose))) |
| 3350 | (description "NumPy is the fundamental package for scientific computing |
| 3351 | with Python. It contains among other things: a powerful N-dimensional array |
| 3352 | object, sophisticated (broadcasting) functions, tools for integrating C/C++ |
| 3353 | and Fortran code, useful linear algebra, Fourier transform, and random number |
| 3354 | capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API |
| 3355 | that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor |
| 3356 | Numeric.") |
| 3357 | (license license:bsd-3))) |
| 3358 | |
| 3359 | (define-public python-munch |
| 3360 | (package |
| 3361 | (name "python-munch") |
| 3362 | (version "2.0.4") |
| 3363 | (source |
| 3364 | (origin |
| 3365 | (method url-fetch) |
| 3366 | (uri (pypi-uri "munch" version)) |
| 3367 | (sha256 |
| 3368 | (base32 |
| 3369 | "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l")))) |
| 3370 | (build-system python-build-system) |
| 3371 | (home-page "https://github.com/Infinidat/munch") |
| 3372 | (synopsis "Dot-accessible dictionary") |
| 3373 | (description "Munch is a dot-accessible dictionary similar to JavaScript |
| 3374 | objects.") |
| 3375 | (license license:expat))) |
| 3376 | |
| 3377 | (define-public python2-munch |
| 3378 | (package-with-python2 python-munch)) |
| 3379 | |
| 3380 | (define-public python-colormath |
| 3381 | (package |
| 3382 | (name "python-colormath") |
| 3383 | (version "3.0.0") |
| 3384 | (source |
| 3385 | (origin |
| 3386 | (method url-fetch) |
| 3387 | (uri (pypi-uri "colormath" version)) |
| 3388 | (sha256 |
| 3389 | (base32 |
| 3390 | "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix")))) |
| 3391 | (build-system python-build-system) |
| 3392 | (propagated-inputs |
| 3393 | `(("python-networkx" ,python-networkx) |
| 3394 | ("python-numpy" ,python-numpy))) |
| 3395 | (home-page "https://github.com/gtaylor/python-colormath") |
| 3396 | (synopsis "Color math and conversion library") |
| 3397 | (description |
| 3398 | "This is a Python library for color math and conversions.") |
| 3399 | (license license:bsd-3))) |
| 3400 | |
| 3401 | (define-public python2-colormath |
| 3402 | (package-with-python2 python-colormath)) |
| 3403 | |
| 3404 | (define-public python-spectra |
| 3405 | (package |
| 3406 | (name "python-spectra") |
| 3407 | (version "0.0.11") |
| 3408 | (source |
| 3409 | (origin |
| 3410 | (method url-fetch) |
| 3411 | (uri (pypi-uri "spectra" version)) |
| 3412 | (sha256 |
| 3413 | (base32 |
| 3414 | "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf")))) |
| 3415 | (build-system python-build-system) |
| 3416 | (arguments |
| 3417 | `(#:phases |
| 3418 | (modify-phases %standard-phases |
| 3419 | (replace 'check |
| 3420 | (lambda _ (invoke "nosetests" "-v")))))) |
| 3421 | (propagated-inputs |
| 3422 | `(("python-colormath" ,python-colormath))) |
| 3423 | (native-inputs |
| 3424 | `(("python-nose" ,python-nose))) |
| 3425 | (home-page "https://github.com/jsvine/spectra") |
| 3426 | (synopsis "Color scales and color conversion") |
| 3427 | (description |
| 3428 | "This package provides a Python library intended to make color math, |
| 3429 | color scales, and color space conversion easy. It has support for: |
| 3430 | |
| 3431 | @enumerate |
| 3432 | @item Color scales |
| 3433 | @item Color ranges |
| 3434 | @item Color blending |
| 3435 | @item Brightening/darkening colors |
| 3436 | @item Saturating/desaturating colors |
| 3437 | @item Conversion to/from multiple color spaces. |
| 3438 | @end enumerate\n") |
| 3439 | (license license:expat))) |
| 3440 | |
| 3441 | (define-public python2-spectra |
| 3442 | (package-with-python2 python-spectra)) |
| 3443 | |
| 3444 | (define-public python-numpy-documentation |
| 3445 | (package |
| 3446 | (name "python-numpy-documentation") |
| 3447 | (version (package-version python-numpy)) |
| 3448 | (source (package-source python-numpy)) |
| 3449 | (build-system python-build-system) |
| 3450 | (native-inputs |
| 3451 | `(("python-matplotlib" ,python-matplotlib) |
| 3452 | ("python-numpy" ,python-numpy) |
| 3453 | ("pkg-config" ,pkg-config) |
| 3454 | ("python-sphinx" ,python-sphinx) |
| 3455 | ("python-numpydoc" ,python-numpydoc) |
| 3456 | ("texlive" ,(texlive-union (list texlive-fonts-amsfonts |
| 3457 | texlive-fonts-cm-super |
| 3458 | texlive-fonts-ec |
| 3459 | texlive-generic-ifxetex |
| 3460 | texlive-generic-pdftex |
| 3461 | texlive-latex-amsfonts |
| 3462 | texlive-latex-capt-of |
| 3463 | texlive-latex-cmap |
| 3464 | texlive-latex-environ |
| 3465 | texlive-latex-eqparbox |
| 3466 | texlive-latex-etoolbox |
| 3467 | texlive-latex-expdlist |
| 3468 | texlive-latex-fancyhdr |
| 3469 | texlive-latex-fancyvrb |
| 3470 | texlive-latex-fncychap |
| 3471 | texlive-latex-float |
| 3472 | texlive-latex-framed |
| 3473 | texlive-latex-geometry |
| 3474 | texlive-latex-graphics |
| 3475 | texlive-latex-hyperref |
| 3476 | texlive-latex-mdwtools |
| 3477 | texlive-latex-multirow |
| 3478 | texlive-latex-needspace |
| 3479 | texlive-latex-oberdiek |
| 3480 | texlive-latex-parskip |
| 3481 | texlive-latex-preview |
| 3482 | texlive-latex-tabulary |
| 3483 | texlive-latex-threeparttable |
| 3484 | texlive-latex-titlesec |
| 3485 | texlive-latex-trimspaces |
| 3486 | texlive-latex-ucs |
| 3487 | texlive-latex-upquote |
| 3488 | texlive-latex-url |
| 3489 | texlive-latex-varwidth |
| 3490 | texlive-latex-wrapfig))) |
| 3491 | ("texinfo" ,texinfo) |
| 3492 | ("perl" ,perl) |
| 3493 | ("scipy-sphinx-theme" |
| 3494 | ,(origin ; The build script expects scipy-sphinx-theme as a git submodule |
| 3495 | (method git-fetch) |
| 3496 | (uri (git-reference |
| 3497 | (url "https://github.com/scipy/scipy-sphinx-theme.git") |
| 3498 | (commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))) |
| 3499 | (sha256 |
| 3500 | (base32 |
| 3501 | "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))) |
| 3502 | ,@(package-native-inputs python-numpy))) |
| 3503 | (arguments |
| 3504 | `(#:tests? #f ; we're only generating the documentation |
| 3505 | #:phases |
| 3506 | (modify-phases %standard-phases |
| 3507 | (delete 'build) |
| 3508 | (replace 'install |
| 3509 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3510 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) |
| 3511 | (doc (string-append |
| 3512 | data "/doc/" ,name "-" |
| 3513 | ,(package-version python-numpy))) |
| 3514 | (info-reader (string-append data "/info")) |
| 3515 | (html (string-append doc "/html")) |
| 3516 | (scipy-sphinx-theme "scipy-sphinx-theme") |
| 3517 | (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme)) |
| 3518 | (pyver ,(string-append "PYVER="))) |
| 3519 | |
| 3520 | ;; FIXME: this is needed to for texlive-union to generate |
| 3521 | ;; fonts, which are not found. |
| 3522 | (setenv "HOME" "/tmp") |
| 3523 | |
| 3524 | (with-directory-excursion "doc" |
| 3525 | (copy-recursively sphinx-theme-checkout scipy-sphinx-theme) |
| 3526 | (mkdir-p html) |
| 3527 | (invoke "make" "html" pyver) |
| 3528 | (invoke "make" "latex" "PAPER=a4" pyver) |
| 3529 | (invoke "make" "-C" "build/latex" |
| 3530 | "all-pdf" "PAPER=a4" pyver) |
| 3531 | ;; FIXME: Generation of the info file fails. |
| 3532 | ;; (invoke "make" "info" pyver) |
| 3533 | ;; (mkdir-p info) |
| 3534 | ;; (copy-file "build/texinfo/numpy.info" |
| 3535 | ;; (string-append info "/numpy.info")) |
| 3536 | (for-each (lambda (file) |
| 3537 | (copy-file (string-append "build/latex" file) |
| 3538 | (string-append doc file))) |
| 3539 | '("/numpy-ref.pdf" "/numpy-user.pdf")) |
| 3540 | (with-directory-excursion "build/html" |
| 3541 | (for-each (lambda (file) |
| 3542 | (let* ((dir (dirname file)) |
| 3543 | (tgt-dir (string-append html "/" dir))) |
| 3544 | (unless (equal? "." dir) |
| 3545 | (mkdir-p tgt-dir)) |
| 3546 | (install-file file html))) |
| 3547 | (find-files "." ".*"))))) |
| 3548 | #t))))) |
| 3549 | (home-page (package-home-page python-numpy)) |
| 3550 | (synopsis "Documentation for the python-numpy package") |
| 3551 | (description (package-description python-numpy)) |
| 3552 | (license (package-license python-numpy)))) |
| 3553 | |
| 3554 | (define-public python2-numpy-documentation |
| 3555 | (let ((numpy-documentation (package-with-python2 python-numpy-documentation))) |
| 3556 | (package |
| 3557 | (inherit numpy-documentation) |
| 3558 | (native-inputs `(("python2-functools32" ,python2-functools32) |
| 3559 | ,@(package-native-inputs numpy-documentation)))))) |
| 3560 | |
| 3561 | (define-public python-pygit2 |
| 3562 | (package |
| 3563 | (name "python-pygit2") |
| 3564 | (version "0.28.0") |
| 3565 | (source |
| 3566 | (origin |
| 3567 | (method url-fetch) |
| 3568 | (uri (pypi-uri "pygit2" version)) |
| 3569 | (sha256 |
| 3570 | (base32 "0lngsaz029d4fjcwhl17pr59nh9gwl6hwfin36nph60fgsmfdg3d")))) |
| 3571 | (build-system python-build-system) |
| 3572 | (arguments |
| 3573 | '(#:tests? #f)) ; tests don't run correctly in our environment |
| 3574 | (propagated-inputs |
| 3575 | `(("python-six" ,python-six) |
| 3576 | ("python-cffi" ,python-cffi) |
| 3577 | ("libgit2" ,libgit2) |
| 3578 | ("python-tox" ,python-tox))) |
| 3579 | (native-inputs |
| 3580 | `(("python-pytest" ,python-pytest))) |
| 3581 | (home-page "https://github.com/libgit2/pygit2") |
| 3582 | (synopsis "Python bindings for libgit2") |
| 3583 | (description "Pygit2 is a set of Python bindings to the libgit2 shared |
| 3584 | library, libgit2 implements Git plumbing.") |
| 3585 | ;; GPL2.0 only, with linking exception. |
| 3586 | (license license:gpl2))) |
| 3587 | |
| 3588 | (define-public python2-pygit2 |
| 3589 | (package-with-python2 python-pygit2)) |
| 3590 | |
| 3591 | (define-public python-pyparsing |
| 3592 | (package |
| 3593 | (name "python-pyparsing") |
| 3594 | (version "2.3.1") |
| 3595 | (source |
| 3596 | (origin |
| 3597 | (method url-fetch) |
| 3598 | (uri (pypi-uri "pyparsing" version)) |
| 3599 | (sha256 |
| 3600 | (base32 "0yk6xl885b91dmlhlsap7x78hk2rdr879fln9anbq6k4ca42djb6")))) |
| 3601 | (build-system python-build-system) |
| 3602 | (outputs '("out" "doc")) |
| 3603 | (arguments |
| 3604 | `(#:tests? #f ; no test target |
| 3605 | #:phases |
| 3606 | (modify-phases %standard-phases |
| 3607 | (add-after 'install 'install-doc |
| 3608 | (lambda* (#:key outputs #:allow-other-keys) |
| 3609 | (let* ((doc (string-append (assoc-ref outputs "doc") |
| 3610 | "/share/doc/" ,name "-" ,version)) |
| 3611 | (html-doc (string-append doc "/html")) |
| 3612 | (examples (string-append doc "/examples"))) |
| 3613 | (mkdir-p html-doc) |
| 3614 | (mkdir-p examples) |
| 3615 | (for-each |
| 3616 | (lambda (dir tgt) |
| 3617 | (map (lambda (file) |
| 3618 | (install-file file tgt)) |
| 3619 | (find-files dir ".*"))) |
| 3620 | (list "docs" "htmldoc" "examples") |
| 3621 | (list doc html-doc examples)) |
| 3622 | #t)))))) |
| 3623 | (home-page "https://github.com/pyparsing/pyparsing") |
| 3624 | (synopsis "Python parsing class library") |
| 3625 | (description |
| 3626 | "The pyparsing module is an alternative approach to creating and |
| 3627 | executing simple grammars, vs. the traditional lex/yacc approach, or the use |
| 3628 | of regular expressions. The pyparsing module provides a library of classes |
| 3629 | that client code uses to construct the grammar directly in Python code.") |
| 3630 | (license license:expat))) |
| 3631 | |
| 3632 | (define-public python2-pyparsing |
| 3633 | (package-with-python2 python-pyparsing)) |
| 3634 | |
| 3635 | (define-public python-numpydoc |
| 3636 | (package |
| 3637 | (name "python-numpydoc") |
| 3638 | (version "0.8.0") |
| 3639 | (source |
| 3640 | (origin |
| 3641 | (method url-fetch) |
| 3642 | (uri (pypi-uri "numpydoc" version)) |
| 3643 | (sha256 |
| 3644 | (base32 |
| 3645 | "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31")))) |
| 3646 | (build-system python-build-system) |
| 3647 | (propagated-inputs |
| 3648 | `(("python-sphinx" ,python-sphinx))) |
| 3649 | (native-inputs |
| 3650 | `(("python-nose" ,python-nose))) |
| 3651 | (home-page "https://pypi.python.org/pypi/numpydoc") |
| 3652 | (synopsis |
| 3653 | "Numpy's Sphinx extensions") |
| 3654 | (description |
| 3655 | "Sphinx extension to support docstrings in Numpy format.") |
| 3656 | (license license:bsd-2))) |
| 3657 | |
| 3658 | (define-public python2-numpydoc |
| 3659 | (package-with-python2 python-numpydoc)) |
| 3660 | |
| 3661 | (define-public python-numexpr |
| 3662 | (package |
| 3663 | (name "python-numexpr") |
| 3664 | (version "2.6.5") |
| 3665 | (source |
| 3666 | (origin |
| 3667 | (method url-fetch) |
| 3668 | (uri (pypi-uri "numexpr" version)) |
| 3669 | (sha256 |
| 3670 | (base32 |
| 3671 | "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq")))) |
| 3672 | (build-system python-build-system) |
| 3673 | (arguments `(#:tests? #f)) ; no tests included |
| 3674 | (propagated-inputs |
| 3675 | `(("python-numpy" ,python-numpy))) |
| 3676 | (home-page "https://github.com/pydata/numexpr") |
| 3677 | (synopsis "Fast numerical expression evaluator for NumPy") |
| 3678 | (description |
| 3679 | "Numexpr is a fast numerical expression evaluator for NumPy. With it, |
| 3680 | expressions that operate on arrays are accelerated and use less memory than |
| 3681 | doing the same calculation in Python. In addition, its multi-threaded |
| 3682 | capabilities can make use of all your cores, which may accelerate |
| 3683 | computations, most specially if they are not memory-bounded (e.g. those using |
| 3684 | transcendental functions).") |
| 3685 | (license license:expat))) |
| 3686 | |
| 3687 | (define-public python2-numexpr |
| 3688 | (package-with-python2 python-numexpr)) |
| 3689 | |
| 3690 | (define-public python-cycler |
| 3691 | (package |
| 3692 | (name "python-cycler") |
| 3693 | (version "0.10.0") |
| 3694 | (source (origin |
| 3695 | (method url-fetch) |
| 3696 | (uri (pypi-uri "cycler" version)) |
| 3697 | (sha256 |
| 3698 | (base32 |
| 3699 | "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd")))) |
| 3700 | (build-system python-build-system) |
| 3701 | (arguments |
| 3702 | ;; XXX: The current version requires 'coveralls' which we don't have. |
| 3703 | ;; Enable this for the next release which uses 'python-pytest'. |
| 3704 | '(#:tests? #f)) |
| 3705 | (propagated-inputs |
| 3706 | `(("python-six" ,python-six))) |
| 3707 | (home-page "http://matplotlib.org/cycler/") |
| 3708 | (synopsis "Composable keyword argument iterator") |
| 3709 | (description |
| 3710 | "When using @code{matplotlib} and plotting more than one line, it is |
| 3711 | common to want to be able to want to be able to cycle over one or more artist |
| 3712 | styles; but the plotting logic can quickly become involved. |
| 3713 | To address this and enable easy cycling over arbitrary @code{kwargs}, the |
| 3714 | @code{Cycler} class was developed.") |
| 3715 | (license license:bsd-3))) |
| 3716 | |
| 3717 | (define-public python2-cycler |
| 3718 | (package-with-python2 python-cycler)) |
| 3719 | |
| 3720 | (define-public python-colorspacious |
| 3721 | (package |
| 3722 | (name "python-colorspacious") |
| 3723 | (version "1.1.0") |
| 3724 | (source |
| 3725 | (origin |
| 3726 | (method git-fetch) |
| 3727 | (uri (git-reference |
| 3728 | (url "https://github.com/njsmith/colorspacious.git") |
| 3729 | (commit (string-append "v" version)))) |
| 3730 | (file-name (git-file-name name version)) |
| 3731 | (sha256 |
| 3732 | (base32 "0g0lxqiscy5g5rq9421vv7abg0c90jzy0zmas2z3hya6k2dr5aid")))) |
| 3733 | (build-system python-build-system) |
| 3734 | (propagated-inputs |
| 3735 | `(("python-numpy" ,python-numpy))) |
| 3736 | (native-inputs |
| 3737 | `(("python-nose" ,python-nose))) |
| 3738 | (arguments |
| 3739 | `(#:phases |
| 3740 | (modify-phases %standard-phases |
| 3741 | (replace 'check |
| 3742 | (lambda _ |
| 3743 | (invoke "nosetests" "--all-modules" "-v" "colorspacious")))))) |
| 3744 | (home-page "https://github.com/njsmith/colorspacious") |
| 3745 | (synopsis "Python library for colorspace conversions") |
| 3746 | (description "@code{colorspacious} is a Python library that lets you |
| 3747 | convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.") |
| 3748 | (license license:expat))) |
| 3749 | |
| 3750 | (define-public python2-colorspacious |
| 3751 | (package-with-python2 python-colorspacious)) |
| 3752 | |
| 3753 | (define-public python-matplotlib |
| 3754 | (package |
| 3755 | (name "python-matplotlib") |
| 3756 | (version "2.2.3") |
| 3757 | (source |
| 3758 | (origin |
| 3759 | (method url-fetch) |
| 3760 | (uri (pypi-uri "matplotlib" version)) |
| 3761 | (sha256 |
| 3762 | (base32 |
| 3763 | "1rcc7x9ig3hpchkc4cwdvym3y451w74275fxr455zkfagrsvymbk")))) |
| 3764 | (build-system python-build-system) |
| 3765 | (propagated-inputs ; the following packages are all needed at run time |
| 3766 | `(("python-cycler" ,python-cycler) |
| 3767 | ("python-kiwisolver" ,python-kiwisolver) |
| 3768 | ("python-pyparsing" ,python-pyparsing) |
| 3769 | ("python-pygobject" ,python-pygobject) |
| 3770 | ("gobject-introspection" ,gobject-introspection) |
| 3771 | ("python-tkinter" ,python "tk") |
| 3772 | ("python-dateutil" ,python-dateutil) |
| 3773 | ("python-numpy" ,python-numpy) |
| 3774 | ("python-pillow" ,python-pillow) |
| 3775 | ("python-pytz" ,python-pytz) |
| 3776 | ("python-six" ,python-six) |
| 3777 | ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated |
| 3778 | ;; from 'gtk+') provides the required 'typelib' files used by |
| 3779 | ;; 'gobject-introspection'. The location of these files is set with the |
| 3780 | ;; help of the environment variable GI_TYPELIB_PATH. At build time this |
| 3781 | ;; is done automatically by a 'native-search-path' procedure. However, |
| 3782 | ;; at run-time the user must set this variable as follows: |
| 3783 | ;; |
| 3784 | ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 |
| 3785 | ("gtk+" ,gtk+) |
| 3786 | ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of |
| 3787 | ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' |
| 3788 | ;; object. For this reason we need to import both libraries. |
| 3789 | ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo |
| 3790 | ("python-pycairo" ,python-pycairo) |
| 3791 | ;; XXX: qtwebkit cannot be built reliably. |
| 3792 | ("python-pyqt" ,python-pyqt-without-qtwebkit) |
| 3793 | ("python-cairocffi" ,python-cairocffi))) |
| 3794 | (inputs |
| 3795 | `(("libpng" ,libpng) |
| 3796 | ("imagemagick" ,imagemagick) |
| 3797 | ("freetype" ,freetype) |
| 3798 | ("cairo" ,cairo) |
| 3799 | ("glib" ,glib) |
| 3800 | ;; FIXME: Add backends when available. |
| 3801 | ;("python-wxpython" ,python-wxpython) |
| 3802 | ("tcl" ,tcl) |
| 3803 | ("tk" ,tk))) |
| 3804 | (native-inputs |
| 3805 | `(("pkg-config" ,pkg-config) |
| 3806 | ("python-nose" ,python-nose) |
| 3807 | ("python-mock" ,python-mock))) |
| 3808 | (arguments |
| 3809 | `(#:phases |
| 3810 | (modify-phases %standard-phases |
| 3811 | (add-before 'build 'configure-environment |
| 3812 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 3813 | (let ((cairo (assoc-ref inputs "cairo")) |
| 3814 | (gtk+ (assoc-ref inputs "gtk+"))) |
| 3815 | ;; Setting these directories in the 'basedirlist' of 'setup.cfg' |
| 3816 | ;; has not effect. |
| 3817 | (setenv "LD_LIBRARY_PATH" |
| 3818 | (string-append cairo "/lib:" gtk+ "/lib")) |
| 3819 | (setenv "HOME" (getcwd)) |
| 3820 | (call-with-output-file "setup.cfg" |
| 3821 | (lambda (port) |
| 3822 | (format port "[directories]~% |
| 3823 | basedirlist = ~a,~a~% |
| 3824 | [rc_options]~% |
| 3825 | backend = TkAgg~%" |
| 3826 | (assoc-ref inputs "tcl") |
| 3827 | (assoc-ref inputs "tk"))))) |
| 3828 | #t))))) |
| 3829 | (home-page "http://matplotlib.org") |
| 3830 | (synopsis "2D plotting library for Python") |
| 3831 | (description |
| 3832 | "Matplotlib is a Python 2D plotting library which produces publication |
| 3833 | quality figures in a variety of hardcopy formats and interactive environments |
| 3834 | across platforms. Matplotlib can be used in Python scripts, the python and |
| 3835 | ipython shell, web application servers, and six graphical user interface |
| 3836 | toolkits.") |
| 3837 | (license license:psfl) |
| 3838 | (properties `((python2-variant . ,(delay python2-matplotlib)))))) |
| 3839 | |
| 3840 | (define-public python2-matplotlib |
| 3841 | (let ((matplotlib (package-with-python2 |
| 3842 | (strip-python2-variant python-matplotlib)))) |
| 3843 | (package (inherit matplotlib) |
| 3844 | ;; Make sure to use special packages for Python 2 instead |
| 3845 | ;; of those automatically rewritten by package-with-python2. |
| 3846 | (propagated-inputs |
| 3847 | `(("python2-pycairo" ,python2-pycairo) |
| 3848 | ("python2-backports-functools-lru-cache" |
| 3849 | ,python2-backports-functools-lru-cache) |
| 3850 | ("python2-functools32" ,python2-functools32) |
| 3851 | ("python2-pygobject-2" ,python2-pygobject-2) |
| 3852 | ("python2-subprocess32" ,python2-subprocess32) |
| 3853 | ("python2-tkinter" ,python-2 "tk") |
| 3854 | ,@(fold alist-delete (package-propagated-inputs matplotlib) |
| 3855 | '("python-pycairo" "python-pygobject" "python-tkinter"))))))) |
| 3856 | |
| 3857 | (define-public python-matplotlib-documentation |
| 3858 | (package |
| 3859 | (name "python-matplotlib-documentation") |
| 3860 | (version (package-version python-matplotlib)) |
| 3861 | (source (package-source python-matplotlib)) |
| 3862 | (build-system python-build-system) |
| 3863 | (native-inputs |
| 3864 | `(("python-matplotlib" ,python-matplotlib) |
| 3865 | ("python-colorspacious" ,python-colorspacious) |
| 3866 | ("python-sphinx" ,python-sphinx) |
| 3867 | ("python-sphinx-gallery" ,python-sphinx-gallery) |
| 3868 | ("python-numpydoc" ,python-numpydoc) |
| 3869 | ("python-ipython" ,python-ipython) |
| 3870 | ("python-ipykernel" ,python-ipykernel) |
| 3871 | ("python-mock" ,python-mock) |
| 3872 | ("graphviz" ,graphviz) |
| 3873 | ("texlive" ,(texlive-union (list texlive-latex-amsfonts |
| 3874 | texlive-latex-amsmath |
| 3875 | texlive-latex-enumitem |
| 3876 | texlive-latex-expdlist |
| 3877 | texlive-latex-geometry |
| 3878 | texlive-latex-preview |
| 3879 | texlive-latex-type1cm |
| 3880 | texlive-latex-ucs |
| 3881 | |
| 3882 | texlive-generic-pdftex |
| 3883 | |
| 3884 | texlive-fonts-amsfonts |
| 3885 | texlive-fonts-ec |
| 3886 | texlive-fonts-adobe-times |
| 3887 | texlive-fonts-txfonts))) |
| 3888 | ("texinfo" ,texinfo) |
| 3889 | ,@(package-native-inputs python-matplotlib))) |
| 3890 | (arguments |
| 3891 | `(#:tests? #f ; we're only generating documentation |
| 3892 | #:phases |
| 3893 | (modify-phases %standard-phases |
| 3894 | (replace 'build |
| 3895 | (lambda _ |
| 3896 | (chdir "doc") |
| 3897 | (setenv "PYTHONPATH" |
| 3898 | (string-append (getenv "PYTHONPATH") |
| 3899 | ":" (getcwd) "/../examples/units")) |
| 3900 | (substitute* "conf.py" |
| 3901 | ;; Don't use git. |
| 3902 | (("^SHA = check_output.*") |
| 3903 | (string-append "SHA = \"" ,version "\"\n")) |
| 3904 | ;; Don't fetch intersphinx files from the Internet |
| 3905 | (("^explicit_order_folders" m) |
| 3906 | (string-append "intersphinx_mapping = {}\n" m)) |
| 3907 | (("'sphinx.ext.intersphinx',") "") |
| 3908 | ;; Disable URL embedding which requires internet access. |
| 3909 | (("'https://docs.scipy.org/doc/numpy'") "None") |
| 3910 | (("'https://docs.scipy.org/doc/scipy/reference'") "None")) |
| 3911 | (invoke "make" |
| 3912 | "SPHINXBUILD=sphinx-build" |
| 3913 | "SPHINXOPTS=" ; don't abort on warnings |
| 3914 | "html" "texinfo"))) |
| 3915 | (replace 'install |
| 3916 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3917 | (let* ((data (string-append (assoc-ref outputs "out") "/share")) |
| 3918 | (doc (string-append data "/doc/python-matplotlib-" ,version)) |
| 3919 | (info (string-append data "/info")) |
| 3920 | (html (string-append doc "/html"))) |
| 3921 | (mkdir-p html) |
| 3922 | (mkdir-p info) |
| 3923 | (copy-recursively "build/html" html) |
| 3924 | (symlink (string-append html "/_images") |
| 3925 | (string-append info "/matplotlib-figures")) |
| 3926 | (with-directory-excursion "build/texinfo" |
| 3927 | (substitute* "matplotlib.texi" |
| 3928 | (("@image\\{([^,]*)" all file) |
| 3929 | (string-append "@image{matplotlib-figures/" file))) |
| 3930 | (symlink (string-append html "/_images") |
| 3931 | "./matplotlib-figures") |
| 3932 | (invoke "makeinfo" "--no-split" |
| 3933 | "-o" "matplotlib.info" "matplotlib.texi")) |
| 3934 | (install-file "build/texinfo/matplotlib.info" info)) |
| 3935 | #t))))) |
| 3936 | (home-page (package-home-page python-matplotlib)) |
| 3937 | (synopsis "Documentation for the python-matplotlib package") |
| 3938 | (description (package-description python-matplotlib)) |
| 3939 | (license (package-license python-matplotlib)))) |
| 3940 | |
| 3941 | (define-public python2-matplotlib-documentation |
| 3942 | (package-with-python2 python-matplotlib-documentation)) |
| 3943 | |
| 3944 | (define-public python2-pysnptools |
| 3945 | (package |
| 3946 | (name "python2-pysnptools") |
| 3947 | (version "0.3.13") |
| 3948 | (source |
| 3949 | (origin |
| 3950 | (method url-fetch) |
| 3951 | (uri (pypi-uri "pysnptools" version)) |
| 3952 | (sha256 |
| 3953 | (base32 |
| 3954 | "0lnis5xsl7bi0hz4f7gbicahzi5zlxkc21nk3g374xv8fb5hb3qm")))) |
| 3955 | (build-system python-build-system) |
| 3956 | (arguments |
| 3957 | `(#:python ,python-2 ; only Python 2.7 is supported |
| 3958 | #:tests? #f)) ; test files (e.g. examples/toydata.bim) not included |
| 3959 | (propagated-inputs |
| 3960 | `(("python2-numpy" ,python2-numpy) |
| 3961 | ("python2-scipy" ,python2-scipy) |
| 3962 | ("python2-pandas" ,python2-pandas))) |
| 3963 | (native-inputs |
| 3964 | `(("python2-cython" ,python2-cython))) |
| 3965 | (home-page "http://microsoftgenomics.github.io/PySnpTools/") |
| 3966 | (synopsis "Library for reading and manipulating genetic data") |
| 3967 | (description |
| 3968 | "PySnpTools is a library for reading and manipulating genetic data. It |
| 3969 | can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of |
| 3970 | those files. It can also efficiently manipulate ranges of integers using set |
| 3971 | operators such as union, intersection, and difference.") |
| 3972 | (license license:asl2.0))) |
| 3973 | |
| 3974 | (define-public python-scipy |
| 3975 | (package |
| 3976 | (name "python-scipy") |
| 3977 | (version "1.2.2") |
| 3978 | (source |
| 3979 | (origin |
| 3980 | (method url-fetch) |
| 3981 | (uri (pypi-uri "scipy" version)) |
| 3982 | (sha256 |
| 3983 | (base32 |
| 3984 | "1cgvgin8fvckv96hjh3ikmwkra5rif51bdb75ifzf7xbil5iwcx4")))) |
| 3985 | (build-system python-build-system) |
| 3986 | (propagated-inputs |
| 3987 | `(("python-numpy" ,python-numpy) |
| 3988 | ("python-matplotlib" ,python-matplotlib) |
| 3989 | ("python-pyparsing" ,python-pyparsing))) |
| 3990 | (inputs |
| 3991 | `(("lapack" ,lapack) |
| 3992 | ("openblas" ,openblas))) |
| 3993 | (native-inputs |
| 3994 | `(("python-cython" ,python-cython) |
| 3995 | ("python-pytest" ,python-pytest) |
| 3996 | ("python-sphinx" ,python-sphinx) |
| 3997 | ("python-numpydoc" ,python-numpydoc) |
| 3998 | ("gfortran" ,gfortran) |
| 3999 | ("perl" ,perl) |
| 4000 | ("which" ,which))) |
| 4001 | (outputs '("out" "doc")) |
| 4002 | (arguments |
| 4003 | `(#:phases |
| 4004 | (modify-phases %standard-phases |
| 4005 | (add-after 'unpack 'disable-broken-tests |
| 4006 | (lambda _ |
| 4007 | (substitute* "scipy/sparse/linalg/dsolve/tests/test_linsolve.py" |
| 4008 | (("^( +)def test_threads_parallel\\(self\\):" m indent) |
| 4009 | (string-append indent |
| 4010 | "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" |
| 4011 | m))) |
| 4012 | (substitute* "scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py" |
| 4013 | (("^def test_parallel_threads\\(\\):" m) |
| 4014 | (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" |
| 4015 | m))) |
| 4016 | #t)) |
| 4017 | (add-before 'build 'configure-openblas |
| 4018 | (lambda* (#:key inputs #:allow-other-keys) |
| 4019 | (call-with-output-file "site.cfg" |
| 4020 | (lambda (port) |
| 4021 | (format port |
| 4022 | "[blas] |
| 4023 | libraries = openblas |
| 4024 | library_dirs = ~a/lib |
| 4025 | include_dirs = ~a/include |
| 4026 | |
| 4027 | # backslash-n to make emacs happy |
| 4028 | \n[atlas] |
| 4029 | library_dirs = ~a/lib |
| 4030 | atlas_libs = openblas |
| 4031 | " |
| 4032 | (assoc-ref inputs "openblas") |
| 4033 | (assoc-ref inputs "openblas") |
| 4034 | (assoc-ref inputs "openblas")))) |
| 4035 | #t)) |
| 4036 | (add-after 'install 'install-doc |
| 4037 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4038 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4039 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4040 | (html (string-append doc "/html")) |
| 4041 | (pyver ,(string-append "PYVER=" (version-major+minor |
| 4042 | (package-version python)))) |
| 4043 | ;; By default it tries to run sphinx-build through the Python |
| 4044 | ;; interpreter which won't work with our shell wrapper. |
| 4045 | (sphinxbuild "SPHINXBUILD=LANG=C sphinx-build")) |
| 4046 | ;; Make installed package available for building the |
| 4047 | ;; documentation |
| 4048 | (add-installed-pythonpath inputs outputs) |
| 4049 | (with-directory-excursion "doc" |
| 4050 | ;; Fix generation of images for mathematical expressions. |
| 4051 | (substitute* (find-files "source" "conf\\.py") |
| 4052 | (("pngmath_use_preview = True") |
| 4053 | "pngmath_use_preview = False")) |
| 4054 | (mkdir-p html) |
| 4055 | (invoke "make" "html" pyver sphinxbuild) |
| 4056 | (with-directory-excursion "build/html" |
| 4057 | (for-each (lambda (file) |
| 4058 | (let* ((dir (dirname file)) |
| 4059 | (tgt-dir (string-append html "/" dir))) |
| 4060 | (install-file file html))) |
| 4061 | (find-files "." ".*"))))) |
| 4062 | #t)) |
| 4063 | ;; Tests can only be run after the library has been installed and not |
| 4064 | ;; within the source directory. |
| 4065 | (delete 'check) |
| 4066 | (add-after 'install 'check |
| 4067 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4068 | (add-installed-pythonpath inputs outputs) |
| 4069 | (with-directory-excursion "/tmp" |
| 4070 | (invoke "python" "-c" |
| 4071 | "import scipy; scipy.test(verbose=2)"))))))) |
| 4072 | (home-page "https://www.scipy.org/") |
| 4073 | (synopsis "The Scipy library provides efficient numerical routines") |
| 4074 | (description "The SciPy library is one of the core packages that make up |
| 4075 | the SciPy stack. It provides many user-friendly and efficient numerical |
| 4076 | routines such as routines for numerical integration and optimization.") |
| 4077 | (properties `((python2-variant . ,(delay python2-scipy)))) |
| 4078 | (license license:bsd-3))) |
| 4079 | |
| 4080 | (define-public python2-scipy |
| 4081 | (package-with-python2 |
| 4082 | (strip-python2-variant python-scipy))) |
| 4083 | |
| 4084 | (define-public python-socksipy-branch |
| 4085 | (package |
| 4086 | (name "python-socksipy-branch") |
| 4087 | (version "1.01") |
| 4088 | (source |
| 4089 | (origin |
| 4090 | (method url-fetch) |
| 4091 | (uri (pypi-uri "SocksiPy-branch" version)) |
| 4092 | (sha256 |
| 4093 | (base32 |
| 4094 | "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) |
| 4095 | (build-system python-build-system) |
| 4096 | (arguments |
| 4097 | `(#:tests? #f)) ; There are no tests |
| 4098 | (home-page "https://code.google.com/archive/p/socksipy-branch/") |
| 4099 | (synopsis "Python SOCKS module") |
| 4100 | (description |
| 4101 | "SocksiPy - A Python SOCKS client module. It provides a |
| 4102 | socket-like interface that supports connections to any TCP |
| 4103 | service through the use of a SOCKS4, SOCKS5 or HTTP proxy. |
| 4104 | The original version was developed by Dan Haim, this is a |
| 4105 | branch created by Mario Vilas to address some open issues, |
| 4106 | as the original project seems to have been abandoned circa 2007.") |
| 4107 | (license license:bsd-3))) |
| 4108 | |
| 4109 | (define-public python2-socksipy-branch |
| 4110 | (package-with-python2 python-socksipy-branch)) |
| 4111 | |
| 4112 | (define-public python-pycodestyle |
| 4113 | (package |
| 4114 | (name "python-pycodestyle") |
| 4115 | (version "2.4.0") |
| 4116 | (source |
| 4117 | (origin |
| 4118 | (method url-fetch) |
| 4119 | (uri (pypi-uri "pycodestyle" version)) |
| 4120 | (sha256 |
| 4121 | (base32 |
| 4122 | "0fhy4vnlgpjq4qd1wdnl6pvdw7rah0ypmn8c9mkhz8clsndskz6b")))) |
| 4123 | (build-system python-build-system) |
| 4124 | (home-page "https://pycodestyle.readthedocs.io/") |
| 4125 | (synopsis "Python style guide checker") |
| 4126 | (description "@code{pycodestyle} (formerly pep8) is a tool to check |
| 4127 | Python code against some of the style conventions in |
| 4128 | @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.") |
| 4129 | (license license:expat))) |
| 4130 | |
| 4131 | (define-public python2-pycodestyle |
| 4132 | (package-with-python2 python-pycodestyle)) |
| 4133 | |
| 4134 | (define-public python-multidict |
| 4135 | (package |
| 4136 | (name "python-multidict") |
| 4137 | (version "4.2.0") |
| 4138 | (source |
| 4139 | (origin |
| 4140 | (method url-fetch) |
| 4141 | (uri (pypi-uri "multidict" version)) |
| 4142 | (sha256 |
| 4143 | (base32 |
| 4144 | "1vf5bq8hn5a9rvhr5v4fwbmarfsp35hhr8gs74kqfijy34j2f194")))) |
| 4145 | (build-system python-build-system) |
| 4146 | (native-inputs |
| 4147 | `(("python-pytest" ,python-pytest) |
| 4148 | ("python-pytest-runner" ,python-pytest-runner))) |
| 4149 | (home-page "https://github.com/aio-libs/multidict/") |
| 4150 | (synopsis "Multidict implementation") |
| 4151 | (description "Multidict is dict-like collection of key-value pairs |
| 4152 | where key might be occurred more than once in the container.") |
| 4153 | (license license:asl2.0))) |
| 4154 | |
| 4155 | (define-public python-orderedmultidict |
| 4156 | (package |
| 4157 | (name "python-orderedmultidict") |
| 4158 | (version "0.7.11") |
| 4159 | (source |
| 4160 | (origin |
| 4161 | (method url-fetch) |
| 4162 | (uri (pypi-uri "orderedmultidict" version)) |
| 4163 | (sha256 |
| 4164 | (base32 |
| 4165 | "0dls862ibm7qbq4fnvwx0xn1v9hwyzywbff8xjjdr42dd75208yw")))) |
| 4166 | (build-system python-build-system) |
| 4167 | (arguments |
| 4168 | `(#:phases |
| 4169 | (modify-phases %standard-phases |
| 4170 | (add-after 'unpack 'fix-tests |
| 4171 | (lambda _ |
| 4172 | ;; The package uses nosetest for running the tests. |
| 4173 | ;; Adding this initfile allows to run the test suite |
| 4174 | ;; without requiring nosetest. |
| 4175 | (with-output-to-file "tests/__init__.py" newline) |
| 4176 | #t))))) |
| 4177 | (propagated-inputs |
| 4178 | `(("python-six" ,python-six))) |
| 4179 | (native-inputs |
| 4180 | `(("python-pycodestyle" ,python-pycodestyle))) |
| 4181 | (home-page "https://github.com/gruns/orderedmultidict") |
| 4182 | (synopsis "Python Ordered Multivalue Dictionary - omdict") |
| 4183 | (description "This package contains a library for ordered multivalue |
| 4184 | dictionaries. A multivalue dictionary is a dictionary that can store |
| 4185 | multiple values for the same key. An ordered multivalue dictionary is a |
| 4186 | multivalue dictionary that retains the order of insertions and deletions.") |
| 4187 | (license license:unlicense))) |
| 4188 | |
| 4189 | (define-public python2-orderedmultidict |
| 4190 | (package-with-python2 python-orderedmultidict)) |
| 4191 | |
| 4192 | (define-public python-autopep8 |
| 4193 | (package |
| 4194 | (name "python-autopep8") |
| 4195 | (version "1.3.5") |
| 4196 | (source |
| 4197 | (origin |
| 4198 | (method url-fetch) |
| 4199 | (uri (pypi-uri "autopep8" version)) |
| 4200 | (sha256 |
| 4201 | (base32 |
| 4202 | "192bvhzi4d0claqxgzymvv7k3qnj627742bc8sgxpzjj42pd9112")))) |
| 4203 | (build-system python-build-system) |
| 4204 | (propagated-inputs |
| 4205 | `(("python-pycodestyle" ,python-pycodestyle))) |
| 4206 | (home-page "https://github.com/hhatto/autopep8") |
| 4207 | (synopsis "Format Python code according to the PEP 8 style guide") |
| 4208 | (description |
| 4209 | "@code{autopep8} automatically formats Python code to conform to |
| 4210 | the PEP 8 style guide. It uses the pycodestyle utility to determine |
| 4211 | what parts of the code needs to be formatted. @code{autopep8} is |
| 4212 | capable of fixing most of the formatting issues that can be reported |
| 4213 | by pycodestyle.") |
| 4214 | (license (license:non-copyleft |
| 4215 | "https://github.com/hhatto/autopep8/blob/master/LICENSE")))) |
| 4216 | |
| 4217 | (define-public python2-autopep8 |
| 4218 | (package-with-python2 python-autopep8)) |
| 4219 | |
| 4220 | (define-public python-distutils-extra |
| 4221 | (package |
| 4222 | (name "python-distutils-extra") |
| 4223 | (version "2.38") |
| 4224 | (source |
| 4225 | (origin |
| 4226 | (method url-fetch) |
| 4227 | (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/" |
| 4228 | version "/+download/python-distutils-extra-" |
| 4229 | version ".tar.gz")) |
| 4230 | (sha256 |
| 4231 | (base32 |
| 4232 | "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x")))) |
| 4233 | (build-system python-build-system) |
| 4234 | (home-page "https://launchpad.net/python-distutils-extra/") |
| 4235 | (synopsis "Enhancements to Python's distutils") |
| 4236 | (description |
| 4237 | "The python-distutils-extra module enables you to easily integrate |
| 4238 | gettext support, themed icons, and scrollkeeper-based documentation into |
| 4239 | Python's distutils.") |
| 4240 | (license license:gpl2))) |
| 4241 | |
| 4242 | (define-public python2-distutils-extra |
| 4243 | (package-with-python2 python-distutils-extra)) |
| 4244 | |
| 4245 | (define-public python2-elib.intl |
| 4246 | (package |
| 4247 | (name "python2-elib.intl") |
| 4248 | (version "0.0.3") |
| 4249 | (source |
| 4250 | (origin |
| 4251 | ;; This project doesn't tag releases or publish tarballs, so we take |
| 4252 | ;; source from a (semi-arbitrary, i.e. latest as of now) git commit. |
| 4253 | (method git-fetch) |
| 4254 | (uri (git-reference |
| 4255 | (url "https://github.com/dieterv/elib.intl.git") |
| 4256 | (commit "d09997cfef"))) |
| 4257 | (file-name (string-append name "-" version "-checkout")) |
| 4258 | (sha256 |
| 4259 | (base32 |
| 4260 | "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d")))) |
| 4261 | (build-system python-build-system) |
| 4262 | (arguments |
| 4263 | ;; incompatible with Python 3 (exception syntax) |
| 4264 | `(#:python ,python-2 |
| 4265 | #:tests? #f)) |
| 4266 | (home-page "https://github.com/dieterv/elib.intl") |
| 4267 | (synopsis "Enhanced internationalization for Python") |
| 4268 | (description |
| 4269 | "The elib.intl module provides enhanced internationalization (I18N) |
| 4270 | services for your Python modules and applications.") |
| 4271 | (license license:lgpl3+))) |
| 4272 | |
| 4273 | (define-public python-olefile |
| 4274 | (package |
| 4275 | (name "python-olefile") |
| 4276 | (version "0.45.1") |
| 4277 | (source |
| 4278 | (origin |
| 4279 | (method url-fetch) |
| 4280 | (uri (string-append "https://github.com/decalage2/olefile/archive/v" |
| 4281 | version ".tar.gz")) |
| 4282 | (file-name (string-append name "-" version ".tar.gz")) |
| 4283 | (sha256 |
| 4284 | (base32 |
| 4285 | "18ai19zwagm6nli14k8bii31ipbab2rp7plrvsm6gmfql551a8ai")))) |
| 4286 | (build-system python-build-system) |
| 4287 | (home-page |
| 4288 | "https://www.decalage.info/python/olefileio") |
| 4289 | (synopsis "Read and write Microsoft OLE2 files.") |
| 4290 | (description |
| 4291 | "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured |
| 4292 | Storage or Compound Document, Microsoft Office). It is an improved version of |
| 4293 | the OleFileIO module from PIL, the Python Image Library.") |
| 4294 | (license license:bsd-3))) |
| 4295 | |
| 4296 | (define-public python2-olefile |
| 4297 | (package-with-python2 python-olefile)) |
| 4298 | |
| 4299 | (define-public python-pillow |
| 4300 | (package |
| 4301 | (name "python-pillow") |
| 4302 | (version "5.4.1") |
| 4303 | (source |
| 4304 | (origin |
| 4305 | (method url-fetch) |
| 4306 | (uri (pypi-uri "Pillow" version)) |
| 4307 | (sha256 |
| 4308 | (base32 |
| 4309 | "17waygkhhzjd75kajlfw9v57mbb41lcpg6cvkdijqd7smm76ccsj")))) |
| 4310 | (build-system python-build-system) |
| 4311 | (native-inputs |
| 4312 | `(("python-pytest" ,python-pytest))) |
| 4313 | (inputs |
| 4314 | `(("freetype" ,freetype) |
| 4315 | ("lcms" ,lcms) |
| 4316 | ("zlib" ,zlib) |
| 4317 | ("libjpeg" ,libjpeg) |
| 4318 | ("openjpeg" ,openjpeg) |
| 4319 | ("libtiff" ,libtiff) |
| 4320 | ("libwebp" ,libwebp))) |
| 4321 | (propagated-inputs |
| 4322 | `(("python-olefile" ,python-olefile))) |
| 4323 | (arguments |
| 4324 | `(#:phases |
| 4325 | (modify-phases %standard-phases |
| 4326 | (add-after 'unpack 'patch-ldconfig |
| 4327 | (lambda _ |
| 4328 | (substitute* "setup.py" |
| 4329 | (("\\['/sbin/ldconfig', '-p'\\]") "['true']")))) |
| 4330 | (delete 'check) ; We must run checks after python-pillow is installed. |
| 4331 | (add-after 'install 'check-installed |
| 4332 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 4333 | (begin |
| 4334 | (setenv "HOME" (getcwd)) |
| 4335 | ;; Make installed package available for running the tests. |
| 4336 | (add-installed-pythonpath inputs outputs) |
| 4337 | (invoke "python" "selftest.py" "--installed") |
| 4338 | (invoke "python" "-m" "pytest" "-vv"))))))) |
| 4339 | (home-page "https://python-pillow.org") |
| 4340 | (synopsis "Fork of the Python Imaging Library") |
| 4341 | (description |
| 4342 | "The Python Imaging Library adds image processing capabilities to your |
| 4343 | Python interpreter. This library provides extensive file format support, an |
| 4344 | efficient internal representation, and fairly powerful image processing |
| 4345 | capabilities. The core image library is designed for fast access to data |
| 4346 | stored in a few basic pixel formats. It should provide a solid foundation for |
| 4347 | a general image processing tool.") |
| 4348 | (license (license:x11-style |
| 4349 | "http://www.pythonware.com/products/pil/license.htm" |
| 4350 | "The PIL Software License")))) |
| 4351 | |
| 4352 | (define-public python2-pillow |
| 4353 | (package-with-python2 python-pillow)) |
| 4354 | |
| 4355 | (define-public python-pycparser |
| 4356 | (package |
| 4357 | (name "python-pycparser") |
| 4358 | (version "2.18") |
| 4359 | (source |
| 4360 | (origin |
| 4361 | (method url-fetch) |
| 4362 | (uri (pypi-uri "pycparser" version)) |
| 4363 | (sha256 |
| 4364 | (base32 |
| 4365 | "09mjyw82ibqzl449g7swy8bfxnfpmas0815d2rkdjlcqw81wma4r")))) |
| 4366 | (outputs '("out" "doc")) |
| 4367 | (build-system python-build-system) |
| 4368 | (native-inputs |
| 4369 | `(("pkg-config" ,pkg-config))) |
| 4370 | (arguments |
| 4371 | `(#:phases |
| 4372 | (modify-phases %standard-phases |
| 4373 | (replace 'check |
| 4374 | (lambda _ |
| 4375 | (with-directory-excursion "tests" |
| 4376 | (invoke "python" "all_tests.py")) |
| 4377 | #t)) |
| 4378 | (add-after 'install 'install-doc |
| 4379 | (lambda* (#:key outputs #:allow-other-keys) |
| 4380 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4381 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4382 | (examples (string-append doc "/examples"))) |
| 4383 | (mkdir-p examples) |
| 4384 | (for-each (lambda (file) |
| 4385 | (copy-file (string-append "." file) |
| 4386 | (string-append doc file))) |
| 4387 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 4388 | (copy-recursively "examples" examples))))))) |
| 4389 | (home-page "https://github.com/eliben/pycparser") |
| 4390 | (synopsis "C parser in Python") |
| 4391 | (description |
| 4392 | "Pycparser is a complete parser of the C language, written in pure Python |
| 4393 | using the PLY parsing library. It parses C code into an AST and can serve as |
| 4394 | a front-end for C compilers or analysis tools.") |
| 4395 | (license license:bsd-3))) |
| 4396 | |
| 4397 | (define-public python2-pycparser |
| 4398 | (package-with-python2 python-pycparser)) |
| 4399 | |
| 4400 | (define-public python-pywavelets |
| 4401 | (package |
| 4402 | (name "python-pywavelets") |
| 4403 | (version "1.0.1") |
| 4404 | (home-page "https://github.com/PyWavelets/pywt") |
| 4405 | (source (origin |
| 4406 | (method url-fetch) |
| 4407 | (uri (pypi-uri "PyWavelets" version)) |
| 4408 | (sha256 |
| 4409 | (base32 |
| 4410 | "1p3qv2v66ghnqrb1f98wyyhp9dz71jwcd6kfpsax65sfdpiyqp1w")))) |
| 4411 | (build-system python-build-system) |
| 4412 | (arguments |
| 4413 | '(#:modules ((ice-9 ftw) |
| 4414 | (srfi srfi-1) |
| 4415 | (srfi srfi-26) |
| 4416 | (guix build utils) |
| 4417 | (guix build python-build-system)) |
| 4418 | #:phases (modify-phases %standard-phases |
| 4419 | (replace 'check |
| 4420 | (lambda _ |
| 4421 | (let ((cwd (getcwd)) |
| 4422 | (libdir (find (cut string-prefix? "lib." <>) |
| 4423 | (scandir "build")))) |
| 4424 | (with-directory-excursion (string-append cwd "/build/" libdir) |
| 4425 | (invoke "nosetests" "-v" ".")))))))) |
| 4426 | (native-inputs |
| 4427 | `(("python-matplotlib" ,python-matplotlib) ;for tests |
| 4428 | ("python-nose" ,python-nose))) |
| 4429 | (propagated-inputs |
| 4430 | `(("python-numpy" ,python-numpy))) |
| 4431 | (synopsis "Wavelet transforms in Python") |
| 4432 | (description |
| 4433 | "PyWavelets is a library for wavelet transforms in Python. Wavelets are |
| 4434 | mathematical basis functions that are localized in both time and frequency. |
| 4435 | Wavelet transforms are time-frequency transforms employing wavelets. They are |
| 4436 | similar to Fourier transforms, the difference being that Fourier transforms are |
| 4437 | localized only in frequency instead of in time and frequency.") |
| 4438 | (license license:expat))) |
| 4439 | |
| 4440 | (define-public python2-pywavelets |
| 4441 | (package-with-python2 python-pywavelets)) |
| 4442 | |
| 4443 | (define-public python-xcffib |
| 4444 | (package |
| 4445 | (name "python-xcffib") |
| 4446 | (version "0.6.0") |
| 4447 | (source |
| 4448 | (origin |
| 4449 | (method url-fetch) |
| 4450 | (uri (pypi-uri "xcffib" version)) |
| 4451 | (sha256 |
| 4452 | (base32 |
| 4453 | "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n")))) |
| 4454 | (build-system python-build-system) |
| 4455 | (inputs |
| 4456 | `(("libxcb" ,libxcb))) |
| 4457 | (propagated-inputs |
| 4458 | `(("python-cffi" ,python-cffi) ; used at run time |
| 4459 | ("python-six" ,python-six))) |
| 4460 | (arguments |
| 4461 | `(;; FIXME: Tests need more work. See ".travis.yml" in the repository. |
| 4462 | #:tests? #f |
| 4463 | #:phases |
| 4464 | (modify-phases %standard-phases |
| 4465 | (add-after 'unpack 'fix-libxcb-path |
| 4466 | (lambda* (#:key inputs #:allow-other-keys) |
| 4467 | (let ((libxcb (assoc-ref inputs "libxcb"))) |
| 4468 | (substitute* '("xcffib/__init__.py") |
| 4469 | (("^soname = \"") (string-append "soname = \"" libxcb "/lib/"))) |
| 4470 | #t))) |
| 4471 | (add-after 'install 'install-doc |
| 4472 | (lambda* (#:key outputs #:allow-other-keys) |
| 4473 | (let ((doc (string-append (assoc-ref outputs "out") "/share" |
| 4474 | "/doc/" ,name "-" ,version))) |
| 4475 | (mkdir-p doc) |
| 4476 | (copy-file "README.md" |
| 4477 | (string-append doc "/README.md")) |
| 4478 | #t)))))) |
| 4479 | (home-page "https://github.com/tych0/xcffib") |
| 4480 | (synopsis "XCB Python bindings") |
| 4481 | (description |
| 4482 | "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds |
| 4483 | support for Python 3 and PyPy. It is based on cffi.") |
| 4484 | (license license:expat))) |
| 4485 | |
| 4486 | (define-public python2-xcffib |
| 4487 | (package-with-python2 python-xcffib)) |
| 4488 | |
| 4489 | (define-public python-cairocffi |
| 4490 | (package |
| 4491 | (name "python-cairocffi") |
| 4492 | (version "0.9.0") |
| 4493 | (source |
| 4494 | (origin |
| 4495 | (method url-fetch) |
| 4496 | (uri (pypi-uri "cairocffi" version)) |
| 4497 | (sha256 |
| 4498 | (base32 |
| 4499 | "0dq3k4zhqd8cwsf3nyjqvjqm8wkvrjn1wjf44rl3v0h8kqx6qf0m")) |
| 4500 | (patches (search-patches "python-cairocffi-dlopen-path.patch")))) |
| 4501 | (build-system python-build-system) |
| 4502 | (outputs '("out" "doc")) |
| 4503 | (inputs |
| 4504 | `(("glib" ,glib) |
| 4505 | ("gtk+" ,gtk+) |
| 4506 | ("gdk-pixbuf" ,gdk-pixbuf) |
| 4507 | ("cairo" ,cairo) |
| 4508 | ("pango" ,pango))) |
| 4509 | (native-inputs |
| 4510 | `(("pkg-config" ,pkg-config) |
| 4511 | ("python-pytest" ,python-pytest) |
| 4512 | ("python-pytest-cov" ,python-pytest-cov) |
| 4513 | ("python-pytest-runner" ,python-pytest-runner) |
| 4514 | ("python-sphinx" ,python-sphinx) |
| 4515 | ("python-docutils" ,python-docutils))) |
| 4516 | (propagated-inputs |
| 4517 | `(("python-xcffib" ,python-xcffib))) ; used at run time |
| 4518 | (arguments |
| 4519 | `(#:phases |
| 4520 | (modify-phases %standard-phases |
| 4521 | (add-after 'unpack 'patch-paths |
| 4522 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4523 | (substitute* (find-files "." "\\.py$") |
| 4524 | (("dlopen\\(ffi, 'cairo'") |
| 4525 | (string-append "dlopen(ffi, '" (assoc-ref inputs "cairo") |
| 4526 | "/lib/libcairo.so.2'")) |
| 4527 | (("dlopen\\(ffi, 'gdk-3'") |
| 4528 | (string-append "dlopen(ffi, '" (assoc-ref inputs "gtk+") |
| 4529 | "/lib/libgtk-3.so.0'")) |
| 4530 | (("dlopen\\(ffi, 'gdk_pixbuf-2.0'") |
| 4531 | (string-append "dlopen(ffi, '" (assoc-ref inputs "gdk-pixbuf") |
| 4532 | "/lib/libgdk_pixbuf-2.0.so.0'")) |
| 4533 | (("dlopen\\(ffi, 'glib-2.0'") |
| 4534 | (string-append "dlopen(ffi, '" (assoc-ref inputs "glib") |
| 4535 | "/lib/libglib-2.0.so.0'")) |
| 4536 | (("dlopen\\(ffi, 'gobject-2.0'") |
| 4537 | (string-append "dlopen(ffi, '" (assoc-ref inputs "glib") |
| 4538 | "/lib/libgobject-2.0.so.0'")) |
| 4539 | (("dlopen\\(ffi, 'pangocairo-1.0'") |
| 4540 | (string-append "dlopen(ffi, '" (assoc-ref inputs "pango") |
| 4541 | "/lib/libpangocairo-1.0.so.0'")) |
| 4542 | (("dlopen\\(ffi, 'pango-1.0'") |
| 4543 | (string-append "dlopen(ffi, '" (assoc-ref inputs "pango") |
| 4544 | "/lib/libpango-1.0.so.0'"))) |
| 4545 | #t)) |
| 4546 | (add-after 'install 'install-doc |
| 4547 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 4548 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4549 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4550 | (html (string-append doc "/html"))) |
| 4551 | (setenv "LD_LIBRARY_PATH" |
| 4552 | (string-append (assoc-ref inputs "cairo") "/lib" ":" |
| 4553 | (assoc-ref inputs "gdk-pixbuf") "/lib")) |
| 4554 | (setenv "LANG" "en_US.UTF-8") |
| 4555 | (mkdir-p html) |
| 4556 | (for-each (lambda (file) |
| 4557 | (copy-file (string-append "." file) |
| 4558 | (string-append doc file))) |
| 4559 | '("/README.rst" "/CHANGES" "/LICENSE")) |
| 4560 | (system* "python" "setup.py" "build_sphinx") |
| 4561 | (copy-recursively "docs/_build/html" html) |
| 4562 | #t)))))) |
| 4563 | (home-page "https://github.com/Kozea/cairocffi") |
| 4564 | (synopsis "Python bindings and object-oriented API for Cairo") |
| 4565 | (description |
| 4566 | "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of |
| 4567 | Python bindings and object-oriented API for cairo. Cairo is a 2D vector |
| 4568 | graphics library with support for multiple backends including image buffers, |
| 4569 | PNG, PostScript, PDF, and SVG file output.") |
| 4570 | (license license:bsd-3))) |
| 4571 | |
| 4572 | (define-public python2-cairocffi |
| 4573 | (package-with-python2 python-cairocffi)) |
| 4574 | |
| 4575 | (define-public python-decorator |
| 4576 | (package |
| 4577 | (name "python-decorator") |
| 4578 | (version "4.3.0") |
| 4579 | (source |
| 4580 | (origin |
| 4581 | (method url-fetch) |
| 4582 | (uri (pypi-uri "decorator" version)) |
| 4583 | (sha256 |
| 4584 | (base32 "0308djallnh00v112y5b7nadl657ysmkp6vc8xn51d6yzc9zm7n3")))) |
| 4585 | (build-system python-build-system) |
| 4586 | (home-page "https://pypi.python.org/pypi/decorator/") |
| 4587 | (synopsis "Python module to simplify usage of decorators") |
| 4588 | (description |
| 4589 | "The aim of the decorator module is to simplify the usage of decorators |
| 4590 | for the average programmer, and to popularize decorators usage giving examples |
| 4591 | of useful decorators, such as memoize, tracing, redirecting_stdout, locked, |
| 4592 | etc. The core of this module is a decorator factory.") |
| 4593 | (license license:expat))) |
| 4594 | |
| 4595 | (define-public python2-decorator |
| 4596 | (package-with-python2 python-decorator)) |
| 4597 | |
| 4598 | (define-public python-drmaa |
| 4599 | (package |
| 4600 | (name "python-drmaa") |
| 4601 | (version "0.7.7") |
| 4602 | (source |
| 4603 | (origin |
| 4604 | (method url-fetch) |
| 4605 | (uri (pypi-uri "drmaa" version)) |
| 4606 | (sha256 |
| 4607 | (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx")))) |
| 4608 | (build-system python-build-system) |
| 4609 | ;; The test suite requires libdrmaa which is provided by the cluster |
| 4610 | ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH |
| 4611 | ;; should be set to the path of the libdrmaa library. |
| 4612 | (arguments '(#:tests? #f)) |
| 4613 | (native-inputs |
| 4614 | `(("python-nose" ,python-nose))) |
| 4615 | (home-page "https://pypi.python.org/pypi/drmaa") |
| 4616 | (synopsis "Python bindings for the DRMAA library") |
| 4617 | (description |
| 4618 | "A Python package for Distributed Resource Management (DRM) job |
| 4619 | submission and control. This package is an implementation of the DRMAA 1.0 |
| 4620 | Python language binding specification.") |
| 4621 | (license license:bsd-3))) |
| 4622 | |
| 4623 | (define-public python2-drmaa |
| 4624 | (package-with-python2 python-drmaa)) |
| 4625 | |
| 4626 | (define-public python-grako |
| 4627 | (package |
| 4628 | (name "python-grako") |
| 4629 | (version "3.99.9") |
| 4630 | (source |
| 4631 | (origin |
| 4632 | (method url-fetch) |
| 4633 | (uri |
| 4634 | (pypi-uri "grako" version ".zip")) |
| 4635 | (sha256 |
| 4636 | (base32 |
| 4637 | "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw")))) |
| 4638 | (build-system python-build-system) |
| 4639 | (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive. |
| 4640 | (native-inputs |
| 4641 | `(("unzip" ,unzip) |
| 4642 | ("python-pytest" ,python-pytest) |
| 4643 | ("python-pytest-runner" ,python-pytest-runner))) |
| 4644 | (home-page "https://bitbucket.org/neogeny/grako") |
| 4645 | (synopsis "EBNF parser generator") |
| 4646 | (description |
| 4647 | "Grako takes a grammar in a variation of EBNF as input, and outputs a |
| 4648 | memoizing PEG/Packrat parser in Python.") |
| 4649 | (license license:bsd-3))) |
| 4650 | |
| 4651 | (define-public python2-grako |
| 4652 | (package-with-python2 python-grako)) |
| 4653 | |
| 4654 | (define-public python-gridmap |
| 4655 | (package |
| 4656 | (name "python-gridmap") |
| 4657 | (version "0.13.0") |
| 4658 | (source |
| 4659 | (origin |
| 4660 | (method git-fetch) |
| 4661 | (uri (git-reference |
| 4662 | (url "https://github.com/pygridtools/gridmap.git") |
| 4663 | (commit (string-append "v" version)))) |
| 4664 | (file-name (git-file-name name version)) |
| 4665 | (sha256 |
| 4666 | (base32 "1478lbwsr1w24cii2x01m2910fvh8r43ghnb78nc972a96hqiknm")))) |
| 4667 | (build-system python-build-system) |
| 4668 | (arguments |
| 4669 | '(#:tests? #f)) ; FIXME: Requires python-cherrypy. |
| 4670 | (propagated-inputs |
| 4671 | `(("python-psutil" ,python-psutil) |
| 4672 | ("python-drmaa" ,python-drmaa) |
| 4673 | ("python-pyzmq" ,python-pyzmq))) |
| 4674 | (home-page "https://github.com/pygridtools/gridmap") |
| 4675 | (synopsis "Create jobs on a cluster directly from Python") |
| 4676 | (description |
| 4677 | "Gridmap is a Python package to allow you to easily create jobs on the |
| 4678 | cluster directly from Python. You can directly map Python functions onto the |
| 4679 | cluster without needing to write any wrapper code yourself.") |
| 4680 | (license license:gpl3+))) |
| 4681 | |
| 4682 | (define-public python2-gridmap |
| 4683 | (package-with-python2 python-gridmap)) |
| 4684 | |
| 4685 | (define-public python-honcho |
| 4686 | (package |
| 4687 | (name "python-honcho") |
| 4688 | (version "1.0.1") |
| 4689 | (source |
| 4690 | (origin |
| 4691 | (method git-fetch) |
| 4692 | (uri (git-reference |
| 4693 | (url "https://github.com/nickstenning/honcho.git") |
| 4694 | (commit (string-append "v" version)))) |
| 4695 | (file-name (git-file-name name version)) |
| 4696 | (sha256 |
| 4697 | (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b")))) |
| 4698 | (build-system python-build-system) |
| 4699 | (native-inputs |
| 4700 | `(("python-pytest" ,python-pytest) |
| 4701 | ("python-mock" ,python-mock) |
| 4702 | ("python-tox" ,python-tox) |
| 4703 | ("which" ,which))) ;for tests |
| 4704 | (propagated-inputs |
| 4705 | `(("python-jinja2" ,python-jinja2))) |
| 4706 | (arguments |
| 4707 | `(#:phases |
| 4708 | (modify-phases %standard-phases |
| 4709 | (delete 'check) |
| 4710 | (add-after 'install 'check |
| 4711 | (lambda* (#:key outputs inputs #:allow-other-keys) |
| 4712 | ;; fix honcho path in testsuite |
| 4713 | (substitute* "tests/conftest.py" |
| 4714 | (("'honcho'") (string-append "'" (assoc-ref outputs "out") |
| 4715 | "/bin/honcho" "'"))) |
| 4716 | ;; It's easier to run tests after install. |
| 4717 | ;; Make installed package available for running the tests |
| 4718 | (add-installed-pythonpath inputs outputs) |
| 4719 | (invoke "py.test" "-v")))))) |
| 4720 | (home-page "https://github.com/nickstenning/honcho") |
| 4721 | (synopsis "Manage Procfile-based applications") |
| 4722 | (description |
| 4723 | "A Procfile is a file which describes how to run an application |
| 4724 | consisting of several processes. honcho starts all listed processes. |
| 4725 | The output of all running processes is collected by honcho and |
| 4726 | displayed.") |
| 4727 | (license license:expat))) |
| 4728 | |
| 4729 | (define-public python2-honcho |
| 4730 | (package-with-python2 python-honcho)) |
| 4731 | |
| 4732 | (define-public python-pexpect |
| 4733 | (package |
| 4734 | (name "python-pexpect") |
| 4735 | (version "4.6.0") |
| 4736 | (source |
| 4737 | (origin |
| 4738 | (method url-fetch) |
| 4739 | (uri (pypi-uri "pexpect" version)) |
| 4740 | (sha256 |
| 4741 | (base32 "1fla85g47iaxxpjhp9vkxdnv4pgc7rplfy6ja491smrrk0jqi3ia")))) |
| 4742 | (build-system python-build-system) |
| 4743 | (arguments |
| 4744 | `(#:phases |
| 4745 | (modify-phases %standard-phases |
| 4746 | (add-before 'check 'prepare-tests |
| 4747 | (lambda _ |
| 4748 | (substitute* (find-files "tests") |
| 4749 | (("/bin/ls") (which "ls")) |
| 4750 | (("/bin/echo") (which "echo")) |
| 4751 | (("/bin/which") (which "which")) |
| 4752 | ;; Many tests try to use the /bin directory which |
| 4753 | ;; is not present in the build environment. |
| 4754 | ;; Use one that's non-empty and unlikely to change. |
| 4755 | (("/bin'") "/dev'")) |
| 4756 | ;; XXX: Socket connection test gets "Connection reset by peer". |
| 4757 | ;; Why does it not work? Delete for now. |
| 4758 | (delete-file "tests/test_socket.py") |
| 4759 | #t)) |
| 4760 | (replace 'check (lambda _ (invoke "nosetests" "-v")))))) |
| 4761 | (native-inputs |
| 4762 | `(("python-nose" ,python-nose) |
| 4763 | ("python-pytest" ,python-pytest) |
| 4764 | ("man-db" ,man-db) |
| 4765 | ("which" ,which) |
| 4766 | ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py' |
| 4767 | (propagated-inputs |
| 4768 | `(("python-ptyprocess" ,python-ptyprocess))) |
| 4769 | (home-page "http://pexpect.readthedocs.org/") |
| 4770 | (synopsis "Controlling interactive console applications") |
| 4771 | (description |
| 4772 | "Pexpect is a pure Python module for spawning child applications; |
| 4773 | controlling them; and responding to expected patterns in their output. |
| 4774 | Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a |
| 4775 | child application and control it as if a human were typing commands.") |
| 4776 | (license license:isc))) |
| 4777 | |
| 4778 | (define-public python2-pexpect |
| 4779 | (package-with-python2 python-pexpect)) |
| 4780 | |
| 4781 | (define-public python-setuptools-scm |
| 4782 | (package |
| 4783 | (name "python-setuptools-scm") |
| 4784 | (version "3.1.0") |
| 4785 | (source (origin |
| 4786 | (method url-fetch) |
| 4787 | (uri (pypi-uri "setuptools_scm" version)) |
| 4788 | (sha256 |
| 4789 | (base32 |
| 4790 | "0h4bglwfz8b9prqljv8z3w9rgydfyxzaj05bm1y6zs5m6shz548i")))) |
| 4791 | (build-system python-build-system) |
| 4792 | (home-page "https://github.com/pypa/setuptools_scm/") |
| 4793 | (synopsis "Manage Python package versions in SCM metadata") |
| 4794 | (description |
| 4795 | "Setuptools_scm handles managing your Python package versions in |
| 4796 | @dfn{software configuration management} (SCM) metadata instead of declaring |
| 4797 | them as the version argument or in a SCM managed file.") |
| 4798 | (license license:expat))) |
| 4799 | |
| 4800 | (define-public python2-setuptools-scm |
| 4801 | (package-with-python2 python-setuptools-scm)) |
| 4802 | |
| 4803 | (define-public python-pathpy |
| 4804 | (package |
| 4805 | (name "python-pathpy") |
| 4806 | (version "11.0.1") |
| 4807 | (source |
| 4808 | (origin |
| 4809 | (method url-fetch) |
| 4810 | (uri (pypi-uri "path.py" version)) |
| 4811 | (sha256 |
| 4812 | (base32 "07x15v8c7ry9bvycw294c9yq6ky9v2b0dalvgi6rn38ilh69vsz7")))) |
| 4813 | ;; (outputs '("out" "doc")) |
| 4814 | (build-system python-build-system) |
| 4815 | (propagated-inputs |
| 4816 | `(("python-appdirs" ,python-appdirs))) |
| 4817 | (native-inputs |
| 4818 | `(("python-setuptools-scm" ,python-setuptools-scm) |
| 4819 | ("python-sphinx" ,python-sphinx) |
| 4820 | ("python-rst.linker" ,python-rst.linker) |
| 4821 | ("python-pytest" ,python-pytest) |
| 4822 | ("python-pytest-runner" ,python-pytest-runner))) |
| 4823 | (arguments |
| 4824 | ;; FIXME: Documentation and tests require "jaraco.packaging". |
| 4825 | `(#:tests? #f)) |
| 4826 | ;; #:phases |
| 4827 | ;; (modify-phases %standard-phases |
| 4828 | ;; (add-after 'build 'build-doc |
| 4829 | ;; (lambda _ |
| 4830 | ;; (setenv "LANG" "en_US.UTF-8") |
| 4831 | ;; (zero? (system* "python" "setup.py" "build_sphinx")))) |
| 4832 | ;; (add-after 'install 'install-doc |
| 4833 | ;; (lambda* (#:key outputs #:allow-other-keys) |
| 4834 | ;; (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 4835 | ;; (doc (string-append data "/doc/" ,name "-" ,version)) |
| 4836 | ;; (html (string-append doc "/html"))) |
| 4837 | ;; (mkdir-p html) |
| 4838 | ;; (for-each (lambda (file) |
| 4839 | ;; (copy-file file (string-append doc "/" file))) |
| 4840 | ;; '("README.rst" "CHANGES.rst")) |
| 4841 | ;; (copy-recursively "build/sphinx/html" html))))))) |
| 4842 | (home-page "https://github.com/jaraco/path.py") |
| 4843 | (synopsis "Python module wrapper for built-in os.path") |
| 4844 | (description |
| 4845 | "@code{path.py} implements path objects as first-class entities, allowing |
| 4846 | common operations on files to be invoked on those path objects directly.") |
| 4847 | (license license:expat))) |
| 4848 | |
| 4849 | (define-public python2-pathpy |
| 4850 | (package-with-python2 python-pathpy)) |
| 4851 | |
| 4852 | (define-public python-simplegeneric |
| 4853 | (package |
| 4854 | (name "python-simplegeneric") |
| 4855 | (version "0.8.1") |
| 4856 | (source |
| 4857 | (origin |
| 4858 | (method url-fetch) |
| 4859 | (uri (pypi-uri "simplegeneric" version ".zip")) |
| 4860 | (sha256 |
| 4861 | (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw")))) |
| 4862 | (build-system python-build-system) |
| 4863 | (native-inputs |
| 4864 | `(("unzip" ,unzip))) |
| 4865 | (home-page "http://cheeseshop.python.org/pypi/simplegeneric") |
| 4866 | (synopsis "Python module for simple generic functions") |
| 4867 | (description |
| 4868 | "The simplegeneric module lets you define simple single-dispatch generic |
| 4869 | functions, akin to Python’s built-in generic functions like @code{len()}, |
| 4870 | @code{iter()} and so on. However, instead of using specially-named methods, |
| 4871 | these generic functions use simple lookup tables, akin to those used by |
| 4872 | e.g. @code{pickle.dump()} and other generic functions found in the Python |
| 4873 | standard library.") |
| 4874 | (license license:zpl2.1))) |
| 4875 | |
| 4876 | (define-public python2-simplegeneric |
| 4877 | (package-with-python2 python-simplegeneric)) |
| 4878 | |
| 4879 | (define-public python-ipython-genutils |
| 4880 | ;; TODO: This package is retired, check if can be removed, see description. |
| 4881 | (package |
| 4882 | (name "python-ipython-genutils") |
| 4883 | (version "0.1.0") |
| 4884 | (source |
| 4885 | (origin |
| 4886 | (method url-fetch) |
| 4887 | (uri (pypi-uri "ipython_genutils" version)) |
| 4888 | (sha256 |
| 4889 | (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is")))) |
| 4890 | (build-system python-build-system) |
| 4891 | (arguments `(#:tests? #f)) ; no tests |
| 4892 | (home-page "https://ipython.org") |
| 4893 | (synopsis "Vestigial utilities from IPython") |
| 4894 | (description |
| 4895 | "This package provides retired utilities from IPython. No packages |
| 4896 | outside IPython/Jupyter should depend on it. |
| 4897 | |
| 4898 | This package shouldn't exist. It contains some common utilities shared by |
| 4899 | Jupyter and IPython projects during The Big Split. As soon as possible, those |
| 4900 | packages will remove their dependency on this, and this package will go |
| 4901 | away.") |
| 4902 | (license license:bsd-3))) |
| 4903 | |
| 4904 | (define-public python2-ipython-genutils |
| 4905 | (package-with-python2 python-ipython-genutils)) |
| 4906 | |
| 4907 | (define-public python-traitlets |
| 4908 | (package |
| 4909 | (name "python-traitlets") |
| 4910 | (version "4.3.2") |
| 4911 | (source |
| 4912 | (origin |
| 4913 | (method url-fetch) |
| 4914 | (uri (pypi-uri "traitlets" version)) |
| 4915 | (sha256 |
| 4916 | (base32 |
| 4917 | "0dbq7sx26xqz5ixs711k5nc88p8a0nqyz6162pwks5dpcz9d4jww")))) |
| 4918 | (build-system python-build-system) |
| 4919 | (arguments |
| 4920 | `(#:phases |
| 4921 | (modify-phases %standard-phases |
| 4922 | (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets")))))) |
| 4923 | (propagated-inputs |
| 4924 | `(("python-ipython-genutils" ,python-ipython-genutils) |
| 4925 | ("python-decorator" ,python-decorator))) ;not needed for >4.3.2 |
| 4926 | (native-inputs |
| 4927 | `(("python-pytest" ,python-pytest))) |
| 4928 | (properties `((python2-variant . ,(delay python2-traitlets)))) |
| 4929 | (home-page "https://ipython.org") |
| 4930 | (synopsis "Configuration system for Python applications") |
| 4931 | (description |
| 4932 | "Traitlets is a framework that lets Python classes have attributes with |
| 4933 | type checking, dynamically calculated default values, and ‘on change’ |
| 4934 | callbacks. The package also includes a mechanism to use traitlets for |
| 4935 | configuration, loading values from files or from command line arguments. This |
| 4936 | is a distinct layer on top of traitlets, so you can use traitlets in your code |
| 4937 | without using the configuration machinery.") |
| 4938 | (license license:bsd-3))) |
| 4939 | |
| 4940 | (define-public python2-traitlets |
| 4941 | (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets)))) |
| 4942 | (package |
| 4943 | (inherit traitlets) |
| 4944 | (propagated-inputs |
| 4945 | `(("python2-enum34" ,python2-enum34) |
| 4946 | ,@(package-propagated-inputs traitlets)))))) |
| 4947 | |
| 4948 | (define-public python-jupyter-core |
| 4949 | (package |
| 4950 | (name "python-jupyter-core") |
| 4951 | (version "4.4.0") |
| 4952 | (source |
| 4953 | (origin |
| 4954 | (method url-fetch) |
| 4955 | (uri (string-append (pypi-uri "jupyter_core" version))) |
| 4956 | (sha256 |
| 4957 | (base32 |
| 4958 | "1dy083rarba8prn9f9srxq3c7n7vyql02ycrqq306c40lr57aw5s")))) |
| 4959 | (build-system python-build-system) |
| 4960 | ;; FIXME: not sure how to run the tests |
| 4961 | (arguments `(#:tests? #f)) |
| 4962 | (propagated-inputs |
| 4963 | `(("python-traitlets" ,python-traitlets))) |
| 4964 | (home-page "http://jupyter.org/") |
| 4965 | (synopsis "Jupyter base package") |
| 4966 | (description |
| 4967 | "Jupyter core is the base package on which Jupyter projects rely.") |
| 4968 | (license license:bsd-3))) |
| 4969 | |
| 4970 | (define-public python2-jupyter-core |
| 4971 | (package-with-python2 python-jupyter-core)) |
| 4972 | |
| 4973 | (define-public python-jupyter-client |
| 4974 | (package |
| 4975 | (name "python-jupyter-client") |
| 4976 | (version "5.2.4") |
| 4977 | (source |
| 4978 | (origin |
| 4979 | (method url-fetch) |
| 4980 | (uri (pypi-uri "jupyter_client" version)) |
| 4981 | (sha256 |
| 4982 | (base32 |
| 4983 | "0l9mh7ccrpl3lppym3dnky8n1nk7xarzzdcxf4q2s7aw203cpydm")))) |
| 4984 | (build-system python-build-system) |
| 4985 | ;; Tests fail because of missing native python kernel which I assume is |
| 4986 | ;; provided by the ipython package, which we cannot use because it would |
| 4987 | ;; cause a dependency cycle. |
| 4988 | (arguments `(#:tests? #f)) |
| 4989 | (propagated-inputs |
| 4990 | `(("python-pyzmq" ,python-pyzmq) |
| 4991 | ("python-traitlets" ,python-traitlets) |
| 4992 | ("python-jupyter-core" ,python-jupyter-core))) |
| 4993 | (home-page "http://jupyter.org/") |
| 4994 | (synopsis "Jupyter protocol implementation and client libraries") |
| 4995 | (description |
| 4996 | "The @code{jupyter_client} package contains the reference implementation |
| 4997 | of the Jupyter protocol. It also provides client and kernel management APIs |
| 4998 | for working with kernels, and the @code{jupyter kernelspec} entrypoint for |
| 4999 | installing @code{kernelspec}s for use with Jupyter frontends.") |
| 5000 | (license license:bsd-3))) |
| 5001 | |
| 5002 | (define-public python2-jupyter-client |
| 5003 | (package-with-python2 python-jupyter-client)) |
| 5004 | |
| 5005 | (define-public python-ipykernel |
| 5006 | (package |
| 5007 | (name "python-ipykernel") |
| 5008 | (version "5.1.1") |
| 5009 | (source |
| 5010 | (origin |
| 5011 | (method url-fetch) |
| 5012 | (uri (pypi-uri "ipykernel" version)) |
| 5013 | (sha256 |
| 5014 | (base32 "173nm29g85w8cac3fg40b27qaq26g41wgg6qn79ql1hq4w2n5sgh")))) |
| 5015 | (build-system python-build-system) |
| 5016 | (arguments |
| 5017 | `(#:phases |
| 5018 | (modify-phases %standard-phases |
| 5019 | (replace 'check |
| 5020 | (lambda _ |
| 5021 | (setenv "HOME" "/tmp") |
| 5022 | (invoke "pytest" "-v") |
| 5023 | #t))))) |
| 5024 | (propagated-inputs |
| 5025 | `(("python-ipython" ,python-ipython) |
| 5026 | ;; imported at runtime during connect |
| 5027 | ("python-jupyter-client" ,python-jupyter-client))) |
| 5028 | (native-inputs |
| 5029 | `(("python-pytest" ,python-pytest) |
| 5030 | ("python-nose" ,python-nose))) |
| 5031 | (home-page "https://ipython.org") |
| 5032 | (synopsis "IPython Kernel for Jupyter") |
| 5033 | (description |
| 5034 | "This package provides the IPython kernel for Jupyter.") |
| 5035 | (license license:bsd-3))) |
| 5036 | |
| 5037 | ;; Version 5.1.1 and above no longer support Python 2. |
| 5038 | (define-public python2-ipykernel |
| 5039 | (package |
| 5040 | (name "python2-ipykernel") |
| 5041 | (version "5.1.0") |
| 5042 | (source |
| 5043 | (origin |
| 5044 | (method url-fetch) |
| 5045 | (uri (pypi-uri "ipykernel" version)) |
| 5046 | (sha256 |
| 5047 | (base32 "0br95qhrd5k65g10djngiy27hs0642301hlf2q142i8djabvzh0g")))) |
| 5048 | (build-system python-build-system) |
| 5049 | (arguments |
| 5050 | `(#:python ,python-2 |
| 5051 | #:phases |
| 5052 | (modify-phases %standard-phases |
| 5053 | (replace 'check |
| 5054 | (lambda _ |
| 5055 | (setenv "HOME" "/tmp") |
| 5056 | (invoke "pytest" "-v") |
| 5057 | #t))))) |
| 5058 | (propagated-inputs |
| 5059 | `(("python2-ipython" ,python2-ipython) |
| 5060 | ;; imported at runtime during connect |
| 5061 | ("python2-jupyter-client" ,python2-jupyter-client))) |
| 5062 | (native-inputs |
| 5063 | `(("python2-pytest" ,python2-pytest) |
| 5064 | ("python2-nose" ,python2-nose))) |
| 5065 | (home-page "https://ipython.org") |
| 5066 | (synopsis "IPython Kernel for Jupyter") |
| 5067 | (description |
| 5068 | "This package provides the IPython kernel for Jupyter.") |
| 5069 | (license license:bsd-3))) |
| 5070 | |
| 5071 | (define-public python-pari-jupyter |
| 5072 | (package |
| 5073 | (name "python-pari-jupyter") |
| 5074 | (version "1.3.2") |
| 5075 | (source |
| 5076 | (origin |
| 5077 | (method url-fetch) |
| 5078 | (uri (pypi-uri "pari_jupyter" version)) |
| 5079 | (sha256 |
| 5080 | (base32 |
| 5081 | "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6")))) |
| 5082 | (build-system python-build-system) |
| 5083 | (propagated-inputs |
| 5084 | `(("python-ipykernel" ,python-ipykernel))) |
| 5085 | (inputs |
| 5086 | `(("pari-gp" ,pari-gp) |
| 5087 | ("readline" ,readline))) |
| 5088 | (arguments |
| 5089 | `(#:tests? #f)) ; no test suite |
| 5090 | (home-page |
| 5091 | "https://github.com/jdemeyer/pari_jupyter") |
| 5092 | (synopsis "A Jupyter kernel for PARI/GP") |
| 5093 | (description "The package provides a PARI/GP kernel for Jupyter.") |
| 5094 | (license license:gpl3+))) |
| 5095 | |
| 5096 | (define-public python-backcall |
| 5097 | (package |
| 5098 | (name "python-backcall") |
| 5099 | (version "0.1.0") |
| 5100 | (source |
| 5101 | (origin |
| 5102 | (method url-fetch) |
| 5103 | (uri (pypi-uri "backcall" version)) |
| 5104 | (sha256 |
| 5105 | (base32 |
| 5106 | "1r01dqch3f8fdj3n6fviw8hxqrs6w5v0qw4izmvqzry1w9dxiv1q")))) |
| 5107 | (build-system python-build-system) |
| 5108 | (home-page "https://github.com/takluyver/backcall/") |
| 5109 | (synopsis "Specifications for callback functions passed in to an API") |
| 5110 | (description |
| 5111 | "If your code lets other people supply callback functions, it's important |
| 5112 | to specify the function signature you expect, and check that functions support |
| 5113 | that. Adding extra parameters later would break other peoples code unless |
| 5114 | you're careful. The @code{backcall} package provides a way of specifying the |
| 5115 | callback signature using a prototype function.") |
| 5116 | (license license:bsd-3))) |
| 5117 | |
| 5118 | ;; This is the latest release of the LTS version of ipython with support for |
| 5119 | ;; Python 2.7 and Python 3.x. Later non-LTS versions starting from 6.0 have |
| 5120 | ;; dropped support for Python 2.7. We may want to rename this package. |
| 5121 | (define-public python-ipython |
| 5122 | (package |
| 5123 | (name "python-ipython") |
| 5124 | (version "5.8.0") |
| 5125 | (source |
| 5126 | (origin |
| 5127 | (method url-fetch) |
| 5128 | (uri (pypi-uri "ipython" version ".tar.gz")) |
| 5129 | (sha256 |
| 5130 | (base32 "01l93i4hspf0lvhmycvc8j378bslm9rw30mwfspsl6v1ayc69b2b")))) |
| 5131 | (build-system python-build-system) |
| 5132 | (outputs '("out" "doc")) |
| 5133 | (propagated-inputs |
| 5134 | `(("python-pyzmq" ,python-pyzmq) |
| 5135 | ("python-prompt-toolkit" ,python-prompt-toolkit-1) |
| 5136 | ("python-terminado" ,python-terminado) |
| 5137 | ("python-matplotlib" ,python-matplotlib) |
| 5138 | ("python-numpy" ,python-numpy) |
| 5139 | ("python-numpydoc" ,python-numpydoc) |
| 5140 | ("python-jinja2" ,python-jinja2) |
| 5141 | ("python-mistune" ,python-mistune) |
| 5142 | ("python-pexpect" ,python-pexpect) |
| 5143 | ("python-pickleshare" ,python-pickleshare) |
| 5144 | ("python-simplegeneric" ,python-simplegeneric) |
| 5145 | ("python-jsonschema" ,python-jsonschema) |
| 5146 | ("python-traitlets" ,python-traitlets) |
| 5147 | ("python-nbformat" ,python-nbformat) |
| 5148 | ("python-pygments" ,python-pygments))) |
| 5149 | (inputs |
| 5150 | `(("readline" ,readline) |
| 5151 | ("which" ,which))) |
| 5152 | (native-inputs |
| 5153 | `(("graphviz" ,graphviz) |
| 5154 | ("pkg-config" ,pkg-config) |
| 5155 | ("python-requests" ,python-requests) ;; for tests |
| 5156 | ("python-testpath" ,python-testpath) |
| 5157 | ("python-nose" ,python-nose) |
| 5158 | ("python-sphinx" ,python-sphinx) |
| 5159 | ("python-shpinx-rtd-theme" ,python-sphinx-rtd-theme) |
| 5160 | ;; FIXME: It's possible that a smaller union would work just as well. |
| 5161 | ("texlive" ,(texlive-union (list texlive-fonts-amsfonts |
| 5162 | texlive-fonts-ec |
| 5163 | texlive-generic-ifxetex |
| 5164 | texlive-generic-pdftex |
| 5165 | texlive-latex-amsfonts |
| 5166 | texlive-latex-capt-of |
| 5167 | texlive-latex-cmap |
| 5168 | texlive-latex-environ |
| 5169 | texlive-latex-eqparbox |
| 5170 | texlive-latex-etoolbox |
| 5171 | texlive-latex-expdlist |
| 5172 | texlive-latex-fancyhdr |
| 5173 | texlive-latex-fancyvrb |
| 5174 | texlive-latex-fncychap |
| 5175 | texlive-latex-float |
| 5176 | texlive-latex-framed |
| 5177 | texlive-latex-geometry |
| 5178 | texlive-latex-graphics |
| 5179 | texlive-latex-hyperref |
| 5180 | texlive-latex-mdwtools |
| 5181 | texlive-latex-multirow |
| 5182 | texlive-latex-oberdiek |
| 5183 | texlive-latex-parskip |
| 5184 | texlive-latex-preview |
| 5185 | texlive-latex-tabulary |
| 5186 | texlive-latex-threeparttable |
| 5187 | texlive-latex-titlesec |
| 5188 | texlive-latex-trimspaces |
| 5189 | texlive-latex-ucs |
| 5190 | texlive-latex-upquote |
| 5191 | texlive-latex-url |
| 5192 | texlive-latex-varwidth |
| 5193 | texlive-latex-wrapfig))) |
| 5194 | ("texinfo" ,texinfo))) |
| 5195 | (arguments |
| 5196 | `(#:phases |
| 5197 | (modify-phases %standard-phases |
| 5198 | (add-after 'install 'install-doc |
| 5199 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 5200 | (let* ((data (string-append (assoc-ref outputs "doc") "/share")) |
| 5201 | (doc (string-append data "/doc/" ,name "-" ,version)) |
| 5202 | (html (string-append doc "/html")) |
| 5203 | (man1 (string-append data "/man/man1")) |
| 5204 | (info (string-append data "/info")) |
| 5205 | (examples (string-append doc "/examples")) |
| 5206 | (python-arg (string-append "PYTHON=" (which "python")))) |
| 5207 | (setenv "LANG" "en_US.utf8") |
| 5208 | ;; Make installed package available for running the tests |
| 5209 | (add-installed-pythonpath inputs outputs) |
| 5210 | (with-directory-excursion "docs" |
| 5211 | ;; FIXME: pdf fails to build |
| 5212 | ;;(system* "make" "pdf" "PAPER=a4") |
| 5213 | (system* "make" python-arg "html") |
| 5214 | (system* "make" python-arg "info")) |
| 5215 | (copy-recursively "docs/man" man1) |
| 5216 | (copy-recursively "examples" examples) |
| 5217 | (copy-recursively "docs/build/html" html) |
| 5218 | ;; (copy-file "docs/build/latex/ipython.pdf" |
| 5219 | ;; (string-append doc "/ipython.pdf")) |
| 5220 | (mkdir-p info) |
| 5221 | (copy-file "docs/build/texinfo/ipython.info" |
| 5222 | (string-append info "/ipython.info")) |
| 5223 | (copy-file "COPYING.rst" (string-append doc "/COPYING.rst"))) |
| 5224 | #t)) |
| 5225 | ;; Tests can only be run after the library has been installed and not |
| 5226 | ;; within the source directory. |
| 5227 | (delete 'check) |
| 5228 | (add-after 'install 'check |
| 5229 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) |
| 5230 | (if tests? |
| 5231 | (begin |
| 5232 | ;; Make installed package available for running the tests |
| 5233 | (add-installed-pythonpath inputs outputs) |
| 5234 | (setenv "HOME" "/tmp/") ;; required by a test |
| 5235 | ;; We only test the core because one of the other tests |
| 5236 | ;; tries to import ipykernel. |
| 5237 | (invoke "python" "IPython/testing/iptest.py" |
| 5238 | "-v" "IPython/core/tests")) |
| 5239 | #t))) |
| 5240 | (add-before 'check 'fix-tests |
| 5241 | (lambda* (#:key inputs #:allow-other-keys) |
| 5242 | (substitute* "./IPython/utils/_process_posix.py" |
| 5243 | (("/usr/bin/env', 'which") (which "which"))) |
| 5244 | (substitute* "./IPython/core/tests/test_inputtransformer.py" |
| 5245 | (("#!/usr/bin/env python") |
| 5246 | (string-append "#!" (which "python")))) |
| 5247 | ;; Disable 1 failing test |
| 5248 | (substitute* "./IPython/core/tests/test_magic.py" |
| 5249 | (("def test_dirops\\(\\):" all) |
| 5250 | (string-append "@dec.skipif(True)\n" all))) |
| 5251 | ;; This test introduces a circular dependency on ipykernel |
| 5252 | ;; (which depends on ipython). |
| 5253 | (delete-file "IPython/core/tests/test_display.py") |
| 5254 | ;; These tests throw errors for unknown reasons. |
| 5255 | (delete-file "IPython/extensions/tests/test_storemagic.py") |
| 5256 | (delete-file "IPython/core/tests/test_displayhook.py") |
| 5257 | (delete-file "IPython/core/tests/test_interactiveshell.py") |
| 5258 | (delete-file "IPython/core/tests/test_pylabtools.py") |
| 5259 | (delete-file "IPython/core/tests/test_paths.py") |
| 5260 | #t))))) |
| 5261 | (home-page "https://ipython.org") |
| 5262 | (synopsis "IPython is a tool for interactive computing in Python") |
| 5263 | (description |
| 5264 | "IPython provides a rich architecture for interactive computing with: |
| 5265 | Powerful interactive shells, a browser-based notebook, support for interactive |
| 5266 | data visualization, embeddable interpreters and tools for parallel |
| 5267 | computing.") |
| 5268 | (license license:bsd-3) |
| 5269 | (properties `((python2-variant . ,(delay python2-ipython)))))) |
| 5270 | |
| 5271 | (define-public python2-ipython |
| 5272 | (let ((ipython (package-with-python2 (strip-python2-variant python-ipython)))) |
| 5273 | (package |
| 5274 | (inherit ipython) |
| 5275 | ;; FIXME: add pyreadline once available. |
| 5276 | (propagated-inputs |
| 5277 | `(("python2-backports-shutil-get-terminal-size" |
| 5278 | ,python2-backports-shutil-get-terminal-size) |
| 5279 | ("python2-pathlib2" ,python2-pathlib2) |
| 5280 | ,@(package-propagated-inputs ipython))) |
| 5281 | (native-inputs |
| 5282 | `(("python2-mock" ,python2-mock) |
| 5283 | ,@(package-native-inputs ipython)))))) |
| 5284 | |
| 5285 | (define-public python-urwid |
| 5286 | (package |
| 5287 | (name "python-urwid") |
| 5288 | (version "2.0.1") |
| 5289 | (source |
| 5290 | (origin |
| 5291 | (method url-fetch) |
| 5292 | (uri (pypi-uri "urwid" version)) |
| 5293 | (sha256 |
| 5294 | (base32 |
| 5295 | "1g6cpicybvbananpjikmjk8npmjk4xvak1wjzji62wc600wkwkb4")))) |
| 5296 | (build-system python-build-system) |
| 5297 | (home-page "http://urwid.org") |
| 5298 | (synopsis "Console user interface library for Python") |
| 5299 | (description |
| 5300 | "Urwid is a curses-based UI/widget library for Python. It includes many |
| 5301 | features useful for text console applications.") |
| 5302 | (license license:lgpl2.1+))) |
| 5303 | |
| 5304 | (define-public python2-urwid |
| 5305 | (package-with-python2 python-urwid)) |
| 5306 | |
| 5307 | (define-public python-urwidtrees |
| 5308 | (package |
| 5309 | (name "python-urwidtrees") |
| 5310 | (version "1.0.2") |
| 5311 | (source |
| 5312 | (origin |
| 5313 | (method url-fetch) |
| 5314 | ;; package author intends on distributing via github rather than pypi: |
| 5315 | ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331 |
| 5316 | (uri (string-append "https://github.com/pazz/urwidtrees/archive/" |
| 5317 | version ".tar.gz")) |
| 5318 | (file-name (string-append name "-" version ".tar.gz")) |
| 5319 | (sha256 |
| 5320 | (base32 |
| 5321 | "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh")))) |
| 5322 | (build-system python-build-system) |
| 5323 | (arguments |
| 5324 | '(#:tests? #f)) ; no tests |
| 5325 | (propagated-inputs `(("python-urwid" ,python-urwid))) |
| 5326 | (home-page "https://github.com/pazz/urwidtrees") |
| 5327 | (synopsis "Tree widgets for urwid") |
| 5328 | (description "Urwidtrees is a Widget Container API for the @code{urwid} |
| 5329 | toolkit. Use it to build trees of widgets.") |
| 5330 | (license license:gpl3+))) |
| 5331 | |
| 5332 | (define-public python2-urwidtrees |
| 5333 | (package-with-python2 python-urwidtrees)) |
| 5334 | |
| 5335 | (define-public python-ua-parser |
| 5336 | (package |
| 5337 | (name "python-ua-parser") |
| 5338 | (version "0.8.0") |
| 5339 | (source |
| 5340 | (origin |
| 5341 | (method url-fetch) |
| 5342 | (uri (pypi-uri "ua-parser" version)) |
| 5343 | (sha256 |
| 5344 | (base32 |
| 5345 | "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp")))) |
| 5346 | (build-system python-build-system) |
| 5347 | (arguments |
| 5348 | `(#:tests? #f)) ;no test suite in release |
| 5349 | (native-inputs |
| 5350 | `(("python-pyyaml" ,python-pyyaml))) |
| 5351 | (home-page "https://github.com/ua-parser/uap-python") |
| 5352 | (synopsis "User agent parser") |
| 5353 | (description |
| 5354 | "@code{ua-parser} is a Python port of Browserscope's user agent parser.") |
| 5355 | (license license:asl2.0))) |
| 5356 | |
| 5357 | (define-public python2-ua-parser |
| 5358 | (package-with-python2 python-ua-parser)) |
| 5359 | |
| 5360 | (define-public python-user-agents |
| 5361 | (package |
| 5362 | (name "python-user-agents") |
| 5363 | (version "1.1.0") |
| 5364 | (source |
| 5365 | (origin |
| 5366 | (method url-fetch) |
| 5367 | (uri (pypi-uri "user-agents" version)) |
| 5368 | (sha256 |
| 5369 | (base32 |
| 5370 | "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4")))) |
| 5371 | (build-system python-build-system) |
| 5372 | (arguments |
| 5373 | `(#:tests? #f)) ;missing devices.json test file in release |
| 5374 | (propagated-inputs |
| 5375 | `(("python-ua-parser" ,python-ua-parser))) |
| 5376 | (home-page "https://github.com/selwin/python-user-agents") |
| 5377 | (synopsis "User Agent strings parsing library") |
| 5378 | (description |
| 5379 | "A library to identify devices (phones, tablets) and their capabilities by |
| 5380 | parsing (browser/HTTP) user agent strings.") |
| 5381 | (license license:expat))) |
| 5382 | |
| 5383 | (define-public python2-user-agents |
| 5384 | (package-with-python2 python-user-agents)) |
| 5385 | |
| 5386 | (define-public python-dbus |
| 5387 | (package |
| 5388 | (name "python-dbus") |
| 5389 | (version "1.2.8") |
| 5390 | (source |
| 5391 | (origin |
| 5392 | (method url-fetch) |
| 5393 | (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/" |
| 5394 | "dbus-python-" version ".tar.gz")) |
| 5395 | (sha256 |
| 5396 | (base32 |
| 5397 | "0vvvjmiwnc9cjlks3gcdk43ap7llhlpz7cm1wbw0nc2yfsxjpwdb")))) |
| 5398 | (build-system gnu-build-system) |
| 5399 | (arguments |
| 5400 | '(#:phases |
| 5401 | (modify-phases %standard-phases |
| 5402 | (add-before |
| 5403 | 'check 'pre-check |
| 5404 | (lambda _ |
| 5405 | ;; XXX: For the missing '/etc/machine-id'. |
| 5406 | (substitute* "test/run-test.sh" |
| 5407 | (("DBUS_FATAL_WARNINGS=1") |
| 5408 | "DBUS_FATAL_WARNINGS=0")) |
| 5409 | #t))))) |
| 5410 | (native-inputs |
| 5411 | `(("pkg-config" ,pkg-config))) |
| 5412 | (inputs |
| 5413 | `(("python" ,python-wrapper) |
| 5414 | ("dbus-glib" ,dbus-glib))) |
| 5415 | (synopsis "Python bindings for D-bus") |
| 5416 | (description "python-dbus provides bindings for libdbus, the reference |
| 5417 | implementation of D-Bus.") |
| 5418 | (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/") |
| 5419 | (license license:expat))) |
| 5420 | |
| 5421 | (define-public python2-dbus |
| 5422 | (package (inherit python-dbus) |
| 5423 | (name "python2-dbus") |
| 5424 | (inputs `(("python" ,python-2) |
| 5425 | ,@(alist-delete "python" |
| 5426 | (package-inputs python-dbus) |
| 5427 | equal?))) |
| 5428 | ;; FIXME: on Python 2, the test_utf8 fails with: |
| 5429 | ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)" |
| 5430 | (arguments `(#:tests? #f)))) |
| 5431 | |
| 5432 | (define-public python-lxml |
| 5433 | (package |
| 5434 | (name "python-lxml") |
| 5435 | (version "4.2.5") |
| 5436 | (source |
| 5437 | (origin |
| 5438 | (method url-fetch) |
| 5439 | (uri (pypi-uri "lxml" version)) |
| 5440 | (sha256 |
| 5441 | (base32 |
| 5442 | "0zw0y9hs0nflxhl9cs6ipwwh53szi3w2x06wl0k9cylyqac0cwin")))) |
| 5443 | (build-system python-build-system) |
| 5444 | (inputs |
| 5445 | `(("libxml2" ,libxml2) |
| 5446 | ("libxslt" ,libxslt))) |
| 5447 | (home-page "http://lxml.de/") |
| 5448 | (synopsis |
| 5449 | "Python XML processing library") |
| 5450 | (description |
| 5451 | "The lxml XML toolkit is a Pythonic binding for the C libraries |
| 5452 | libxml2 and libxslt.") |
| 5453 | (license license:bsd-3))) ; and a few more, see LICENSES.txt |
| 5454 | |
| 5455 | (define-public python2-lxml |
| 5456 | (package-with-python2 python-lxml)) |
| 5457 | |
| 5458 | ;; beautifulsoup4 has a totally different namespace than 3.x, |
| 5459 | ;; and pypi seems to put it under its own name, so I guess we should too |
| 5460 | (define-public python-beautifulsoup4 |
| 5461 | (package |
| 5462 | (name "python-beautifulsoup4") |
| 5463 | (version "4.7.1") |
| 5464 | (source |
| 5465 | (origin |
| 5466 | (method url-fetch) |
| 5467 | (uri (pypi-uri "beautifulsoup4" version)) |
| 5468 | (sha256 |
| 5469 | (base32 |
| 5470 | "0j2kycz2dxgx68xzjm7rxg5xn6v61gq5ifvxyg99slmqkybnal4l")))) |
| 5471 | (build-system python-build-system) |
| 5472 | (arguments |
| 5473 | `(#:phases |
| 5474 | (modify-phases %standard-phases |
| 5475 | ;; The Python 2 source is the definitive source of beautifulsoup4. We |
| 5476 | ;; must use this conversion script when building with Python 3. The |
| 5477 | ;; conversion script also runs the tests. |
| 5478 | ;; For more information, see the file 'convert-py3k' in the source |
| 5479 | ;; distribution. |
| 5480 | (replace 'check |
| 5481 | (lambda _ (invoke "./convert-py3k")))))) |
| 5482 | (propagated-inputs |
| 5483 | `(("python-soupsieve" ,python-soupsieve))) |
| 5484 | (home-page |
| 5485 | "https://www.crummy.com/software/BeautifulSoup/bs4/") |
| 5486 | (synopsis |
| 5487 | "Python screen-scraping library") |
| 5488 | (description |
| 5489 | "Beautiful Soup is a Python library designed for rapidly setting up |
| 5490 | screen-scraping projects. It offers Pythonic idioms for navigating, |
| 5491 | searching, and modifying a parse tree, providing a toolkit for |
| 5492 | dissecting a document and extracting what you need. It automatically |
| 5493 | converts incoming documents to Unicode and outgoing documents to UTF-8.") |
| 5494 | (license license:expat) |
| 5495 | (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) |
| 5496 | |
| 5497 | (define-public python2-beautifulsoup4 |
| 5498 | (package |
| 5499 | (inherit (package-with-python2 |
| 5500 | (strip-python2-variant python-beautifulsoup4))) |
| 5501 | (arguments `(#:python ,python-2)))) |
| 5502 | |
| 5503 | (define-public python-soupsieve |
| 5504 | (package |
| 5505 | (name "python-soupsieve") |
| 5506 | (version "1.9.1") |
| 5507 | (source |
| 5508 | (origin |
| 5509 | (method url-fetch) |
| 5510 | (uri (pypi-uri "soupsieve" version)) |
| 5511 | (sha256 |
| 5512 | (base32 |
| 5513 | "1jnzkiwmjl6yvqckc9mf689g87b6yz07sv868hap2aa5arggy3mj")))) |
| 5514 | (build-system python-build-system) |
| 5515 | (arguments `(#:tests? #f)) |
| 5516 | ;;XXX: 2 tests fail currently despite claming they were to be |
| 5517 | ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we |
| 5518 | ;;don't want to create a circular dependency. |
| 5519 | (home-page "https://github.com/facelessuser/soupsieve") |
| 5520 | (synopsis "CSS selector library") |
| 5521 | (description |
| 5522 | "Soup Sieve is a CSS selector library designed to be used with Beautiful |
| 5523 | Soup 4. It aims to provide selecting, matching, and filtering using modern |
| 5524 | CSS selectors. Soup Sieve currently provides selectors from the CSS level 1 |
| 5525 | specifications up through the latest CSS level 4 drafts and beyond (though |
| 5526 | some are not yet implemented).") |
| 5527 | (properties `((python2-variant . ,(delay python2-soupsieve)))) |
| 5528 | (license license:expat))) |
| 5529 | |
| 5530 | (define-public python2-soupsieve |
| 5531 | (let ((base (package-with-python2 (strip-python2-variant python-soupsieve)))) |
| 5532 | (package |
| 5533 | (inherit base) |
| 5534 | (propagated-inputs |
| 5535 | `(("python2-backports-functools-lru-cache" |
| 5536 | ,python2-backports-functools-lru-cache) |
| 5537 | ,@(package-propagated-inputs base)))))) |
| 5538 | |
| 5539 | (define-public python-netifaces |
| 5540 | (package |
| 5541 | (name "python-netifaces") |
| 5542 | (version "0.10.7") |
| 5543 | (source |
| 5544 | (origin |
| 5545 | (method url-fetch) |
| 5546 | (uri (pypi-uri "netifaces" version)) |
| 5547 | (sha256 |
| 5548 | (base32 |
| 5549 | "1gccklrcplbbqh81g1mdgpa5y8na7kkf29cq2ka3f5a2fp5hyndx")))) |
| 5550 | (build-system python-build-system) |
| 5551 | (home-page "https://github.com/al45tair/netifaces") |
| 5552 | (synopsis |
| 5553 | "Python module for portable network interface information") |
| 5554 | (description |
| 5555 | "Netifaces is a Python module providing information on network |
| 5556 | interfaces in an easy and portable manner.") |
| 5557 | (license license:expat))) |
| 5558 | |
| 5559 | (define-public python2-netifaces |
| 5560 | (package-with-python2 python-netifaces)) |
| 5561 | |
| 5562 | (define-public python-networkx |
| 5563 | (package |
| 5564 | (name "python-networkx") |
| 5565 | (version "2.2") |
| 5566 | (source |
| 5567 | (origin |
| 5568 | (method url-fetch) |
| 5569 | (uri (pypi-uri "networkx" version ".zip")) |
| 5570 | (sha256 |
| 5571 | (base32 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5")))) |
| 5572 | (build-system python-build-system) |
| 5573 | ;; python-decorator is needed at runtime. |
| 5574 | (propagated-inputs |
| 5575 | `(("python-decorator" ,python-decorator))) |
| 5576 | (native-inputs |
| 5577 | `(("python-nose" ,python-nose) |
| 5578 | ("unzip" ,unzip))) |
| 5579 | (home-page "https://networkx.github.io/") |
| 5580 | (synopsis "Python module for creating and manipulating graphs and networks") |
| 5581 | (description |
| 5582 | "NetworkX is a Python package for the creation, manipulation, and study |
| 5583 | of the structure, dynamics, and functions of complex networks.") |
| 5584 | (license license:bsd-3))) |
| 5585 | |
| 5586 | (define-public python2-networkx |
| 5587 | (package-with-python2 python-networkx)) |
| 5588 | |
| 5589 | (define-public python-datrie |
| 5590 | (package |
| 5591 | (name "python-datrie") |
| 5592 | (version "0.7.1") |
| 5593 | (source |
| 5594 | (origin |
| 5595 | (method url-fetch) |
| 5596 | (uri (pypi-uri "datrie" version)) |
| 5597 | (sha256 |
| 5598 | (base32 |
| 5599 | "08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs")))) |
| 5600 | (build-system python-build-system) |
| 5601 | (arguments |
| 5602 | `(#:phases (modify-phases %standard-phases |
| 5603 | (add-before 'build 'cythonize |
| 5604 | (lambda _ |
| 5605 | ;; Regenerate Cython classes to solve ABI issues with Python |
| 5606 | ;; 3.7.0. See <https://github.com/pytries/datrie/issues/52>. |
| 5607 | (invoke "cython" "src/datrie.pyx" "src/cdatrie.pxd" |
| 5608 | "src/stdio_ext.pxd" "-a")))))) |
| 5609 | (native-inputs |
| 5610 | `(("python-cython" ,python-cython) |
| 5611 | ("python-hypothesis" ,python-hypothesis) |
| 5612 | ("python-pytest" ,python-pytest) |
| 5613 | ("python-pytest-runner" ,python-pytest-runner))) |
| 5614 | (home-page "https://github.com/kmike/datrie") |
| 5615 | (synopsis "Fast, efficiently stored trie for Python") |
| 5616 | (description |
| 5617 | "This package provides a fast, efficiently stored trie implementation for |
| 5618 | Python.") |
| 5619 | (license license:lgpl2.1+))) |
| 5620 | |
| 5621 | (define-public snakemake |
| 5622 | (package |
| 5623 | (name "snakemake") |
| 5624 | (version "5.2.4") |
| 5625 | (source |
| 5626 | (origin |
| 5627 | (method url-fetch) |
| 5628 | (uri (pypi-uri "snakemake" version)) |
| 5629 | (sha256 |
| 5630 | (base32 "0gj0xxgiq3mp9qyyrbfzldiaq1giliqw0in64nqiz7vx49myqj7z")))) |
| 5631 | (build-system python-build-system) |
| 5632 | (arguments |
| 5633 | ;; TODO: Package missing test dependencies. |
| 5634 | '(#:tests? #f |
| 5635 | #:phases |
| 5636 | (modify-phases %standard-phases |
| 5637 | ;; For cluster execution Snakemake will call Python. Since there is |
| 5638 | ;; no suitable PYTHONPATH set, cluster execution will fail. We fix |
| 5639 | ;; this by calling the snakemake wrapper instead. |
| 5640 | (add-after 'unpack 'call-wrapper-not-wrapped-snakemake |
| 5641 | (lambda* (#:key outputs #:allow-other-keys) |
| 5642 | (substitute* "snakemake/executors.py" |
| 5643 | (("\\{sys.executable\\} -m snakemake") |
| 5644 | (string-append (assoc-ref outputs "out") |
| 5645 | "/bin/snakemake"))) |
| 5646 | #t))))) |
| 5647 | (propagated-inputs |
| 5648 | `(("python-gitpython" ,python-gitpython) |
| 5649 | ("python-wrapt" ,python-wrapt) |
| 5650 | ("python-requests" ,python-requests) |
| 5651 | ("python-appdirs" ,python-appdirs) |
| 5652 | ("python-configargparse" ,python-configargparse) |
| 5653 | ("python-datrie" ,python-datrie) |
| 5654 | ("python-docutils" ,python-docutils) |
| 5655 | ("python-jinja2" ,python-jinja2) |
| 5656 | ("python-jsonschema" ,python-jsonschema) |
| 5657 | ("python-networkx" ,python-networkx) |
| 5658 | ("python-pyyaml" ,python-pyyaml) |
| 5659 | ("python-ratelimiter" ,python-ratelimiter))) |
| 5660 | (home-page "https://snakemake.readthedocs.io") |
| 5661 | (synopsis "Python-based execution environment for make-like workflows") |
| 5662 | (description |
| 5663 | "Snakemake aims to reduce the complexity of creating workflows by |
| 5664 | providing a clean and modern domain specific specification language (DSL) in |
| 5665 | Python style, together with a fast and comfortable execution environment.") |
| 5666 | (license license:expat))) |
| 5667 | |
| 5668 | ;; This is currently needed for the pigx-* packages. |
| 5669 | (define-public snakemake-4 |
| 5670 | (package (inherit snakemake) |
| 5671 | (version "4.4.0") |
| 5672 | (source |
| 5673 | (origin |
| 5674 | (method url-fetch) |
| 5675 | (uri (pypi-uri "snakemake" version)) |
| 5676 | (sha256 |
| 5677 | (base32 "0g0paia4z7w3srnqdmavq3hrb2x7qnpf81jx50njl0p7y4y0j8jv")))) |
| 5678 | (propagated-inputs |
| 5679 | `(("python-wrapt" ,python-wrapt) |
| 5680 | ("python-requests" ,python-requests) |
| 5681 | ("python-appdirs" ,python-appdirs) |
| 5682 | ("python-configargparse" ,python-configargparse) |
| 5683 | ("python-pyyaml" ,python-pyyaml) |
| 5684 | ("python-ratelimiter" ,python-ratelimiter))))) |
| 5685 | |
| 5686 | (define-public python-pyqrcode |
| 5687 | (package |
| 5688 | (name "python-pyqrcode") |
| 5689 | (version "1.2.1") |
| 5690 | (source |
| 5691 | (origin |
| 5692 | (method url-fetch) |
| 5693 | (uri (pypi-uri "PyQRCode" version)) |
| 5694 | (sha256 |
| 5695 | (base32 |
| 5696 | "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx")))) |
| 5697 | (build-system python-build-system) |
| 5698 | (home-page |
| 5699 | "https://github.com/mnooner256/pyqrcode") |
| 5700 | (synopsis "QR code generator") |
| 5701 | (description |
| 5702 | "Pyqrcode is a QR code generator written purely in Python with |
| 5703 | SVG, EPS, PNG and terminal output.") |
| 5704 | (license license:bsd-3))) |
| 5705 | |
| 5706 | (define-public python-seaborn |
| 5707 | (package |
| 5708 | (name "python-seaborn") |
| 5709 | (version "0.9.0") |
| 5710 | (source |
| 5711 | (origin |
| 5712 | (method url-fetch) |
| 5713 | (uri (pypi-uri "seaborn" version)) |
| 5714 | (sha256 |
| 5715 | (base32 "0bqysi3fxfjl1866m5jq8z7mynhqbqnikim74dmzn8539iwkzj3n")))) |
| 5716 | (build-system python-build-system) |
| 5717 | (arguments |
| 5718 | `(#:phases |
| 5719 | (modify-phases %standard-phases |
| 5720 | (add-before 'check 'start-xserver |
| 5721 | (lambda* (#:key inputs #:allow-other-keys) |
| 5722 | (let ((xorg-server (assoc-ref inputs "xorg-server"))) |
| 5723 | ;; There must be a running X server and make check doesn't |
| 5724 | ;; start one. Therefore we must do it. |
| 5725 | (system (format #f "~a/bin/Xvfb :1 &" xorg-server)) |
| 5726 | (setenv "DISPLAY" ":1") |
| 5727 | #t))) |
| 5728 | (replace 'check (lambda _ (invoke "pytest" "seaborn") #t))))) |
| 5729 | (propagated-inputs |
| 5730 | `(("python-pandas" ,python-pandas) |
| 5731 | ("python-matplotlib" ,python-matplotlib) |
| 5732 | ("python-numpy" ,python-numpy) |
| 5733 | ("python-scipy" ,python-scipy))) |
| 5734 | (native-inputs |
| 5735 | `(("python-pytest" ,python-pytest) |
| 5736 | ("xorg-server" ,xorg-server))) |
| 5737 | (home-page "http://stanford.edu/~mwaskom/software/seaborn/") |
| 5738 | (synopsis "Statistical data visualization") |
| 5739 | (description |
| 5740 | "Seaborn is a library for making attractive and informative statistical |
| 5741 | graphics in Python. It is built on top of matplotlib and tightly integrated |
| 5742 | with the PyData stack, including support for numpy and pandas data structures |
| 5743 | and statistical routines from scipy and statsmodels.") |
| 5744 | (license license:bsd-3))) |
| 5745 | |
| 5746 | (define-public python2-seaborn |
| 5747 | (package-with-python2 python-seaborn)) |
| 5748 | |
| 5749 | (define-public python-mpmath |
| 5750 | (package |
| 5751 | (name "python-mpmath") |
| 5752 | (version "0.19") |
| 5753 | (source (origin |
| 5754 | (method url-fetch) |
| 5755 | (uri (string-append "http://mpmath.org/files/mpmath-" |
| 5756 | version ".tar.gz")) |
| 5757 | (sha256 |
| 5758 | (base32 |
| 5759 | "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8")))) |
| 5760 | (build-system python-build-system) |
| 5761 | (arguments |
| 5762 | '(#:phases |
| 5763 | (modify-phases %standard-phases |
| 5764 | (replace 'check |
| 5765 | (lambda _ |
| 5766 | (invoke "python" "mpmath/tests/runtests.py" "-local")))))) |
| 5767 | (home-page "http://mpmath.org") |
| 5768 | (synopsis "Arbitrary-precision floating-point arithmetic in python") |
| 5769 | (description |
| 5770 | "@code{mpmath} can be used as an arbitrary-precision substitute for |
| 5771 | Python's float/complex types and math/cmath modules, but also does much |
| 5772 | more advanced mathematics.") |
| 5773 | (license license:bsd-3))) |
| 5774 | |
| 5775 | (define-public python2-mpmath |
| 5776 | (package-with-python2 python-mpmath)) |
| 5777 | |
| 5778 | (define-public python-bigfloat |
| 5779 | (package |
| 5780 | (name "python-bigfloat") |
| 5781 | (version "0.3.0") |
| 5782 | (source |
| 5783 | (origin |
| 5784 | (method url-fetch) |
| 5785 | (uri (pypi-uri "bigfloat" version)) |
| 5786 | (sha256 |
| 5787 | (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6")))) |
| 5788 | (build-system python-build-system) |
| 5789 | (inputs |
| 5790 | `(("mpfr" ,mpfr))) |
| 5791 | (home-page "https://github.com/mdickinson/bigfloat") |
| 5792 | (synopsis "Arbitrary precision floating-point arithmetic for Python") |
| 5793 | (description |
| 5794 | "This package provides a Python interface to the MPFR library for |
| 5795 | multiprecision arithmetic.") |
| 5796 | (license license:lgpl3+))) |
| 5797 | |
| 5798 | (define-public python2-bigfloat |
| 5799 | (package-with-python2 python-bigfloat)) |
| 5800 | |
| 5801 | (define-public python-sympy |
| 5802 | (package |
| 5803 | (name "python-sympy") |
| 5804 | (version "1.1.1") |
| 5805 | (source |
| 5806 | (origin |
| 5807 | (method url-fetch) |
| 5808 | (uri (string-append |
| 5809 | "https://github.com/sympy/sympy/releases/download/sympy-" |
| 5810 | version "/sympy-" version ".tar.gz")) |
| 5811 | (sha256 |
| 5812 | (base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc")))) |
| 5813 | (build-system python-build-system) |
| 5814 | (arguments |
| 5815 | `(#:phases |
| 5816 | (modify-phases %standard-phases |
| 5817 | ;; Run the core tests after installation. By default it would run |
| 5818 | ;; *all* tests, which take a very long time to complete and are known |
| 5819 | ;; to be flaky. |
| 5820 | (delete 'check) |
| 5821 | (add-after 'install 'check |
| 5822 | (lambda* (#:key outputs #:allow-other-keys) |
| 5823 | (invoke "python3" "-c" "import sympy; sympy.test(\"/core\")") |
| 5824 | #t))))) |
| 5825 | (propagated-inputs |
| 5826 | `(("python-mpmath" ,python-mpmath))) |
| 5827 | (home-page "http://www.sympy.org/") |
| 5828 | (synopsis "Python library for symbolic mathematics") |
| 5829 | (description |
| 5830 | "SymPy is a Python library for symbolic mathematics. It aims to become a |
| 5831 | full-featured computer algebra system (CAS) while keeping the code as simple |
| 5832 | as possible in order to be comprehensible and easily extensible.") |
| 5833 | (license license:bsd-3))) |
| 5834 | |
| 5835 | (define-public python2-sympy |
| 5836 | (package |
| 5837 | (inherit (package-with-python2 python-sympy)) |
| 5838 | (arguments |
| 5839 | `(#:phases |
| 5840 | (modify-phases %standard-phases |
| 5841 | ;; Run the core tests after installation. By default it would run |
| 5842 | ;; *all* tests, which take a very long time to complete and are known |
| 5843 | ;; to be flaky. |
| 5844 | (delete 'check) |
| 5845 | (add-after 'install 'check |
| 5846 | (lambda* (#:key outputs #:allow-other-keys) |
| 5847 | (invoke "python" "-c" "import sympy; sympy.test(\"/core\")") |
| 5848 | #t))))))) |
| 5849 | |
| 5850 | (define-public python-q |
| 5851 | (package |
| 5852 | (name "python-q") |
| 5853 | (version "2.6") |
| 5854 | (source |
| 5855 | (origin |
| 5856 | (method url-fetch) |
| 5857 | (uri (pypi-uri "q" version)) |
| 5858 | (sha256 |
| 5859 | (base32 |
| 5860 | "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) |
| 5861 | (build-system python-build-system) |
| 5862 | (home-page "https://github.com/zestyping/q") |
| 5863 | (synopsis "Quick-and-dirty debugging output for tired programmers") |
| 5864 | (description |
| 5865 | "q is a Python module for \"print\" style of debugging Python code. It |
| 5866 | provides convenient short API for print out of values, tracebacks, and |
| 5867 | falling into the Python interpreter.") |
| 5868 | (license license:asl2.0))) |
| 5869 | |
| 5870 | (define-public python2-q |
| 5871 | (package-with-python2 python-q)) |
| 5872 | |
| 5873 | (define-public python2-xlib |
| 5874 | (package |
| 5875 | (name "python2-xlib") |
| 5876 | (version "0.14") |
| 5877 | (source (origin |
| 5878 | (method url-fetch) |
| 5879 | (uri (string-append "mirror://sourceforge/python-xlib/python-xlib" |
| 5880 | "/" version "/" |
| 5881 | "python-xlib-" version ".tar.gz")) |
| 5882 | (sha256 |
| 5883 | (base32 |
| 5884 | "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7")))) |
| 5885 | (build-system python-build-system) |
| 5886 | (arguments |
| 5887 | `(#:python ,python-2 ;Python 2 only |
| 5888 | #:tests? #f)) ;no tests |
| 5889 | (home-page "http://python-xlib.sourceforge.net/") |
| 5890 | (synopsis "Python X11 client library") |
| 5891 | (description |
| 5892 | "The Python X Library is intended to be a fully functional X client |
| 5893 | library for Python programs. It is useful to implement low-level X clients. |
| 5894 | It is written entirely in Python.") |
| 5895 | (license license:gpl2+))) |
| 5896 | |
| 5897 | (define-public python-singledispatch |
| 5898 | (package |
| 5899 | (name "python-singledispatch") |
| 5900 | (version "3.4.0.3") |
| 5901 | (source |
| 5902 | (origin |
| 5903 | (method url-fetch) |
| 5904 | (uri (pypi-uri "singledispatch" version)) |
| 5905 | (sha256 |
| 5906 | (base32 |
| 5907 | "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv")))) |
| 5908 | (build-system python-build-system) |
| 5909 | (native-inputs |
| 5910 | `(("python-six" ,python-six))) ; required for conversion, not at run-time |
| 5911 | (home-page |
| 5912 | "http://docs.python.org/3/library/functools.html#functools.singledispatch") |
| 5913 | (synopsis "Backport of singledispatch feature from Python 3.4") |
| 5914 | (description |
| 5915 | "This library brings functools.singledispatch from Python 3.4 to Python |
| 5916 | 2.6-3.3.") |
| 5917 | (license license:expat))) |
| 5918 | |
| 5919 | (define-public python2-singledispatch |
| 5920 | (package-with-python2 python-singledispatch)) |
| 5921 | |
| 5922 | ;; the python- version can be removed with python-3.5 |
| 5923 | (define-public python-backports-abc |
| 5924 | (package |
| 5925 | (name "python-backports-abc") |
| 5926 | (version "0.5") |
| 5927 | (source |
| 5928 | (origin |
| 5929 | (method url-fetch) |
| 5930 | (uri (pypi-uri "backports_abc" version)) |
| 5931 | (sha256 |
| 5932 | (base32 |
| 5933 | "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3")))) |
| 5934 | (build-system python-build-system) |
| 5935 | (home-page "https://github.com/cython/backports_abc") |
| 5936 | (synopsis "Backport of additions to the 'collections.abc' module") |
| 5937 | (description |
| 5938 | "Python-backports-abc provides a backport of additions to the |
| 5939 | @code{collections.abc} module in Python-3.5.") |
| 5940 | (license license:psfl))) |
| 5941 | |
| 5942 | (define-public python2-backports-abc |
| 5943 | (package-with-python2 python-backports-abc)) |
| 5944 | |
| 5945 | (define-public python-backports-csv |
| 5946 | (package |
| 5947 | (name "python-backports-csv") |
| 5948 | (version "1.0.5") |
| 5949 | (source |
| 5950 | (origin |
| 5951 | (method url-fetch) |
| 5952 | (uri (pypi-uri "backports.csv" version)) |
| 5953 | (sha256 |
| 5954 | (base32 |
| 5955 | "1imzbrradkfn8s2m1qcimyn74dn1mz2p3j381jljn166rf2i6hlc")))) |
| 5956 | (build-system python-build-system) |
| 5957 | (home-page "https://github.com/ryanhiebert/backports.csv") |
| 5958 | (synopsis "Backport of Python 3's csv module for Python 2") |
| 5959 | (description |
| 5960 | "Provides a backport of Python 3's @code{csv} module for parsing |
| 5961 | comma separated values. The API of the @code{csv} module in Python 2 |
| 5962 | is drastically different from the @code{csv} module in Python 3. |
| 5963 | This is due, for the most part, to the difference between str in |
| 5964 | Python 2 and Python 3.") |
| 5965 | (license license:psfl))) |
| 5966 | |
| 5967 | (define-public python2-backports-csv |
| 5968 | (package-with-python2 python-backports-csv)) |
| 5969 | |
| 5970 | (define-public python2-backports-shutil-get-terminal-size |
| 5971 | (package |
| 5972 | (name "python2-backports-shutil-get-terminal-size") |
| 5973 | (version "1.0.0") |
| 5974 | (source |
| 5975 | (origin |
| 5976 | (method url-fetch) |
| 5977 | (uri (pypi-uri "backports.shutil_get_terminal_size" version)) |
| 5978 | (sha256 |
| 5979 | (base32 |
| 5980 | "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki")))) |
| 5981 | (build-system python-build-system) |
| 5982 | (arguments |
| 5983 | `(#:python ,python-2 |
| 5984 | #:phases |
| 5985 | (modify-phases %standard-phases |
| 5986 | (replace 'check |
| 5987 | (lambda _ |
| 5988 | (invoke "py.test" "-v")))))) |
| 5989 | (native-inputs |
| 5990 | `(("python2-pytest" ,python2-pytest))) |
| 5991 | (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size") |
| 5992 | (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}") |
| 5993 | (description |
| 5994 | "This package provides a backport of the @code{get_terminal_size |
| 5995 | function} from Python 3.3's @code{shutil}. |
| 5996 | Unlike the original version it is written in pure Python rather than C, |
| 5997 | so it might be a tiny bit slower.") |
| 5998 | (license license:expat))) |
| 5999 | |
| 6000 | (define-public python-waf |
| 6001 | (package |
| 6002 | (name "python-waf") |
| 6003 | (version "2.0.11") |
| 6004 | (source (origin |
| 6005 | (method url-fetch) |
| 6006 | (uri (string-append "https://waf.io/" |
| 6007 | "waf-" version ".tar.bz2")) |
| 6008 | (sha256 |
| 6009 | (base32 |
| 6010 | "13zrniwkmfqgsgzi9v5m1367fppp9yzrz6z2ny6hy8dmpb8mj4z4")))) |
| 6011 | (build-system python-build-system) |
| 6012 | (arguments |
| 6013 | '(#:phases |
| 6014 | (modify-phases %standard-phases |
| 6015 | (replace 'build |
| 6016 | (lambda _ |
| 6017 | (invoke "python" "waf-light" "configure" "build"))) |
| 6018 | (replace 'check |
| 6019 | (lambda _ |
| 6020 | (invoke "python" "waf" "--version"))) |
| 6021 | (replace 'install |
| 6022 | (lambda* (#:key outputs #:allow-other-keys) |
| 6023 | (let ((out (assoc-ref outputs "out"))) |
| 6024 | (install-file "waf" (string-append out "/bin"))) |
| 6025 | #t)) |
| 6026 | ;; waf breaks when it is wrapped. |
| 6027 | (delete 'wrap)))) |
| 6028 | (home-page "https://waf.io/") |
| 6029 | (synopsis "Python-based build system") |
| 6030 | (description |
| 6031 | "Waf is a Python-based framework for configuring, compiling and installing |
| 6032 | applications.") |
| 6033 | (license license:bsd-3))) |
| 6034 | |
| 6035 | (define-public python2-waf |
| 6036 | (package-with-python2 python-waf)) |
| 6037 | |
| 6038 | (define-public python-pyzmq |
| 6039 | (package |
| 6040 | (name "python-pyzmq") |
| 6041 | (version "17.1.2") |
| 6042 | (source |
| 6043 | (origin |
| 6044 | (method url-fetch) |
| 6045 | (uri (pypi-uri "pyzmq" version)) |
| 6046 | (sha256 |
| 6047 | (base32 "1pyxxrz60f88ffm0y6vpbx3q8jcr9ybz8fcilihwzwhh36n84ax7")))) |
| 6048 | (build-system python-build-system) |
| 6049 | (arguments |
| 6050 | `(#:configure-flags |
| 6051 | (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq"))) |
| 6052 | ;; FIXME: You must build pyzmq with 'python setup.py build_ext |
| 6053 | ;; --inplace' for 'python setup.py test' to work. |
| 6054 | #:tests? #f)) |
| 6055 | (inputs |
| 6056 | `(("zeromq" ,zeromq))) |
| 6057 | (native-inputs |
| 6058 | `(("pkg-config" ,pkg-config) |
| 6059 | ("python-nose" ,python-nose))) |
| 6060 | (home-page "https://github.com/zeromq/pyzmq") |
| 6061 | (synopsis "Python bindings for 0MQ") |
| 6062 | (description |
| 6063 | "PyZMQ is the official Python binding for the ZeroMQ messaging library.") |
| 6064 | (license license:bsd-4))) |
| 6065 | |
| 6066 | (define-public python2-pyzmq |
| 6067 | (package-with-python2 python-pyzmq)) |
| 6068 | |
| 6069 | (define-public python-pep8 |
| 6070 | ;; This package has been renamed to ‘pycodestyle’ and is no longer updated. |
| 6071 | ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking |
| 6072 | ;; some dependents' test suites, and nothing more. |
| 6073 | (package |
| 6074 | (name "python-pep8") |
| 6075 | (version "1.7.0") |
| 6076 | (source |
| 6077 | (origin |
| 6078 | (method url-fetch) |
| 6079 | (uri (pypi-uri "pep8" version)) |
| 6080 | (sha256 |
| 6081 | (base32 |
| 6082 | "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) |
| 6083 | (build-system python-build-system) |
| 6084 | (home-page "https://pep8.readthedocs.org/") |
| 6085 | (synopsis "Python style guide checker") |
| 6086 | (description |
| 6087 | "This tools checks Python code against some of the style conventions in |
| 6088 | PEP 8.") |
| 6089 | (license license:expat))) |
| 6090 | |
| 6091 | (define-public python2-pep8 |
| 6092 | (package-with-python2 python-pep8)) |
| 6093 | |
| 6094 | (define-public python-pyflakes |
| 6095 | (package |
| 6096 | (name "python-pyflakes") |
| 6097 | (version "2.0.0") |
| 6098 | (source |
| 6099 | (origin |
| 6100 | (method url-fetch) |
| 6101 | (uri (pypi-uri "pyflakes" version)) |
| 6102 | (sha256 |
| 6103 | (base32 |
| 6104 | "0jba28czyvimdc72llms3f17swp3i8jdcabf5w0j00adfbn64xls")))) |
| 6105 | (build-system python-build-system) |
| 6106 | (home-page |
| 6107 | "https://github.com/pyflakes/pyflakes") |
| 6108 | (synopsis "Passive checker of Python programs") |
| 6109 | (description |
| 6110 | "Pyflakes statically checks Python source code for common errors.") |
| 6111 | (license license:expat))) |
| 6112 | |
| 6113 | (define-public python2-pyflakes |
| 6114 | (package-with-python2 python-pyflakes)) |
| 6115 | |
| 6116 | (define-public python-mccabe |
| 6117 | (package |
| 6118 | (name "python-mccabe") |
| 6119 | (version "0.6.1") |
| 6120 | (source |
| 6121 | (origin |
| 6122 | (method url-fetch) |
| 6123 | (uri (pypi-uri "mccabe" version)) |
| 6124 | (sha256 |
| 6125 | (base32 |
| 6126 | "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx")))) |
| 6127 | (build-system python-build-system) |
| 6128 | (native-inputs |
| 6129 | `(("python-pytest" ,python-pytest-bootstrap) |
| 6130 | ("python-pytest-runner" ,python-pytest-runner))) |
| 6131 | (home-page "https://github.com/flintwork/mccabe") |
| 6132 | (synopsis "McCabe checker, plugin for flake8") |
| 6133 | (description |
| 6134 | "This package provides a Flake8 plug-in to compute the McCabe cyclomatic |
| 6135 | complexity of Python source code.") |
| 6136 | (license license:expat))) |
| 6137 | |
| 6138 | (define-public python2-mccabe |
| 6139 | (package-with-python2 python-mccabe)) |
| 6140 | |
| 6141 | (define-public python-mccabe-0.2.1 |
| 6142 | (package (inherit python-mccabe) |
| 6143 | (version "0.2.1") |
| 6144 | (source |
| 6145 | (origin |
| 6146 | (method url-fetch) |
| 6147 | (uri (pypi-uri "mccabe" version)) |
| 6148 | (sha256 |
| 6149 | (base32 |
| 6150 | "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs")))))) |
| 6151 | |
| 6152 | (define-public python2-mccabe-0.2.1 |
| 6153 | (package-with-python2 python-mccabe-0.2.1)) |
| 6154 | |
| 6155 | ;; Flake8 2.4.1 requires an older version of pep8. |
| 6156 | ;; This should be removed ASAP. |
| 6157 | (define-public python-pep8-1.5.7 |
| 6158 | (package (inherit python-pep8) |
| 6159 | (version "1.5.7") |
| 6160 | (source |
| 6161 | (origin |
| 6162 | (method url-fetch) |
| 6163 | (uri (pypi-uri "pep8" version)) |
| 6164 | (sha256 |
| 6165 | (base32 |
| 6166 | "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m")))) |
| 6167 | (arguments |
| 6168 | ;; XXX Tests not compatible with Python 3.5. |
| 6169 | '(#:tests? #f)))) |
| 6170 | |
| 6171 | (define-public python2-pep8-1.5.7 |
| 6172 | (package-with-python2 python-pep8-1.5.7)) |
| 6173 | |
| 6174 | ;; Flake8 2.4.1 requires an older version of pyflakes. |
| 6175 | ;; This should be removed ASAP. |
| 6176 | (define-public python-pyflakes-0.8.1 |
| 6177 | (package (inherit python-pyflakes) |
| 6178 | (version "0.8.1") |
| 6179 | (source |
| 6180 | (origin |
| 6181 | (method url-fetch) |
| 6182 | (uri (pypi-uri "pyflakes" version)) |
| 6183 | (sha256 |
| 6184 | (base32 |
| 6185 | "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z")))) |
| 6186 | (arguments |
| 6187 | ;; XXX Tests not compatible with Python 3.5. |
| 6188 | '(#:tests? #f)))) |
| 6189 | |
| 6190 | (define-public python2-pyflakes-0.8.1 |
| 6191 | (package-with-python2 python-pyflakes-0.8.1)) |
| 6192 | |
| 6193 | ;; This package is used by hypothesis which has thousands of dependent packages. |
| 6194 | ;; FIXME: Consolidate this with "python-flake8" below in the next rebuild cycle. |
| 6195 | (define-public python-flake8-3.5 |
| 6196 | (package |
| 6197 | (name "python-flake8") |
| 6198 | (version "3.5.0") |
| 6199 | (source |
| 6200 | (origin |
| 6201 | (method url-fetch) |
| 6202 | (uri (pypi-uri "flake8" version)) |
| 6203 | (sha256 |
| 6204 | (base32 |
| 6205 | "184b33grvvjmiwlv9kyd7yng9qv5ld24154j70z332xxg9gjclvj")))) |
| 6206 | (build-system python-build-system) |
| 6207 | (arguments |
| 6208 | `(#:phases |
| 6209 | (modify-phases %standard-phases |
| 6210 | ;; Two errors don't seem to have assigned codes. |
| 6211 | (add-after 'unpack 'delete-broken-test |
| 6212 | (lambda _ (delete-file "tests/unit/test_pyflakes_codes.py") #t)) |
| 6213 | (add-after 'unpack 'fix-problem-with-pycodestyle |
| 6214 | (lambda _ |
| 6215 | ;; See https://gitlab.com/pycqa/flake8/merge_requests/230 |
| 6216 | ;; This should no longer be needed with the next release. |
| 6217 | (substitute* "setup.py" |
| 6218 | (("PEP8_PLUGIN\\('break_around_binary_operator'\\),") |
| 6219 | "PEP8_PLUGIN('break_after_binary_operator'),\ |
| 6220 | PEP8_PLUGIN('break_before_binary_operator'),")) |
| 6221 | #t)) |
| 6222 | (delete 'check) |
| 6223 | (add-after 'install 'check |
| 6224 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 6225 | (add-installed-pythonpath inputs outputs) |
| 6226 | (invoke "pytest" "-v") |
| 6227 | #t))))) |
| 6228 | (propagated-inputs |
| 6229 | `(("python-pycodestyle" ,python-pycodestyle) |
| 6230 | ("python-pyflakes" ,python-pyflakes) |
| 6231 | ("python-mccabe" ,python-mccabe))) |
| 6232 | (native-inputs |
| 6233 | `(("python-mock" ,python-mock) |
| 6234 | ("python-pytest" ,python-pytest-bootstrap) |
| 6235 | ("python-pytest-runner" ,python-pytest-runner))) |
| 6236 | (home-page "https://gitlab.com/pycqa/flake8") |
| 6237 | (synopsis |
| 6238 | "The modular source code checker: pep8, pyflakes and co") |
| 6239 | (description |
| 6240 | "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.") |
| 6241 | (properties `((python2-variant . ,(delay python2-flake8-3.5)))) |
| 6242 | (license license:expat))) |
| 6243 | |
| 6244 | (define-public python2-flake8-3.5 |
| 6245 | (let ((base (package-with-python2 (strip-python2-variant python-flake8-3.5)))) |
| 6246 | (package (inherit base) |
| 6247 | (propagated-inputs |
| 6248 | `(("python2-configparser" ,python2-configparser) |
| 6249 | ("python2-enum34" ,python2-enum34) |
| 6250 | ,@(package-propagated-inputs base)))))) |
| 6251 | |
| 6252 | ;; Version 3.5.0 has compatibility issues with Pyflakes 2.0, so we need |
| 6253 | ;; this newer version. Keep it as a separate variable for now to avoid |
| 6254 | ;; rebuilding "python-hypothesis"; this should be removed in the next |
| 6255 | ;; rebuild cycle. |
| 6256 | (define-public python-flake8 |
| 6257 | (package |
| 6258 | (inherit python-flake8-3.5) |
| 6259 | (version "3.6.0") |
| 6260 | (source (origin |
| 6261 | (method url-fetch) |
| 6262 | (uri (pypi-uri "flake8" version)) |
| 6263 | (sha256 |
| 6264 | (base32 |
| 6265 | "0w0nprx22rbvrrkbfx9v5jc5gskbm08g219l7r8wai8zfswgadba")))) |
| 6266 | (arguments |
| 6267 | (substitute-keyword-arguments (package-arguments python-flake8-3.5) |
| 6268 | ((#:phases phases) |
| 6269 | `(modify-phases ,phases |
| 6270 | (delete 'delete-broken-test) |
| 6271 | (delete 'fix-problem-with-pycodestyle))))) |
| 6272 | (properties `((python2-variant . ,(delay python2-flake8)))))) |
| 6273 | |
| 6274 | (define-public python2-flake8 |
| 6275 | (let ((base (package-with-python2 (strip-python2-variant python-flake8)))) |
| 6276 | (package (inherit base) |
| 6277 | (propagated-inputs |
| 6278 | (package-propagated-inputs python2-flake8-3.5))))) |
| 6279 | |
| 6280 | ;; python-hacking requires flake8 <2.6.0. |
| 6281 | (define-public python-flake8-2.5 |
| 6282 | (package |
| 6283 | (inherit python-flake8) |
| 6284 | (version "2.5.5") |
| 6285 | (source (origin |
| 6286 | (method url-fetch) |
| 6287 | (uri (pypi-uri "flake8" version)) |
| 6288 | (sha256 |
| 6289 | (base32 |
| 6290 | "1snylqwbmrylbx3r1wpz8ggk98f6bcag4441ag8mm2l7wyn58sij")))) |
| 6291 | (propagated-inputs |
| 6292 | `(("python-pep8" ,python-pep8) |
| 6293 | ,@(package-propagated-inputs python-flake8))) |
| 6294 | (properties `((python2-variant . ,(delay python2-flake8-2.5)))))) |
| 6295 | |
| 6296 | (define-public python2-flake8-2.5 |
| 6297 | (package |
| 6298 | (inherit python2-flake8) |
| 6299 | (version (package-version python-flake8-2.5)) |
| 6300 | (source (origin |
| 6301 | (inherit (package-source python-flake8-2.5)))) |
| 6302 | (propagated-inputs |
| 6303 | `(("python2-pep8" ,python2-pep8) |
| 6304 | ,@(package-propagated-inputs python2-flake8))))) |
| 6305 | |
| 6306 | (define-public python-flake8-polyfill |
| 6307 | (package |
| 6308 | (name "python-flake8-polyfill") |
| 6309 | (version "1.0.2") |
| 6310 | (source |
| 6311 | (origin |
| 6312 | (method url-fetch) |
| 6313 | (uri (pypi-uri "flake8-polyfill" version)) |
| 6314 | (sha256 |
| 6315 | (base32 |
| 6316 | "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4")))) |
| 6317 | (build-system python-build-system) |
| 6318 | (arguments |
| 6319 | '(#:phases |
| 6320 | (modify-phases %standard-phases |
| 6321 | (replace 'check |
| 6322 | (lambda _ |
| 6323 | (setenv "PYTHONPATH" |
| 6324 | (string-append (getcwd) "/build/lib:" |
| 6325 | (getenv "PYTHONPATH"))) |
| 6326 | (invoke "py.test" "-v")))))) |
| 6327 | (native-inputs |
| 6328 | `(("python-flake8" ,python-flake8) |
| 6329 | ("python-mock" ,python-mock) |
| 6330 | ("python-pep8" ,python-pep8) |
| 6331 | ("python-pycodestyle" ,python-pycodestyle) |
| 6332 | ("python-pytest" ,python-pytest))) |
| 6333 | (home-page "https://gitlab.com/pycqa/flake8-polyfill") |
| 6334 | (synopsis "Polyfill package for Flake8 plugins") |
| 6335 | (description |
| 6336 | "This package that provides some compatibility helpers for Flake8 |
| 6337 | plugins that intend to support Flake8 2.x and 3.x simultaneously.") |
| 6338 | (license license:expat))) |
| 6339 | |
| 6340 | (define-public python2-flake8-polyfill |
| 6341 | (package-with-python2 python-flake8-polyfill)) |
| 6342 | |
| 6343 | (define-public python-mistune |
| 6344 | (package |
| 6345 | (name "python-mistune") |
| 6346 | (version "0.8.4") |
| 6347 | (source |
| 6348 | (origin |
| 6349 | (method url-fetch) |
| 6350 | (uri (pypi-uri "mistune" version)) |
| 6351 | (sha256 |
| 6352 | (base32 |
| 6353 | "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr")))) |
| 6354 | (build-system python-build-system) |
| 6355 | (native-inputs |
| 6356 | `(("python-nose" ,python-nose) |
| 6357 | ("python-cython" ,python-cython))) |
| 6358 | (home-page "https://github.com/lepture/mistune") |
| 6359 | (synopsis "Markdown parser in pure Python") |
| 6360 | (description "This package provides a fast markdown parser in pure |
| 6361 | Python.") |
| 6362 | (license license:bsd-3))) |
| 6363 | |
| 6364 | (define-public python2-mistune |
| 6365 | (package-with-python2 python-mistune)) |
| 6366 | |
| 6367 | (define-public python-markdown |
| 6368 | (package |
| 6369 | (name "python-markdown") |
| 6370 | (version "3.1.1") |
| 6371 | (source |
| 6372 | (origin |
| 6373 | (method url-fetch) |
| 6374 | (uri (pypi-uri "Markdown" version)) |
| 6375 | (sha256 |
| 6376 | (base32 |
| 6377 | "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))) |
| 6378 | (build-system python-build-system) |
| 6379 | (native-inputs |
| 6380 | `(("python-nose" ,python-nose) |
| 6381 | ("python-pyyaml" ,python-pyyaml))) |
| 6382 | (home-page "https://python-markdown.github.io/") |
| 6383 | (synopsis "Python implementation of Markdown") |
| 6384 | (description |
| 6385 | "This package provides a Python implementation of John Gruber's |
| 6386 | Markdown. The library features international input, various Markdown |
| 6387 | extensions, and several HTML output formats. A command line wrapper |
| 6388 | markdown_py is also provided to convert Markdown files to HTML.") |
| 6389 | (license license:bsd-3))) |
| 6390 | |
| 6391 | (define-public python2-markdown |
| 6392 | (package-with-python2 python-markdown)) |
| 6393 | |
| 6394 | (define-public python-ptyprocess |
| 6395 | (package |
| 6396 | (name "python-ptyprocess") |
| 6397 | (version "0.5.2") |
| 6398 | (source |
| 6399 | (origin |
| 6400 | (method url-fetch) |
| 6401 | (uri (pypi-uri "ptyprocess" version)) |
| 6402 | (sha256 |
| 6403 | (base32 |
| 6404 | "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6")))) |
| 6405 | (build-system python-build-system) |
| 6406 | (native-inputs |
| 6407 | `(("python-nose" ,python-nose))) |
| 6408 | (arguments |
| 6409 | `(#:phases |
| 6410 | (modify-phases %standard-phases |
| 6411 | (replace 'check |
| 6412 | (lambda _ (invoke "nosetests")))))) |
| 6413 | (home-page "https://github.com/pexpect/ptyprocess") |
| 6414 | (synopsis "Run a subprocess in a pseudo terminal") |
| 6415 | (description |
| 6416 | "This package provides a Python library used to launch a subprocess in a |
| 6417 | pseudo terminal (pty), and interact with both the process and its pty.") |
| 6418 | (license license:isc))) |
| 6419 | |
| 6420 | (define-public python2-ptyprocess |
| 6421 | (package-with-python2 python-ptyprocess)) |
| 6422 | |
| 6423 | (define-public python-cram |
| 6424 | (package |
| 6425 | (name "python-cram") |
| 6426 | (version "0.7") |
| 6427 | (home-page "https://bitheap.org/cram/") |
| 6428 | (source (origin |
| 6429 | (method url-fetch) |
| 6430 | (uri (list (string-append home-page "cram-" |
| 6431 | version ".tar.gz") |
| 6432 | (pypi-uri "cram" version))) |
| 6433 | (sha256 |
| 6434 | (base32 |
| 6435 | "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx")))) |
| 6436 | (arguments |
| 6437 | '(#:phases |
| 6438 | (modify-phases %standard-phases |
| 6439 | (add-after 'unpack 'patch-source |
| 6440 | (lambda _ |
| 6441 | (substitute* (find-files "cram" ".*\\.py$") |
| 6442 | ;; Replace default shell path. |
| 6443 | (("/bin/sh") (which "sh"))) |
| 6444 | (substitute* (find-files "tests" ".*\\.t$") |
| 6445 | (("md5") "md5sum") |
| 6446 | (("/bin/bash") (which "bash")) |
| 6447 | (("/bin/sh") (which "sh"))) |
| 6448 | (substitute* "cram/_test.py" |
| 6449 | ;; This hack works around a bug triggered by substituting |
| 6450 | ;; the /bin/sh paths. "tests/usage.t" compares the output of |
| 6451 | ;; "cram -h", which breaks the output at 80 characters. This |
| 6452 | ;; causes the line showing the default shell to break into two |
| 6453 | ;; lines, but the test expects a single line... |
| 6454 | (("env\\['COLUMNS'\\] = '80'") |
| 6455 | "env['COLUMNS'] = '160'")) |
| 6456 | #t)) |
| 6457 | (delete 'check) |
| 6458 | (add-after 'install 'check |
| 6459 | ;; The test phase uses the built library and executable. |
| 6460 | ;; It's easier to run it after install since the build |
| 6461 | ;; directory contains version-specific PATH. |
| 6462 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 6463 | (add-installed-pythonpath inputs outputs) |
| 6464 | (setenv "PATH" (string-append (getenv "PATH") ":" |
| 6465 | (assoc-ref outputs "out") "/bin")) |
| 6466 | (invoke "make" "test")))))) |
| 6467 | (build-system python-build-system) |
| 6468 | (native-inputs |
| 6469 | `(("python-coverage" ,python-coverage) |
| 6470 | ("which" ,which))) |
| 6471 | (synopsis "Simple testing framework for command line applications") |
| 6472 | (description |
| 6473 | "Cram is a functional testing framework for command line applications. |
| 6474 | Cram tests look like snippets of interactive shell sessions. Cram runs each |
| 6475 | command and compares the command output in the test with the command’s actual |
| 6476 | output.") |
| 6477 | (license license:gpl2+))) |
| 6478 | |
| 6479 | (define-public python2-cram |
| 6480 | (package-with-python2 python-cram)) |
| 6481 | |
| 6482 | (define-public python-straight-plugin |
| 6483 | (package |
| 6484 | (name "python-straight-plugin") |
| 6485 | (version "1.4.1") |
| 6486 | (source |
| 6487 | (origin |
| 6488 | (method url-fetch) |
| 6489 | (uri (pypi-uri "straight.plugin" version)) |
| 6490 | (sha256 |
| 6491 | (base32 |
| 6492 | "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62")))) |
| 6493 | (build-system python-build-system) |
| 6494 | (home-page "https://github.com/ironfroggy/straight.plugin") |
| 6495 | (synopsis "Simple namespaced plugin facility") |
| 6496 | (description "Straight Plugin provides a type of plugin you can create from |
| 6497 | almost any existing Python modules, and an easy way for outside developers to |
| 6498 | add functionality and customization to your projects with their own plugins.") |
| 6499 | (license license:expat))) |
| 6500 | |
| 6501 | (define-public python2-straight-plugin |
| 6502 | (package-with-python2 python-straight-plugin)) |
| 6503 | |
| 6504 | (define-public python-fonttools |
| 6505 | (package |
| 6506 | (name "python-fonttools") |
| 6507 | (version "3.28.0") |
| 6508 | (source (origin |
| 6509 | (method url-fetch) |
| 6510 | (uri (pypi-uri "fonttools" version ".zip")) |
| 6511 | (sha256 |
| 6512 | (base32 |
| 6513 | "0vsvjhidpb5kywpjgz1j3fywzkddxkb0afqai18qa3h6lqjyxwpb")))) |
| 6514 | (build-system python-build-system) |
| 6515 | (native-inputs |
| 6516 | `(("unzip" ,unzip) |
| 6517 | ("python-pytest" ,python-pytest) |
| 6518 | ("python-pytest-runner" ,python-pytest-runner))) |
| 6519 | (home-page "https://github.com/behdad/fonttools") |
| 6520 | (synopsis "Tools to manipulate font files") |
| 6521 | (description |
| 6522 | "FontTools/TTX is a library to manipulate font files from Python. It |
| 6523 | supports reading and writing of TrueType/OpenType fonts, reading and writing |
| 6524 | of AFM files, reading (and partially writing) of PS Type 1 fonts. The package |
| 6525 | also contains a tool called “TTX” which converts TrueType/OpenType fonts to and |
| 6526 | from an XML-based format.") |
| 6527 | (license license:expat))) |
| 6528 | |
| 6529 | (define-public python2-fonttools |
| 6530 | (package-with-python2 python-fonttools)) |
| 6531 | |
| 6532 | (define-public python-ly |
| 6533 | (package |
| 6534 | (name "python-ly") |
| 6535 | (version "0.9.5") |
| 6536 | (source |
| 6537 | (origin |
| 6538 | (method url-fetch) |
| 6539 | (uri (pypi-uri name version)) |
| 6540 | (sha256 |
| 6541 | (base32 |
| 6542 | "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl")))) |
| 6543 | (build-system python-build-system) |
| 6544 | (arguments |
| 6545 | ;; FIXME: Some tests need network access. |
| 6546 | '(#:tests? #f)) |
| 6547 | (synopsis "Tool and library for manipulating LilyPond files") |
| 6548 | (description "This package provides a Python library to parse, manipulate |
| 6549 | or create documents in LilyPond format. A command line program ly is also |
| 6550 | provided that can be used to do various manipulations with LilyPond files.") |
| 6551 | (home-page "https://pypi.python.org/pypi/python-ly") |
| 6552 | (license license:gpl2+))) |
| 6553 | |
| 6554 | (define-public python-appdirs |
| 6555 | (package |
| 6556 | (name "python-appdirs") |
| 6557 | (version "1.4.3") |
| 6558 | (source |
| 6559 | (origin |
| 6560 | (method url-fetch) |
| 6561 | (uri (pypi-uri "appdirs" version)) |
| 6562 | (sha256 |
| 6563 | (base32 |
| 6564 | "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y")))) |
| 6565 | (build-system python-build-system) |
| 6566 | (home-page "https://github.com/ActiveState/appdirs") |
| 6567 | (synopsis |
| 6568 | "Determine platform-specific dirs, e.g. a \"user data dir\"") |
| 6569 | (description |
| 6570 | "This module provides a portable way of finding out where user data |
| 6571 | should be stored on various operating systems.") |
| 6572 | (license license:expat))) |
| 6573 | |
| 6574 | (define-public python2-appdirs |
| 6575 | (package-with-python2 python-appdirs)) |
| 6576 | |
| 6577 | (define-public python-llfuse |
| 6578 | (package |
| 6579 | (name "python-llfuse") |
| 6580 | (version "1.3.5") |
| 6581 | (source (origin |
| 6582 | (method url-fetch) |
| 6583 | (uri (pypi-uri "llfuse" version ".tar.bz2")) |
| 6584 | (sha256 |
| 6585 | (base32 |
| 6586 | "1n7a90jww3ly49fm7x27m3xw3la3qfrnykcakga654g6kcyjlhbf")))) |
| 6587 | (build-system python-build-system) |
| 6588 | (inputs |
| 6589 | `(("fuse" ,fuse) |
| 6590 | ("attr" ,attr))) |
| 6591 | (native-inputs |
| 6592 | `(("pkg-config" ,pkg-config))) |
| 6593 | (synopsis "Python bindings for FUSE") |
| 6594 | (description |
| 6595 | "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") |
| 6596 | (home-page "https://bitbucket.org/nikratio/python-llfuse/") |
| 6597 | (license license:lgpl2.0+) |
| 6598 | (properties `((python2-variant . ,(delay python2-llfuse)))))) |
| 6599 | |
| 6600 | (define-public python2-llfuse |
| 6601 | (package (inherit (package-with-python2 |
| 6602 | (strip-python2-variant python-llfuse))) |
| 6603 | (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) |
| 6604 | |
| 6605 | ;; For attic-0.16 |
| 6606 | (define-public python-llfuse-0.41 |
| 6607 | (package (inherit python-llfuse) |
| 6608 | (version "0.41.1") |
| 6609 | (source (origin |
| 6610 | (method url-fetch) |
| 6611 | (uri (string-append |
| 6612 | "https://bitbucket.org/nikratio/python-llfuse/downloads/" |
| 6613 | "llfuse-" version ".tar.bz2")) |
| 6614 | (sha256 |
| 6615 | (base32 |
| 6616 | "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) |
| 6617 | ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) |
| 6618 | ;; licensed. The rest of the package is licensed under LGPL2.0 or later. |
| 6619 | (license (list license:expat license:lgpl2.0+)))) |
| 6620 | |
| 6621 | (define-public python-msgpack |
| 6622 | (package |
| 6623 | (name "python-msgpack") |
| 6624 | (version "0.5.6") |
| 6625 | (source (origin |
| 6626 | (method url-fetch) |
| 6627 | (uri (pypi-uri "msgpack" version)) |
| 6628 | (sha256 |
| 6629 | (base32 |
| 6630 | "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f")))) |
| 6631 | (build-system python-build-system) |
| 6632 | (arguments |
| 6633 | `(#:modules ((guix build utils) |
| 6634 | (guix build python-build-system) |
| 6635 | (ice-9 ftw) |
| 6636 | (srfi srfi-1) |
| 6637 | (srfi srfi-26)) |
| 6638 | #:phases |
| 6639 | (modify-phases %standard-phases |
| 6640 | (replace 'check |
| 6641 | (lambda _ |
| 6642 | (let ((cwd (getcwd))) |
| 6643 | (setenv "PYTHONPATH" |
| 6644 | (string-append cwd "/build/" |
| 6645 | (find (cut string-prefix? "lib" <>) |
| 6646 | (scandir (string-append cwd "/build"))) |
| 6647 | ":" |
| 6648 | (getenv "PYTHONPATH"))) |
| 6649 | (invoke "pytest" "-v" "test"))))))) |
| 6650 | (native-inputs |
| 6651 | `(("python-pytest" ,python-pytest))) |
| 6652 | (synopsis "MessagePack (de)serializer") |
| 6653 | (description "MessagePack is a fast, compact binary serialization format, |
| 6654 | suitable for similar data to JSON. This package provides CPython bindings for |
| 6655 | reading and writing MessagePack data.") |
| 6656 | (home-page "https://pypi.python.org/pypi/msgpack/") |
| 6657 | (license license:asl2.0))) |
| 6658 | |
| 6659 | ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with |
| 6660 | ;; release 0.5. Some packages like borg still call it by the old name for now. |
| 6661 | ;; <https://bugs.gnu.org/30662> |
| 6662 | (define-public python-msgpack-transitional |
| 6663 | (package |
| 6664 | (inherit python-msgpack) |
| 6665 | (name "python-msgpack-transitional") |
| 6666 | (arguments |
| 6667 | (substitute-keyword-arguments (package-arguments python-msgpack) |
| 6668 | ((#:phases phases) |
| 6669 | `(modify-phases ,phases |
| 6670 | (add-after 'unpack 'configure-transitional |
| 6671 | (lambda _ |
| 6672 | ;; Keep using the old name. |
| 6673 | (substitute* "setup.py" |
| 6674 | (("TRANSITIONAL = False") |
| 6675 | "TRANSITIONAL = 1")) |
| 6676 | #t)))))))) |
| 6677 | |
| 6678 | (define-public python2-msgpack |
| 6679 | (package-with-python2 python-msgpack)) |
| 6680 | |
| 6681 | (define-public python-netaddr |
| 6682 | (package |
| 6683 | (name "python-netaddr") |
| 6684 | (version "0.7.19") |
| 6685 | (source |
| 6686 | (origin |
| 6687 | (method url-fetch) |
| 6688 | (uri (pypi-uri "netaddr" version)) |
| 6689 | (sha256 |
| 6690 | (base32 |
| 6691 | "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq")))) |
| 6692 | (build-system python-build-system) |
| 6693 | (arguments `(#:tests? #f)) ;; No tests. |
| 6694 | (home-page "https://github.com/drkjam/netaddr/") |
| 6695 | (synopsis "Pythonic manipulation of network addresses") |
| 6696 | (description |
| 6697 | "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI |
| 6698 | and MAC network addresses.") |
| 6699 | (license license:bsd-3))) |
| 6700 | |
| 6701 | (define-public python2-netaddr |
| 6702 | (package-with-python2 python-netaddr)) |
| 6703 | |
| 6704 | (define-public python-wrapt |
| 6705 | (package |
| 6706 | (name "python-wrapt") |
| 6707 | (version "1.11.1") |
| 6708 | (source |
| 6709 | (origin |
| 6710 | (method url-fetch) |
| 6711 | (uri (pypi-uri "wrapt" version)) |
| 6712 | (sha256 |
| 6713 | (base32 |
| 6714 | "0cqmysny1pz01jw26q48q5zasvns6507rwhgm6wcw743f0r01sja")))) |
| 6715 | (build-system python-build-system) |
| 6716 | (arguments |
| 6717 | ;; Tests are not included in the tarball, they are only available in the |
| 6718 | ;; git repository. |
| 6719 | `(#:tests? #f)) |
| 6720 | (home-page "https://github.com/GrahamDumpleton/wrapt") |
| 6721 | (synopsis "Module for decorators, wrappers and monkey patching") |
| 6722 | (description |
| 6723 | "The aim of the wrapt module is to provide a transparent object proxy for |
| 6724 | Python, which can be used as the basis for the construction of function |
| 6725 | wrappers and decorator functions.") |
| 6726 | (license license:bsd-2))) |
| 6727 | |
| 6728 | (define-public python2-wrapt |
| 6729 | (package-with-python2 python-wrapt)) |
| 6730 | |
| 6731 | (define-public python-xlrd |
| 6732 | (package |
| 6733 | (name "python-xlrd") |
| 6734 | (version "1.0.0") |
| 6735 | (source (origin |
| 6736 | (method url-fetch) |
| 6737 | (uri (pypi-uri "xlrd" version)) |
| 6738 | (sha256 |
| 6739 | (base32 |
| 6740 | "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g")))) |
| 6741 | (build-system python-build-system) |
| 6742 | (arguments |
| 6743 | `(#:phases |
| 6744 | (modify-phases %standard-phases |
| 6745 | ;; Current test in setup.py does not work as of 1.0.0, so use nose to |
| 6746 | ;; run tests instead for now. |
| 6747 | (replace 'check (lambda _ (invoke "nosetests")))))) |
| 6748 | (native-inputs `(("python-nose" ,python-nose))) |
| 6749 | (home-page "http://www.python-excel.org/") |
| 6750 | (synopsis "Library for extracting data from Excel files") |
| 6751 | (description "This package provides a library to extract data from |
| 6752 | spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and |
| 6753 | @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is |
| 6754 | Unicode-aware. It is not intended as an end-user tool.") |
| 6755 | (license license:bsd-3))) |
| 6756 | |
| 6757 | (define-public python2-xlrd |
| 6758 | (package-with-python2 python-xlrd)) |
| 6759 | |
| 6760 | (define-public python-prettytable |
| 6761 | (package |
| 6762 | (name "python-prettytable") |
| 6763 | (version "0.7.2") |
| 6764 | (source |
| 6765 | (origin |
| 6766 | (method url-fetch) |
| 6767 | (uri (pypi-uri "prettytable" version ".tar.bz2")) |
| 6768 | (sha256 |
| 6769 | (base32 |
| 6770 | "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45")))) |
| 6771 | (build-system python-build-system) |
| 6772 | (home-page "http://code.google.com/p/prettytable/") |
| 6773 | (synopsis "Display tabular data in an ASCII table format") |
| 6774 | (description |
| 6775 | "A library designed to represent tabular data in visually appealing ASCII |
| 6776 | tables. PrettyTable allows for selection of which columns are to be printed, |
| 6777 | independent alignment of columns (left or right justified or centred) and |
| 6778 | printing of sub-tables by specifying a row range.") |
| 6779 | (license license:bsd-3))) |
| 6780 | |
| 6781 | (define-public python2-prettytable |
| 6782 | (package-with-python2 python-prettytable)) |
| 6783 | |
| 6784 | (define-public python-tables |
| 6785 | (package |
| 6786 | (name "python-tables") |
| 6787 | (version "3.4.4") |
| 6788 | (source |
| 6789 | (origin |
| 6790 | (method url-fetch) |
| 6791 | (uri (pypi-uri "tables" version)) |
| 6792 | (sha256 |
| 6793 | (base32 |
| 6794 | "0affz7k8babh8wdmsgrz5jxrd569by2w8ffimcxs9wiaf5rw1idx")) |
| 6795 | (modules '((guix build utils))) |
| 6796 | (snippet |
| 6797 | '(begin |
| 6798 | ;; Remove pre-compiled .pyc files from source. |
| 6799 | (for-each delete-file-recursively |
| 6800 | (find-files "." "__pycache__" #:directories? #t)) |
| 6801 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 6802 | #t)))) |
| 6803 | (build-system python-build-system) |
| 6804 | (arguments |
| 6805 | `(;; FIXME: python-build-system does not pass configure-flags to "build" |
| 6806 | ;; or "check", so we must override the build and check phases. |
| 6807 | #:phases |
| 6808 | (modify-phases %standard-phases |
| 6809 | (add-after 'unpack 'use-gcc |
| 6810 | (lambda _ |
| 6811 | (substitute* "setup.py" |
| 6812 | (("compiler = new_compiler\\(\\)" line) |
| 6813 | (string-append line |
| 6814 | "\ncompiler.set_executables(compiler='gcc'," |
| 6815 | "compiler_so='gcc'," |
| 6816 | "linker_exe='gcc'," |
| 6817 | "linker_so='gcc -shared')"))) |
| 6818 | #t)) |
| 6819 | (replace 'build |
| 6820 | (lambda* (#:key inputs #:allow-other-keys) |
| 6821 | (invoke "python" "setup.py" "build" |
| 6822 | (string-append "--hdf5=" |
| 6823 | (assoc-ref inputs "hdf5"))))) |
| 6824 | (replace 'check |
| 6825 | (lambda* (#:key inputs #:allow-other-keys) |
| 6826 | (invoke "python" "setup.py" "check" |
| 6827 | (string-append "--hdf5=" |
| 6828 | (assoc-ref inputs "hdf5")))))))) |
| 6829 | (propagated-inputs |
| 6830 | `(("python-numexpr" ,python-numexpr) |
| 6831 | ("python-numpy" ,python-numpy))) |
| 6832 | (native-inputs |
| 6833 | `(("python-cython" ,python-cython) |
| 6834 | ("pkg-config" ,pkg-config))) |
| 6835 | (inputs |
| 6836 | `(("hdf5" ,hdf5) |
| 6837 | ("bzip2" ,bzip2) |
| 6838 | ("zlib" ,zlib))) |
| 6839 | (home-page "http://www.pytables.org/") |
| 6840 | (synopsis "Hierarchical datasets for Python") |
| 6841 | (description "PyTables is a package for managing hierarchical datasets and |
| 6842 | designed to efficiently cope with extremely large amounts of data.") |
| 6843 | (license license:bsd-3))) |
| 6844 | |
| 6845 | (define-public python2-tables |
| 6846 | (package-with-python2 python-tables)) |
| 6847 | |
| 6848 | (define-public python-pyasn1 |
| 6849 | (package |
| 6850 | (name "python-pyasn1") |
| 6851 | (version "0.4.3") |
| 6852 | (source |
| 6853 | (origin |
| 6854 | (method url-fetch) |
| 6855 | (uri (pypi-uri "pyasn1" version)) |
| 6856 | (sha256 |
| 6857 | (base32 |
| 6858 | "1z5h38anjzzrxpraa9iq9llffyx2zs8gx0q6dc1g029miwnn50gv")))) |
| 6859 | (build-system python-build-system) |
| 6860 | (home-page "http://pyasn1.sourceforge.net/") |
| 6861 | (synopsis "ASN.1 types and codecs") |
| 6862 | (description |
| 6863 | "This is an implementation of ASN.1 types and codecs in Python. It is |
| 6864 | suitable for a wide range of protocols based on the ASN.1 specification.") |
| 6865 | (license license:bsd-2))) |
| 6866 | |
| 6867 | (define-public python2-pyasn1 |
| 6868 | (package-with-python2 python-pyasn1)) |
| 6869 | |
| 6870 | (define-public python-pyasn1-modules |
| 6871 | (package |
| 6872 | (name "python-pyasn1-modules") |
| 6873 | (version "0.2.2") |
| 6874 | (source |
| 6875 | (origin |
| 6876 | (method url-fetch) |
| 6877 | (uri (pypi-uri "pyasn1-modules" version)) |
| 6878 | (sha256 |
| 6879 | (base32 |
| 6880 | "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0")))) |
| 6881 | (build-system python-build-system) |
| 6882 | (propagated-inputs |
| 6883 | `(("python-pyasn1" ,python-pyasn1))) |
| 6884 | (home-page "https://sourceforge.net/projects/pyasn1/") |
| 6885 | (synopsis "ASN.1 codec implementations") |
| 6886 | (description |
| 6887 | "Pyasn1-modules is a collection of Python modules providing ASN.1 types and |
| 6888 | implementations of ASN.1-based codecs and protocols.") |
| 6889 | (license license:bsd-3))) |
| 6890 | |
| 6891 | (define-public python2-pyasn1-modules |
| 6892 | (package-with-python2 python-pyasn1-modules)) |
| 6893 | |
| 6894 | (define-public python-ipaddress |
| 6895 | (package |
| 6896 | (name "python-ipaddress") |
| 6897 | (version "1.0.22") |
| 6898 | (source (origin |
| 6899 | (method url-fetch) |
| 6900 | (uri (pypi-uri "ipaddress" version)) |
| 6901 | (sha256 |
| 6902 | (base32 |
| 6903 | "0b570bm6xqpjwqis15pvdy6lyvvzfndjvkynilcddjj5x98wfimi")))) |
| 6904 | (build-system python-build-system) |
| 6905 | (home-page "https://github.com/phihag/ipaddress") |
| 6906 | (synopsis "IP address manipulation library") |
| 6907 | (description |
| 6908 | "This package provides a fast, lightweight IPv4/IPv6 manipulation library |
| 6909 | in Python. This library is used to create, poke at, and manipulate IPv4 and |
| 6910 | IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress |
| 6911 | module to older versions of Python.") |
| 6912 | (license license:psfl))) |
| 6913 | |
| 6914 | (define-public python2-ipaddress |
| 6915 | (package-with-python2 python-ipaddress)) |
| 6916 | |
| 6917 | (define-public python2-ipaddr |
| 6918 | (package |
| 6919 | (name "python2-ipaddr") |
| 6920 | (version "2.1.11") |
| 6921 | (source |
| 6922 | (origin |
| 6923 | (method url-fetch) |
| 6924 | (uri (pypi-uri "ipaddr" version)) |
| 6925 | (sha256 |
| 6926 | (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v")))) |
| 6927 | (build-system python-build-system) |
| 6928 | (arguments |
| 6929 | `(#:python ,python-2 ;version 2 only |
| 6930 | #:phases |
| 6931 | (modify-phases %standard-phases |
| 6932 | (replace 'check |
| 6933 | (lambda _ (invoke "python" "ipaddr_test.py")))))) |
| 6934 | (home-page "https://github.com/google/ipaddr-py") |
| 6935 | (synopsis "IP address manipulation library") |
| 6936 | (description |
| 6937 | "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and |
| 6938 | IPv6 addresses and networks. |
| 6939 | |
| 6940 | For new implementations you may prefer to use the standard module |
| 6941 | @code{ipaddress}, which was introduced in Python 3.3 and backported to older |
| 6942 | versions of Python.") |
| 6943 | (license license:asl2.0))) |
| 6944 | |
| 6945 | (define-public python-idna |
| 6946 | (package |
| 6947 | (name "python-idna") |
| 6948 | (version "2.8") |
| 6949 | (source |
| 6950 | (origin |
| 6951 | (method url-fetch) |
| 6952 | (uri (pypi-uri "idna" version)) |
| 6953 | (sha256 |
| 6954 | (base32 |
| 6955 | "01rlkigdxg17sf9yar1jl8n18ls59367wqh59hnawlyg53vb6my3")))) |
| 6956 | (build-system python-build-system) |
| 6957 | (home-page "https://github.com/kjd/idna") |
| 6958 | (synopsis "Internationalized domain names in applications") |
| 6959 | (description |
| 6960 | "This is a library to support the Internationalised Domain Names in |
| 6961 | Applications (IDNA) protocol as specified in RFC 5891. This version of the |
| 6962 | protocol is often referred to as “IDNA2008” and can produce different results |
| 6963 | from the earlier standard from 2003. The library is also intended to act as a |
| 6964 | suitable drop-in replacement for the “encodings.idna” module that comes with |
| 6965 | the Python standard library but currently only supports the older 2003 |
| 6966 | specification.") |
| 6967 | (license license:bsd-4))) |
| 6968 | |
| 6969 | (define-public python2-idna |
| 6970 | (package-with-python2 python-idna)) |
| 6971 | |
| 6972 | (define-public python-idna-ssl |
| 6973 | (package |
| 6974 | (name "python-idna-ssl") |
| 6975 | (version "1.0.1") |
| 6976 | (source |
| 6977 | (origin |
| 6978 | (method url-fetch) |
| 6979 | (uri (pypi-uri "idna-ssl" version)) |
| 6980 | (sha256 |
| 6981 | (base32 |
| 6982 | "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj")))) |
| 6983 | (build-system python-build-system) |
| 6984 | (arguments |
| 6985 | `(#:tests? #f)) ;circular dependency with python-aiohttp |
| 6986 | (home-page "https://github.com/aio-libs/idna-ssl") |
| 6987 | (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support") |
| 6988 | (description "Patch @code{ssl.match_hostname} for Unicode(idna) |
| 6989 | domains support.") |
| 6990 | (license license:expat))) |
| 6991 | |
| 6992 | (define-public python-pretend |
| 6993 | (package |
| 6994 | (name "python-pretend") |
| 6995 | (version "1.0.9") |
| 6996 | (source |
| 6997 | (origin |
| 6998 | (method url-fetch) |
| 6999 | (uri (pypi-uri "pretend" version)) |
| 7000 | (sha256 |
| 7001 | (base32 |
| 7002 | "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9")))) |
| 7003 | (build-system python-build-system) |
| 7004 | (home-page "https://github.com/alex/pretend") |
| 7005 | (synopsis "Library for stubbing in Python") |
| 7006 | (description |
| 7007 | "Pretend is a library to make stubbing with Python easier. Stubbing is a |
| 7008 | technique for writing tests. You may hear the term mixed up with mocks, |
| 7009 | fakes, or doubles. Basically, a stub is an object that returns pre-canned |
| 7010 | responses, rather than doing any computation.") |
| 7011 | (license license:bsd-3))) |
| 7012 | |
| 7013 | (define-public python2-pretend |
| 7014 | (package-with-python2 python-pretend)) |
| 7015 | |
| 7016 | (define-public python-pip |
| 7017 | (package |
| 7018 | (name "python-pip") |
| 7019 | (version "18.1") |
| 7020 | (source |
| 7021 | (origin |
| 7022 | (method url-fetch) |
| 7023 | (uri (pypi-uri "pip" version)) |
| 7024 | (sha256 |
| 7025 | (base32 |
| 7026 | "188fclay154s520n43s7cxxlhdaiysvxf19zk8vr1xbyjyyr58n0")))) |
| 7027 | (build-system python-build-system) |
| 7028 | (arguments |
| 7029 | '(#:tests? #f)) ; there are no tests in the pypi archive. |
| 7030 | (home-page "https://pip.pypa.io/") |
| 7031 | (synopsis "Package manager for Python software") |
| 7032 | (description |
| 7033 | "Pip is a package manager for Python software, that finds packages on the |
| 7034 | Python Package Index (PyPI).") |
| 7035 | (license license:expat))) |
| 7036 | |
| 7037 | (define-public python2-pip |
| 7038 | (package-with-python2 python-pip)) |
| 7039 | |
| 7040 | (define-public python-tlsh |
| 7041 | (package |
| 7042 | (name "python-tlsh") |
| 7043 | (version "3.4.5") |
| 7044 | (home-page "https://github.com/trendmicro/tlsh") |
| 7045 | (source |
| 7046 | (origin |
| 7047 | (method git-fetch) |
| 7048 | (uri (git-reference |
| 7049 | (url "https://github.com/trendmicro/tlsh.git") |
| 7050 | (commit (string-append "v" version)))) |
| 7051 | (file-name (git-file-name name version)) |
| 7052 | (sha256 |
| 7053 | (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll")))) |
| 7054 | (build-system cmake-build-system) |
| 7055 | (arguments |
| 7056 | '(#:out-of-source? #f |
| 7057 | #:phases (modify-phases %standard-phases |
| 7058 | (replace |
| 7059 | 'install |
| 7060 | (lambda* (#:key outputs #:allow-other-keys) |
| 7061 | ;; Build and install the Python bindings. The underlying |
| 7062 | ;; C++ library is apparently not meant to be installed. |
| 7063 | (let ((out (assoc-ref outputs "out"))) |
| 7064 | (with-directory-excursion "py_ext" |
| 7065 | (and (system* "python" "setup.py" "build") |
| 7066 | (system* "python" "setup.py" "install" |
| 7067 | (string-append "--prefix=" out)))))))))) |
| 7068 | (inputs `(("python" ,python-wrapper))) ;for the bindings |
| 7069 | (synopsis "Fuzzy matching library for Python") |
| 7070 | (description |
| 7071 | "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library. |
| 7072 | Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash |
| 7073 | value which can be used for similarity comparisons. Similar objects have |
| 7074 | similar hash values, which allows for the detection of similar objects by |
| 7075 | comparing their hash values. The byte stream should have a sufficient amount |
| 7076 | of complexity; for example, a byte stream of identical bytes will not generate |
| 7077 | a hash value.") |
| 7078 | (license license:asl2.0))) |
| 7079 | |
| 7080 | (define-public python2-tlsh |
| 7081 | (package |
| 7082 | (inherit python-tlsh) |
| 7083 | (name "python2-tlsh") |
| 7084 | (inputs `(("python" ,python-2))))) |
| 7085 | |
| 7086 | (define-public python-termcolor |
| 7087 | (package |
| 7088 | (name "python-termcolor") |
| 7089 | (version "1.1.0") |
| 7090 | (source |
| 7091 | (origin |
| 7092 | (method url-fetch) |
| 7093 | (uri (pypi-uri "termcolor" version)) |
| 7094 | (sha256 |
| 7095 | (base32 |
| 7096 | "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) |
| 7097 | (build-system python-build-system) |
| 7098 | (arguments |
| 7099 | ;; There are no tests. |
| 7100 | `(#:tests? #f)) |
| 7101 | (home-page "https://pypi.python.org/pypi/termcolor") |
| 7102 | (synopsis "ANSII Color formatting for terminal output") |
| 7103 | (description |
| 7104 | "This package provides ANSII Color formatting for output in terminals.") |
| 7105 | (license license:expat))) |
| 7106 | |
| 7107 | (define-public python2-termcolor |
| 7108 | (package-with-python2 python-termcolor)) |
| 7109 | |
| 7110 | (define-public python-libarchive-c |
| 7111 | (package |
| 7112 | (name "python-libarchive-c") |
| 7113 | (version "2.8") |
| 7114 | (source (origin |
| 7115 | (method url-fetch) |
| 7116 | (uri (pypi-uri "libarchive-c" version)) |
| 7117 | (sha256 |
| 7118 | (base32 |
| 7119 | "0qg0v1s9c1xdk9philhnv8k6c6nicvnvfwlc0j9srg90jmdlvm06")))) |
| 7120 | (build-system python-build-system) |
| 7121 | (arguments |
| 7122 | '(#:phases (modify-phases %standard-phases |
| 7123 | (add-before |
| 7124 | 'build 'reference-libarchive |
| 7125 | (lambda* (#:key inputs #:allow-other-keys) |
| 7126 | ;; Retain the absolute file name of libarchive.so. |
| 7127 | (let ((libarchive (assoc-ref inputs "libarchive"))) |
| 7128 | (substitute* "libarchive/ffi.py" |
| 7129 | (("find_library\\('archive'\\)") |
| 7130 | (string-append "'" libarchive |
| 7131 | "/lib/libarchive.so'")))))) |
| 7132 | (replace 'check |
| 7133 | (lambda _ (invoke "pytest" "-vv")))))) |
| 7134 | (native-inputs |
| 7135 | `(("python-mock" ,python-mock) |
| 7136 | ("python-pytest" ,python-pytest))) |
| 7137 | (inputs |
| 7138 | `(("libarchive" ,libarchive))) |
| 7139 | (home-page "https://github.com/Changaco/python-libarchive-c") |
| 7140 | (synopsis "Python interface to libarchive") |
| 7141 | (description |
| 7142 | "This package provides Python bindings to libarchive, a C library to |
| 7143 | access possibly compressed archives in many different formats. It uses |
| 7144 | Python's @code{ctypes} foreign function interface (FFI).") |
| 7145 | (license license:lgpl2.0+))) |
| 7146 | |
| 7147 | (define-public python2-libarchive-c |
| 7148 | (package-with-python2 python-libarchive-c)) |
| 7149 | |
| 7150 | (define-public python-file |
| 7151 | (package |
| 7152 | (inherit file) |
| 7153 | (name "python-file") |
| 7154 | (build-system python-build-system) |
| 7155 | (arguments |
| 7156 | '(#:tests? #f ;no tests |
| 7157 | #:configure-flags '("--single-version-externally-managed" "--root=/") |
| 7158 | #:phases (modify-phases %standard-phases |
| 7159 | (add-before 'build 'change-directory |
| 7160 | (lambda _ |
| 7161 | (chdir "python") |
| 7162 | #t)) |
| 7163 | (add-before 'build 'set-library-file-name |
| 7164 | (lambda* (#:key inputs #:allow-other-keys) |
| 7165 | (let ((file (assoc-ref inputs "file"))) |
| 7166 | (substitute* "magic.py" |
| 7167 | (("find_library\\('magic'\\)") |
| 7168 | (string-append "'" file "/lib/libmagic.so'"))) |
| 7169 | #t)))))) |
| 7170 | (inputs `(("file" ,file))) |
| 7171 | (native-inputs (if (%current-target-system) |
| 7172 | `(("self" ,this-package)) |
| 7173 | '())) |
| 7174 | (synopsis "Python bindings to the libmagic file type guesser. Note that |
| 7175 | this module and the python-magic module both provide a \"magic.py\" file; |
| 7176 | these two modules, which are different and were developed separately, both |
| 7177 | serve the same purpose: provide Python bindings for libmagic."))) |
| 7178 | |
| 7179 | (define-public python2-file |
| 7180 | (package-with-python2 python-file)) |
| 7181 | |
| 7182 | (define-public python-debian |
| 7183 | (package |
| 7184 | (name "python-debian") |
| 7185 | (home-page "https://salsa.debian.org/python-debian-team/python-debian") |
| 7186 | (version "0.1.28") |
| 7187 | (source |
| 7188 | (origin |
| 7189 | (method url-fetch) |
| 7190 | (uri (pypi-uri name version)) |
| 7191 | (sha256 |
| 7192 | (base32 |
| 7193 | "0i15f0xzx679sd0ldq2sls9pnnps9fv6vhqvnv9dzf4qhma42i0y")))) |
| 7194 | (build-system python-build-system) |
| 7195 | (propagated-inputs |
| 7196 | `(("python-six" ,python-six))) |
| 7197 | (synopsis "Debian package related modules") |
| 7198 | (description |
| 7199 | ;; XXX: Use @enumerate instead of @itemize to work around |
| 7200 | ;; <http://bugs.gnu.org/21772>. |
| 7201 | "This package provides Python modules that abstract many formats of |
| 7202 | Debian-related files, such as: |
| 7203 | |
| 7204 | @enumerate |
| 7205 | @item Debtags information; |
| 7206 | @item @file{debian/changelog} files; |
| 7207 | @item packages files, pdiffs; |
| 7208 | @item control files of single or multiple RFC822-style paragraphs---e.g. |
| 7209 | @file{debian/control}, @file{.changes}, @file{.dsc}; |
| 7210 | @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to |
| 7211 | contained files and meta-information. |
| 7212 | @end enumerate\n") |
| 7213 | |
| 7214 | ;; Modules are either GPLv2+ or GPLv3+. |
| 7215 | (license license:gpl3+))) |
| 7216 | |
| 7217 | (define-public python2-debian |
| 7218 | (package-with-python2 python-debian)) |
| 7219 | |
| 7220 | (define-public python-nbformat |
| 7221 | (package |
| 7222 | (name "python-nbformat") |
| 7223 | (version "4.4.0") |
| 7224 | (source |
| 7225 | (origin |
| 7226 | (method url-fetch) |
| 7227 | (uri (pypi-uri "nbformat" version)) |
| 7228 | (sha256 |
| 7229 | (base32 |
| 7230 | "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp")))) |
| 7231 | (build-system python-build-system) |
| 7232 | (arguments `(#:tests? #f)) ; no test target |
| 7233 | (propagated-inputs |
| 7234 | `(("python-ipython-genutils" ,python-ipython-genutils) |
| 7235 | ("python-jsonschema" ,python-jsonschema) |
| 7236 | ("python-jupyter-core" ,python-jupyter-core) |
| 7237 | ("python-traitlets" ,python-traitlets))) |
| 7238 | (home-page "http://jupyter.org") |
| 7239 | (synopsis "Jupyter Notebook format") |
| 7240 | (description "This package provides the reference implementation of the |
| 7241 | Jupyter Notebook format and Python APIs for working with notebooks.") |
| 7242 | (license license:bsd-3))) |
| 7243 | |
| 7244 | (define-public python2-nbformat |
| 7245 | (package-with-python2 python-nbformat)) |
| 7246 | |
| 7247 | (define-public python-bleach |
| 7248 | (package |
| 7249 | (name "python-bleach") |
| 7250 | (version "1.4.3") |
| 7251 | (source |
| 7252 | (origin |
| 7253 | (method url-fetch) |
| 7254 | (uri (pypi-uri "bleach" version)) |
| 7255 | (sha256 |
| 7256 | (base32 |
| 7257 | "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj")))) |
| 7258 | (build-system python-build-system) |
| 7259 | (propagated-inputs |
| 7260 | `(("python-html5lib" ,python-html5lib-0.9) |
| 7261 | ("python-six" ,python-six))) |
| 7262 | (native-inputs |
| 7263 | `(("python-nose" ,python-nose))) |
| 7264 | (home-page "https://github.com/jsocol/bleach") |
| 7265 | (synopsis "Whitelist-based HTML-sanitizing tool") |
| 7266 | (description "Bleach is an easy whitelist-based HTML-sanitizing tool.") |
| 7267 | (license license:asl2.0))) |
| 7268 | |
| 7269 | (define-public python2-bleach |
| 7270 | (package-with-python2 python-bleach)) |
| 7271 | |
| 7272 | (define-public python-entrypoints |
| 7273 | (package |
| 7274 | (name "python-entrypoints") |
| 7275 | (version "0.3") |
| 7276 | (source |
| 7277 | (origin |
| 7278 | (method url-fetch) |
| 7279 | (uri (pypi-uri "entrypoints" version)) |
| 7280 | (sha256 |
| 7281 | (base32 |
| 7282 | "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7")))) |
| 7283 | (build-system python-build-system) |
| 7284 | ;; The package does not come with a setup.py file, so we have to generate |
| 7285 | ;; one ourselves. |
| 7286 | (arguments |
| 7287 | `(#:tests? #f |
| 7288 | #:phases |
| 7289 | (modify-phases %standard-phases |
| 7290 | (add-after 'unpack 'create-setup.py |
| 7291 | (lambda _ |
| 7292 | (call-with-output-file "setup.py" |
| 7293 | (lambda (port) |
| 7294 | (format port "\ |
| 7295 | from setuptools import setup |
| 7296 | setup(name='entrypoints', version='~a', py_modules=['entrypoints']) |
| 7297 | " ,version)))))))) |
| 7298 | (home-page "https://github.com/takluyver/entrypoints") |
| 7299 | (synopsis "Discover and load entry points from installed Python packages") |
| 7300 | (description "Entry points are a way for Python packages to advertise |
| 7301 | objects with some common interface. The most common examples are |
| 7302 | @code{console_scripts} entry points, which define shell commands by |
| 7303 | identifying a Python function to run. The @code{entrypoints} module contains |
| 7304 | functions to find and load entry points.") |
| 7305 | (license license:expat))) |
| 7306 | |
| 7307 | (define-public python2-entrypoints |
| 7308 | (package-with-python2 python-entrypoints)) |
| 7309 | |
| 7310 | (define-public python-nbconvert |
| 7311 | (package |
| 7312 | (name "python-nbconvert") |
| 7313 | (version "5.0.0b1") |
| 7314 | (source |
| 7315 | (origin |
| 7316 | (method url-fetch) |
| 7317 | (uri (pypi-uri "nbconvert" version)) |
| 7318 | (sha256 |
| 7319 | (base32 |
| 7320 | "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp")))) |
| 7321 | (build-system python-build-system) |
| 7322 | (arguments |
| 7323 | `(;; The "bdist_egg" target is disabled by default, causing the installation |
| 7324 | ;; to fail. |
| 7325 | #:configure-flags (list "bdist_egg") |
| 7326 | ;; FIXME: 5 failures, 40 errors. |
| 7327 | #:tests? #f)) |
| 7328 | ;; #:phases |
| 7329 | ;; (modify-phases %standard-phases |
| 7330 | ;; (replace 'check |
| 7331 | ;; (lambda _ |
| 7332 | ;; (zero? (system* "py.test" "-v"))))) |
| 7333 | (native-inputs |
| 7334 | `(("python-pytest" ,python-pytest))) |
| 7335 | (propagated-inputs |
| 7336 | `(("python-bleach" ,python-bleach) |
| 7337 | ("python-entrypoints" ,python-entrypoints) |
| 7338 | ("python-jinja2" ,python-jinja2) |
| 7339 | ("python-jupyter-core" ,python-jupyter-core) |
| 7340 | ("python-mistune" ,python-mistune) |
| 7341 | ("python-nbformat" ,python-nbformat) |
| 7342 | ("python-pygments" ,python-pygments) |
| 7343 | ("python-traitlets" ,python-traitlets))) |
| 7344 | (home-page "http://jupyter.org") |
| 7345 | (synopsis "Converting Jupyter Notebooks") |
| 7346 | (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts |
| 7347 | notebooks to various other formats via Jinja templates. It allows you to |
| 7348 | convert an @code{.ipynb} notebook file into various static formats including: |
| 7349 | |
| 7350 | @enumerate |
| 7351 | @item HTML |
| 7352 | @item LaTeX |
| 7353 | @item PDF |
| 7354 | @item Reveal JS |
| 7355 | @item Markdown (md) |
| 7356 | @item ReStructured Text (rst) |
| 7357 | @item executable script |
| 7358 | @end enumerate\n") |
| 7359 | (license license:bsd-3))) |
| 7360 | |
| 7361 | (define-public python2-nbconvert |
| 7362 | (package-with-python2 python-nbconvert)) |
| 7363 | |
| 7364 | (define-public python-notebook |
| 7365 | (package |
| 7366 | (name "python-notebook") |
| 7367 | (version "5.7.4") |
| 7368 | (source (origin |
| 7369 | (method url-fetch) |
| 7370 | (uri (pypi-uri "notebook" version)) |
| 7371 | (sha256 |
| 7372 | (base32 |
| 7373 | "0jm7324mbxljmn9hgapj66q7swyz5ai92blmr0jpcy0h80x6f26r")))) |
| 7374 | (build-system python-build-system) |
| 7375 | (arguments |
| 7376 | `(#:phases |
| 7377 | (modify-phases %standard-phases |
| 7378 | (replace 'check |
| 7379 | (lambda _ |
| 7380 | ;; These tests require a browser |
| 7381 | (delete-file-recursively "notebook/tests/selenium") |
| 7382 | ;; Some tests need HOME |
| 7383 | (setenv "HOME" "/tmp") |
| 7384 | ;; This file contains "warningfilters", which are not supported |
| 7385 | ;; by this version of nose. |
| 7386 | (delete-file "setup.cfg") |
| 7387 | (with-directory-excursion "/tmp" |
| 7388 | (invoke "nosetests" "-v")) |
| 7389 | #t))))) |
| 7390 | (propagated-inputs |
| 7391 | `(("python-jupyter-core" ,python-jupyter-core) |
| 7392 | ("python-nbformat" ,python-nbformat) |
| 7393 | ("python-nbconvert" ,python-nbconvert) |
| 7394 | ("python-prometheus-client" ,python-prometheus-client) |
| 7395 | ("python-send2trash" ,python-send2trash) |
| 7396 | ("python-terminado" ,python-terminado))) |
| 7397 | (native-inputs |
| 7398 | `(("python-nose" ,python-nose) |
| 7399 | ("python-sphinx" ,python-sphinx) |
| 7400 | ("python-requests" ,python-requests))) |
| 7401 | (home-page "http://jupyter.org/") |
| 7402 | (synopsis "Web-based notebook environment for interactive computing") |
| 7403 | (description |
| 7404 | "The Jupyter HTML notebook is a web-based notebook environment for |
| 7405 | interactive computing.") |
| 7406 | (properties `((python2-variant . ,(delay python2-notebook)))) |
| 7407 | (license license:bsd-3))) |
| 7408 | |
| 7409 | (define-public python2-notebook |
| 7410 | (let ((base (package-with-python2 |
| 7411 | (strip-python2-variant python-notebook)))) |
| 7412 | (package (inherit base) |
| 7413 | (native-inputs |
| 7414 | `(("python2-mock" ,python2-mock) |
| 7415 | ,@(package-native-inputs base))) |
| 7416 | (arguments |
| 7417 | (substitute-keyword-arguments (package-arguments base) |
| 7418 | ((#:phases phases) |
| 7419 | `(modify-phases ,phases |
| 7420 | (add-before 'check 'disable-test-case |
| 7421 | ;; The test requires network access to localhost. Curiously it |
| 7422 | ;; fails with Python 2 only. Simply make the test-case return |
| 7423 | ;; immediately. |
| 7424 | (lambda _ |
| 7425 | (substitute* |
| 7426 | "notebook/services/nbconvert/tests/test_nbconvert_api.py" |
| 7427 | (("formats = self.nbconvert_api") "return #"))))))))))) |
| 7428 | |
| 7429 | (define-public python-widgetsnbextension |
| 7430 | (package |
| 7431 | (name "python-widgetsnbextension") |
| 7432 | (version "3.4.2") |
| 7433 | (source |
| 7434 | (origin |
| 7435 | (method url-fetch) |
| 7436 | (uri (pypi-uri "widgetsnbextension" version)) |
| 7437 | (sha256 |
| 7438 | (base32 |
| 7439 | "0rc2nivdy7k4m3vljx7wdh2jh11djapcgwhvzlbs0isl8gl8nqgs")))) |
| 7440 | (build-system python-build-system) |
| 7441 | (propagated-inputs |
| 7442 | `(("python-ipykernel" ,python-ipykernel) |
| 7443 | ("python-notebook" ,python-notebook))) |
| 7444 | (native-inputs |
| 7445 | `(("python-certifi" ,python-certifi) |
| 7446 | ("python-nose" ,python-nose))) |
| 7447 | (home-page "https://ipython.org") |
| 7448 | (synopsis "IPython HTML widgets for Jupyter") |
| 7449 | (description "This package provides interactive HTML widgets for Jupyter |
| 7450 | notebooks.") |
| 7451 | (license license:bsd-3))) |
| 7452 | |
| 7453 | (define-public python2-widgetsnbextension |
| 7454 | (package-with-python2 python-widgetsnbextension)) |
| 7455 | |
| 7456 | (define-public python-ipywidgets |
| 7457 | (package |
| 7458 | (name "python-ipywidgets") |
| 7459 | (version "5.2.2") |
| 7460 | (source |
| 7461 | (origin |
| 7462 | (method url-fetch) |
| 7463 | (uri (pypi-uri "ipywidgets" version)) |
| 7464 | (sha256 |
| 7465 | (base32 |
| 7466 | "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms")))) |
| 7467 | (build-system python-build-system) |
| 7468 | (propagated-inputs |
| 7469 | `(("python-ipython" ,python-ipython) |
| 7470 | ("python-traitlets" ,python-traitlets) |
| 7471 | ("python-widgetsnbextension" ,python-widgetsnbextension))) |
| 7472 | (native-inputs |
| 7473 | `(("python-nose" ,python-nose) |
| 7474 | ("python-pytest" ,python-pytest))) |
| 7475 | (home-page "https://ipython.org") |
| 7476 | (synopsis "IPython HTML widgets for Jupyter") |
| 7477 | (description "Ipywidgets are interactive HTML widgets for Jupyter |
| 7478 | notebooks and the IPython kernel. Notebooks come alive when interactive |
| 7479 | widgets are used. Users gain control of their data and can visualize changes |
| 7480 | in the data.") |
| 7481 | (license license:bsd-3))) |
| 7482 | |
| 7483 | (define-public python2-ipywidgets |
| 7484 | (package-with-python2 python-ipywidgets)) |
| 7485 | |
| 7486 | (define-public python-jupyter-console |
| 7487 | (package |
| 7488 | (name "python-jupyter-console") |
| 7489 | (version "5.2.0") |
| 7490 | (source |
| 7491 | (origin |
| 7492 | (method url-fetch) |
| 7493 | (uri (pypi-uri "jupyter_console" version)) |
| 7494 | (sha256 |
| 7495 | (base32 |
| 7496 | "1kam1qzgwr7srhm5r6aj90di5sws4bq0jmiw15452ddamb9yspal")))) |
| 7497 | (build-system python-build-system) |
| 7498 | ;; Tests only run in an TTY. |
| 7499 | (arguments `(#:tests? #f)) |
| 7500 | (propagated-inputs |
| 7501 | `(("python-ipykernel" ,python-ipykernel) |
| 7502 | ("python-jupyter-client" ,python-jupyter-client) |
| 7503 | ("python-prompt-toolkit" ,python-prompt-toolkit-1) |
| 7504 | ("python-pygments" ,python-pygments))) |
| 7505 | (native-inputs |
| 7506 | `(("python-nose" ,python-nose))) |
| 7507 | (home-page "https://jupyter.org") |
| 7508 | (synopsis "Jupyter terminal console") |
| 7509 | (description "This package provides a terminal-based console frontend for |
| 7510 | Jupyter kernels. It also allows for console-based interaction with non-Python |
| 7511 | Jupyter kernels such as IJulia and IRKernel.") |
| 7512 | (license license:bsd-3))) |
| 7513 | |
| 7514 | (define-public python2-jupyter-console |
| 7515 | (package-with-python2 python-jupyter-console)) |
| 7516 | |
| 7517 | ;; The python-ipython and python-jupyter-console require each other. To get |
| 7518 | ;; the functionality in both packages working, strip down the |
| 7519 | ;; python-jupyter-console package when using it as an input to python-ipython. |
| 7520 | (define python-jupyter-console-minimal |
| 7521 | (package |
| 7522 | (inherit python-jupyter-console) |
| 7523 | (name "python-jupyter-console-minimal") |
| 7524 | (arguments |
| 7525 | (substitute-keyword-arguments |
| 7526 | (package-arguments python-jupyter-console) |
| 7527 | ((#:phases phases) |
| 7528 | `(modify-phases ,phases |
| 7529 | (add-after 'install 'delete-bin |
| 7530 | (lambda* (#:key outputs #:allow-other-keys) |
| 7531 | ;; Delete the bin files, to avoid conflicts in profiles |
| 7532 | ;; where python-ipython and python-jupyter-console are |
| 7533 | ;; both present. |
| 7534 | (delete-file-recursively |
| 7535 | (string-append |
| 7536 | (assoc-ref outputs "out") "/bin")))))))) |
| 7537 | ;; Remove the python-ipython propagated input, to avoid the cycle |
| 7538 | (propagated-inputs |
| 7539 | (alist-delete |
| 7540 | "python-ipython" |
| 7541 | (package-propagated-inputs python-jupyter-console))))) |
| 7542 | |
| 7543 | (define-public python-qtconsole |
| 7544 | (package |
| 7545 | (name "python-qtconsole") |
| 7546 | (version "4.4.3") |
| 7547 | (source |
| 7548 | (origin |
| 7549 | (method url-fetch) |
| 7550 | (uri (pypi-uri "qtconsole" version)) |
| 7551 | (sha256 |
| 7552 | (base32 |
| 7553 | "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw")))) |
| 7554 | (build-system python-build-system) |
| 7555 | (arguments |
| 7556 | ;; XXX: Tests are disabled, because this package needs python-ipython 7, |
| 7557 | ;; but we only have the LTS version 5.x. This means that there might be |
| 7558 | ;; runtime errors, but since this is a dependency of the Jupyter package, |
| 7559 | ;; and Jupyter can be used without the qtconsole we can overlook this for |
| 7560 | ;; now. |
| 7561 | `(#:tests? #f |
| 7562 | #:phases |
| 7563 | (modify-phases %standard-phases |
| 7564 | (add-before 'check 'pre-check |
| 7565 | (lambda _ |
| 7566 | (setenv "QT_QPA_PLATFORM" "offscreen") |
| 7567 | #t))))) |
| 7568 | (propagated-inputs |
| 7569 | `(("python-ipykernel" ,python-ipykernel) |
| 7570 | ("python-ipython" ,python-ipython))) |
| 7571 | (native-inputs |
| 7572 | `(("python-pytest" ,python-pytest))) |
| 7573 | (home-page "http://jupyter.org") |
| 7574 | (synopsis "Jupyter Qt console") |
| 7575 | (description "This package provides a Qt-based console for Jupyter with |
| 7576 | support for rich media output.") |
| 7577 | (license license:bsd-3))) |
| 7578 | |
| 7579 | (define-public jupyter |
| 7580 | (package |
| 7581 | (name "jupyter") |
| 7582 | (version "1.0.0") |
| 7583 | (source |
| 7584 | (origin |
| 7585 | (method url-fetch) |
| 7586 | (uri (pypi-uri "jupyter" version)) |
| 7587 | (sha256 |
| 7588 | (base32 |
| 7589 | "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r")))) |
| 7590 | (build-system python-build-system) |
| 7591 | (arguments '(#:tests? #f)) ; there are none. |
| 7592 | (propagated-inputs |
| 7593 | `(("python-ipykernel" ,python-ipykernel) |
| 7594 | ("python-ipywidgets" ,python-ipywidgets) |
| 7595 | ("python-jupyter-console" ,python-jupyter-console) |
| 7596 | ("python-nbconvert" ,python-nbconvert) |
| 7597 | ("python-notebook" ,python-notebook) |
| 7598 | ("python-qtconsole" ,python-qtconsole))) |
| 7599 | (native-search-paths |
| 7600 | (list (search-path-specification |
| 7601 | (variable "JUPYTER_PATH") |
| 7602 | (files '("share/jupyter"))))) |
| 7603 | (home-page "https://jupyter.org") |
| 7604 | (synopsis "Web application for interactive documents") |
| 7605 | (description |
| 7606 | "The Jupyter Notebook is a web application that allows you to create and |
| 7607 | share documents that contain live code, equations, visualizations and |
| 7608 | explanatory text. Uses include: data cleaning and transformation, numerical |
| 7609 | simulation, statistical modeling, machine learning and much more.") |
| 7610 | (license license:bsd-3))) |
| 7611 | |
| 7612 | (define-public python-chardet |
| 7613 | (package |
| 7614 | (name "python-chardet") |
| 7615 | (version "3.0.4") |
| 7616 | (source |
| 7617 | (origin |
| 7618 | (method url-fetch) |
| 7619 | (uri (pypi-uri "chardet" version)) |
| 7620 | (sha256 |
| 7621 | (base32 |
| 7622 | "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4")))) |
| 7623 | (native-inputs |
| 7624 | `(("python-hypothesis" ,python-hypothesis) |
| 7625 | ("python-pytest" ,python-pytest) |
| 7626 | ("python-pytest-runner" ,python-pytest-runner))) |
| 7627 | (build-system python-build-system) |
| 7628 | (home-page "https://github.com/chardet/chardet") |
| 7629 | (synopsis "Universal encoding detector for Python 2 and 3") |
| 7630 | (description |
| 7631 | "This package provides @code{chardet}, a Python module that can |
| 7632 | automatically detect a wide range of file encodings.") |
| 7633 | (license license:lgpl2.1+))) |
| 7634 | |
| 7635 | (define-public python2-chardet |
| 7636 | (package-with-python2 python-chardet)) |
| 7637 | |
| 7638 | (define-public python-docopt |
| 7639 | (package |
| 7640 | (name "python-docopt") |
| 7641 | (version "0.6.2") |
| 7642 | (source |
| 7643 | (origin |
| 7644 | (method url-fetch) |
| 7645 | ;; The release on PyPI does not include tests. |
| 7646 | (uri (string-append |
| 7647 | "https://github.com/docopt/docopt/archive/" |
| 7648 | version ".tar.gz")) |
| 7649 | (file-name (string-append name "-" version ".tar.gz")) |
| 7650 | (sha256 |
| 7651 | (base32 |
| 7652 | "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1")))) |
| 7653 | (build-system python-build-system) |
| 7654 | (native-inputs |
| 7655 | `(("python-pytest" ,python-pytest))) |
| 7656 | (arguments |
| 7657 | `(#:phases |
| 7658 | (modify-phases %standard-phases |
| 7659 | (replace 'check |
| 7660 | (lambda _ (invoke "py.test")))))) |
| 7661 | (home-page "http://docopt.org") |
| 7662 | (synopsis "Command-line interface description language for Python") |
| 7663 | (description "This library allows the user to define a command-line |
| 7664 | interface from a program's help message rather than specifying it |
| 7665 | programmatically with command-line parsers like @code{getopt} and |
| 7666 | @code{argparse}.") |
| 7667 | (license license:expat))) |
| 7668 | |
| 7669 | (define-public python2-docopt |
| 7670 | (package-with-python2 python-docopt)) |
| 7671 | |
| 7672 | (define-public python-pythondialog |
| 7673 | (package |
| 7674 | (name "python-pythondialog") |
| 7675 | (version "3.4.0") |
| 7676 | (source |
| 7677 | (origin |
| 7678 | (method url-fetch) |
| 7679 | (uri (pypi-uri "pythondialog" version)) |
| 7680 | (sha256 |
| 7681 | (base32 |
| 7682 | "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c")))) |
| 7683 | (build-system python-build-system) |
| 7684 | (arguments |
| 7685 | `(#:phases |
| 7686 | (modify-phases %standard-phases |
| 7687 | (add-after 'unpack 'patch-path |
| 7688 | (lambda* (#:key inputs #:allow-other-keys) |
| 7689 | (let* ((dialog (assoc-ref inputs "dialog"))) |
| 7690 | ;; Since this library really wants to grovel the search path, we |
| 7691 | ;; must hardcode dialog's store path into it. |
| 7692 | (substitute* "dialog.py" |
| 7693 | (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") |
| 7694 | (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\""))) |
| 7695 | #t)))) |
| 7696 | #:tests? #f)) ; no test suite |
| 7697 | (propagated-inputs |
| 7698 | `(("dialog" ,dialog))) |
| 7699 | (home-page "http://pythondialog.sourceforge.net/") |
| 7700 | (synopsis "Python interface to the UNIX dialog utility") |
| 7701 | (description "A Python wrapper for the dialog utility. Its purpose is to |
| 7702 | provide an easy to use, pythonic and comprehensive Python interface to dialog. |
| 7703 | This allows one to make simple text-mode user interfaces on Unix-like systems") |
| 7704 | (license license:lgpl2.1) |
| 7705 | (properties `((python2-variant . ,(delay python2-pythondialog)))))) |
| 7706 | |
| 7707 | (define-public python2-pythondialog |
| 7708 | (let ((base (package-with-python2 (strip-python2-variant python-pythondialog)))) |
| 7709 | (package |
| 7710 | (inherit base) |
| 7711 | (version (package-version python-pythondialog)) |
| 7712 | (source (origin |
| 7713 | (method url-fetch) |
| 7714 | (uri (pypi-uri "python2-pythondialog" version)) |
| 7715 | (sha256 |
| 7716 | (base32 |
| 7717 | "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))))) |
| 7718 | |
| 7719 | (define-public python-configobj |
| 7720 | (package |
| 7721 | (name "python-configobj") |
| 7722 | (version "5.0.6") |
| 7723 | (source (origin |
| 7724 | (method url-fetch) |
| 7725 | (uri (pypi-uri "configobj" version)) |
| 7726 | (sha256 |
| 7727 | (base32 |
| 7728 | "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2")) |
| 7729 | ;; Patch setup.py so it looks for python-setuptools, which is |
| 7730 | ;; required to parse the keyword 'install_requires' in setup.py. |
| 7731 | (patches (search-patches "python-configobj-setuptools.patch")))) |
| 7732 | (build-system python-build-system) |
| 7733 | (propagated-inputs |
| 7734 | `(("python-six" ,python-six))) |
| 7735 | (synopsis "Config file reading, writing and validation") |
| 7736 | (description "ConfigObj is a simple but powerful config file reader and |
| 7737 | writer: an ini file round tripper. Its main feature is that it is very easy to |
| 7738 | use, with a straightforward programmer’s interface and a simple syntax for |
| 7739 | config files.") |
| 7740 | (home-page "https://github.com/DiffSK/configobj") |
| 7741 | (license license:bsd-3))) |
| 7742 | |
| 7743 | (define-public python2-configobj |
| 7744 | (package-with-python2 python-configobj)) |
| 7745 | |
| 7746 | (define-public python-configargparse |
| 7747 | (package |
| 7748 | (name "python-configargparse") |
| 7749 | (version "0.14.0") |
| 7750 | (source (origin |
| 7751 | (method url-fetch) |
| 7752 | (uri (pypi-uri "ConfigArgParse" version)) |
| 7753 | (sha256 |
| 7754 | (base32 |
| 7755 | "149fy4zya0rsnlkvxbbq43cyr8lscb5k4pj1m6n7f1grwcmzwbif")))) |
| 7756 | (build-system python-build-system) |
| 7757 | (native-inputs |
| 7758 | `(("python-pyyaml" ,python-pyyaml))) |
| 7759 | (arguments |
| 7760 | `(#:phases |
| 7761 | (modify-phases %standard-phases |
| 7762 | (replace 'check |
| 7763 | (lambda _ |
| 7764 | ;; Bypass setuptools-shim because one test relies on "setup.py" |
| 7765 | ;; being the first argument passed to the python call. |
| 7766 | ;; |
| 7767 | ;; NOTE: Many tests do not run because they rely on Python's |
| 7768 | ;; built-in test.test_argparse, but we remove the unit tests from |
| 7769 | ;; our Python installation. |
| 7770 | (invoke "python" "setup.py" "test")))))) |
| 7771 | (synopsis "Replacement for argparse") |
| 7772 | (description "A drop-in replacement for argparse that allows options to also |
| 7773 | be set via config files and/or environment variables.") |
| 7774 | (home-page "https://github.com/bw2/ConfigArgParse") |
| 7775 | (license license:expat))) |
| 7776 | |
| 7777 | (define-public python2-configargparse |
| 7778 | (package-with-python2 python-configargparse)) |
| 7779 | |
| 7780 | (define-public python-argparse-manpage |
| 7781 | (package |
| 7782 | (name "python-argparse-manpage") |
| 7783 | (version "1.1") |
| 7784 | (source |
| 7785 | (origin |
| 7786 | (method url-fetch) |
| 7787 | (uri (pypi-uri "argparse-manpage" version)) |
| 7788 | (sha256 |
| 7789 | (base32 |
| 7790 | "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p")))) |
| 7791 | (build-system python-build-system) |
| 7792 | (home-page "https://github.com/praiskup/argparse-manpage") |
| 7793 | (synopsis "Build manual page from Python's ArgumentParser object") |
| 7794 | (description |
| 7795 | "This package provides tools to build manual pages from Python's |
| 7796 | @code{ArgumentParser} object.") |
| 7797 | (license license:asl2.0))) |
| 7798 | |
| 7799 | (define-public python2-contextlib2 |
| 7800 | (package |
| 7801 | (name "python2-contextlib2") |
| 7802 | (version "0.5.5") |
| 7803 | (source |
| 7804 | (origin |
| 7805 | (method url-fetch) |
| 7806 | (uri (pypi-uri "contextlib2" version)) |
| 7807 | (sha256 |
| 7808 | (base32 |
| 7809 | "0j6ad6lwwyc9kv71skj098v5l7x5biyj2hs4lc5x1kcixqcr97sh")))) |
| 7810 | (build-system python-build-system) |
| 7811 | (arguments |
| 7812 | `(#:python ,python-2 |
| 7813 | #:phases |
| 7814 | (modify-phases %standard-phases |
| 7815 | (replace 'check |
| 7816 | (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))) |
| 7817 | (native-inputs |
| 7818 | `(("python2-unittest2" ,python2-unittest2))) |
| 7819 | (home-page "http://contextlib2.readthedocs.org/") |
| 7820 | (synopsis "Tools for decorators and context managers") |
| 7821 | (description "This module is primarily a backport of the Python |
| 7822 | 3.2 contextlib to earlier Python versions. Like contextlib, it |
| 7823 | provides utilities for common tasks involving decorators and context |
| 7824 | managers. It also contains additional features that are not part of |
| 7825 | the standard library.") |
| 7826 | (license license:psfl))) |
| 7827 | |
| 7828 | (define-public python-texttable |
| 7829 | (package |
| 7830 | (name "python-texttable") |
| 7831 | (version "0.8.7") |
| 7832 | (source |
| 7833 | (origin |
| 7834 | (method url-fetch) |
| 7835 | (uri (pypi-uri "texttable" version)) |
| 7836 | (sha256 |
| 7837 | (base32 |
| 7838 | "1liiiydgkg37i46a418aw19fyf6z3ds51wdwwpyjbs12x0phhf4a")))) |
| 7839 | (build-system python-build-system) |
| 7840 | (arguments '(#:tests? #f)) ; no tests |
| 7841 | (home-page "https://github.com/foutaise/texttable/") |
| 7842 | (synopsis "Python module for creating simple ASCII tables") |
| 7843 | (description "Texttable is a Python module for creating simple ASCII |
| 7844 | tables.") |
| 7845 | (license license:lgpl2.1+))) |
| 7846 | |
| 7847 | (define-public python2-texttable |
| 7848 | (package-with-python2 python-texttable)) |
| 7849 | |
| 7850 | (define-public python-atomicwrites |
| 7851 | (package |
| 7852 | (name "python-atomicwrites") |
| 7853 | (version "1.1.5") |
| 7854 | (source (origin |
| 7855 | (method url-fetch) |
| 7856 | (uri (pypi-uri "atomicwrites" version)) |
| 7857 | (sha256 |
| 7858 | (base32 |
| 7859 | "11bm90fwm2avvf4f3ib8g925w7jr4m11vcsinn1bi6ns4bm32214")))) |
| 7860 | (build-system python-build-system) |
| 7861 | (synopsis "Atomic file writes in Python") |
| 7862 | (description "Library for atomic file writes using platform dependent tools |
| 7863 | for atomic file system operations.") |
| 7864 | (home-page "https://github.com/untitaker/python-atomicwrites") |
| 7865 | (license license:expat))) |
| 7866 | |
| 7867 | (define-public python2-atomicwrites |
| 7868 | (package-with-python2 python-atomicwrites)) |
| 7869 | |
| 7870 | (define-public python-click-threading |
| 7871 | (package |
| 7872 | (name "python-click-threading") |
| 7873 | (version "0.4.4") |
| 7874 | (source (origin |
| 7875 | (method url-fetch) |
| 7876 | (uri (pypi-uri "click-threading" version)) |
| 7877 | (sha256 |
| 7878 | (base32 |
| 7879 | "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j")))) |
| 7880 | (build-system python-build-system) |
| 7881 | (propagated-inputs |
| 7882 | `(("python-click" ,python-click))) |
| 7883 | (synopsis "Utilities for multithreading in Click") |
| 7884 | (description "This package provides utilities for multithreading in Click |
| 7885 | applications.") |
| 7886 | (home-page "https://github.com/click-contrib/click-threading") |
| 7887 | (license license:expat))) |
| 7888 | |
| 7889 | (define-public python-click-log |
| 7890 | (package |
| 7891 | (name "python-click-log") |
| 7892 | (version "0.3.2") |
| 7893 | (source (origin |
| 7894 | (method url-fetch) |
| 7895 | (uri (pypi-uri "click-log" version)) |
| 7896 | (sha256 |
| 7897 | (base32 |
| 7898 | "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n")))) |
| 7899 | (build-system python-build-system) |
| 7900 | (propagated-inputs |
| 7901 | `(("python-click" ,python-click))) |
| 7902 | (synopsis "Logging for click applications") |
| 7903 | (description "This package provides a Python library for logging Click |
| 7904 | applications.") |
| 7905 | (home-page "https://github.com/click-contrib/click-log") |
| 7906 | (license license:expat))) |
| 7907 | |
| 7908 | (define-public python-apipkg |
| 7909 | (package |
| 7910 | (name "python-apipkg") |
| 7911 | (version "1.4") |
| 7912 | (source (origin |
| 7913 | (method url-fetch) |
| 7914 | (uri (pypi-uri "apipkg" version)) |
| 7915 | (sha256 |
| 7916 | (base32 |
| 7917 | "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) |
| 7918 | (build-system python-build-system) |
| 7919 | (native-inputs |
| 7920 | `(("python-pytest" ,python-pytest))) |
| 7921 | (synopsis "Namespace control and lazy-import mechanism") |
| 7922 | (description "With apipkg you can control the exported namespace of a Python |
| 7923 | package and greatly reduce the number of imports for your users. It is a small |
| 7924 | pure Python module that works on virtually all Python versions.") |
| 7925 | (home-page "https://github.com/pytest-dev/apipkg") |
| 7926 | (license license:expat))) |
| 7927 | |
| 7928 | (define-public python2-apipkg |
| 7929 | (package-with-python2 python-apipkg)) |
| 7930 | |
| 7931 | (define-public python-execnet |
| 7932 | (package |
| 7933 | (name "python-execnet") |
| 7934 | (version "1.4.1") |
| 7935 | (source (origin |
| 7936 | (method url-fetch) |
| 7937 | (uri (pypi-uri "execnet" version)) |
| 7938 | (sha256 |
| 7939 | (base32 |
| 7940 | "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) |
| 7941 | (build-system python-build-system) |
| 7942 | (arguments |
| 7943 | `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed |
| 7944 | ;; The two test failures are caused by the lack of an `ssh` executable. |
| 7945 | ;; The test suite can be run with pytest after the 'install' phase. |
| 7946 | #:tests? #f)) |
| 7947 | (native-inputs |
| 7948 | `(("python-pytest" ,python-pytest) |
| 7949 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 7950 | (propagated-inputs |
| 7951 | `(("python-apipkg" ,python-apipkg))) |
| 7952 | (synopsis "Rapid multi-Python deployment") |
| 7953 | (description "Execnet provides a share-nothing model with |
| 7954 | channel-send/receive communication for distributing execution across many |
| 7955 | Python interpreters across version, platform and network barriers. It has a |
| 7956 | minimal and fast API targeting the following uses: |
| 7957 | @enumerate |
| 7958 | @item distribute tasks to (many) local or remote CPUs |
| 7959 | @item write and deploy hybrid multi-process applications |
| 7960 | @item write scripts to administer multiple environments |
| 7961 | @end enumerate") |
| 7962 | (home-page "http://codespeak.net/execnet/") |
| 7963 | (license license:expat))) |
| 7964 | |
| 7965 | (define-public python2-execnet |
| 7966 | (package-with-python2 python-execnet)) |
| 7967 | |
| 7968 | (define-public python-icalendar |
| 7969 | (package |
| 7970 | (name "python-icalendar") |
| 7971 | (version "4.0.3") |
| 7972 | (source (origin |
| 7973 | (method url-fetch) |
| 7974 | (uri (pypi-uri "icalendar" version)) |
| 7975 | (sha256 |
| 7976 | (base32 |
| 7977 | "0mk3dk1dxkcm46jy48v27j2w2349iv4sbimqj1yb5js43mx49hh7")))) |
| 7978 | (build-system python-build-system) |
| 7979 | (propagated-inputs |
| 7980 | `(("python-dateutil" ,python-dateutil) |
| 7981 | ("python-pytz" ,python-pytz))) |
| 7982 | (synopsis "Python library for parsing iCalendar files") |
| 7983 | (description "The icalendar package is a parser/generator of iCalendar |
| 7984 | files for use with Python.") |
| 7985 | (home-page "https://github.com/collective/icalendar") |
| 7986 | (license license:bsd-2))) |
| 7987 | |
| 7988 | (define-public python-args |
| 7989 | (package |
| 7990 | (name "python-args") |
| 7991 | (version "0.1.0") |
| 7992 | (source (origin |
| 7993 | (method url-fetch) |
| 7994 | (uri (pypi-uri "args" version)) |
| 7995 | (sha256 |
| 7996 | (base32 |
| 7997 | "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) |
| 7998 | (build-system python-build-system) |
| 7999 | (home-page "https://github.com/kennethreitz/args") |
| 8000 | (synopsis "Command-line argument parser") |
| 8001 | (description |
| 8002 | "This library provides a Python module to parse command-line arguments.") |
| 8003 | (license license:bsd-3))) |
| 8004 | |
| 8005 | (define-public python2-args |
| 8006 | (package-with-python2 python-args)) |
| 8007 | |
| 8008 | (define-public python-clint |
| 8009 | (package |
| 8010 | (name "python-clint") |
| 8011 | (version "0.5.1") |
| 8012 | (source (origin |
| 8013 | (method url-fetch) |
| 8014 | (uri (pypi-uri "clint" version)) |
| 8015 | (sha256 |
| 8016 | (base32 |
| 8017 | "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) |
| 8018 | (build-system python-build-system) |
| 8019 | (arguments |
| 8020 | '(#:phases |
| 8021 | (modify-phases %standard-phases |
| 8022 | (replace 'check |
| 8023 | (lambda _ (invoke "py.test" "-v")))))) |
| 8024 | (native-inputs |
| 8025 | `(("python-pytest" ,python-pytest))) |
| 8026 | (propagated-inputs |
| 8027 | `(("python-args" ,python-args))) |
| 8028 | (home-page "https://github.com/kennethreitz/clint") |
| 8029 | (synopsis "Command-line interface tools") |
| 8030 | (description |
| 8031 | "Clint is a Python module filled with a set of tools for developing |
| 8032 | command-line applications, including tools for colored and indented |
| 8033 | output, progress bar display, and pipes.") |
| 8034 | (license license:isc))) |
| 8035 | |
| 8036 | (define-public python2-clint |
| 8037 | (package-with-python2 python-clint)) |
| 8038 | |
| 8039 | (define-public python-rply |
| 8040 | (package |
| 8041 | (name "python-rply") |
| 8042 | (version "0.7.5") |
| 8043 | (source (origin |
| 8044 | (method url-fetch) |
| 8045 | (uri (pypi-uri "rply" version)) |
| 8046 | (sha256 |
| 8047 | (base32 |
| 8048 | "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh")))) |
| 8049 | (build-system python-build-system) |
| 8050 | (propagated-inputs |
| 8051 | `(("python-appdirs" ,python-appdirs))) |
| 8052 | (home-page "https://github.com/alex/rply") |
| 8053 | (synopsis "Parser generator for Python") |
| 8054 | (description |
| 8055 | "This package provides a pure Python based parser generator, that also |
| 8056 | works with RPython. It is a more-or-less direct port of David Bazzley's PLY, |
| 8057 | with a new public API, and RPython support.") |
| 8058 | (license license:bsd-3))) |
| 8059 | |
| 8060 | (define-public python2-rply |
| 8061 | (package-with-python2 python-rply)) |
| 8062 | |
| 8063 | (define-public python-hy |
| 8064 | (package |
| 8065 | (name "python-hy") |
| 8066 | (version "0.13.0") |
| 8067 | (source (origin |
| 8068 | (method url-fetch) |
| 8069 | (uri (pypi-uri "hy" version)) |
| 8070 | (sha256 |
| 8071 | (base32 |
| 8072 | "19sfymaksx9jhksfnb15ahid46mzrhdfzz6yy2craz2qnzvpmky8")))) |
| 8073 | (build-system python-build-system) |
| 8074 | (arguments |
| 8075 | '(#:phases |
| 8076 | (modify-phases %standard-phases |
| 8077 | (replace 'check |
| 8078 | (lambda _ |
| 8079 | ;; Tests require write access to HOME. |
| 8080 | (setenv "HOME" "/tmp") |
| 8081 | (invoke "nosetests")))))) |
| 8082 | (native-inputs |
| 8083 | `(("python-coverage" ,python-coverage) |
| 8084 | ("python-nose" ,python-nose))) |
| 8085 | (propagated-inputs |
| 8086 | `(("python-astor" ,python-astor) |
| 8087 | ("python-clint" ,python-clint) |
| 8088 | ("python-rply" ,python-rply))) |
| 8089 | (home-page "http://hylang.org/") |
| 8090 | (synopsis "Lisp frontend to Python") |
| 8091 | (description |
| 8092 | "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms |
| 8093 | its Lisp code into the Python Abstract Syntax Tree, you have the whole world of |
| 8094 | Python at your fingertips, in Lisp form.") |
| 8095 | (license license:expat))) |
| 8096 | |
| 8097 | (define-public python2-hy |
| 8098 | (package-with-python2 python-hy)) |
| 8099 | |
| 8100 | (define-public python2-functools32 |
| 8101 | (package |
| 8102 | (name "python2-functools32") |
| 8103 | (version "3.2.3-2") |
| 8104 | (source |
| 8105 | (origin |
| 8106 | (method url-fetch) |
| 8107 | (uri (pypi-uri "functools32" version)) |
| 8108 | (sha256 |
| 8109 | (base32 |
| 8110 | "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) |
| 8111 | (build-system python-build-system) |
| 8112 | (arguments |
| 8113 | `(#:python ,python-2 |
| 8114 | #:tests? #f)) ; no test target |
| 8115 | (home-page "https://github.com/MiCHiLU/python-functools32") |
| 8116 | (synopsis |
| 8117 | "Backport of the functools module from Python 3.2.3") |
| 8118 | (description |
| 8119 | "This package is a backport of the @code{functools} module from Python |
| 8120 | 3.2.3 for use with older versions of Python and PyPy.") |
| 8121 | (license license:expat))) |
| 8122 | |
| 8123 | (define-public python2-subprocess32 |
| 8124 | (package |
| 8125 | (name "python2-subprocess32") |
| 8126 | (version "3.2.7") |
| 8127 | (source (origin |
| 8128 | (method url-fetch) |
| 8129 | (uri (pypi-uri "subprocess32" version)) |
| 8130 | (sha256 |
| 8131 | (base32 |
| 8132 | "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y")) |
| 8133 | (patches |
| 8134 | (search-patches "python2-subprocess32-disable-input-test.patch")))) |
| 8135 | (build-system python-build-system) |
| 8136 | (arguments |
| 8137 | `(#:python ,python-2 |
| 8138 | ;; The test suite fails with Python > 2.7.13: |
| 8139 | ;; import test.support |
| 8140 | ;; ImportError: No module named support |
| 8141 | #:tests? #f |
| 8142 | #:phases |
| 8143 | (modify-phases %standard-phases |
| 8144 | (add-after 'unpack 'patch-/bin/sh |
| 8145 | (lambda _ |
| 8146 | (substitute* '("subprocess32.py" |
| 8147 | "test_subprocess32.py") |
| 8148 | (("/bin/sh") (which "sh"))) |
| 8149 | #t))))) |
| 8150 | (home-page "https://github.com/google/python-subprocess32") |
| 8151 | (synopsis "Backport of the subprocess module from Python 3.2") |
| 8152 | (description |
| 8153 | "This is a backport of the @code{subprocess} standard library module |
| 8154 | from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some |
| 8155 | new features. On POSIX systems it is guaranteed to be reliable when used |
| 8156 | in threaded applications. It includes timeout support from Python 3.3 but |
| 8157 | otherwise matches 3.2’s API.") |
| 8158 | (license license:psfl))) |
| 8159 | |
| 8160 | (define-public python2-futures |
| 8161 | (package |
| 8162 | (name "python2-futures") |
| 8163 | (version "3.2.0") |
| 8164 | (source |
| 8165 | (origin |
| 8166 | (method url-fetch) |
| 8167 | (uri (pypi-uri "futures" version)) |
| 8168 | (sha256 |
| 8169 | (base32 |
| 8170 | "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y")))) |
| 8171 | (build-system python-build-system) |
| 8172 | (arguments `(#:python ,python-2 |
| 8173 | ;; FIXME: Python 2.7.14 moved the test.support library, |
| 8174 | ;; but our package has not yet been adjusted. Enable |
| 8175 | ;; tests when the python2 package has been fixed. |
| 8176 | #:tests? #f)) |
| 8177 | (home-page "https://github.com/agronholm/pythonfutures") |
| 8178 | (synopsis |
| 8179 | "Backport of the concurrent.futures package from Python 3.2") |
| 8180 | (description |
| 8181 | "The concurrent.futures module provides a high-level interface for |
| 8182 | asynchronously executing callables. This package backports the |
| 8183 | concurrent.futures package from Python 3.2") |
| 8184 | (license license:bsd-3))) |
| 8185 | |
| 8186 | (define-public python-promise |
| 8187 | (package |
| 8188 | (name "python-promise") |
| 8189 | (version "0.4.2") |
| 8190 | (source |
| 8191 | (origin |
| 8192 | (method url-fetch) |
| 8193 | (uri (pypi-uri "promise" version)) |
| 8194 | (sha256 |
| 8195 | (base32 |
| 8196 | "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) |
| 8197 | (build-system python-build-system) |
| 8198 | ;; Tests wants python-futures, which is a python2 only program, and |
| 8199 | ;; can't be found by python-promise at test time. |
| 8200 | (arguments `(#:tests? #f)) |
| 8201 | (home-page "https://github.com/syrusakbary/promise") |
| 8202 | (synopsis "Promises/A+ implementation for Python") |
| 8203 | (description |
| 8204 | "Promises/A+ implementation for Python") |
| 8205 | (properties `((python2-variant . ,(delay python2-promise)))) |
| 8206 | (license license:expat))) |
| 8207 | |
| 8208 | (define-public python2-promise |
| 8209 | (let ((promise (package-with-python2 |
| 8210 | (strip-python2-variant python-promise)))) |
| 8211 | (package (inherit promise) |
| 8212 | (arguments (substitute-keyword-arguments (package-arguments promise) |
| 8213 | ((#:tests? _) #t))) |
| 8214 | (native-inputs |
| 8215 | `(("python2-futures" ,python2-futures) |
| 8216 | ("python2-pytest" ,python2-pytest) |
| 8217 | ,@(package-native-inputs promise)))))) |
| 8218 | |
| 8219 | (define-public python-colorama |
| 8220 | (package |
| 8221 | (name "python-colorama") |
| 8222 | (version "0.3.9") |
| 8223 | (source |
| 8224 | (origin |
| 8225 | (method url-fetch) |
| 8226 | (uri (pypi-uri "colorama" version)) |
| 8227 | (sha256 |
| 8228 | (base32 |
| 8229 | "1wd1szk0z3073ghx26ynw43gnc140ibln1safgsis6s6z3s25ss8")))) |
| 8230 | (build-system python-build-system) |
| 8231 | (synopsis "Colored terminal text rendering for Python") |
| 8232 | (description "Colorama is a Python library for rendering colored terminal |
| 8233 | text.") |
| 8234 | (home-page "https://pypi.python.org/pypi/colorama") |
| 8235 | (license license:bsd-3))) |
| 8236 | |
| 8237 | (define-public python2-colorama |
| 8238 | (package-with-python2 python-colorama)) |
| 8239 | |
| 8240 | (define-public python-rsa |
| 8241 | (package |
| 8242 | (name "python-rsa") |
| 8243 | (version "3.4.2") |
| 8244 | (source |
| 8245 | (origin |
| 8246 | (method url-fetch) |
| 8247 | (uri (pypi-uri "rsa" version)) |
| 8248 | (sha256 |
| 8249 | (base32 |
| 8250 | "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5")))) |
| 8251 | (build-system python-build-system) |
| 8252 | (propagated-inputs |
| 8253 | `(("python-pyasn1" ,python-pyasn1))) |
| 8254 | (synopsis "Pure-Python RSA implementation") |
| 8255 | (description "Python-RSA is a pure-Python RSA implementation. It supports |
| 8256 | encryption and decryption, signing and verifying signatures, and key |
| 8257 | generation according to PKCS#1 version 1.5. It can be used as a Python |
| 8258 | library as well as on the command line.") |
| 8259 | (home-page "https://stuvel.eu/rsa") |
| 8260 | (license license:asl2.0))) |
| 8261 | |
| 8262 | (define-public python2-rsa |
| 8263 | (package-with-python2 python-rsa)) |
| 8264 | |
| 8265 | (define-public python-pluggy |
| 8266 | (package |
| 8267 | (name "python-pluggy") |
| 8268 | (version "0.7.1") |
| 8269 | (source |
| 8270 | (origin |
| 8271 | (method url-fetch) |
| 8272 | (uri (pypi-uri "pluggy" version)) |
| 8273 | (sha256 |
| 8274 | (base32 |
| 8275 | "1qbn70mksmr03hac6jgp6fiqc4l7859z8dchx2x950vhlij87swm")))) |
| 8276 | (build-system python-build-system) |
| 8277 | (native-inputs |
| 8278 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 8279 | (synopsis "Plugin and hook calling mechanism for Python") |
| 8280 | (description "Pluggy is an extraction of the plugin manager as used by |
| 8281 | Pytest but stripped of Pytest specific details.") |
| 8282 | (home-page "https://pypi.python.org/pypi/pluggy") |
| 8283 | (license license:expat))) |
| 8284 | |
| 8285 | (define-public python2-pluggy |
| 8286 | (package-with-python2 python-pluggy)) |
| 8287 | |
| 8288 | (define-public python-tox |
| 8289 | (package |
| 8290 | (name "python-tox") |
| 8291 | (version "2.8.1") |
| 8292 | (source |
| 8293 | (origin |
| 8294 | (method url-fetch) |
| 8295 | (uri (pypi-uri "tox" version)) |
| 8296 | (sha256 |
| 8297 | (base32 |
| 8298 | "1drp6mwm8wdypjym15ia8lwjxbhcksb9vzxg4ay5dh4ji57by2ny")))) |
| 8299 | (build-system python-build-system) |
| 8300 | (arguments |
| 8301 | ;; FIXME: Tests require pytest-timeout, which itself requires |
| 8302 | ;; pytest>=2.8.0 for installation. |
| 8303 | '(#:tests? #f)) |
| 8304 | (propagated-inputs |
| 8305 | `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0 |
| 8306 | ("python-py" ,python-py) |
| 8307 | ("python-virtualenv" ,python-virtualenv))) |
| 8308 | (native-inputs |
| 8309 | `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) |
| 8310 | ("python-pytest" ,python-pytest) ; >= 2.3.5 |
| 8311 | ("python-setuptools-scm" ,python-setuptools-scm))) |
| 8312 | (home-page "http://tox.testrun.org/") |
| 8313 | (synopsis "Virtualenv-based automation of test activities") |
| 8314 | (description "Tox is a generic virtualenv management and test command line |
| 8315 | tool. It can be used to check that a package installs correctly with |
| 8316 | different Python versions and interpreters, or run tests in each type of |
| 8317 | supported environment, or act as a frontend to continuous integration |
| 8318 | servers.") |
| 8319 | (license license:expat))) |
| 8320 | |
| 8321 | (define-public python2-tox |
| 8322 | (package-with-python2 python-tox)) |
| 8323 | |
| 8324 | (define-public python-jmespath |
| 8325 | (package |
| 8326 | (name "python-jmespath") |
| 8327 | (version "0.9.3") |
| 8328 | (source |
| 8329 | (origin |
| 8330 | (method url-fetch) |
| 8331 | (uri (pypi-uri "jmespath" version)) |
| 8332 | (sha256 |
| 8333 | (base32 |
| 8334 | "0r7wc7fsxmlwzxx9j1j7rms06c6xs6d4sysirdhz1jk2mb4x90ba")))) |
| 8335 | (build-system python-build-system) |
| 8336 | (native-inputs |
| 8337 | `(("python-nose" ,python-nose))) |
| 8338 | (synopsis "JSON Matching Expressions") |
| 8339 | (description "JMESPath (pronounced “james path”) is a Python library that |
| 8340 | allows one to declaratively specify how to extract elements from a JSON |
| 8341 | document.") |
| 8342 | (home-page "https://github.com/jmespath/jmespath.py") |
| 8343 | (license license:expat))) |
| 8344 | |
| 8345 | (define-public python2-jmespath |
| 8346 | (package-with-python2 python-jmespath)) |
| 8347 | |
| 8348 | (define-public python-botocore |
| 8349 | (package |
| 8350 | (name "python-botocore") |
| 8351 | (version "1.8.43") |
| 8352 | (source |
| 8353 | (origin |
| 8354 | (method url-fetch) |
| 8355 | (uri (pypi-uri "botocore" version)) |
| 8356 | (sha256 |
| 8357 | (base32 |
| 8358 | "12cqpbnz3vfv41mp9admvciw7bc7hz57sjpqs2bxaw9wnfmbw5lg")))) |
| 8359 | (build-system python-build-system) |
| 8360 | (arguments |
| 8361 | ;; FIXME: Many tests are failing. |
| 8362 | '(#:tests? #f)) |
| 8363 | (propagated-inputs |
| 8364 | `(("python-dateutil" ,python-dateutil) |
| 8365 | ("python-docutils" ,python-docutils) |
| 8366 | ("python-jmespath" ,python-jmespath))) |
| 8367 | (native-inputs |
| 8368 | `(("python-mock" ,python-mock) |
| 8369 | ("python-nose" ,python-nose) |
| 8370 | ("behave" ,behave) |
| 8371 | ("python-tox" ,python-tox) |
| 8372 | ("python-wheel" ,python-wheel))) |
| 8373 | (home-page "https://github.com/boto/botocore") |
| 8374 | (synopsis "Low-level interface to AWS") |
| 8375 | (description "Botocore is a Python library that provides a low-level |
| 8376 | interface to the Amazon Web Services (AWS) API.") |
| 8377 | (license license:asl2.0))) |
| 8378 | |
| 8379 | (define-public python2-botocore |
| 8380 | (package-with-python2 python-botocore)) |
| 8381 | |
| 8382 | (define-public python-xdo |
| 8383 | (package |
| 8384 | (name "python-xdo") |
| 8385 | (version "0.3") |
| 8386 | (source (origin |
| 8387 | (method url-fetch) |
| 8388 | (uri (string-append |
| 8389 | "http://http.debian.net/debian/pool/main/p/python-xdo/" |
| 8390 | "python-xdo_" version ".orig.tar.gz")) |
| 8391 | (sha256 |
| 8392 | (base32 |
| 8393 | "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0")))) |
| 8394 | (build-system python-build-system) |
| 8395 | (arguments |
| 8396 | '(#:phases |
| 8397 | (modify-phases %standard-phases |
| 8398 | (add-before 'install 'patch-libxdo-path |
| 8399 | ;; Hardcode the path of dynamically loaded libxdo library. |
| 8400 | (lambda* (#:key inputs #:allow-other-keys) |
| 8401 | (let ((libxdo (string-append |
| 8402 | (assoc-ref inputs "xdotool") |
| 8403 | "/lib/libxdo.so"))) |
| 8404 | (substitute* "xdo/_xdo.py" |
| 8405 | (("find_library\\(\"xdo\"\\)") |
| 8406 | (simple-format #f "\"~a\"" libxdo))) |
| 8407 | #t)))) |
| 8408 | #:tests? #f)) ; no tests provided |
| 8409 | (propagated-inputs |
| 8410 | `(("python-six" ,python-six))) |
| 8411 | (inputs |
| 8412 | `(("xdotool" ,xdotool) |
| 8413 | ("libX11" ,libx11))) |
| 8414 | (home-page "https://tracker.debian.org/pkg/python-xdo") |
| 8415 | (synopsis "Python library for simulating X11 keyboard/mouse input") |
| 8416 | (description "Provides bindings to libxdo for manipulating X11 via simulated |
| 8417 | input. (Note that this is mostly a legacy library; you may wish to look at |
| 8418 | python-xdo for newer bindings.)") |
| 8419 | (license license:bsd-3))) |
| 8420 | |
| 8421 | (define-public python2-xdo |
| 8422 | (package-with-python2 python-xdo)) |
| 8423 | |
| 8424 | (define-public python-mako |
| 8425 | (package |
| 8426 | (name "python-mako") |
| 8427 | (version "1.0.10") |
| 8428 | (source |
| 8429 | (origin |
| 8430 | (method url-fetch) |
| 8431 | (uri (pypi-uri "Mako" version)) |
| 8432 | (sha256 |
| 8433 | (base32 |
| 8434 | "0r9rysn19fmrxnzfcn7sg20kjhcrx9qri0my9n5vdzp1g2g92rbi")))) |
| 8435 | (build-system python-build-system) |
| 8436 | (propagated-inputs |
| 8437 | `(("python-markupsafe" ,python-markupsafe))) |
| 8438 | (native-inputs |
| 8439 | `(("python-mock" ,python-mock) |
| 8440 | ("python-nose" ,python-nose) |
| 8441 | ("python-pytest" ,python-pytest))) |
| 8442 | (home-page "https://www.makotemplates.org/") |
| 8443 | (synopsis "Templating language for Python") |
| 8444 | (description "Mako is a templating language for Python that compiles |
| 8445 | templates into Python modules.") |
| 8446 | (license license:expat))) |
| 8447 | |
| 8448 | (define-public python2-mako |
| 8449 | (package-with-python2 python-mako)) |
| 8450 | |
| 8451 | (define-public python-waitress |
| 8452 | (package |
| 8453 | (name "python-waitress") |
| 8454 | (version "1.1.0") |
| 8455 | (source |
| 8456 | (origin |
| 8457 | (method url-fetch) |
| 8458 | (uri (pypi-uri "waitress" version)) |
| 8459 | (patches (search-patches "python-waitress-fix-tests.patch")) |
| 8460 | (sha256 |
| 8461 | (base32 |
| 8462 | "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k")))) |
| 8463 | (build-system python-build-system) |
| 8464 | (home-page "https://github.com/Pylons/waitress") |
| 8465 | (synopsis "Waitress WSGI server") |
| 8466 | (description "Waitress is meant to be a production-quality pure-Python WSGI |
| 8467 | server with very acceptable performance.") |
| 8468 | (license license:zpl2.1))) |
| 8469 | |
| 8470 | (define-public python2-waitress |
| 8471 | (package-with-python2 python-waitress)) |
| 8472 | |
| 8473 | (define-public python-pyquery |
| 8474 | (package |
| 8475 | (name "python-pyquery") |
| 8476 | (version "1.2.17") |
| 8477 | (source |
| 8478 | (origin |
| 8479 | (method url-fetch) |
| 8480 | (uri (pypi-uri "pyquery" version)) |
| 8481 | (sha256 |
| 8482 | (base32 |
| 8483 | "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a")))) |
| 8484 | (build-system python-build-system) |
| 8485 | (native-inputs |
| 8486 | `(("python-webob" ,python-webob) |
| 8487 | ("python-webtest" ,python-webtest))) |
| 8488 | (propagated-inputs |
| 8489 | `(("python-lxml" ,python-lxml) |
| 8490 | ("python-cssselect" ,python-cssselect))) |
| 8491 | (home-page "https://github.com/gawel/pyquery") |
| 8492 | (synopsis "Make jQuery-like queries on xml documents") |
| 8493 | (description "pyquery allows you to make jQuery queries on xml documents. |
| 8494 | The API is as much as possible the similar to jQuery. pyquery uses lxml for |
| 8495 | fast xml and html manipulation.") |
| 8496 | (license license:bsd-3))) |
| 8497 | |
| 8498 | (define-public python-anyjson |
| 8499 | (package |
| 8500 | (name "python-anyjson") |
| 8501 | (version "0.3.3") |
| 8502 | (source |
| 8503 | (origin |
| 8504 | (method url-fetch) |
| 8505 | (uri (pypi-uri "anyjson" version)) |
| 8506 | (sha256 |
| 8507 | (base32 |
| 8508 | "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p")))) |
| 8509 | (build-system python-build-system) |
| 8510 | (arguments |
| 8511 | `(;; We could possibly get tests working, but on Python 3 it's not so easy. |
| 8512 | ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or |
| 8513 | ;; whatever) so this transformation needs to be done before the tests |
| 8514 | ;; can be run. Maybe we could add a build step to transform beforehand |
| 8515 | ;; but it could be annoying/difficult. |
| 8516 | ;; We can enable tests for the Python 2 version, though, and do below. |
| 8517 | #:tests? #f)) |
| 8518 | (home-page "https://bitbucket.org/runeh/anyjson/") |
| 8519 | (synopsis |
| 8520 | "Wraps best available JSON implementation in a common interface") |
| 8521 | (description |
| 8522 | "Anyjson loads whichever is the fastest JSON module installed |
| 8523 | and provides a uniform API regardless of which JSON implementation is used.") |
| 8524 | (license license:bsd-3) |
| 8525 | (properties `((python2-variant . ,(delay python2-anyjson)))))) |
| 8526 | |
| 8527 | (define-public python2-anyjson |
| 8528 | (let ((anyjson (package-with-python2 |
| 8529 | (strip-python2-variant python-anyjson)))) |
| 8530 | (package |
| 8531 | (inherit anyjson) |
| 8532 | (arguments `(;; Unlike the python 3 variant, we do run tests. See above! |
| 8533 | #:tests? #t |
| 8534 | ,@(package-arguments anyjson))) |
| 8535 | (native-inputs `(("python2-nose" ,python2-nose)))))) |
| 8536 | |
| 8537 | (define-public python-amqp |
| 8538 | (package |
| 8539 | (name "python-amqp") |
| 8540 | (version "2.3.2") |
| 8541 | (source |
| 8542 | (origin |
| 8543 | (method url-fetch) |
| 8544 | (uri (pypi-uri "amqp" version)) |
| 8545 | (sha256 |
| 8546 | (base32 |
| 8547 | "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87")))) |
| 8548 | (build-system python-build-system) |
| 8549 | (native-inputs |
| 8550 | `(("python-case" ,python-case) |
| 8551 | ("python-pytest-sugar" ,python-pytest-sugar) |
| 8552 | ("python-mock" ,python-mock))) |
| 8553 | (propagated-inputs |
| 8554 | `(("python-vine" ,python-vine))) |
| 8555 | (home-page "https://github.com/celery/py-amqp") |
| 8556 | (synopsis |
| 8557 | "Low-level AMQP client for Python (fork of amqplib)") |
| 8558 | (description |
| 8559 | "This is a fork of amqplib which was originally written by Barry Pederson. |
| 8560 | It is maintained by the Celery project, and used by kombu as a pure python |
| 8561 | alternative when librabbitmq is not available.") |
| 8562 | (license license:lgpl2.1+) |
| 8563 | (properties `((python2-variant . ,(delay python2-amqp)))))) |
| 8564 | |
| 8565 | (define-public python2-amqp |
| 8566 | (let ((amqp (package-with-python2 |
| 8567 | (strip-python2-variant python-amqp)))) |
| 8568 | (package |
| 8569 | (inherit amqp) |
| 8570 | (arguments `(;; Tries to run coverage tests with nose-cover3, which seems |
| 8571 | ;; unmaintained. Weirdly, does not do this on the python 3 |
| 8572 | ;; version? |
| 8573 | #:tests? #f |
| 8574 | ,@(package-arguments amqp)))))) |
| 8575 | |
| 8576 | (define-public python-txamqp |
| 8577 | (package |
| 8578 | (name "python-txamqp") |
| 8579 | (version "0.8.2") |
| 8580 | (source |
| 8581 | (origin |
| 8582 | (method url-fetch) |
| 8583 | (uri (pypi-uri "txAMQP" version)) |
| 8584 | (sha256 |
| 8585 | (base32 |
| 8586 | "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4")))) |
| 8587 | (build-system python-build-system) |
| 8588 | (propagated-inputs |
| 8589 | `(("python-six" ,python-six) |
| 8590 | ("python-twisted" ,python-twisted))) |
| 8591 | (home-page "https://github.com/txamqp/txamqp") |
| 8592 | (synopsis "Communicate with AMQP peers and brokers using Twisted") |
| 8593 | (description |
| 8594 | "This package provides a Python library for communicating with AMQP peers |
| 8595 | and brokers using the asynchronous networking framework Twisted. It contains |
| 8596 | all the necessary code to connect, send and receive messages to/from an |
| 8597 | AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It |
| 8598 | also includes support for using Thrift RPC over AMQP in Twisted |
| 8599 | applications.") |
| 8600 | (license license:asl2.0))) |
| 8601 | |
| 8602 | (define-public python2-txamqp |
| 8603 | (package-with-python2 python-txamqp)) |
| 8604 | |
| 8605 | (define-public python-kombu |
| 8606 | (package |
| 8607 | (name "python-kombu") |
| 8608 | (version "4.2.2") |
| 8609 | (source |
| 8610 | (origin |
| 8611 | (method url-fetch) |
| 8612 | (uri (pypi-uri "kombu" version)) |
| 8613 | (sha256 |
| 8614 | (base32 |
| 8615 | "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj")))) |
| 8616 | (build-system python-build-system) |
| 8617 | (native-inputs |
| 8618 | `(("python-mock" ,python-mock) |
| 8619 | ("python-case" ,python-case) |
| 8620 | ("python-pyro4" ,python-pyro4) |
| 8621 | ("python-pytest-sugar" ,python-pytest-sugar) |
| 8622 | ("python-pytz" ,python-pytz))) |
| 8623 | (propagated-inputs |
| 8624 | `(("python-anyjson" ,python-anyjson) |
| 8625 | ("python-amqp" ,python-amqp) |
| 8626 | ("python-redis" ,python-redis))) |
| 8627 | (home-page "https://kombu.readthedocs.io") |
| 8628 | (synopsis "Message passing library for Python") |
| 8629 | (description "The aim of Kombu is to make messaging in Python as easy as |
| 8630 | possible by providing an idiomatic high-level interface for the AMQ protocol, |
| 8631 | and also provide proven and tested solutions to common messaging problems. |
| 8632 | AMQP is the Advanced Message Queuing Protocol, an open standard protocol for |
| 8633 | message orientation, queuing, routing, reliability and security, for which the |
| 8634 | RabbitMQ messaging server is the most popular implementation.") |
| 8635 | (license license:bsd-3) |
| 8636 | (properties `((python2-variant . ,(delay python2-kombu)))))) |
| 8637 | |
| 8638 | (define-public python2-kombu |
| 8639 | (let ((kombu (package-with-python2 |
| 8640 | (strip-python2-variant python-kombu)))) |
| 8641 | (package |
| 8642 | (inherit kombu) |
| 8643 | (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2. |
| 8644 | ;; It works fine on the python3 variant. |
| 8645 | #:tests? #f |
| 8646 | ,@(package-arguments kombu))) |
| 8647 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 8648 | ,@(package-native-inputs kombu)))))) |
| 8649 | |
| 8650 | (define-public python-billiard |
| 8651 | (package |
| 8652 | (name "python-billiard") |
| 8653 | (version "3.5.0.5") |
| 8654 | (source |
| 8655 | (origin |
| 8656 | (method url-fetch) |
| 8657 | (uri (pypi-uri "billiard" version)) |
| 8658 | (sha256 |
| 8659 | (base32 |
| 8660 | "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2")))) |
| 8661 | (build-system python-build-system) |
| 8662 | (native-inputs |
| 8663 | `(("python-case" ,python-case) |
| 8664 | ("python-pytest" ,python-pytest))) |
| 8665 | (home-page "https://github.com/celery/billiard") |
| 8666 | (synopsis |
| 8667 | "Python multiprocessing fork with improvements and bugfixes") |
| 8668 | (description |
| 8669 | "Billiard is a fork of the Python 2.7 multiprocessing package. The |
| 8670 | multiprocessing package itself is a renamed and updated version of R Oudkerk's |
| 8671 | pyprocessing package. This standalone variant is intended to be compatible with |
| 8672 | Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") |
| 8673 | (license license:bsd-3) |
| 8674 | (properties `((python2-variant . ,(delay python2-billiard)))))) |
| 8675 | |
| 8676 | (define-public python2-billiard |
| 8677 | (let ((billiard (package-with-python2 |
| 8678 | (strip-python2-variant python-billiard)))) |
| 8679 | (package |
| 8680 | (inherit billiard) |
| 8681 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 8682 | ("python2-mock" ,python2-mock) |
| 8683 | ,@(package-native-inputs billiard)))))) |
| 8684 | |
| 8685 | (define-public python-celery |
| 8686 | (package |
| 8687 | (name "python-celery") |
| 8688 | (version "4.2.1") |
| 8689 | (source |
| 8690 | (origin |
| 8691 | (method url-fetch) |
| 8692 | (uri (pypi-uri "celery" version)) |
| 8693 | (sha256 |
| 8694 | (base32 |
| 8695 | "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp")))) |
| 8696 | (build-system python-build-system) |
| 8697 | (arguments |
| 8698 | '(;; TODO The tests fail with Python 3.7 |
| 8699 | ;; https://github.com/celery/celery/issues/4849 |
| 8700 | #:tests? #f |
| 8701 | #:phases |
| 8702 | (modify-phases %standard-phases |
| 8703 | (add-after 'unpack 'patch-requirements |
| 8704 | (lambda _ |
| 8705 | (substitute* "requirements/test.txt" |
| 8706 | (("pytest>=3\\.0,<3\\.3") |
| 8707 | "pytest>=3.0")) |
| 8708 | #t))))) |
| 8709 | (native-inputs |
| 8710 | `(("python-case" ,python-case) |
| 8711 | ("python-pytest" ,python-pytest))) |
| 8712 | (propagated-inputs |
| 8713 | `(("python-pytz" ,python-pytz) |
| 8714 | ("python-billiard" ,python-billiard) |
| 8715 | ("python-kombu" ,python-kombu))) |
| 8716 | (home-page "https://celeryproject.org") |
| 8717 | (synopsis "Distributed Task Queue") |
| 8718 | (description "Celery is an asynchronous task queue/job queue based on |
| 8719 | distributed message passing. It is focused on real-time operation, but |
| 8720 | supports scheduling as well. The execution units, called tasks, are executed |
| 8721 | concurrently on a single or more worker servers using multiprocessing, |
| 8722 | Eventlet, or gevent. Tasks can execute asynchronously (in the background) or |
| 8723 | synchronously (wait until ready).") |
| 8724 | (license license:bsd-3) |
| 8725 | (properties `((python2-variant . ,(delay python2-celery)))))) |
| 8726 | |
| 8727 | (define-public python2-celery |
| 8728 | (let ((celery (package-with-python2 |
| 8729 | (strip-python2-variant python-celery)))) |
| 8730 | (package |
| 8731 | (inherit celery) |
| 8732 | (native-inputs `(("python2-unittest2" ,python2-unittest2) |
| 8733 | ("python2-mock" ,python2-mock) |
| 8734 | ,@(package-native-inputs celery)))))) |
| 8735 | |
| 8736 | (define-public python-translitcodec |
| 8737 | (package |
| 8738 | (name "python-translitcodec") |
| 8739 | (version "0.4.0") |
| 8740 | (source |
| 8741 | (origin |
| 8742 | (method url-fetch) |
| 8743 | (uri (pypi-uri "translitcodec" version)) |
| 8744 | (sha256 |
| 8745 | (base32 |
| 8746 | "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki")))) |
| 8747 | (build-system python-build-system) |
| 8748 | (arguments |
| 8749 | `(#:tests? #f)) ; no tests provided |
| 8750 | (home-page |
| 8751 | "https://github.com/claudep/translitcodec") |
| 8752 | (synopsis |
| 8753 | "Unicode to 8-bit charset transliteration codec") |
| 8754 | (description |
| 8755 | "This package contains codecs for transliterating ISO 10646 texts into |
| 8756 | best-effort representations using smaller coded character sets (ASCII, |
| 8757 | ISO 8859, etc.).") |
| 8758 | (license license:expat))) |
| 8759 | |
| 8760 | (define-public python2-translitcodec |
| 8761 | (package-with-python2 python-translitcodec)) |
| 8762 | |
| 8763 | (define-public python-editor |
| 8764 | (package |
| 8765 | (name "python-editor") |
| 8766 | (version "0.5") |
| 8767 | (source |
| 8768 | (origin |
| 8769 | (method url-fetch) |
| 8770 | (uri (pypi-uri "python-editor" version)) |
| 8771 | (sha256 |
| 8772 | (base32 |
| 8773 | "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) |
| 8774 | (build-system python-build-system) |
| 8775 | (home-page |
| 8776 | "https://github.com/fmoo/python-editor") |
| 8777 | (synopsis |
| 8778 | "Programmatically open an editor, capture the result") |
| 8779 | (description |
| 8780 | "python-editor is a library that provides the editor module for |
| 8781 | programmatically interfacing with your system's $EDITOR.") |
| 8782 | (license license:asl2.0))) |
| 8783 | |
| 8784 | (define-public python2-editor |
| 8785 | (package-with-python2 python-editor)) |
| 8786 | |
| 8787 | (define-public python-vobject |
| 8788 | (package |
| 8789 | (name "python-vobject") |
| 8790 | (version "0.9.5") |
| 8791 | (source (origin |
| 8792 | (method url-fetch) |
| 8793 | (uri (pypi-uri "vobject" version)) |
| 8794 | (sha256 |
| 8795 | (base32 |
| 8796 | "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg")))) |
| 8797 | (build-system python-build-system) |
| 8798 | (arguments |
| 8799 | '(;; The test suite relies on some non-portable Windows interfaces. |
| 8800 | #:tests? #f)) |
| 8801 | (propagated-inputs |
| 8802 | `(("python-dateutil" ,python-dateutil) |
| 8803 | ("python-pyicu" ,python-pyicu))) |
| 8804 | (synopsis "Parse and generate vCard and vCalendar files") |
| 8805 | (description "Vobject is intended to be a full featured Python package for |
| 8806 | parsing and generating vCard and vCalendar files. Currently, iCalendar files |
| 8807 | are supported and well tested. vCard 3.0 files are supported, and all data |
| 8808 | should be imported, but only a few components are understood in a sophisticated |
| 8809 | way.") |
| 8810 | (home-page "http://eventable.github.io/vobject/") |
| 8811 | (license license:asl2.0))) |
| 8812 | |
| 8813 | (define-public python2-vobject |
| 8814 | (package-with-python2 python-vobject)) |
| 8815 | |
| 8816 | (define-public python-munkres |
| 8817 | (package |
| 8818 | (name "python-munkres") |
| 8819 | (version "1.0.8") |
| 8820 | (source (origin |
| 8821 | (method url-fetch) |
| 8822 | (uri (pypi-uri "munkres" version)) |
| 8823 | (sha256 |
| 8824 | (base32 |
| 8825 | "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq")))) |
| 8826 | (build-system python-build-system) |
| 8827 | (arguments |
| 8828 | '(#:tests? #f)) ; no test suite |
| 8829 | (home-page "http://software.clapper.org/munkres/") |
| 8830 | (synopsis "Implementation of the Munkres algorithm") |
| 8831 | (description "The Munkres module provides an implementation of the Munkres |
| 8832 | algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), |
| 8833 | useful for solving the Assignment Problem.") |
| 8834 | (license license:bsd-3))) |
| 8835 | |
| 8836 | (define-public python2-munkres |
| 8837 | (package-with-python2 python-munkres)) |
| 8838 | |
| 8839 | (define-public python-whoosh |
| 8840 | (package |
| 8841 | (name "python-whoosh") |
| 8842 | (version "2.7.4") |
| 8843 | (source |
| 8844 | (origin |
| 8845 | (method url-fetch) |
| 8846 | (uri (pypi-uri "Whoosh" version)) |
| 8847 | (sha256 |
| 8848 | (base32 |
| 8849 | "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw")))) |
| 8850 | (build-system python-build-system) |
| 8851 | (native-inputs |
| 8852 | `(("python-pytest" ,python-pytest))) |
| 8853 | (home-page "https://bitbucket.org/mchaput/whoosh") |
| 8854 | (synopsis "Full text indexing, search, and spell checking library") |
| 8855 | (description |
| 8856 | "Whoosh is a fast, pure-Python full text indexing, search, and spell |
| 8857 | checking library.") |
| 8858 | (license license:bsd-2))) |
| 8859 | |
| 8860 | (define-public python2-whoosh |
| 8861 | (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh)))) |
| 8862 | (package (inherit whoosh) |
| 8863 | (propagated-inputs |
| 8864 | `(("python2-backport-ssl-match-hostname" |
| 8865 | ,python2-backport-ssl-match-hostname) |
| 8866 | ,@(package-propagated-inputs whoosh)))))) |
| 8867 | |
| 8868 | (define-public python-pathlib |
| 8869 | (package |
| 8870 | (name "python-pathlib") |
| 8871 | (version "1.0.1") |
| 8872 | (source (origin |
| 8873 | (method url-fetch) |
| 8874 | (uri (pypi-uri "pathlib" version)) |
| 8875 | (sha256 |
| 8876 | (base32 |
| 8877 | "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39")))) |
| 8878 | (build-system python-build-system) |
| 8879 | ;; The tests depend on the internal "test" module, which does not provide |
| 8880 | ;; a stable interface. |
| 8881 | (arguments `(#:tests? #f)) |
| 8882 | (home-page "https://pathlib.readthedocs.org/") |
| 8883 | (synopsis "Object-oriented file system paths") |
| 8884 | (description "Pathlib offers a set of classes to handle file system paths. |
| 8885 | It offers the following advantages over using string objects: |
| 8886 | |
| 8887 | @enumerate |
| 8888 | @item No more cumbersome use of os and os.path functions. Everything can |
| 8889 | be done easily through operators, attribute accesses, and method calls. |
| 8890 | @item Embodies the semantics of different path types. For example, |
| 8891 | comparing Windows paths ignores casing. |
| 8892 | @item Well-defined semantics, eliminating any inconsistencies or |
| 8893 | ambiguities (forward vs. backward slashes, etc.). |
| 8894 | @end enumerate |
| 8895 | |
| 8896 | Note: In Python 3.4, pathlib is now part of the standard library. For other |
| 8897 | Python versions please consider python-pathlib2 instead, which tracks the |
| 8898 | standard library module. This module (python-pathlib) isn't maintained |
| 8899 | anymore.") |
| 8900 | (license license:expat))) |
| 8901 | |
| 8902 | (define-public python2-pathlib |
| 8903 | (package-with-python2 python-pathlib)) |
| 8904 | |
| 8905 | (define-public python2-pathlib2 |
| 8906 | (package |
| 8907 | (name "python2-pathlib2") |
| 8908 | (version "2.3.2") |
| 8909 | (source (origin |
| 8910 | (method url-fetch) |
| 8911 | (uri (pypi-uri "pathlib2" version)) |
| 8912 | (sha256 |
| 8913 | (base32 |
| 8914 | "10yb0iv5x2hs631rcppkhbddx799d3h8pcwmkbh2a66ns3w71ccf")))) |
| 8915 | (build-system python-build-system) |
| 8916 | ;; We only need the the Python 2 variant, since for Python 3 our minimum |
| 8917 | ;; version is 3.4 which already includes this package as part of the |
| 8918 | ;; standard library. |
| 8919 | (arguments |
| 8920 | `(#:python ,python-2)) |
| 8921 | (propagated-inputs |
| 8922 | `(("python2-scandir" ,python2-scandir) |
| 8923 | ("python2-six" ,python2-six))) |
| 8924 | (home-page "https://pypi.python.org/pypi/pathlib2/") |
| 8925 | (synopsis "Object-oriented file system paths - backport of standard |
| 8926 | pathlib module") |
| 8927 | (description "The goal of pathlib2 is to provide a backport of standard |
| 8928 | pathlib module which tracks the standard library module, so all the newest |
| 8929 | features of the standard pathlib can be used also on older Python versions. |
| 8930 | |
| 8931 | Pathlib offers a set of classes to handle file system paths. It offers the |
| 8932 | following advantages over using string objects: |
| 8933 | |
| 8934 | @enumerate |
| 8935 | @item No more cumbersome use of os and os.path functions. Everything can |
| 8936 | be done easily through operators, attribute accesses, and method calls. |
| 8937 | @item Embodies the semantics of different path types. For example, |
| 8938 | comparing Windows paths ignores casing. |
| 8939 | @item Well-defined semantics, eliminating any inconsistencies or |
| 8940 | ambiguities (forward vs. backward slashes, etc.). |
| 8941 | @end enumerate") |
| 8942 | (license license:expat))) |
| 8943 | |
| 8944 | (define-public python2-pathlib2-bootstrap |
| 8945 | (hidden-package |
| 8946 | (package |
| 8947 | (inherit python2-pathlib2) |
| 8948 | (name "python2-pathlib2-bootstrap") |
| 8949 | (propagated-inputs |
| 8950 | `(("python2-scandir" ,python2-scandir) |
| 8951 | ("python2-six" ,python2-six-bootstrap)))))) |
| 8952 | |
| 8953 | (define-public python-jellyfish |
| 8954 | (package |
| 8955 | (name "python-jellyfish") |
| 8956 | (version "0.5.6") |
| 8957 | (source (origin |
| 8958 | (method url-fetch) |
| 8959 | (uri (pypi-uri "jellyfish" version)) |
| 8960 | (sha256 |
| 8961 | (base32 |
| 8962 | "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8")))) |
| 8963 | (build-system python-build-system) |
| 8964 | (native-inputs |
| 8965 | `(("python-pytest" ,python-pytest))) |
| 8966 | (home-page "https://github.com/jamesturk/jellyfish") |
| 8967 | (synopsis "Approximate and phonetic matching of strings") |
| 8968 | (description "Jellyfish uses a variety of string comparison and phonetic |
| 8969 | encoding algorithms to do fuzzy string matching.") |
| 8970 | (license license:bsd-2) |
| 8971 | (properties `((python2-variant . ,(delay python2-jellyfish)))))) |
| 8972 | |
| 8973 | (define-public python2-jellyfish |
| 8974 | (let ((jellyfish (package-with-python2 |
| 8975 | (strip-python2-variant python-jellyfish)))) |
| 8976 | (package (inherit jellyfish) |
| 8977 | (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv) |
| 8978 | ,@(package-native-inputs jellyfish)))))) |
| 8979 | |
| 8980 | (define-public python2-unicodecsv |
| 8981 | (package |
| 8982 | (name "python2-unicodecsv") |
| 8983 | (version "0.14.1") |
| 8984 | (source (origin |
| 8985 | (method url-fetch) |
| 8986 | ;; The test suite is not included in the PyPi release. |
| 8987 | ;; https://github.com/jdunck/python-unicodecsv/issues/19 |
| 8988 | (uri (string-append "https://github.com/jdunck/python-unicodecsv/" |
| 8989 | "archive/" version ".tar.gz")) |
| 8990 | (file-name (string-append name "-" version ".tar.gz")) |
| 8991 | (sha256 |
| 8992 | (base32 |
| 8993 | "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w")))) |
| 8994 | (build-system python-build-system) |
| 8995 | (arguments |
| 8996 | `(;; It supports Python 3, but Python 3 can already do Unicode CSV. |
| 8997 | #:python ,python-2)) |
| 8998 | (native-inputs |
| 8999 | `(("python2-unittest2" ,python2-unittest2))) |
| 9000 | (home-page "https://github.com/jdunck/python-unicodecsv") |
| 9001 | (synopsis "Unicode CSV module for Python 2") |
| 9002 | (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV |
| 9003 | module, adding support for Unicode strings.") |
| 9004 | (license license:bsd-2))) |
| 9005 | |
| 9006 | (define-public python-rarfile |
| 9007 | (package |
| 9008 | (name "python-rarfile") |
| 9009 | (version "2.8") |
| 9010 | (source (origin |
| 9011 | (method url-fetch) |
| 9012 | (uri (pypi-uri "rarfile" version)) |
| 9013 | (sha256 |
| 9014 | (base32 |
| 9015 | "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra")))) |
| 9016 | (build-system python-build-system) |
| 9017 | (arguments |
| 9018 | '(#:phases |
| 9019 | (modify-phases %standard-phases |
| 9020 | (replace 'check |
| 9021 | ;; Many tests fail, but the installation proceeds. |
| 9022 | (lambda _ (invoke "make" "-C" "test" "test")))))) |
| 9023 | (native-inputs |
| 9024 | `(("which" ,which))) ; required for tests |
| 9025 | (propagated-inputs |
| 9026 | `(("libarchive" ,libarchive))) |
| 9027 | (home-page "https://github.com/markokr/rarfile") |
| 9028 | (synopsis "RAR archive reader for Python") |
| 9029 | (description "This is Python module for RAR archive reading. The interface |
| 9030 | is made as zipfile like as possible.") |
| 9031 | (license license:isc))) |
| 9032 | |
| 9033 | (define-public python2-rarfile |
| 9034 | (package-with-python2 python-rarfile)) |
| 9035 | |
| 9036 | (define-public python-magic |
| 9037 | (package |
| 9038 | (name "python-magic") |
| 9039 | (version "0.4.15") |
| 9040 | (source |
| 9041 | (origin |
| 9042 | (method url-fetch) |
| 9043 | (uri (pypi-uri "python-magic" version)) |
| 9044 | (sha256 |
| 9045 | (base32 |
| 9046 | "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk")) |
| 9047 | (file-name (string-append name "-" version "-checkout")))) |
| 9048 | (build-system python-build-system) |
| 9049 | (arguments |
| 9050 | ;; The tests are unreliable, so don't run them. The tests fail |
| 9051 | ;; under Python3 because they were written for Python2 and |
| 9052 | ;; contain import statements that do not work in Python3. One of |
| 9053 | ;; the tests fails under Python2 because its assertions are |
| 9054 | ;; overly stringent; it relies on comparing output strings which |
| 9055 | ;; are brittle and can change depending on the version of |
| 9056 | ;; libmagic being used and the system on which the test is |
| 9057 | ;; running. In my case, under GuixSD 0.10.0, only one test |
| 9058 | ;; failed, and it seems to have failed only because the version |
| 9059 | ;; of libmagic that is packaged in Guix outputs a slightly |
| 9060 | ;; different (but not wrong) string than the one that the test |
| 9061 | ;; expected. |
| 9062 | '(#:tests? #f |
| 9063 | #:phases (modify-phases %standard-phases |
| 9064 | ;; Replace a specific method call with a hard-coded |
| 9065 | ;; path to the necessary libmagic.so file in the |
| 9066 | ;; store. If we don't do this, then the method call |
| 9067 | ;; will fail to find the libmagic.so file, which in |
| 9068 | ;; turn will cause any application using |
| 9069 | ;; python-magic to fail. |
| 9070 | (add-before 'build 'hard-code-path-to-libmagic |
| 9071 | (lambda* (#:key inputs #:allow-other-keys) |
| 9072 | (let ((file (assoc-ref inputs "file"))) |
| 9073 | (substitute* "magic.py" |
| 9074 | (("ctypes.util.find_library\\('magic'\\)") |
| 9075 | (string-append "'" file "/lib/libmagic.so'"))) |
| 9076 | #t))) |
| 9077 | (add-before 'install 'disable-egg-compression |
| 9078 | (lambda _ |
| 9079 | (let ((port (open-file "setup.cfg" "a"))) |
| 9080 | (display "\n[easy_install]\nzip_ok = 0\n" |
| 9081 | port) |
| 9082 | (close-port port) |
| 9083 | #t)))))) |
| 9084 | (inputs |
| 9085 | ;; python-magic needs to be able to find libmagic.so. |
| 9086 | `(("file" ,file))) |
| 9087 | (home-page |
| 9088 | "https://github.com/ahupp/python-magic") |
| 9089 | (synopsis |
| 9090 | "File type identification using libmagic") |
| 9091 | (description |
| 9092 | "This module uses ctypes to access the libmagic file type |
| 9093 | identification library. It makes use of the local magic database and |
| 9094 | supports both textual and MIME-type output. Note that this module and |
| 9095 | the python-file module both provide a \"magic.py\" file; these two |
| 9096 | modules, which are different and were developed separately, both serve |
| 9097 | the same purpose: to provide Python bindings for libmagic.") |
| 9098 | (license license:expat))) |
| 9099 | |
| 9100 | (define-public python2-magic |
| 9101 | (package-with-python2 python-magic)) |
| 9102 | |
| 9103 | (define-public python2-s3cmd |
| 9104 | (package |
| 9105 | (name "python2-s3cmd") |
| 9106 | (version "1.6.1") |
| 9107 | (source |
| 9108 | (origin |
| 9109 | (method url-fetch) |
| 9110 | (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/" |
| 9111 | "s3cmd-" version ".tar.gz")) |
| 9112 | (sha256 |
| 9113 | (base32 |
| 9114 | "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) |
| 9115 | (build-system python-build-system) |
| 9116 | (arguments |
| 9117 | ;; s3cmd is written for python2 only and contains no tests. |
| 9118 | `(#:python ,python-2 |
| 9119 | #:tests? #f)) |
| 9120 | (propagated-inputs |
| 9121 | `(("python2-dateutil" ,python2-dateutil) |
| 9122 | ;; The python-file package also provides a magic.py module. |
| 9123 | ;; This is an unfortunate state of affairs; however, s3cmd |
| 9124 | ;; fails to install if it cannot find specifically the |
| 9125 | ;; python-magic package. Thus we include it, instead of using |
| 9126 | ;; python-file. Ironically, s3cmd sometimes works better |
| 9127 | ;; without libmagic bindings at all: |
| 9128 | ;; https://github.com/s3tools/s3cmd/issues/198 |
| 9129 | ("python2-magic" ,python2-magic))) |
| 9130 | (home-page "http://s3tools.org/s3cmd") |
| 9131 | (synopsis "Command line tool for S3-compatible storage services") |
| 9132 | (description |
| 9133 | "S3cmd is a command line tool for uploading, retrieving and managing data |
| 9134 | in storage services that are compatible with the Amazon Simple Storage |
| 9135 | Service (S3) protocol, including S3 itself. It supports rsync-like backup, |
| 9136 | GnuPG encryption, and more. It also supports management of Amazon's |
| 9137 | CloudFront content delivery network.") |
| 9138 | (license license:gpl2+))) |
| 9139 | |
| 9140 | (define-public python-pkgconfig |
| 9141 | (package |
| 9142 | (name "python-pkgconfig") |
| 9143 | (version "1.3.1") |
| 9144 | (source |
| 9145 | (origin |
| 9146 | (method url-fetch) |
| 9147 | (uri (pypi-uri "pkgconfig" version)) |
| 9148 | (sha256 |
| 9149 | (base32 |
| 9150 | "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb")))) |
| 9151 | (build-system python-build-system) |
| 9152 | (native-inputs |
| 9153 | `(("python-nose" ,python-nose))) |
| 9154 | (inputs |
| 9155 | `(("pkg-config" ,pkg-config))) |
| 9156 | (arguments |
| 9157 | `(#:phases |
| 9158 | (modify-phases %standard-phases |
| 9159 | (add-before 'build 'patch |
| 9160 | ;; Hard-code the path to pkg-config. |
| 9161 | (lambda _ |
| 9162 | (substitute* "pkgconfig/pkgconfig.py" |
| 9163 | (("cmd = 'pkg-config") |
| 9164 | (string-append "cmd = '" (which "pkg-config")))) |
| 9165 | #t)) |
| 9166 | (replace 'check |
| 9167 | (lambda _ |
| 9168 | (invoke "nosetests" "test.py")))))) |
| 9169 | (home-page "https://github.com/matze/pkgconfig") |
| 9170 | (synopsis "Python interface for pkg-config") |
| 9171 | (description "This module provides a Python interface to pkg-config. It |
| 9172 | can be used to find all pkg-config packages, check if a package exists, |
| 9173 | check if a package meets certain version requirements, query CFLAGS and |
| 9174 | LDFLAGS and parse the output to build extensions with setup.py.") |
| 9175 | (license license:expat))) |
| 9176 | |
| 9177 | (define-public python2-pkgconfig |
| 9178 | (package-with-python2 python-pkgconfig)) |
| 9179 | |
| 9180 | (define-public python-bz2file |
| 9181 | (package |
| 9182 | (name "python-bz2file") |
| 9183 | (version "0.98") |
| 9184 | (source |
| 9185 | (origin |
| 9186 | (method url-fetch) |
| 9187 | (uri (pypi-uri "bz2file" version)) |
| 9188 | (sha256 |
| 9189 | (base32 |
| 9190 | "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) |
| 9191 | (build-system python-build-system) |
| 9192 | (arguments |
| 9193 | `(#:tests? #f)) ; Tests use deprecated python modules. |
| 9194 | (home-page "https://github.com/nvawda/bz2file") |
| 9195 | (synopsis "Read and write bzip2-compressed files") |
| 9196 | (description |
| 9197 | "Bz2file is a Python library for reading and writing bzip2-compressed |
| 9198 | files. It contains a drop-in replacement for the I/O interface in the |
| 9199 | standard library's @code{bz2} module, including features from the latest |
| 9200 | development version of CPython that are not available in older releases.") |
| 9201 | (license license:asl2.0))) |
| 9202 | |
| 9203 | (define-public python2-bz2file |
| 9204 | (package-with-python2 python-bz2file)) |
| 9205 | |
| 9206 | (define-public python-future |
| 9207 | (package |
| 9208 | (name "python-future") |
| 9209 | (version "0.17.1") |
| 9210 | (source |
| 9211 | (origin |
| 9212 | (method url-fetch) |
| 9213 | (uri (pypi-uri "future" version)) |
| 9214 | (sha256 |
| 9215 | (base32 |
| 9216 | "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137")))) |
| 9217 | (build-system python-build-system) |
| 9218 | ;; Many tests connect to the network or are otherwise flawed. |
| 9219 | ;; https://github.com/PythonCharmers/python-future/issues/210 |
| 9220 | (arguments |
| 9221 | `(#:tests? #f)) |
| 9222 | (home-page "http://python-future.org") |
| 9223 | (synopsis "Single-source support for Python 3 and 2") |
| 9224 | (description |
| 9225 | "@code{python-future} is the missing compatibility layer between Python 2 and |
| 9226 | Python 3. It allows you to use a single, clean Python 3.x-compatible codebase |
| 9227 | to support both Python 2 and Python 3 with minimal overhead.") |
| 9228 | (license license:expat))) |
| 9229 | |
| 9230 | (define-public python2-future |
| 9231 | (package-with-python2 python-future)) |
| 9232 | |
| 9233 | (define-public python-cysignals |
| 9234 | (package |
| 9235 | (name "python-cysignals") |
| 9236 | (version "1.9.0") |
| 9237 | (source |
| 9238 | (origin |
| 9239 | (method url-fetch) |
| 9240 | (uri (pypi-uri "cysignals" version)) |
| 9241 | (sha256 |
| 9242 | (base32 |
| 9243 | "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2")))) |
| 9244 | (build-system python-build-system) |
| 9245 | (native-inputs |
| 9246 | `(("python-cython" ,python-cython) |
| 9247 | ("python-sphinx" ,python-sphinx))) |
| 9248 | (inputs |
| 9249 | `(("pari-gp" ,pari-gp))) |
| 9250 | (arguments |
| 9251 | `(#:modules ((guix build python-build-system) |
| 9252 | ((guix build gnu-build-system) #:prefix gnu:) |
| 9253 | (guix build utils)) |
| 9254 | ;; FIXME: Tests are executed after installation and currently fail |
| 9255 | ;; when not installing into standard locations; the author is working |
| 9256 | ;; on a fix. |
| 9257 | #:tests? #f |
| 9258 | #:phases |
| 9259 | (modify-phases %standard-phases |
| 9260 | (add-before |
| 9261 | 'build 'configure |
| 9262 | (assoc-ref gnu:%standard-phases 'configure))))) |
| 9263 | (home-page |
| 9264 | "https://github.com/sagemath/cysignals") |
| 9265 | (synopsis |
| 9266 | "Handling of interrupts and signals for Cython") |
| 9267 | (description |
| 9268 | "The cysignals package provides mechanisms to handle interrupts (and |
| 9269 | other signals and errors) in Cython code, using two related approaches, |
| 9270 | for mixed Cython/Python code or external C libraries and pure Cython code, |
| 9271 | respectively.") |
| 9272 | (license license:lgpl3+))) |
| 9273 | |
| 9274 | (define-public python2-cysignals |
| 9275 | (package-with-python2 python-cysignals)) |
| 9276 | |
| 9277 | (define-public python2-shedskin |
| 9278 | (package |
| 9279 | (name "python2-shedskin") |
| 9280 | (version "0.9.4") |
| 9281 | (source |
| 9282 | (origin |
| 9283 | (method url-fetch) |
| 9284 | (uri (string-append "https://github.com/shedskin/shedskin/" |
| 9285 | "releases/download/v" version |
| 9286 | "/shedskin-" version ".tgz")) |
| 9287 | (sha256 |
| 9288 | (base32 |
| 9289 | "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41")))) |
| 9290 | (build-system python-build-system) |
| 9291 | (arguments |
| 9292 | `(#:python ,python-2 |
| 9293 | #:phases (modify-phases %standard-phases |
| 9294 | (add-after 'unpack 'fix-resulting-include-libs |
| 9295 | (lambda* (#:key inputs #:allow-other-keys) |
| 9296 | (let ((libgc (assoc-ref inputs "libgc")) |
| 9297 | (pcre (assoc-ref inputs "pcre"))) |
| 9298 | (substitute* "shedskin/makefile.py" |
| 9299 | (("variable == 'CCFLAGS':[ ]*") |
| 9300 | (string-append "variable == 'CCFLAGS':\n" |
| 9301 | " line += ' -I " pcre "/include" |
| 9302 | " -I " libgc "/include'")) |
| 9303 | (("variable == 'LFLAGS':[ ]*") |
| 9304 | (string-append "variable == 'LFLAGS':\n" |
| 9305 | " line += ' -L" pcre "/lib" |
| 9306 | " -L " libgc "/lib'"))) |
| 9307 | #t)))))) |
| 9308 | (inputs `(("pcre" ,pcre) |
| 9309 | ("libgc" ,libgc))) |
| 9310 | (home-page "https://shedskin.github.io/") |
| 9311 | (synopsis "Experimental Python-2 to C++ Compiler") |
| 9312 | (description (string-append "This is an experimental compiler for a subset of |
| 9313 | Python. It generates C++ code and a Makefile.")) |
| 9314 | (license (list license:gpl3 license:bsd-3 license:expat)))) |
| 9315 | |
| 9316 | (define-public python2-rope |
| 9317 | (package |
| 9318 | (name "python2-rope") |
| 9319 | (version "0.11.0") |
| 9320 | (source |
| 9321 | (origin |
| 9322 | (method url-fetch) |
| 9323 | (uri (pypi-uri "rope" version)) |
| 9324 | (sha256 |
| 9325 | (base32 |
| 9326 | "1cppm0pa9aqgsbkq130lskrzmrvjs5vpiavjjbhpz2fdw52w8251")))) |
| 9327 | (arguments |
| 9328 | ;; Rope has only partial python3 support, see `python-rope' |
| 9329 | `(#:python ,python-2)) |
| 9330 | (build-system python-build-system) |
| 9331 | (native-inputs |
| 9332 | `(("python2-unittest2" ,python2-unittest2))) |
| 9333 | (home-page "https://github.com/python-rope/rope") |
| 9334 | (synopsis "Refactoring library for Python") |
| 9335 | (description "Rope is a refactoring library for Python. It facilitates |
| 9336 | the renaming, moving and extracting of attributes, functions, modules, fields |
| 9337 | and parameters in Python 2 source code. These refactorings can also be applied |
| 9338 | to occurrences in strings and comments.") |
| 9339 | (license license:gpl2))) |
| 9340 | |
| 9341 | (define-public python-rope |
| 9342 | (package |
| 9343 | (inherit python2-rope) |
| 9344 | (name "python-rope") |
| 9345 | (arguments `(#:python ,python-wrapper |
| 9346 | ;; XXX: Only partial python3 support, results in some failing |
| 9347 | ;; tests: <https://github.com/python-rope/rope/issues/247>. |
| 9348 | #:tests? #f)) |
| 9349 | (properties `((python2-variant . ,(delay python2-rope)))))) |
| 9350 | |
| 9351 | (define-public python-py3status |
| 9352 | (package |
| 9353 | (name "python-py3status") |
| 9354 | (version "3.16") |
| 9355 | (source |
| 9356 | (origin |
| 9357 | (method url-fetch) |
| 9358 | (uri (pypi-uri "py3status" version)) |
| 9359 | (sha256 |
| 9360 | (base32 |
| 9361 | "1xrfph277bgjln3jbpzpgkhxad04fjvj7s3xfil42q1sxi4s3q3g")))) |
| 9362 | (build-system python-build-system) |
| 9363 | (inputs |
| 9364 | `(("file" ,file))) |
| 9365 | (arguments |
| 9366 | '(#:phases |
| 9367 | (modify-phases %standard-phases |
| 9368 | ;; 'file' is used for detection of configuration file encoding |
| 9369 | ;; let's make link the dependency to particular input |
| 9370 | (add-before 'build 'patch-file-path |
| 9371 | (lambda* (#:key inputs #:allow-other-keys) |
| 9372 | (let ((file-path (assoc-ref inputs "file"))) |
| 9373 | (substitute* "py3status/parse_config.py" |
| 9374 | (("\\['file', '-b'") |
| 9375 | (string-append "['" file-path "/bin/file', '-b'"))) |
| 9376 | #t)))) |
| 9377 | #:tests? #f)) ; TODO: Requires many libraries not in Guix. |
| 9378 | (home-page "https://github.com/ultrabug/py3status") |
| 9379 | (synopsis "Extensible i3status wrapper written in Python") |
| 9380 | (description "py3status is an i3status wrapper which extends i3status |
| 9381 | functionality in a modular way, allowing you to extend your panel with your |
| 9382 | own code, responding to click events and updating clock every second.") |
| 9383 | (license license:bsd-3))) |
| 9384 | |
| 9385 | (define-public python-tblib |
| 9386 | (package |
| 9387 | (name "python-tblib") |
| 9388 | (version "1.3.2") |
| 9389 | (source (origin |
| 9390 | (method url-fetch) |
| 9391 | (uri (pypi-uri "tblib" version)) |
| 9392 | (sha256 (base32 |
| 9393 | "1rsg8h069kqgncyv8fgzyj6qflk6j10cb78pa5jk34ixwq044vj3")))) |
| 9394 | (build-system python-build-system) |
| 9395 | (arguments |
| 9396 | `(#:phases |
| 9397 | (modify-phases %standard-phases |
| 9398 | (add-before 'check 'adjust-tests |
| 9399 | (lambda _ |
| 9400 | (when (which "python3") |
| 9401 | ;; Adjust the example output to match that of Python 3.7: |
| 9402 | ;; <https://github.com/ionelmc/python-tblib/issues/36>. |
| 9403 | (substitute* "README.rst" |
| 9404 | (("Exception\\('fail',") "Exception('fail'")) |
| 9405 | #t))) |
| 9406 | (replace 'check |
| 9407 | (lambda _ |
| 9408 | ;; Upstream runs tests after installation and the package itself |
| 9409 | ;; resides in a subdirectory. Extend PYTHONPATH so it will be |
| 9410 | ;; found. |
| 9411 | (setenv "PYTHONPATH" |
| 9412 | (string-append (getcwd) "/build/lib:" |
| 9413 | (getenv "PYTHONPATH"))) |
| 9414 | (invoke "py.test" "-vv" "tests" "README.rst")))))) |
| 9415 | (native-inputs |
| 9416 | `(("python-pytest" ,python-pytest) |
| 9417 | ("python-six" ,python-six))) |
| 9418 | (home-page "https://github.com/ionelmc/python-tblib") |
| 9419 | (synopsis "Traceback serialization library") |
| 9420 | (description |
| 9421 | "Traceback serialization allows you to: |
| 9422 | |
| 9423 | @enumerate |
| 9424 | @item Pickle tracebacks and raise exceptions with pickled tracebacks in |
| 9425 | different processes. This allows better error handling when running code over |
| 9426 | multiple processes (imagine multiprocessing, billiard, futures, celery etc). |
| 9427 | |
| 9428 | @item Parse traceback strings and raise with the parsed tracebacks. |
| 9429 | @end enumerate\n") |
| 9430 | (license license:bsd-3))) |
| 9431 | |
| 9432 | (define-public python2-tblib |
| 9433 | (package-with-python2 python-tblib)) |
| 9434 | |
| 9435 | (define-public python-greenlet |
| 9436 | (package |
| 9437 | (name "python-greenlet") |
| 9438 | (version "0.4.15") |
| 9439 | (source (origin |
| 9440 | (method url-fetch) |
| 9441 | (uri (pypi-uri "greenlet" version)) |
| 9442 | (sha256 |
| 9443 | (base32 |
| 9444 | "1g4g1wwc472ds89zmqlpyan3fbnzpa8qm48z3z1y6mlk44z485ll")))) |
| 9445 | (build-system python-build-system) |
| 9446 | (home-page "https://greenlet.readthedocs.io/") |
| 9447 | (synopsis "Lightweight in-process concurrent programming") |
| 9448 | (description |
| 9449 | "Greenlet package is a spin-off of Stackless, a version of CPython |
| 9450 | that supports micro-threads called \"tasklets\". Tasklets run |
| 9451 | pseudo-concurrently (typically in a single or a few OS-level threads) and |
| 9452 | are synchronized with data exchanges on \"channels\".") |
| 9453 | (license (list license:psfl license:expat)))) |
| 9454 | |
| 9455 | (define-public python2-greenlet |
| 9456 | (package-with-python2 python-greenlet)) |
| 9457 | |
| 9458 | (define-public python-objgraph |
| 9459 | (package |
| 9460 | (name "python-objgraph") |
| 9461 | (version "3.4.0") |
| 9462 | (source |
| 9463 | (origin |
| 9464 | (method url-fetch) |
| 9465 | (uri (pypi-uri "objgraph" version)) |
| 9466 | (sha256 |
| 9467 | (base32 |
| 9468 | "184m09am5gpbqfaiy7l0hwh476mczbrly1dffs0rw2p1d1i2q32a")))) |
| 9469 | (build-system python-build-system) |
| 9470 | (propagated-inputs |
| 9471 | `(("python-graphviz" ,python-graphviz))) |
| 9472 | (native-inputs |
| 9473 | `(("python-mock" ,python-mock) |
| 9474 | ("graphviz" ,graphviz))) |
| 9475 | (home-page "https://mg.pov.lt/objgraph/") |
| 9476 | (synopsis "Draw Python object reference graphs with graphviz") |
| 9477 | (description |
| 9478 | "This package provides tools to draw Python object reference graphs with |
| 9479 | graphviz.") |
| 9480 | (license license:expat))) |
| 9481 | |
| 9482 | (define-public python-gevent |
| 9483 | (package |
| 9484 | (name "python-gevent") |
| 9485 | (version "1.3.7") |
| 9486 | (source (origin |
| 9487 | (method url-fetch) |
| 9488 | (uri (pypi-uri "gevent" version)) |
| 9489 | (sha256 |
| 9490 | (base32 |
| 9491 | "0b0fr04qdk1p4sniv87fh8z5psac60x01pv054kpgi94520g81iz")) |
| 9492 | (modules '((guix build utils))) |
| 9493 | (snippet |
| 9494 | '(begin |
| 9495 | ;; unbunding libev and c-ares |
| 9496 | (delete-file-recursively "deps") |
| 9497 | #t)))) |
| 9498 | (build-system python-build-system) |
| 9499 | (arguments |
| 9500 | `(#:modules ((ice-9 ftw) |
| 9501 | (ice-9 match) |
| 9502 | (srfi srfi-26) |
| 9503 | (guix build utils) |
| 9504 | (guix build python-build-system)) |
| 9505 | #:phases (modify-phases %standard-phases |
| 9506 | (add-after 'unpack 'unpack-libev |
| 9507 | (lambda* (#:key inputs #:allow-other-keys) |
| 9508 | (mkdir-p "deps/libev") |
| 9509 | ;; FIXME: gevent requires building libev, even though |
| 9510 | ;; it only links against the proper one. |
| 9511 | (invoke "tar" "-xf" (assoc-ref inputs "libev-source") |
| 9512 | "--strip-components=1" "-C" "deps/libev"))) |
| 9513 | (add-before 'patch-source-shebangs 'patch-hard-coded-paths |
| 9514 | (lambda _ |
| 9515 | (substitute* "src/gevent/subprocess.py" |
| 9516 | (("/bin/sh") (which "sh"))) |
| 9517 | (for-each (lambda (file) |
| 9518 | (substitute* file |
| 9519 | (("/bin/sh") (which "sh")) |
| 9520 | (("/bin/true") (which "true")))) |
| 9521 | (find-files "src/greentest" "\\.py$")) |
| 9522 | #t)) |
| 9523 | (add-before 'build 'do-not-use-bundled-sources |
| 9524 | (lambda* (#:key inputs #:allow-other-keys) |
| 9525 | (setenv "CONFIG_SHELL" (which "bash")) |
| 9526 | (setenv "LIBEV_EMBED" "false") |
| 9527 | (setenv "CARES_EMBED" "false") |
| 9528 | (setenv "EMBED" "false") |
| 9529 | |
| 9530 | (let ((greenlet (string-append |
| 9531 | (assoc-ref inputs "python-greenlet") |
| 9532 | "/include"))) |
| 9533 | (match (scandir greenlet |
| 9534 | (lambda (item) |
| 9535 | (string-prefix? "python" item))) |
| 9536 | ((python) |
| 9537 | (setenv "CPATH" |
| 9538 | (string-append greenlet "/" python))))) |
| 9539 | #t)) |
| 9540 | (add-before 'check 'skip-timer-test |
| 9541 | (lambda _ |
| 9542 | ;; XXX: Skip 'TestTimerResolution', which appears to be |
| 9543 | ;; unreliable. |
| 9544 | (substitute* "src/greentest/test__core_timer.py" |
| 9545 | (("not greentest.RUNNING_ON_CI") "False")) |
| 9546 | #t)) |
| 9547 | (replace 'check |
| 9548 | (lambda _ |
| 9549 | ;; Make sure the build directory is on PYTHONPATH. |
| 9550 | (setenv "PYTHONPATH" |
| 9551 | (string-append |
| 9552 | (getenv "PYTHONPATH") ":" |
| 9553 | (getcwd) "/build/" |
| 9554 | (car (scandir "build" (cut string-prefix? "lib." <>))))) |
| 9555 | (with-directory-excursion "src/greentest" |
| 9556 | ;; XXX: Many tests require network access. Instead we only |
| 9557 | ;; run known-good tests. Unfortunately we cannot use |
| 9558 | ;; recursion here since this directory also contains |
| 9559 | ;; Python-version-specific subfolders. |
| 9560 | (apply invoke "python" "testrunner.py" "--config" |
| 9561 | "known_failures.py" |
| 9562 | (scandir "." (cut regexp-exec |
| 9563 | (make-regexp "test_+(subprocess|core)") |
| 9564 | <>))))))))) |
| 9565 | (propagated-inputs |
| 9566 | `(("python-greenlet" ,python-greenlet) |
| 9567 | ("python-objgraph" ,python-objgraph))) |
| 9568 | (native-inputs |
| 9569 | `(("libev-source" ,(package-source libev)) |
| 9570 | ("python-six" ,python-six))) |
| 9571 | (inputs |
| 9572 | `(("c-ares" ,c-ares) |
| 9573 | ("libev" ,libev))) |
| 9574 | (home-page "http://www.gevent.org/") |
| 9575 | (synopsis "Coroutine-based network library") |
| 9576 | (description |
| 9577 | "gevent is a coroutine-based Python networking library that uses greenlet |
| 9578 | to provide a high-level synchronous API on top of the libev event loop.") |
| 9579 | (license license:expat) |
| 9580 | (properties `((python2-variant . ,(delay python2-gevent)))))) |
| 9581 | |
| 9582 | (define-public python2-gevent |
| 9583 | (let ((base (package-with-python2 |
| 9584 | (strip-python2-variant python-gevent)))) |
| 9585 | (package |
| 9586 | (inherit base) |
| 9587 | (native-inputs `(,@(package-native-inputs python-gevent) |
| 9588 | ("python-mock" ,python2-mock)))))) |
| 9589 | |
| 9590 | (define-public python-fastimport |
| 9591 | (package |
| 9592 | (name "python-fastimport") |
| 9593 | (version "0.9.6") |
| 9594 | (source |
| 9595 | (origin |
| 9596 | (method url-fetch) |
| 9597 | (uri (pypi-uri "fastimport" version)) |
| 9598 | (sha256 |
| 9599 | (base32 "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43")))) |
| 9600 | (build-system python-build-system) |
| 9601 | (home-page "https://github.com/jelmer/python-fastimport") |
| 9602 | (synopsis "VCS fastimport parser and generator in Python") |
| 9603 | (description "This package provides a parser for and generator of the Git |
| 9604 | @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport} |
| 9605 | format.") |
| 9606 | (license license:gpl2+))) |
| 9607 | |
| 9608 | (define-public python2-fastimport |
| 9609 | (package-with-python2 python-fastimport)) |
| 9610 | |
| 9611 | (define-public python-twisted |
| 9612 | (package |
| 9613 | (name "python-twisted") |
| 9614 | (version "19.2.0") |
| 9615 | (source (origin |
| 9616 | (method url-fetch) |
| 9617 | (uri (pypi-uri "Twisted" version ".tar.bz2")) |
| 9618 | (sha256 |
| 9619 | (base32 |
| 9620 | "1gmb8d57s13d8znvqnxi47vqzqz141z443dbxg9wjkp8ia9f220p")))) |
| 9621 | (build-system python-build-system) |
| 9622 | (arguments |
| 9623 | '(#:tests? #f)) ; FIXME: Some tests are failing. |
| 9624 | (propagated-inputs |
| 9625 | `(("python-zope-interface" ,python-zope-interface) |
| 9626 | ("python-pyhamcrest" ,python-pyhamcrest) |
| 9627 | ("python-incremental" ,python-incremental) |
| 9628 | ("python-hyperlink" ,python-hyperlink) |
| 9629 | ("python-constantly" ,python-constantly) |
| 9630 | ("python-automat" ,python-automat))) |
| 9631 | (home-page "https://twistedmatrix.com/") |
| 9632 | (synopsis "Asynchronous networking framework written in Python") |
| 9633 | (description |
| 9634 | "Twisted is an extensible framework for Python programming, with special |
| 9635 | focus on event-based network programming and multiprotocol integration.") |
| 9636 | (license license:expat))) |
| 9637 | |
| 9638 | (define-public python2-twisted |
| 9639 | (package-with-python2 python-twisted)) |
| 9640 | |
| 9641 | (define-public python-pika |
| 9642 | (package |
| 9643 | (name "python-pika") |
| 9644 | (version "0.12.0") |
| 9645 | (source |
| 9646 | (origin |
| 9647 | (method url-fetch) |
| 9648 | (uri (pypi-uri "pika" version)) |
| 9649 | (sha256 |
| 9650 | (base32 |
| 9651 | "0ld7akgm93s8pfa4dsx9qlzlhj76zspbr5m9ms0ns09yd2w4aq9h")))) |
| 9652 | (build-system python-build-system) |
| 9653 | (native-inputs |
| 9654 | `(("python-pyev" ,python-pyev) |
| 9655 | ("python-tornado" ,python-tornado) |
| 9656 | ("python-twisted" ,python-twisted))) |
| 9657 | (home-page "https://pika.readthedocs.org") |
| 9658 | (synopsis "Pure Python AMQP Client Library") |
| 9659 | (description |
| 9660 | "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing |
| 9661 | Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying |
| 9662 | network support library.") |
| 9663 | (license license:bsd-3))) |
| 9664 | |
| 9665 | (define-public python2-pika |
| 9666 | (package-with-python2 python-pika)) |
| 9667 | |
| 9668 | (define-public python-ply |
| 9669 | (package |
| 9670 | (name "python-ply") |
| 9671 | (version "3.10") |
| 9672 | (source |
| 9673 | (origin |
| 9674 | (method url-fetch) |
| 9675 | (uri (pypi-uri "ply" version)) |
| 9676 | (sha256 |
| 9677 | (base32 |
| 9678 | "1jxsr1d2f732r6ljhvm827113dckwl6qwakfvpbdhcbhvpvlmscn")))) |
| 9679 | (build-system python-build-system) |
| 9680 | (home-page "http://www.dabeaz.com/ply/") |
| 9681 | (synopsis "Python Lex & Yacc") |
| 9682 | (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python. |
| 9683 | It uses LR parsing and does extensive error checking.") |
| 9684 | (license license:bsd-3))) |
| 9685 | |
| 9686 | (define-public python2-ply |
| 9687 | (package-with-python2 python-ply)) |
| 9688 | |
| 9689 | (define-public python-tabulate |
| 9690 | (package |
| 9691 | (name "python-tabulate") |
| 9692 | (version "0.7.7") |
| 9693 | (source (origin |
| 9694 | (method url-fetch) |
| 9695 | (uri (pypi-uri "tabulate" version)) |
| 9696 | (sha256 |
| 9697 | (base32 |
| 9698 | "1inqhspd4frxnp08c32yndr0lc4px1xfkqah184i5w09gkhvi843")))) |
| 9699 | (build-system python-build-system) |
| 9700 | (arguments |
| 9701 | ;; FIXME: The pypi release tarball is missing a 'test/common.py' |
| 9702 | ;; and the latest release is not tagged in the upstream repository. |
| 9703 | '(#:tests? #f)) |
| 9704 | (home-page "https://bitbucket.org/astanin/python-tabulate") |
| 9705 | (synopsis "Pretty-print tabular data") |
| 9706 | (description |
| 9707 | "Tabulate is a library and command-line utility to pretty-print tabular |
| 9708 | data in Python.") |
| 9709 | (license license:expat))) |
| 9710 | |
| 9711 | (define-public python2-tabulate |
| 9712 | (package-with-python2 python-tabulate)) |
| 9713 | |
| 9714 | (define-public python-kazoo |
| 9715 | (package |
| 9716 | (name "python-kazoo") |
| 9717 | (version "2.4.0") |
| 9718 | (source |
| 9719 | (origin |
| 9720 | (method url-fetch) |
| 9721 | (uri (pypi-uri "kazoo" version)) |
| 9722 | (sha256 |
| 9723 | (base32 |
| 9724 | "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7")))) |
| 9725 | (build-system python-build-system) |
| 9726 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper |
| 9727 | (propagated-inputs |
| 9728 | `(("python-six" ,python-six))) |
| 9729 | (home-page "https://kazoo.readthedocs.org") |
| 9730 | (synopsis "High-level Zookeeper client library") |
| 9731 | (description |
| 9732 | "Kazoo is a Python client library for the Apache Zookeeper distributed |
| 9733 | application service. It is designed to be easy to use and to avoid common |
| 9734 | programming errors.") |
| 9735 | (license license:asl2.0))) |
| 9736 | |
| 9737 | (define-public python2-kazoo |
| 9738 | (package-with-python2 python-kazoo)) |
| 9739 | |
| 9740 | (define-public python-pykafka |
| 9741 | (package |
| 9742 | (name "python-pykafka") |
| 9743 | (version "2.4.0") |
| 9744 | (source (origin |
| 9745 | (method url-fetch) |
| 9746 | (uri (pypi-uri "pykafka" version)) |
| 9747 | (sha256 |
| 9748 | (base32 |
| 9749 | "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv")))) |
| 9750 | (build-system python-build-system) |
| 9751 | (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc. |
| 9752 | (propagated-inputs |
| 9753 | `(("python-gevent" ,python-gevent) |
| 9754 | ("python-kazoo" ,python-kazoo) |
| 9755 | ("python-tabulate" ,python-tabulate))) |
| 9756 | (inputs |
| 9757 | `(("librdkafka" ,librdkafka))) |
| 9758 | (home-page "https://pykafka.readthedocs.io/") |
| 9759 | (synopsis "Apache Kafka client for Python") |
| 9760 | (description |
| 9761 | "PyKafka is a client for the Apache Kafka distributed messaging system. |
| 9762 | It includes Python implementations of Kafka producers and consumers, which |
| 9763 | are optionally backed by a C extension built on librdkafka.") |
| 9764 | (license license:asl2.0))) |
| 9765 | |
| 9766 | (define-public python2-pykafka |
| 9767 | (package-with-python2 python-pykafka)) |
| 9768 | |
| 9769 | (define-public python-wcwidth |
| 9770 | (package |
| 9771 | (name "python-wcwidth") |
| 9772 | (version "0.1.7") |
| 9773 | (source |
| 9774 | (origin |
| 9775 | (method url-fetch) |
| 9776 | (uri (pypi-uri "wcwidth" version)) |
| 9777 | (sha256 |
| 9778 | (base32 |
| 9779 | "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx")))) |
| 9780 | (build-system python-build-system) |
| 9781 | (home-page "https://github.com/jquast/wcwidth") |
| 9782 | (synopsis "Measure number of terminal column cells of wide-character codes") |
| 9783 | (description "Wcwidth measures the number of terminal column cells of |
| 9784 | wide-character codes. It is useful for those implementing a terminal emulator, |
| 9785 | or programs that carefully produce output to be interpreted by one. It is a |
| 9786 | Python implementation of the @code{wcwidth} and @code{wcswidth} C functions |
| 9787 | specified in POSIX.1-2001 and POSIX.1-2008.") |
| 9788 | (license license:expat))) |
| 9789 | |
| 9790 | (define-public python2-wcwidth |
| 9791 | (package-with-python2 python-wcwidth)) |
| 9792 | |
| 9793 | (define-public python2-jsonrpclib |
| 9794 | (package |
| 9795 | (name "python2-jsonrpclib") |
| 9796 | (version "0.1.7") |
| 9797 | (source (origin |
| 9798 | (method url-fetch) |
| 9799 | (uri (pypi-uri "jsonrpclib" version)) |
| 9800 | (sha256 |
| 9801 | (base32 |
| 9802 | "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z")))) |
| 9803 | (build-system python-build-system) |
| 9804 | (arguments |
| 9805 | `(#:tests? #f |
| 9806 | #:python ,python-2)) |
| 9807 | (home-page "https://github.com/joshmarshall/jsonrpclib/") |
| 9808 | (synopsis "Implementation of JSON-RPC specification for Python") |
| 9809 | (description |
| 9810 | "This library is an implementation of the JSON-RPC specification. |
| 9811 | It supports both the original 1.0 specification, as well as the |
| 9812 | new (proposed) 2.0 spec, which includes batch submission, keyword arguments, |
| 9813 | etc.") |
| 9814 | (license license:asl2.0))) |
| 9815 | |
| 9816 | (define-public python-chai |
| 9817 | (package |
| 9818 | (name "python-chai") |
| 9819 | (version "1.1.2") |
| 9820 | (source (origin |
| 9821 | (method url-fetch) |
| 9822 | (uri (pypi-uri "chai" version)) |
| 9823 | (sha256 |
| 9824 | (base32 |
| 9825 | "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz")))) |
| 9826 | (build-system python-build-system) |
| 9827 | (home-page "https://github.com/agoragames/chai") |
| 9828 | (synopsis "Mocking framework for Python") |
| 9829 | (description |
| 9830 | "Chai provides an api for mocking, stubbing and spying your python |
| 9831 | objects, patterned after the Mocha library for Ruby.") |
| 9832 | (license license:bsd-3))) |
| 9833 | |
| 9834 | (define-public python2-chai |
| 9835 | (package-with-python2 python-chai)) |
| 9836 | |
| 9837 | (define-public python-inflection |
| 9838 | (package |
| 9839 | (name "python-inflection") |
| 9840 | (version "0.3.1") |
| 9841 | (source |
| 9842 | (origin (method url-fetch) |
| 9843 | (uri (pypi-uri "inflection" version)) |
| 9844 | (sha256 |
| 9845 | (base32 |
| 9846 | "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) |
| 9847 | (build-system python-build-system) |
| 9848 | (native-inputs |
| 9849 | `(("python-pytest" ,python-pytest))) |
| 9850 | (home-page "https://github.com/jpvanhal/inflection") |
| 9851 | (synopsis "Python string transformation library") |
| 9852 | (description |
| 9853 | "Inflection is a string transformation library. It singularizes |
| 9854 | and pluralizes English words, and transforms strings from CamelCase to |
| 9855 | underscored string.") |
| 9856 | (license license:expat))) |
| 9857 | |
| 9858 | (define-public python2-inflection |
| 9859 | (package-with-python2 python-inflection)) |
| 9860 | |
| 9861 | (define-public python-pylev |
| 9862 | (package |
| 9863 | (name "python-pylev") |
| 9864 | (version "1.3.0") |
| 9865 | (source (origin |
| 9866 | (method url-fetch) |
| 9867 | (uri (pypi-uri "pylev" version)) |
| 9868 | (sha256 |
| 9869 | (base32 |
| 9870 | "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) |
| 9871 | (build-system python-build-system) |
| 9872 | (home-page "https://github.com/toastdriven/pylev") |
| 9873 | (synopsis "Levenshtein distance implementation in Python") |
| 9874 | (description "Pure Python Levenshtein implementation, based off the |
| 9875 | Wikipedia code samples at |
| 9876 | @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") |
| 9877 | (license license:bsd-3))) |
| 9878 | |
| 9879 | (define-public python2-pylev |
| 9880 | (package-with-python2 python-pylev)) |
| 9881 | |
| 9882 | (define-public python-cleo |
| 9883 | (package |
| 9884 | (name "python-cleo") |
| 9885 | (version "0.6.1") |
| 9886 | (source (origin |
| 9887 | (method url-fetch) |
| 9888 | (uri (pypi-uri "cleo" version)) |
| 9889 | (sha256 |
| 9890 | (base32 |
| 9891 | "0q1cf0szr0d54am4pypzwdnm74zpladdsinad94c2fz5i06fdpf7")))) |
| 9892 | (build-system python-build-system) |
| 9893 | (native-inputs |
| 9894 | `(;; For testing |
| 9895 | ("python-mock" ,python-mock) |
| 9896 | ("python-pytest-mock" ,python-pytest-mock) |
| 9897 | ("python-pytest" ,python-pytest))) |
| 9898 | (propagated-inputs |
| 9899 | `(("python-backpack" ,python-backpack) |
| 9900 | ("python-pastel" ,python-pastel) |
| 9901 | ("python-pylev" ,python-pylev))) |
| 9902 | (home-page "https://github.com/sdispater/cleo") |
| 9903 | (synopsis "Command-line arguments library for Python") |
| 9904 | (description |
| 9905 | "Cleo allows you to create command-line commands with signature in |
| 9906 | docstring and colored output.") |
| 9907 | (license license:expat))) |
| 9908 | |
| 9909 | (define-public python2-cleo |
| 9910 | (package-with-python2 python-cleo)) |
| 9911 | |
| 9912 | (define-public python-lazy-object-proxy |
| 9913 | (package |
| 9914 | (name "python-lazy-object-proxy") |
| 9915 | (version "1.3.1") |
| 9916 | (source (origin |
| 9917 | (method url-fetch) |
| 9918 | (uri (pypi-uri "lazy-object-proxy" version)) |
| 9919 | (sha256 |
| 9920 | (base32 |
| 9921 | "0yha7q9bhw857fwaby785d63mffhngl9npwzlk9i0pwlkwvbx4gb")))) |
| 9922 | (build-system python-build-system) |
| 9923 | (home-page "https://github.com/ionelmc/python-lazy-object-proxy") |
| 9924 | (synopsis "Lazy object proxy for python") |
| 9925 | (description |
| 9926 | "Lazy object proxy is an object that wraps a callable but defers the call |
| 9927 | until the object is actually required, and caches the result of said call.") |
| 9928 | (license license:bsd-2))) |
| 9929 | |
| 9930 | (define-public python2-lazy-object-proxy |
| 9931 | (package-with-python2 python-lazy-object-proxy)) |
| 9932 | |
| 9933 | (define-public python-dnspython |
| 9934 | (package |
| 9935 | (name "python-dnspython") |
| 9936 | (version "1.15.0") |
| 9937 | (source (origin |
| 9938 | (method url-fetch) |
| 9939 | (uri (string-append "http://www.dnspython.org/kits/" |
| 9940 | version "/dnspython-" version ".tar.gz")) |
| 9941 | (sha256 |
| 9942 | (base32 |
| 9943 | "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i")))) |
| 9944 | (build-system python-build-system) |
| 9945 | (arguments '(#:tests? #f)) ; XXX: requires internet access |
| 9946 | (home-page "http://www.dnspython.org") |
| 9947 | (synopsis "DNS toolkit for Python") |
| 9948 | (description |
| 9949 | "dnspython is a DNS toolkit for Python. It supports almost all record |
| 9950 | types. It can be used for queries, zone transfers, and dynamic updates. |
| 9951 | It supports TSIG authenticated messages and EDNS0.") |
| 9952 | (license license:expat))) |
| 9953 | |
| 9954 | (define-public python2-dnspython |
| 9955 | (package-with-python2 python-dnspython)) |
| 9956 | |
| 9957 | (define-public python-email-validator |
| 9958 | (package |
| 9959 | (name "python-email-validator") |
| 9960 | (version "1.0.2") |
| 9961 | (source |
| 9962 | (origin (method url-fetch) |
| 9963 | (uri (pypi-uri "email_validator" version)) |
| 9964 | (sha256 |
| 9965 | (base32 |
| 9966 | "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6")))) |
| 9967 | (build-system python-build-system) |
| 9968 | (arguments |
| 9969 | '(#:phases |
| 9970 | (modify-phases %standard-phases |
| 9971 | (add-before 'build 'use-dnspython |
| 9972 | (lambda _ |
| 9973 | (substitute* "setup.py" |
| 9974 | (("dnspython3") "dnspython")) |
| 9975 | #t))))) |
| 9976 | (propagated-inputs |
| 9977 | `(("python-dnspython" ,python-dnspython) |
| 9978 | ("python-idna" ,python-idna))) |
| 9979 | (home-page "https://github.com/JoshData/python-email-validator") |
| 9980 | (synopsis "Email address validation library for Python") |
| 9981 | (description |
| 9982 | "This library validates email address syntax and deliverability.") |
| 9983 | (license license:cc0))) |
| 9984 | |
| 9985 | (define-public python2-email-validator |
| 9986 | (package-with-python2 python-email-validator)) |
| 9987 | |
| 9988 | (define-public python-ukpostcodeparser |
| 9989 | (package |
| 9990 | (name "python-ukpostcodeparser") |
| 9991 | (version "1.0.3") |
| 9992 | (source (origin |
| 9993 | (method url-fetch) |
| 9994 | (uri (pypi-uri "UkPostcodeParser" version)) |
| 9995 | (sha256 |
| 9996 | (base32 |
| 9997 | "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) |
| 9998 | (build-system python-build-system) |
| 9999 | (home-page "https://github.com/hamstah/ukpostcodeparser") |
| 10000 | (synopsis "UK Postcode parser for Python") |
| 10001 | (description |
| 10002 | "This library provides the @code{parse_uk_postcode} function for |
| 10003 | parsing UK postcodes.") |
| 10004 | (license license:expat))) |
| 10005 | |
| 10006 | (define-public python2-ukpostcodeparser |
| 10007 | (package-with-python2 python-ukpostcodeparser)) |
| 10008 | |
| 10009 | (define-public python-faker |
| 10010 | (package |
| 10011 | (name "python-faker") |
| 10012 | (version "0.7.9") |
| 10013 | (source (origin |
| 10014 | (method url-fetch) |
| 10015 | (uri (pypi-uri "Faker" version)) |
| 10016 | (sha256 |
| 10017 | (base32 |
| 10018 | "1fh2p2yz0fsdr4fqwxgddwbvfb6qn6vp8yx0qwqzra27yq5d1wsm")) |
| 10019 | (patches |
| 10020 | (search-patches "python-faker-fix-build-32bit.patch")) |
| 10021 | (modules '((guix build utils))) |
| 10022 | (snippet |
| 10023 | '(begin |
| 10024 | (for-each delete-file (find-files "." "\\.pyc$")) |
| 10025 | #t)))) |
| 10026 | (build-system python-build-system) |
| 10027 | (arguments |
| 10028 | '(#:phases |
| 10029 | (modify-phases %standard-phases |
| 10030 | (replace 'check |
| 10031 | (lambda _ (invoke "python" "-m" "unittest" "-v" "tests")))))) |
| 10032 | (native-inputs |
| 10033 | `(;; For testing |
| 10034 | ("python-email-validator" ,python-email-validator) |
| 10035 | ("python-mock" ,python-mock) |
| 10036 | ("python-ukpostcodeparser" ,python-ukpostcodeparser))) |
| 10037 | (propagated-inputs |
| 10038 | `(("python-dateutil" ,python-dateutil) |
| 10039 | ("python-six" ,python-six))) |
| 10040 | (home-page "https://github.com/joke2k/faker") |
| 10041 | (synopsis "Python package that generates fake data") |
| 10042 | (description |
| 10043 | "Faker is a Python package that generates fake data such as names, |
| 10044 | addresses, and phone numbers.") |
| 10045 | (license license:expat) |
| 10046 | (properties `((python2-variant . ,(delay python2-faker)))))) |
| 10047 | |
| 10048 | (define-public python2-faker |
| 10049 | (let ((base (package-with-python2 (strip-python2-variant |
| 10050 | python-faker)))) |
| 10051 | (package |
| 10052 | (inherit base) |
| 10053 | (propagated-inputs |
| 10054 | `(("python2-ipaddress" ,python2-ipaddress) |
| 10055 | ,@(package-propagated-inputs base)))))) |
| 10056 | |
| 10057 | (define-public python-pyaml |
| 10058 | (package |
| 10059 | (name "python-pyaml") |
| 10060 | (version "18.11.0") |
| 10061 | (source (origin |
| 10062 | (method url-fetch) |
| 10063 | (uri (pypi-uri "pyaml" version)) |
| 10064 | (sha256 |
| 10065 | (base32 |
| 10066 | "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr")))) |
| 10067 | (build-system python-build-system) |
| 10068 | (native-inputs |
| 10069 | `(("python-unidecode" ,python-unidecode))) |
| 10070 | (propagated-inputs |
| 10071 | `(("python-pyyaml" ,python-pyyaml))) |
| 10072 | (home-page "https://github.com/mk-fg/pretty-yaml") |
| 10073 | (synopsis "YAML pretty-print library for Python") |
| 10074 | (description |
| 10075 | "pyaml is a PyYAML based python module to produce pretty and readable |
| 10076 | YAML-serialized data.") |
| 10077 | (license license:wtfpl2))) |
| 10078 | |
| 10079 | (define-public python2-pyaml |
| 10080 | (package-with-python2 python-pyaml)) |
| 10081 | |
| 10082 | (define-public python-backpack |
| 10083 | (package |
| 10084 | (name "python-backpack") |
| 10085 | (version "0.1") |
| 10086 | (source |
| 10087 | (origin |
| 10088 | (method url-fetch) |
| 10089 | (uri (pypi-uri "backpack" version)) |
| 10090 | (sha256 |
| 10091 | (base32 |
| 10092 | "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1")))) |
| 10093 | (build-system python-build-system) |
| 10094 | (native-inputs |
| 10095 | `(("python-pytest" ,python-pytest) |
| 10096 | ("python-nose" ,python-nose))) |
| 10097 | (propagated-inputs |
| 10098 | `(("python-simplejson" ,python-simplejson))) |
| 10099 | (home-page "https://github.com/sdispater/backpack") |
| 10100 | (synopsis "Utilities for working with Python collections") |
| 10101 | (description "Backpack provides some useful utilities for working with |
| 10102 | collections of data.") |
| 10103 | (license license:expat))) |
| 10104 | |
| 10105 | (define-public python2-backpack |
| 10106 | (package-with-python2 python-backpack)) |
| 10107 | |
| 10108 | (define-public python-prompt-toolkit |
| 10109 | (package |
| 10110 | (name "python-prompt-toolkit") |
| 10111 | (version "2.0.7") |
| 10112 | (source |
| 10113 | (origin |
| 10114 | (method url-fetch) |
| 10115 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
| 10116 | (sha256 |
| 10117 | (base32 |
| 10118 | "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx")))) |
| 10119 | (build-system python-build-system) |
| 10120 | (arguments |
| 10121 | `(#:phases |
| 10122 | (modify-phases %standard-phases |
| 10123 | (delete 'check) |
| 10124 | (add-after 'install 'post-install-check |
| 10125 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 10126 | ;; HOME is needed for the test |
| 10127 | ;; "test_pathcompleter_can_expanduser". |
| 10128 | (setenv "HOME" "/tmp") |
| 10129 | (add-installed-pythonpath inputs outputs) |
| 10130 | (invoke "py.test")))))) |
| 10131 | (propagated-inputs |
| 10132 | `(("python-wcwidth" ,python-wcwidth) |
| 10133 | ("python-six" ,python-six) |
| 10134 | ("python-pygments" ,python-pygments))) |
| 10135 | (native-inputs |
| 10136 | `(("python-pytest" ,python-pytest))) |
| 10137 | (home-page "https://github.com/jonathanslenders/python-prompt-toolkit") |
| 10138 | (synopsis "Library for building command line interfaces in Python") |
| 10139 | (description |
| 10140 | "Prompt-Toolkit is a library for building interactive command line |
| 10141 | interfaces in Python. It's like GNU Readline but it also features syntax |
| 10142 | highlighting while typing, out-of-the-box multi-line input editing, advanced |
| 10143 | code completion, incremental search, support for Chinese double-width |
| 10144 | characters, mouse support, and auto suggestions.") |
| 10145 | (license license:bsd-3))) |
| 10146 | |
| 10147 | (define-public python2-prompt-toolkit |
| 10148 | (package-with-python2 python-prompt-toolkit)) |
| 10149 | |
| 10150 | (define-public python-prompt-toolkit-1 |
| 10151 | (package (inherit python-prompt-toolkit) |
| 10152 | (version "1.0.15") |
| 10153 | (source |
| 10154 | (origin |
| 10155 | (method url-fetch) |
| 10156 | (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) |
| 10157 | (sha256 |
| 10158 | (base32 |
| 10159 | "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5")))))) |
| 10160 | |
| 10161 | (define-public python2-prompt-toolkit-1 |
| 10162 | (package-with-python2 python-prompt-toolkit-1)) |
| 10163 | |
| 10164 | (define-public python-jedi |
| 10165 | (package |
| 10166 | (name "python-jedi") |
| 10167 | (version "0.13.3") |
| 10168 | (source |
| 10169 | (origin |
| 10170 | (method url-fetch) |
| 10171 | (uri (pypi-uri "jedi" version)) |
| 10172 | (sha256 |
| 10173 | (base32 |
| 10174 | "0nsrjlb57njqppxmi8wjsb1dkad7qa7svx67jbkhixq66lz61c1b")))) |
| 10175 | (build-system python-build-system) |
| 10176 | (arguments |
| 10177 | `( ;; Many tests are failing with Python 3.7.x as of version 0.13.3 (see: |
| 10178 | ;; https://github.com/davidhalter/jedi/issues/1263) |
| 10179 | #:tests? #f |
| 10180 | #:phases |
| 10181 | (modify-phases %standard-phases |
| 10182 | (replace 'check |
| 10183 | (lambda* (#:key tests? #:allow-other-keys) |
| 10184 | (when tests? |
| 10185 | (invoke "py.test" "-vv"))))))) |
| 10186 | (native-inputs |
| 10187 | `(("python-pytest" ,python-pytest) |
| 10188 | ("python-docopt" ,python-docopt))) |
| 10189 | (propagated-inputs |
| 10190 | `(("python-parso" ,python-parso))) |
| 10191 | (home-page "https://github.com/davidhalter/jedi") |
| 10192 | (synopsis "Autocompletion and static analysis library for Python") |
| 10193 | (description |
| 10194 | "Jedi is a static analysis tool for Python that can be used in Integrated |
| 10195 | Development Environments (@dfn{IDE}s) and text editors. It understands Python |
| 10196 | on a deeper level than many other static analysis frameworks for Python. |
| 10197 | |
| 10198 | Jedi understands docstrings and you can use Jedi autocompletion in your REPL as |
| 10199 | well.") |
| 10200 | (license license:expat))) |
| 10201 | |
| 10202 | (define-public python2-jedi |
| 10203 | (let ((base (package-with-python2 (strip-python2-variant python-jedi)))) |
| 10204 | (package |
| 10205 | (inherit base) |
| 10206 | (arguments (substitute-keyword-arguments (package-arguments base) |
| 10207 | ((#:tests? _) #t)))))) |
| 10208 | |
| 10209 | (define-public ptpython |
| 10210 | (package |
| 10211 | (name "ptpython") |
| 10212 | (version "0.34") |
| 10213 | (source (origin |
| 10214 | (method url-fetch) |
| 10215 | (uri (pypi-uri "ptpython" version)) |
| 10216 | (sha256 |
| 10217 | (base32 |
| 10218 | "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) |
| 10219 | (build-system python-build-system) |
| 10220 | (arguments |
| 10221 | '(#:tests? #f)) ; FIXME: No tests in pypi tarball. |
| 10222 | (propagated-inputs |
| 10223 | `(("python-docopt" ,python-docopt) |
| 10224 | ("python-jedi" ,python-jedi) |
| 10225 | ("python-prompt-toolkit" ,python-prompt-toolkit) |
| 10226 | ("python-pygments" ,python-pygments))) |
| 10227 | (home-page "https://github.com/jonathanslenders/ptpython") |
| 10228 | (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features") |
| 10229 | (description |
| 10230 | "ptpython is a Python read-eval-print loop with IDE-like features. |
| 10231 | It supports syntax highlighting, multiline editing, autocompletion, mouse, |
| 10232 | color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters |
| 10233 | etc.") |
| 10234 | (license license:bsd-3) |
| 10235 | (properties `((python2-variant . ,(delay ptpython-2)))))) |
| 10236 | |
| 10237 | (define-public ptpython-2 |
| 10238 | (let ((base (package-with-python2 (strip-python2-variant ptpython)))) |
| 10239 | (package |
| 10240 | (inherit base) |
| 10241 | (name "ptpython2")))) |
| 10242 | |
| 10243 | (define-public python-stem |
| 10244 | (package |
| 10245 | (name "python-stem") |
| 10246 | (version "1.7.0") |
| 10247 | (source |
| 10248 | (origin |
| 10249 | (method url-fetch) |
| 10250 | (uri (pypi-uri "stem" version)) |
| 10251 | (sha256 |
| 10252 | (base32 |
| 10253 | "1awiglfiajnx2hva9aqpj3fmdvdb4qg7cwnlfyih827m68y3cq8v")))) |
| 10254 | (build-system python-build-system) |
| 10255 | (arguments |
| 10256 | `(#:phases |
| 10257 | (modify-phases %standard-phases |
| 10258 | (replace 'check |
| 10259 | (lambda _ |
| 10260 | (invoke "./run_tests.py" "--unit") |
| 10261 | #t))))) |
| 10262 | (native-inputs |
| 10263 | `(("python-mock" ,python-mock) |
| 10264 | ("python-pycodestyle" ,python-pycodestyle) |
| 10265 | ("python-pyflakes" ,python-pyflakes))) |
| 10266 | (home-page "https://stem.torproject.org/") |
| 10267 | (synopsis |
| 10268 | "Python controller library that allows applications to interact with Tor") |
| 10269 | (description |
| 10270 | "Stem is a Python controller library for Tor. With it you can use Tor's |
| 10271 | control protocol to script against the Tor process and read descriptor data |
| 10272 | relays publish about themselves.") |
| 10273 | (license license:lgpl3))) |
| 10274 | |
| 10275 | (define-public python2-stem |
| 10276 | (package-with-python2 python-stem)) |
| 10277 | |
| 10278 | (define-public python-pyserial |
| 10279 | (package |
| 10280 | (name "python-pyserial") |
| 10281 | (version "3.1.1") |
| 10282 | (source |
| 10283 | (origin |
| 10284 | (method url-fetch) |
| 10285 | (uri (pypi-uri "pyserial" version)) |
| 10286 | (sha256 |
| 10287 | (base32 |
| 10288 | "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn")))) |
| 10289 | (build-system python-build-system) |
| 10290 | (arguments |
| 10291 | '(#:tests? #f)) ; FIXME: 3/49 tests are failing. |
| 10292 | ;; #:phases |
| 10293 | ;; (modify-phases %standard-phases |
| 10294 | ;; (replace 'check |
| 10295 | ;; (lambda _ |
| 10296 | ;; (zero? (system* "python" "test/run_all_tests.py" "loop://"))))))) |
| 10297 | (home-page |
| 10298 | "https://github.com/pyserial/pyserial") |
| 10299 | (synopsis "Python Serial Port Bindings") |
| 10300 | (description "@code{pyserial} provide serial port bindings for Python. It |
| 10301 | supports different byte sizes, stop bits, parity and flow control with RTS/CTS |
| 10302 | and/or Xon/Xoff. The port is accessed in RAW mode.") |
| 10303 | (license license:bsd-3))) |
| 10304 | |
| 10305 | (define-public python2-pyserial |
| 10306 | (package-with-python2 python-pyserial)) |
| 10307 | |
| 10308 | (define-public python-kivy |
| 10309 | (package |
| 10310 | (name "python-kivy") |
| 10311 | (version "1.10.1") |
| 10312 | (source |
| 10313 | (origin |
| 10314 | (method url-fetch) |
| 10315 | (uri (pypi-uri "Kivy" version)) |
| 10316 | (file-name (string-append name "-" version ".tar.gz")) |
| 10317 | (sha256 |
| 10318 | (base32 |
| 10319 | "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw")))) |
| 10320 | (build-system python-build-system) |
| 10321 | (arguments |
| 10322 | `(#:tests? #f ; Tests require many optional packages |
| 10323 | #:phases |
| 10324 | (modify-phases %standard-phases |
| 10325 | (add-after 'patch-generated-file-shebangs 'set-sdl-paths |
| 10326 | (lambda* (#:key inputs #:allow-other-keys) |
| 10327 | (setenv "KIVY_SDL2_PATH" |
| 10328 | (string-append (assoc-ref inputs "sdl-union") |
| 10329 | "/include/SDL2")) |
| 10330 | #t))))) |
| 10331 | (native-inputs |
| 10332 | `(("git" ,git) |
| 10333 | ("pkg-config" ,pkg-config) |
| 10334 | ("python-cython" ,python-cython))) |
| 10335 | (inputs |
| 10336 | `(("gstreamer" ,gstreamer) |
| 10337 | ("mesa" ,mesa) |
| 10338 | ("sdl-union" |
| 10339 | ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) |
| 10340 | (home-page "http://kivy.org") |
| 10341 | (synopsis |
| 10342 | "Multitouch application framework") |
| 10343 | (description |
| 10344 | "A software library for rapid development of |
| 10345 | hardware-accelerated multitouch applications.") |
| 10346 | (license license:expat))) |
| 10347 | |
| 10348 | (define-public python2-kivy |
| 10349 | (package-with-python2 python-kivy)) |
| 10350 | |
| 10351 | (define-public python-kivy-next |
| 10352 | (deprecated-package "python-kivy-next" python-kivy)) |
| 10353 | |
| 10354 | (define-public python2-kivy-next |
| 10355 | (deprecated-package "python2-kivy-next" python2-kivy)) |
| 10356 | |
| 10357 | (define-public python-binaryornot |
| 10358 | (package |
| 10359 | (name "python-binaryornot") |
| 10360 | (version "0.4.4") |
| 10361 | (source (origin |
| 10362 | (method url-fetch) |
| 10363 | (uri (pypi-uri "binaryornot" version)) |
| 10364 | (sha256 |
| 10365 | (base32 |
| 10366 | "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m")))) |
| 10367 | (build-system python-build-system) |
| 10368 | (propagated-inputs |
| 10369 | `(("python-chardet" ,python-chardet) |
| 10370 | ("python-hypothesis" ,python-hypothesis))) |
| 10371 | (home-page "https://github.com/audreyr/binaryornot") |
| 10372 | (synopsis "Package to check if a file is binary or text") |
| 10373 | (description "Ultra-lightweight pure Python package to check if a file is |
| 10374 | binary or text.") |
| 10375 | (license license:bsd-3) |
| 10376 | (properties `((python2-variant . ,(delay python2-binaryornot)))))) |
| 10377 | |
| 10378 | (define-public python2-binaryornot |
| 10379 | (let ((base (package-with-python2 (strip-python2-variant python-binaryornot)))) |
| 10380 | (package (inherit base) |
| 10381 | (propagated-inputs |
| 10382 | `(("python2-enum34" ,python2-enum34) |
| 10383 | ,@(package-propagated-inputs base)))))) |
| 10384 | |
| 10385 | (define-public python-nltk |
| 10386 | (package |
| 10387 | (name "python-nltk") |
| 10388 | (version "3.2.1") |
| 10389 | (source (origin |
| 10390 | (method url-fetch) |
| 10391 | (uri (pypi-uri "nltk" version)) |
| 10392 | (sha256 |
| 10393 | (base32 |
| 10394 | "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) |
| 10395 | (build-system python-build-system) |
| 10396 | (arguments |
| 10397 | '(;; The tests require some extra resources to be downloaded. |
| 10398 | ;; TODO Try packaging these resources. |
| 10399 | #:tests? #f)) |
| 10400 | (home-page "http://nltk.org/") |
| 10401 | (synopsis "Natural Language Toolkit") |
| 10402 | (description "It provides interfaces to over 50 corpora and lexical |
| 10403 | resources such as WordNet, along with a suite of text processing libraries |
| 10404 | for classification, tokenization, stemming, tagging, parsing, and semantic |
| 10405 | reasoning, wrappers for natural language processing libraries.") |
| 10406 | (license license:asl2.0))) |
| 10407 | |
| 10408 | (define-public python2-nltk |
| 10409 | (package-with-python2 python-nltk)) |
| 10410 | |
| 10411 | (define-public python-pymongo |
| 10412 | (package |
| 10413 | (name "python-pymongo") |
| 10414 | (version "3.7.2") |
| 10415 | (source (origin |
| 10416 | (method url-fetch) |
| 10417 | (uri (pypi-uri "pymongo" version)) |
| 10418 | (sha256 |
| 10419 | (base32 |
| 10420 | "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c")))) |
| 10421 | (build-system python-build-system) |
| 10422 | (propagated-inputs |
| 10423 | `(("python-certifi" ,python-certifi))) |
| 10424 | (home-page "https://github.com/mongodb/mongo-python-driver") |
| 10425 | (synopsis "Python driver for MongoDB") |
| 10426 | (description "Python driver for MongoDB.") |
| 10427 | (license license:asl2.0))) |
| 10428 | |
| 10429 | (define-public python2-pymongo |
| 10430 | (package-with-python2 python-pymongo)) |
| 10431 | |
| 10432 | (define-public python-consul |
| 10433 | (package |
| 10434 | (name "python-consul") |
| 10435 | (version "0.6.1") |
| 10436 | (source |
| 10437 | (origin |
| 10438 | (method url-fetch) |
| 10439 | (uri (pypi-uri "python-consul" version)) |
| 10440 | (sha256 |
| 10441 | (base32 |
| 10442 | "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) |
| 10443 | (build-system python-build-system) |
| 10444 | (arguments |
| 10445 | '(#:tests? #f)) ; The tests are not distributed |
| 10446 | (propagated-inputs |
| 10447 | `(("python-requests" ,python-requests) |
| 10448 | ("python-six" ,python-six))) |
| 10449 | (home-page "https://github.com/cablehead/python-consul") |
| 10450 | (synopsis "Python client for Consul") |
| 10451 | (description |
| 10452 | "Python client for @url{http://www.consul.io/,Consul}, a tool for service |
| 10453 | discovery, monitoring and configuration.") |
| 10454 | (license license:expat))) |
| 10455 | |
| 10456 | (define-public python2-consul |
| 10457 | (package-with-python2 python-consul)) |
| 10458 | |
| 10459 | (define-public python-schematics |
| 10460 | (package |
| 10461 | (name "python-schematics") |
| 10462 | (version "1.1.1") |
| 10463 | (source |
| 10464 | (origin |
| 10465 | (method git-fetch) |
| 10466 | (uri (git-reference |
| 10467 | (url "https://github.com/schematics/schematics.git") |
| 10468 | (commit (string-append "v" version)))) |
| 10469 | (file-name (git-file-name name version)) |
| 10470 | (sha256 |
| 10471 | (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd")))) |
| 10472 | (build-system python-build-system) |
| 10473 | (propagated-inputs |
| 10474 | `(("python-six" ,python-six))) |
| 10475 | (arguments |
| 10476 | ;; The tests require a bunch of not very nice packages with fixed |
| 10477 | ;; version requirements (e.g. python-coveralls). |
| 10478 | `(#:tests? #f)) |
| 10479 | (home-page "https://github.com/schematics/schematics") |
| 10480 | (synopsis "Python Data Structures for Humans") |
| 10481 | (description "Python Data Structures for Humans.") |
| 10482 | (license license:bsd-3))) |
| 10483 | |
| 10484 | (define-public python2-schematics |
| 10485 | (package-with-python2 python-schematics)) |
| 10486 | |
| 10487 | (define-public python-odfpy |
| 10488 | (package |
| 10489 | (name "python-odfpy") |
| 10490 | (version "1.3.3") |
| 10491 | (source (origin |
| 10492 | (method url-fetch) |
| 10493 | (uri (pypi-uri "odfpy" version)) |
| 10494 | (sha256 |
| 10495 | (base32 |
| 10496 | "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) |
| 10497 | (arguments |
| 10498 | `(#:modules ((srfi srfi-1) |
| 10499 | (guix build python-build-system) |
| 10500 | (guix build utils)) |
| 10501 | #:phases |
| 10502 | (modify-phases %standard-phases |
| 10503 | (replace 'check |
| 10504 | ;; The test runner invokes python2 and python3 for test*.py. |
| 10505 | ;; To avoid having both in inputs, we replicate it here. |
| 10506 | (lambda _ |
| 10507 | (for-each (lambda (test-file) (invoke "python" test-file)) |
| 10508 | (find-files "tests" "^test.*\\.py$")) |
| 10509 | #t))))) |
| 10510 | (build-system python-build-system) |
| 10511 | (home-page "https://github.com/eea/odfpy") |
| 10512 | (synopsis "Python API and tools to manipulate OpenDocument files") |
| 10513 | (description "Collection of libraries and utility programs written in |
| 10514 | Python to manipulate OpenDocument 1.2 files.") |
| 10515 | (license |
| 10516 | ;; The software is mainly dual GPL2+ and ASL2.0, but includes a |
| 10517 | ;; number of files with other licenses. |
| 10518 | (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) |
| 10519 | |
| 10520 | (define-public python2-odfpy |
| 10521 | (package-with-python2 python-odfpy)) |
| 10522 | |
| 10523 | (define-public python-natsort |
| 10524 | (package |
| 10525 | (name "python-natsort") |
| 10526 | (version "5.4.1") |
| 10527 | (source (origin |
| 10528 | (method url-fetch) |
| 10529 | (uri (pypi-uri "natsort" version)) |
| 10530 | (sha256 |
| 10531 | (base32 |
| 10532 | "0i732amg6yzkx4g4c9j09jmqq39q377x9cl2nbkm5hax2c2v0wxf")))) |
| 10533 | (build-system python-build-system) |
| 10534 | (arguments |
| 10535 | `(#:modules ((guix build utils) |
| 10536 | (guix build python-build-system) |
| 10537 | (srfi srfi-1) |
| 10538 | (srfi srfi-26) |
| 10539 | (ice-9 ftw)) |
| 10540 | #:phases |
| 10541 | (modify-phases %standard-phases |
| 10542 | (add-before 'check 'set-cachedir |
| 10543 | ;; Tests require write access to $HOME by default |
| 10544 | (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)) |
| 10545 | (replace 'check |
| 10546 | (lambda _ |
| 10547 | (let ((cwd (getcwd))) |
| 10548 | (setenv "PYTHONPATH" |
| 10549 | (string-append |
| 10550 | cwd "/build/" |
| 10551 | (find (cut string-prefix? "lib" <>) |
| 10552 | (scandir (string-append cwd "/build"))) |
| 10553 | ":" |
| 10554 | (getenv "PYTHONPATH"))) |
| 10555 | (invoke "pytest" "-v"))))))) |
| 10556 | (native-inputs |
| 10557 | `(("python-hypothesis" ,python-hypothesis) |
| 10558 | ("python-pytest-cov" ,python-pytest-cov) |
| 10559 | ("python-pytest-mock" ,python-pytest-mock) |
| 10560 | ("python-pytest" ,python-pytest))) |
| 10561 | (propagated-inputs ; TODO: Add python-fastnumbers. |
| 10562 | `(("python-pyicu" ,python-pyicu))) |
| 10563 | (home-page "https://github.com/SethMMorton/natsort") |
| 10564 | (synopsis "Natural sorting for python and shell") |
| 10565 | (description |
| 10566 | "Natsort lets you apply natural sorting on lists instead of |
| 10567 | lexicographical. If you use the built-in @code{sorted} method in python |
| 10568 | on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4}, |
| 10569 | @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20}, |
| 10570 | @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that |
| 10571 | identifies numbers and sorts them separately from strings. It can also sort |
| 10572 | version numbers, real numbers, mixed types and more, and comes with a shell |
| 10573 | command @command{natsort} that exposes this functionality in the command line.") |
| 10574 | (license license:expat) |
| 10575 | (properties `((python2-variant . ,(delay python2-natsort)))))) |
| 10576 | |
| 10577 | (define-public python2-natsort |
| 10578 | (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) |
| 10579 | (package (inherit base) |
| 10580 | (native-inputs |
| 10581 | `(("python2-pathlib" ,python2-pathlib) |
| 10582 | ,@(package-native-inputs base)))))) |
| 10583 | |
| 10584 | (define-public python-glances |
| 10585 | (package |
| 10586 | (name "python-glances") |
| 10587 | (version "3.0.2") |
| 10588 | (source |
| 10589 | (origin |
| 10590 | (method url-fetch) |
| 10591 | (uri (pypi-uri "Glances" version)) |
| 10592 | (sha256 |
| 10593 | (base32 |
| 10594 | "09fxysfp1n16csqvzvawy74qm6a94nvwjf3vcf5gkqp4i6k4vjjy")))) |
| 10595 | (build-system python-build-system) |
| 10596 | (propagated-inputs |
| 10597 | `(("python-psutil" ,python-psutil))) |
| 10598 | (home-page |
| 10599 | "https://github.com/nicolargo/glances") |
| 10600 | (synopsis |
| 10601 | "A cross-platform curses-based monitoring tool") |
| 10602 | (description |
| 10603 | "Glances is a curses-based monitoring tool for a wide variety of platforms. |
| 10604 | Glances uses the PsUtil library to get information from your system. It monitors |
| 10605 | CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") |
| 10606 | (license license:lgpl3+))) |
| 10607 | |
| 10608 | (define-public python2-glances |
| 10609 | (package-with-python2 python-glances)) |
| 10610 | |
| 10611 | (define-public python-graphql-core |
| 10612 | (package |
| 10613 | (name "python-graphql-core") |
| 10614 | (version "0.5.3") |
| 10615 | (source |
| 10616 | (origin |
| 10617 | (method url-fetch) |
| 10618 | (uri (pypi-uri "graphql-core" version)) |
| 10619 | (sha256 |
| 10620 | (base32 |
| 10621 | "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) |
| 10622 | (build-system python-build-system) |
| 10623 | (arguments |
| 10624 | `(#:tests? #f ; Tests require the unpackaged pytest-benchmark. |
| 10625 | #:phases |
| 10626 | (modify-phases %standard-phases |
| 10627 | (add-after 'unpack 'patch-hardcoded-version |
| 10628 | (lambda _ (substitute* |
| 10629 | "setup.py" |
| 10630 | (("'gevent==1.1rc1'") "'gevent'")) |
| 10631 | #t))))) |
| 10632 | (native-inputs |
| 10633 | `(("python-gevent" ,python-gevent) |
| 10634 | ("python-mock" ,python-mock) |
| 10635 | ("python-pytest-mock" ,python-pytest-mock))) |
| 10636 | (propagated-inputs |
| 10637 | `(("python-promise" ,python-promise) |
| 10638 | ("python-six" ,python-six))) |
| 10639 | (home-page "https://github.com/graphql-python/graphql-core") |
| 10640 | (synopsis "GraphQL implementation for Python") |
| 10641 | (description |
| 10642 | "GraphQL implementation for Python. GraphQL is a data query language and |
| 10643 | runtime designed and used to request and deliver data to mobile and web apps. |
| 10644 | This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} |
| 10645 | to Python.") |
| 10646 | (license license:expat))) |
| 10647 | |
| 10648 | (define-public python2-graphql-core |
| 10649 | (package-with-python2 python-graphql-core)) |
| 10650 | |
| 10651 | (define-public python-graphql-relay |
| 10652 | (package |
| 10653 | (name "python-graphql-relay") |
| 10654 | (version "0.4.5") |
| 10655 | (source |
| 10656 | (origin |
| 10657 | (method url-fetch) |
| 10658 | (uri (pypi-uri "graphql-relay" version)) |
| 10659 | (sha256 |
| 10660 | (base32 |
| 10661 | "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7")))) |
| 10662 | (build-system python-build-system) |
| 10663 | (arguments |
| 10664 | '(#:tests? #f)) ; The tests are not distributed |
| 10665 | (propagated-inputs |
| 10666 | `(("python-graphql-core" ,python-graphql-core) |
| 10667 | ("python-promise" ,python-promise) |
| 10668 | ("python-six" ,python-six))) |
| 10669 | (home-page "https://github.com/graphql-python/graphql-relay-py") |
| 10670 | (synopsis "Relay implementation for Python") |
| 10671 | (description |
| 10672 | "This is a library to allow the easy creation of Relay-compliant servers |
| 10673 | using the GraphQL Python reference implementation of a GraphQL server. It |
| 10674 | should be noted that the code is a exact port of the original |
| 10675 | @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} |
| 10676 | from Facebook.") |
| 10677 | (license license:expat))) |
| 10678 | |
| 10679 | (define-public python2-graphql-relay |
| 10680 | (package-with-python2 python-graphql-relay)) |
| 10681 | |
| 10682 | (define-public python-graphene |
| 10683 | (package |
| 10684 | (name "python-graphene") |
| 10685 | (version "0.10.2") |
| 10686 | (source |
| 10687 | (origin |
| 10688 | (method url-fetch) |
| 10689 | (uri (pypi-uri "graphene" version)) |
| 10690 | (sha256 |
| 10691 | (base32 |
| 10692 | "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) |
| 10693 | (build-system python-build-system) |
| 10694 | (propagated-inputs |
| 10695 | `(("python-graphql-core" ,python-graphql-core) |
| 10696 | ("python-graphql-relay" ,python-graphql-relay) |
| 10697 | ("python-iso8601" ,python-iso8601) |
| 10698 | ("python-promise" ,python-promise) |
| 10699 | ("python-six" ,python-six))) |
| 10700 | (arguments |
| 10701 | `(#:tests? #f)) ; no tests/ in the PyPI tarball |
| 10702 | (home-page "http://graphene-python.org/") |
| 10703 | (synopsis "GraphQL Framework for Python") |
| 10704 | (description |
| 10705 | "Graphene is a Python library for building GraphQL schemas/types. |
| 10706 | A GraphQL schema describes your data model, and provides a GraphQL server |
| 10707 | with an associated set of resolve methods that know how to fetch data.") |
| 10708 | (properties `((python2-variant . ,(delay python2-graphene)))) |
| 10709 | (license license:expat))) |
| 10710 | |
| 10711 | (define-public python2-graphene |
| 10712 | (let ((base (package-with-python2 |
| 10713 | (strip-python2-variant python-graphene)))) |
| 10714 | (package (inherit base) |
| 10715 | (native-inputs |
| 10716 | `(("python2-sqlalchemy" ,python2-sqlalchemy) |
| 10717 | ,@(package-native-inputs base)))))) |
| 10718 | |
| 10719 | (define-public python-nautilus |
| 10720 | (package |
| 10721 | (name "python-nautilus") |
| 10722 | (version "0.4.9") |
| 10723 | (source |
| 10724 | (origin |
| 10725 | (method url-fetch) |
| 10726 | (uri (pypi-uri "nautilus" version)) |
| 10727 | (sha256 |
| 10728 | (base32 |
| 10729 | "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) |
| 10730 | (build-system python-build-system) |
| 10731 | (arguments `(#:tests? #f)) ; fails to import test modules |
| 10732 | (propagated-inputs |
| 10733 | `(("python-bcrypt" ,python-bcrypt) |
| 10734 | ("python-click" ,python-click) |
| 10735 | ("python-consul" ,python-consul) |
| 10736 | ("python-graphene" ,python-graphene) |
| 10737 | ("python-jinja2" ,python-jinja2) |
| 10738 | ("python-peewee" ,python-peewee) |
| 10739 | ("python-pika" ,python-pika) |
| 10740 | ("python-tornado" ,python-tornado) |
| 10741 | ("python-wtforms" ,python-wtforms))) |
| 10742 | (native-inputs |
| 10743 | `(("python-nose2" ,python-nose2))) |
| 10744 | (home-page "https://github.com/AlecAivazis/nautilus") |
| 10745 | (synopsis "Library for creating microservice applications") |
| 10746 | (description |
| 10747 | "Nautilus is a framework for flux based microservices that looks to |
| 10748 | provide extendible implementations of common aspects of a cloud so that you can |
| 10749 | focus on building massively scalable web applications.") |
| 10750 | (license license:expat))) |
| 10751 | |
| 10752 | (define-public python-snowballstemmer |
| 10753 | (package |
| 10754 | (name "python-snowballstemmer") |
| 10755 | (version "1.2.1") |
| 10756 | (source (origin |
| 10757 | (method url-fetch) |
| 10758 | (uri (pypi-uri "snowballstemmer" version)) |
| 10759 | (sha256 |
| 10760 | (base32 |
| 10761 | "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) |
| 10762 | (build-system python-build-system) |
| 10763 | (arguments |
| 10764 | `(;; No tests exist |
| 10765 | #:tests? #f)) |
| 10766 | (home-page "https://github.com/shibukawa/snowball_py") |
| 10767 | (synopsis "Snowball stemming library collection for Python") |
| 10768 | (description "This package provides 16 word stemmer algorithms generated |
| 10769 | from Snowball algorithms. It includes the 15 original ones plus the Poerter |
| 10770 | English stemmer.") |
| 10771 | (license license:bsd-3))) |
| 10772 | |
| 10773 | (define-public python2-snowballstemmer |
| 10774 | (package-with-python2 python-snowballstemmer)) |
| 10775 | |
| 10776 | (define-public python-setproctitle |
| 10777 | (package |
| 10778 | (name "python-setproctitle") |
| 10779 | (version "1.1.10") |
| 10780 | (source |
| 10781 | (origin |
| 10782 | (method url-fetch) |
| 10783 | (uri (pypi-uri "setproctitle" version)) |
| 10784 | (sha256 |
| 10785 | (base32 |
| 10786 | "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) |
| 10787 | (build-system python-build-system) |
| 10788 | (arguments |
| 10789 | '(#:phases |
| 10790 | (modify-phases %standard-phases |
| 10791 | (add-before 'check 'patch-Makefile |
| 10792 | ;; Stricly this is only required for the python2 variant. |
| 10793 | ;; But adding a phase in an inherited package seems to be |
| 10794 | ;; cumbersum. So we patch even for python3. |
| 10795 | (lambda _ |
| 10796 | (let ((nose (assoc-ref %build-inputs "python2-nose"))) |
| 10797 | (when nose |
| 10798 | (substitute* "Makefile" |
| 10799 | (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") |
| 10800 | (string-append nose "/bin/nosetests ")))) |
| 10801 | #t))) |
| 10802 | (replace 'check |
| 10803 | (lambda _ |
| 10804 | (setenv "PYTHON" (or (which "python3") (which "python"))) |
| 10805 | (setenv "PYCONFIG" (or (which "python3-config") |
| 10806 | (which "python-config"))) |
| 10807 | (setenv "CC" "gcc") |
| 10808 | ;; No need to extend PYTHONPATH to find the built package, since |
| 10809 | ;; the Makefile will build anyway |
| 10810 | (invoke "make" "check")))))) |
| 10811 | (native-inputs |
| 10812 | `(("procps" ,procps))) ; required for tests |
| 10813 | (home-page |
| 10814 | "https://github.com/dvarrazzo/py-setproctitle") |
| 10815 | (synopsis |
| 10816 | "Setproctitle implementation for Python to customize the process title") |
| 10817 | (description "The library allows a process to change its title (as displayed |
| 10818 | by system tools such as ps and top). |
| 10819 | |
| 10820 | Changing the title is mostly useful in multi-process systems, for |
| 10821 | example when a master process is forked: changing the children's title |
| 10822 | allows to identify the task each process is busy with. The technique |
| 10823 | is used by PostgreSQL and the OpenSSH Server for example.") |
| 10824 | (license license:bsd-3) |
| 10825 | (properties `((python2-variant . ,(delay python2-setproctitle)))))) |
| 10826 | |
| 10827 | (define-public python2-setproctitle |
| 10828 | (let ((base (package-with-python2 |
| 10829 | (strip-python2-variant python-setproctitle)))) |
| 10830 | (package |
| 10831 | (inherit base) |
| 10832 | (native-inputs `(("python2-nose" ,python2-nose) |
| 10833 | ,@(package-native-inputs base)))))) |
| 10834 | |
| 10835 | (define-public python-validictory |
| 10836 | (package |
| 10837 | (name "python-validictory") |
| 10838 | (version "1.0.1") |
| 10839 | (source |
| 10840 | (origin |
| 10841 | (method url-fetch) |
| 10842 | (uri (pypi-uri "validictory" version)) |
| 10843 | (sha256 |
| 10844 | (base32 |
| 10845 | "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q")))) |
| 10846 | (build-system python-build-system) |
| 10847 | (arguments |
| 10848 | '(#:phases |
| 10849 | (modify-phases %standard-phases |
| 10850 | (add-after 'unpack 'bootstrap |
| 10851 | ;; Move the tests out of the package directory to avoid |
| 10852 | ;; packaging them. |
| 10853 | (lambda* _ |
| 10854 | (rename-file "validictory/tests" "tests") |
| 10855 | (delete-file "tests/__init__.py"))) |
| 10856 | (replace 'check |
| 10857 | (lambda _ |
| 10858 | ;; Extend PYTHONPATH so the built package will be found. |
| 10859 | (setenv "PYTHONPATH" |
| 10860 | (string-append (getcwd) "/build/lib:" |
| 10861 | (getenv "PYTHONPATH"))) |
| 10862 | (invoke "py.test" "-vv" )))))) |
| 10863 | (native-inputs |
| 10864 | `(("python-pytest" ,python-pytest))) |
| 10865 | (home-page |
| 10866 | "https://github.com/jamesturk/validictory") |
| 10867 | (synopsis "General purpose Python data validator") |
| 10868 | (description "It allows validation of arbitrary Python data structures. |
| 10869 | |
| 10870 | The schema format is based on the JSON Schema |
| 10871 | proposal (http://json-schema.org), so combined with json the library is also |
| 10872 | useful as a validator for JSON data.") |
| 10873 | (license license:expat))) |
| 10874 | |
| 10875 | (define-public python2-validictory |
| 10876 | (package-with-python2 python-validictory)) |
| 10877 | |
| 10878 | (define-public python-pyelftools |
| 10879 | (package |
| 10880 | (name "python-pyelftools") |
| 10881 | (version "0.25") |
| 10882 | (source |
| 10883 | (origin |
| 10884 | (method url-fetch) |
| 10885 | (uri (pypi-uri "pyelftools" version)) |
| 10886 | (sha256 |
| 10887 | (base32 |
| 10888 | "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9")))) |
| 10889 | (build-system python-build-system) |
| 10890 | (arguments |
| 10891 | `(#:phases |
| 10892 | (modify-phases %standard-phases |
| 10893 | (add-before 'check 'set-pythonpath |
| 10894 | (lambda _ |
| 10895 | (setenv "PYTHONPATH" |
| 10896 | (string-append |
| 10897 | (getcwd) "/test/" |
| 10898 | ":" (getenv "PYTHONPATH"))) |
| 10899 | #t))))) |
| 10900 | (home-page |
| 10901 | "https://github.com/eliben/pyelftools") |
| 10902 | (synopsis |
| 10903 | "Analyze binary and library file information") |
| 10904 | (description "This Python library provides interfaces for parsing and |
| 10905 | analyzing two binary and library file formats; the Executable and Linking |
| 10906 | Format (ELF), and debugging information in the Debugging With Attributed |
| 10907 | Record Format (DWARF).") |
| 10908 | (license license:public-domain))) |
| 10909 | |
| 10910 | (define-public python-pyev |
| 10911 | (package |
| 10912 | (name "python-pyev") |
| 10913 | (version "0.9.0") |
| 10914 | (source |
| 10915 | (origin |
| 10916 | (method url-fetch) |
| 10917 | (uri (pypi-uri "pyev" version)) |
| 10918 | (sha256 |
| 10919 | (base32 |
| 10920 | "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx")))) |
| 10921 | (build-system python-build-system) |
| 10922 | (arguments |
| 10923 | `(#:tests? #f ; no test suite |
| 10924 | #:phases |
| 10925 | (modify-phases %standard-phases |
| 10926 | (add-after 'unpack 'patch |
| 10927 | (lambda* (#:key inputs #:allow-other-keys) |
| 10928 | (let ((libev (string-append (assoc-ref inputs "libev") |
| 10929 | "/lib/libev.so.4"))) |
| 10930 | (substitute* "setup.py" |
| 10931 | (("libev_dll_name = find_library\\(\\\"ev\\\"\\)") |
| 10932 | (string-append "libev_dll_name = \"" libev "\""))))))))) |
| 10933 | (inputs |
| 10934 | `(("libev" ,libev))) |
| 10935 | (home-page "http://pythonhosted.org/pyev/") |
| 10936 | (synopsis "Python libev interface") |
| 10937 | (description "Pyev provides a Python interface to libev.") |
| 10938 | (license license:gpl3))) |
| 10939 | |
| 10940 | (define-public python2-pyev |
| 10941 | (package-with-python2 python-pyev)) |
| 10942 | |
| 10943 | (define-public python-imagesize |
| 10944 | (package |
| 10945 | (name "python-imagesize") |
| 10946 | (version "1.1.0") |
| 10947 | (source |
| 10948 | (origin |
| 10949 | (method url-fetch) |
| 10950 | (uri (pypi-uri "imagesize" version)) |
| 10951 | (sha256 |
| 10952 | (base32 |
| 10953 | "1dg3wn7qpwmhgqc0r9na2ding1wif9q5spz3j9zn2riwphc2k0zk")))) |
| 10954 | (build-system python-build-system) |
| 10955 | (home-page "https://github.com/shibukawa/imagesize_py") |
| 10956 | (synopsis "Gets image size of files in various formats in Python") |
| 10957 | (description |
| 10958 | "This package allows determination of image size from |
| 10959 | PNG, JPEG, JPEG2000 and GIF files in pure Python.") |
| 10960 | (license license:expat))) |
| 10961 | |
| 10962 | (define-public python2-imagesize |
| 10963 | (package-with-python2 python-imagesize)) |
| 10964 | |
| 10965 | (define-public python-termstyle |
| 10966 | (package |
| 10967 | (name "python-termstyle") |
| 10968 | (version "0.1.11") |
| 10969 | (source |
| 10970 | (origin |
| 10971 | (method url-fetch) |
| 10972 | (uri (pypi-uri "termstyle" version)) |
| 10973 | (sha256 |
| 10974 | (base32 |
| 10975 | "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g")))) |
| 10976 | (build-system python-build-system) |
| 10977 | (arguments |
| 10978 | '(#:phases |
| 10979 | (modify-phases %standard-phases |
| 10980 | (replace 'check |
| 10981 | (lambda _ |
| 10982 | (invoke "python" "test3.py")))))) |
| 10983 | (home-page "https://github.com/gfxmonk/termstyle") |
| 10984 | (synopsis "Console text coloring for Python") |
| 10985 | (description "This package provides console text coloring for Python.") |
| 10986 | (license license:bsd-3))) |
| 10987 | |
| 10988 | (define-public python-argcomplete |
| 10989 | (package |
| 10990 | (name "python-argcomplete") |
| 10991 | (version "1.7.0") |
| 10992 | (source |
| 10993 | (origin |
| 10994 | (method url-fetch) |
| 10995 | (uri (pypi-uri "argcomplete" version)) |
| 10996 | (sha256 |
| 10997 | (base32 |
| 10998 | "11bwiw6j0nilgz81xnw6f1npyga3prp8asjqrm87cdr3ria5l03x")))) |
| 10999 | (build-system python-build-system) |
| 11000 | (native-inputs |
| 11001 | `(("python-pexpect" ,python-pexpect) |
| 11002 | ("tcsh" ,tcsh) |
| 11003 | ("bash-full" ,bash))) ;full Bash for 'test_file_completion' |
| 11004 | (home-page "https://github.com/kislyuk/argcomplete") |
| 11005 | (synopsis "Shell tab completion for Python argparse") |
| 11006 | (description "argcomplete provides extensible command line tab completion |
| 11007 | of arguments and options for Python scripts using @code{argparse}. It's |
| 11008 | particularly useful for programs with many options or sub-parsers that can |
| 11009 | dynamically suggest completions; for example, when browsing resources over the |
| 11010 | network.") |
| 11011 | (license license:asl2.0))) |
| 11012 | |
| 11013 | (define-public python2-argcomplete |
| 11014 | (package-with-python2 python-argcomplete)) |
| 11015 | |
| 11016 | (define-public python-xopen |
| 11017 | (package |
| 11018 | (name "python-xopen") |
| 11019 | (version "0.5.0") |
| 11020 | (source |
| 11021 | (origin |
| 11022 | (method url-fetch) |
| 11023 | (uri (pypi-uri "xopen" version)) |
| 11024 | (sha256 |
| 11025 | (base32 |
| 11026 | "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh")))) |
| 11027 | (build-system python-build-system) |
| 11028 | (propagated-inputs |
| 11029 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 11030 | (home-page "https://github.com/marcelm/xopen/") |
| 11031 | (synopsis "Open compressed files transparently") |
| 11032 | (description "This module provides an @code{xopen} function that works like |
| 11033 | Python's built-in @code{open} function, but can also deal with compressed files. |
| 11034 | Supported compression formats are gzip, bzip2 and, xz, and are automatically |
| 11035 | recognized by their file extensions. The focus is on being as efficient as |
| 11036 | possible on all supported Python versions.") |
| 11037 | (license license:expat))) |
| 11038 | |
| 11039 | (define-public python2-xopen |
| 11040 | (let ((base (package-with-python2 |
| 11041 | (strip-python2-variant python-xopen)))) |
| 11042 | (package |
| 11043 | (inherit base) |
| 11044 | (propagated-inputs `(("python2-bz2file" ,python2-bz2file) |
| 11045 | ,@(package-propagated-inputs base)))))) |
| 11046 | |
| 11047 | (define-public python-cheetah |
| 11048 | (package |
| 11049 | (name "python-cheetah") |
| 11050 | (version "3.1.0") |
| 11051 | (source |
| 11052 | (origin |
| 11053 | (method url-fetch) |
| 11054 | (uri (pypi-uri "Cheetah3" version)) |
| 11055 | (sha256 |
| 11056 | (base32 |
| 11057 | "1ihag9cxll6b86fc8v5lkhmr3brdbi4yiz16zpgw79yylmv8fgr9")))) |
| 11058 | (build-system python-build-system) |
| 11059 | (arguments |
| 11060 | `(#:modules ((guix build utils) |
| 11061 | (guix build python-build-system) |
| 11062 | (ice-9 ftw) |
| 11063 | (srfi srfi-1) |
| 11064 | (srfi srfi-26)) |
| 11065 | #:phases (modify-phases %standard-phases |
| 11066 | (add-after 'unpack 'use-absolute-python |
| 11067 | (lambda _ |
| 11068 | (substitute* "Cheetah/CheetahWrapper.py" |
| 11069 | (("#!/usr/bin/env python") |
| 11070 | (string-append "#!" (which "python")))) |
| 11071 | #t)) |
| 11072 | (replace 'check |
| 11073 | (lambda _ |
| 11074 | (let ((cwd (getcwd))) |
| 11075 | (setenv "PYTHONPATH" |
| 11076 | (string-append |
| 11077 | cwd "/build/" |
| 11078 | (find (cut string-prefix? "lib" <>) |
| 11079 | (scandir (string-append cwd "/build"))) |
| 11080 | ":" (getenv "PYTHONPATH"))) |
| 11081 | (setenv "PATH" |
| 11082 | (string-append (getenv "PATH") |
| 11083 | ":" cwd "/bin")) |
| 11084 | (setenv "TMPDIR" "/tmp") |
| 11085 | |
| 11086 | (substitute* "Cheetah/Tests/Test.py" |
| 11087 | (("unittest.TextTestRunner\\(\\)") |
| 11088 | "unittest.TextTestRunner(verbosity=2)")) |
| 11089 | |
| 11090 | (invoke "python" "Cheetah/Tests/Test.py"))))))) |
| 11091 | (propagated-inputs |
| 11092 | `(("python-markdown" ,python-markdown))) ;optional |
| 11093 | (home-page "http://cheetahtemplate.org/") |
| 11094 | (synopsis "Template engine") |
| 11095 | (description "Cheetah is a text-based template engine and Python code |
| 11096 | generator. |
| 11097 | |
| 11098 | Cheetah can be used as a standalone templating utility or referenced as |
| 11099 | a library from other Python applications. It has many potential uses, |
| 11100 | but web developers looking for a viable alternative to ASP, JSP, PHP and |
| 11101 | PSP are expected to be its principle user group. |
| 11102 | |
| 11103 | Features: |
| 11104 | @enumerate |
| 11105 | @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other |
| 11106 | text-based format. |
| 11107 | @item Cleanly separates content, graphic design, and program code. |
| 11108 | @item Blends the power and flexibility of Python with a simple template language |
| 11109 | that non-programmers can understand. |
| 11110 | @item Gives template writers full access to any Python data structure, module, |
| 11111 | function, object, or method in their templates. |
| 11112 | @item Makes code reuse easy by providing an object-orientated interface to |
| 11113 | templates that is accessible from Python code or other Cheetah templates. |
| 11114 | One template can subclass another and selectively reimplement sections of it. |
| 11115 | @item Provides a simple, yet powerful, caching mechanism that can dramatically |
| 11116 | improve the performance of a dynamic website. |
| 11117 | @item Compiles templates into optimized, yet readable, Python code. |
| 11118 | @end enumerate") |
| 11119 | (license (license:x11-style "file://LICENSE")))) |
| 11120 | |
| 11121 | (define-public python2-cheetah |
| 11122 | (package-with-python2 python-cheetah)) |
| 11123 | |
| 11124 | (define-public python-dulwich |
| 11125 | (package |
| 11126 | (name "python-dulwich") |
| 11127 | (version "0.18.6") |
| 11128 | (source |
| 11129 | (origin |
| 11130 | (method url-fetch) |
| 11131 | (uri (list (string-append "https://www.dulwich.io/releases/" |
| 11132 | "dulwich-" version ".tar.gz") |
| 11133 | (pypi-uri "dulwich" version))) |
| 11134 | (sha256 |
| 11135 | (base32 |
| 11136 | "1aa1xfrxkc3j9s4xi0llhf5gndyi9ryprcxsqfa5fcb8ph34981q")))) |
| 11137 | (build-system python-build-system) |
| 11138 | (arguments |
| 11139 | `(#:phases |
| 11140 | (modify-phases %standard-phases |
| 11141 | (add-before 'check 'fix-tests |
| 11142 | (lambda* (#:key inputs #:allow-other-keys) |
| 11143 | ;; The tests use Popen with a custom environment which doesn't |
| 11144 | ;; include PATH. |
| 11145 | (substitute* "dulwich/tests/compat/utils.py" |
| 11146 | (("'git'") (string-append "'" |
| 11147 | (which "git") |
| 11148 | "'"))) |
| 11149 | (substitute* '("dulwich/tests/test_repository.py" |
| 11150 | "dulwich/tests/test_hooks.py") |
| 11151 | (("#!/bin/sh") (string-append "#!" (which "sh")))) |
| 11152 | (setenv "TEST_RUNNER" "unittest") |
| 11153 | (setenv "PYTHONHASHSEED" "random") |
| 11154 | #t))))) |
| 11155 | (propagated-inputs |
| 11156 | `(("python-fastimport" ,python-fastimport))) |
| 11157 | (native-inputs |
| 11158 | `(("python-mock" ,python-mock) |
| 11159 | ("python-geventhttpclient" ,python-geventhttpclient) |
| 11160 | ("git" ,git))) |
| 11161 | (home-page "https://www.dulwich.io/") |
| 11162 | (synopsis "Git implementation in Python") |
| 11163 | (description "Dulwich is an implementation of the Git file formats and |
| 11164 | protocols written in pure Python.") |
| 11165 | ;; Can be used with either license. |
| 11166 | (license (list license:asl2.0 license:gpl2+)))) |
| 11167 | |
| 11168 | (define-public python2-dulwich |
| 11169 | (package-with-python2 python-dulwich)) |
| 11170 | |
| 11171 | (define-public python-pbkdf2 |
| 11172 | (package |
| 11173 | (name "python-pbkdf2") |
| 11174 | (version "1.3") |
| 11175 | (source |
| 11176 | (origin |
| 11177 | (method url-fetch) |
| 11178 | (uri (pypi-uri "pbkdf2" version)) |
| 11179 | (sha256 |
| 11180 | (base32 |
| 11181 | "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc")))) |
| 11182 | (build-system python-build-system) |
| 11183 | (arguments |
| 11184 | '(#:phases |
| 11185 | (modify-phases %standard-phases |
| 11186 | (replace 'check |
| 11187 | (lambda _ |
| 11188 | (setenv "PYTHONPATH" |
| 11189 | (string-append (getcwd) "/build/lib:" |
| 11190 | (getenv "PYTHONPATH"))) |
| 11191 | (invoke "python" "test/test_pbkdf2.py")))))) |
| 11192 | (propagated-inputs |
| 11193 | `(("python-pycrypto" ,python-pycrypto))) ; optional |
| 11194 | (home-page "https://www.dlitz.net/software/python-pbkdf2/") |
| 11195 | (synopsis "Password-based key derivation") |
| 11196 | (description "This module implements the password-based key derivation |
| 11197 | function, PBKDF2, specified in RSA PKCS#5 v2.0. |
| 11198 | |
| 11199 | PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which |
| 11200 | is part of the RSA Public Key Cryptography Standards series. The provided |
| 11201 | implementation takes a password or a passphrase and a salt value (and |
| 11202 | optionally a iteration count, a digest module, and a MAC module) and provides |
| 11203 | a file-like object from which an arbitrarly-sized key can be read.") |
| 11204 | (license license:expat))) |
| 11205 | |
| 11206 | (define-public python2-pbkdf2 |
| 11207 | (package-with-python2 python-pbkdf2)) |
| 11208 | |
| 11209 | (define-public python-qrcode |
| 11210 | (package |
| 11211 | (name "python-qrcode") |
| 11212 | (version "6.1") |
| 11213 | (source |
| 11214 | (origin |
| 11215 | (method url-fetch) |
| 11216 | (uri (pypi-uri "qrcode" version)) |
| 11217 | (sha256 |
| 11218 | (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh")))) |
| 11219 | (build-system python-build-system) |
| 11220 | (arguments |
| 11221 | ;; FIXME: Tests require packaging 'pymaging'. |
| 11222 | '(#:tests? #f)) |
| 11223 | (propagated-inputs |
| 11224 | `(("python-lxml" ,python-lxml) ; for SVG output |
| 11225 | ("python-pillow" ,python-pillow) ; for PNG output |
| 11226 | ("python-six" ,python-six))) |
| 11227 | (home-page "https://github.com/lincolnloop/python-qrcode") |
| 11228 | (synopsis "QR Code image generator") |
| 11229 | (description "This package provides a pure Python QR Code generator |
| 11230 | module. It uses the Python Imaging Library (PIL) to allow for the generation |
| 11231 | of QR Codes. |
| 11232 | |
| 11233 | In addition this package provides a command line tool to generate QR codes and |
| 11234 | either write these QR codes to a file or do the output as ascii art at the |
| 11235 | console.") |
| 11236 | (license license:bsd-3))) |
| 11237 | |
| 11238 | (define-public python2-qrcode |
| 11239 | (package-with-python2 python-qrcode)) |
| 11240 | |
| 11241 | (define-public python-rst2ansi |
| 11242 | (package |
| 11243 | (name "python-rst2ansi") |
| 11244 | (version "0.1.5") |
| 11245 | (source |
| 11246 | (origin |
| 11247 | (method url-fetch) |
| 11248 | (uri (pypi-uri "rst2ansi" version)) |
| 11249 | (sha256 |
| 11250 | (base32 |
| 11251 | "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv")))) |
| 11252 | (build-system python-build-system) |
| 11253 | (propagated-inputs |
| 11254 | `(("python-docutils" ,python-docutils))) |
| 11255 | (home-page "https://github.com/Snaipe/python-rst-to-ansi") |
| 11256 | (synopsis "Convert RST to ANSI-decorated console output") |
| 11257 | (description |
| 11258 | "Python module dedicated to rendering RST (reStructuredText) documents |
| 11259 | to ansi-escaped strings suitable for display in a terminal.") |
| 11260 | (license license:expat))) |
| 11261 | |
| 11262 | (define-public python-ansi2html |
| 11263 | (package |
| 11264 | (name "python-ansi2html") |
| 11265 | (version "1.2.0") |
| 11266 | (source |
| 11267 | (origin |
| 11268 | (method url-fetch) |
| 11269 | (uri (pypi-uri "ansi2html" version)) |
| 11270 | (sha256 |
| 11271 | (base32 |
| 11272 | "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y")))) |
| 11273 | (build-system python-build-system) |
| 11274 | (native-inputs |
| 11275 | `(("python-mock" ,python-mock) |
| 11276 | ("python-nose" ,python-nose))) |
| 11277 | (propagated-inputs |
| 11278 | `(("python-six" ,python-six))) |
| 11279 | (home-page "https://github.com/ralphbean/ansi2html") |
| 11280 | (synopsis "Convert ANSI-decorated console output to HTML") |
| 11281 | (description |
| 11282 | "@command{ansi2html} is a Python library and command line utility for |
| 11283 | convering text with ANSI color codes to HTML or LaTeX.") |
| 11284 | (license license:gpl3+))) |
| 11285 | |
| 11286 | (define-public python2-ansi2html |
| 11287 | (package-with-python2 python-ansi2html)) |
| 11288 | |
| 11289 | (define-public python-ddt |
| 11290 | (package |
| 11291 | (name "python-ddt") |
| 11292 | (version "1.1.3") |
| 11293 | (source |
| 11294 | (origin |
| 11295 | (method url-fetch) |
| 11296 | (uri (pypi-uri "ddt" version)) |
| 11297 | (sha256 |
| 11298 | (base32 |
| 11299 | "1lw17420iimhghkgzgax85nn8d1an2d6k2cfvb7j5kwn2dqlr1vk")))) |
| 11300 | (build-system python-build-system) |
| 11301 | (native-inputs |
| 11302 | `(("python-mock" ,python-mock) |
| 11303 | ("python-nose" ,python-nose))) |
| 11304 | (propagated-inputs |
| 11305 | `(("python-six" ,python-six) |
| 11306 | ("python-pyyaml" ,python-pyyaml))) |
| 11307 | (home-page "https://github.com/txels/ddt") |
| 11308 | (synopsis "Data-Driven Tests") |
| 11309 | (description |
| 11310 | "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by |
| 11311 | running it with different test data, and make it appear as multiple test |
| 11312 | cases.") |
| 11313 | (license license:expat))) |
| 11314 | |
| 11315 | (define-public python2-ddt |
| 11316 | (package-with-python2 python-ddt)) |
| 11317 | |
| 11318 | (define-public python-pycountry |
| 11319 | (package |
| 11320 | (name "python-pycountry") |
| 11321 | (version "18.5.26") |
| 11322 | (source |
| 11323 | (origin |
| 11324 | (method url-fetch) |
| 11325 | (uri (pypi-uri "pycountry" version)) |
| 11326 | (sha256 |
| 11327 | (base32 |
| 11328 | "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz")))) |
| 11329 | (build-system python-build-system) |
| 11330 | (home-page "https://bitbucket.org/flyingcircus/pycountry") |
| 11331 | (synopsis "ISO databases for languages, countries, currencies, etc.") |
| 11332 | (description |
| 11333 | "@code{pycountry} provides the ISO databases for the standards: |
| 11334 | @enumerate |
| 11335 | @item 639-3 (Languages) |
| 11336 | @item 3166 (Countries) |
| 11337 | @item 3166-3 (Deleted Countries) |
| 11338 | @item 3166-2 (Subdivisions of countries) |
| 11339 | @item 4217 (Currencies) |
| 11340 | @item 15924 (Scripts) |
| 11341 | @end enumerate |
| 11342 | It includes a copy from Debian’s pkg-isocodes and makes the data accessible |
| 11343 | through a Python API.") |
| 11344 | (license license:lgpl2.1+))) |
| 11345 | |
| 11346 | (define-public python2-pycountry |
| 11347 | (package-with-python2 python-pycountry)) |
| 11348 | |
| 11349 | (define-public python-pycosat |
| 11350 | (package |
| 11351 | (name "python-pycosat") |
| 11352 | (version "0.6.1") |
| 11353 | (source |
| 11354 | (origin |
| 11355 | (method url-fetch) |
| 11356 | (uri (pypi-uri "pycosat" version)) |
| 11357 | (sha256 |
| 11358 | (base32 |
| 11359 | "1kl3wh1f47rc712n4bmwplbx3fqz3x9i1b587jrbpmvdva4c8f6l")))) |
| 11360 | ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/ |
| 11361 | (build-system python-build-system) |
| 11362 | (home-page "https://github.com/ContinuumIO/pycosat") |
| 11363 | (synopsis "Bindings to picosat (a SAT solver)") |
| 11364 | (description |
| 11365 | "This package provides efficient Python bindings to @code{picosat} on |
| 11366 | the C level. When importing pycosat, the @code{picosat} solver becomes part |
| 11367 | of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability |
| 11368 | Problem} (SAT) solver.") |
| 11369 | (license license:expat))) |
| 11370 | |
| 11371 | (define-public python2-pycosat |
| 11372 | (package-with-python2 python-pycosat)) |
| 11373 | |
| 11374 | (define-public python2-ruamel.ordereddict |
| 11375 | (package |
| 11376 | (name "python2-ruamel.ordereddict") |
| 11377 | (version "0.4.9") |
| 11378 | (source |
| 11379 | (origin |
| 11380 | (method url-fetch) |
| 11381 | (uri (pypi-uri "ruamel.ordereddict" version)) |
| 11382 | (sha256 |
| 11383 | (base32 |
| 11384 | "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h")))) |
| 11385 | (build-system python-build-system) |
| 11386 | (arguments |
| 11387 | `(#:python ,python-2 |
| 11388 | #:phases |
| 11389 | (modify-phases %standard-phases |
| 11390 | (delete 'check) |
| 11391 | (add-after 'install 'check |
| 11392 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 11393 | (add-installed-pythonpath inputs outputs) |
| 11394 | (invoke "python" "test/testordereddict.py")))))) |
| 11395 | (home-page "https://bitbucket.org/ruamel/ordereddict") |
| 11396 | (synopsis "Version of dict that keeps keys in insertion order") |
| 11397 | (description |
| 11398 | "This is an implementation of an ordered dictionary with @dfn{Key |
| 11399 | Insertion Order} (KIO: updates of values do not affect the position of the |
| 11400 | key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is |
| 11401 | removed and put at the back). The standard library module @code{OrderedDict}, |
| 11402 | implemented later, implements a subset of @code{ordereddict} functionality. |
| 11403 | Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted |
| 11404 | Order} (KSO, no sorting function can be specified, but a transform can be |
| 11405 | specified to apply on the key before comparison (e.g. @code{string.lower})).") |
| 11406 | (license license:expat))) |
| 11407 | |
| 11408 | (define-public python-pypeg2 |
| 11409 | (package |
| 11410 | (name "python-pypeg2") |
| 11411 | (version "2.15.2") |
| 11412 | (source |
| 11413 | (origin |
| 11414 | (method url-fetch) |
| 11415 | (uri (pypi-uri "pyPEG2" version)) |
| 11416 | (sha256 |
| 11417 | (base32 |
| 11418 | "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b")))) |
| 11419 | (build-system python-build-system) |
| 11420 | (propagated-inputs `(("python-lxml" ,python-lxml))) |
| 11421 | (arguments |
| 11422 | ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35 |
| 11423 | '(#:tests? #f)) |
| 11424 | (home-page "https://fdik.org/pyPEG/") |
| 11425 | (synopsis "Parsering Expression Grammars in Python") |
| 11426 | (description "PyPEG is an intrinsic parser interpreter framework for |
| 11427 | Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can |
| 11428 | parse many formal languages.") |
| 11429 | (license license:gpl2))) |
| 11430 | |
| 11431 | (define-public python-incremental |
| 11432 | (package |
| 11433 | (name "python-incremental") |
| 11434 | (version "17.5.0") |
| 11435 | (source |
| 11436 | (origin |
| 11437 | (method url-fetch) |
| 11438 | (uri (pypi-uri "incremental" version)) |
| 11439 | (sha256 |
| 11440 | (base32 |
| 11441 | "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv")))) |
| 11442 | (build-system python-build-system) |
| 11443 | (home-page "https://github.com/hawkowl/incremental") |
| 11444 | (synopsis "Library for versioning Python projects") |
| 11445 | (description "Incremental is a small library that versions your Python |
| 11446 | projects.") |
| 11447 | (license license:expat))) |
| 11448 | |
| 11449 | (define-public python2-incremental |
| 11450 | (package-with-python2 python-incremental)) |
| 11451 | |
| 11452 | (define-public python-invoke |
| 11453 | (package |
| 11454 | (name "python-invoke") |
| 11455 | (home-page "http://www.pyinvoke.org/") |
| 11456 | (version "1.1.0") |
| 11457 | (source (origin |
| 11458 | (method url-fetch) |
| 11459 | (uri (pypi-uri "invoke" version)) |
| 11460 | (sha256 |
| 11461 | (base32 |
| 11462 | "0aiy1xvk1f91246zxd1zqrm679vdvd10h843a2na41cqr3cflpi6")))) |
| 11463 | (build-system python-build-system) |
| 11464 | (arguments |
| 11465 | ;; XXX: Requires many dependencies that are not yet in Guix. |
| 11466 | `(#:tests? #f)) |
| 11467 | (synopsis "Pythonic task execution") |
| 11468 | (description |
| 11469 | "Invoke is a Python task execution tool and library, drawing inspiration |
| 11470 | from various sources to arrive at a powerful and clean feature set. It is |
| 11471 | evolved from the Fabric project, but focuses on local and abstract concerns |
| 11472 | instead of servers and network commands.") |
| 11473 | (license license:bsd-3))) |
| 11474 | |
| 11475 | (define-public python2-invoke |
| 11476 | (package-with-python2 python-invoke)) |
| 11477 | |
| 11478 | (define-public python-automat |
| 11479 | (package |
| 11480 | (name "python-automat") |
| 11481 | (version "0.7.0") |
| 11482 | (source (origin |
| 11483 | (method url-fetch) |
| 11484 | (uri (pypi-uri "Automat" version)) |
| 11485 | (sha256 |
| 11486 | (base32 |
| 11487 | "03ivg70n3b1cbcd2zvjhk8y4kmqxcvhmili39lmgx09dza1qpmyb")))) |
| 11488 | (build-system python-build-system) |
| 11489 | ;; We disable the tests because they require python-twisted, while |
| 11490 | ;; python-twisted depends on python-automat. Twisted is optional, but the |
| 11491 | ;; tests fail if it is not available. Also see |
| 11492 | ;; <https://github.com/glyph/automat/issues/71>. |
| 11493 | (arguments '(#:tests? #f)) |
| 11494 | (native-inputs |
| 11495 | `(("python-m2r" ,python-m2r) |
| 11496 | ("python-setuptools-scm" ,python-setuptools-scm) |
| 11497 | ("python-graphviz" ,python-graphviz))) |
| 11498 | (propagated-inputs |
| 11499 | `(("python-six" ,python-six) |
| 11500 | ("python-attrs" ,python-attrs))) |
| 11501 | (home-page "https://github.com/glyph/Automat") |
| 11502 | (synopsis "Self-service finite-state machines") |
| 11503 | (description "Automat is a library for concise, idiomatic Python |
| 11504 | expression of finite-state automata (particularly deterministic finite-state |
| 11505 | transducers).") |
| 11506 | (license license:expat))) |
| 11507 | |
| 11508 | (define-public python2-automat |
| 11509 | (package-with-python2 python-automat)) |
| 11510 | |
| 11511 | (define-public python-m2r |
| 11512 | (package |
| 11513 | (name "python-m2r") |
| 11514 | (version "0.2.1") |
| 11515 | (source (origin |
| 11516 | (method url-fetch) |
| 11517 | (uri (pypi-uri "m2r" version)) |
| 11518 | (sha256 |
| 11519 | (base32 |
| 11520 | "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z")))) |
| 11521 | (build-system python-build-system) |
| 11522 | (propagated-inputs |
| 11523 | `(("python-docutils" ,python-docutils) |
| 11524 | ("python-mistune" ,python-mistune))) |
| 11525 | (native-inputs |
| 11526 | `(("python-pygments" ,python-pygments) |
| 11527 | ("python-mock" ,python-mock))) |
| 11528 | (home-page "https://github.com/miyakogi/m2r") |
| 11529 | (synopsis "Markdown to reStructuredText converter") |
| 11530 | (description "M2R converts a markdown file including reST markups to valid |
| 11531 | reST format.") |
| 11532 | (license license:expat))) |
| 11533 | |
| 11534 | (define-public python2-m2r |
| 11535 | (package-with-python2 python-m2r)) |
| 11536 | |
| 11537 | (define-public python-constantly |
| 11538 | (package |
| 11539 | (name "python-constantly") |
| 11540 | (version "15.1.0") |
| 11541 | (source (origin |
| 11542 | (method url-fetch) |
| 11543 | (uri (pypi-uri "constantly" version)) |
| 11544 | (sha256 |
| 11545 | (base32 |
| 11546 | "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq")))) |
| 11547 | (build-system python-build-system) |
| 11548 | (home-page "https://github.com/twisted/constantly") |
| 11549 | (synopsis "Symbolic constants in Python") |
| 11550 | (description "Constantly is a Python library that provides symbolic |
| 11551 | constant support. It includes collections and constants with text, numeric, |
| 11552 | and bit flag values.") |
| 11553 | (license license:expat))) |
| 11554 | |
| 11555 | (define-public python2-constantly |
| 11556 | (package-with-python2 python-constantly)) |
| 11557 | |
| 11558 | (define-public python-attrs |
| 11559 | (package |
| 11560 | (name "python-attrs") |
| 11561 | (version "19.1.0") |
| 11562 | (source (origin |
| 11563 | (method url-fetch) |
| 11564 | (uri (pypi-uri "attrs" version)) |
| 11565 | (sha256 |
| 11566 | (base32 |
| 11567 | "16g33zr5f449lqc5wgvzpknxryfzrfsxcr6kpgxwn7l5fkv71f7h")))) |
| 11568 | (build-system python-build-system) |
| 11569 | (arguments |
| 11570 | `(#:modules ((guix build utils) |
| 11571 | (guix build python-build-system) |
| 11572 | (ice-9 ftw) |
| 11573 | (srfi srfi-1) |
| 11574 | (srfi srfi-26)) |
| 11575 | #:phases (modify-phases %standard-phases |
| 11576 | (replace 'check |
| 11577 | (lambda _ |
| 11578 | (let ((cwd (getcwd))) |
| 11579 | (setenv "PYTHONPATH" |
| 11580 | (string-append |
| 11581 | cwd "/build/" |
| 11582 | (find (cut string-prefix? "lib" <>) |
| 11583 | (scandir (string-append cwd "/build"))) |
| 11584 | ":" |
| 11585 | (getenv "PYTHONPATH"))) |
| 11586 | (invoke "python" "-m" "pytest"))))))) |
| 11587 | (native-inputs |
| 11588 | `(("python-coverage" ,python-coverage) |
| 11589 | ("python-hypothesis" ,python-hypothesis) |
| 11590 | ("python-pympler" ,python-pympler) |
| 11591 | ("python-pytest" ,python-pytest) |
| 11592 | ("python-six" ,python-six) |
| 11593 | ("python-sphinx" ,python-sphinx) |
| 11594 | ("python-zope-interface" ,python-zope-interface))) |
| 11595 | (home-page "https://github.com/python-attrs/attrs/") |
| 11596 | (synopsis "Attributes without boilerplate") |
| 11597 | (description "@code{attrs} is a Python package with class decorators that |
| 11598 | ease the chores of implementing the most common attribute-related object |
| 11599 | protocols.") |
| 11600 | (license license:expat))) |
| 11601 | |
| 11602 | (define-public python2-attrs |
| 11603 | (package-with-python2 python-attrs)) |
| 11604 | |
| 11605 | (define-public python-attrs-bootstrap |
| 11606 | (package |
| 11607 | (inherit python-attrs) |
| 11608 | (name "python-attrs-bootstrap") |
| 11609 | ;; Keep this on a fixed version so python-attrs can be updated without |
| 11610 | ;; triggering a mass-rebuild. FIXME: Update this in the next rebuild cycle. |
| 11611 | (version "17.4.0") |
| 11612 | (source (origin |
| 11613 | (method url-fetch) |
| 11614 | (uri (pypi-uri "attrs" version)) |
| 11615 | (sha256 |
| 11616 | (base32 |
| 11617 | "1jafnn1kzd6qhxgprhx6y6ik1r5m2rilx25syzcmq03azp660y8w")))) |
| 11618 | (native-inputs `()) |
| 11619 | (arguments `(#:tests? #f)))) |
| 11620 | |
| 11621 | (define-public python2-attrs-bootstrap |
| 11622 | (package-with-python2 python-attrs-bootstrap)) |
| 11623 | |
| 11624 | (define-public python2-cliapp |
| 11625 | (package |
| 11626 | (name "python2-cliapp") |
| 11627 | (version "1.20180812.1") |
| 11628 | (source |
| 11629 | (origin |
| 11630 | (method url-fetch) |
| 11631 | (uri (string-append |
| 11632 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-" |
| 11633 | version ".tar.gz")) |
| 11634 | (sha256 |
| 11635 | (base32 |
| 11636 | "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x")))) |
| 11637 | (build-system python-build-system) |
| 11638 | (arguments |
| 11639 | `(#:python ,python-2 |
| 11640 | #:phases |
| 11641 | (modify-phases %standard-phases |
| 11642 | ;; check phase needs to be run before the build phase. If not, |
| 11643 | ;; coverage-test-runner looks for tests for the built source files, |
| 11644 | ;; and fails. |
| 11645 | (delete 'check) |
| 11646 | (add-before 'build 'check |
| 11647 | (lambda _ |
| 11648 | ;; Disable python3 tests |
| 11649 | (substitute* "check" |
| 11650 | (("python3") "# python3")) |
| 11651 | (invoke "./check")))))) |
| 11652 | (native-inputs |
| 11653 | `(("python2-coverage-test-runner" ,python2-coverage-test-runner) |
| 11654 | ("python2-pep8" ,python2-pep8))) |
| 11655 | (propagated-inputs |
| 11656 | `(("python2-pyaml" ,python2-pyaml))) |
| 11657 | (home-page "https://liw.fi/cliapp/") |
| 11658 | (synopsis "Python framework for command line programs") |
| 11659 | (description "@code{python2-cliapp} is a python framework for |
| 11660 | command line programs. It contains the typical stuff such programs |
| 11661 | need to do, such as parsing the command line for options, and |
| 11662 | iterating over input files.") |
| 11663 | (license license:gpl2+))) |
| 11664 | |
| 11665 | (define-public python2-ttystatus |
| 11666 | (package |
| 11667 | (name "python2-ttystatus") |
| 11668 | (version "0.36") |
| 11669 | (source |
| 11670 | (origin |
| 11671 | (method url-fetch) |
| 11672 | (uri (string-append |
| 11673 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/ttystatus/snapshot/ttystatus-" |
| 11674 | version ".tar.gz")) |
| 11675 | (sha256 |
| 11676 | (base32 |
| 11677 | "06mdk4d19zw2j3is54gndhzl396g3xc8k52m7i86z69s9hcz71by")))) |
| 11678 | (build-system python-build-system) |
| 11679 | (native-inputs |
| 11680 | `(("python2-coverage-test-runner" ,python2-coverage-test-runner) |
| 11681 | ("python2-pep8" ,python2-pep8))) |
| 11682 | (arguments |
| 11683 | `(#:python ,python-2 |
| 11684 | #:phases |
| 11685 | (modify-phases %standard-phases |
| 11686 | ;; check phase needs to be run before the build phase. If not, |
| 11687 | ;; coverage-test-runner looks for tests for the built source files, |
| 11688 | ;; and fails. |
| 11689 | (delete 'check) |
| 11690 | (add-before 'build 'check |
| 11691 | (lambda _ (invoke "make" "check")))))) |
| 11692 | (home-page "https://liw.fi/ttystatus/") |
| 11693 | (synopsis "Python library for showing progress reporting and |
| 11694 | status updates on terminals") |
| 11695 | (description "@code{python2-ttystatus} is a python library for |
| 11696 | showing progress reporting and status updates on terminals, for |
| 11697 | command line programs. Output is automatically adapted to the width |
| 11698 | of the terminal: truncated if it does not fit, and resized if the |
| 11699 | terminal size changes.") |
| 11700 | (license license:gpl3+))) |
| 11701 | |
| 11702 | (define-public python2-tracing |
| 11703 | (package |
| 11704 | (name "python2-tracing") |
| 11705 | (version "0.10") |
| 11706 | (source |
| 11707 | (origin |
| 11708 | (method url-fetch) |
| 11709 | (uri (string-append |
| 11710 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-" |
| 11711 | version ".tar.gz")) |
| 11712 | (sha256 |
| 11713 | (base32 |
| 11714 | "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw")))) |
| 11715 | (build-system python-build-system) |
| 11716 | (arguments |
| 11717 | `(#:python ,python-2)) |
| 11718 | (home-page "https://liw.fi/tracing/") |
| 11719 | (synopsis "Python debug logging helper") |
| 11720 | (description "@code{python2-tracing} is a python library for |
| 11721 | logging debug messages. It provides a way to turn debugging messages |
| 11722 | on and off, based on the filename they occur in. It is much faster |
| 11723 | than using @code{logging.Filter} to accomplish the same thing, which |
| 11724 | matters when code is run in production mode. The actual logging still |
| 11725 | happens using the @code{logging} library.") |
| 11726 | (license license:gpl3+))) |
| 11727 | |
| 11728 | (define-public python2-larch |
| 11729 | (package |
| 11730 | (name "python2-larch") |
| 11731 | (version "1.20151025") |
| 11732 | (source |
| 11733 | (origin |
| 11734 | (method url-fetch) |
| 11735 | (uri (string-append |
| 11736 | "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-" |
| 11737 | version ".tar.gz")) |
| 11738 | (patches (search-patches |
| 11739 | "python2-larch-coverage-4.0a6-compatibility.patch")) |
| 11740 | (sha256 |
| 11741 | (base32 |
| 11742 | "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663")))) |
| 11743 | (build-system python-build-system) |
| 11744 | (arguments |
| 11745 | `(#:python ,python-2 |
| 11746 | #:phases |
| 11747 | (modify-phases %standard-phases |
| 11748 | ;; check phase needs to be run before the build phase. If not, |
| 11749 | ;; coverage-test-runner looks for tests for the built source files, |
| 11750 | ;; and fails. |
| 11751 | (delete 'check) |
| 11752 | (add-before 'build 'check |
| 11753 | (lambda _ (invoke "make" "check")))))) |
| 11754 | (native-inputs |
| 11755 | `(("cmdtest" ,cmdtest) |
| 11756 | ("python2-coverage-test-runner" ,python2-coverage-test-runner))) |
| 11757 | (propagated-inputs |
| 11758 | `(("python2-tracing" ,python2-tracing))) |
| 11759 | (home-page "https://liw.fi/larch/") |
| 11760 | (synopsis "Python copy-on-write B-tree library") |
| 11761 | (description "@code{python2-larch} is an implementation of |
| 11762 | particular kind of B-tree, based on research by Ohad Rodeh. See |
| 11763 | @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details |
| 11764 | on the data structure. |
| 11765 | |
| 11766 | The distinctive feature of this B-tree is that a node is never |
| 11767 | (conceptually) modified. Instead, all updates are done by |
| 11768 | copy-on-write. This makes it easy to clone a tree, and modify only the |
| 11769 | clone, while other processes access the original tree.") |
| 11770 | (license license:gpl3+))) |
| 11771 | |
| 11772 | (define-public python-astroid |
| 11773 | (package |
| 11774 | (name "python-astroid") |
| 11775 | (version "2.1.0") |
| 11776 | (source |
| 11777 | (origin |
| 11778 | (method url-fetch) |
| 11779 | (uri (pypi-uri "astroid" version)) |
| 11780 | (sha256 |
| 11781 | (base32 |
| 11782 | "08hz675knh4294bancdapql392fmbjyimhbyrmfkz1ka7l035c1m")))) |
| 11783 | (build-system python-build-system) |
| 11784 | (propagated-inputs |
| 11785 | `(("python-lazy-object-proxy" ,python-lazy-object-proxy) |
| 11786 | ("python-six" ,python-six) |
| 11787 | ("python-wrapt" ,python-wrapt))) |
| 11788 | (native-inputs |
| 11789 | `(("python-dateutil" ,python-dateutil) |
| 11790 | ("python-nose" ,python-nose) |
| 11791 | ("python-pytest" ,python-pytest) |
| 11792 | ("python-pytest-runner" ,python-pytest-runner))) |
| 11793 | (arguments |
| 11794 | `(#:phases |
| 11795 | (modify-phases %standard-phases |
| 11796 | (add-after 'unpack 'remove-spurious-test |
| 11797 | (lambda _ |
| 11798 | ;; This can be removed after upgrading from python-3.7 |
| 11799 | ;; https://github.com/PyCQA/astroid/issues/593 |
| 11800 | ;; https://bugs.python.org/issue34056 |
| 11801 | (delete-file "astroid/tests/unittest_modutils.py") |
| 11802 | #t)) |
| 11803 | (replace 'check |
| 11804 | (lambda _ |
| 11805 | (invoke "pytest" "astroid")))))) |
| 11806 | (home-page "https://github.com/PyCQA/astroid") |
| 11807 | (synopsis "Common base representation of python source code for pylint and |
| 11808 | other projects") |
| 11809 | (description "@code{python-astroid} provides a common base representation |
| 11810 | of python source code for projects such as pychecker, pyreverse, pylint, etc. |
| 11811 | |
| 11812 | It provides a compatible representation which comes from the _ast module. It |
| 11813 | rebuilds the tree generated by the builtin _ast module by recursively walking |
| 11814 | down the AST and building an extended ast. The new node classes have |
| 11815 | additional methods and attributes for different usages. They include some |
| 11816 | support for static inference and local name scopes. Furthermore, astroid |
| 11817 | builds partial trees by inspecting living objects.") |
| 11818 | (license license:lgpl2.1+) |
| 11819 | (properties `((python2-variant . ,(delay python2-astroid)))))) |
| 11820 | |
| 11821 | (define-public python2-astroid |
| 11822 | (let ((base (package-with-python2 |
| 11823 | (strip-python2-variant python-astroid)))) |
| 11824 | (package (inherit base) |
| 11825 | ;; Version 2.x removes python2 support. |
| 11826 | (version "1.6.5") |
| 11827 | (source |
| 11828 | (origin |
| 11829 | (method url-fetch) |
| 11830 | (uri (pypi-uri "astroid" version)) |
| 11831 | (sha256 |
| 11832 | (base32 |
| 11833 | "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw")))) |
| 11834 | (arguments |
| 11835 | (substitute-keyword-arguments (package-arguments base) |
| 11836 | ((#:phases phases) |
| 11837 | `(modify-phases ,phases |
| 11838 | (add-after 'unpack 'remove-spurious-test |
| 11839 | (lambda _ |
| 11840 | ;; https://github.com/PyCQA/astroid/issues/276 |
| 11841 | (delete-file "astroid/tests/unittest_brain.py") |
| 11842 | #t)) |
| 11843 | (replace 'check |
| 11844 | (lambda _ |
| 11845 | (invoke"python" "-m" "unittest" "discover" |
| 11846 | "-p" "unittest*.py"))))))) |
| 11847 | (native-inputs `()) |
| 11848 | (propagated-inputs |
| 11849 | `(("python2-backports-functools-lru-cache" |
| 11850 | ,python2-backports-functools-lru-cache) |
| 11851 | ("python2-enum34" ,python2-enum34) |
| 11852 | ("python2-singledispatch" ,python2-singledispatch) |
| 11853 | ,@(package-propagated-inputs base)))))) |
| 11854 | |
| 11855 | (define-public python-isort |
| 11856 | (package |
| 11857 | (name "python-isort") |
| 11858 | (version "4.3.4") |
| 11859 | (source |
| 11860 | (origin |
| 11861 | (method git-fetch) |
| 11862 | (uri (git-reference |
| 11863 | ;; Tests pass only from the Github sources |
| 11864 | (url "https://github.com/timothycrosley/isort") |
| 11865 | (commit version))) |
| 11866 | (file-name (git-file-name name version)) |
| 11867 | (sha256 |
| 11868 | (base32 |
| 11869 | "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6")))) |
| 11870 | (build-system python-build-system) |
| 11871 | (native-inputs |
| 11872 | `(("python-mock" ,python-mock) |
| 11873 | ("python-pytest" ,python-pytest))) |
| 11874 | (home-page "https://github.com/timothycrosley/isort") |
| 11875 | (synopsis "Python utility/library to sort python imports") |
| 11876 | (description "@code{python-isort} is a python utility/library to sort |
| 11877 | imports alphabetically, and automatically separated into sections. It |
| 11878 | provides a command line utility, a python library and plugins for various |
| 11879 | editors.") |
| 11880 | (license license:expat) |
| 11881 | (properties `((python2-variant . ,(delay python2-isort)))))) |
| 11882 | |
| 11883 | (define-public python2-isort |
| 11884 | (let ((base (package-with-python2 |
| 11885 | (strip-python2-variant python-isort)))) |
| 11886 | (package (inherit base) |
| 11887 | (native-inputs |
| 11888 | `(("python2-futures" ,python2-futures) |
| 11889 | ,@(package-native-inputs base)))))) |
| 11890 | |
| 11891 | (define-public python2-backports-functools-lru-cache |
| 11892 | (package |
| 11893 | (name "python2-backports-functools-lru-cache") |
| 11894 | (version "1.5") |
| 11895 | (source |
| 11896 | (origin |
| 11897 | (method url-fetch) |
| 11898 | ;; only the pypi tarballs contain the necessary metadata |
| 11899 | (uri (pypi-uri "backports.functools_lru_cache" version)) |
| 11900 | (sha256 |
| 11901 | (base32 |
| 11902 | "06jgv8gib4fhky0p5cmxdghvsgjyzcdgk48k8pxb1ccf11znk64x")))) |
| 11903 | (build-system python-build-system) |
| 11904 | (native-inputs |
| 11905 | `(("python2-setuptools-scm" ,python2-setuptools-scm))) |
| 11906 | (arguments |
| 11907 | `(#:python ,python-2)) |
| 11908 | (home-page "https://github.com/jaraco/backports.functools_lru_cache") |
| 11909 | (synopsis "Backport of functools.lru_cache from Python 3.3") |
| 11910 | (description "@code{python2-backports-functools-lru-cache} is a backport |
| 11911 | of @code{functools.lru_cache} from python 3.3.") |
| 11912 | (license license:expat))) |
| 11913 | |
| 11914 | (define-public python-configparser |
| 11915 | (package |
| 11916 | (name "python-configparser") |
| 11917 | (version "3.5.0") |
| 11918 | (source |
| 11919 | (origin |
| 11920 | (method url-fetch) |
| 11921 | (uri (string-append |
| 11922 | "https://bitbucket.org/ambv/configparser/get/" |
| 11923 | version ".tar.bz2")) |
| 11924 | (file-name (string-append name "-" version ".tar.gz")) |
| 11925 | (sha256 |
| 11926 | (base32 |
| 11927 | "0waq40as14abwzbb321hfz4vr1fi363nscy32ga14qvfygrg96wa")))) |
| 11928 | (build-system python-build-system) |
| 11929 | (home-page "https://github.com/jaraco/configparser/") |
| 11930 | (synopsis "Backport of configparser from python 3.5") |
| 11931 | (description "@code{python-configparser} is a backport of |
| 11932 | @code{configparser} from Python 3.5 so that it can be used directly |
| 11933 | in other versions.") |
| 11934 | (license license:expat))) |
| 11935 | |
| 11936 | (define-public python2-configparser |
| 11937 | (package-with-python2 python-configparser)) |
| 11938 | |
| 11939 | (define-public python-mando |
| 11940 | (package |
| 11941 | (name "python-mando") |
| 11942 | (version "0.6.4") |
| 11943 | (source (origin |
| 11944 | (method url-fetch) |
| 11945 | (uri (pypi-uri "mando" version)) |
| 11946 | (sha256 |
| 11947 | (base32 |
| 11948 | "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr")))) |
| 11949 | (build-system python-build-system) |
| 11950 | (propagated-inputs |
| 11951 | `(("python-rst2ansi" ,python-rst2ansi) |
| 11952 | ("python-six" ,python-six))) |
| 11953 | (native-inputs |
| 11954 | `(("python-pytest" ,python-pytest))) |
| 11955 | (home-page "https://mando.readthedocs.org/") |
| 11956 | (synopsis |
| 11957 | "Wrapper around argparse, allowing creation of complete CLI applications") |
| 11958 | (description |
| 11959 | "This package is a wrapper around argparse, allowing you to write complete CLI |
| 11960 | applications in seconds while maintaining all the flexibility.") |
| 11961 | (license license:expat))) |
| 11962 | |
| 11963 | (define-public python2-mando |
| 11964 | (package-with-python2 python-mando)) |
| 11965 | |
| 11966 | (define-public python2-argparse |
| 11967 | (package |
| 11968 | (name "python2-argparse") |
| 11969 | (version "1.4.0") |
| 11970 | (source |
| 11971 | (origin |
| 11972 | (method url-fetch) |
| 11973 | (uri (pypi-uri "argparse" version)) |
| 11974 | (sha256 |
| 11975 | (base32 |
| 11976 | "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32")))) |
| 11977 | (build-system python-build-system) |
| 11978 | (arguments |
| 11979 | `(#:python ,python-2)) |
| 11980 | (home-page "https://github.com/ThomasWaldmann/argparse/") |
| 11981 | (synopsis "Python command-line parsing library") |
| 11982 | (description |
| 11983 | "This package is mostly for people who want to have @code{argparse} on |
| 11984 | older Pythons because it was not part of the standard library back then.") |
| 11985 | (license license:psfl))) |
| 11986 | |
| 11987 | (define-public python-fudge |
| 11988 | (package |
| 11989 | (name "python-fudge") |
| 11990 | ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2 |
| 11991 | ;; package, which is currently the only use of this package. |
| 11992 | (version "0.9.6") |
| 11993 | (source |
| 11994 | (origin |
| 11995 | (method url-fetch) |
| 11996 | (uri (pypi-uri "fudge" version)) |
| 11997 | (sha256 |
| 11998 | (base32 |
| 11999 | "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l")))) |
| 12000 | (build-system python-build-system) |
| 12001 | (arguments |
| 12002 | `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package. |
| 12003 | (home-page "https://github.com/fudge-py/fudge") |
| 12004 | (synopsis "Replace real objects with fakes/mocks/stubs while testing") |
| 12005 | (description |
| 12006 | "Fudge is a Python module for using fake objects (mocks and stubs) to |
| 12007 | test real ones. |
| 12008 | |
| 12009 | In readable Python code, you declare the methods available on your fake object |
| 12010 | and how they should be called. Then you inject that into your application and |
| 12011 | start testing. This declarative approach means you don’t have to record and |
| 12012 | playback actions and you don’t have to inspect your fakes after running code. |
| 12013 | If the fake object was used incorrectly then you’ll see an informative |
| 12014 | exception message with a traceback that points to the culprit.") |
| 12015 | (license license:expat))) |
| 12016 | |
| 12017 | (define-public python2-fudge |
| 12018 | (package-with-python2 python-fudge)) |
| 12019 | |
| 12020 | (define-public python-mwclient |
| 12021 | (package |
| 12022 | (name "python-mwclient") |
| 12023 | (version "0.8.4") |
| 12024 | (source |
| 12025 | (origin |
| 12026 | (method url-fetch) |
| 12027 | ;; The PyPI version wouldn't contain tests. |
| 12028 | (uri (string-append "https://github.com/mwclient/mwclient/archive/" |
| 12029 | "v" version ".tar.gz")) |
| 12030 | (file-name (string-append name "-" version ".tar.gz")) |
| 12031 | (sha256 |
| 12032 | (base32 |
| 12033 | "1jj0yhilkjir00719fc7w133x7hdyhkxhk6xblla4asig45klsfv")))) |
| 12034 | (build-system python-build-system) |
| 12035 | (propagated-inputs |
| 12036 | `(("python-requests" ,python-requests) |
| 12037 | ("python-requests-oauthlib" |
| 12038 | ,python-requests-oauthlib) |
| 12039 | ("python-six" ,python-six))) |
| 12040 | (native-inputs |
| 12041 | `(("python-mock" ,python-mock) |
| 12042 | ("python-pytest" ,python-pytest) |
| 12043 | ("python-pytest-pep8" ,python-pytest-pep8) |
| 12044 | ("python-pytest-cache" ,python-pytest-cache) |
| 12045 | ("python-pytest-cov" ,python-pytest-cov) |
| 12046 | ("python-responses" ,python-responses))) |
| 12047 | (home-page "https://github.com/btongminh/mwclient") |
| 12048 | (synopsis "MediaWiki API client") |
| 12049 | (description "This package provides a MediaWiki API client.") |
| 12050 | (license license:expat))) |
| 12051 | |
| 12052 | (define-public python2-mwclient |
| 12053 | (package-with-python2 python-mwclient)) |
| 12054 | |
| 12055 | (define-public python-utils |
| 12056 | (package |
| 12057 | (name "python-utils") |
| 12058 | (version "2.1.0") |
| 12059 | (source (origin |
| 12060 | (method url-fetch) |
| 12061 | (uri (pypi-uri "python-utils" version)) |
| 12062 | (sha256 |
| 12063 | (base32 |
| 12064 | "1mcsy6q5am4ya72rgkpb6kax6vv7c93cfkkas89xnpa4sj9zf28p")))) |
| 12065 | (build-system python-build-system) |
| 12066 | (native-inputs |
| 12067 | `(("pytest-runner" ,python-pytest-runner) |
| 12068 | ("pytest" ,python-pytest) |
| 12069 | ("six" ,python-six))) |
| 12070 | (home-page "https://github.com/WoLpH/python-utils") |
| 12071 | (synopsis "Convenient utilities not included with the standard Python install") |
| 12072 | (description |
| 12073 | "Python Utils is a collection of small Python functions and classes which |
| 12074 | make common patterns shorter and easier.") |
| 12075 | (license license:bsd-2))) |
| 12076 | |
| 12077 | (define-public python2-utils |
| 12078 | (package-with-python2 python-utils)) |
| 12079 | |
| 12080 | (define-public python-diff-match-patch |
| 12081 | (package |
| 12082 | (name "python-diff-match-patch") |
| 12083 | (version "20121119") |
| 12084 | (source |
| 12085 | (origin |
| 12086 | (method url-fetch) |
| 12087 | (uri (pypi-uri "diff-match-patch" version)) |
| 12088 | (sha256 |
| 12089 | (base32 |
| 12090 | "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx")))) |
| 12091 | (build-system python-build-system) |
| 12092 | (home-page "https://code.google.com/p/google-diff-match-patch") |
| 12093 | (synopsis "Synchronize plain text") |
| 12094 | (description "Diff Match and Patch libraries offer robust algorithms to |
| 12095 | perform the operations required for synchronizing plain text.") |
| 12096 | (license license:asl2.0))) |
| 12097 | |
| 12098 | (define-public python2-diff-match-patch |
| 12099 | (package-with-python2 python-diff-match-patch)) |
| 12100 | |
| 12101 | (define-public python-dirsync |
| 12102 | (package |
| 12103 | (name "python-dirsync") |
| 12104 | (version "2.2.3") |
| 12105 | (source |
| 12106 | (origin |
| 12107 | (method url-fetch) |
| 12108 | (uri (pypi-uri "dirsync" version)) |
| 12109 | (sha256 |
| 12110 | (base32 |
| 12111 | "1r40fkanksagcszf1ag85mdr8w7rgc7196n6s1qlsk2abw6i7v0z")))) |
| 12112 | (build-system python-build-system) |
| 12113 | (propagated-inputs |
| 12114 | `(("six" ,python-six))) |
| 12115 | (home-page "https://bitbucket.org/tkhyn/dirsync") |
| 12116 | (synopsis "Advanced directory tree synchronisation tool") |
| 12117 | (description "Advanced directory tree synchronisation tool.") |
| 12118 | (license license:expat))) |
| 12119 | |
| 12120 | (define-public python2-dirsync |
| 12121 | (package-with-python2 python-dirsync)) |
| 12122 | |
| 12123 | (define-public python-levenshtein |
| 12124 | (package |
| 12125 | (name "python-levenshtein") |
| 12126 | (version "0.12.0") |
| 12127 | (source |
| 12128 | (origin |
| 12129 | (method url-fetch) |
| 12130 | (uri (pypi-uri "python-Levenshtein" version)) |
| 12131 | (sha256 |
| 12132 | (base32 |
| 12133 | "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3")))) |
| 12134 | (build-system python-build-system) |
| 12135 | (home-page "https://github.com/ztane/python-Levenshtein") |
| 12136 | (synopsis "Fast computation of Levenshtein distance and string similarity") |
| 12137 | (description |
| 12138 | "The Levenshtein Python C extension module contains functions for fast computation of |
| 12139 | @enumerate |
| 12140 | @item Levenshtein (edit) distance, and edit operations |
| 12141 | @item string similarity |
| 12142 | @item approximate median strings, and generally string averaging |
| 12143 | @item string sequence and set similarity |
| 12144 | @end enumerate |
| 12145 | It supports both normal and Unicode strings.") |
| 12146 | (license license:gpl2+))) |
| 12147 | |
| 12148 | (define-public python2-levenshtein |
| 12149 | (package-with-python2 python-levenshtein)) |
| 12150 | |
| 12151 | (define-public python-scandir |
| 12152 | (package |
| 12153 | (name "python-scandir") |
| 12154 | (version "1.9.0") |
| 12155 | (source |
| 12156 | (origin |
| 12157 | (method url-fetch) |
| 12158 | (uri (pypi-uri "scandir" version)) |
| 12159 | (sha256 |
| 12160 | (base32 "0r3hvf1a9jm1rkqgx40gxkmccknkaiqjavs8lccgq9s8khh5x5s4")))) |
| 12161 | (build-system python-build-system) |
| 12162 | (arguments |
| 12163 | `(#:phases (modify-phases %standard-phases |
| 12164 | (replace 'check |
| 12165 | (lambda _ |
| 12166 | (invoke "python" "test/run_tests.py")))))) |
| 12167 | (home-page "https://github.com/benhoyt/scandir") |
| 12168 | (synopsis "Directory iteration function") |
| 12169 | (description |
| 12170 | "Directory iteration function like os.listdir(), except that instead of |
| 12171 | returning a list of bare filenames, it yields DirEntry objects that include |
| 12172 | file type and stat information along with the name. Using scandir() increases |
| 12173 | the speed of os.walk() by 2-20 times (depending on the platform and file |
| 12174 | system) by avoiding unnecessary calls to os.stat() in most cases. |
| 12175 | |
| 12176 | This package is part of the Python standard library since version 3.5.") |
| 12177 | (license license:bsd-3))) |
| 12178 | |
| 12179 | (define-public python2-scandir |
| 12180 | (package-with-python2 python-scandir)) |
| 12181 | |
| 12182 | (define-public python2-stemming |
| 12183 | (package |
| 12184 | (name "python2-stemming") |
| 12185 | (version "1.0.1") |
| 12186 | (source |
| 12187 | (origin |
| 12188 | (method url-fetch) |
| 12189 | (uri (pypi-uri "stemming" version)) |
| 12190 | (sha256 |
| 12191 | (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr")))) |
| 12192 | (build-system python-build-system) |
| 12193 | (arguments |
| 12194 | `(#:python ,python-2)) |
| 12195 | (home-page "https://bitbucket.org/mchaput/stemming/overview") |
| 12196 | (synopsis "Python implementations of various stemming algorithms") |
| 12197 | (description |
| 12198 | "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins |
| 12199 | stemming algorithms for English. These implementations are straightforward and |
| 12200 | efficient, unlike some Python versions of the same algorithms available on the |
| 12201 | Web. This package is an extraction of the stemming code included in the Whoosh |
| 12202 | search engine.") |
| 12203 | (license license:public-domain))) |
| 12204 | |
| 12205 | (define-public python-factory-boy |
| 12206 | (package |
| 12207 | (name "python-factory-boy") |
| 12208 | (version "2.8.1") |
| 12209 | (source |
| 12210 | (origin |
| 12211 | (method url-fetch) |
| 12212 | (uri (pypi-uri "factory_boy" version)) |
| 12213 | (sha256 |
| 12214 | (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56")))) |
| 12215 | (build-system python-build-system) |
| 12216 | (arguments |
| 12217 | ;; Tests are not included in the tarball. |
| 12218 | `(#:tests? #f)) |
| 12219 | (propagated-inputs |
| 12220 | `(("faker" ,python-faker))) |
| 12221 | (home-page "https://github.com/benhoyt/scandir") |
| 12222 | (synopsis "Versatile test fixtures replacement") |
| 12223 | (description |
| 12224 | "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl. |
| 12225 | |
| 12226 | As a fixtures replacement tool, it aims to replace static, hard to maintain |
| 12227 | fixtures with easy-to-use factories for complex object. |
| 12228 | |
| 12229 | Instead of building an exhaustive test setup with every possible combination |
| 12230 | of corner cases, factory_boy allows you to use objects customized for the |
| 12231 | current test, while only declaring the test-specific fields") |
| 12232 | (license license:expat))) |
| 12233 | |
| 12234 | (define-public python2-factory-boy |
| 12235 | (package-with-python2 python-factory-boy)) |
| 12236 | |
| 12237 | (define-public python-translate-toolkit |
| 12238 | (package |
| 12239 | (name "python-translate-toolkit") |
| 12240 | (version "2.1.0") |
| 12241 | (source |
| 12242 | (origin |
| 12243 | (method url-fetch) |
| 12244 | (uri (pypi-uri "translate-toolkit" version ".tar.bz2")) |
| 12245 | (sha256 |
| 12246 | (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq")))) |
| 12247 | (build-system python-build-system) |
| 12248 | (native-inputs |
| 12249 | `(("python-pytest" ,python-pytest) |
| 12250 | ("python-sphinx" ,python-sphinx))) |
| 12251 | (propagated-inputs |
| 12252 | `(("python-babel" ,python-babel) |
| 12253 | ("python-beautifulsoup4" ,python-beautifulsoup4) |
| 12254 | ("python-chardet" ,python-chardet) |
| 12255 | ("python-diff-match-patch" ,python-diff-match-patch) |
| 12256 | ("python-levenshtein" ,python-levenshtein) |
| 12257 | ("python-lxml" ,python-lxml) |
| 12258 | ("python-six" ,python-six) |
| 12259 | ("python-vobject" ,python-vobject) |
| 12260 | ("python-pyyaml" ,python-pyyaml))) |
| 12261 | (arguments |
| 12262 | ;; TODO: tests are not run, because they end with |
| 12263 | ;; TypeError: parse() missing 2 required positional arguments: 'tree' and |
| 12264 | ;; 'parse_funcs' |
| 12265 | ;; during test setup. |
| 12266 | `(#:tests? #f)) |
| 12267 | (home-page "https://toolkit.translatehouse.org") |
| 12268 | (synopsis "Tools and API for translation and localization engineering") |
| 12269 | (description |
| 12270 | "Tools and API for translation and localization engineering. It contains |
| 12271 | several utilities, as well as an API for building localization tools.") |
| 12272 | (license license:gpl2+))) |
| 12273 | |
| 12274 | (define-public python2-translate-toolkit |
| 12275 | (package-with-python2 python-translate-toolkit)) |
| 12276 | |
| 12277 | (define-public python-packaging |
| 12278 | (package |
| 12279 | (name "python-packaging") |
| 12280 | (version "19.0") |
| 12281 | (source |
| 12282 | (origin |
| 12283 | (method url-fetch) |
| 12284 | (uri (pypi-uri "packaging" version)) |
| 12285 | (sha256 |
| 12286 | (base32 |
| 12287 | "1brjhygq9dz6x1kdljivkjfldi3qf5rbkqgck1bpgv9qpv8ab60c")))) |
| 12288 | (build-system python-build-system) |
| 12289 | (arguments |
| 12290 | `(#:phases (modify-phases %standard-phases |
| 12291 | (replace 'check |
| 12292 | (lambda _ (invoke "py.test" "-vv")))))) |
| 12293 | (native-inputs |
| 12294 | `(("python-pretend" ,python-pretend) |
| 12295 | ("python-pytest" ,python-pytest))) |
| 12296 | (propagated-inputs |
| 12297 | `(("python-pyparsing" ,python-pyparsing) |
| 12298 | ("python-six" ,python-six))) |
| 12299 | (home-page "https://github.com/pypa/packaging") |
| 12300 | (synopsis "Core utilities for Python packages") |
| 12301 | (description "Packaging is a Python module for dealing with Python packages. |
| 12302 | It offers an interface for working with package versions, names, and dependency |
| 12303 | information.") |
| 12304 | ;; From 'LICENSE': This software is made available under the terms of |
| 12305 | ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. |
| 12306 | ;; Contributions to this software is made under the terms of *both* these |
| 12307 | ;; licenses. |
| 12308 | (license (list license:asl2.0 license:bsd-2)))) |
| 12309 | |
| 12310 | (define-public python2-packaging |
| 12311 | (package-with-python2 python-packaging)) |
| 12312 | |
| 12313 | (define-public python-relatorio |
| 12314 | (package |
| 12315 | (name "python-relatorio") |
| 12316 | (version "0.8.0") |
| 12317 | (source |
| 12318 | (origin |
| 12319 | (method url-fetch) |
| 12320 | (uri (pypi-uri "relatorio" version)) |
| 12321 | (sha256 |
| 12322 | (base32 |
| 12323 | "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx")))) |
| 12324 | (build-system python-build-system) |
| 12325 | (propagated-inputs |
| 12326 | `(("python-lxml" ,python-lxml) |
| 12327 | ("python-genshi" ,python-genshi))) |
| 12328 | (native-inputs |
| 12329 | `(("python-magic" ,python-magic))) |
| 12330 | (home-page "https://relatorio.tryton.org/") |
| 12331 | (synopsis "Templating library able to output ODT and PDF files") |
| 12332 | (description "Relatorio is a templating library which provides a way to |
| 12333 | easily output ODT, ODS, PNG, SVG and several other kinds of files. Support |
| 12334 | for more filetypes can be easily added by creating plugins for them.") |
| 12335 | (license license:gpl3+))) |
| 12336 | |
| 12337 | (define-public python2-relatorio |
| 12338 | (package-with-python2 python-relatorio)) |
| 12339 | |
| 12340 | (define-public python-radon |
| 12341 | (package |
| 12342 | (name "python-radon") |
| 12343 | (version "2.2.0") |
| 12344 | (source |
| 12345 | (origin |
| 12346 | (method url-fetch) |
| 12347 | (uri (pypi-uri "radon" version)) |
| 12348 | (sha256 |
| 12349 | (base32 |
| 12350 | "07gq5hq4nrffxnlnksws9hrx7fd001gam63j62i82gyfr23gvdym")))) |
| 12351 | (build-system python-build-system) |
| 12352 | (arguments |
| 12353 | `(#:phases (modify-phases %standard-phases |
| 12354 | (replace 'check |
| 12355 | (lambda _ |
| 12356 | (invoke "python" "radon/tests/run.py")))))) |
| 12357 | (propagated-inputs |
| 12358 | `(("python-colorama" ,python-colorama) |
| 12359 | ("python-flake8-polyfill" ,python-flake8-polyfill) |
| 12360 | ("python-mando" ,python-mando))) |
| 12361 | (native-inputs |
| 12362 | `(("python-pytest" ,python-pytest) |
| 12363 | ("python-pytest-mock" ,python-pytest-mock))) |
| 12364 | (home-page "https://radon.readthedocs.org/") |
| 12365 | (synopsis "Code Metrics in Python") |
| 12366 | (description "Radon is a Python tool which computes various code metrics. |
| 12367 | Supported metrics are: |
| 12368 | @itemize @bullet |
| 12369 | @item raw metrics: SLOC, comment lines, blank lines, &c. |
| 12370 | @item Cyclomatic Complexity (i.e. McCabe’s Complexity) |
| 12371 | @item Halstead metrics (all of them) |
| 12372 | @item the Maintainability Index (a Visual Studio metric) |
| 12373 | @end itemize") |
| 12374 | (license license:expat))) |
| 12375 | |
| 12376 | (define-public python2-radon |
| 12377 | (package-with-python2 python-radon)) |
| 12378 | |
| 12379 | (define-public python-sure |
| 12380 | (package |
| 12381 | (name "python-sure") |
| 12382 | (version "1.4.11") |
| 12383 | (source |
| 12384 | (origin |
| 12385 | (method url-fetch) |
| 12386 | (uri (pypi-uri "sure" version)) |
| 12387 | (sha256 |
| 12388 | (base32 |
| 12389 | "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w")))) |
| 12390 | (build-system python-build-system) |
| 12391 | (propagated-inputs |
| 12392 | `(("python-mock" ,python-mock) |
| 12393 | ("python-six" ,python-six))) |
| 12394 | (native-inputs |
| 12395 | `(("python-nose" ,python-nose))) |
| 12396 | (home-page "https://github.com/gabrielfalcao/sure") |
| 12397 | (synopsis "Automated testing library in python for python") |
| 12398 | (description |
| 12399 | "Sure is a python library that leverages a DSL for writing assertions. |
| 12400 | Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.") |
| 12401 | (license license:gpl3+))) |
| 12402 | |
| 12403 | (define-public python2-sure |
| 12404 | (package-with-python2 python-sure)) |
| 12405 | |
| 12406 | (define-public python2-couleur |
| 12407 | ;; This package does not seem to support python3 at all, hence, |
| 12408 | ;; only the python2 variant definition is provided. |
| 12409 | (package |
| 12410 | (name "python2-couleur") |
| 12411 | (version "0.6.2") |
| 12412 | (source |
| 12413 | (origin |
| 12414 | (method url-fetch) |
| 12415 | (uri (pypi-uri "couleur" version)) |
| 12416 | (sha256 |
| 12417 | (base32 |
| 12418 | "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1")))) |
| 12419 | (build-system python-build-system) |
| 12420 | (arguments |
| 12421 | `(#:python ,python-2)) |
| 12422 | (home-page "https://github.com/gabrielfalcao/couleur") |
| 12423 | (synopsis |
| 12424 | "ANSI terminal tool for python, colored shell and other handy fancy features") |
| 12425 | (description |
| 12426 | "@code{Couleur} provides python programs a way to use the ANSI features in a unix |
| 12427 | terminal such as coloured output in the shell, overwriting output, indentation, etc.") |
| 12428 | ;; README.md says ASL2.0, but all source code headers are LGPL3+. |
| 12429 | ;; https://github.com/gabrielfalcao/couleur/issues/11 |
| 12430 | (license license:lgpl3+))) |
| 12431 | |
| 12432 | (define-public python-misaka |
| 12433 | (package |
| 12434 | (name "python-misaka") |
| 12435 | (version "2.1.1") |
| 12436 | (source |
| 12437 | (origin |
| 12438 | (method url-fetch) |
| 12439 | (uri (pypi-uri "misaka" version)) |
| 12440 | (sha256 |
| 12441 | (base32 |
| 12442 | "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2")))) |
| 12443 | (build-system python-build-system) |
| 12444 | (arguments |
| 12445 | `(;; Line 37 of setup.py calls self.run_command('develop') |
| 12446 | ;; in the 'check' phase. This command seems to be trying |
| 12447 | ;; to write to |
| 12448 | ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/ |
| 12449 | ;; for which it does not have the permission to write. |
| 12450 | #:tests? #f)) |
| 12451 | (propagated-inputs |
| 12452 | `(("python-cffi" ,python-cffi))) |
| 12453 | (home-page "https://github.com/FSX/misaka") |
| 12454 | (synopsis "Python binding for Hoedown") |
| 12455 | (description |
| 12456 | "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing |
| 12457 | library written in C. It features a fast HTML renderer and functionality to make custom |
| 12458 | renderers (e.g. man pages or LaTeX).") |
| 12459 | (license license:expat))) |
| 12460 | |
| 12461 | (define-public python2-misaka |
| 12462 | (package-with-python2 python-misaka)) |
| 12463 | |
| 12464 | (define-public python2-steadymark |
| 12465 | ;; This is forced into being a python2 only variant |
| 12466 | ;; due to its dependence on couleur that has no support |
| 12467 | ;; for python3 |
| 12468 | (package |
| 12469 | (name "python2-steadymark") |
| 12470 | (version "0.7.3") |
| 12471 | (source |
| 12472 | (origin |
| 12473 | (method url-fetch) |
| 12474 | (uri (pypi-uri "steadymark" version)) |
| 12475 | (sha256 |
| 12476 | (base32 |
| 12477 | "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v")))) |
| 12478 | (build-system python-build-system) |
| 12479 | (native-inputs |
| 12480 | `(("python-couleur" ,python2-couleur) |
| 12481 | ("python-sure" ,python2-sure) |
| 12482 | ("python-misaka" ,python2-misaka))) |
| 12483 | (arguments |
| 12484 | `(#:python ,python-2 |
| 12485 | #:phases |
| 12486 | (modify-phases %standard-phases |
| 12487 | (add-before 'build 'patch-setup-py |
| 12488 | (lambda _ |
| 12489 | ;; Update requirements from dependency==version |
| 12490 | ;; to dependency>=version |
| 12491 | (substitute* "setup.py" |
| 12492 | (("==") ">=")) |
| 12493 | #t))))) |
| 12494 | (home-page "https://github.com/gabrielfalcao/steadymark") |
| 12495 | (synopsis "Markdown-based test runner for python") |
| 12496 | (description |
| 12497 | "@code{Steadymark} allows documentation to be written in github-flavoured |
| 12498 | markdown. The documentation may contain snippets of code surrounded by python |
| 12499 | code blocks and @code{Steadymark} will find these snippets and run them, making |
| 12500 | sure that there are no old malfunctional examples in the documentation examples.") |
| 12501 | (license license:expat))) |
| 12502 | |
| 12503 | (define-public python-jsonpointer |
| 12504 | (package |
| 12505 | (name "python-jsonpointer") |
| 12506 | (version "1.10") |
| 12507 | (source |
| 12508 | (origin |
| 12509 | (method url-fetch) |
| 12510 | (uri (pypi-uri "jsonpointer" version)) |
| 12511 | (sha256 |
| 12512 | (base32 |
| 12513 | "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz")))) |
| 12514 | (build-system python-build-system) |
| 12515 | (home-page "https://github.com/stefankoegl/python-json-pointer") |
| 12516 | (synopsis "Identify specific nodes in a JSON document") |
| 12517 | (description "@code{jsonpointer} allows you to access specific nodes |
| 12518 | by path in a JSON document (see RFC 6901).") |
| 12519 | (license license:bsd-3))) |
| 12520 | |
| 12521 | (define-public python2-jsonpointer |
| 12522 | (package-with-python2 python-jsonpointer)) |
| 12523 | |
| 12524 | (define-public python-jsonpatch |
| 12525 | (package |
| 12526 | (name "python-jsonpatch") |
| 12527 | (version "1.16") |
| 12528 | (source |
| 12529 | (origin |
| 12530 | (method url-fetch) |
| 12531 | ;; pypi version lacks tests.js |
| 12532 | (uri (string-append "https://github.com/stefankoegl/python-json-patch/" |
| 12533 | "archive/v" version ".tar.gz")) |
| 12534 | (file-name (string-append name "-" version ".tar.gz")) |
| 12535 | (sha256 |
| 12536 | (base32 |
| 12537 | "085ykisl8v7mv9h7hvhdy3l2fjzs4214gx32r5k6nx4f76hbv6y5")))) |
| 12538 | (build-system python-build-system) |
| 12539 | (native-inputs |
| 12540 | `(("python-jsonpointer" ,python-jsonpointer))) |
| 12541 | (home-page "https://github.com/stefankoegl/python-json-patch") |
| 12542 | (synopsis "Applying JSON Patches in Python 2.6+ and 3.x") |
| 12543 | (description "@code{jsonpatch} is a library and program that allows |
| 12544 | applying JSON Patches according to RFC 6902.") |
| 12545 | (license license:bsd-3))) |
| 12546 | |
| 12547 | (define-public python2-jsonpatch |
| 12548 | (package-with-python2 python-jsonpatch)) |
| 12549 | |
| 12550 | (define-public python-jsonpatch-0.4 |
| 12551 | (package (inherit python-jsonpatch) |
| 12552 | (name "python-jsonpatch") |
| 12553 | (version "0.4") |
| 12554 | (source |
| 12555 | (origin |
| 12556 | (method url-fetch) |
| 12557 | (uri (string-append "https://github.com/stefankoegl/python-json-patch/" |
| 12558 | "archive/v" version ".tar.gz")) |
| 12559 | (file-name (string-append name "-" version ".tar.gz")) |
| 12560 | (sha256 |
| 12561 | (base32 |
| 12562 | "0j0cd9z9zyp8kppp464jxrfgrnbgkzl1yi10i5gsv8yz6d95929d")))))) |
| 12563 | |
| 12564 | (define-public python2-jsonpatch-0.4 |
| 12565 | (package-with-python2 python-jsonpatch-0.4)) |
| 12566 | |
| 12567 | (define-public python-rfc3986 |
| 12568 | (package |
| 12569 | (name "python-rfc3986") |
| 12570 | (version "1.1.0") |
| 12571 | (source (origin |
| 12572 | (method url-fetch) |
| 12573 | (uri (pypi-uri "rfc3986" version)) |
| 12574 | (sha256 |
| 12575 | (base32 |
| 12576 | "06wlmysw83f75ff84zr1yr6n0shvc2xn1n1sb4iwzqap9hf5fn44")))) |
| 12577 | (build-system python-build-system) |
| 12578 | (arguments |
| 12579 | `(#:modules ((guix build utils) |
| 12580 | (guix build python-build-system) |
| 12581 | (ice-9 ftw) |
| 12582 | (srfi srfi-1) |
| 12583 | (srfi srfi-26)) |
| 12584 | #:phases |
| 12585 | (modify-phases %standard-phases |
| 12586 | (replace 'check |
| 12587 | (lambda _ |
| 12588 | (let ((cwd (getcwd))) |
| 12589 | (setenv "PYTHONPATH" |
| 12590 | (string-append cwd "/build/" |
| 12591 | (find (cut string-prefix? "lib" <>) |
| 12592 | (scandir (string-append cwd "/build"))) |
| 12593 | ":" |
| 12594 | (getenv "PYTHONPATH"))) |
| 12595 | (invoke "pytest" "-v"))))))) |
| 12596 | (native-inputs |
| 12597 | `(("python-pytest" ,python-pytest))) |
| 12598 | (home-page "https://rfc3986.readthedocs.io/") |
| 12599 | (synopsis "Parse and validate URI references") |
| 12600 | (description |
| 12601 | "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including |
| 12602 | validation and authority parsing. This module also supports RFC@tie{}6874 |
| 12603 | which adds support for zone identifiers to IPv6 addresses.") |
| 12604 | (license license:asl2.0))) |
| 12605 | |
| 12606 | (define-public python2-rfc3986 |
| 12607 | (package-with-python2 python-rfc3986)) |
| 12608 | |
| 12609 | (define-public python-rfc3987 |
| 12610 | (package |
| 12611 | (name "python-rfc3987") |
| 12612 | (version "1.3.7") |
| 12613 | (source |
| 12614 | (origin |
| 12615 | (method url-fetch) |
| 12616 | (uri (pypi-uri "rfc3987" version)) |
| 12617 | (sha256 |
| 12618 | (base32 |
| 12619 | "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi")))) |
| 12620 | (build-system python-build-system) |
| 12621 | (home-page "https://pypi.python.org/pypi/rfc3987") |
| 12622 | (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)") |
| 12623 | (description "@code{rfc3987} provides routines for parsing and |
| 12624 | validation of URIs (see RFC 3986) and IRIs (see RFC 3987).") |
| 12625 | (license license:gpl3+))) |
| 12626 | |
| 12627 | (define-public python2-rfc3987 |
| 12628 | (package-with-python2 python-rfc3987)) |
| 12629 | |
| 12630 | (define-public python-validate-email |
| 12631 | (package |
| 12632 | (name "python-validate-email") |
| 12633 | (version "1.3") |
| 12634 | (source |
| 12635 | (origin |
| 12636 | (method url-fetch) |
| 12637 | (uri (pypi-uri "validate_email" version)) |
| 12638 | (sha256 |
| 12639 | (base32 |
| 12640 | "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq")))) |
| 12641 | (build-system python-build-system) |
| 12642 | (home-page "https://github.com/syrusakbary/validate_email") |
| 12643 | (synopsis "Verifies if an email address is valid and really exists") |
| 12644 | (description "@code{validate_email} can be used to verify if an email |
| 12645 | address is valid and really exists.") |
| 12646 | (license license:lgpl3+))) |
| 12647 | |
| 12648 | (define-public python2-validate-email |
| 12649 | (package-with-python2 python-validate-email)) |
| 12650 | |
| 12651 | (define-public python-flex |
| 12652 | (package |
| 12653 | (name "python-flex") |
| 12654 | (version "6.10.0") |
| 12655 | (source |
| 12656 | (origin |
| 12657 | (method url-fetch) |
| 12658 | (uri (pypi-uri "flex" version)) |
| 12659 | (sha256 |
| 12660 | (base32 |
| 12661 | "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk")))) |
| 12662 | (build-system python-build-system) |
| 12663 | (propagated-inputs |
| 12664 | `(("python-click" ,python-click) |
| 12665 | ("python-iso8601" ,python-iso8601) |
| 12666 | ("python-jsonpointer" ,python-jsonpointer) |
| 12667 | ("python-pyyaml" ,python-pyyaml) |
| 12668 | ("python-requests" ,python-requests) |
| 12669 | ("python-rfc3987" ,python-rfc3987) |
| 12670 | ("python-six" ,python-six) |
| 12671 | ("python-validate-email" ,python-validate-email))) |
| 12672 | (home-page "https://github.com/pipermerriam/flex") |
| 12673 | (synopsis "Validates Swagger schemata") |
| 12674 | (description "@code{flex} can be used to validate Swagger schemata.") |
| 12675 | (license license:bsd-3))) |
| 12676 | |
| 12677 | (define-public python2-flex |
| 12678 | (package-with-python2 python-flex)) |
| 12679 | |
| 12680 | (define-public python-marshmallow |
| 12681 | (package |
| 12682 | (name "python-marshmallow") |
| 12683 | (version "3.0.0b14") |
| 12684 | (source |
| 12685 | (origin |
| 12686 | (method url-fetch) |
| 12687 | (uri (pypi-uri "marshmallow" version)) |
| 12688 | (sha256 |
| 12689 | (base32 |
| 12690 | "1digk3f5cfk7wmlka65mc7bzsd96pbsgcsvp6pimd5b4ff9zb5p3")))) |
| 12691 | (build-system python-build-system) |
| 12692 | (propagated-inputs |
| 12693 | `(("python-dateutil" ,python-dateutil) |
| 12694 | ("python-simplejson" ,python-simplejson))) |
| 12695 | (native-inputs |
| 12696 | `(("python-pytest" ,python-pytest) |
| 12697 | ("python-pytz" ,python-pytz))) |
| 12698 | (home-page "https://github.com/marshmallow-code/marshmallow") |
| 12699 | (synopsis "Convert complex datatypes to and from native |
| 12700 | Python datatypes.") |
| 12701 | (description "@code{marshmallow} provides a library for converting |
| 12702 | complex datatypes to and from native Python datatypes.") |
| 12703 | (license license:expat))) |
| 12704 | |
| 12705 | (define-public python2-marshmallow |
| 12706 | (package-with-python2 python-marshmallow)) |
| 12707 | |
| 12708 | (define-public python-apispec |
| 12709 | (package |
| 12710 | (name "python-apispec") |
| 12711 | (version "0.25.3") |
| 12712 | (source |
| 12713 | (origin |
| 12714 | (method url-fetch) |
| 12715 | (uri (pypi-uri "apispec" version)) |
| 12716 | (sha256 |
| 12717 | (base32 |
| 12718 | "0kxa8723zbisx10363yh4mmmn4higxrspymbjfz5zq8f644zagm9")))) |
| 12719 | (build-system python-build-system) |
| 12720 | (propagated-inputs |
| 12721 | `(("python-pyyaml" ,python-pyyaml))) |
| 12722 | (native-inputs |
| 12723 | `(("python-pytest" ,python-pytest) |
| 12724 | ("python-flask" ,python-flask) |
| 12725 | ("python-marshmallow" ,python-marshmallow) |
| 12726 | ("python-tornado" ,python-tornado) |
| 12727 | ("python-bottle" ,python-bottle) |
| 12728 | ("python-mock" ,python-mock))) |
| 12729 | (home-page "https://github.com/marshmallow-code/apispec") |
| 12730 | (synopsis "Swagger 2.0 API specification generator") |
| 12731 | (description "@code{python-apispec} is a pluggable API specification |
| 12732 | generator. Currently supports the OpenAPI specification (f.k.a. |
| 12733 | Swagger 2.0).") |
| 12734 | (license license:expat))) |
| 12735 | |
| 12736 | (define-public python2-apispec |
| 12737 | (package-with-python2 python-apispec)) |
| 12738 | |
| 12739 | (define-public python-flasgger |
| 12740 | (package |
| 12741 | (name "python-flasgger") |
| 12742 | (version "0.6.3") |
| 12743 | (source |
| 12744 | (origin |
| 12745 | (method git-fetch) |
| 12746 | (uri (git-reference |
| 12747 | (url "https://github.com/rochacbruno/flasgger.git") |
| 12748 | (commit version))) |
| 12749 | (file-name (git-file-name name version)) |
| 12750 | (sha256 |
| 12751 | (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn")))) |
| 12752 | (build-system python-build-system) |
| 12753 | (arguments |
| 12754 | `(#:phases |
| 12755 | (modify-phases %standard-phases |
| 12756 | (replace 'check |
| 12757 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 12758 | (substitute* "Makefile" |
| 12759 | (("flake8 flasgger --ignore=F403") |
| 12760 | "flake8 flasgger --ignore=E731,F403")) |
| 12761 | (setenv "PYTHONPATH" (string-append (getcwd) |
| 12762 | ":" |
| 12763 | (getenv "PYTHONPATH"))) |
| 12764 | (invoke "py.test")))))) |
| 12765 | (propagated-inputs |
| 12766 | `(("python-flask" ,python-flask) |
| 12767 | ("python-pyyaml" ,python-pyyaml) |
| 12768 | ("python-jsonschema" ,python-jsonschema) |
| 12769 | ("python-mistune" ,python-mistune) |
| 12770 | ("python-six" ,python-six))) |
| 12771 | (native-inputs |
| 12772 | `(("python-decorator" ,python-decorator) |
| 12773 | ("python-flake8" ,python-flake8) |
| 12774 | ("python-flask-restful" ,python-flask-restful) |
| 12775 | ("python-flex" ,python-flex) |
| 12776 | ("python-pytest" ,python-pytest) |
| 12777 | ("python-pytest-cov" ,python-pytest-cov) |
| 12778 | ("python-marshmallow" ,python-marshmallow) |
| 12779 | ("python-apispec" ,python-apispec))) |
| 12780 | (home-page "https://github.com/rochacbruno/flasgger/") |
| 12781 | (synopsis "Extract Swagger specs from your Flask project") |
| 12782 | (description "@code{python-flasgger} allows extracting Swagger specs |
| 12783 | from your Flask project. It is a fork of Flask-Swagger.") |
| 12784 | (license license:expat))) |
| 12785 | |
| 12786 | (define-public python2-flasgger |
| 12787 | (package-with-python2 python-flasgger)) |
| 12788 | |
| 12789 | (define-public python-swagger-spec-validator |
| 12790 | (package |
| 12791 | (name "python-swagger-spec-validator") |
| 12792 | (version "2.1.0") |
| 12793 | (source |
| 12794 | (origin |
| 12795 | (method url-fetch) |
| 12796 | (uri (pypi-uri "swagger-spec-validator" version)) |
| 12797 | (sha256 |
| 12798 | (base32 |
| 12799 | "13hkpn2lycwr0468yqhjb3kwszqf7hjwlq61w7vdxq1caz31k4nw")))) |
| 12800 | (build-system python-build-system) |
| 12801 | (propagated-inputs |
| 12802 | `(("python-jsonschema" ,python-jsonschema) |
| 12803 | ("python-six" ,python-six))) |
| 12804 | (home-page |
| 12805 | "https://github.com/Yelp/swagger_spec_validator") |
| 12806 | (synopsis "Validation of Swagger specifications") |
| 12807 | (description "@code{swagger_spec_validator} provides a library for |
| 12808 | validating Swagger API specifications.") |
| 12809 | (license license:asl2.0))) |
| 12810 | |
| 12811 | (define-public python2-swagger-spec-validator |
| 12812 | (package-with-python2 python-swagger-spec-validator)) |
| 12813 | |
| 12814 | (define-public python-apache-libcloud |
| 12815 | (package |
| 12816 | (name "python-apache-libcloud") |
| 12817 | (version "2.4.0") |
| 12818 | (source |
| 12819 | (origin |
| 12820 | (method url-fetch) |
| 12821 | (uri (pypi-uri "apache-libcloud" version)) |
| 12822 | (sha256 |
| 12823 | (base32 |
| 12824 | "0daj3mkzw79v5zin2r1s2wkrz1hplfc16bwj4ss68i5qjq4l2p0j")))) |
| 12825 | (build-system python-build-system) |
| 12826 | (arguments |
| 12827 | `(#:phases |
| 12828 | (modify-phases %standard-phases |
| 12829 | (add-after 'unpack 'patch-ssh |
| 12830 | (lambda* (#:key inputs #:allow-other-keys) |
| 12831 | (substitute* "libcloud/compute/ssh.py" |
| 12832 | (("'ssh'") (string-append "'" (assoc-ref inputs "openssh") |
| 12833 | "/bin/ssh" "'"))) |
| 12834 | #t)) |
| 12835 | (add-after 'unpack 'patch-tests |
| 12836 | (lambda _ |
| 12837 | (substitute* "./libcloud/test/test_file_fixtures.py" |
| 12838 | ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-923>. |
| 12839 | (("def _ascii") "def _raw_data(self, method, url, body, headers): |
| 12840 | return (httplib.OK, |
| 12841 | \"1234abcd\", |
| 12842 | {\"test\": \"value\"}, |
| 12843 | httplib.responses[httplib.OK]) |
| 12844 | def _ascii")) |
| 12845 | (substitute* "libcloud/test/compute/test_ssh_client.py" |
| 12846 | (("class ShellOutSSHClientTests") |
| 12847 | "@unittest.skip(\"Guix container doesn't have ssh service\") |
| 12848 | class ShellOutSSHClientTests") |
| 12849 | ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-924>. |
| 12850 | (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'") |
| 12851 | (("'.xF0', '.x90', '.x8D', '.x88'") |
| 12852 | "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'")) |
| 12853 | #t)) |
| 12854 | (add-before 'check 'copy-secret |
| 12855 | (lambda _ |
| 12856 | (copy-file "libcloud/test/secrets.py-dist" |
| 12857 | "libcloud/test/secrets.py") |
| 12858 | #t))))) |
| 12859 | (inputs |
| 12860 | `(("openssh" ,openssh))) |
| 12861 | (propagated-inputs |
| 12862 | `(("python-paramiko" ,python-paramiko) |
| 12863 | ("python-requests" ,python-requests))) |
| 12864 | (native-inputs |
| 12865 | `(("python-lockfile" ,python-lockfile) |
| 12866 | ("python-mock" ,python-mock) |
| 12867 | ("python-pytest" ,python-pytest) |
| 12868 | ("python-pytest-runner" ,python-pytest-runner) |
| 12869 | ("python-requests-mock" ,python-requests-mock))) |
| 12870 | (home-page "https://libcloud.apache.org/") |
| 12871 | (synopsis "Unified Cloud API") |
| 12872 | (description "@code{libcloud} is a Python library for interacting with |
| 12873 | many of the popular cloud service providers using a unified API.") |
| 12874 | (license license:asl2.0))) |
| 12875 | |
| 12876 | (define-public python2-apache-libcloud |
| 12877 | (package-with-python2 python-apache-libcloud)) |
| 12878 | |
| 12879 | (define-public python-smmap2 |
| 12880 | (package |
| 12881 | (name "python-smmap2") |
| 12882 | (version "2.0.3") |
| 12883 | (source |
| 12884 | (origin |
| 12885 | (method url-fetch) |
| 12886 | (uri (pypi-uri "smmap2" version)) |
| 12887 | (sha256 |
| 12888 | (base32 |
| 12889 | "1hvn28p3zvxa98sbi9lrqvv2ps4q284j4jq9a619zw0m7yv0sly7")))) |
| 12890 | (build-system python-build-system) |
| 12891 | (native-inputs |
| 12892 | `(("python-nosexcover" ,python-nosexcover))) |
| 12893 | (home-page "https://github.com/Byron/smmap") |
| 12894 | (synopsis "Python sliding window memory map manager") |
| 12895 | (description "@code{smmap2} is a pure Python implementation of a sliding |
| 12896 | window memory map manager.") |
| 12897 | (license license:bsd-3))) |
| 12898 | |
| 12899 | (define-public python2-smmap2 |
| 12900 | (package-with-python2 python-smmap2)) |
| 12901 | |
| 12902 | (define-public python-regex |
| 12903 | (package |
| 12904 | (name "python-regex") |
| 12905 | (version "2019.04.14") |
| 12906 | (source (origin |
| 12907 | (method url-fetch) |
| 12908 | (uri (pypi-uri "regex" version)) |
| 12909 | (sha256 |
| 12910 | (base32 |
| 12911 | "1a6hhfs6l6snr1z654ay6wzbmwdkmv282fzfkd5hk2d1n73y8v6m")))) |
| 12912 | ;; TODO: Fix and enable regex_test.py tests that complain about the |
| 12913 | ;; test.support module not existing. |
| 12914 | (build-system python-build-system) |
| 12915 | (home-page "https://bitbucket.org/mrabarnett/mrab-regex") |
| 12916 | (synopsis "Alternative regular expression module") |
| 12917 | (description "This regular expression implementation is backwards- |
| 12918 | compatible with the standard @code{re} module, but offers additional |
| 12919 | functionality like full case-folding for case-insensitive matches in Unicode.") |
| 12920 | (license license:psfl))) |
| 12921 | |
| 12922 | (define-public python2-regex |
| 12923 | (package-with-python2 python-regex)) |
| 12924 | |
| 12925 | (define-public python2-pyopengl |
| 12926 | (package |
| 12927 | (name "python2-pyopengl") |
| 12928 | (version "3.1.0") |
| 12929 | (source |
| 12930 | (origin |
| 12931 | (method url-fetch) |
| 12932 | (uri (pypi-uri "PyOpenGL" version)) |
| 12933 | (sha256 |
| 12934 | (base32 |
| 12935 | "1byxjj6a8rwzhxhjqlc588zdad2qwxdd7vlam2653ylll31waiwv")))) |
| 12936 | (arguments |
| 12937 | `(#:python ,python-2)) |
| 12938 | (build-system python-build-system) |
| 12939 | (home-page "http://pyopengl.sourceforge.net") |
| 12940 | (synopsis "Standard OpenGL bindings for Python") |
| 12941 | (description |
| 12942 | "PyOpenGL is the most common cross platform Python binding to OpenGL and |
| 12943 | related APIs. The binding is created using the standard @code{ctypes} |
| 12944 | library.") |
| 12945 | (license license:bsd-3))) |
| 12946 | |
| 12947 | (define-public python2-pyopengl-accelerate |
| 12948 | (package |
| 12949 | (inherit python2-pyopengl) |
| 12950 | (name "python2-pyopengl-accelerate") |
| 12951 | (version "3.1.0") |
| 12952 | (source |
| 12953 | (origin |
| 12954 | (method url-fetch) |
| 12955 | (uri (pypi-uri "PyOpenGL-accelerate" version)) |
| 12956 | (sha256 |
| 12957 | (base32 |
| 12958 | "0464c1ifzk0k92lyndikmvzjgnx1y25r7bkkc8pnxm4kp1q4czwj")))) |
| 12959 | (synopsis "Acceleration code for PyOpenGL") |
| 12960 | (description |
| 12961 | "This is the Cython-coded accelerator module for PyOpenGL."))) |
| 12962 | |
| 12963 | (define-public python-rencode |
| 12964 | (package |
| 12965 | (name "python-rencode") |
| 12966 | (version "1.0.5") |
| 12967 | (source |
| 12968 | (origin |
| 12969 | (method url-fetch) |
| 12970 | (uri (pypi-uri "rencode" version)) |
| 12971 | (sha256 |
| 12972 | (base32 |
| 12973 | "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv")))) |
| 12974 | (build-system python-build-system) |
| 12975 | (arguments |
| 12976 | `(#:phases |
| 12977 | (modify-phases %standard-phases |
| 12978 | (add-before 'check 'delete-bogus-test |
| 12979 | ;; This test requires /home/aresch/Downloads, which is not provided by |
| 12980 | ;; the build environment. |
| 12981 | (lambda _ |
| 12982 | (delete-file "rencode/t.py") |
| 12983 | #t))))) |
| 12984 | (native-inputs `(("pkg-config" ,pkg-config) |
| 12985 | ("python-cython" ,python-cython))) |
| 12986 | (home-page "https://github.com/aresch/rencode") |
| 12987 | (synopsis "Serialization of heterogeneous data structures") |
| 12988 | (description |
| 12989 | "The @code{rencode} module is a data structure serialization library, |
| 12990 | similar to @code{bencode} from the BitTorrent project. For complex, |
| 12991 | heterogeneous data structures with many small elements, r-encoding stake up |
| 12992 | significantly less space than b-encodings. This version of rencode is a |
| 12993 | complete rewrite in Cython to attempt to increase the performance over the |
| 12994 | pure Python module.") |
| 12995 | (license license:bsd-3))) |
| 12996 | |
| 12997 | (define-public python2-rencode |
| 12998 | (package-with-python2 python-rencode)) |
| 12999 | |
| 13000 | (define-public python-xenon |
| 13001 | (package |
| 13002 | (name "python-xenon") |
| 13003 | (version "0.5.4") |
| 13004 | (source |
| 13005 | (origin |
| 13006 | (method url-fetch) |
| 13007 | (uri (pypi-uri "xenon" version)) |
| 13008 | (sha256 |
| 13009 | (base32 |
| 13010 | "029cbhysg2vr5n4jz8gpg2793f8wkwnqpr1qgv6c1dn685vy31mc")))) |
| 13011 | (build-system python-build-system) |
| 13012 | (native-inputs |
| 13013 | `(("python-pyyaml" ,python-pyyaml) |
| 13014 | ("python-radon" ,python-radon) |
| 13015 | ("python-requests" ,python-requests) |
| 13016 | ("python-flake8" ,python-flake8) |
| 13017 | ("python-tox" ,python-tox))) |
| 13018 | (arguments |
| 13019 | `(#:phases |
| 13020 | (modify-phases %standard-phases |
| 13021 | (add-before 'build 'patch-test-requirements |
| 13022 | (lambda _ |
| 13023 | ;; Remove httpretty dependency for tests. |
| 13024 | (substitute* "setup.py" |
| 13025 | (("httpretty") "")) |
| 13026 | #t))))) |
| 13027 | (home-page "https://xenon.readthedocs.org/") |
| 13028 | (synopsis "Monitor code metrics for Python on your CI server") |
| 13029 | (description |
| 13030 | "Xenon is a monitoring tool based on Radon. It monitors code complexity. |
| 13031 | Ideally, @code{xenon} is run every time code is committed. Through command |
| 13032 | line options, various thresholds can be set for the complexity of code. It |
| 13033 | will fail (i.e. it will exit with a non-zero exit code) when any of these |
| 13034 | requirements is not met.") |
| 13035 | (license license:expat))) |
| 13036 | |
| 13037 | (define-public python2-xenon |
| 13038 | (package-with-python2 python-xenon)) |
| 13039 | |
| 13040 | (define-public python-pysocks |
| 13041 | (package |
| 13042 | (name "python-pysocks") |
| 13043 | (version "1.7.0") |
| 13044 | (source |
| 13045 | (origin |
| 13046 | (method url-fetch) |
| 13047 | (uri (pypi-uri "PySocks" version)) |
| 13048 | (sha256 |
| 13049 | (base32 |
| 13050 | "0z4p31bpqm893cf87qqgb30k7nwd8kqfjwwjm5cvxb6zbyj1w0yr")))) |
| 13051 | (build-system python-build-system) |
| 13052 | (arguments `(#:tests? #f)) |
| 13053 | (home-page "https://github.com/Anorov/PySocks") |
| 13054 | (synopsis "SOCKS client module") |
| 13055 | (description "@code{pysocks} is an updated and semi-actively maintained |
| 13056 | version of @code{SocksiPy} with bug fixes and extra features.") |
| 13057 | (license license:bsd-3))) |
| 13058 | |
| 13059 | (define-public python2-pysocks |
| 13060 | (package-with-python2 python-pysocks)) |
| 13061 | |
| 13062 | (define-public python-pydiff |
| 13063 | (package |
| 13064 | (name "python-pydiff") |
| 13065 | (version "0.2") |
| 13066 | (source |
| 13067 | (origin |
| 13068 | (method url-fetch) |
| 13069 | (uri (pypi-uri "pydiff" version)) |
| 13070 | (sha256 |
| 13071 | (base32 |
| 13072 | "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44")))) |
| 13073 | (build-system python-build-system) |
| 13074 | (home-page "https://github.com/myint/pydiff") |
| 13075 | (synopsis "Library to diff two Python files at the bytecode level") |
| 13076 | (description |
| 13077 | "@code{pydiff} makes it easy to look for actual code changes while |
| 13078 | ignoring formatting changes.") |
| 13079 | (license license:expat))) |
| 13080 | |
| 13081 | (define-public python2-pydiff |
| 13082 | (package-with-python2 python-pydiff)) |
| 13083 | |
| 13084 | (define-public python-tqdm |
| 13085 | (package |
| 13086 | (name "python-tqdm") |
| 13087 | (version "4.19.6") |
| 13088 | (source |
| 13089 | (origin |
| 13090 | (method url-fetch) |
| 13091 | (uri (pypi-uri "tqdm" version)) |
| 13092 | (sha256 |
| 13093 | (base32 |
| 13094 | "1pw0ngm0zn9papdmkwipi3yih5c3di6d0w849bdmrraq4d2d9h2y")))) |
| 13095 | (build-system python-build-system) |
| 13096 | (native-inputs |
| 13097 | `(("python-flake8" ,python-flake8) |
| 13098 | ("python-nose" ,python-nose) |
| 13099 | ("python-coverage" ,python-coverage))) |
| 13100 | (home-page "https://github.com/tqdm/tqdm") |
| 13101 | (synopsis "Fast, extensible progress meter") |
| 13102 | (description |
| 13103 | "Make loops show a progress bar on the console by just wrapping any |
| 13104 | iterable with @code{|tqdm(iterable)|}. Offers many options to define |
| 13105 | design and layout.") |
| 13106 | (license (list license:mpl2.0 license:expat)))) |
| 13107 | |
| 13108 | (define-public python2-tqdm |
| 13109 | (package-with-python2 python-tqdm)) |
| 13110 | |
| 13111 | (define-public python-pkginfo |
| 13112 | (package |
| 13113 | (name "python-pkginfo") |
| 13114 | (version "1.4.2") |
| 13115 | (source |
| 13116 | (origin |
| 13117 | (method url-fetch) |
| 13118 | (uri (pypi-uri "pkginfo" version)) |
| 13119 | (sha256 |
| 13120 | (base32 |
| 13121 | "0x6lm17p1ks031mj6pajyp4rkq74vpqq8qwjb7ikgwmkli1day2q")))) |
| 13122 | (build-system python-build-system) |
| 13123 | (arguments |
| 13124 | ;; The tests are broken upstream. |
| 13125 | '(#:tests? #f)) |
| 13126 | (home-page |
| 13127 | "https://code.launchpad.net/~tseaver/pkginfo/trunk") |
| 13128 | (synopsis |
| 13129 | "Query metadatdata from sdists, bdists, and installed packages") |
| 13130 | (description |
| 13131 | "API to query the distutils metadata written in @file{PKG-INFO} inside a |
| 13132 | source distriubtion (an sdist) or a binary distribution (e.g., created by |
| 13133 | running bdist_egg). It can also query the EGG-INFO directory of an installed |
| 13134 | distribution, and the *.egg-info stored in a \"development checkout\" (e.g, |
| 13135 | created by running @code{python setup.py develop}).") |
| 13136 | (license license:expat))) |
| 13137 | |
| 13138 | (define-public python2-pkginfo |
| 13139 | (package-with-python2 python-pkginfo)) |
| 13140 | |
| 13141 | (define-public python-twine |
| 13142 | (package |
| 13143 | (name "python-twine") |
| 13144 | (version "1.9.1") |
| 13145 | (source |
| 13146 | (origin |
| 13147 | (method url-fetch) |
| 13148 | (uri (pypi-uri "twine" version)) |
| 13149 | (sha256 |
| 13150 | (base32 |
| 13151 | "1ay1b6kdq6k4bfbjsvf6ymj41wrgpvinhxndb09355pwhxwmp96a")))) |
| 13152 | (build-system python-build-system) |
| 13153 | (propagated-inputs |
| 13154 | `(("python-tqdm" ,python-tqdm) |
| 13155 | ("python-pkginfo" ,python-pkginfo) |
| 13156 | ("python-requests" ,python-requests) |
| 13157 | ("python-requests-toolbelt" ,python-requests-toolbelt))) |
| 13158 | (home-page "https://github.com/pypa/twine") |
| 13159 | (synopsis "Collection of utilities for interacting with PyPI") |
| 13160 | (description |
| 13161 | "@code{twine} currently supports registering projects and uploading |
| 13162 | distributions. It authenticates the user over HTTPS, allows them to pre-sign |
| 13163 | their files and supports any packaging format (including wheels).") |
| 13164 | (license license:asl2.0))) |
| 13165 | |
| 13166 | (define-public python2-twine |
| 13167 | (package-with-python2 python-twine)) |
| 13168 | |
| 13169 | (define-public python-linecache2 |
| 13170 | (package |
| 13171 | (name "python-linecache2") |
| 13172 | (version "1.0.0") |
| 13173 | (source |
| 13174 | (origin |
| 13175 | (method url-fetch) |
| 13176 | (uri (pypi-uri "linecache2" version)) |
| 13177 | (sha256 |
| 13178 | (base32 |
| 13179 | "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb")))) |
| 13180 | (build-system python-build-system) |
| 13181 | (arguments |
| 13182 | `(;; The tests depend on unittest2, and our version is a bit too old. |
| 13183 | #:tests? #f)) |
| 13184 | (native-inputs |
| 13185 | `(("python-pbr" ,python-pbr-minimal))) |
| 13186 | (home-page |
| 13187 | "https://github.com/testing-cabal/linecache2") |
| 13188 | (synopsis "Backports of the linecache module") |
| 13189 | (description |
| 13190 | "The linecache module allows one to get any line from any file, while |
| 13191 | attempting to optimize internally, using a cache, the common case where many |
| 13192 | lines are read from a single file.") |
| 13193 | (license license:psfl))) |
| 13194 | |
| 13195 | (define-public python2-linecache2 |
| 13196 | (package-with-python2 python-linecache2)) |
| 13197 | |
| 13198 | (define-public python-traceback2 |
| 13199 | (package |
| 13200 | (name "python-traceback2") |
| 13201 | (version "1.4.0") |
| 13202 | (source |
| 13203 | (origin |
| 13204 | (method url-fetch) |
| 13205 | (uri (pypi-uri "traceback2" version)) |
| 13206 | (sha256 |
| 13207 | (base32 |
| 13208 | "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05")))) |
| 13209 | (build-system python-build-system) |
| 13210 | (arguments |
| 13211 | `(;; python-traceback2 and python-unittest2 depend on one another. |
| 13212 | #:tests? #f)) |
| 13213 | (native-inputs |
| 13214 | `(("python-pbr" ,python-pbr-minimal))) |
| 13215 | (propagated-inputs |
| 13216 | `(("python-linecache2" ,python-linecache2))) |
| 13217 | (home-page |
| 13218 | "https://github.com/testing-cabal/traceback2") |
| 13219 | (synopsis "Backports of the traceback module") |
| 13220 | (description |
| 13221 | "This module provides a standard interface to extract, format and print |
| 13222 | stack traces of Python programs. It exactly mimics the behavior of the Python |
| 13223 | interpreter when it prints a stack trace.") |
| 13224 | (license license:psfl))) |
| 13225 | |
| 13226 | (define-public python2-traceback2 |
| 13227 | (package-with-python2 python-traceback2)) |
| 13228 | |
| 13229 | (define-public python-ratelimiter |
| 13230 | (package |
| 13231 | (name "python-ratelimiter") |
| 13232 | (version "1.2.0") |
| 13233 | (source |
| 13234 | (origin |
| 13235 | (method url-fetch) |
| 13236 | (uri (pypi-uri "ratelimiter" version)) |
| 13237 | (sha256 |
| 13238 | (base32 |
| 13239 | "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p")))) |
| 13240 | (build-system python-build-system) |
| 13241 | (arguments |
| 13242 | '(#:tests? #f)) ; There are no tests in the pypi archive. |
| 13243 | (home-page "https://github.com/RazerM/ratelimiter") |
| 13244 | (synopsis "Simple rate limiting object") |
| 13245 | (description |
| 13246 | "The @code{ratelimiter} module ensures that an operation will not be |
| 13247 | executed more than a given number of times during a given period.") |
| 13248 | (license license:asl2.0))) |
| 13249 | |
| 13250 | (define-public python2-ratelimiter |
| 13251 | (package-with-python2 python-ratelimiter)) |
| 13252 | |
| 13253 | (define-public python-dukpy |
| 13254 | (package |
| 13255 | (name "python-dukpy") |
| 13256 | (version "0.3") |
| 13257 | (source |
| 13258 | (origin |
| 13259 | (method git-fetch) |
| 13260 | (uri (git-reference |
| 13261 | (url "https://github.com/kovidgoyal/dukpy.git") |
| 13262 | (commit (string-append "v" version)))) |
| 13263 | (file-name (git-file-name name version)) |
| 13264 | (sha256 |
| 13265 | (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls")))) |
| 13266 | (build-system python-build-system) |
| 13267 | (home-page "https://github.com/kovidgoyal/dukpy") |
| 13268 | (synopsis "Run JavaScript in python") |
| 13269 | (description |
| 13270 | "dukpy is a JavaScript runtime environment for Python using the duktape |
| 13271 | embeddable JavaScript engine.") |
| 13272 | ;; Dukpy is licensed under MIT like the embedded duktape library, |
| 13273 | ;; with 'errors.c' as GPL3. |
| 13274 | (license (list license:expat license:gpl3)))) |
| 13275 | |
| 13276 | (define-public python2-dukpy |
| 13277 | (package-with-python2 python-dukpy)) |
| 13278 | |
| 13279 | (define-public python-jsonrpclib-pelix |
| 13280 | (package |
| 13281 | (name "python-jsonrpclib-pelix") |
| 13282 | (version "0.3.2") |
| 13283 | (source |
| 13284 | (origin |
| 13285 | (method url-fetch) |
| 13286 | (uri (pypi-uri "jsonrpclib-pelix" version)) |
| 13287 | (sha256 |
| 13288 | (base32 |
| 13289 | "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl")))) |
| 13290 | (build-system python-build-system) |
| 13291 | (arguments |
| 13292 | `(#:tests? #f)) ; no tests in PyPI tarball |
| 13293 | (home-page "https://github.com/tcalmant/jsonrpclib/") |
| 13294 | (synopsis "JSON-RPC 2.0 client library for Python") |
| 13295 | (description |
| 13296 | "This library implements the JSON-RPC v2.0 |
| 13297 | specification (backwards-compatible) as a client library for Python. This |
| 13298 | version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote |
| 13299 | services.") |
| 13300 | (license license:asl2.0))) |
| 13301 | |
| 13302 | (define-public python2-jsonrpclib-pelix |
| 13303 | (package-with-python2 python-jsonrpclib-pelix)) |
| 13304 | |
| 13305 | (define-public python-setuptools-scm-git-archive |
| 13306 | (package |
| 13307 | (name "python-setuptools-scm-git-archive") |
| 13308 | (version "1.0") |
| 13309 | (source |
| 13310 | (origin |
| 13311 | (method url-fetch) |
| 13312 | (uri (pypi-uri "setuptools_scm_git_archive" version)) |
| 13313 | (sha256 |
| 13314 | (base32 |
| 13315 | "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj")))) |
| 13316 | (build-system python-build-system) |
| 13317 | (native-inputs |
| 13318 | `(("python-pytest" ,python-pytest))) |
| 13319 | (propagated-inputs |
| 13320 | `(("python-setuptools-scm" ,python-setuptools-scm))) |
| 13321 | (home-page "https://github.com/Changaco/setuptools_scm_git_archive/") |
| 13322 | (synopsis "Setuptools_scm plugin for git archives") |
| 13323 | (description |
| 13324 | "The setuptools_scm_git_archive package is a plugin to |
| 13325 | setuptools_scm, which supports obtaining versions from git archives that |
| 13326 | belong to tagged versions.") |
| 13327 | (license license:expat))) |
| 13328 | |
| 13329 | (define-public python2-setuptools-scm-git-archive |
| 13330 | (package-with-python2 python-setuptools-scm-git-archive)) |
| 13331 | |
| 13332 | (define-public python-pyclipper |
| 13333 | (package |
| 13334 | (name "python-pyclipper") |
| 13335 | (version "1.1.0.post1") |
| 13336 | (source |
| 13337 | (origin |
| 13338 | (method url-fetch) |
| 13339 | (uri (pypi-uri "pyclipper" version ".zip")) |
| 13340 | (sha256 |
| 13341 | (base32 |
| 13342 | "0ldbkbnx94an4zzrwb1sxmg6k0jgk4cwmvcdyy8y5k1zslc612wa")) |
| 13343 | (modules '((guix build utils))) |
| 13344 | (snippet |
| 13345 | '(begin |
| 13346 | ;; This file is generated by Cython. |
| 13347 | (delete-file "pyclipper/pyclipper.cpp") #t)))) |
| 13348 | (build-system python-build-system) |
| 13349 | (arguments |
| 13350 | `(#:phases |
| 13351 | (modify-phases %standard-phases |
| 13352 | (add-before 'build 'cythonize-sources |
| 13353 | (lambda _ |
| 13354 | (with-directory-excursion "pyclipper" |
| 13355 | (invoke "cython" "--cplus" "pyclipper.pyx"))))))) |
| 13356 | (propagated-inputs |
| 13357 | `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive))) |
| 13358 | (native-inputs |
| 13359 | `(("python-cython" ,python-cython) |
| 13360 | ("python-pytest" ,python-pytest) |
| 13361 | ("python-pytest-runner" ,python-pytest-runner) |
| 13362 | ("python-unittest2" ,python-unittest2) |
| 13363 | ("unzip" ,unzip))) |
| 13364 | (home-page "https://github.com/greginvm/pyclipper") |
| 13365 | (synopsis "Wrapper for Angus Johnson's Clipper library") |
| 13366 | (description |
| 13367 | "Pyclipper is a Cython wrapper for the C++ translation of the |
| 13368 | Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).") |
| 13369 | (license license:expat))) |
| 13370 | |
| 13371 | (define-public python2-pyclipper |
| 13372 | (package-with-python2 python-pyclipper)) |
| 13373 | |
| 13374 | (define-public python2-booleanoperations |
| 13375 | (package |
| 13376 | (name "python2-booleanoperations") |
| 13377 | (version "0.7.1") |
| 13378 | (source |
| 13379 | (origin |
| 13380 | (method url-fetch) |
| 13381 | (uri (pypi-uri "booleanOperations" version ".zip")) |
| 13382 | (sha256 |
| 13383 | (base32 |
| 13384 | "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn")))) |
| 13385 | (build-system python-build-system) |
| 13386 | (arguments |
| 13387 | `(#:python ,python-2)) |
| 13388 | (native-inputs |
| 13389 | `(("unzip" ,unzip) |
| 13390 | ("python2-pytest" ,python2-pytest) |
| 13391 | ("python2-pytest-runner" ,python2-pytest-runner))) |
| 13392 | (propagated-inputs |
| 13393 | `(("python-fonttools" ,python2-fonttools) |
| 13394 | ("python-pyclipper" ,python2-pyclipper) |
| 13395 | ("python-ufolib" ,python2-ufolib))) |
| 13396 | (home-page "https://github.com/typemytype/booleanOperations") |
| 13397 | (synopsis "Boolean operations on paths") |
| 13398 | (description |
| 13399 | "BooleanOperations provides a Python library that enables |
| 13400 | boolean operations on paths.") |
| 13401 | (license license:expat))) |
| 13402 | |
| 13403 | (define-public python-tempdir |
| 13404 | (package |
| 13405 | (name "python-tempdir") |
| 13406 | (version "0.7.1") |
| 13407 | (source |
| 13408 | (origin |
| 13409 | (method url-fetch) |
| 13410 | (uri (pypi-uri "tempdir" version)) |
| 13411 | (sha256 |
| 13412 | (base32 |
| 13413 | "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8")))) |
| 13414 | (build-system python-build-system) |
| 13415 | (home-page "https://pypi.org/project/tempdir/") |
| 13416 | (arguments |
| 13417 | ;; the package has no tests |
| 13418 | '(#:tests? #f)) |
| 13419 | (synopsis "Python library for managing temporary directories") |
| 13420 | (description |
| 13421 | "This library manages temporary directories that are automatically |
| 13422 | deleted with all their contents when they are no longer needed. It is |
| 13423 | particularly convenient for use in tests.") |
| 13424 | (license license:expat))) |
| 13425 | |
| 13426 | (define-public python2-tempdir |
| 13427 | (package-with-python2 python-tempdir)) |
| 13428 | |
| 13429 | (define-public python-activepapers |
| 13430 | (package |
| 13431 | (name "python-activepapers") |
| 13432 | (version "0.2.2") |
| 13433 | (source |
| 13434 | (origin |
| 13435 | (method url-fetch) |
| 13436 | (uri (pypi-uri "ActivePapers.Py" version)) |
| 13437 | (sha256 |
| 13438 | (base32 |
| 13439 | "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8")))) |
| 13440 | (build-system python-build-system) |
| 13441 | (arguments |
| 13442 | `(#:modules ((ice-9 ftw) |
| 13443 | (srfi srfi-1) |
| 13444 | (guix build utils) |
| 13445 | (guix build python-build-system)) |
| 13446 | |
| 13447 | #:phases |
| 13448 | (modify-phases %standard-phases |
| 13449 | (add-after 'unpack 'delete-python2-code |
| 13450 | (lambda _ |
| 13451 | (for-each delete-file |
| 13452 | '("lib/activepapers/builtins2.py" |
| 13453 | "lib/activepapers/standardlib2.py" |
| 13454 | "lib/activepapers/utility2.py")))) |
| 13455 | (replace 'check |
| 13456 | (lambda _ |
| 13457 | ;; Deactivate the test cases that download files |
| 13458 | (setenv "NO_NETWORK_ACCESS" "1") |
| 13459 | ;; For some strange reason, some tests fail if nosetests runs all |
| 13460 | ;; test modules in a single execution. They pass if each test |
| 13461 | ;; module is run individually. |
| 13462 | (for-each (lambda (filename) |
| 13463 | (invoke "nosetests" |
| 13464 | (string-append "tests/" filename))) |
| 13465 | (scandir "tests" |
| 13466 | (lambda (filename) |
| 13467 | (string-suffix? ".py" filename))))))))) |
| 13468 | (native-inputs |
| 13469 | `(("python-tempdir" ,python-tempdir) |
| 13470 | ("python-nose" ,python-nose))) |
| 13471 | (propagated-inputs |
| 13472 | `(("python-h5py" ,python-h5py))) |
| 13473 | (home-page "http://www.activepapers.org/") |
| 13474 | (synopsis "Executable papers for scientific computing") |
| 13475 | (description |
| 13476 | "ActivePapers is a tool for working with executable papers, which |
| 13477 | combine data, code, and documentation in single-file packages, |
| 13478 | suitable for publication as supplementary material or on repositories |
| 13479 | such as figshare or Zenodo.") |
| 13480 | (properties `((python2-variant . ,(delay python2-activepapers)))) |
| 13481 | (license license:bsd-3))) |
| 13482 | |
| 13483 | (define-public python2-activepapers |
| 13484 | (let ((base (package-with-python2 |
| 13485 | (strip-python2-variant python-activepapers)))) |
| 13486 | (package |
| 13487 | (inherit base) |
| 13488 | (arguments |
| 13489 | (substitute-keyword-arguments (package-arguments base) |
| 13490 | ((#:phases phases) |
| 13491 | `(modify-phases ,phases |
| 13492 | (delete 'delete-python2-code) |
| 13493 | (add-after 'unpack 'delete-python3-code |
| 13494 | (lambda _ |
| 13495 | (for-each delete-file |
| 13496 | '("lib/activepapers/builtins3.py" |
| 13497 | "lib/activepapers/standardlib3.py" |
| 13498 | "lib/activepapers/utility3.py"))))))))))) |
| 13499 | |
| 13500 | (define-public python-semver |
| 13501 | (package |
| 13502 | (name "python-semver") |
| 13503 | (version "2.7.9") |
| 13504 | (source |
| 13505 | (origin |
| 13506 | (method url-fetch) |
| 13507 | (uri (pypi-uri "semver" version)) |
| 13508 | (sha256 |
| 13509 | (base32 |
| 13510 | "0hhgqppchv59rqj0yzi1prdg2nfsywqmjsqy2rycyxm0hvxmbyqz")))) |
| 13511 | (build-system python-build-system) |
| 13512 | (arguments |
| 13513 | `(#:phases |
| 13514 | (modify-phases %standard-phases |
| 13515 | (add-after 'unpack 'patch-test-requirements |
| 13516 | (lambda _ |
| 13517 | (substitute* "setup.py" |
| 13518 | ;; Our Python is new enough. |
| 13519 | (("'virtualenv<14\\.0\\.0'") "'virtualenv'")) |
| 13520 | #t))))) |
| 13521 | (native-inputs |
| 13522 | `(("python-tox" ,python-tox) |
| 13523 | ("python-virtualenv" ,python-virtualenv))) |
| 13524 | (home-page "https://github.com/k-bx/python-semver") |
| 13525 | (synopsis "Python helper for Semantic Versioning") |
| 13526 | (description "This package provides a Python library for |
| 13527 | @url{Semantic Versioning, http://semver.org/}.") |
| 13528 | (license license:bsd-3))) |
| 13529 | |
| 13530 | (define-public python2-semver |
| 13531 | (package-with-python2 python-semver)) |
| 13532 | |
| 13533 | (define-public python-pyro4 |
| 13534 | (package |
| 13535 | (name "python-pyro4") |
| 13536 | (version "4.75") |
| 13537 | (source |
| 13538 | (origin |
| 13539 | (method url-fetch) |
| 13540 | (uri (pypi-uri "Pyro4" version)) |
| 13541 | (sha256 |
| 13542 | (base32 "1dfpp36imddx19yv0kd28gk1l71ckhpqy6jd590wpm2680jw15rq")))) |
| 13543 | (build-system python-build-system) |
| 13544 | (propagated-inputs |
| 13545 | `(("python-serpent" ,python-serpent))) |
| 13546 | (home-page "https://pyro4.readthedocs.io") |
| 13547 | (synopsis "Distributed object middleware for Python") |
| 13548 | (description |
| 13549 | "Pyro enables you to build applications in which objects can talk to each |
| 13550 | other over the network. You can just use normal Python method calls to call |
| 13551 | objects on other machines, also known as remote procedure calls (RPC).") |
| 13552 | (license license:expat))) |
| 13553 | |
| 13554 | (define-public python2-pyro |
| 13555 | (package |
| 13556 | (name "python2-pyro") |
| 13557 | (version "3.16") |
| 13558 | (source |
| 13559 | (origin |
| 13560 | (method url-fetch) |
| 13561 | (uri (pypi-uri "Pyro" version)) |
| 13562 | (file-name (string-append "Pyro-" version ".tar.gz")) |
| 13563 | (sha256 |
| 13564 | (base32 |
| 13565 | "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v")))) |
| 13566 | (build-system python-build-system) |
| 13567 | (arguments |
| 13568 | ;; Pyro is not compatible with Python 3 |
| 13569 | `(#:python ,python-2 |
| 13570 | ;; Pyro has no test cases for automatic execution |
| 13571 | #:tests? #f)) |
| 13572 | (home-page "http://pythonhosted.org/Pyro/") |
| 13573 | (synopsis "Distributed object manager for Python") |
| 13574 | (description "Pyro is a Distributed Object Technology system |
| 13575 | written in Python that is designed to be easy to use. It resembles |
| 13576 | Java's Remote Method Invocation (RMI). It has less similarity to CORBA, |
| 13577 | which is a system and language independent Distributed Object Technology |
| 13578 | and has much more to offer than Pyro or RMI. Pyro 3.x is no |
| 13579 | longer maintained. New projects should use Pyro4 instead, which |
| 13580 | is the new Pyro version that is actively developed.") |
| 13581 | (license license:expat))) |
| 13582 | |
| 13583 | (define-public python2-scientific |
| 13584 | (package |
| 13585 | (name "python2-scientific") |
| 13586 | (version "2.9.4") |
| 13587 | (source |
| 13588 | (origin |
| 13589 | (method url-fetch) |
| 13590 | (uri (string-append "https://bitbucket.org/khinsen/" |
| 13591 | "scientificpython/downloads/ScientificPython-" |
| 13592 | version ".tar.gz")) |
| 13593 | (file-name (string-append "ScientificPython-" version ".tar.gz")) |
| 13594 | (sha256 |
| 13595 | (base32 |
| 13596 | "0fc69zhlsn9d2jvbzyjl9ah53vj598h84nkq230c83ahfvgzx5y3")))) |
| 13597 | (build-system python-build-system) |
| 13598 | (inputs |
| 13599 | `(("netcdf" ,netcdf))) |
| 13600 | (propagated-inputs |
| 13601 | `(("python-numpy" ,python2-numpy-1.8) |
| 13602 | ("python-pyro" ,python2-pyro))) |
| 13603 | (arguments |
| 13604 | ;; ScientificPython is not compatible with Python 3 |
| 13605 | `(#:python ,python-2 |
| 13606 | #:tests? #f ; No test suite |
| 13607 | #:phases |
| 13608 | (modify-phases %standard-phases |
| 13609 | (replace 'build |
| 13610 | (lambda* (#:key inputs #:allow-other-keys) |
| 13611 | (invoke "python" "setup.py" "build" |
| 13612 | (string-append "--netcdf_prefix=" |
| 13613 | (assoc-ref inputs "netcdf")))))))) |
| 13614 | (home-page "https://bitbucket.org/khinsen/scientificpython") |
| 13615 | (synopsis "Python modules for scientific computing") |
| 13616 | (description "ScientificPython is a collection of Python modules that are |
| 13617 | useful for scientific computing. Most modules are rather general (Geometry, |
| 13618 | physical units, automatic derivatives, ...) whereas others are more |
| 13619 | domain-specific (e.g. netCDF and PDB support). The library is currently |
| 13620 | not actively maintained and works only with Python 2 and NumPy < 1.9.") |
| 13621 | (license license:cecill-c))) |
| 13622 | |
| 13623 | (define-public python2-mmtk |
| 13624 | (package |
| 13625 | (name "python2-mmtk") |
| 13626 | (version "2.7.11") |
| 13627 | (source |
| 13628 | (origin |
| 13629 | (method url-fetch) |
| 13630 | (uri (string-append "https://bitbucket.org/khinsen/" |
| 13631 | "mmtk/downloads/MMTK-" version ".tar.gz")) |
| 13632 | (file-name (string-append "MMTK-" version ".tar.gz")) |
| 13633 | (sha256 |
| 13634 | (base32 |
| 13635 | "1d0nnjx4lwsvh8f99vv1r6gi50d93yba0adkz8b4zgv4za4c5862")))) |
| 13636 | (build-system python-build-system) |
| 13637 | (native-inputs |
| 13638 | `(("netcdf" ,netcdf))) |
| 13639 | (propagated-inputs |
| 13640 | `(("python-scientific" ,python2-scientific) |
| 13641 | ("python-tkinter" ,python-2 "tk"))) |
| 13642 | (arguments |
| 13643 | `(#:python ,python-2 |
| 13644 | #:tests? #f |
| 13645 | #:phases |
| 13646 | (modify-phases %standard-phases |
| 13647 | (add-before 'build 'includes-from-scientific |
| 13648 | (lambda* (#:key inputs #:allow-other-keys) |
| 13649 | (mkdir-p "Include/Scientific") |
| 13650 | (copy-recursively |
| 13651 | (string-append |
| 13652 | (assoc-ref inputs "python-scientific") |
| 13653 | "/include/python2.7/Scientific") |
| 13654 | "Include/Scientific")))))) |
| 13655 | (home-page "http://dirac.cnrs-orleans.fr/MMTK") |
| 13656 | (synopsis "Python library for molecular simulation") |
| 13657 | (description "MMTK is a library for molecular simulations with an emphasis |
| 13658 | on biomolecules. It provides widely used methods such as Molecular Dynamics |
| 13659 | and normal mode analysis, but also basic routines for implementing new methods |
| 13660 | for simulation and analysis. The library is currently not actively maintained |
| 13661 | and works only with Python 2 and NumPy < 1.9.") |
| 13662 | (license license:cecill-c))) |
| 13663 | |
| 13664 | (define-public python-phonenumbers |
| 13665 | (package |
| 13666 | (name "python-phonenumbers") |
| 13667 | (version "8.9.1") |
| 13668 | (source |
| 13669 | (origin |
| 13670 | (method url-fetch) |
| 13671 | (uri (pypi-uri "phonenumbers" version)) |
| 13672 | (sha256 |
| 13673 | (base32 |
| 13674 | "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1")))) |
| 13675 | (build-system python-build-system) |
| 13676 | (home-page |
| 13677 | "https://github.com/daviddrysdale/python-phonenumbers") |
| 13678 | (synopsis |
| 13679 | "Python library for dealing with international phone numbers") |
| 13680 | (description |
| 13681 | "This package provides a Python port of Google's libphonenumber library.") |
| 13682 | (license license:asl2.0))) |
| 13683 | |
| 13684 | (define-public python2-phonenumbers |
| 13685 | (package-with-python2 python-phonenumbers)) |
| 13686 | |
| 13687 | (define-public python-send2trash |
| 13688 | (package |
| 13689 | (name "python-send2trash") |
| 13690 | (version "1.5.0") |
| 13691 | (source |
| 13692 | (origin (method git-fetch) |
| 13693 | ;; Source tarball on PyPI doesn't include tests. |
| 13694 | (uri (git-reference |
| 13695 | (url "https://github.com/hsoft/send2trash.git") |
| 13696 | (commit version))) |
| 13697 | (file-name (git-file-name name version)) |
| 13698 | (sha256 |
| 13699 | (base32 |
| 13700 | "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v")))) |
| 13701 | (build-system python-build-system) |
| 13702 | (arguments |
| 13703 | '(#:phases |
| 13704 | (modify-phases %standard-phases |
| 13705 | (add-before 'check 'pre-check |
| 13706 | (lambda _ |
| 13707 | (mkdir-p "/tmp/foo") |
| 13708 | (setenv "HOME" "/tmp/foo") |
| 13709 | #t))))) |
| 13710 | (home-page "https://github.com/hsoft/send2trash") |
| 13711 | (synopsis "Send files to the user's @file{~/Trash} directory") |
| 13712 | (description "This package provides a Python library to send files to the |
| 13713 | user's @file{~/Trash} directory.") |
| 13714 | (properties `((python2-variant . ,(delay python2-send2trash)))) |
| 13715 | (license license:bsd-3))) |
| 13716 | |
| 13717 | (define-public python2-send2trash |
| 13718 | (package |
| 13719 | (inherit (package-with-python2 (strip-python2-variant python-send2trash))) |
| 13720 | (arguments |
| 13721 | (substitute-keyword-arguments (package-arguments python-send2trash) |
| 13722 | ((#:phases phases) |
| 13723 | `(modify-phases ,phases |
| 13724 | (add-before 'check 'setenv |
| 13725 | (lambda _ |
| 13726 | (setenv "PYTHONPATH" |
| 13727 | (string-append (getcwd) ":" (getenv "PYTHONPATH"))) |
| 13728 | #t)))))))) |
| 13729 | |
| 13730 | (define-public python-yapf |
| 13731 | (package |
| 13732 | (name "python-yapf") |
| 13733 | (version "0.24.0") |
| 13734 | (source |
| 13735 | (origin |
| 13736 | (method url-fetch) |
| 13737 | (uri (pypi-uri "yapf" version)) |
| 13738 | (sha256 |
| 13739 | (base32 |
| 13740 | "0anwby0ydmyzcsgjc5dn1ryddwvii4dq61vck447q0n96npnzfyf")))) |
| 13741 | (build-system python-build-system) |
| 13742 | (home-page "https://github.com/google/yapf") |
| 13743 | (synopsis "Formatter for Python code") |
| 13744 | (description "YAPF is a formatter for Python code. It's based off of |
| 13745 | @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm |
| 13746 | takes the code and reformats it to the best formatting that conforms to the |
| 13747 | style guide, even if the original code didn't violate the style guide.") |
| 13748 | (license license:asl2.0))) |
| 13749 | |
| 13750 | (define-public python2-yapf |
| 13751 | (package-with-python2 python-yapf)) |
| 13752 | |
| 13753 | (define-public python-gyp |
| 13754 | (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f") |
| 13755 | (revision "0")) |
| 13756 | (package |
| 13757 | (name "python-gyp") |
| 13758 | ;; Google does not release versions, |
| 13759 | ;; based on second most recent commit date. |
| 13760 | (version (git-version "0.0.0" revision commit)) |
| 13761 | (source |
| 13762 | (origin |
| 13763 | ;; Google does not release tarballs, |
| 13764 | ;; git checkout is needed. |
| 13765 | (method git-fetch) |
| 13766 | (uri (git-reference |
| 13767 | (url "https://chromium.googlesource.com/external/gyp") |
| 13768 | (commit commit))) |
| 13769 | (file-name (git-file-name name version)) |
| 13770 | (sha256 |
| 13771 | (base32 |
| 13772 | "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9")))) |
| 13773 | (build-system python-build-system) |
| 13774 | (home-page "https://gyp.gsrc.io/") |
| 13775 | (synopsis "GYP is a Meta-Build system") |
| 13776 | (description |
| 13777 | "GYP builds build systems for large, cross platform applications. |
| 13778 | It can be used to generate XCode projects, Visual Studio projects, Ninja build |
| 13779 | files, and Makefiles.") |
| 13780 | (license license:bsd-3)))) |
| 13781 | |
| 13782 | (define-public python2-gyp |
| 13783 | (package-with-python2 python-gyp)) |
| 13784 | |
| 13785 | (define-public python-whatever |
| 13786 | (package |
| 13787 | (name "python-whatever") |
| 13788 | (version "0.5") |
| 13789 | (source |
| 13790 | (origin |
| 13791 | (method url-fetch) |
| 13792 | (uri (string-append "https://github.com/Suor/whatever/archive/" version |
| 13793 | ".tar.gz")) |
| 13794 | (sha256 |
| 13795 | (base32 |
| 13796 | "1iqvnaf0zpc6b4rvbqq4xy45mszcscyzpzknv8wg6j84pbp22sap")) |
| 13797 | (file-name (string-append name "-" version ".tar.gz")))) |
| 13798 | (build-system python-build-system) |
| 13799 | (arguments |
| 13800 | `(#:phases |
| 13801 | (modify-phases %standard-phases |
| 13802 | (replace 'check |
| 13803 | (lambda _ |
| 13804 | (invoke "py.test")))))) |
| 13805 | (native-inputs |
| 13806 | `(("python-pytest" ,python-pytest))) |
| 13807 | (home-page "http://github.com/Suor/whatever") |
| 13808 | (synopsis "Make anonymous functions by partial application of operators") |
| 13809 | (description "@code{whatever} provides an easy way to make anonymous |
| 13810 | functions by partial application of operators.") |
| 13811 | (license license:bsd-3))) |
| 13812 | |
| 13813 | (define-public python2-whatever |
| 13814 | (package-with-python2 python-whatever)) |
| 13815 | |
| 13816 | (define-public python-funcy |
| 13817 | (package |
| 13818 | (name "python-funcy") |
| 13819 | (version "1.11") |
| 13820 | (source |
| 13821 | (origin |
| 13822 | (method git-fetch) |
| 13823 | (uri (git-reference |
| 13824 | (url "https://github.com/Suor/funcy.git") |
| 13825 | (commit version))) |
| 13826 | (sha256 |
| 13827 | (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw")) |
| 13828 | (file-name (git-file-name name version)))) |
| 13829 | (build-system python-build-system) |
| 13830 | (arguments |
| 13831 | `(#:phases |
| 13832 | (modify-phases %standard-phases |
| 13833 | (replace 'check |
| 13834 | (lambda _ |
| 13835 | (invoke "py.test")))))) |
| 13836 | (native-inputs |
| 13837 | `(("python-pytest" ,python-pytest) |
| 13838 | ("python-whatever" ,python-whatever))) |
| 13839 | (home-page "http://github.com/Suor/funcy") |
| 13840 | (synopsis "Functional tools") |
| 13841 | (description "@code{funcy} is a library that provides functional tools. |
| 13842 | Examples are: |
| 13843 | @enumerate |
| 13844 | @item merge - Merges collections of the same type |
| 13845 | @item walk - Type-preserving map |
| 13846 | @item select - Selects a part of a collection |
| 13847 | @item take - Takes the first n items of a collection |
| 13848 | @item first - Takes the first item of a collection |
| 13849 | @item remove - Predicated-removes items of a collection |
| 13850 | @item concat - Concatenates two collections |
| 13851 | @item flatten - Flattens a collection with subcollections |
| 13852 | @item distinct - Returns only distinct items |
| 13853 | @item split - Predicated-splits a collection |
| 13854 | @item split_at - Splits a collection at a given item |
| 13855 | @item group_by - Groups items by group |
| 13856 | @item pairwise - Pairs off adjacent items |
| 13857 | @item partial - Partially-applies a function |
| 13858 | @item curry - Curries a function |
| 13859 | @item compose - Composes functions |
| 13860 | @item complement - Complements a predicate |
| 13861 | @item all_fn - \"all\" with predicate |
| 13862 | @end enumerate") |
| 13863 | (license license:bsd-3))) |
| 13864 | |
| 13865 | (define-public python2-funcy |
| 13866 | (package-with-python2 python-funcy)) |
| 13867 | |
| 13868 | (define-public python-isoweek |
| 13869 | (package |
| 13870 | (name "python-isoweek") |
| 13871 | (version "1.3.3") |
| 13872 | (source |
| 13873 | (origin |
| 13874 | (method url-fetch) |
| 13875 | (uri (pypi-uri "isoweek" version)) |
| 13876 | (sha256 |
| 13877 | (base32 |
| 13878 | "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk")))) |
| 13879 | (build-system python-build-system) |
| 13880 | (home-page "https://github.com/gisle/isoweek") |
| 13881 | (synopsis "Objects representing a week") |
| 13882 | (description "The @code{isoweek} module provide the class Week that |
| 13883 | implements the week definition of ISO 8601. This standard also defines |
| 13884 | a notation for identifying weeks; yyyyWww (where the W is a literal). |
| 13885 | Week instances stringify to this form.") |
| 13886 | (license license:bsd-3))) |
| 13887 | |
| 13888 | (define-public python2-isoweek |
| 13889 | (package-with-python2 python-isoweek)) |
| 13890 | |
| 13891 | (define-public python-tokenize-rt |
| 13892 | (package |
| 13893 | (name "python-tokenize-rt") |
| 13894 | (version "2.0.1") |
| 13895 | (source |
| 13896 | (origin |
| 13897 | (method url-fetch) |
| 13898 | (uri (pypi-uri "tokenize-rt" version)) |
| 13899 | (sha256 |
| 13900 | (base32 |
| 13901 | "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw")))) |
| 13902 | (build-system python-build-system) |
| 13903 | (home-page "https://github.com/asottile/tokenize-rt") |
| 13904 | (synopsis "Wrapper around the stdlib tokenize which roundtrips.") |
| 13905 | (description |
| 13906 | "This Python library is a wrapper around @code{tokenize} from the Python |
| 13907 | standard library. It provides two additional tokens @code{ESCAPED_NL} and |
| 13908 | @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens} |
| 13909 | and @code{tokens_to_src} to roundtrip.") |
| 13910 | (license license:expat))) |
| 13911 | |
| 13912 | (define-public python-future-fstrings |
| 13913 | (package |
| 13914 | (name "python-future-fstrings") |
| 13915 | (version "0.4.1") |
| 13916 | (source |
| 13917 | (origin |
| 13918 | (method url-fetch) |
| 13919 | (uri (pypi-uri "future_fstrings" version)) |
| 13920 | (sha256 |
| 13921 | (base32 |
| 13922 | "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47")))) |
| 13923 | (build-system python-build-system) |
| 13924 | (propagated-inputs |
| 13925 | `(("python-tokenize-rt" ,python-tokenize-rt))) |
| 13926 | (home-page "https://github.com/asottile/future-fstrings") |
| 13927 | (synopsis "Backport of fstrings to Python < 3.6") |
| 13928 | (description |
| 13929 | "This package provides a UTF-8 compatible encoding |
| 13930 | @code{future_fstrings}, which performs source manipulation. It decodes the |
| 13931 | source bytes using the UTF-8 encoding and then rewrites Python 3.6 style |
| 13932 | @code{f} strings.") |
| 13933 | (license license:expat))) |
| 13934 | |
| 13935 | (define-public python-typing |
| 13936 | (package |
| 13937 | (name "python-typing") |
| 13938 | (version "3.6.6") |
| 13939 | (source |
| 13940 | (origin |
| 13941 | (method url-fetch) |
| 13942 | (uri (pypi-uri "typing" version)) |
| 13943 | (sha256 |
| 13944 | (base32 |
| 13945 | "0ba9acs4awx15bf9v3nrs781msbd2nx826906nj6fqks2bvca9s0")))) |
| 13946 | (build-system python-build-system) |
| 13947 | (home-page "https://docs.python.org/3/library/typing.html") |
| 13948 | (synopsis "Type hints for Python") |
| 13949 | (description "This is a backport of the standard library @code{typing} |
| 13950 | module to Python versions older than 3.5. Typing defines a standard notation |
| 13951 | for Python function and variable type annotations. The notation can be used |
| 13952 | for documenting code in a concise, standard format, and it has been designed |
| 13953 | to also be used by static and runtime type checkers, static analyzers, IDEs |
| 13954 | and other tools.") |
| 13955 | (license license:psfl))) |
| 13956 | |
| 13957 | (define-public python2-typing |
| 13958 | (package-with-python2 python-typing)) |
| 13959 | |
| 13960 | (define-public python-typing-extensions |
| 13961 | (package |
| 13962 | (name "python-typing-extensions") |
| 13963 | (version "3.7.2") |
| 13964 | (source |
| 13965 | (origin |
| 13966 | (method url-fetch) |
| 13967 | (uri (pypi-uri "typing_extensions" version)) |
| 13968 | (sha256 |
| 13969 | (base32 |
| 13970 | "0wfsv71pvkyf2na938l579jh0v3kzl6g744ijgnahcwd4d9x0b7v")))) |
| 13971 | (build-system python-build-system) |
| 13972 | (home-page |
| 13973 | "https://github.com/python/typing/blob/master/typing_extensions/README.rst") |
| 13974 | (synopsis "Experimental type hints for Python") |
| 13975 | (description |
| 13976 | "The typing_extensions module contains additional @code{typing} hints not |
| 13977 | yet present in the of the @code{typing} standard library. |
| 13978 | Included are implementations of: |
| 13979 | @enumerate |
| 13980 | @item ClassVar |
| 13981 | @item ContextManager |
| 13982 | @item Counter |
| 13983 | @item DefaultDict |
| 13984 | @item Deque |
| 13985 | @item NewType |
| 13986 | @item NoReturn |
| 13987 | @item overload |
| 13988 | @item Protocol |
| 13989 | @item runtime |
| 13990 | @item Text |
| 13991 | @item Type |
| 13992 | @item TYPE_CHECKING |
| 13993 | @item AsyncGenerator |
| 13994 | @end enumerate\n") |
| 13995 | (license license:psfl))) |
| 13996 | |
| 13997 | (define-public bpython |
| 13998 | (package |
| 13999 | (name "bpython") |
| 14000 | (version "0.17.1") |
| 14001 | (source |
| 14002 | (origin |
| 14003 | (method url-fetch) |
| 14004 | (uri (pypi-uri "bpython" version)) |
| 14005 | (sha256 |
| 14006 | (base32 |
| 14007 | "0bxhxi5zxdkrf8b4gwn0d363kdz3qnypjwhm1aydki53ph8ca1w9")))) |
| 14008 | (build-system python-build-system) |
| 14009 | (arguments |
| 14010 | `(#:phases |
| 14011 | (modify-phases %standard-phases |
| 14012 | (add-after 'unpack 'remove-failing-test |
| 14013 | (lambda _ |
| 14014 | ;; Remove failing test. FIXME: make it pass |
| 14015 | (delete-file "bpython/test/test_args.py") |
| 14016 | #t)) |
| 14017 | (add-after 'wrap 'add-aliases |
| 14018 | ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc. |
| 14019 | (lambda* (#:key outputs #:allow-other-keys) |
| 14020 | (let ((out (assoc-ref outputs "out"))) |
| 14021 | (for-each |
| 14022 | (lambda (old new) |
| 14023 | (symlink old (string-append out "/bin/" new))) |
| 14024 | '("bpython" "bpython-curses" "bpython-urwid" "bpdb") |
| 14025 | '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3"))) |
| 14026 | #t))))) |
| 14027 | (propagated-inputs |
| 14028 | `(("python-pygments" ,python-pygments) |
| 14029 | ("python-requests" ,python-requests) |
| 14030 | ("python-babel" ,python-babel) ; optional, for internationalization |
| 14031 | ("python-curtsies" ,python-curtsies) ; >= 0.1.18 |
| 14032 | ("python-greenlet" ,python-greenlet) |
| 14033 | ("python-urwid" ,python-urwid) ; for bpython-urwid only |
| 14034 | ("python-six" ,python-six))) |
| 14035 | (native-inputs |
| 14036 | `(("python-sphinx" ,python-sphinx) |
| 14037 | ("python-mock" ,python-mock))) |
| 14038 | (home-page "https://bpython-interpreter.org/") |
| 14039 | (synopsis "Fancy interface to the Python interpreter") |
| 14040 | (description "Bpython is a fancy interface to the Python |
| 14041 | interpreter. bpython's main features are |
| 14042 | |
| 14043 | @enumerate |
| 14044 | @item in-line syntax highlighting, |
| 14045 | @item readline-like autocomplete with suggestions displayed as you type, |
| 14046 | @item expected parameter list for any Python function, |
| 14047 | @item \"rewind\" function to pop the last line of code from memory and |
| 14048 | re-evaluate, |
| 14049 | @item send the code you've entered off to a pastebin, |
| 14050 | @item save the code you've entered to a file, and |
| 14051 | @item auto-indentation. |
| 14052 | @end enumerate") |
| 14053 | (license license:expat))) |
| 14054 | |
| 14055 | (define-public bpython2 |
| 14056 | (let ((base (package-with-python2 |
| 14057 | (strip-python2-variant bpython)))) |
| 14058 | (package (inherit base) |
| 14059 | (name "bpython2") |
| 14060 | (arguments |
| 14061 | `(#:python ,python-2 |
| 14062 | #:phases |
| 14063 | (modify-phases %standard-phases |
| 14064 | (add-after 'unpack 'remove-failing-test |
| 14065 | (lambda _ |
| 14066 | ;; Remove failing test. FIXME: make it pass |
| 14067 | (delete-file "bpython/test/test_args.py") |
| 14068 | ;; Disable failing test-cases (renaming inhibits they are |
| 14069 | ;; discovered) |
| 14070 | (substitute* "bpython/test/test_curtsies_repl.py" |
| 14071 | (("^(\\s*def )(test_get_last_word_with_prev_line\\W)" _ a b) |
| 14072 | (string-append a "xxx_off_" b)) |
| 14073 | (("^(\\s*def )(test_complex\\W)" _ a b) |
| 14074 | (string-append a "xxx_off_" b))) |
| 14075 | #t)) |
| 14076 | (add-before 'build 'rename-scripts |
| 14077 | ;; rename the scripts to bypthon2, bpdb2, etc. |
| 14078 | (lambda _ |
| 14079 | (substitute* "setup.py" |
| 14080 | (("^(\\s+'bpdb)(\\s+=.*',?)\\s*?$" _ name rest) |
| 14081 | (string-append name "2" rest "\n")) |
| 14082 | (("^(\\s+'bpython)(-\\S+)?(\\s+=.*',?)\\s*?$" _ name sub rest) |
| 14083 | (string-append name "2" (or sub "") rest "\n"))) |
| 14084 | #t)))))))) |
| 14085 | |
| 14086 | (define-public python-pyinotify |
| 14087 | (package |
| 14088 | (name "python-pyinotify") |
| 14089 | (version "0.9.6") |
| 14090 | (source (origin |
| 14091 | (method url-fetch) |
| 14092 | (uri (pypi-uri "pyinotify" version)) |
| 14093 | (sha256 |
| 14094 | (base32 |
| 14095 | "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw")))) |
| 14096 | (build-system python-build-system) |
| 14097 | (arguments `(#:tests? #f)) ;no tests |
| 14098 | (home-page "https://github.com/seb-m/pyinotify") |
| 14099 | (synopsis "Python library for monitoring inotify events") |
| 14100 | (description |
| 14101 | "@code{pyinotify} provides a Python interface for monitoring |
| 14102 | file system events on Linux.") |
| 14103 | (license license:expat))) |
| 14104 | |
| 14105 | (define-public python2-pyinotify |
| 14106 | (package-with-python2 python-pyinotify)) |
| 14107 | |
| 14108 | ;; Ada parser uses this version. |
| 14109 | (define-public python2-quex-0.67.3 |
| 14110 | (package |
| 14111 | (name "python2-quex") |
| 14112 | (version "0.67.3") |
| 14113 | (source |
| 14114 | (origin |
| 14115 | (method url-fetch) |
| 14116 | (uri (string-append "mirror://sourceforge/quex/HISTORY/" |
| 14117 | (version-major+minor version) |
| 14118 | "/quex-" version ".zip")) |
| 14119 | (sha256 |
| 14120 | (base32 |
| 14121 | "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw")))) |
| 14122 | (build-system python-build-system) |
| 14123 | (native-inputs |
| 14124 | `(("unzip" ,unzip))) |
| 14125 | (arguments |
| 14126 | `(#:python ,python-2 |
| 14127 | #:tests? #f |
| 14128 | #:phases |
| 14129 | (modify-phases %standard-phases |
| 14130 | (delete 'configure) |
| 14131 | (delete 'build) |
| 14132 | (replace 'install |
| 14133 | (lambda* (#:key outputs #:allow-other-keys) |
| 14134 | (let* ((out (assoc-ref outputs "out")) |
| 14135 | (share/quex (string-append out "/share/quex")) |
| 14136 | (bin (string-append out "/bin"))) |
| 14137 | (copy-recursively "." share/quex) |
| 14138 | (mkdir-p bin) |
| 14139 | (symlink (string-append share/quex "/quex-exe.py") |
| 14140 | (string-append bin "/quex")) |
| 14141 | #t)))))) |
| 14142 | (native-search-paths |
| 14143 | (list (search-path-specification |
| 14144 | (variable "QUEX_PATH") |
| 14145 | (files '("share/quex"))))) |
| 14146 | (home-page "http://quex.sourceforge.net/") |
| 14147 | (synopsis "Lexical analyzer generator in Python") |
| 14148 | (description "@code{quex} is a lexical analyzer generator in Python.") |
| 14149 | (license license:lgpl2.1+))) ; Non-military |
| 14150 | |
| 14151 | (define-public python2-quex |
| 14152 | (package (inherit python2-quex-0.67.3) |
| 14153 | (name "python2-quex") |
| 14154 | (version "0.68.1") |
| 14155 | (source |
| 14156 | (origin |
| 14157 | (method url-fetch) |
| 14158 | (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz")) |
| 14159 | (sha256 |
| 14160 | (base32 |
| 14161 | "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j")) |
| 14162 | (file-name (string-append name "-" version ".tar.gz")))))) |
| 14163 | |
| 14164 | (define-public python-more-itertools |
| 14165 | (package |
| 14166 | (name "python-more-itertools") |
| 14167 | (version "4.3.0") |
| 14168 | (source |
| 14169 | (origin |
| 14170 | (method url-fetch) |
| 14171 | (uri (pypi-uri "more-itertools" version)) |
| 14172 | (sha256 |
| 14173 | (base32 |
| 14174 | "17h3na0rdh8xq30w4b9pizgkdxmm51896bxw600x84jflg9vaxn4")))) |
| 14175 | (build-system python-build-system) |
| 14176 | (arguments |
| 14177 | `(,@(if (any (cute string-prefix? <> (or (%current-system) |
| 14178 | (%current-target-system))) |
| 14179 | '("armhf" "i686")) |
| 14180 | '(#:phases |
| 14181 | (modify-phases %standard-phases |
| 14182 | ;; This is required for 32-bit hardware. |
| 14183 | ;; TODO: Try to remove this when upgrading. |
| 14184 | (add-after 'unpack 'patch-test |
| 14185 | (lambda _ |
| 14186 | (substitute* "more_itertools/tests/test_more.py" |
| 14187 | (("10 \\*\\* 10") "9 ** 9")) |
| 14188 | #t)))) |
| 14189 | '()))) |
| 14190 | (propagated-inputs |
| 14191 | `(("python-six" ,python-six-bootstrap))) |
| 14192 | (home-page "https://github.com/erikrose/more-itertools") |
| 14193 | (synopsis "More routines for operating on iterables, beyond itertools") |
| 14194 | (description "Python's built-in @code{itertools} module implements a |
| 14195 | number of iterator building blocks inspired by constructs from APL, Haskell, |
| 14196 | and SML. @code{more-itertools} includes additional building blocks for |
| 14197 | working with iterables.") |
| 14198 | (license license:expat))) |
| 14199 | |
| 14200 | (define-public python2-more-itertools |
| 14201 | (package-with-python2 python-more-itertools)) |
| 14202 | |
| 14203 | (define-public python-latexcodec |
| 14204 | (package |
| 14205 | (name "python-latexcodec") |
| 14206 | (version "1.0.6") |
| 14207 | (source |
| 14208 | (origin |
| 14209 | (method url-fetch) |
| 14210 | (uri (pypi-uri "latexcodec" version)) |
| 14211 | (sha256 |
| 14212 | (base32 "0s4wdbg0w2l8pj3i0y4510i0s04p8nhxcsa2z41bjsv0k66npb81")))) |
| 14213 | (build-system python-build-system) |
| 14214 | (inputs |
| 14215 | `(("python-six" ,python-six))) |
| 14216 | (home-page "https://readthedocs.org/projects/latexcodec/") |
| 14217 | (synopsis "Work with LaTeX code in Python") |
| 14218 | (description "Lexer and codec to work with LaTeX code in Python.") |
| 14219 | (license license:expat))) |
| 14220 | |
| 14221 | (define-public python-pybtex |
| 14222 | (package |
| 14223 | (name "python-pybtex") |
| 14224 | (version "0.21") |
| 14225 | (source |
| 14226 | (origin |
| 14227 | (method url-fetch) |
| 14228 | (uri (pypi-uri "pybtex" version)) |
| 14229 | (sha256 |
| 14230 | (base32 |
| 14231 | "00300j8dn5pxq4ndxmfmbmycg2znawkqs49val2x6jlmfiy6r2mg")))) |
| 14232 | (build-system python-build-system) |
| 14233 | (native-inputs |
| 14234 | `(("python-nose" ,python-nose))) |
| 14235 | (inputs |
| 14236 | `(("python-latexcodec" ,python-latexcodec) |
| 14237 | ("python-pyyaml" ,python-pyyaml) |
| 14238 | ("python-six" ,python-six))) |
| 14239 | (arguments |
| 14240 | `(#:test-target "nosetests")) |
| 14241 | (home-page "https://pybtex.org/") |
| 14242 | (synopsis "BibTeX-compatible bibliography processor") |
| 14243 | (description "Pybtex is a BibTeX-compatible bibliography processor written |
| 14244 | in Python. You can simply type pybtex instead of bibtex.") |
| 14245 | (license license:expat))) |
| 14246 | |
| 14247 | (define-public python-onetimepass |
| 14248 | (package |
| 14249 | (name "python-onetimepass") |
| 14250 | (version "1.0.1") |
| 14251 | (source |
| 14252 | (origin |
| 14253 | (method url-fetch) |
| 14254 | (uri (pypi-uri "onetimepass" version)) |
| 14255 | (sha256 |
| 14256 | (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5")))) |
| 14257 | (build-system python-build-system) |
| 14258 | (propagated-inputs `(("python-six" ,python-six))) |
| 14259 | (home-page "https://github.com/tadeck/onetimepass/") |
| 14260 | (synopsis "One-time password library") |
| 14261 | (description "Python one-time password library for HMAC-based (HOTP) and |
| 14262 | time-based (TOTP) passwords.") |
| 14263 | (license license:expat))) |
| 14264 | |
| 14265 | (define-public python-parso |
| 14266 | (package |
| 14267 | (name "python-parso") |
| 14268 | (version "0.3.1") |
| 14269 | (source |
| 14270 | (origin |
| 14271 | (method url-fetch) |
| 14272 | (uri (pypi-uri "parso" version)) |
| 14273 | (sha256 |
| 14274 | (base32 |
| 14275 | "18p89iwcm8mnf380f92g9w0bhx5km8wxp392vvjcq4y1ld1llw1m")))) |
| 14276 | (native-inputs |
| 14277 | `(("python-pytest" ,python-pytest))) |
| 14278 | (build-system python-build-system) |
| 14279 | (home-page "https://github.com/davidhalter/parso") |
| 14280 | (synopsis "Python Parser") |
| 14281 | (description "Parso is a Python parser that supports error recovery and |
| 14282 | round-trip parsing for different Python versions (in multiple Python versions). |
| 14283 | Parso is also able to list multiple syntax errors in your Python file.") |
| 14284 | (license license:expat))) |
| 14285 | |
| 14286 | (define-public python2-parso |
| 14287 | (package-with-python2 python-parso)) |
| 14288 | |
| 14289 | (define-public python-async-generator |
| 14290 | (package |
| 14291 | (name "python-async-generator") |
| 14292 | (version "1.10") |
| 14293 | (source |
| 14294 | (origin |
| 14295 | (method url-fetch) |
| 14296 | (uri (pypi-uri "async_generator" version)) |
| 14297 | (sha256 |
| 14298 | (base32 |
| 14299 | "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf")))) |
| 14300 | (build-system python-build-system) |
| 14301 | (native-inputs |
| 14302 | `(("python-pytest" ,python-pytest))) |
| 14303 | (home-page "https://github.com/python-trio/async_generator") |
| 14304 | (synopsis "Async generators and context managers for Python 3.5+") |
| 14305 | (description "@code{async_generator} back-ports Python 3.6's native async |
| 14306 | generators and Python 3.7's context managers into Python 3.5.") |
| 14307 | ;; Dual licensed. |
| 14308 | (license (list license:expat license:asl2.0)))) |
| 14309 | |
| 14310 | (define-public python-async-timeout |
| 14311 | (package |
| 14312 | (name "python-async-timeout") |
| 14313 | (version "3.0.1") |
| 14314 | (source |
| 14315 | (origin |
| 14316 | (method url-fetch) |
| 14317 | (uri (pypi-uri "async-timeout" version)) |
| 14318 | (sha256 |
| 14319 | (base32 |
| 14320 | "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c")))) |
| 14321 | (build-system python-build-system) |
| 14322 | (home-page "https://github.com/aio-libs/async_timeout/") |
| 14323 | (synopsis "Timeout context manager for asyncio programs") |
| 14324 | (description "@code{async-timeout} provides a timeout timeout context |
| 14325 | manager compatible with @code{asyncio}.") |
| 14326 | (license license:asl2.0))) |
| 14327 | |
| 14328 | (define-public python-glob2 |
| 14329 | (package |
| 14330 | (name "python-glob2") |
| 14331 | (version "0.6") |
| 14332 | (source |
| 14333 | (origin |
| 14334 | (method git-fetch) |
| 14335 | (uri (git-reference |
| 14336 | (url "https://github.com/miracle2k/python-glob2.git") |
| 14337 | (commit version))) |
| 14338 | (file-name (git-file-name name version)) |
| 14339 | (sha256 |
| 14340 | (base32 "1lm1xz3k3l0k1c5bcp9hlzmi3gp5j8dl1k3xhpiq5mnm0xq6n163")))) |
| 14341 | (build-system python-build-system) |
| 14342 | (home-page "https://github.com/miracle2k/python-glob2/") |
| 14343 | (synopsis "Extended Version of the python buildin glob module") |
| 14344 | (description "This is an extended version of the Python |
| 14345 | @url{http://docs.python.org/library/glob.html, built-in glob module} which |
| 14346 | adds: |
| 14347 | |
| 14348 | @itemize |
| 14349 | @item The ability to capture the text matched by glob patterns, and return |
| 14350 | those matches alongside the file names. |
| 14351 | @item A recursive @code{**} globbing syntax, akin for example to the |
| 14352 | @code{globstar} option of Bash. |
| 14353 | @item The ability to replace the file system functions used, in order to glob |
| 14354 | on virtual file systems. |
| 14355 | @item Compatible with Python 2 and Python 3 (tested with 3.3). |
| 14356 | @end itemize |
| 14357 | |
| 14358 | Glob2 currently based on the glob code from Python 3.3.1.") |
| 14359 | (license license:bsd-2))) |
| 14360 | |
| 14361 | (define-public python2-glob2 |
| 14362 | (package-with-python2 python-glob2)) |
| 14363 | |
| 14364 | (define-public python-gipc |
| 14365 | (package |
| 14366 | (name "python-gipc") |
| 14367 | (version "0.6.0") |
| 14368 | (source |
| 14369 | (origin |
| 14370 | (method url-fetch) |
| 14371 | (uri (pypi-uri "gipc" version ".zip")) |
| 14372 | (sha256 |
| 14373 | (base32 |
| 14374 | "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2")))) |
| 14375 | (build-system python-build-system) |
| 14376 | (native-inputs |
| 14377 | `(("unzip" ,unzip))) |
| 14378 | (propagated-inputs |
| 14379 | `(("python-gevent" ,python-gevent))) |
| 14380 | (home-page "http://gehrcke.de/gipc") |
| 14381 | (synopsis "Child process management in the context of gevent") |
| 14382 | (description "Usage of Python's multiprocessing package in a |
| 14383 | gevent-powered application may raise problems. With @code{gipc}, |
| 14384 | process-based child processes can safely be created anywhere within a |
| 14385 | gevent-powered application.") |
| 14386 | (license license:expat))) |
| 14387 | |
| 14388 | (define-public python2-gipc |
| 14389 | (package-with-python2 python-gipc)) |
| 14390 | |
| 14391 | (define-public python-fusepy |
| 14392 | (package |
| 14393 | (name "python-fusepy") |
| 14394 | (version "2.0.4") |
| 14395 | (source |
| 14396 | (origin |
| 14397 | (method url-fetch) |
| 14398 | (uri (pypi-uri "fusepy" version)) |
| 14399 | (sha256 |
| 14400 | (base32 |
| 14401 | "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h")))) |
| 14402 | (build-system python-build-system) |
| 14403 | (arguments |
| 14404 | `(#:phases |
| 14405 | (modify-phases %standard-phases |
| 14406 | (add-before 'build 'set-library-file-name |
| 14407 | (lambda* (#:key inputs #:allow-other-keys) |
| 14408 | (let ((fuse (assoc-ref inputs "fuse"))) |
| 14409 | (substitute* "fuse.py" |
| 14410 | (("find_library\\('fuse'\\)") |
| 14411 | (string-append "'" fuse "/lib/libfuse.so'"))) |
| 14412 | #t)))))) |
| 14413 | (propagated-inputs |
| 14414 | `(("fuse" ,fuse))) |
| 14415 | (home-page "https://github.com/fusepy/fusepy") |
| 14416 | (synopsis "Simple ctypes bindings for FUSE") |
| 14417 | (description "Python module that provides a simple interface to FUSE and |
| 14418 | MacFUSE. The binding is created using the standard @code{ctypes} library.") |
| 14419 | (license license:isc))) |
| 14420 | |
| 14421 | (define-public python2-fusepy |
| 14422 | (package-with-python2 python-fusepy)) |
| 14423 | |
| 14424 | (define-public python2-gdrivefs |
| 14425 | (package |
| 14426 | (name "python2-gdrivefs") |
| 14427 | (version "0.14.9") |
| 14428 | (source |
| 14429 | (origin |
| 14430 | (method url-fetch) |
| 14431 | (uri (pypi-uri "gdrivefs" version)) |
| 14432 | (sha256 |
| 14433 | (base32 |
| 14434 | "0v9sp2cfg4ki3wagkwf3rnfpjhvgf845anz3757il9z95yvvcvb7")))) |
| 14435 | (build-system python-build-system) |
| 14436 | (arguments |
| 14437 | `(#:python ,python-2 |
| 14438 | #:phases |
| 14439 | (modify-phases %standard-phases |
| 14440 | (add-before 'build 'patch-setup-py |
| 14441 | (lambda _ |
| 14442 | ;; Update requirements from dependency==version |
| 14443 | ;; to dependency>=version |
| 14444 | (substitute* "gdrivefs/resources/requirements.txt" |
| 14445 | (("==") ">=")) |
| 14446 | #t))))) |
| 14447 | (native-inputs |
| 14448 | `(("python2-gipc" ,python2-gipc) |
| 14449 | ("python2-gevent" ,python2-gevent) |
| 14450 | ("python2-greenlet" ,python2-greenlet) |
| 14451 | ("python2-httplib2" ,python2-httplib2) |
| 14452 | ("python2-uritemplate" ,python2-uritemplate) |
| 14453 | ("python2-oauth2client" ,python2-oauth2client) |
| 14454 | ("python2-six" ,python2-six))) |
| 14455 | (propagated-inputs |
| 14456 | `(("python2-dateutil" ,python2-dateutil) |
| 14457 | ("python2-fusepy" ,python2-fusepy) |
| 14458 | ("python2-google-api-client" ,python2-google-api-client))) |
| 14459 | (home-page "https://github.com/dsoprea/GDriveFS") |
| 14460 | (synopsis "Mount Google Drive as a local file system") |
| 14461 | (description "@code{gdrivefs} provides a FUSE wrapper for Google Drive |
| 14462 | under Python 2.7.") |
| 14463 | (license license:gpl2))) |
| 14464 | |
| 14465 | (define-public pybind11 |
| 14466 | (package |
| 14467 | (name "pybind11") |
| 14468 | (version "2.2.4") |
| 14469 | (source (origin |
| 14470 | (method git-fetch) |
| 14471 | (uri (git-reference |
| 14472 | (url "https://github.com/pybind/pybind11.git") |
| 14473 | (commit (string-append "v" version)))) |
| 14474 | (sha256 |
| 14475 | (base32 |
| 14476 | "0pa79ymcasv8br5ifbx7878id5py2jpjac3i20cqxr6gs9l6ivlv")) |
| 14477 | (file-name (git-file-name name version)))) |
| 14478 | (build-system cmake-build-system) |
| 14479 | (native-inputs |
| 14480 | `(("python" ,python) |
| 14481 | ("python-pytest" ,python-pytest))) |
| 14482 | (arguments |
| 14483 | `(#:test-target "check")) |
| 14484 | (home-page "https://github.com/pybind/pybind11/") |
| 14485 | (synopsis "Seamless operability between C++11 and Python") |
| 14486 | (description "pybind11 is a lightweight header-only library that exposes |
| 14487 | C++ types in Python and vice versa, mainly to create Python bindings of |
| 14488 | existing C++ code. Its goals and syntax are similar to the excellent |
| 14489 | Boost.Python library by David Abrahams: to minimize boilerplate code in |
| 14490 | traditional extension modules by inferring type information using compile-time |
| 14491 | introspection.") |
| 14492 | (license license:expat))) |
| 14493 | |
| 14494 | (define-public python-fasteners |
| 14495 | (package |
| 14496 | (name "python-fasteners") |
| 14497 | (version "0.14.1") |
| 14498 | (source |
| 14499 | (origin |
| 14500 | (method url-fetch) |
| 14501 | (uri (pypi-uri "fasteners" version)) |
| 14502 | (sha256 |
| 14503 | (base32 |
| 14504 | "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22")))) |
| 14505 | (build-system python-build-system) |
| 14506 | (propagated-inputs |
| 14507 | `(("python-monotonic" ,python-monotonic) |
| 14508 | ("python-six" ,python-six) |
| 14509 | ("python-testtools" ,python-testtools))) |
| 14510 | (home-page "https://github.com/harlowja/fasteners") |
| 14511 | (synopsis "Python package that provides useful locks") |
| 14512 | (description |
| 14513 | "This package provides a Python program that provides following locks: |
| 14514 | |
| 14515 | @itemize |
| 14516 | @item Locking decorator |
| 14517 | @item Reader-writer locks |
| 14518 | @item Inter-process locks |
| 14519 | @item Generic helpers |
| 14520 | @end itemize\n") |
| 14521 | (properties `((python2-variant . ,(delay python2-fasteners)))) |
| 14522 | (license license:asl2.0))) |
| 14523 | |
| 14524 | (define-public python2-fasteners |
| 14525 | (let ((base (package-with-python2 (strip-python2-variant python-fasteners)))) |
| 14526 | (package |
| 14527 | (inherit base) |
| 14528 | (propagated-inputs |
| 14529 | `(("python2-futures" ,python2-futures) |
| 14530 | ,@(package-propagated-inputs base)))))) |
| 14531 | |
| 14532 | (define-public python-requests-file |
| 14533 | (package |
| 14534 | (name "python-requests-file") |
| 14535 | (version "1.4.3") |
| 14536 | (source |
| 14537 | (origin |
| 14538 | (method url-fetch) |
| 14539 | (uri (pypi-uri "requests-file" version)) |
| 14540 | (sha256 |
| 14541 | (base32 |
| 14542 | "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g")))) |
| 14543 | (build-system python-build-system) |
| 14544 | (propagated-inputs |
| 14545 | `(("python-requests" ,python-requests) |
| 14546 | ("python-six" ,python-six))) |
| 14547 | (home-page |
| 14548 | "https://github.com/dashea/requests-file") |
| 14549 | (synopsis "File transport adapter for Requests") |
| 14550 | (description |
| 14551 | "Requests-File is a transport adapter for use with the Requests Python |
| 14552 | library to allow local file system access via @code{file://} URLs.") |
| 14553 | (license license:asl2.0))) |
| 14554 | |
| 14555 | (define-public python2-requests-file |
| 14556 | (package-with-python2 python-requests-file)) |
| 14557 | |
| 14558 | (define-public python-tldextract |
| 14559 | (package |
| 14560 | (name "python-tldextract") |
| 14561 | (version "2.2.0") |
| 14562 | (source |
| 14563 | (origin |
| 14564 | (method url-fetch) |
| 14565 | (uri (pypi-uri "tldextract" version)) |
| 14566 | (sha256 |
| 14567 | (base32 |
| 14568 | "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99")))) |
| 14569 | (build-system python-build-system) |
| 14570 | (native-inputs |
| 14571 | `(("python-pytest" ,python-pytest) |
| 14572 | ("python-responses" ,python-responses))) |
| 14573 | (propagated-inputs |
| 14574 | `(("python-idna" ,python-idna) |
| 14575 | ("python-requests" ,python-requests) |
| 14576 | ("python-requests-file" ,python-requests-file))) |
| 14577 | (home-page |
| 14578 | "https://github.com/john-kurkowski/tldextract") |
| 14579 | (synopsis |
| 14580 | "Separate the TLD from the registered domain and subdomains of a URL") |
| 14581 | (description |
| 14582 | "TLDExtract accurately separates the TLD from the registered domain and |
| 14583 | subdomains of a URL, using the Public Suffix List. By default, this includes |
| 14584 | the public ICANN TLDs and their exceptions. It can optionally support the |
| 14585 | Public Suffix List's private domains as well.") |
| 14586 | (license license:bsd-3))) |
| 14587 | |
| 14588 | (define-public python2-tldextract |
| 14589 | (package-with-python2 python-tldextract)) |
| 14590 | |
| 14591 | (define-public python-pynamecheap |
| 14592 | (package |
| 14593 | (name "python-pynamecheap") |
| 14594 | (version "0.0.3") |
| 14595 | (source |
| 14596 | (origin |
| 14597 | (method url-fetch) |
| 14598 | (uri (pypi-uri "PyNamecheap" version)) |
| 14599 | (sha256 |
| 14600 | (base32 |
| 14601 | "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l")))) |
| 14602 | (build-system python-build-system) |
| 14603 | (propagated-inputs |
| 14604 | `(("python-requests" ,python-requests))) |
| 14605 | (home-page |
| 14606 | "https://github.com/Bemmu/PyNamecheap") |
| 14607 | (synopsis |
| 14608 | "Namecheap API client in Python") |
| 14609 | (description |
| 14610 | "PyNamecheap is a Namecheap API client in Python.") |
| 14611 | (license license:expat))) |
| 14612 | |
| 14613 | (define-public python2-pynamecheap |
| 14614 | (package-with-python2 python-pynamecheap)) |
| 14615 | |
| 14616 | (define-public python-dns-lexicon |
| 14617 | (package |
| 14618 | (name "python-dns-lexicon") |
| 14619 | (version "2.4.0") |
| 14620 | (source |
| 14621 | (origin |
| 14622 | (method url-fetch) |
| 14623 | (uri (pypi-uri "dns-lexicon" version)) |
| 14624 | (sha256 |
| 14625 | (base32 |
| 14626 | "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m")))) |
| 14627 | (build-system python-build-system) |
| 14628 | (arguments |
| 14629 | `(#:tests? #f)) ;requires internet access |
| 14630 | (propagated-inputs |
| 14631 | `(("python-future" ,python-future) |
| 14632 | ("python-pynamecheap" ,python-pynamecheap) |
| 14633 | ("python-requests" ,python-requests) |
| 14634 | ("python-tldextract" ,python-tldextract) |
| 14635 | ("python-urllib3" ,python-urllib3))) |
| 14636 | (home-page "https://github.com/AnalogJ/lexicon") |
| 14637 | (synopsis |
| 14638 | "Manipulate DNS records on various DNS providers") |
| 14639 | (description |
| 14640 | "Lexicon provides a way to manipulate DNS records on multiple DNS |
| 14641 | providers in a standardized way. It has a CLI but it can also be used as a |
| 14642 | Python library. It was designed to be used in automation, specifically with |
| 14643 | Let's Encrypt.") |
| 14644 | (license license:expat))) |
| 14645 | |
| 14646 | (define-public python2-dns-lexicon |
| 14647 | (package-with-python2 python-dns-lexicon)) |
| 14648 | |
| 14649 | (define-public python-commandlines |
| 14650 | (package |
| 14651 | (name "python-commandlines") |
| 14652 | (version "0.4.1") |
| 14653 | (source |
| 14654 | (origin |
| 14655 | (method url-fetch) |
| 14656 | (uri (pypi-uri "commandlines" version)) |
| 14657 | (sha256 |
| 14658 | (base32 |
| 14659 | "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6")))) |
| 14660 | (build-system python-build-system) |
| 14661 | (home-page "https://github.com/chrissimpkins/commandlines") |
| 14662 | (synopsis "Command line argument to object parsing library") |
| 14663 | (description |
| 14664 | "@code{Commandlines} is a Python library for command line application |
| 14665 | development that supports command line argument parsing, command string |
| 14666 | validation testing and application logic.") |
| 14667 | (license license:expat))) |
| 14668 | |
| 14669 | ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with |
| 14670 | ;; python-numba. They have a very unflexible relationship. |
| 14671 | (define-public python-numba |
| 14672 | (package |
| 14673 | (name "python-numba") |
| 14674 | (version "0.42.0") |
| 14675 | (source |
| 14676 | (origin |
| 14677 | (method url-fetch) |
| 14678 | (uri (pypi-uri "numba" version)) |
| 14679 | (sha256 |
| 14680 | (base32 |
| 14681 | "03rqdfx0512lcri2bcpngx5k3jwfbqnanqj3n19c7d6h6hqxvq9x")))) |
| 14682 | (build-system python-build-system) |
| 14683 | (arguments |
| 14684 | `(#:modules ((guix build utils) |
| 14685 | (guix build python-build-system) |
| 14686 | (ice-9 ftw) |
| 14687 | (srfi srfi-1) |
| 14688 | (srfi srfi-26)) |
| 14689 | #:phases |
| 14690 | (modify-phases %standard-phases |
| 14691 | (add-after 'unpack 'disable-proprietary-features |
| 14692 | (lambda _ |
| 14693 | (setenv "NUMBA_DISABLE_HSA" "1") |
| 14694 | (setenv "NUMBA_DISABLE_CUDA" "1") |
| 14695 | #t)) |
| 14696 | (add-after 'unpack 'remove-failing-tests |
| 14697 | (lambda _ |
| 14698 | ;; FIXME: these tests fail for unknown reasons: |
| 14699 | ;; test_non_writable_pycache, test_non_creatable_pycache, and |
| 14700 | ;; test_frozen (all in numba.tests.test_dispatcher.TestCache). |
| 14701 | (substitute* "numba/tests/test_dispatcher.py" |
| 14702 | (("def test(_non_writable_pycache)" _ m) |
| 14703 | (string-append "def guix_skip" m)) |
| 14704 | (("def test(_non_creatable_pycache)" _ m) |
| 14705 | (string-append "def guix_skip" m)) |
| 14706 | (("def test(_frozen)" _ m) |
| 14707 | (string-append "def guix_skip" m))) |
| 14708 | |
| 14709 | ;; These tests fail because we don't run the tests from the build |
| 14710 | ;; directory: test_setup_py_distutils, test_setup_py_setuptools |
| 14711 | ;; They ar in numba.tests.test_pycc.TestDistutilsSupport. |
| 14712 | (substitute* "numba/tests/test_pycc.py" |
| 14713 | (("def test(_setup_py_distutils|_setup_py_setuptools)" _ m) |
| 14714 | (string-append "def guix_skip" m))) |
| 14715 | #t)) |
| 14716 | (replace 'check |
| 14717 | (lambda _ |
| 14718 | (let ((cwd (getcwd))) |
| 14719 | (setenv "PYTHONPATH" |
| 14720 | (string-append cwd "/build/" |
| 14721 | (find (cut string-prefix? "lib" <>) |
| 14722 | (scandir (string-append cwd "/build"))) |
| 14723 | ":" |
| 14724 | (getenv "PYTHONPATH"))) |
| 14725 | ;; Something is wrong with the PYTHONPATH when running the |
| 14726 | ;; tests from the build directory, as it complains about not being |
| 14727 | ;; able to import certain modules. |
| 14728 | (with-directory-excursion "/tmp" |
| 14729 | (invoke "python3" "-m" "numba.runtests" "-v" "-m"))) |
| 14730 | #t))))) |
| 14731 | (propagated-inputs |
| 14732 | `(("python-llvmlite" ,python-llvmlite) |
| 14733 | ("python-numpy" ,python-numpy) |
| 14734 | ("python-singledispatch" ,python-singledispatch))) |
| 14735 | ;; Needed for tests. |
| 14736 | (inputs |
| 14737 | `(("python-jinja2" ,python-jinja2) |
| 14738 | ("python-pygments" ,python-pygments))) |
| 14739 | (home-page "https://numba.pydata.org") |
| 14740 | (synopsis "Compile Python code using LLVM") |
| 14741 | (description "Numba gives you the power to speed up your applications with |
| 14742 | high performance functions written directly in Python. With a few |
| 14743 | annotations, array-oriented and math-heavy Python code can be just-in-time |
| 14744 | compiled to native machine instructions, similar in performance to C, C++ and |
| 14745 | Fortran, without having to switch languages or Python interpreters. |
| 14746 | |
| 14747 | Numba works by generating optimized machine code using the LLVM compiler |
| 14748 | infrastructure at import time, runtime, or statically (using the included pycc |
| 14749 | tool).") |
| 14750 | (license license:bsd-3))) |
| 14751 | |
| 14752 | (define-public python-anndata |
| 14753 | (package |
| 14754 | (name "python-anndata") |
| 14755 | (version "0.6.18") |
| 14756 | (source |
| 14757 | (origin |
| 14758 | (method url-fetch) |
| 14759 | (uri (pypi-uri "anndata" version)) |
| 14760 | (sha256 |
| 14761 | (base32 |
| 14762 | "03x83yjaccbqszj7x4fwwmpil0ai59yx64d1zmf2691za3j03w73")))) |
| 14763 | (build-system python-build-system) |
| 14764 | (propagated-inputs |
| 14765 | `(("python-h5py" ,python-h5py) |
| 14766 | ("python-natsort" ,python-natsort) |
| 14767 | ("python-pandas" ,python-pandas) |
| 14768 | ("python-scipy" ,python-scipy))) |
| 14769 | (home-page "https://github.com/theislab/anndata") |
| 14770 | (synopsis "Annotated data for data analysis pipelines") |
| 14771 | (description "Anndata is a package for simple (functional) high-level APIs |
| 14772 | for data analysis pipelines. In this context, it provides an efficient, |
| 14773 | scalable way of keeping track of data together with learned annotations and |
| 14774 | reduces the code overhead typically encountered when using a mostly |
| 14775 | object-oriented library such as @code{scikit-learn}.") |
| 14776 | (license license:bsd-3))) |
| 14777 | |
| 14778 | (define-public python-dill |
| 14779 | (package |
| 14780 | (name "python-dill") |
| 14781 | (version "0.2.9") |
| 14782 | (source |
| 14783 | (origin |
| 14784 | (method url-fetch) |
| 14785 | (uri (pypi-uri "dill" version)) |
| 14786 | (sha256 |
| 14787 | (base32 "0vwqyi6hyz2r29zydc78dqymkbc5y7gia16xcdh215cikxph9mpn")))) |
| 14788 | (build-system python-build-system) |
| 14789 | ;; FIXME: The check phase fails with "don't know how to make test from: …". |
| 14790 | (arguments '(#:tests? #f)) |
| 14791 | (home-page "https://pypi.org/project/dill") |
| 14792 | (synopsis "Serialize all of Python") |
| 14793 | (description "Dill extends Python's @code{pickle} module for serializing |
| 14794 | and de-serializing Python objects to the majority of the built-in Python |
| 14795 | types. Dill provides the user the same interface as the @code{pickle} module, |
| 14796 | and also includes some additional features. In addition to pickling Python |
| 14797 | objects, @code{dill} provides the ability to save the state of an interpreter |
| 14798 | session in a single command. Hence, it would be feasible to save a |
| 14799 | interpreter session, close the interpreter, ship the pickled file to another |
| 14800 | computer, open a new interpreter, unpickle the session and thus continue from |
| 14801 | the saved state of the original interpreter session.") |
| 14802 | (license license:bsd-3))) |
| 14803 | |
| 14804 | (define-public python-multiprocess |
| 14805 | (package |
| 14806 | (name "python-multiprocess") |
| 14807 | (version "0.70.6.1") |
| 14808 | (source |
| 14809 | (origin |
| 14810 | (method url-fetch) |
| 14811 | (uri (pypi-uri "multiprocess" version)) |
| 14812 | (sha256 |
| 14813 | (base32 |
| 14814 | "1ip5caz67b3q0553mr8gm8xwsb8x500jn8ml0gihgyfy52m2ypcq")))) |
| 14815 | (build-system python-build-system) |
| 14816 | (propagated-inputs |
| 14817 | `(("python-dill" ,python-dill))) |
| 14818 | (home-page "https://pypi.org/project/multiprocess") |
| 14819 | (synopsis "Multiprocessing and multithreading in Python") |
| 14820 | (description |
| 14821 | "This package is a fork of the multiprocessing Python package, a package |
| 14822 | which supports the spawning of processes using the API of the standard |
| 14823 | library's @code{threading} module.") |
| 14824 | (license license:bsd-3))) |
| 14825 | |
| 14826 | (define-public python-toolz |
| 14827 | (package |
| 14828 | (name "python-toolz") |
| 14829 | (version "0.9.0") |
| 14830 | (source |
| 14831 | (origin |
| 14832 | (method url-fetch) |
| 14833 | (uri (pypi-uri "toolz" version)) |
| 14834 | (sha256 |
| 14835 | (base32 |
| 14836 | "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj")))) |
| 14837 | (build-system python-build-system) |
| 14838 | ;; FIXME: tests cannot be computed: "Can't perform this operation for |
| 14839 | ;; unregistered loader type" |
| 14840 | (arguments '(#:tests? #f)) |
| 14841 | (home-page "https://github.com/pytoolz/toolz/") |
| 14842 | (synopsis "List processing tools and functional utilities") |
| 14843 | (description |
| 14844 | "This package provides a set of utility functions for iterators, |
| 14845 | functions, and dictionaries.") |
| 14846 | (license license:bsd-3))) |
| 14847 | |
| 14848 | (define-public python2-toolz |
| 14849 | (package-with-python2 python-toolz)) |
| 14850 | |
| 14851 | (define-public python-cytoolz |
| 14852 | (package |
| 14853 | (name "python-cytoolz") |
| 14854 | (version "0.9.0.1") |
| 14855 | (source |
| 14856 | (origin |
| 14857 | (method url-fetch) |
| 14858 | (uri (pypi-uri "cytoolz" version)) |
| 14859 | (sha256 |
| 14860 | (base32 |
| 14861 | "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44")))) |
| 14862 | (build-system python-build-system) |
| 14863 | ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute |
| 14864 | ;; 'exceptions'" |
| 14865 | (arguments '(#:tests? #f)) |
| 14866 | (propagated-inputs |
| 14867 | `(("python-toolz" ,python-toolz))) |
| 14868 | (native-inputs |
| 14869 | `(("python-cython" ,python-cython))) |
| 14870 | (home-page "https://github.com/pytoolz/cytoolz") |
| 14871 | (synopsis "High performance functional utilities") |
| 14872 | (description |
| 14873 | "The cytoolz package implements the same API as provided by toolz. The |
| 14874 | main differences are that @code{cytoolz} is faster and cytoolz offers a C API |
| 14875 | that is accessible to other projects developed in Cython.") |
| 14876 | (license license:bsd-3))) |
| 14877 | |
| 14878 | (define-public python-sortedcontainers |
| 14879 | (package |
| 14880 | (name "python-sortedcontainers") |
| 14881 | (version "2.0.4") |
| 14882 | (source |
| 14883 | (origin |
| 14884 | (method url-fetch) |
| 14885 | (uri (pypi-uri "sortedcontainers" version)) |
| 14886 | (sha256 |
| 14887 | (base32 |
| 14888 | "10hrk2k0hbf9x78vd3f0lj277m1yzfhzzxr0hja718liwb398wk0")))) |
| 14889 | (build-system python-build-system) |
| 14890 | (native-inputs |
| 14891 | `(("python-tox" ,python-tox))) |
| 14892 | (home-page "http://www.grantjenks.com/docs/sortedcontainers/") |
| 14893 | (synopsis "Sorted List, Sorted Dict, Sorted Set") |
| 14894 | (description |
| 14895 | "This package provides a sorted collections library, written in |
| 14896 | pure-Python.") |
| 14897 | (license license:asl2.0))) |
| 14898 | |
| 14899 | (define-public python-cloudpickle |
| 14900 | (package |
| 14901 | (name "python-cloudpickle") |
| 14902 | (version "0.6.1") |
| 14903 | (source |
| 14904 | (origin |
| 14905 | (method url-fetch) |
| 14906 | (uri (pypi-uri "cloudpickle" version)) |
| 14907 | (sha256 |
| 14908 | (base32 |
| 14909 | "1wdw89mlm7fqa3fm3ymskx05jrys66n8m1z1a8s0mss0799ahsgi")))) |
| 14910 | (build-system python-build-system) |
| 14911 | ;; FIXME: there are 5 errors in 122 tests: |
| 14912 | ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.CloudPickleTest) |
| 14913 | ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.CloudPickleTest) |
| 14914 | ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.Protocol2CloudPickleTest) |
| 14915 | ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.Protocol2CloudPickleTest) |
| 14916 | ;; ERROR: test_temp_file (tests.cloudpickle_file_test.CloudPickleFileTests) |
| 14917 | ;; TypeError: cannot serialize '_io.BufferedRandom' object |
| 14918 | (arguments '(#:tests? #f)) |
| 14919 | (native-inputs |
| 14920 | `(("python-pytest" ,python-pytest) |
| 14921 | ("python-mock" ,python-mock) |
| 14922 | ("python-tornado" ,python-tornado))) |
| 14923 | (home-page "https://github.com/cloudpipe/cloudpickle") |
| 14924 | (synopsis "Extended pickling support for Python objects") |
| 14925 | (description |
| 14926 | "Cloudpickle makes it possible to serialize Python constructs not |
| 14927 | supported by the default pickle module from the Python standard library. It |
| 14928 | is especially useful for cluster computing where Python expressions are |
| 14929 | shipped over the network to execute on remote hosts, possibly close to the |
| 14930 | data.") |
| 14931 | (license license:bsd-3))) |
| 14932 | |
| 14933 | (define-public python2-cloudpickle |
| 14934 | (package-with-python2 python-cloudpickle)) |
| 14935 | |
| 14936 | (define-public python-locket |
| 14937 | (package |
| 14938 | (name "python-locket") |
| 14939 | (version "0.2.0") |
| 14940 | (source |
| 14941 | (origin |
| 14942 | (method url-fetch) |
| 14943 | (uri (pypi-uri "locket" version)) |
| 14944 | (sha256 |
| 14945 | (base32 |
| 14946 | "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz")))) |
| 14947 | (build-system python-build-system) |
| 14948 | (home-page "https://github.com/mwilliamson/locket.py") |
| 14949 | (synopsis "File-based locks for Python") |
| 14950 | (description |
| 14951 | "Locket implements a lock that can be used by multiple processes provided |
| 14952 | they use the same path.") |
| 14953 | (license license:bsd-2))) |
| 14954 | |
| 14955 | (define-public python2-locket |
| 14956 | (package-with-python2 python-locket)) |
| 14957 | |
| 14958 | (define-public python-blosc |
| 14959 | (package |
| 14960 | (name "python-blosc") |
| 14961 | (version "1.5.1") |
| 14962 | (source |
| 14963 | (origin |
| 14964 | (method url-fetch) |
| 14965 | (uri (pypi-uri "blosc" version)) |
| 14966 | (sha256 |
| 14967 | (base32 |
| 14968 | "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw")))) |
| 14969 | (build-system python-build-system) |
| 14970 | ;; FIXME: all tests pass, but then this error is printed: |
| 14971 | ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test |
| 14972 | (arguments '(#:tests? #f)) |
| 14973 | (propagated-inputs |
| 14974 | `(("python-numpy" ,python-numpy))) |
| 14975 | (home-page "https://github.com/blosc/python-blosc") |
| 14976 | (synopsis "Python wrapper for the Blosc data compressor library") |
| 14977 | (description "Blosc is a high performance compressor optimized for binary |
| 14978 | data. It has been designed to transmit data to the processor cache faster |
| 14979 | than the traditional, non-compressed, direct memory fetch approach via a |
| 14980 | @code{memcpy()} system call. |
| 14981 | |
| 14982 | Blosc works well for compressing numerical arrays that contains data with |
| 14983 | relatively low entropy, like sparse data, time series, grids with |
| 14984 | regular-spaced values, etc. |
| 14985 | |
| 14986 | This Python package wraps the Blosc library.") |
| 14987 | (license license:bsd-3))) |
| 14988 | |
| 14989 | (define-public python2-blosc |
| 14990 | (package-with-python2 python-blosc)) |
| 14991 | |
| 14992 | (define-public python-partd |
| 14993 | (package |
| 14994 | (name "python-partd") |
| 14995 | (version "0.3.9") |
| 14996 | (source |
| 14997 | (origin |
| 14998 | (method url-fetch) |
| 14999 | (uri (pypi-uri "partd" version)) |
| 15000 | (sha256 |
| 15001 | (base32 |
| 15002 | "0sz6rwlnl4fqq220pyz863cnv0gjdxl4m7lscl71ishl5z0xkmhz")))) |
| 15003 | (build-system python-build-system) |
| 15004 | (propagated-inputs |
| 15005 | `(("python-blosc" ,python-blosc) |
| 15006 | ("python-locket" ,python-locket) |
| 15007 | ("python-numpy" ,python-numpy) |
| 15008 | ("python-pandas" ,python-pandas) |
| 15009 | ("python-pyzmq" ,python-pyzmq) |
| 15010 | ("python-toolz" ,python-toolz))) |
| 15011 | (home-page "https://github.com/dask/partd/") |
| 15012 | (synopsis "Appendable key-value storage") |
| 15013 | (description "Partd stores key-value pairs. Values are raw bytes. We |
| 15014 | append on old values. Partd excels at shuffling operations.") |
| 15015 | (license license:bsd-3))) |
| 15016 | |
| 15017 | (define-public python2-partd |
| 15018 | (package-with-python2 python-partd)) |
| 15019 | |
| 15020 | (define-public python-dask |
| 15021 | (package |
| 15022 | (name "python-dask") |
| 15023 | (version "1.2.0") |
| 15024 | (source |
| 15025 | (origin |
| 15026 | (method url-fetch) |
| 15027 | (uri (pypi-uri "dask" version)) |
| 15028 | (sha256 |
| 15029 | (base32 |
| 15030 | "1y0dqcp72ixwblgway0jpvfirlxfcmwrjiivdq96firj1hw127sd")))) |
| 15031 | (build-system python-build-system) |
| 15032 | ;; A single test out of 5000+ fails. This test is marked as xfail when |
| 15033 | ;; pytest-xdist is used. |
| 15034 | (arguments |
| 15035 | `(#:phases |
| 15036 | (modify-phases %standard-phases |
| 15037 | (add-after 'unpack 'disable-broken-test |
| 15038 | (lambda _ |
| 15039 | (substitute* "dask/tests/test_threaded.py" |
| 15040 | (("def test_interrupt\\(\\)" m) |
| 15041 | (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" |
| 15042 | m))) |
| 15043 | (when (which "python2") |
| 15044 | ;; This test fails with recent Pandas: |
| 15045 | ;; <https://github.com/dask/dask/issues/3794>. |
| 15046 | (substitute* "dask/dataframe/tests/test_dataframe.py" |
| 15047 | (("def test_info\\(\\)" m) |
| 15048 | (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" |
| 15049 | m)))) |
| 15050 | #t)) |
| 15051 | (replace 'check |
| 15052 | (lambda _ (invoke "pytest" "-vv")))))) |
| 15053 | (propagated-inputs |
| 15054 | `(("python-cloudpickle" ,python-cloudpickle) |
| 15055 | ("python-numpy" ,python-numpy) |
| 15056 | ("python-pandas" ,python-pandas) |
| 15057 | ("python-partd" ,python-partd) |
| 15058 | ("python-toolz" ,python-toolz) |
| 15059 | ("python-pyyaml" ,python-pyyaml))) |
| 15060 | (native-inputs |
| 15061 | `(("python-pytest" ,python-pytest) |
| 15062 | ("python-pytest-runner" ,python-pytest-runner))) |
| 15063 | (home-page "https://github.com/dask/dask/") |
| 15064 | (synopsis "Parallel computing with task scheduling") |
| 15065 | (description |
| 15066 | "Dask is a flexible parallel computing library for analytics. It |
| 15067 | consists of two components: dynamic task scheduling optimized for computation, |
| 15068 | and large data collections like parallel arrays, dataframes, and lists that |
| 15069 | extend common interfaces like NumPy, Pandas, or Python iterators to |
| 15070 | larger-than-memory or distributed environments. These parallel collections |
| 15071 | run on top of the dynamic task schedulers. ") |
| 15072 | (license license:bsd-3))) |
| 15073 | |
| 15074 | (define-public python2-dask |
| 15075 | (package-with-python2 python-dask)) |
| 15076 | |
| 15077 | (define-public python-ilinkedlist |
| 15078 | (package |
| 15079 | (name "python-ilinkedlist") |
| 15080 | (version "0.4.0") |
| 15081 | (source |
| 15082 | (origin |
| 15083 | (method url-fetch) |
| 15084 | (uri (pypi-uri "ilinkedlist" version)) |
| 15085 | (sha256 |
| 15086 | (base32 |
| 15087 | "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l")))) |
| 15088 | (build-system python-build-system) |
| 15089 | (native-inputs `(("python-pytest" ,python-pytest))) |
| 15090 | (inputs `(("python" ,python))) |
| 15091 | (home-page "https://github.com/luther9/ilinkedlist-py") |
| 15092 | (synopsis "Immutable linked list library") |
| 15093 | (description |
| 15094 | "This is a implementation of immutable linked lists for Python. It |
| 15095 | contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes. |
| 15096 | Since a linked list is treated as immutable, it is hashable, and its length |
| 15097 | can be retrieved in constant time. Some of the terminology is inspired by |
| 15098 | LISP. It is possible to create an improper list by creating a @code{Pair} |
| 15099 | with a non-list @code{cdr}.") |
| 15100 | (license license:gpl3+))) |
| 15101 | |
| 15102 | (define-public python-readlike |
| 15103 | (package |
| 15104 | (name "python-readlike") |
| 15105 | (version "0.1.3") |
| 15106 | (source |
| 15107 | (origin |
| 15108 | (method url-fetch) |
| 15109 | (uri (pypi-uri "readlike" version)) |
| 15110 | (sha256 |
| 15111 | (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4")))) |
| 15112 | (build-system python-build-system) |
| 15113 | (home-page "https://github.com/jangler/readlike") |
| 15114 | (synopsis "GNU Readline-like line editing module") |
| 15115 | (description |
| 15116 | "This Python module provides line editing functions similar to the default |
| 15117 | Emacs-style ones of GNU Readline. Unlike the Python standard library's |
| 15118 | @code{readline} package, this one allows access to those capabilties in settings |
| 15119 | outside of a standard command-line interface. It is especially well-suited to |
| 15120 | interfacing with Urwid, due to a shared syntax for describing key inputs. |
| 15121 | |
| 15122 | Currently, all stateless Readline commands are implemented. Yanking and history |
| 15123 | are not supported.") |
| 15124 | (license license:expat))) |
| 15125 | |
| 15126 | (define-public python2-readlike |
| 15127 | (package-with-python2 python-readlike)) |
| 15128 | |
| 15129 | (define-public python-reparser |
| 15130 | (package |
| 15131 | (name "python-reparser") |
| 15132 | (version "1.4.3") |
| 15133 | (source |
| 15134 | (origin |
| 15135 | (method url-fetch) |
| 15136 | (uri (pypi-uri "ReParser" version)) |
| 15137 | (sha256 |
| 15138 | (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776")))) |
| 15139 | (build-system python-build-system) |
| 15140 | (home-page "https://github.com/xmikos/reparser") |
| 15141 | (synopsis "Simple lexer/parser for inline markup based on regular expressions") |
| 15142 | (description |
| 15143 | "This Python library provides a simple lexer/parser for inline markup based |
| 15144 | on regular expressions.") |
| 15145 | (license license:expat))) |
| 15146 | |
| 15147 | (define-public python2-reparser |
| 15148 | (let ((reparser (package-with-python2 |
| 15149 | (strip-python2-variant python-reparser)))) |
| 15150 | (package (inherit reparser) |
| 15151 | (propagated-inputs |
| 15152 | `(("python2-enum34" ,python2-enum34) |
| 15153 | ,@(package-propagated-inputs reparser)))))) |
| 15154 | |
| 15155 | (define-public python-precis-i18n |
| 15156 | (package |
| 15157 | (name "python-precis-i18n") |
| 15158 | (version "1.0.0") |
| 15159 | (source |
| 15160 | (origin |
| 15161 | (method url-fetch) |
| 15162 | (uri (pypi-uri "precis_i18n" version)) |
| 15163 | (sha256 |
| 15164 | (base32 |
| 15165 | "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2")))) |
| 15166 | (build-system python-build-system) |
| 15167 | (home-page "https://github.com/byllyfish/precis_i18n") |
| 15168 | (synopsis "Implementation of the PRECIS framework") |
| 15169 | (description |
| 15170 | "This module implements the PRECIS Framework as described in RFC 8264, |
| 15171 | RFC 8265 and RFC 8266.") |
| 15172 | (license license:expat))) |
| 15173 | |
| 15174 | (define-public python-absl-py |
| 15175 | (package |
| 15176 | (name "python-absl-py") |
| 15177 | (version "0.6.1") |
| 15178 | (source |
| 15179 | (origin |
| 15180 | (method url-fetch) |
| 15181 | (uri (pypi-uri "absl-py" version)) |
| 15182 | (sha256 |
| 15183 | (base32 |
| 15184 | "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7")))) |
| 15185 | (build-system python-build-system) |
| 15186 | (propagated-inputs |
| 15187 | `(("python-six" ,python-six))) |
| 15188 | (home-page "https://github.com/abseil/abseil-py") |
| 15189 | (synopsis "Abseil Python common libraries") |
| 15190 | (description |
| 15191 | "This package provides the Abseil Python Common Libraries, a collection |
| 15192 | of Python libraries for building Python applications.") |
| 15193 | (license license:asl2.0))) |
| 15194 | |
| 15195 | (define-public python-astor |
| 15196 | (package |
| 15197 | (name "python-astor") |
| 15198 | (version "0.7.1") |
| 15199 | (source |
| 15200 | (origin |
| 15201 | (method url-fetch) |
| 15202 | (uri (pypi-uri "astor" version)) |
| 15203 | (sha256 |
| 15204 | (base32 |
| 15205 | "13gv6f2xz9i564byp21gcpc0l3w4cs23k1wbcam8kky2ls3hvhwm")))) |
| 15206 | (build-system python-build-system) |
| 15207 | ;; FIXME: There are two errors and two test failures. |
| 15208 | (arguments `(#:tests? #f)) |
| 15209 | (home-page "https://github.com/berkerpeksag/astor") |
| 15210 | (synopsis "Read and write Python ASTs") |
| 15211 | (description "Astor is designed to allow easy manipulation of Python |
| 15212 | source via the Abstract Syntax Tree.") |
| 15213 | (license license:bsd-3))) |
| 15214 | |
| 15215 | (define-public python2-astor |
| 15216 | (package-with-python2 python-astor)) |
| 15217 | |
| 15218 | (define-public python-grpcio |
| 15219 | (package |
| 15220 | (name "python-grpcio") |
| 15221 | (version "1.17.1") |
| 15222 | (source |
| 15223 | (origin |
| 15224 | (method url-fetch) |
| 15225 | (uri (pypi-uri "grpcio" version)) |
| 15226 | (sha256 |
| 15227 | (base32 |
| 15228 | "0qb9y6j83nxa6d4kc60i8yfgdm7a8ms7b54kncjzf5y7nsxp8rzx")))) |
| 15229 | (build-system python-build-system) |
| 15230 | (propagated-inputs |
| 15231 | `(("python-six" ,python-six))) |
| 15232 | (home-page "https://grpc.io") |
| 15233 | (synopsis "HTTP/2-based RPC framework") |
| 15234 | (description "This package provides a Python library for communicating |
| 15235 | with the HTTP/2-based RPC framework gRPC.") |
| 15236 | (license license:asl2.0))) |
| 15237 | |
| 15238 | (define-public python-astunparse |
| 15239 | (package |
| 15240 | (name "python-astunparse") |
| 15241 | (version "1.6.1") |
| 15242 | (source |
| 15243 | (origin |
| 15244 | (method url-fetch) |
| 15245 | (uri (pypi-uri "astunparse" version)) |
| 15246 | (sha256 |
| 15247 | (base32 |
| 15248 | "1jhidwyrqn17avqh9xnnm3wd7q7aahaq009cba67g86y6gxicyyj")))) |
| 15249 | (build-system python-build-system) |
| 15250 | (arguments '(#:tests? #f)) ; there are none |
| 15251 | (propagated-inputs |
| 15252 | `(("python-six" ,python-six) |
| 15253 | ("python-wheel" ,python-wheel))) |
| 15254 | (home-page "https://github.com/simonpercivall/astunparse") |
| 15255 | (synopsis "AST unparser for Python") |
| 15256 | (description "This package provides an AST unparser for Python. It is a |
| 15257 | factored out version of @code{unparse} found in the Python source |
| 15258 | distribution.") |
| 15259 | (license license:bsd-3))) |
| 15260 | |
| 15261 | (define-public python-gast |
| 15262 | (package |
| 15263 | (name "python-gast") |
| 15264 | (version "0.2.2") |
| 15265 | (source |
| 15266 | (origin |
| 15267 | (method url-fetch) |
| 15268 | (uri (pypi-uri "gast" version)) |
| 15269 | (sha256 |
| 15270 | (base32 "1w5dzdb3gpcfmd2s0b93d8gff40a1s41rv31458z14inb3s9v4zy")))) |
| 15271 | (build-system python-build-system) |
| 15272 | (propagated-inputs |
| 15273 | `(("python-astunparse" ,python-astunparse))) |
| 15274 | (home-page "https://pypi.org/project/gast/") |
| 15275 | (synopsis "Generic Python AST that abstracts the underlying Python version") |
| 15276 | (description |
| 15277 | "GAST provides a compatibility layer between the AST of various Python |
| 15278 | versions, as produced by @code{ast.parse} from the standard @code{ast} |
| 15279 | module.") |
| 15280 | (license license:bsd-3))) |
| 15281 | |
| 15282 | (define-public python-wikidata |
| 15283 | (package |
| 15284 | (name "python-wikidata") |
| 15285 | (version "0.6.1") |
| 15286 | (source |
| 15287 | (origin |
| 15288 | (method url-fetch) |
| 15289 | (uri (pypi-uri "Wikidata" version)) |
| 15290 | (sha256 |
| 15291 | (base32 |
| 15292 | "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9")))) |
| 15293 | (build-system python-build-system) |
| 15294 | (propagated-inputs |
| 15295 | `(("python-babel" ,python-babel))) |
| 15296 | (home-page "https://github.com/dahlia/wikidata") |
| 15297 | (synopsis "Wikidata client library") |
| 15298 | (description |
| 15299 | "This package provides a Python interface to |
| 15300 | @url{https://www.wikidata.org/, Wikidata}.") |
| 15301 | (properties '((upstream-name . "Wikidata"))) |
| 15302 | (license license:gpl3+))) |
| 15303 | |
| 15304 | (define-public python-doctest-ignore-unicode |
| 15305 | (package |
| 15306 | (name "python-doctest-ignore-unicode") |
| 15307 | (version "0.1.2") |
| 15308 | (source |
| 15309 | (origin |
| 15310 | (method url-fetch) |
| 15311 | (uri (pypi-uri "doctest-ignore-unicode" version)) |
| 15312 | (sha256 |
| 15313 | (base32 |
| 15314 | "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w")))) |
| 15315 | (build-system python-build-system) |
| 15316 | (native-inputs |
| 15317 | `(("python-nose" ,python-nose))) |
| 15318 | (home-page "https://github.com/gnublade/doctest-ignore-unicode") |
| 15319 | (synopsis "Ignore Unicode literal prefixes in doctests") |
| 15320 | (description |
| 15321 | "This package adds support for a flag to ignore Unicode literal prefixes |
| 15322 | in doctests.") |
| 15323 | (license license:asl2.0))) |
| 15324 | |
| 15325 | (define-public python-attr |
| 15326 | (package |
| 15327 | (name "python-attr") |
| 15328 | (version "0.3.1") |
| 15329 | (source |
| 15330 | (origin |
| 15331 | (method url-fetch) |
| 15332 | (uri (pypi-uri "attr" version)) |
| 15333 | (sha256 |
| 15334 | (base32 |
| 15335 | "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch")))) |
| 15336 | (build-system python-build-system) |
| 15337 | (home-page "https://github.com/denis-ryzhkov/attr") |
| 15338 | (synopsis "Decorator for attributes of target function or class") |
| 15339 | (description "Simple decorator to set attributes of target function or |
| 15340 | class in a @acronym{DRY, Don't Repeat Yourself} way.") |
| 15341 | (license license:expat))) |
| 15342 | |
| 15343 | (define-public python-construct |
| 15344 | (package |
| 15345 | (name "python-construct") |
| 15346 | (version "2.9.45") |
| 15347 | (source |
| 15348 | (origin |
| 15349 | (method url-fetch) |
| 15350 | (uri (pypi-uri "construct" version)) |
| 15351 | (sha256 |
| 15352 | (base32 |
| 15353 | "130iy05awzigm2xah2yvlmb08mac5bi4gzr5m3g7k1krs3ps0w92")))) |
| 15354 | (build-system python-build-system) |
| 15355 | (arguments |
| 15356 | `(#:tests? #f)) ; No tests exist. |
| 15357 | (propagated-inputs |
| 15358 | `(("python-extras" ,python-extras) |
| 15359 | ("python-arrow" ,python-arrow) |
| 15360 | ("python-numpy" ,python-numpy) |
| 15361 | ("python-ruamel.yaml" ,python-ruamel.yaml))) |
| 15362 | (home-page "http://construct.readthedocs.io") |
| 15363 | (synopsis "Declarative and symmetrical parser and builder for binary data") |
| 15364 | (description |
| 15365 | "This package provides both simple, atomic constructs (such as |
| 15366 | integers of various sizes), as well as composite ones which allow you |
| 15367 | form hierarchical and sequential structures of increasing complexity. |
| 15368 | It features bit and byte granularity, easy debugging and testing, an |
| 15369 | easy-to-extend subclass system, and lots of primitive constructs to |
| 15370 | make your work easier.") |
| 15371 | (license license:expat))) |
| 15372 | |
| 15373 | (define-public python-humanize |
| 15374 | (package |
| 15375 | (name "python-humanize") |
| 15376 | (version "0.5.1") |
| 15377 | (source |
| 15378 | (origin |
| 15379 | (method url-fetch) |
| 15380 | (uri (pypi-uri "humanize" version)) |
| 15381 | (sha256 |
| 15382 | (base32 |
| 15383 | "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4")))) |
| 15384 | (arguments |
| 15385 | '(#:tests? #f)) ; tests not in pypi archive |
| 15386 | (build-system python-build-system) |
| 15387 | (home-page "https://github.com/jmoiron/humanize") |
| 15388 | (synopsis "Print numerical information in a human-readable form") |
| 15389 | (description "This package provides a Python module that displays numbers |
| 15390 | and dates in \"human readable\" forms. For example, it would display |
| 15391 | \"12345591313\" as \"12.3 billion\".") |
| 15392 | (license license:expat))) |
| 15393 | |
| 15394 | (define-public python-txaio |
| 15395 | (package |
| 15396 | (name "python-txaio") |
| 15397 | (version "18.8.1") |
| 15398 | (source |
| 15399 | (origin |
| 15400 | (method url-fetch) |
| 15401 | (uri (pypi-uri "txaio" version)) |
| 15402 | (sha256 |
| 15403 | (base32 |
| 15404 | "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7")))) |
| 15405 | (build-system python-build-system) |
| 15406 | (propagated-inputs |
| 15407 | `(("python-twisted" ,python-twisted) |
| 15408 | ("python-six" ,python-six))) |
| 15409 | (home-page "https://github.com/crossbario/txaio") |
| 15410 | (synopsis "Compatibility layer between Python asyncio and Twisted") |
| 15411 | (description "Txaio provides a compatibility layer between the Python |
| 15412 | @code{asyncio} module and @code{Twisted}.") |
| 15413 | (license license:expat))) |
| 15414 | |
| 15415 | (define-public python-toolshed |
| 15416 | (package |
| 15417 | (name "python-toolshed") |
| 15418 | (version "0.4.6") |
| 15419 | (source |
| 15420 | (origin |
| 15421 | (method url-fetch) |
| 15422 | (uri (pypi-uri "toolshed" version)) |
| 15423 | (sha256 |
| 15424 | (base32 |
| 15425 | "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3")))) |
| 15426 | (build-system python-build-system) |
| 15427 | (native-inputs |
| 15428 | `(("python-nose" ,python-nose))) |
| 15429 | (home-page "https://github.com/brentp/toolshed/") |
| 15430 | (synopsis "Collection of modules and functions for working with data") |
| 15431 | (description "This is a collection of well-tested, simple modules and |
| 15432 | functions that aim to reduce boilerplate when working with data.") |
| 15433 | (license license:bsd-2))) |
| 15434 | |
| 15435 | (define-public python-annoy |
| 15436 | (package |
| 15437 | (name "python-annoy") |
| 15438 | (version "1.15.1") |
| 15439 | (source |
| 15440 | (origin |
| 15441 | (method url-fetch) |
| 15442 | (uri (pypi-uri "annoy" version)) |
| 15443 | (sha256 |
| 15444 | (base32 |
| 15445 | "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp")))) |
| 15446 | (build-system python-build-system) |
| 15447 | (native-inputs |
| 15448 | `(("python-nose" ,python-nose))) |
| 15449 | (home-page "https://github.com/spotify/annoy/") |
| 15450 | (synopsis "Approximate nearest neighbors library") |
| 15451 | (description |
| 15452 | "Annoy is a C++ library with Python bindings to search for points in |
| 15453 | space that are close to a given query point. It also creates large read-only |
| 15454 | file-based data structures that are @code{mmap}ped into memory so that many |
| 15455 | processes may share the same data.") |
| 15456 | (license license:asl2.0))) |
| 15457 | |
| 15458 | (define-public python-pylzma |
| 15459 | (package |
| 15460 | (name "python-pylzma") |
| 15461 | (version "0.5.0") |
| 15462 | (source |
| 15463 | (origin |
| 15464 | (method url-fetch) |
| 15465 | (uri (pypi-uri "pylzma" version)) |
| 15466 | (sha256 |
| 15467 | (base32 |
| 15468 | "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q")))) |
| 15469 | (build-system python-build-system) |
| 15470 | (home-page "http://www.joachim-bauch.de/projects/pylzma/") |
| 15471 | (synopsis "Python bindings for the LZMA library by Igor Pavlov.") |
| 15472 | (description "This package provides Python bindings for the LZMA library |
| 15473 | by Igor Pavlov.") |
| 15474 | (license license:lgpl2.1+))) |
| 15475 | |
| 15476 | (define-public python2-pylzma |
| 15477 | (package-with-python2 python-pylzma)) |