You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

857 lines
31 KiB

gnu: Move testing packages from python.scm to check.scm. * gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api, python-mock, python2-mock, python-mock-2, python-nose, python2-nose, python-nose2, python2-nose2, python-unittest2, python2-unittest2, python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0, python-pytest-cov, python2-pytest-cov, python-pytest-runner, python2-pytest-runner, python-pytest-mock, python2-pytest-mock, python-pytest-xdist, python2-pytest-xdist, python-scripttest, python2-scripttest, python-testtools, python2-testtools, python-testscenarios, python2-testscenarios, python-testresources, python2-testresources, python-subunit, python2-subunit, python-fixtures, python2-fixtures, python-testrepository, python2-testrepository, python-coverage, python2-coverage, python-cov-core, python2-cov-core, python-testpath, python2-testpath, python-testlib, python2-testlib, python-pytest-cache, python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess, python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis, python2-hypothesis, python-lit, python2-lit, python-pytest-pep8, python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes, python2-coverage-test-runner, python-pylint, python2-pylint, python-paramunittest, python2-python-paramunittest, python-pytest-warnings, python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog, python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover, python2-nosexcover, python-discover, python2-discover, behave, python-rednose, python2-rednose, python-nose-randomly, python2-nose-randomly, python-nose-timer, python2-nose-timer): Move from here... * gnu/packages/check.scm: ...to here. * gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/backup.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/dav.scm, gnu/packages/django.scm, gnu/packages/freedesktop.scm, gnu/packages/haskell.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/ldc.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/rdf.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm: Adjust accordingly.
4 years ago
gnu: Move web packages from python to python-web. This is in part to address <https://bugs.gnu.org/27284>. * gnu/packages/python.scm (python-httplib2, python2-httplib2) (python-sockjs-tornado, python2-sockjs-tornado) (python-flask-babel, python2-flask-babel) (python-html5lib, python2-html5lib) (python-html5lib-0.9, python2-html5lib-0.9) (python-html5-parser, python2-html5-parser) (python-webencodings, python2-webencodings) (python-openid, python2-openid, python-cssutils, python2-cssutils) (python-cssselect, python2-cssutils) (python-openid-cla, python2-openid-cla) (python-openid-teams, python2-openid-teams) (python-tornado, python2-tornado) (python-tornado-http-auth, python-terminado, python2-terminado) (python-webob, python2-webob, python-zope-event, python2-zope-event) (python-zope-interface, python2-zope-interface) (python-zope-exceptions, python2-zope-exceptions) (python-zope-testing, python2-zope-testing) (python-zope-testrunner, python2-zope-testrunner) (python-zope-i18nmessageid, python2-zope-i18nmessageid) (python-zope-schema, python2-zope-schema) (python-zope-configuration, python2-zope-configuration) (python-zope-proxy, python2-zope-proxy) (python-zope-location, python2-zope-location) (python-zope-security, python2-zope-security) (python-zope-component, python2-zope-component) (python-ndg-httpsclient, python2-ndg-httpsclient) (python-websocket-client, python2-websocket-client) (python-requests-toolbelt, python2-requests-toolbelt) (python-rauth, python2-rauth, python-urllib3, python2-urllib3) (awscli, python-wsgiproxy2, python2-wsgiproxy2) (python-pastedeploy, python2-pastedeploy) (python-webtest, python2-webtest, python-flask, python2-flask) (python-flast-wtf, python2-flask-wtf) (python-flask-multistatic, python2-flask-multistatic) (python-cookies, python2-cookies) (python-responses, python2-responses) (python-geventhttpclient, python2-geventhttpclient) (python-requests-oauthlib, python2-requests-oauthlib) (python-url, python2-url, python-cachecontrol, python2-cachecontrol) (python-betamax, python2-betamax) (python-betamax-matchers, python2-betamax-matchers) (python-s3transfer, python2-s3transfer) (python-flask-restful, python-flask-basicauth) (python-flask-sqlalchemy, python-flask-restplus) (python-flask-restful-swagger, python-htmlmin, python2-htmlmin) (python-flask-htmlmin, python2-flask-htmlmin) (python-flask-login, python2-flask-login) (python-oauth2client, python-flask-oidc) (python-webassets, python-cssmin, python2-cssmin) (python-elasticsearch, python2-elasticsearch) (python-flask-script, python2-flask-script) (python-flask-migrate, python2-flask-migrate) (python-genshi, python2-genshi) (python-flask-principal, python2-flask-principal) (python-flask-httpauth, python2-flask-httpauth) (python-uritemplate, python2-uritemplate): Move to... * gnu/packages/python-web.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/admin.scm, gnu/packages/backup.scm, gnu/packages/dav.scm, gnu/packages/django.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/logging.scm, gnu/packages/mail.scm, gnu/packages/music.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/rdf.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm: Adjust accordingly.
4 years ago
gnu: Separate Python core packages from the rest. * gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references.
3 years ago
2 years ago
gnu: Remove python-setuptools and python2-setuptools from inputs (part 2) This patch contains the changes where removing setuptools from the inputs affected some code-lines beside. * gnu/packages/admin.scm (ansible): Remove all [inputs], [native-inputs] and [propagated-inputs] where python-setuptools or python2-setuptools are the sole entries. Remove python-setuptools and python2-setuptools listed on a line by its own from [inputs], [native-inputs] and [propagated-inputs]. * gnu/packages/backup.scm (duplicity): Likewise. * gnu/packages/bioinformatics.scm (bamm, python2-pybedtools, python2-bx-python, python2-dendropy, python-pysam, python2-pysam, clipper, crossmap, cutadapt, deeptools, grit, idr, python2-warpedlmm, pbtranscript-tofu, seqmagick): Likewise. * gnu/packages/docbook.scm (dblatex): Likewise. * gnu/packages/freedesktop.scm (python-pyxdg, python2-pyxdg): Likewise. * gnu/packages/lirc.scm (python2-lirc): Likewise. * gnu/packages/mp3.scm (eyed3): Likewise. * gnu/packages/nutrition.scm (gourmet): Likewise. * gnu/packages/openstack.scm (python-hacking, python2-hacking, python-os-testr, python2-os-testr, python-stevedore, python2-stevedore, python-tempest-lib, python2-tempest-lib, python-oslo.log, python2-oslo.log, python-keystoneclient, python2-keystoneclient): Likewise. * gnu/packages/password-utils.scm (assword): Likewise. * gnu/packages/python.scm (python-passlib, python2-passlib, python-babel, python2-babel, python-parse-type, python-pytest, python2-pytest, python-scripttest, python2-scripttest, python-testtools, python2-testtools, python-testscenarios, python2-testscenarios, python-subunit, python2-subunit, python-pbr-0.11, python-pbr, python2-pbr, python-testrepository, python2-testrepository, behave, python-wheel, python2-wheel, python-requests, python2-requests, python-jsonschema, python2-jsonschema, python-pyjwt, python2-pyjwt, python-virtualenv, python2-virtualenv, python-jinja2, python2-jinja2, python-joblib, python2-joblib, python-sphinx, python2-sphinx, python-feedgenerator, python2-feedgenerator, python-scikit-image, python2-scikit-image, python-redis, python2-redis, python2-fastlmm, python-numpydoc, python2-numpydoc, python-matplotlib, python2-matplotlib, python2-pysnptools, python-rpy2, python2-rpy2, python-pillow, python2-pillow, python-pycparser, python2-pycparser, python-cffi, python2-cffi, python-cairocffi, python2-cairocffi, python-drmaa, python2-drmaa, python-pathpy, python2-pathpy, python-simplegeneric, python2-simplegeneric, python-ipython, python2-ipython, python-apsw, python2-apsw, python-lxml, python2-lxml, python-networkx, python2-networkx, python-pyzmq, python2-pyzmq, python-mccabe, python2-mccabe, python-mccabe-0.2.1, python-flake8, python2-flake8, python-flake8-2.2.4, python-mistune, python2-mistune, python-ptyprocess, python2-ptyprocess, python-llfuse, python2-llfuse, python-webob, python2-webob, python-xlrd, python2-xlrd, python-tables, python2-tables, python-pip, python2-pip, python-libarchive-c, python2-libarchive-c, python-docopt, python2-docopt, python-pyrfc3339, python2-pyrfc3339, python-configobj, python2-configobj, python-clint, python2-clint, python-rply, python2-rply, python2-rpython, python-widgetsnbextension, python2-widgetsnbextension jupyter, python-jupyter-console, python2-jupyter-console, python-hy, python2-hy, python-urllib3, python2-urllib3, python-rsa, python2-rsa, python-tox, python2-tox, python2-hypothesis, python-paste, python2-paste, python-pastescript, python2-pastescript, python2-unicodecsv, python-pkgconfig, python2-pkgconfig, python2-rope, python-sqlparse, python2-sqlparse, python-gevent, python2-gevent, python-tabulate, python2-tabulate, python-arrow, python2-arrow, python-cleo, python2-cleo, python-fake-factory, python2-fake-factory, ptpython): Likewise. * gnu/packages/rdf.scm (python-rdflib, python2-rdflib): Likewise. * gnu/packages/terminals.scm (asciinema): Likewise. * gnu/packages/version-control.scm (git-annex-remote-hubic): Likewise. * gnu/packages/xdisorg.scm (arandr): Likewise.
5 years ago
gnu: Remove python-setuptools and python2-setuptools from inputs (part 2) This patch contains the changes where removing setuptools from the inputs affected some code-lines beside. * gnu/packages/admin.scm (ansible): Remove all [inputs], [native-inputs] and [propagated-inputs] where python-setuptools or python2-setuptools are the sole entries. Remove python-setuptools and python2-setuptools listed on a line by its own from [inputs], [native-inputs] and [propagated-inputs]. * gnu/packages/backup.scm (duplicity): Likewise. * gnu/packages/bioinformatics.scm (bamm, python2-pybedtools, python2-bx-python, python2-dendropy, python-pysam, python2-pysam, clipper, crossmap, cutadapt, deeptools, grit, idr, python2-warpedlmm, pbtranscript-tofu, seqmagick): Likewise. * gnu/packages/docbook.scm (dblatex): Likewise. * gnu/packages/freedesktop.scm (python-pyxdg, python2-pyxdg): Likewise. * gnu/packages/lirc.scm (python2-lirc): Likewise. * gnu/packages/mp3.scm (eyed3): Likewise. * gnu/packages/nutrition.scm (gourmet): Likewise. * gnu/packages/openstack.scm (python-hacking, python2-hacking, python-os-testr, python2-os-testr, python-stevedore, python2-stevedore, python-tempest-lib, python2-tempest-lib, python-oslo.log, python2-oslo.log, python-keystoneclient, python2-keystoneclient): Likewise. * gnu/packages/password-utils.scm (assword): Likewise. * gnu/packages/python.scm (python-passlib, python2-passlib, python-babel, python2-babel, python-parse-type, python-pytest, python2-pytest, python-scripttest, python2-scripttest, python-testtools, python2-testtools, python-testscenarios, python2-testscenarios, python-subunit, python2-subunit, python-pbr-0.11, python-pbr, python2-pbr, python-testrepository, python2-testrepository, behave, python-wheel, python2-wheel, python-requests, python2-requests, python-jsonschema, python2-jsonschema, python-pyjwt, python2-pyjwt, python-virtualenv, python2-virtualenv, python-jinja2, python2-jinja2, python-joblib, python2-joblib, python-sphinx, python2-sphinx, python-feedgenerator, python2-feedgenerator, python-scikit-image, python2-scikit-image, python-redis, python2-redis, python2-fastlmm, python-numpydoc, python2-numpydoc, python-matplotlib, python2-matplotlib, python2-pysnptools, python-rpy2, python2-rpy2, python-pillow, python2-pillow, python-pycparser, python2-pycparser, python-cffi, python2-cffi, python-cairocffi, python2-cairocffi, python-drmaa, python2-drmaa, python-pathpy, python2-pathpy, python-simplegeneric, python2-simplegeneric, python-ipython, python2-ipython, python-apsw, python2-apsw, python-lxml, python2-lxml, python-networkx, python2-networkx, python-pyzmq, python2-pyzmq, python-mccabe, python2-mccabe, python-mccabe-0.2.1, python-flake8, python2-flake8, python-flake8-2.2.4, python-mistune, python2-mistune, python-ptyprocess, python2-ptyprocess, python-llfuse, python2-llfuse, python-webob, python2-webob, python-xlrd, python2-xlrd, python-tables, python2-tables, python-pip, python2-pip, python-libarchive-c, python2-libarchive-c, python-docopt, python2-docopt, python-pyrfc3339, python2-pyrfc3339, python-configobj, python2-configobj, python-clint, python2-clint, python-rply, python2-rply, python2-rpython, python-widgetsnbextension, python2-widgetsnbextension jupyter, python-jupyter-console, python2-jupyter-console, python-hy, python2-hy, python-urllib3, python2-urllib3, python-rsa, python2-rsa, python-tox, python2-tox, python2-hypothesis, python-paste, python2-paste, python-pastescript, python2-pastescript, python2-unicodecsv, python-pkgconfig, python2-pkgconfig, python2-rope, python-sqlparse, python2-sqlparse, python-gevent, python2-gevent, python-tabulate, python2-tabulate, python-arrow, python2-arrow, python-cleo, python2-cleo, python-fake-factory, python2-fake-factory, ptpython): Likewise. * gnu/packages/rdf.scm (python-rdflib, python2-rdflib): Likewise. * gnu/packages/terminals.scm (asciinema): Likewise. * gnu/packages/version-control.scm (git-annex-remote-hubic): Likewise. * gnu/packages/xdisorg.scm (arandr): Likewise.
5 years ago
gnu: Remove python-setuptools and python2-setuptools from inputs (part 4a) This patch contains the changes for all modules beside python.scm where setuptools are used in an inherited package and removing this input also removes the need for inheriting the package. This is the case if adding setuptools in the inherited package was the only change. Change this to not inherit and remove the new needless call to "strip-python2-variant (if applicable). * gnu/packages/bioinformatics.scm (python-biopython, python2-biopython, python-twobitreader, python2-twobitreader, python-plastid, python2-plastid, python2-pybigwig, python2-screed, sra-tools): No longer "inherit" Python 2 packages inheriting from a Python 3 package if the sole reason for inheriting was adding python-setuptools respective python2-setuptools to [inputs], [native-inputs] or [propagated-inputs]. Remove now needless [properties] "python2-variant" where applicable. * gnu/packages/django.scm (python-pytest-django, python2-pytest-django, python-django-filter, python2-django-filter): Likewise. * gnu/packages/gnupg.scm (python2-pygpgme): Likewise. * gnu/packages/mail.scm (python-mailmanclient, python2-mailmanclient): Likewise. * gnu/packages/mpd.scm (python-msp, python2-mpd2): Likewise. * gnu/packages/music.scm (python-pylast, python2-pylast): Likewise. * gnu/packages/openstack.scm (python-requests-mock, python2-requests-mock, python2-git-review): Likewise. * gnu/packages/password-utils.scm (python2-bcrypt): Likewise. * gnu/packages/protobuf.scm (python-protobuf, python2-protobuf): Likewise. * gnu/packages/statistics.scm (python-patsy, python2-patsy): Likewise. * gnu/packages/web.scm (python2-feedparser): Likewise.
5 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
  3. ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
  4. ;;; Copyright © 2016, 2017, 2019 Clément Lassieur <clement@lassieur.org>
  5. ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
  6. ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
  7. ;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
  8. ;;;
  9. ;;; This file is part of GNU Guix.
  10. ;;;
  11. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  12. ;;; under the terms of the GNU General Public License as published by
  13. ;;; the Free Software Foundation; either version 3 of the License, or (at
  14. ;;; your option) any later version.
  15. ;;;
  16. ;;; GNU Guix is distributed in the hope that it will be useful, but
  17. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ;;; GNU General Public License for more details.
  20. ;;;
  21. ;;; You should have received a copy of the GNU General Public License
  22. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  23. (define-module (gnu packages openstack)
  24. #:use-module (gnu packages)
  25. #:use-module (gnu packages check)
  26. #:use-module (gnu packages gnupg)
  27. #:use-module (gnu packages python)
  28. #:use-module (gnu packages python-crypto)
  29. #:use-module (gnu packages python-web)
  30. #:use-module (gnu packages python-xyz)
  31. #:use-module (gnu packages sphinx)
  32. #:use-module (gnu packages ssh)
  33. #:use-module (gnu packages time)
  34. #:use-module (gnu packages tls)
  35. #:use-module (gnu packages version-control)
  36. #:use-module (gnu packages xml)
  37. #:use-module (guix build-system python)
  38. #:use-module (guix download)
  39. #:use-module ((guix licenses)
  40. #:select (asl2.0))
  41. #:use-module (guix packages)
  42. #:use-module (srfi srfi-1))
  43. (define-public python-bandit
  44. (package
  45. (name "python-bandit")
  46. (version "1.4.0")
  47. (source
  48. (origin
  49. (method url-fetch)
  50. (uri (pypi-uri "bandit" version))
  51. (sha256
  52. (base32
  53. "1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
  54. (build-system python-build-system)
  55. (arguments
  56. `(#:phases (modify-phases %standard-phases
  57. (delete 'check)
  58. (add-after 'install 'check
  59. (lambda* (#:key inputs outputs #:allow-other-keys)
  60. ;; Tests require the 'bandit' executable in PATH.
  61. ;; It's only built during install time.
  62. (add-installed-pythonpath inputs outputs)
  63. (setenv "PATH" (string-append (assoc-ref outputs "out")
  64. "/bin:" (getenv "PATH")))
  65. (invoke "python" "setup.py" "testr"))))))
  66. (propagated-inputs
  67. `(("python-gitpython" ,python-gitpython)
  68. ("python-pyyaml" ,python-pyyaml)
  69. ("python-six" ,python-six)
  70. ("python-stevedore" ,python-stevedore)))
  71. (native-inputs
  72. `(;; Tests.
  73. ("python-beautifulsoup4" ,python-beautifulsoup4)
  74. ("python-fixtures" ,python-fixtures)
  75. ("python-mock" ,python-mock)
  76. ("python-subunit" ,python-subunit)
  77. ("python-testrepository" ,python-testrepository)
  78. ("python-testscenarios" ,python-testscenarios)
  79. ("python-testtools" ,python-testtools)))
  80. (home-page "https://github.com/PyCQA/bandit")
  81. (synopsis "Security oriented static analyser for python code")
  82. (description
  83. "Bandit is a tool designed to find common security issues in Python code.
  84. To do this Bandit processes each file, builds an AST from it, and runs
  85. appropriate plugins against the AST nodes. Once Bandit has finished scanning
  86. all the files it generates a report.")
  87. (license asl2.0)))
  88. (define-public python-debtcollector
  89. (package
  90. (name "python-debtcollector")
  91. (version "1.19.0")
  92. (source
  93. (origin
  94. (method url-fetch)
  95. (uri (pypi-uri "debtcollector" version))
  96. (sha256
  97. (base32
  98. "06c7vyn184y9f0lsrwaz13aq63hdz5fjrd191b8nifx6acsni42f"))))
  99. (build-system python-build-system)
  100. (propagated-inputs
  101. `(("python-pbr" ,python-pbr)
  102. ("python-six" ,python-six)
  103. ("python-wrapt" ,python-wrapt)))
  104. (native-inputs
  105. `(;; Tests.
  106. ("python-subunit" ,python-subunit)
  107. ("python-testrepository" ,python-testrepository)
  108. ("python-testtools" ,python-testtools)))
  109. (home-page "https://www.openstack.org/")
  110. (synopsis
  111. "Find deprecated patterns and strategies in Python code")
  112. (description
  113. "This package provides a collection of Python deprecation patterns and
  114. strategies that help you collect your technical debt in a non-destructive
  115. manner.")
  116. (properties `((python2-variant . ,(delay python2-debtcollector))))
  117. (license asl2.0)))
  118. (define-public python2-debtcollector
  119. (let ((base (package-with-python2 (strip-python2-variant
  120. python-debtcollector))))
  121. (package
  122. (inherit base)
  123. (propagated-inputs
  124. `(("python2-funcsigs" ,python2-funcsigs)
  125. ,@(package-propagated-inputs base))))))
  126. (define-public python-hacking
  127. (package
  128. (name "python-hacking")
  129. (version "1.1.0")
  130. (source
  131. (origin
  132. (method url-fetch)
  133. (uri (pypi-uri "hacking" version))
  134. (sha256
  135. (base32
  136. "1vlgh81v4vsw3q3cf7qggsp043vq16knp203lrll82h7l7rhd8r3"))))
  137. (build-system python-build-system)
  138. (arguments
  139. `(#:phases
  140. (modify-phases %standard-phases
  141. (add-after 'unpack 'delete-broken-test
  142. (lambda _
  143. ;; TODO: Just one test fails:
  144. ;; hacking.tests.test_doctest.HackingTestCase.test_pycodestyle
  145. ;; (H403-hacking_docstring_multiline_end-line-5)
  146. (delete-file "hacking/tests/test_doctest.py")
  147. #t)))))
  148. (propagated-inputs
  149. `(("python-flake8" ,python-flake8-2.6)
  150. ("python-mccabe-0.2.1" ,python-mccabe-0.2.1)
  151. ("python-pbr" ,python-pbr)
  152. ("python-pep8-1.5.7" ,python-pep8-1.5.7)
  153. ("python-pyflakes-1.2" ,python-pyflakes-1.2)
  154. ("python-six" ,python-six)))
  155. (native-inputs
  156. `( ;; Tests
  157. ("python-eventlet" ,python-eventlet)
  158. ("python-mock" ,python-mock)
  159. ("python-reno" ,python-reno)
  160. ("python-testrepository" ,python-testrepository)
  161. ("python-testscenarios" ,python-testscenarios)))
  162. (home-page "https://github.com/openstack-dev/hacking")
  163. (synopsis "OpenStack hacking guideline enforcement")
  164. (description
  165. "Python-hacking is a set of flake8 plugins that test and enforce the
  166. @uref{http://docs.openstack.org/developer/hacking/, OpenStack style
  167. guidelines}.")
  168. (license asl2.0)))
  169. (define-public python2-hacking
  170. (package-with-python2 python-hacking))
  171. (define-public python-mox3
  172. (package
  173. (name "python-mox3")
  174. (version "0.24.0")
  175. (source
  176. (origin
  177. (method url-fetch)
  178. (uri (pypi-uri "mox3" version))
  179. (patches (search-patches "python-mox3-python3.6-compat.patch"))
  180. (sha256
  181. (base32
  182. "0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5"))))
  183. (build-system python-build-system)
  184. (propagated-inputs
  185. `(("python-fixtures" ,python-fixtures)
  186. ("python-pbr" ,python-pbr)))
  187. (native-inputs
  188. `(("python-openstackdocstheme" ,python-openstackdocstheme)
  189. ("python-sphinx" ,python-sphinx)
  190. ("python-subunit" ,python-subunit)
  191. ("python-testrepository" ,python-testrepository)
  192. ("python-testtools" ,python-testtools)))
  193. (home-page "https://www.openstack.org/")
  194. (synopsis "Mock object framework for Python")
  195. (description
  196. "Mox3 is an unofficial port of the @uref{https://code.google.com/p/pymox/,
  197. Google mox framework} to Python 3. It was meant to be as compatible
  198. with mox as possible, but small enhancements have been made.")
  199. (license asl2.0)))
  200. (define-public python2-mox3
  201. (package-with-python2 python-mox3))
  202. (define-public python-openstackdocstheme
  203. (package
  204. (name "python-openstackdocstheme")
  205. (version "1.18.1")
  206. (source (origin
  207. (method url-fetch)
  208. (uri (pypi-uri "openstackdocstheme" version))
  209. (sha256
  210. (base32
  211. "1ki5204rjdqjvr8xr9w2qc1z6b6d2i5jas0i70xzkf9njlzjzv2r"))))
  212. (build-system python-build-system)
  213. (arguments
  214. ;; FIXME: Tests require an old version of python-hacking, which in
  215. ;; turn depends on mox3 which depends on this package.
  216. `(#:tests? #f))
  217. (propagated-inputs
  218. `(("python-dulwich" ,python-dulwich)
  219. ("python-pbr" ,python-pbr)))
  220. (native-inputs
  221. `(("python-sphinx" ,python-sphinx)))
  222. (home-page "https://docs.openstack.org/openstackdocstheme/latest/")
  223. (synopsis "OpenStack Docs Theme")
  224. (description
  225. "This package provides themes and extensions for Sphinx for publishing
  226. to docs.openstack.org and developer.openstack.org.")
  227. (license asl2.0)))
  228. (define-public python2-openstackdocstheme
  229. (package-with-python2 python-openstackdocstheme))
  230. (define-public python-os-client-config
  231. (package
  232. (name "python-os-client-config")
  233. (version "1.12.0")
  234. (source
  235. (origin
  236. (method url-fetch)
  237. (uri (pypi-uri "os-client-config" version))
  238. (sha256
  239. (base32
  240. "1vjn7667pswnmpqv6ngwyqm2xn46w90hi5b4pv2grwfz751cn1lf"))))
  241. (build-system python-build-system)
  242. (arguments
  243. `(#:tests? #f)) ;; Circular dependency with python-oslotest
  244. (propagated-inputs
  245. `(("python-appdirs" ,python-appdirs)
  246. ("python-pyyaml" ,python-pyyaml)))
  247. (native-inputs
  248. `(("python-pbr" ,python-pbr)
  249. ("python-fixtures" ,python-fixtures)
  250. ("python-mimeparse" ,python-mimeparse)
  251. ("python-testrepository" ,python-testrepository)
  252. ("python-testscenarios" ,python-testscenarios)
  253. ("python-testtools" ,python-testtools)))
  254. (home-page "https://www.openstack.org/")
  255. (synopsis
  256. "OpenStack Client Configuration Library")
  257. (description
  258. "The OpenStack Client Configuration Library is a library for collecting
  259. client configuration for using an OpenStack cloud in a consistent and
  260. comprehensive manner.")
  261. (license asl2.0)))
  262. (define-public python2-os-client-config
  263. (package-with-python2 python-os-client-config))
  264. (define-public python-os-testr
  265. (package
  266. (name "python-os-testr")
  267. (version "0.8.0")
  268. (source
  269. (origin
  270. (method url-fetch)
  271. (uri (pypi-uri "os-testr" version))
  272. (sha256
  273. (base32
  274. "0mknd9hlmxmihr755gjkxyjp180380jajq5i3zm34q7y7bi62lss"))))
  275. (build-system python-build-system)
  276. (arguments
  277. ;; os-testr uses itself to run the tests. It seems like pbr writes the
  278. ;; exectuable in the virtualenv when using tox. Not sure how to do this
  279. ;; when building the package. Skip the tests for now.
  280. `(#:tests? #f))
  281. (propagated-inputs
  282. `(("python-subunit" ,python-subunit)))
  283. (native-inputs
  284. `(("python-pbr" ,python-pbr)
  285. ("python-testtools" ,python-testtools)
  286. ("python-babel" ,python-babel)))
  287. (home-page "https://www.openstack.org/")
  288. (synopsis "Testr wrapper to provide functionality for OpenStack projects")
  289. (description
  290. "Os-testr provides developers with a testr wrapper and an output filter
  291. for subunit.")
  292. (license asl2.0)))
  293. (define-public python2-os-testr
  294. (package-with-python2 python-os-testr))
  295. (define-public python-stevedore
  296. (package
  297. (name "python-stevedore")
  298. (version "1.28.0")
  299. (source
  300. (origin
  301. (method url-fetch)
  302. (uri (pypi-uri "stevedore" version))
  303. (sha256
  304. (base32
  305. "02ynfgwma84g59834dmvzr39mcppy5s229zf1w23c0qngf753izi"))))
  306. (build-system python-build-system)
  307. (propagated-inputs
  308. `(("python-pbr" ,python-pbr)
  309. ("python-six" ,python-six)))
  310. (native-inputs
  311. `(("python-mock" ,python-mock)
  312. ("python-sphinx" ,python-sphinx)
  313. ("python-testrepository" ,python-testrepository)))
  314. (home-page "https://github.com/dreamhost/stevedore")
  315. (synopsis "Manage dynamic plugins for Python applications")
  316. (description
  317. "Python makes loading code dynamically easy, allowing you to configure
  318. and extend your application by discovering and loading extensions (\"plugins\")
  319. at runtime. Many applications implement their own library for doing this,
  320. using __import__ or importlib. Stevedore avoids creating yet another extension
  321. mechanism by building on top of setuptools entry points. The code for managing
  322. entry points tends to be repetitive, though, so stevedore provides manager
  323. classes for implementing common patterns for using dynamically loaded
  324. extensions.")
  325. (license asl2.0)))
  326. (define-public python2-stevedore
  327. (package-with-python2 python-stevedore))
  328. (define-public python-tempest-lib
  329. (package
  330. (name "python-tempest-lib")
  331. (version "1.0.0")
  332. (source
  333. (origin
  334. (method url-fetch)
  335. (uri (pypi-uri "tempest-lib" version))
  336. (sha256
  337. (base32
  338. "1cpp2vwmawpd29hjsklsps181lq2ah91cl412qvpnz228nf9sqn5"))))
  339. (build-system python-build-system)
  340. (arguments
  341. `(#:tests? #f ; FIXME: Requires oslo.log >= 1.14.0.
  342. #:phases
  343. (modify-phases %standard-phases
  344. (add-before
  345. 'check 'pre-check
  346. (lambda _
  347. (substitute* "tempest_lib/tests/cli/test_execute.py"
  348. (("/bin/ls") (which "ls"))))))))
  349. (propagated-inputs
  350. `(("python-fixtures" ,python-fixtures)
  351. ("python-httplib2" ,python-httplib2)
  352. ("python-iso8601" ,python-iso8601)
  353. ("python-jsonschema" ,python-jsonschema)
  354. ("python-oslo.log" ,python-oslo.log)
  355. ("python-paramiko" ,python-paramiko)
  356. ("python-pbr" ,python-pbr)
  357. ("python-six" ,python-six)))
  358. (native-inputs
  359. `(("python-babel" ,python-babel)
  360. ("python-mock" ,python-mock)
  361. ("python-os-testr" ,python-os-testr)
  362. ("python-oslotest" ,python-oslotest)))
  363. (home-page "https://www.openstack.org/")
  364. (synopsis "OpenStack functional testing library")
  365. (description
  366. "Tempest-lib is a functional testing library for OpenStack. It provides
  367. common features used in Tempest.")
  368. (license asl2.0)))
  369. ;; Packages from the Oslo library
  370. (define-public python-oslo.config
  371. (package
  372. (name "python-oslo.config")
  373. (version "5.2.0")
  374. (source
  375. (origin
  376. (method url-fetch)
  377. (uri (pypi-uri "oslo.config" version))
  378. (sha256
  379. (base32
  380. "0ymf7jxbq29fifyvkwhfiys1qvljqfxdw8ajwzwaf3yiqidgpxqd"))))
  381. (build-system python-build-system)
  382. (propagated-inputs
  383. `(("python-debtcollector" ,python-debtcollector)
  384. ("python-netaddr" ,python-netaddr)
  385. ("python-oslo.i18n" ,python-oslo.i18n)
  386. ("python-pbr" ,python-pbr)
  387. ("python-rfc3986" ,python-rfc3986)
  388. ("python-six" ,python-six)
  389. ("python-stevedore" ,python-stevedore)
  390. ("python-pyyaml" ,python-pyyaml)))
  391. (native-inputs
  392. `(("python-bandit" ,python-bandit)
  393. ("python-coverage" ,python-coverage)
  394. ("python-mock" ,python-mock)
  395. ("python-openstackdocstheme" ,python-openstackdocstheme)
  396. ("python-oslotest" ,python-oslotest)
  397. ("python-reno" ,python-reno)
  398. ("python-sphinx" ,python-sphinx)
  399. ("python-testrepository" ,python-testrepository)
  400. ("python-testscenarios" ,python-testscenarios)
  401. ("python-testtools" ,python-testtools)))
  402. (home-page "https://launchpad.net/oslo")
  403. (synopsis "Oslo Configuration API")
  404. (description
  405. "The Oslo configuration API supports parsing command line arguments and
  406. .ini style configuration files.")
  407. (license asl2.0)))
  408. (define-public python-oslo.context
  409. (package
  410. (name "python-oslo.context")
  411. (version "2.20.0")
  412. (source
  413. (origin
  414. (method url-fetch)
  415. (uri (pypi-uri "oslo.context" version))
  416. (sha256
  417. (base32
  418. "0iiq9rpwg6wrdqnhf3d8z8g0g7fjhs5zn6qw6igvxplz2c3rbvvx"))))
  419. (build-system python-build-system)
  420. (propagated-inputs
  421. `(("python-debtcollector" ,python-debtcollector)
  422. ("python-pbr" ,python-pbr)))
  423. (native-inputs
  424. `(("python-fixtures" ,python-fixtures)
  425. ("python-hacking" ,python-hacking)
  426. ("python-oslotest" ,python-oslotest)))
  427. (home-page "https://launchpad.net/oslo")
  428. (synopsis "Oslo context library")
  429. (description
  430. "The Oslo context library has helpers to maintain useful information
  431. about a request context. The request context is usually populated in the WSGI
  432. pipeline and used by various modules such as logging.")
  433. (license asl2.0)))
  434. (define-public python2-oslo.context
  435. (package-with-python2 python-oslo.context))
  436. (define-public python-oslo.i18n
  437. (package
  438. (name "python-oslo.i18n")
  439. (version "3.20.0")
  440. (source
  441. (origin
  442. (method url-fetch)
  443. (uri (pypi-uri "oslo.i18n" version))
  444. (sha256
  445. (base32
  446. "0kjcdw4bk3mi4vqmqwhhq053kxbbbj05si6nwxd1pzx33z067ky3"))))
  447. (build-system python-build-system)
  448. (propagated-inputs
  449. `(("python-babel" ,python-babel)
  450. ("python-six" ,python-six)))
  451. (native-inputs
  452. `(("python-pbr" ,python-pbr)
  453. ;; Tests
  454. ("python-mock" ,python-mock)
  455. ("python-mox3" ,python-mox3)
  456. ("python-oslotest" ,python-oslotest)
  457. ("python-testscenarios" ,python-testscenarios)))
  458. (home-page "https://launchpad.net/oslo")
  459. (synopsis "Oslo internationalization (i18n) library")
  460. (description
  461. "The oslo.i18n library contain utilities for working with
  462. internationalization (i18n) features, especially translation for text strings
  463. in an application or library.")
  464. (license asl2.0)))
  465. (define-public python2-oslo.i18n
  466. (package-with-python2 python-oslo.i18n))
  467. (define-public python-oslo.log
  468. (package
  469. (name "python-oslo.log")
  470. (version "3.36.0")
  471. (source
  472. (origin
  473. (method url-fetch)
  474. (uri (pypi-uri "oslo.log" version))
  475. (sha256
  476. (base32
  477. "0h7hplf1h8k24v75m3mq1jlrl74x5ynyr4hwgffsg5campxnza4x"))))
  478. (build-system python-build-system)
  479. (propagated-inputs
  480. `(("python-dateutil" ,python-dateutil)
  481. ("python-debtcollector" ,python-debtcollector)
  482. ("python-monotonic" ,python-monotonic)
  483. ("python-oslo.config" ,python-oslo.config)
  484. ("python-oslo.context" ,python-oslo.context)
  485. ("python-oslo.i18n" ,python-oslo.i18n)
  486. ("python-oslo.utils" ,python-oslo.utils)
  487. ("python-oslo.serialization" ,python-oslo.serialization)
  488. ("python-pbr" ,python-pbr)
  489. ("python-pyinotify" ,python-pyinotify)
  490. ("python-six" ,python-six)))
  491. (native-inputs
  492. `(("python-mock" ,python-mock)
  493. ("python-oslotest" ,python-oslotest)
  494. ("python-subunit" ,python-subunit)
  495. ("python-testrepository" ,python-testrepository)
  496. ("python-testtools" ,python-testtools)))
  497. (home-page "https://launchpad.net/oslo")
  498. (synopsis "Python logging library of the Oslo project")
  499. (description
  500. "The oslo.log (logging) configuration library provides standardized
  501. configuration for all OpenStack projects. It also provides custom formatters,
  502. handlers and support for context specific logging (like resource ids etc).")
  503. (license asl2.0)))
  504. (define-public python-oslo.serialization
  505. (package
  506. (name "python-oslo.serialization")
  507. (version "2.24.0")
  508. (source
  509. (origin
  510. (method url-fetch)
  511. (uri (pypi-uri "oslo.serialization" version))
  512. (sha256
  513. (base32
  514. "08bxkp98c617y58x630xq44iiffm7f0f3cwh6zbnlkgq0zgh7jk1"))))
  515. (build-system python-build-system)
  516. (propagated-inputs
  517. `(("python-msgpack" ,python-msgpack)
  518. ("python-netaddr" ,python-netaddr)
  519. ("python-oslo.utils" ,python-oslo.utils)
  520. ("python-six" ,python-six)
  521. ("python-pytz" ,python-pytz)))
  522. (native-inputs
  523. `(("python-pbr" ,python-pbr)
  524. ;; Tests.
  525. ("python-mock" ,python-mock)
  526. ("python-oslo.i18n" ,python-oslo.i18n)
  527. ("python-oslotest" ,python-oslotest)))
  528. (home-page "https://launchpad.net/oslo")
  529. (synopsis "Oslo serialization library")
  530. (description
  531. "The oslo.serialization library provides support for representing objects
  532. in transmittable and storable formats, such as JSON and MessagePack.")
  533. (license asl2.0)))
  534. (define-public python-reno
  535. (package
  536. (name "python-reno")
  537. (version "2.7.0")
  538. (source
  539. (origin
  540. (method url-fetch)
  541. (uri (pypi-uri "reno" version))
  542. (sha256
  543. (base32 "0gwzi5dvacqx43smxl3rd1z33npn7gfhm50bvgmq90fib2q431wc"))))
  544. (build-system python-build-system)
  545. (arguments
  546. `(#:phases
  547. (modify-phases %standard-phases
  548. (add-before 'check 'init-git
  549. (lambda _
  550. ;; reno expects a git repo
  551. (invoke "git" "init"))))))
  552. (propagated-inputs
  553. `(("python-dulwich" ,python-dulwich)
  554. ("python-pbr" ,python-pbr)
  555. ("python-pyyaml" ,python-pyyaml)
  556. ("python-six" ,python-six)))
  557. (native-inputs
  558. `(("python-testtools" ,python-testtools)
  559. ("python-testscenarios" ,python-testscenarios)
  560. ("python-testrepository" ,python-testrepository)
  561. ("python-mock" ,python-mock)
  562. ("python-docutils" ,python-docutils)
  563. ("python-sphinx" ,python-sphinx)
  564. ("gnupg" ,gnupg)
  565. ("git" ,git-minimal)))
  566. (home-page "https://docs.openstack.org/reno/latest/")
  567. (synopsis "Release notes manager")
  568. (description "Reno is a tool for storing release notes in a git repository
  569. and building documentation from them.")
  570. (license asl2.0)))
  571. (define-public python2-reno
  572. (package-with-python2 python-reno))
  573. (define-public python-oslosphinx
  574. (package
  575. (name "python-oslosphinx")
  576. (version "4.10.0")
  577. (source
  578. (origin
  579. (method url-fetch)
  580. (uri (pypi-uri "oslosphinx" version))
  581. (sha256
  582. (base32
  583. "09mxqyabi68f3s3arvdhlhq0mn38vf74jbsfcg84151hcj6czhnl"))))
  584. (build-system python-build-system)
  585. (arguments
  586. `(#:phases
  587. (modify-phases %standard-phases
  588. (replace 'check
  589. (lambda _
  590. ;; Note: Upstream tests would have also built the release notes.
  591. ;; That only would work if we were in a git checkout.
  592. ;; Therefore, we don't do it here.
  593. (invoke "python" "setup.py" "build_sphinx"))))))
  594. (propagated-inputs
  595. `(("python-requests" ,python-requests)))
  596. (native-inputs
  597. `(("python-pbr" ,python-pbr)
  598. ("python-docutils" ,python-docutils)
  599. ("python-hacking" ,python-hacking)
  600. ("python-sphinx" ,python-sphinx)))
  601. (home-page "https://www.openstack.org/")
  602. (synopsis "OpenStack sphinx extensions and theme")
  603. (description
  604. "This package provides themes and extensions for Sphinx documentation
  605. from the OpenStack project.")
  606. (license asl2.0)))
  607. (define-public python2-oslosphinx
  608. (package-with-python2 python-oslosphinx))
  609. (define-public python-oslotest
  610. (package
  611. (name "python-oslotest")
  612. (version "3.4.0")
  613. (source
  614. (origin
  615. (method url-fetch)
  616. (uri (pypi-uri "oslotest" version))
  617. (sha256
  618. (base32
  619. "1pp8lq61d548cxcqi451czvrz5i5b3hyi2ry00wmngdgiswcqj1h"))))
  620. (build-system python-build-system)
  621. (propagated-inputs
  622. `(("python-fixtures" ,python-fixtures)
  623. ("python-mock" ,python-mock)
  624. ("python-mox3" ,python-mox3)
  625. ("python-os-client-config" ,python-os-client-config)
  626. ("python-six" ,python-six)
  627. ("python-subunit" ,python-subunit)
  628. ("python-testrepository" ,python-testrepository)
  629. ("python-testtools" ,python-testtools)))
  630. (native-inputs
  631. `(("python-pbr" ,python-pbr)
  632. ("python-testscenarios" ,python-testscenarios)))
  633. (home-page "https://launchpad.net/oslo")
  634. (synopsis "Oslo test framework")
  635. (description
  636. "The Oslo Test framework provides common fixtures, support for debugging,
  637. and better support for mocking results.")
  638. (license asl2.0)))
  639. (define-public python2-oslotest
  640. (package-with-python2 python-oslotest))
  641. (define-public python-oslo.utils
  642. (package
  643. (name "python-oslo.utils")
  644. (version "3.36.2")
  645. (source
  646. (origin
  647. (method url-fetch)
  648. (uri (pypi-uri "oslo.utils" version))
  649. (sha256
  650. (base32
  651. "1ipjcgg9z697wmibhcbg5lqpk5gafakdx4qkff3w255zr0mvw04r"))))
  652. (build-system python-build-system)
  653. (propagated-inputs
  654. `(("python-debtcollector" ,python-debtcollector)
  655. ("python-oslo.i18n" ,python-oslo.i18n)
  656. ("python-iso8601" ,python-iso8601)
  657. ("python-monotonic" ,python-monotonic)
  658. ("python-netaddr" ,python-netaddr)
  659. ("python-netifaces" ,python-netifaces)
  660. ("python-pyparsing" ,python-pyparsing)
  661. ("python-pytz" ,python-pytz)
  662. ("python-six" ,python-six)))
  663. (native-inputs
  664. `(("python-pbr" ,python-pbr)
  665. ;; Tests.
  666. ("python-bandit" ,python-bandit)
  667. ("python-ddt" ,python-ddt)
  668. ("python-fixtures" ,python-fixtures)
  669. ("python-oslo.config" ,python-oslo.config)
  670. ("python-oslotest" ,python-oslotest)
  671. ("python-mock" ,python-mock)
  672. ("python-testrepository" ,python-testrepository)
  673. ("python-testscenarios" ,python-testscenarios)
  674. ("python-testtools" ,python-testtools)))
  675. (home-page "https://launchpad.net/oslo")
  676. (synopsis "Oslo utility library")
  677. (description
  678. "The @code{oslo.utils} library provides support for common utility type
  679. functions, such as encoding, exception handling, string manipulation, and time
  680. handling.")
  681. (license asl2.0)))
  682. (define-public python-keystoneclient
  683. (package
  684. (name "python-keystoneclient")
  685. (version "1.8.1")
  686. (source
  687. (origin
  688. (method url-fetch)
  689. (uri (pypi-uri "python-keystoneclient" version))
  690. (sha256
  691. (base32
  692. "1w4csvkah67rfpxylxnvs2s3594i0f9isy8pf4gnsqs5zirvjaa4"))))
  693. (build-system python-build-system)
  694. (arguments
  695. '(#:tests? #f)) ; FIXME: Many tests are failing.
  696. (native-inputs
  697. `(("python-sphinx" ,python-sphinx)
  698. ;; and some packages for the tests
  699. ("openssl" ,openssl)
  700. ("python-coverage" ,python-coverage)
  701. ("python-discover" ,python-discover)
  702. ("python-fixtures" ,python-fixtures)
  703. ("python-hacking" ,python-hacking)
  704. ("python-keyring" ,python-keyring)
  705. ("python-lxml" ,python-lxml)
  706. ("python-mock" ,python-mock)
  707. ("python-mox3" ,python-mox3)
  708. ("python-oauthlib" ,python-oauthlib)
  709. ("python-oslosphinx" ,python-oslosphinx)
  710. ("python-oslotest" ,python-oslotest)
  711. ("python-pycrypto" ,python-pycrypto)
  712. ("python-requests-mock" ,python-requests-mock)
  713. ("python-temptest-lib" ,python-tempest-lib)
  714. ("python-testrepository" ,python-testrepository)
  715. ("python-testresources" ,python-testresources)
  716. ("python-testtools" ,python-testtools)
  717. ("python-webob" ,python-webob)))
  718. (propagated-inputs
  719. `(("python-babel" ,python-babel)
  720. ("python-debtcollector" ,python-debtcollector)
  721. ("python-iso8601" ,python-iso8601)
  722. ("python-netaddr" ,python-netaddr)
  723. ("python-oslo.config" ,python-oslo.config)
  724. ("python-oslo.i18n" ,python-oslo.i18n)
  725. ("python-oslo.serialization" ,python-oslo.serialization)
  726. ("python-oslo.utils" ,python-oslo.utils)
  727. ("python-pbr" ,python-pbr)
  728. ("python-prettytable" ,python-prettytable)
  729. ("python-requests" ,python-requests)
  730. ("python-six" ,python-six)
  731. ("python-stevedore" ,python-stevedore)))
  732. (home-page "https://www.openstack.org/")
  733. (synopsis "Client Library for OpenStack Identity")
  734. (description
  735. "Python-keystoneclient is the identity service used by OpenStack for
  736. authentication (authN) and high-level authorization (authZ). It currently
  737. supports token-based authN with user/service authZ, and is scalable to support
  738. OAuth, SAML, and OpenID in future versions. Out of the box, Keystone uses
  739. SQLite for its identity store database, with the option to connect to external
  740. LDAP.")
  741. (license asl2.0)))
  742. (define-public python-swiftclient
  743. (package
  744. (name "python-swiftclient")
  745. (version "2.6.0")
  746. (source
  747. (origin
  748. (method url-fetch)
  749. (uri (pypi-uri "python-swiftclient" version))
  750. (sha256
  751. (base32
  752. "1j33l4z9vqh0scfncl4fxg01zr1hgqxhhai6gvcih1gccqm4nd7p"))))
  753. (build-system python-build-system)
  754. (native-inputs
  755. `(("python-pbr" ,python-pbr)
  756. ("python-sphinx" ,python-sphinx)
  757. ;; The folloing packages are needed for the tests.
  758. ("python-coverage" ,python-coverage)
  759. ("python-discover" ,python-discover)
  760. ("python-hacking" ,python-hacking)
  761. ("python-mock" ,python-mock)
  762. ("python-oslosphinx" ,python-oslosphinx)
  763. ("python-keystoneclient" ,python-keystoneclient)
  764. ("python-testrepository" ,python-testrepository)
  765. ("python-testtools" ,python-testtools)))
  766. (propagated-inputs
  767. `(("python-requests" ,python-requests)
  768. ("python-six" ,python-six)))
  769. (home-page "https://www.openstack.org/")
  770. (synopsis "OpenStack Object Storage API Client Library")
  771. (description
  772. "OpenStack Object Storage (code-named Swift) creates redundant, scalable
  773. object storage using clusters of standardized servers to store petabytes of
  774. accessible data. It is not a file system or real-time data storage system, but
  775. rather a long-term storage system for a more permanent type of static data that
  776. can be retrieved, leveraged, and then updated if necessary. Primary examples of
  777. data that best fit this type of storage model are virtual machine images, photo
  778. storage, email storage and backup archiving. Having no central \"brain\" or
  779. master point of control provides greater scalability, redundancy and
  780. permanence.")
  781. (license asl2.0)))
  782. (define-public python-git-review
  783. (package
  784. (name "python-git-review")
  785. (version "1.28.0")
  786. (source
  787. (origin
  788. (method url-fetch)
  789. (uri (pypi-uri "git-review" version))
  790. (sha256
  791. (base32 "0nn17mfqvsa3ryjz53qjslmf60clc0vx2115kkj66h28p6vsnflf"))))
  792. (build-system python-build-system)
  793. (arguments
  794. '(#:tests? #f ; tests require a running Gerrit server
  795. #:phases
  796. (modify-phases %standard-phases
  797. (add-after 'install 'wrap-program
  798. (lambda* (#:key inputs outputs #:allow-other-keys)
  799. (let* ((out (assoc-ref outputs "out"))
  800. (git (assoc-ref inputs "git"))
  801. (openssh (assoc-ref inputs "openssh")))
  802. (wrap-program (string-append out "/bin/git-review")
  803. `("PATH" ":" prefix
  804. ,(map (lambda (dir)
  805. (string-append dir "/bin"))
  806. (list git openssh)))))
  807. #t)))))
  808. (native-inputs
  809. `(("python-pbr" ,python-pbr)))
  810. (propagated-inputs
  811. `(("python-requests" ,python-requests)))
  812. (inputs
  813. `(("git" ,git)
  814. ("openssh" ,openssh)))
  815. (home-page "https://docs.openstack.org/infra/git-review/")
  816. (synopsis "Command-line tool for Gerrit")
  817. (description
  818. "Git-review is a command-line tool that helps submitting Git branches to
  819. Gerrit for review, or fetching existing ones.")
  820. (license asl2.0)))
  821. (define-public python2-git-review
  822. (package-with-python2 python-git-review))