1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages openstack)
21 #:use-module (gnu packages python)
22 #:use-module (gnu packages version-control)
23 #:use-module (guix build-system python)
24 #:use-module (guix download)
25 #:use-module ((guix licenses)
27 #:use-module (guix packages))
29 (define-public python-bandit
31 (name "python-bandit")
37 "https://pypi.python.org/packages/source/b/bandit/bandit-"
41 "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g"))))
42 (build-system python-build-system)
44 `(("python-appdirs" ,python-appdirs)
45 ("python-pyyaml" ,python-pyyaml)
46 ("python-six" ,python-six)
47 ("python-stevedore" ,python-stevedore)))
49 `(("python-pbr" ,python-pbr)
50 ("python-setuptools" ,python-setuptools)
52 ("python-fixtures" ,python-fixtures)
53 ("python-mock" ,python-mock)
54 ("python-testrepository" ,python-testrepository)
55 ("python-testscenarios" ,python-testscenarios)
56 ("python-testtools" ,python-testtools)))
57 (home-page "https://wiki.openstack.org/wiki/Security/Projects/Bandit")
58 (synopsis "Security oriented static analyser for python code.")
60 "Bandit is a tool designed to find common security issues in Python code.
61 To do this Bandit processes each file, builds an AST from it, and runs
62 appropriate plugins against the AST nodes. Once Bandit has finished scanning
63 all the files it generates a report.")
66 (define-public python2-bandit
67 (package-with-python2 python-bandit))
69 (define-public python-debtcollector
71 (name "python-debtcollector")
76 (uri (pypi-uri "debtcollector" version))
79 "0g4dfskaiy47rhsh4gh66l5vmdsrgq0qk68pl3ix1cj3ffvfndzv"))))
80 (build-system python-build-system)
82 `(("python-six" ,python-six)
83 ("python-wrapt" ,python-wrapt)))
85 `(("python-babel" ,python-babel)
86 ("python-pbr" ,python-pbr)
87 ("python-setuptools" ,python-setuptools)
89 ("python-oslotest" ,python-oslotest)))
90 (home-page "http://www.openstack.org/")
92 "Find deprecated patterns and strategies in Python code")
94 "This package provides a collection of Python deprecation patterns and
95 strategies that help you collect your technical debt in a non-destructive
99 (define-public python2-debtcollector
100 (package-with-python2 python-debtcollector))
102 (define-public python-hacking
104 (name "python-hacking")
109 (uri (pypi-uri "hacking" version))
112 "1a310k3dv04jg7zvmk37h2ql7y9kf4hvdxb74bjlwdxgmy6h4wap"))))
113 (build-system python-build-system)
115 `(("python-flake8-2.2.4" ,python-flake8-2.2.4)
116 ("python-mccabe-0.2.1" ,python-mccabe-0.2.1)
117 ("python-pbr" ,python-pbr)
118 ("python-pep8-1.5.7" ,python-pep8-1.5.7)
119 ("python-pyflakes-0.8.1" ,python-pyflakes-0.8.1)
120 ("python-six" ,python-six)))
122 `(("python-setuptools" ,python-setuptools)
124 ("python-testscenarios" ,python-testscenarios)))
125 (home-page "http://github.com/openstack-dev/hacking")
126 (synopsis "OpenStack hacking guideline enforcement")
128 "Python-hacking is a set of flake8 plugins that test and enforce the
129 @uref{http://docs.openstack.org/developer/hacking/, OpenStack style
133 (define-public python2-hacking
134 (package-with-python2 python-hacking))
136 (define-public python-mox3
143 (uri (pypi-uri "mox3" version))
146 "1pwz98q098cb8xxf8yryq21nvklc7hla880bsrq4y3j6bprw3iaj"))))
147 (build-system python-build-system)
149 `(("python-fixtures" ,python-fixtures)
150 ("python-pbr" ,python-pbr)
151 ("python-setuptools" ,python-setuptools)
152 ("python-six" ,python-six)
153 ("python-testtools" ,python-testtools)))
154 (home-page "http://www.openstack.org/")
155 (synopsis "Mock object framework for Python")
157 "Mox3 is an unofficial port of the Google mox framework
158 (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
159 with mox as possible, but small enhancements have been made. The library was
160 tested on Python version 3.2, 2.7 and 2.6.")
163 (define-public python-os-client-config
165 (name "python-os-client-config")
170 (uri (pypi-uri "os-client-config" version))
173 "1vjn7667pswnmpqv6ngwyqm2xn46w90hi5b4pv2grwfz751cn1lf"))))
174 (build-system python-build-system)
176 `(#:tests? #f)) ;; Circular dependency with python-oslotest
178 `(("python-appdirs" ,python-appdirs)
179 ("python-fixtures" ,python-fixtures)
180 ("python-mimeparse" ,python-mimeparse)
181 ("python-pbr" ,python-pbr)
182 ("python-pyyaml" ,python-pyyaml)
183 ("python-testrepository" ,python-testrepository)
184 ("python-setuptools" ,python-setuptools)
185 ("python-testscenarios" ,python-testscenarios)
186 ("python-testtools" ,python-testtools)))
187 (home-page "http://www.openstack.org/")
189 "OpenStack Client Configuration Library")
191 "The OpenStack Client Configuration Library is a library for collecting
192 client configuration for using an OpenStack cloud in a consistent and
193 comprehensive manner.")
196 (define-public python2-os-client-config
197 (package-with-python2 python-os-client-config))
199 (define-public python2-mox3
200 (package-with-python2 python-mox3))
202 (define-public python-os-testr
204 (name "python-os-testr")
209 (uri (pypi-uri "os-testr" version))
212 "0474z0mxb7y3vfk4s097wf1mzji5d135vh27cvlh9q17rq3x9r3w"))))
213 (build-system python-build-system)
215 ;; os-testr uses itself to run the tests. It seems like pbr writes the
216 ;; exectuable in the virtualenv when using tox. Not sure how to do this
217 ;; when building the package. Skip the tests for now.
220 `(("python-pbr" ,python-pbr)
221 ("python-subunit" ,python-subunit)
222 ("python-testtools" ,python-testtools)))
224 `(("python-babel" ,python-babel)
225 ("python-setuptools" ,python-setuptools)))
226 (home-page "http://www.openstack.org/")
227 (synopsis "Testr wrapper to provide functionality for OpenStack projects")
229 "Os-testr provides developers with a testr wrapper and an output filter
233 (define-public python2-os-testr
234 (package-with-python2 python-os-testr))
236 (define-public python-pbr
244 "https://pypi.python.org/packages/source/p/pbr/pbr-"
249 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
250 (build-system python-build-system)
252 `(#:tests? #f)) ;; Most tests seem to use the Internet.
254 `(("python-testrepository" ,python-testrepository)
255 ("git" ,git))) ;; pbr actually uses the "git" binary.
257 `(("python-fixtures" ,python-fixtures)
258 ("python-mimeparse" ,python-mimeparse)
259 ("python-mock" ,python-mock)
260 ("python-setuptools" ,python-setuptools)
261 ("python-six" ,python-six)
262 ("python-sphinx" ,python-sphinx)
263 ("python-testrepository" ,python-testrepository)
264 ("python-testresources" ,python-testresources)
265 ("python-testscenarios" ,python-testscenarios)
266 ("python-testtools" ,python-testtools)
267 ("python-virtualenv" ,python-virtualenv)))
268 (home-page "https://launchpad.net/pbr")
269 (synopsis "Change the default behavior of Python’s setuptools")
271 "Python Build Reasonableness (PBR) is a library that injects some useful
272 and sensible default behaviors into your setuptools run.")
275 (define-public python2-pbr
276 (package-with-python2 python-pbr))
278 (define-public python-requests-mock
280 (name "python-requests-mock")
285 (uri (pypi-uri "requests-mock" version))
288 "0s6mrpiv2w0km39qvl1pq2d56xblnm57p369qdp5j1a55ncica7f"))))
289 (build-system python-build-system)
291 `(("python-requests" ,python-requests)
292 ("python-six" ,python-six)))
294 `(("python-mock" ,python-mock)
295 ("python-pbr" ,python-pbr)
296 ("python-setuptools" ,python-setuptools)))
297 (home-page "https://requests-mock.readthedocs.org/")
298 (synopsis "Mock out responses from the requests package")
300 "This module provides a building block to stub out the HTTP requests
301 portions of your testing code.")
304 (define-public python2-requests-mock
305 (package-with-python2 python-requests-mock))
307 (define-public python-stevedore
309 (name "python-stevedore")
314 (uri (pypi-uri "stevedore" version))
317 "01pcrdqsb6ca7hmqwm11b3baj6ml8yz9pxawrgvxb3j9824906fc"))))
318 (build-system python-build-system)
320 `(("python-six" ,python-six)))
322 `(("python-pbr" ,python-pbr)
323 ("python-setuptools" ,python-setuptools)
325 ("python-docutils" ,python-docutils)
326 ("python-mock" ,python-mock)
327 ("python-oslotest" ,python-oslotest)
328 ("python-sphinx" ,python-sphinx)))
329 (home-page "https://github.com/dreamhost/stevedore")
330 (synopsis "Manage dynamic plugins for Python applications")
332 "Python makes loading code dynamically easy, allowing you to configure
333 and extend your application by discovering and loading extensions (“plugins”)
334 at runtime. Many applications implement their own library for doing this,
335 using __import__ or importlib. stevedore avoids creating yet another extension
336 mechanism by building on top of setuptools entry points. The code for managing
337 entry points tends to be repetitive, though, so stevedore provides manager
338 classes for implementing common patterns for using dynamically loaded
342 (define-public python2-stevedore
343 (package-with-python2 python-stevedore))
345 (define-public python-tempest-lib
347 (name "python-tempest-lib")
352 (uri (pypi-uri "tempest-lib" version))
355 "1q4wpqcg0yv99mr5gc43wsfirlqdjz90npyghy3mn5f6lby2yikg"))))
356 (build-system python-build-system)
359 (modify-phases %standard-phases
363 (substitute* "tempest_lib/tests/cli/test_execute.py"
364 (("/bin/ls") (which "ls"))))))))
366 `(("python-fixtures" ,python-fixtures)
367 ("python-httplib2" ,python-httplib2)
368 ("python-iso8601" ,python-iso8601)
369 ("python-jsonschema" ,python-jsonschema)
370 ("python-oslo.log" ,python-oslo.log)
371 ("python-paramiko" ,python-paramiko)
372 ("python-pbr" ,python-pbr)
373 ("python-six" ,python-six)))
375 `(("python-babel" ,python-babel)
376 ("python-mock" ,python-mock)
377 ("python-os-testr" ,python-os-testr)
378 ("python-oslotest" ,python-oslotest)
379 ("python-setuptools" ,python-setuptools)))
380 (home-page "http://www.openstack.org/")
381 (synopsis "OpenStack functional testing library")
383 "Tempest-lib is a functional testing library for OpenStack. It provides
384 common features used in Tempest.")
387 (define-public python2-tempest-lib
388 (package-with-python2 python-tempest-lib))
390 ;; Packages from the Oslo library
391 (define-public python-oslo.config
393 (name "python-oslo.config")
399 "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-"
404 "13r778jfb0fhna37c2pd1f2xipnsbd7zli7qhn96acrzymrwj5k1"))))
405 (build-system python-build-system)
407 `(("python-netaddr" ,python-netaddr)
408 ("python-six" ,python-six)
409 ("python-stevedore" ,python-stevedore)))
411 `(("python-pbr" ,python-pbr)
412 ("python-setuptools" ,python-setuptools)
414 ("python-oslo.i18n" ,python-oslo.i18n)
415 ("python-mock" ,python-mock)
416 ("python-oslotest" ,python-oslotest)
417 ("python-testscenarios" ,python-testscenarios)))
418 (home-page "https://launchpad.net/oslo")
419 (synopsis "Oslo Configuration API")
421 "The Oslo configuration API supports parsing command line arguments and
422 .ini style configuration files.")
425 (define-public python2-oslo.config
426 (package-with-python2 python-oslo.config))
428 (define-public python-oslo.context
430 (name "python-oslo.context")
435 (uri (pypi-uri "oslo.context" version))
438 "0kvha0rs9295njyl2z6n6zm5dapi5mrl5zwjm0m6ldqrvccyf8c3"))))
439 (build-system python-build-system)
441 `(("python-babel" ,python-babel)
442 ("python-pbr" ,python-pbr)
443 ("python-setuptools" ,python-setuptools)
445 ("python-oslotest" ,python-oslotest)))
446 (home-page "http://launchpad.net/oslo")
447 (synopsis "Oslo context library")
449 "The Oslo context library has helpers to maintain useful information
450 about a request context. The request context is usually populated in the WSGI
451 pipeline and used by various modules such as logging.")
454 (define-public python2-oslo.context
455 (package-with-python2 python-oslo.context))
457 (define-public python-oslo.i18n
459 (name "python-oslo.i18n")
464 (uri (pypi-uri "oslo.i18n" version))
467 "0bpb1c20sm8my650gl824nzaip83bfn8hr91s65k5ncmyh8hb6pl"))))
468 (build-system python-build-system)
470 `(("python-babel" ,python-babel)
471 ("python-six" ,python-six)))
473 `(("python-pbr" ,python-pbr)
474 ("python-setuptools" ,python-setuptools)
476 ("python-mock" ,python-mock)
477 ("python-mox3" ,python-mox3)
478 ("python-oslotest" ,python-oslotest)
479 ("python-testscenarios" ,python-testscenarios)))
480 (home-page "http://launchpad.net/oslo")
481 (synopsis "Oslo internationalization (i18n) library")
483 "The oslo.i18n library contain utilities for working with
484 internationalization (i18n) features, especially translation for text strings
485 in an application or library.")
488 (define-public python2-oslo.i18n
489 (package-with-python2 python-oslo.i18n))
491 (define-public python-oslo.log
493 (name "python-oslo.log")
499 "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-"
504 "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z"))))
505 (build-system python-build-system)
507 `(("python-debtcollector" ,python-debtcollector)
508 ("python-oslo.config" ,python-oslo.config)
509 ("python-oslo.context" ,python-oslo.context)
510 ("python-oslo.i18n" ,python-oslo.i18n)
511 ("python-oslo.utils" ,python-oslo.utils)
512 ("python-oslo.serialization" ,python-oslo.serialization)
513 ("python-six" ,python-six)))
515 `(("python-babel" ,python-babel)
516 ("python-iso8601" ,python-iso8601)
517 ("python-mock" ,python-mock)
518 ("python-oslotest" ,python-oslotest)
519 ("python-pbr" ,python-pbr)
520 ("python-setuptools" ,python-setuptools)))
521 (home-page "http://launchpad.net/oslo")
522 (synopsis "Python logging library of the Oslo project")
524 "The oslo.log (logging) configuration library provides standardized
525 configuration for all OpenStack projects. It also provides custom formatters,
526 handlers and support for context specific logging (like resource id’s etc).")
529 (define-public python2-oslo.log
530 (package-with-python2 python-oslo.log))
532 (define-public python-oslo.serialization
534 (name "python-oslo.serialization")
540 "https://pypi.python.org/packages/source/o/oslo.serialization/"
541 "oslo.serialization-" version ".tar.gz"))
544 "00qaxg155s61ylh4fqc7m5fh0gijf33khhai9xvcsc9k106i3c9c"))))
545 (build-system python-build-system)
547 `(("python-iso8601" ,python-iso8601)
548 ("python-netaddr" ,python-netaddr)
549 ("python-oslo.utils" ,python-oslo.utils)
550 ("python-simplejson" ,python-simplejson)
551 ("python-six" ,python-six)
552 ("python-pytz" ,python-pytz)))
554 `(("python-babel" ,python-babel)
555 ("python-pbr" ,python-pbr)
556 ("python-setuptools" ,python-setuptools)
558 ("python-mock" ,python-mock)
559 ("python-oslo.i18n" ,python-oslo.i18n)
560 ("python-oslotest" ,python-oslotest)))
561 (home-page "http://launchpad.net/oslo")
562 (synopsis "Oslo serialization library")
564 "The oslo.serialization library provides support for representing objects
565 in transmittable and storable formats, such as JSON and MessagePack.")
568 (define-public python2-oslo.serialization
569 (package-with-python2 python-oslo.serialization))
571 (define-public python-oslosphinx
573 (name "python-oslosphinx")
578 (uri (pypi-uri "oslosphinx" version))
581 "0zcshdc9s1f7hnvg0fm2ps5rak3dpnm8kqg4i21lknhmsvb7p5cb"))))
582 (build-system python-build-system)
584 `(("python-requests" ,python-requests)))
586 `(("python-pbr" ,python-pbr)
587 ("python-docutils" ,python-docutils)
588 ("python-hacking" ,python-hacking)
589 ("python-setuptools" ,python-setuptools)
590 ("python-sphinx" ,python-sphinx)))
591 (home-page "http://www.openstack.org/")
592 (synopsis "OpenStack sphinx extensions and theme")
594 "This package provides themes and extensions for Sphinx documentation
595 from the OpenStack project.")
598 (define-public python2-oslosphinx
599 (package-with-python2 python-oslosphinx))
601 (define-public python-oslotest
603 (name "python-oslotest")
609 "https://pypi.python.org/packages/source/o/oslotest/oslotest-"
614 "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs"))))
615 (build-system python-build-system)
617 `(("python-fixtures" ,python-fixtures)
618 ("python-mock" ,python-mock)
619 ("python-mox3" ,python-mox3)
620 ("python-six" ,python-six)))
622 `(("python-pbr" ,python-pbr)
623 ("python-os-client-config" ,python-os-client-config)
624 ("python-setuptools" ,python-setuptools)
625 ("python-subunit" ,python-subunit)
626 ("python-testrepository" ,python-testrepository)
627 ("python-testscenarios" ,python-testscenarios)
628 ("python-testtools" ,python-testtools)))
629 (home-page "http://launchpad.net/oslo")
630 (synopsis "Oslo test framework")
632 "The Oslo Test framework provides common fixtures, support for debugging,
633 and better support for mocking results.")
636 (define-public python2-oslotest
637 (package-with-python2 python-oslotest))
639 (define-public python-oslo.utils
641 (name "python-oslo.utils")
647 "https://pypi.python.org/packages/source/o/oslo.utils/oslo.utils-"
652 "11b073gblhzkxhi1j6sqk3apq2ll8xhi9h9g9kxzx9dycqdq0qp0"))
655 ;; FIXME: setuptools fails to import this file during the test
657 (delete-file "oslo_utils/tests/test_netutils.py")))))
658 (build-system python-build-system)
660 `(("python-debtcollector" ,python-debtcollector)
661 ("python-oslo.i18n" ,python-oslo.i18n)
662 ("python-iso8601" ,python-iso8601)
663 ("python-monotonic" ,python-monotonic)
664 ("python-netaddr" ,python-netaddr)
665 ("python-netifaces" ,python-netifaces)
666 ("python-pytz" ,python-pytz)
667 ("python-six" ,python-six)))
669 `(("python-babel" ,python-babel)
670 ("python-pbr" ,python-pbr)
671 ("python-setuptools" ,python-setuptools)
673 ("python-oslotest" ,python-oslotest)
674 ("python-mock" ,python-mock)
675 ("python-mox3" ,python-mox3)
676 ("python-testscenarios" ,python-testscenarios)))
677 (home-page "http://launchpad.net/oslo")
678 (synopsis "Oslo utility library")
680 "The @code{oslo.utils} library provides support for common utility type
681 functions, such as encoding, exception handling, string manipulation, and time
685 (define-public python2-oslo.utils
686 (package-with-python2 python-oslo.utils))