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>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; 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)
41 #:use-module (guix packages)
42 #:use-module (srfi srfi-1))
44 (define-public python-bandit
46 (name "python-bandit")
51 (uri (pypi-uri "bandit" version))
54 "1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
55 (build-system python-build-system)
57 `(#:phases (modify-phases %standard-phases
59 (add-after 'install 'check
60 (lambda* (#:key inputs outputs #:allow-other-keys)
61 ;; Tests require the 'bandit' executable in PATH.
62 ;; It's only built during install time.
63 (add-installed-pythonpath inputs outputs)
64 (setenv "PATH" (string-append (assoc-ref outputs "out")
65 "/bin:" (getenv "PATH")))
66 (invoke "python" "setup.py" "testr"))))))
68 `(("python-gitpython" ,python-gitpython)
69 ("python-pyyaml" ,python-pyyaml)
70 ("python-six" ,python-six)
71 ("python-stevedore" ,python-stevedore)))
74 ("python-beautifulsoup4" ,python-beautifulsoup4)
75 ("python-fixtures" ,python-fixtures)
76 ("python-mock" ,python-mock)
77 ("python-subunit" ,python-subunit)
78 ("python-testrepository" ,python-testrepository)
79 ("python-testscenarios" ,python-testscenarios)
80 ("python-testtools" ,python-testtools)))
81 (home-page "https://wiki.openstack.org/wiki/Security/Projects/Bandit")
82 (synopsis "Security oriented static analyser for python code")
84 "Bandit is a tool designed to find common security issues in Python code.
85 To do this Bandit processes each file, builds an AST from it, and runs
86 appropriate plugins against the AST nodes. Once Bandit has finished scanning
87 all the files it generates a report.")
90 (define-public python2-bandit
91 (package-with-python2 python-bandit))
93 (define-public python-debtcollector
95 (name "python-debtcollector")
100 (uri (pypi-uri "debtcollector" version))
103 "06c7vyn184y9f0lsrwaz13aq63hdz5fjrd191b8nifx6acsni42f"))))
104 (build-system python-build-system)
106 `(("python-pbr" ,python-pbr)
107 ("python-six" ,python-six)
108 ("python-wrapt" ,python-wrapt)))
111 ("python-subunit" ,python-subunit)
112 ("python-testrepository" ,python-testrepository)
113 ("python-testtools" ,python-testtools)))
114 (home-page "https://www.openstack.org/")
116 "Find deprecated patterns and strategies in Python code")
118 "This package provides a collection of Python deprecation patterns and
119 strategies that help you collect your technical debt in a non-destructive
121 (properties `((python2-variant . ,(delay python2-debtcollector))))
124 (define-public python2-debtcollector
125 (let ((base (package-with-python2 (strip-python2-variant
126 python-debtcollector))))
130 `(("python2-funcsigs" ,python2-funcsigs)
131 ,@(package-propagated-inputs base))))))
133 (define-public python-hacking
135 (name "python-hacking")
140 (uri (pypi-uri "hacking" version))
143 "0s9l99s64jsyvm28fa4hzllbdi21sb7jn4gzdf1pd5ckvy7p4b0k"))))
144 (build-system python-build-system)
146 `(("python-flake8" ,python-flake8-2.5)
147 ("python-mccabe-0.2.1" ,python-mccabe-0.2.1)
148 ("python-pbr" ,python-pbr)
149 ("python-pep8-1.5.7" ,python-pep8-1.5.7)
150 ("python-pyflakes-0.8.1" ,python-pyflakes-0.8.1)
151 ("python-six" ,python-six)))
154 ("python-eventlet" ,python-eventlet)
155 ("python-mock" ,python-mock)
156 ("python-reno" ,python-reno)
157 ("python-testrepository" ,python-testrepository)
158 ("python-testscenarios" ,python-testscenarios)))
159 (home-page "https://github.com/openstack-dev/hacking")
160 (synopsis "OpenStack hacking guideline enforcement")
162 "Python-hacking is a set of flake8 plugins that test and enforce the
163 @uref{http://docs.openstack.org/developer/hacking/, OpenStack style
167 (define-public python2-hacking
168 (package-with-python2 python-hacking))
170 (define-public python-mox3
177 (uri (pypi-uri "mox3" version))
178 (patches (search-patches "python-mox3-python3.6-compat.patch"))
181 "0w58adwv7q9wzvmq9mlrk2asfk73myq9fpwy7mjkzsz3baa95zf5"))))
182 (build-system python-build-system)
184 `(("python-fixtures" ,python-fixtures)
185 ("python-pbr" ,python-pbr)))
187 `(("python-openstackdocstheme" ,python-openstackdocstheme)
188 ("python-sphinx" ,python-sphinx)
189 ("python-subunit" ,python-subunit)
190 ("python-testrepository" ,python-testrepository)
191 ("python-testtools" ,python-testtools)))
192 (home-page "https://www.openstack.org/")
193 (synopsis "Mock object framework for Python")
195 "Mox3 is an unofficial port of the @uref{https://code.google.com/p/pymox/,
196 Google mox framework} to Python 3. It was meant to be as compatible
197 with mox as possible, but small enhancements have been made.")
200 (define-public python2-mox3
201 (package-with-python2 python-mox3))
203 (define-public python-openstackdocstheme
205 (name "python-openstackdocstheme")
209 (uri (pypi-uri "openstackdocstheme" version))
212 "1ki5204rjdqjvr8xr9w2qc1z6b6d2i5jas0i70xzkf9njlzjzv2r"))))
213 (build-system python-build-system)
215 ;; FIXME: Tests require an old version of python-hacking, which in
216 ;; turn depends on mox3 which depends on this package.
219 `(("python-dulwich" ,python-dulwich)
220 ("python-pbr" ,python-pbr)))
222 `(("python-sphinx" ,python-sphinx)))
223 (home-page "https://docs.openstack.org/openstackdocstheme/latest/")
224 (synopsis "OpenStack Docs Theme")
226 "This package provides themes and extensions for Sphinx for publishing
227 to docs.openstack.org and developer.openstack.org.")
230 (define-public python2-openstackdocstheme
231 (package-with-python2 python-openstackdocstheme))
233 (define-public python-os-client-config
235 (name "python-os-client-config")
240 (uri (pypi-uri "os-client-config" version))
243 "1vjn7667pswnmpqv6ngwyqm2xn46w90hi5b4pv2grwfz751cn1lf"))))
244 (build-system python-build-system)
246 `(#:tests? #f)) ;; Circular dependency with python-oslotest
248 `(("python-appdirs" ,python-appdirs)
249 ("python-pyyaml" ,python-pyyaml)))
251 `(("python-pbr" ,python-pbr)
252 ("python-fixtures" ,python-fixtures)
253 ("python-mimeparse" ,python-mimeparse)
254 ("python-testrepository" ,python-testrepository)
255 ("python-testscenarios" ,python-testscenarios)
256 ("python-testtools" ,python-testtools)))
257 (home-page "https://www.openstack.org/")
259 "OpenStack Client Configuration Library")
261 "The OpenStack Client Configuration Library is a library for collecting
262 client configuration for using an OpenStack cloud in a consistent and
263 comprehensive manner.")
266 (define-public python2-os-client-config
267 (package-with-python2 python-os-client-config))
269 (define-public python-os-testr
271 (name "python-os-testr")
276 (uri (pypi-uri "os-testr" version))
279 "0mknd9hlmxmihr755gjkxyjp180380jajq5i3zm34q7y7bi62lss"))))
280 (build-system python-build-system)
282 ;; os-testr uses itself to run the tests. It seems like pbr writes the
283 ;; exectuable in the virtualenv when using tox. Not sure how to do this
284 ;; when building the package. Skip the tests for now.
287 `(("python-subunit" ,python-subunit)))
289 `(("python-pbr" ,python-pbr)
290 ("python-testtools" ,python-testtools)
291 ("python-babel" ,python-babel)))
292 (home-page "https://www.openstack.org/")
293 (synopsis "Testr wrapper to provide functionality for OpenStack projects")
295 "Os-testr provides developers with a testr wrapper and an output filter
299 (define-public python2-os-testr
300 (package-with-python2 python-os-testr))
302 (define-public python-stevedore
304 (name "python-stevedore")
309 (uri (pypi-uri "stevedore" version))
312 "02ynfgwma84g59834dmvzr39mcppy5s229zf1w23c0qngf753izi"))))
313 (build-system python-build-system)
315 `(("python-pbr" ,python-pbr)
316 ("python-six" ,python-six)))
318 `(("python-mock" ,python-mock)
319 ("python-sphinx" ,python-sphinx)
320 ("python-testrepository" ,python-testrepository)))
321 (home-page "https://github.com/dreamhost/stevedore")
322 (synopsis "Manage dynamic plugins for Python applications")
324 "Python makes loading code dynamically easy, allowing you to configure
325 and extend your application by discovering and loading extensions (\"plugins\")
326 at runtime. Many applications implement their own library for doing this,
327 using __import__ or importlib. Stevedore avoids creating yet another extension
328 mechanism by building on top of setuptools entry points. The code for managing
329 entry points tends to be repetitive, though, so stevedore provides manager
330 classes for implementing common patterns for using dynamically loaded
334 (define-public python2-stevedore
335 (package-with-python2 python-stevedore))
337 (define-public python-tempest-lib
339 (name "python-tempest-lib")
344 (uri (pypi-uri "tempest-lib" version))
347 "1cpp2vwmawpd29hjsklsps181lq2ah91cl412qvpnz228nf9sqn5"))))
348 (build-system python-build-system)
350 `(#:tests? #f ; FIXME: Requires oslo.log >= 1.14.0.
352 (modify-phases %standard-phases
356 (substitute* "tempest_lib/tests/cli/test_execute.py"
357 (("/bin/ls") (which "ls"))))))))
359 `(("python-fixtures" ,python-fixtures)
360 ("python-httplib2" ,python-httplib2)
361 ("python-iso8601" ,python-iso8601)
362 ("python-jsonschema" ,python-jsonschema)
363 ("python-oslo.log" ,python-oslo.log)
364 ("python-paramiko" ,python-paramiko)
365 ("python-pbr" ,python-pbr)
366 ("python-six" ,python-six)))
368 `(("python-babel" ,python-babel)
369 ("python-mock" ,python-mock)
370 ("python-os-testr" ,python-os-testr)
371 ("python-oslotest" ,python-oslotest)))
372 (home-page "https://www.openstack.org/")
373 (synopsis "OpenStack functional testing library")
375 "Tempest-lib is a functional testing library for OpenStack. It provides
376 common features used in Tempest.")
379 (define-public python2-tempest-lib
380 (package-with-python2 python-tempest-lib))
382 ;; Packages from the Oslo library
383 (define-public python-oslo.config
385 (name "python-oslo.config")
390 (uri (pypi-uri "oslo.config" version))
393 "0ymf7jxbq29fifyvkwhfiys1qvljqfxdw8ajwzwaf3yiqidgpxqd"))))
394 (build-system python-build-system)
396 `(("python-debtcollector" ,python-debtcollector)
397 ("python-netaddr" ,python-netaddr)
398 ("python-oslo.i18n" ,python-oslo.i18n)
399 ("python-pbr" ,python-pbr)
400 ("python-rfc3986" ,python-rfc3986)
401 ("python-six" ,python-six)
402 ("python-stevedore" ,python-stevedore)
403 ("python-pyyaml" ,python-pyyaml)))
405 `(("python-bandit" ,python-bandit)
406 ("python-coverage" ,python-coverage)
407 ("python-mock" ,python-mock)
408 ("python-openstackdocstheme" ,python-openstackdocstheme)
409 ("python-oslotest" ,python-oslotest)
410 ("python-reno" ,python-reno)
411 ("python-sphinx" ,python-sphinx)
412 ("python-testrepository" ,python-testrepository)
413 ("python-testscenarios" ,python-testscenarios)
414 ("python-testtools" ,python-testtools)))
415 (home-page "https://launchpad.net/oslo")
416 (synopsis "Oslo Configuration API")
418 "The Oslo configuration API supports parsing command line arguments and
419 .ini style configuration files.")
422 (define-public python2-oslo.config
423 (package-with-python2 python-oslo.config))
425 (define-public python-oslo.context
427 (name "python-oslo.context")
432 (uri (pypi-uri "oslo.context" version))
435 "0iiq9rpwg6wrdqnhf3d8z8g0g7fjhs5zn6qw6igvxplz2c3rbvvx"))))
436 (build-system python-build-system)
438 `(("python-debtcollector" ,python-debtcollector)
439 ("python-pbr" ,python-pbr)))
441 `(("python-fixtures" ,python-fixtures)
442 ("python-hacking" ,python-hacking)
443 ("python-oslotest" ,python-oslotest)))
444 (home-page "https://launchpad.net/oslo")
445 (synopsis "Oslo context library")
447 "The Oslo context library has helpers to maintain useful information
448 about a request context. The request context is usually populated in the WSGI
449 pipeline and used by various modules such as logging.")
452 (define-public python2-oslo.context
453 (package-with-python2 python-oslo.context))
455 (define-public python-oslo.i18n
457 (name "python-oslo.i18n")
462 (uri (pypi-uri "oslo.i18n" version))
465 "0kjcdw4bk3mi4vqmqwhhq053kxbbbj05si6nwxd1pzx33z067ky3"))))
466 (build-system python-build-system)
468 `(("python-babel" ,python-babel)
469 ("python-six" ,python-six)))
471 `(("python-pbr" ,python-pbr)
473 ("python-mock" ,python-mock)
474 ("python-mox3" ,python-mox3)
475 ("python-oslotest" ,python-oslotest)
476 ("python-testscenarios" ,python-testscenarios)))
477 (home-page "https://launchpad.net/oslo")
478 (synopsis "Oslo internationalization (i18n) library")
480 "The oslo.i18n library contain utilities for working with
481 internationalization (i18n) features, especially translation for text strings
482 in an application or library.")
485 (define-public python2-oslo.i18n
486 (package-with-python2 python-oslo.i18n))
488 (define-public python-oslo.log
490 (name "python-oslo.log")
495 (uri (pypi-uri "oslo.log" version))
498 "0h7hplf1h8k24v75m3mq1jlrl74x5ynyr4hwgffsg5campxnza4x"))))
499 (build-system python-build-system)
501 `(("python-dateutil" ,python-dateutil)
502 ("python-debtcollector" ,python-debtcollector)
503 ("python-monotonic" ,python-monotonic)
504 ("python-oslo.config" ,python-oslo.config)
505 ("python-oslo.context" ,python-oslo.context)
506 ("python-oslo.i18n" ,python-oslo.i18n)
507 ("python-oslo.utils" ,python-oslo.utils)
508 ("python-oslo.serialization" ,python-oslo.serialization)
509 ("python-pbr" ,python-pbr)
510 ("python-pyinotify" ,python-pyinotify)
511 ("python-six" ,python-six)))
513 `(("python-mock" ,python-mock)
514 ("python-oslotest" ,python-oslotest)
515 ("python-subunit" ,python-subunit)
516 ("python-testrepository" ,python-testrepository)
517 ("python-testtools" ,python-testtools)))
518 (home-page "https://launchpad.net/oslo")
519 (synopsis "Python logging library of the Oslo project")
521 "The oslo.log (logging) configuration library provides standardized
522 configuration for all OpenStack projects. It also provides custom formatters,
523 handlers and support for context specific logging (like resource id’s etc).")
526 (define-public python2-oslo.log
527 (package-with-python2 python-oslo.log))
529 (define-public python-oslo.serialization
531 (name "python-oslo.serialization")
536 (uri (pypi-uri "oslo.serialization" version))
539 "08bxkp98c617y58x630xq44iiffm7f0f3cwh6zbnlkgq0zgh7jk1"))))
540 (build-system python-build-system)
542 `(("python-msgpack" ,python-msgpack)
543 ("python-netaddr" ,python-netaddr)
544 ("python-oslo.utils" ,python-oslo.utils)
545 ("python-six" ,python-six)
546 ("python-pytz" ,python-pytz)))
548 `(("python-pbr" ,python-pbr)
550 ("python-mock" ,python-mock)
551 ("python-oslo.i18n" ,python-oslo.i18n)
552 ("python-oslotest" ,python-oslotest)))
553 (home-page "https://launchpad.net/oslo")
554 (synopsis "Oslo serialization library")
556 "The oslo.serialization library provides support for representing objects
557 in transmittable and storable formats, such as JSON and MessagePack.")
558 (properties `((python2-variant . ,(delay python2-oslo.serialization))))
561 (define-public python2-oslo.serialization
562 (let ((base (package-with-python2 (strip-python2-variant
563 python-oslo.serialization))))
567 `(("python2-ipaddress" ,python2-ipaddress)
568 ,@(package-native-inputs base))))))
570 (define-public python-reno
577 (uri (pypi-uri "reno" version))
579 (base32 "0gwzi5dvacqx43smxl3rd1z33npn7gfhm50bvgmq90fib2q431wc"))))
580 (build-system python-build-system)
583 (modify-phases %standard-phases
584 (add-before 'check 'init-git
586 ;; reno expects a git repo
587 (invoke "git" "init"))))))
589 `(("python-dulwich" ,python-dulwich)
590 ("python-pbr" ,python-pbr)
591 ("python-pyyaml" ,python-pyyaml)
592 ("python-six" ,python-six)))
594 `(("python-testtools" ,python-testtools)
595 ("python-testscenarios" ,python-testscenarios)
596 ("python-testrepository" ,python-testrepository)
597 ("python-mock" ,python-mock)
598 ("python-docutils" ,python-docutils)
599 ("python-sphinx" ,python-sphinx)
601 ("git" ,git-minimal)))
602 (home-page "https://docs.openstack.org/reno/latest/")
603 (synopsis "Release notes manager")
604 (description "Reno is a tool for storing release notes in a git repository
605 and building documentation from them.")
608 (define-public python2-reno
609 (package-with-python2 python-reno))
611 (define-public python-oslosphinx
613 (name "python-oslosphinx")
618 (uri (pypi-uri "oslosphinx" version))
621 "09mxqyabi68f3s3arvdhlhq0mn38vf74jbsfcg84151hcj6czhnl"))))
622 (build-system python-build-system)
625 (modify-phases %standard-phases
628 ;; Note: Upstream tests would have also built the release notes.
629 ;; That only would work if we were in a git checkout.
630 ;; Therefore, we don't do it here.
631 (invoke "python" "setup.py" "build_sphinx"))))))
633 `(("python-requests" ,python-requests)))
635 `(("python-pbr" ,python-pbr)
636 ("python-docutils" ,python-docutils)
637 ("python-hacking" ,python-hacking)
638 ("python-sphinx" ,python-sphinx)))
639 (home-page "https://www.openstack.org/")
640 (synopsis "OpenStack sphinx extensions and theme")
642 "This package provides themes and extensions for Sphinx documentation
643 from the OpenStack project.")
646 (define-public python2-oslosphinx
647 (package-with-python2 python-oslosphinx))
649 (define-public python-oslotest
651 (name "python-oslotest")
656 (uri (pypi-uri "oslotest" version))
659 "1pp8lq61d548cxcqi451czvrz5i5b3hyi2ry00wmngdgiswcqj1h"))))
660 (build-system python-build-system)
662 `(("python-fixtures" ,python-fixtures)
663 ("python-mock" ,python-mock)
664 ("python-mox3" ,python-mox3)
665 ("python-os-client-config" ,python-os-client-config)
666 ("python-six" ,python-six)
667 ("python-subunit" ,python-subunit)
668 ("python-testrepository" ,python-testrepository)
669 ("python-testtools" ,python-testtools)))
671 `(("python-pbr" ,python-pbr)
672 ("python-testscenarios" ,python-testscenarios)))
673 (home-page "https://launchpad.net/oslo")
674 (synopsis "Oslo test framework")
676 "The Oslo Test framework provides common fixtures, support for debugging,
677 and better support for mocking results.")
680 (define-public python2-oslotest
681 (package-with-python2 python-oslotest))
683 (define-public python-oslo.utils
685 (name "python-oslo.utils")
690 (uri (pypi-uri "oslo.utils" version))
693 "1ipjcgg9z697wmibhcbg5lqpk5gafakdx4qkff3w255zr0mvw04r"))))
694 (build-system python-build-system)
696 `(("python-debtcollector" ,python-debtcollector)
697 ("python-oslo.i18n" ,python-oslo.i18n)
698 ("python-iso8601" ,python-iso8601)
699 ("python-monotonic" ,python-monotonic)
700 ("python-netaddr" ,python-netaddr)
701 ("python-netifaces" ,python-netifaces)
702 ("python-pyparsing" ,python-pyparsing)
703 ("python-pytz" ,python-pytz)
704 ("python-six" ,python-six)))
706 `(("python-pbr" ,python-pbr)
708 ("python-bandit" ,python-bandit)
709 ("python-ddt" ,python-ddt)
710 ("python-fixtures" ,python-fixtures)
711 ("python-oslo.config" ,python-oslo.config)
712 ("python-oslotest" ,python-oslotest)
713 ("python-mock" ,python-mock)
714 ("python-testrepository" ,python-testrepository)
715 ("python-testscenarios" ,python-testscenarios)
716 ("python-testtools" ,python-testtools)))
717 (home-page "https://launchpad.net/oslo")
718 (synopsis "Oslo utility library")
720 "The @code{oslo.utils} library provides support for common utility type
721 functions, such as encoding, exception handling, string manipulation, and time
725 (define-public python2-oslo.utils
726 (package-with-python2 python-oslo.utils))
728 (define-public python-keystoneclient
730 (name "python-keystoneclient")
735 (uri (pypi-uri "python-keystoneclient" version))
738 "1w4csvkah67rfpxylxnvs2s3594i0f9isy8pf4gnsqs5zirvjaa4"))))
739 (build-system python-build-system)
741 '(#:tests? #f)) ; FIXME: Many tests are failing.
743 `(("python-sphinx" ,python-sphinx)
744 ;; and some packages for the tests
746 ("python-coverage" ,python-coverage)
747 ("python-discover" ,python-discover)
748 ("python-fixtures" ,python-fixtures)
749 ("python-hacking" ,python-hacking)
750 ("python-keyring" ,python-keyring)
751 ("python-lxml" ,python-lxml)
752 ("python-mock" ,python-mock)
753 ("python-mox3" ,python-mox3)
754 ("python-oauthlib" ,python-oauthlib)
755 ("python-oslosphinx" ,python-oslosphinx)
756 ("python-oslotest" ,python-oslotest)
757 ("python-pycrypto" ,python-pycrypto)
758 ("python-requests-mock" ,python-requests-mock)
759 ("python-temptest-lib" ,python-tempest-lib)
760 ("python-testrepository" ,python-testrepository)
761 ("python-testresources" ,python-testresources)
762 ("python-testtools" ,python-testtools)
763 ("python-webob" ,python-webob)))
765 `(("python-babel" ,python-babel)
766 ("python-debtcollector" ,python-debtcollector)
767 ("python-iso8601" ,python-iso8601)
768 ("python-netaddr" ,python-netaddr)
769 ("python-oslo.config" ,python-oslo.config)
770 ("python-oslo.i18n" ,python-oslo.i18n)
771 ("python-oslo.serialization" ,python-oslo.serialization)
772 ("python-oslo.utils" ,python-oslo.utils)
773 ("python-pbr" ,python-pbr)
774 ("python-prettytable" ,python-prettytable)
775 ("python-requests" ,python-requests)
776 ("python-six" ,python-six)
777 ("python-stevedore" ,python-stevedore)))
778 (home-page "https://www.openstack.org/")
779 (synopsis "Client Library for OpenStack Identity")
781 "Python-keystoneclient is the identity service used by OpenStack for
782 authentication (authN) and high-level authorization (authZ). It currently
783 supports token-based authN with user/service authZ, and is scalable to support
784 OAuth, SAML, and OpenID in future versions. Out of the box, Keystone uses
785 SQLite for its identity store database, with the option to connect to external
789 (define-public python-swiftclient
791 (name "python-swiftclient")
796 (uri (pypi-uri "python-swiftclient" version))
799 "1j33l4z9vqh0scfncl4fxg01zr1hgqxhhai6gvcih1gccqm4nd7p"))))
800 (build-system python-build-system)
802 `(("python-pbr" ,python-pbr)
803 ("python-sphinx" ,python-sphinx)
804 ;; The folloing packages are needed for the tests.
805 ("python-coverage" ,python-coverage)
806 ("python-discover" ,python-discover)
807 ("python-hacking" ,python-hacking)
808 ("python-mock" ,python-mock)
809 ("python-oslosphinx" ,python-oslosphinx)
810 ("python-keystoneclient" ,python-keystoneclient)
811 ("python-testrepository" ,python-testrepository)
812 ("python-testtools" ,python-testtools)))
814 `(("python-requests" ,python-requests)
815 ("python-six" ,python-six)))
816 (home-page "https://www.openstack.org/")
817 (synopsis "OpenStack Object Storage API Client Library")
819 "OpenStack Object Storage (code-named Swift) creates redundant, scalable
820 object storage using clusters of standardized servers to store petabytes of
821 accessible data. It is not a file system or real-time data storage system, but
822 rather a long-term storage system for a more permanent type of static data that
823 can be retrieved, leveraged, and then updated if necessary. Primary examples of
824 data that best fit this type of storage model are virtual machine images, photo
825 storage, email storage and backup archiving. Having no central \"brain\" or
826 master point of control provides greater scalability, redundancy and
828 (properties `((python2-variant . ,(delay python2-swiftclient))))
831 (define-public python2-swiftclient
832 (let ((swiftclient (package-with-python2
833 (strip-python2-variant python-swiftclient))))
834 (package (inherit swiftclient)
836 `(("python2-futures" ,python2-futures)
837 ,@(package-propagated-inputs swiftclient))))))
839 (define-public python-git-review
841 (name "python-git-review")
846 (uri (pypi-uri "git-review" version))
848 (base32 "0nn17mfqvsa3ryjz53qjslmf60clc0vx2115kkj66h28p6vsnflf"))))
849 (build-system python-build-system)
851 '(#:tests? #f ; tests require a running Gerrit server
853 (modify-phases %standard-phases
854 (add-after 'install 'wrap-program
855 (lambda* (#:key inputs outputs #:allow-other-keys)
856 (let* ((out (assoc-ref outputs "out"))
857 (git (assoc-ref inputs "git"))
858 (openssh (assoc-ref inputs "openssh")))
859 (wrap-program (string-append out "/bin/git-review")
862 (string-append dir "/bin"))
863 (list git openssh)))))
866 `(("python-pbr" ,python-pbr)))
868 `(("python-requests" ,python-requests)))
871 ("openssh" ,openssh)))
872 (home-page "https://docs.openstack.org/infra/git-review/")
873 (synopsis "Command-line tool for Gerrit")
875 "Git-review is a command-line tool that helps submitting Git branches to
876 Gerrit for review, or fetching existing ones.")
879 (define-public python2-git-review
880 (package-with-python2 python-git-review))