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 Clément Lassieur <clement@lassieur.org>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages openstack)
22 #:use-module (gnu packages python)
23 #:use-module (gnu packages ssh)
24 #:use-module (gnu packages tls)
25 #:use-module (gnu packages version-control)
26 #:use-module (guix build-system python)
27 #:use-module (guix download)
28 #:use-module ((guix licenses)
30 #:use-module (guix packages)
31 #:use-module (srfi srfi-1))
33 (define-public python-bandit
35 (name "python-bandit")
41 "https://pypi.python.org/packages/source/b/bandit/bandit-"
45 "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g"))))
46 (build-system python-build-system)
48 `(("python-appdirs" ,python-appdirs)
49 ("python-pyyaml" ,python-pyyaml)
50 ("python-six" ,python-six)
51 ("python-stevedore" ,python-stevedore)))
53 `(("python-pbr" ,python-pbr)
54 ("python-setuptools" ,python-setuptools)
56 ("python-fixtures" ,python-fixtures)
57 ("python-mock" ,python-mock)
58 ("python-testrepository" ,python-testrepository)
59 ("python-testscenarios" ,python-testscenarios)
60 ("python-testtools" ,python-testtools)))
61 (home-page "https://wiki.openstack.org/wiki/Security/Projects/Bandit")
62 (synopsis "Security oriented static analyser for python code")
64 "Bandit is a tool designed to find common security issues in Python code.
65 To do this Bandit processes each file, builds an AST from it, and runs
66 appropriate plugins against the AST nodes. Once Bandit has finished scanning
67 all the files it generates a report.")
70 (define-public python2-bandit
71 (package-with-python2 python-bandit))
73 (define-public python-debtcollector
75 (name "python-debtcollector")
80 (uri (pypi-uri "debtcollector" version))
83 "0g4dfskaiy47rhsh4gh66l5vmdsrgq0qk68pl3ix1cj3ffvfndzv"))))
84 (build-system python-build-system)
86 `(("python-six" ,python-six)
87 ("python-wrapt" ,python-wrapt)))
89 `(("python-babel" ,python-babel)
90 ("python-pbr" ,python-pbr)
91 ("python-setuptools" ,python-setuptools)
93 ("python-oslotest" ,python-oslotest)))
94 (home-page "http://www.openstack.org/")
96 "Find deprecated patterns and strategies in Python code")
98 "This package provides a collection of Python deprecation patterns and
99 strategies that help you collect your technical debt in a non-destructive
103 (define-public python2-debtcollector
104 (package-with-python2 python-debtcollector))
106 (define-public python-hacking
108 (name "python-hacking")
113 (uri (pypi-uri "hacking" version))
116 "1a310k3dv04jg7zvmk37h2ql7y9kf4hvdxb74bjlwdxgmy6h4wap"))))
117 (build-system python-build-system)
119 `(("python-flake8-2.2.4" ,python-flake8-2.2.4)
120 ("python-mccabe-0.2.1" ,python-mccabe-0.2.1)
121 ("python-pbr" ,python-pbr)
122 ("python-pep8-1.5.7" ,python-pep8-1.5.7)
123 ("python-pyflakes-0.8.1" ,python-pyflakes-0.8.1)
124 ("python-six" ,python-six)))
126 `(("python-setuptools" ,python-setuptools)
128 ("python-testscenarios" ,python-testscenarios)))
129 (home-page "http://github.com/openstack-dev/hacking")
130 (synopsis "OpenStack hacking guideline enforcement")
132 "Python-hacking is a set of flake8 plugins that test and enforce the
133 @uref{http://docs.openstack.org/developer/hacking/, OpenStack style
137 (define-public python2-hacking
138 (package-with-python2 python-hacking))
140 (define-public python-mox3
147 (uri (pypi-uri "mox3" version))
150 "0njmh40i1lg5mzn9hc2ax83adj6dli455j6xifilrw27c4wlkjzx"))))
151 (build-system python-build-system)
153 `(("python-fixtures" ,python-fixtures)
154 ("python-pbr" ,python-pbr)
155 ("python-setuptools" ,python-setuptools)
156 ("python-six" ,python-six)
157 ("python-testtools" ,python-testtools)))
158 (home-page "http://www.openstack.org/")
159 (synopsis "Mock object framework for Python")
161 "Mox3 is an unofficial port of the Google mox framework
162 (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
163 with mox as possible, but small enhancements have been made. The library was
164 tested on Python version 3.2, 2.7 and 2.6.")
167 (define-public python2-mox3
168 (package-with-python2 python-mox3))
170 (define-public python-os-client-config
172 (name "python-os-client-config")
177 (uri (pypi-uri "os-client-config" version))
180 "1vjn7667pswnmpqv6ngwyqm2xn46w90hi5b4pv2grwfz751cn1lf"))))
181 (build-system python-build-system)
183 `(#:tests? #f)) ;; Circular dependency with python-oslotest
185 `(("python-appdirs" ,python-appdirs)
186 ("python-fixtures" ,python-fixtures)
187 ("python-mimeparse" ,python-mimeparse)
188 ("python-pbr" ,python-pbr)
189 ("python-pyyaml" ,python-pyyaml)
190 ("python-testrepository" ,python-testrepository)
191 ("python-setuptools" ,python-setuptools)
192 ("python-testscenarios" ,python-testscenarios)
193 ("python-testtools" ,python-testtools)))
194 (home-page "http://www.openstack.org/")
196 "OpenStack Client Configuration Library")
198 "The OpenStack Client Configuration Library is a library for collecting
199 client configuration for using an OpenStack cloud in a consistent and
200 comprehensive manner.")
203 (define-public python2-os-client-config
204 (package-with-python2 python-os-client-config))
206 (define-public python-os-testr
208 (name "python-os-testr")
213 (uri (pypi-uri "os-testr" version))
216 "0bv03wnmvxhyi8y08hjh9clxrwqc2251529v4kh5khvca0fsbqdp"))))
217 (build-system python-build-system)
219 ;; os-testr uses itself to run the tests. It seems like pbr writes the
220 ;; exectuable in the virtualenv when using tox. Not sure how to do this
221 ;; when building the package. Skip the tests for now.
224 `(("python-pbr" ,python-pbr)
225 ("python-subunit" ,python-subunit)
226 ("python-testtools" ,python-testtools)))
228 `(("python-babel" ,python-babel)
229 ("python-setuptools" ,python-setuptools)))
230 (home-page "http://www.openstack.org/")
231 (synopsis "Testr wrapper to provide functionality for OpenStack projects")
233 "Os-testr provides developers with a testr wrapper and an output filter
237 (define-public python2-os-testr
238 (package-with-python2 python-os-testr))
240 (define-public python-requests-mock
242 (name "python-requests-mock")
247 (uri (pypi-uri "requests-mock" version))
250 "0gcjjwsckhqixyffflc54i59x41jnbb37bli077vabii1bjmkin6"))))
251 (build-system python-build-system)
253 `(("python-requests" ,python-requests)
254 ("python-six" ,python-six)))
256 `(("python-pbr" ,python-pbr)))
258 `(("python-discover" ,python-discover)
259 ("python-fixtures" ,python-fixtures)
260 ("python-mock" ,python-mock)
261 ("python-sphinx" ,python-sphinx)
262 ("python-testrepository" ,python-testrepository)
263 ("python-testtools" ,python-testtools)))
264 (home-page "https://requests-mock.readthedocs.org/")
265 (synopsis "Mock out responses from the requests package")
267 "This module provides a building block to stub out the HTTP requests
268 portions of your testing code.")
270 (properties `((python2-variant . ,(delay python2-requests-mock))))))
272 (define-public python2-requests-mock
273 (let ((base (package-with-python2
274 (strip-python2-variant python-requests-mock))))
275 (package (inherit base)
277 `(("python2-setuptools" ,python2-setuptools)
278 ,@(package-native-inputs base))))))
280 (define-public python-stevedore
282 (name "python-stevedore")
287 (uri (pypi-uri "stevedore" version))
290 "0999zvawaapzg6givjhn7vjscdwblcs73wf28wq1wb4g5mbb5phv"))))
291 (build-system python-build-system)
293 `(("python-six" ,python-six)))
295 `(("python-pbr" ,python-pbr)))
297 `(("python-setuptools" ,python-setuptools)
299 ("python-docutils" ,python-docutils)
300 ("python-mock" ,python-mock)
301 ("python-oslotest" ,python-oslotest)
302 ("python-sphinx" ,python-sphinx)))
303 (home-page "https://github.com/dreamhost/stevedore")
304 (synopsis "Manage dynamic plugins for Python applications")
306 "Python makes loading code dynamically easy, allowing you to configure
307 and extend your application by discovering and loading extensions (\"plugins\")
308 at runtime. Many applications implement their own library for doing this,
309 using __import__ or importlib. Stevedore avoids creating yet another extension
310 mechanism by building on top of setuptools entry points. The code for managing
311 entry points tends to be repetitive, though, so stevedore provides manager
312 classes for implementing common patterns for using dynamically loaded
316 (define-public python2-stevedore
317 (package-with-python2 python-stevedore))
319 (define-public python-tempest-lib
321 (name "python-tempest-lib")
326 (uri (pypi-uri "tempest-lib" version))
329 "0f15wxk394cb2kw34krpxq8mvy1rxw0lnl5wfiv14cq1s1fm9cjd"))))
330 (build-system python-build-system)
333 (modify-phases %standard-phases
337 (substitute* "tempest_lib/tests/cli/test_execute.py"
338 (("/bin/ls") (which "ls"))))))))
340 `(("python-fixtures" ,python-fixtures)
341 ("python-httplib2" ,python-httplib2)
342 ("python-iso8601" ,python-iso8601)
343 ("python-jsonschema" ,python-jsonschema)
344 ("python-oslo.log" ,python-oslo.log)
345 ("python-paramiko" ,python-paramiko)
346 ("python-pbr" ,python-pbr)
347 ("python-six" ,python-six)))
349 `(("python-babel" ,python-babel)
350 ("python-mock" ,python-mock)
351 ("python-os-testr" ,python-os-testr)
352 ("python-oslotest" ,python-oslotest)
353 ("python-setuptools" ,python-setuptools)))
354 (home-page "http://www.openstack.org/")
355 (synopsis "OpenStack functional testing library")
357 "Tempest-lib is a functional testing library for OpenStack. It provides
358 common features used in Tempest.")
361 (define-public python2-tempest-lib
362 (package-with-python2 python-tempest-lib))
364 ;; Packages from the Oslo library
365 (define-public python-oslo.config
367 (name "python-oslo.config")
373 "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-"
378 "13r778jfb0fhna37c2pd1f2xipnsbd7zli7qhn96acrzymrwj5k1"))))
379 (build-system python-build-system)
381 `(("python-netaddr" ,python-netaddr)
382 ("python-six" ,python-six)
383 ("python-stevedore" ,python-stevedore)))
385 `(("python-pbr" ,python-pbr)
386 ("python-setuptools" ,python-setuptools)
388 ("python-oslo.i18n" ,python-oslo.i18n)
389 ("python-mock" ,python-mock)
390 ("python-oslotest" ,python-oslotest)
391 ("python-testscenarios" ,python-testscenarios)))
392 (home-page "https://launchpad.net/oslo")
393 (synopsis "Oslo Configuration API")
395 "The Oslo configuration API supports parsing command line arguments and
396 .ini style configuration files.")
399 (define-public python2-oslo.config
400 (package-with-python2 python-oslo.config))
402 (define-public python-oslo.context
404 (name "python-oslo.context")
409 (uri (pypi-uri "oslo.context" version))
412 "0kvha0rs9295njyl2z6n6zm5dapi5mrl5zwjm0m6ldqrvccyf8c3"))))
413 (build-system python-build-system)
415 `(("python-babel" ,python-babel)
416 ("python-pbr" ,python-pbr)
417 ("python-setuptools" ,python-setuptools)
419 ("python-oslotest" ,python-oslotest)))
420 (home-page "http://launchpad.net/oslo")
421 (synopsis "Oslo context library")
423 "The Oslo context library has helpers to maintain useful information
424 about a request context. The request context is usually populated in the WSGI
425 pipeline and used by various modules such as logging.")
428 (define-public python2-oslo.context
429 (package-with-python2 python-oslo.context))
431 (define-public python-oslo.i18n
433 (name "python-oslo.i18n")
438 (uri (pypi-uri "oslo.i18n" version))
441 "0bpb1c20sm8my650gl824nzaip83bfn8hr91s65k5ncmyh8hb6pl"))))
442 (build-system python-build-system)
444 `(("python-babel" ,python-babel)
445 ("python-six" ,python-six)))
447 `(("python-pbr" ,python-pbr)
448 ("python-setuptools" ,python-setuptools)
450 ("python-mock" ,python-mock)
451 ("python-mox3" ,python-mox3)
452 ("python-oslotest" ,python-oslotest)
453 ("python-testscenarios" ,python-testscenarios)))
454 (home-page "http://launchpad.net/oslo")
455 (synopsis "Oslo internationalization (i18n) library")
457 "The oslo.i18n library contain utilities for working with
458 internationalization (i18n) features, especially translation for text strings
459 in an application or library.")
462 (define-public python2-oslo.i18n
463 (package-with-python2 python-oslo.i18n))
465 (define-public python-oslo.log
467 (name "python-oslo.log")
473 "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-"
478 "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z"))))
479 (build-system python-build-system)
481 `(("python-debtcollector" ,python-debtcollector)
482 ("python-oslo.config" ,python-oslo.config)
483 ("python-oslo.context" ,python-oslo.context)
484 ("python-oslo.i18n" ,python-oslo.i18n)
485 ("python-oslo.utils" ,python-oslo.utils)
486 ("python-oslo.serialization" ,python-oslo.serialization)
487 ("python-six" ,python-six)))
489 `(("python-babel" ,python-babel)
490 ("python-iso8601" ,python-iso8601)
491 ("python-mock" ,python-mock)
492 ("python-oslotest" ,python-oslotest)
493 ("python-pbr" ,python-pbr)
494 ("python-setuptools" ,python-setuptools)))
495 (home-page "http://launchpad.net/oslo")
496 (synopsis "Python logging library of the Oslo project")
498 "The oslo.log (logging) configuration library provides standardized
499 configuration for all OpenStack projects. It also provides custom formatters,
500 handlers and support for context specific logging (like resource id’s etc).")
503 (define-public python2-oslo.log
504 (package-with-python2 python-oslo.log))
506 (define-public python-oslo.serialization
508 (name "python-oslo.serialization")
513 (uri (pypi-uri "oslo.serialization" version))
516 "00s03krhf833gs76aw5ns32w9m1i4hx6x6d9g82m0j5wyqk0sci4"))))
517 (build-system python-build-system)
519 `(("python-iso8601" ,python-iso8601)
520 ("python-netaddr" ,python-netaddr)
521 ("python-oslo.utils" ,python-oslo.utils)
522 ("python-simplejson" ,python-simplejson)
523 ("python-six" ,python-six)
524 ("python-pytz" ,python-pytz)))
526 `(("python-babel" ,python-babel)
527 ("python-pbr" ,python-pbr)
528 ("python-setuptools" ,python-setuptools)
530 ("python-mock" ,python-mock)
531 ("python-oslo.i18n" ,python-oslo.i18n)
532 ("python-oslotest" ,python-oslotest)))
533 (home-page "http://launchpad.net/oslo")
534 (synopsis "Oslo serialization library")
536 "The oslo.serialization library provides support for representing objects
537 in transmittable and storable formats, such as JSON and MessagePack.")
540 (define-public python2-oslo.serialization
541 (package-with-python2 python-oslo.serialization))
543 (define-public python-oslosphinx
545 (name "python-oslosphinx")
550 (uri (pypi-uri "oslosphinx" version))
553 "0cz8ym4i1n4rgljlqhyhfkpgdmid7nkb909k8r8nk186m9cmpla2"))))
554 (build-system python-build-system)
556 `(("python-requests" ,python-requests)))
558 `(("python-pbr" ,python-pbr)
559 ("python-docutils" ,python-docutils)
560 ("python-hacking" ,python-hacking)
561 ("python-setuptools" ,python-setuptools)
562 ("python-sphinx" ,python-sphinx)))
563 (home-page "http://www.openstack.org/")
564 (synopsis "OpenStack sphinx extensions and theme")
566 "This package provides themes and extensions for Sphinx documentation
567 from the OpenStack project.")
570 (define-public python2-oslosphinx
571 (package-with-python2 python-oslosphinx))
573 (define-public python-oslotest
575 (name "python-oslotest")
581 "https://pypi.python.org/packages/source/o/oslotest/oslotest-"
586 "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs"))))
587 (build-system python-build-system)
589 `(("python-fixtures" ,python-fixtures)
590 ("python-mock" ,python-mock)
591 ("python-mox3" ,python-mox3)
592 ("python-six" ,python-six)))
594 `(("python-pbr" ,python-pbr)
595 ("python-os-client-config" ,python-os-client-config)
596 ("python-setuptools" ,python-setuptools)
597 ("python-subunit" ,python-subunit)
598 ("python-testrepository" ,python-testrepository)
599 ("python-testscenarios" ,python-testscenarios)
600 ("python-testtools" ,python-testtools)))
601 (home-page "http://launchpad.net/oslo")
602 (synopsis "Oslo test framework")
604 "The Oslo Test framework provides common fixtures, support for debugging,
605 and better support for mocking results.")
608 (define-public python2-oslotest
609 (package-with-python2 python-oslotest))
611 (define-public python-oslo.utils
613 (name "python-oslo.utils")
618 (uri (pypi-uri "oslo.utils" version))
621 "1c4jrbvfs4hs37fics8frqlyhmsv7v92ncv2cpbm0av9x0ic6pnj"))
624 ;; FIXME: setuptools fails to import this file during the test
626 (delete-file "oslo_utils/tests/test_netutils.py")))))
627 (build-system python-build-system)
629 `(("python-debtcollector" ,python-debtcollector)
630 ("python-oslo.i18n" ,python-oslo.i18n)
631 ("python-iso8601" ,python-iso8601)
632 ("python-monotonic" ,python-monotonic)
633 ("python-netaddr" ,python-netaddr)
634 ("python-netifaces" ,python-netifaces)
635 ("python-pytz" ,python-pytz)
636 ("python-six" ,python-six)))
638 `(("python-babel" ,python-babel)
639 ("python-pbr" ,python-pbr)
640 ("python-setuptools" ,python-setuptools)
642 ("python-oslotest" ,python-oslotest)
643 ("python-mock" ,python-mock)
644 ("python-mox3" ,python-mox3)
645 ("python-testscenarios" ,python-testscenarios)))
646 (home-page "http://launchpad.net/oslo")
647 (synopsis "Oslo utility library")
649 "The @code{oslo.utils} library provides support for common utility type
650 functions, such as encoding, exception handling, string manipulation, and time
654 (define-public python2-oslo.utils
655 (package-with-python2 python-oslo.utils))
657 (define-public python-keystoneclient
659 (name "python-keystoneclient")
664 (uri (pypi-uri "python-keystoneclient" version))
667 "1w4csvkah67rfpxylxnvs2s3594i0f9isy8pf4gnsqs5zirvjaa4"))))
668 (build-system python-build-system)
670 `(("python-setuptools" ,python-setuptools)
671 ("python-sphinx" ,python-sphinx)
672 ;; and some packages for the tests
674 ("python-coverage" ,python-coverage)
675 ("python-discover" ,python-discover)
676 ("python-fixtures" ,python-fixtures)
677 ("python-hacking" ,python-hacking)
678 ("python-keyring" ,python-keyring)
679 ("python-lxml" ,python-lxml)
680 ("python-mock" ,python-mock)
681 ("python-mox3" ,python-mox3)
682 ("python-oauthlib" ,python-oauthlib)
683 ("python-oslosphinx" ,python-oslosphinx)
684 ("python-oslotest" ,python-oslotest)
685 ("python-pycrypto" ,python-pycrypto)
686 ("python-requests-mock" ,python-requests-mock)
687 ("python-temptest-lib" ,python-tempest-lib)
688 ("python-testrepository" ,python-testrepository)
689 ("python-testresources" ,python-testresources)
690 ("python-testtools" ,python-testtools)
691 ("python-webob" ,python-webob)))
693 `(("python-babel" ,python-babel)
694 ("python-debtcollector" ,python-debtcollector)
695 ("python-iso8601" ,python-iso8601)
696 ("python-netaddr" ,python-netaddr)
697 ("python-oslo.config" ,python-oslo.config)
698 ("python-oslo.i18n" ,python-oslo.i18n)
699 ("python-oslo.serialization" ,python-oslo.serialization)
700 ("python-oslo.utils" ,python-oslo.utils)
701 ("python-pbr" ,python-pbr)
702 ("python-prettytable" ,python-prettytable)
703 ("python-requests" ,python-requests)
704 ("python-six" ,python-six)
705 ("python-stevedore" ,python-stevedore)))
706 (home-page "http://www.openstack.org/")
707 (synopsis "Client Library for OpenStack Identity")
709 "Python-keystoneclient is the identity service used by OpenStack for
710 authentication (authN) and high-level authorization (authZ). It currently
711 supports token-based authN with user/service authZ, and is scalable to support
712 OAuth, SAML, and OpenID in future versions. Out of the box, Keystone uses
713 SQLite for its identity store database, with the option to connect to external
717 (define-public python2-keystoneclient
718 (let ((keystoneclient (package-with-python2 python-keystoneclient)))
719 (package (inherit keystoneclient)
721 `(("python2-requests" ,python2-requests)
722 ,@(alist-delete "python-requests"
723 (package-propagated-inputs keystoneclient))))
725 `(("python2-oauthlib" ,python2-oauthlib)
726 ("python2-oslosphinx" ,python2-oslosphinx)
727 ("python2-requests-mock" ,python2-requests-mock)
728 ("python2-tempest-lib" ,python2-tempest-lib)
729 ,@(fold alist-delete (package-native-inputs keystoneclient)
730 '("python-oauthlib" "python-oslosphinx" "python-requests-mock" "python-tempest-lib")))))))
732 (define-public python-swiftclient
734 (name "python-swiftclient")
739 (uri (pypi-uri "python-swiftclient" version))
742 "1j33l4z9vqh0scfncl4fxg01zr1hgqxhhai6gvcih1gccqm4nd7p"))))
743 (build-system python-build-system)
745 `(("python-pbr" ,python-pbr)
746 ("python-setuptools" ,python-setuptools)
747 ("python-sphinx" ,python-sphinx)
748 ;; The folloing packages are needed for the tests.
749 ("python-coverage" ,python-coverage)
750 ("python-discover" ,python-discover)
751 ("python-hacking" ,python-hacking)
752 ("python-mock" ,python-mock)
753 ("python-oslosphinx" ,python-oslosphinx)
754 ("python-keystoneclient" ,python-keystoneclient)
755 ("python-testrepository" ,python-testrepository)
756 ("python-testtools" ,python-testtools)))
758 `(("python-requests" ,python-requests)
759 ("python-six" ,python-six)))
760 (home-page "http://www.openstack.org/")
761 (synopsis "OpenStack Object Storage API Client Library")
763 "OpenStack Object Storage (code-named Swift) creates redundant, scalable
764 object storage using clusters of standardized servers to store petabytes of
765 accessible data. It is not a file system or real-time data storage system, but
766 rather a long-term storage system for a more permanent type of static data that
767 can be retrieved, leveraged, and then updated if necessary. Primary examples of
768 data that best fit this type of storage model are virtual machine images, photo
769 storage, email storage and backup archiving. Having no central \"brain\" or
770 master point of control provides greater scalability, redundancy and
774 (define-public python2-swiftclient
775 (let ((swiftclient (package-with-python2 python-swiftclient)))
776 (package (inherit swiftclient)
778 `(("python2-futures" ,python2-futures)
779 ("python2-requests" ,python2-requests)
780 ,@(alist-delete "python-requests"
781 (package-propagated-inputs swiftclient))))
783 `(("python2-keystoneclient" ,python2-keystoneclient)
784 ("python2-oslosphinx" ,python2-oslosphinx)
785 ,@(fold alist-delete (package-native-inputs swiftclient)
786 '("python-keystoneclient" "python-oslosphinx")))))))
788 (define-public python-git-review
790 (name "python-git-review")
795 (uri (pypi-uri "git-review" version))
798 "07d1jn9ryff5j5ic6qj5pbk10m1ccmpllj0wyalrcms1q9yhlzh8"))))
799 (build-system python-build-system)
801 '(#:tests? #f ; tests require a running Gerrit server
803 (modify-phases %standard-phases
804 (add-after 'install 'wrap-program
805 (lambda* (#:key inputs outputs #:allow-other-keys)
806 (let* ((out (assoc-ref outputs "out"))
807 (git (assoc-ref inputs "git"))
808 (openssh (assoc-ref inputs "openssh")))
809 (wrap-program (string-append out "/bin/git-review")
812 (string-append dir "/bin"))
813 (list git openssh))))))))))
815 `(("python-pbr" ,python-pbr)))
817 `(("python-requests" ,python-requests)
819 ("openssh" ,openssh)))
820 (home-page "http://docs.openstack.org/infra/git-review/")
821 (synopsis "Command-line tool for Gerrit")
823 "Git-review is a command-line tool that helps submitting Git branches to
824 Gerrit for review, or fetching existing ones.")
827 (define-public python2-git-review
828 (let ((base (package-with-python2 (strip-python2-variant python-git-review))))
829 (package (inherit base)
831 `(("python2-setuptools" ,python2-setuptools)
832 ,@(package-native-inputs base))))))