gnu: Add python-futures.
[jackhill/guix/guix.git] / gnu / packages / openstack.scm
CommitLineData
7c4810a1
CR
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
ccd20fcb 3;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
7c4810a1
CR
4;;;
5;;; This file is part of GNU Guix.
6;;;
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.
11;;;
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.
16;;;
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/>.
19
20(define-module (gnu packages openstack)
21 #:use-module (gnu packages python)
c9e330d0 22 #:use-module (gnu packages tls)
7c4810a1
CR
23 #:use-module (gnu packages version-control)
24 #:use-module (guix build-system python)
25 #:use-module (guix download)
26 #:use-module ((guix licenses)
27 #:select (asl2.0))
c9e330d0
EF
28 #:use-module (guix packages)
29 #:use-module (srfi srfi-1))
7c4810a1 30
f5a21dc4
CR
31(define-public python-bandit
32 (package
33 (name "python-bandit")
34 (version "0.13.2")
35 (source
36 (origin
37 (method url-fetch)
38 (uri (string-append
39 "https://pypi.python.org/packages/source/b/bandit/bandit-"
40 version ".tar.gz"))
41 (sha256
42 (base32
43 "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g"))))
44 (build-system python-build-system)
45 (propagated-inputs
46 `(("python-appdirs" ,python-appdirs)
47 ("python-pyyaml" ,python-pyyaml)
48 ("python-six" ,python-six)
49 ("python-stevedore" ,python-stevedore)))
50 (inputs
51 `(("python-pbr" ,python-pbr)
52 ("python-setuptools" ,python-setuptools)
53 ;; Tests
54 ("python-fixtures" ,python-fixtures)
55 ("python-mock" ,python-mock)
56 ("python-testrepository" ,python-testrepository)
57 ("python-testscenarios" ,python-testscenarios)
58 ("python-testtools" ,python-testtools)))
59 (home-page "https://wiki.openstack.org/wiki/Security/Projects/Bandit")
60 (synopsis "Security oriented static analyser for python code.")
61 (description
62 "Bandit is a tool designed to find common security issues in Python code.
63To do this Bandit processes each file, builds an AST from it, and runs
64appropriate plugins against the AST nodes. Once Bandit has finished scanning
65all the files it generates a report.")
66 (license asl2.0)))
67
68(define-public python2-bandit
69 (package-with-python2 python-bandit))
70
2713527e
CR
71(define-public python-debtcollector
72 (package
73 (name "python-debtcollector")
56c7ead2 74 (version "1.0.0")
2713527e
CR
75 (source
76 (origin
77 (method url-fetch)
56c7ead2 78 (uri (pypi-uri "debtcollector" version))
2713527e
CR
79 (sha256
80 (base32
56c7ead2 81 "0g4dfskaiy47rhsh4gh66l5vmdsrgq0qk68pl3ix1cj3ffvfndzv"))))
2713527e
CR
82 (build-system python-build-system)
83 (propagated-inputs
84 `(("python-six" ,python-six)
85 ("python-wrapt" ,python-wrapt)))
86 (inputs
87 `(("python-babel" ,python-babel)
88 ("python-pbr" ,python-pbr)
89 ("python-setuptools" ,python-setuptools)
90 ;; Tests.
91 ("python-oslotest" ,python-oslotest)))
92 (home-page "http://www.openstack.org/")
93 (synopsis
94 "Find deprecated patterns and strategies in Python code")
95 (description
96 "This package provides a collection of Python deprecation patterns and
97strategies that help you collect your technical debt in a non-destructive
98manner.")
99 (license asl2.0)))
100
101(define-public python2-debtcollector
102 (package-with-python2 python-debtcollector))
103
2ac9ba6a
CR
104(define-public python-hacking
105 (package
106 (name "python-hacking")
107 (version "0.10.2")
108 (source
109 (origin
110 (method url-fetch)
111 (uri (pypi-uri "hacking" version))
112 (sha256
113 (base32
114 "1a310k3dv04jg7zvmk37h2ql7y9kf4hvdxb74bjlwdxgmy6h4wap"))))
115 (build-system python-build-system)
116 (propagated-inputs
117 `(("python-flake8-2.2.4" ,python-flake8-2.2.4)
118 ("python-mccabe-0.2.1" ,python-mccabe-0.2.1)
119 ("python-pbr" ,python-pbr)
120 ("python-pep8-1.5.7" ,python-pep8-1.5.7)
121 ("python-pyflakes-0.8.1" ,python-pyflakes-0.8.1)
122 ("python-six" ,python-six)))
123 (inputs
124 `(("python-setuptools" ,python-setuptools)
125 ;; Tests
126 ("python-testscenarios" ,python-testscenarios)))
127 (home-page "http://github.com/openstack-dev/hacking")
128 (synopsis "OpenStack hacking guideline enforcement")
129 (description
130 "Python-hacking is a set of flake8 plugins that test and enforce the
131@uref{http://docs.openstack.org/developer/hacking/, OpenStack style
132guidelines}.")
133 (license asl2.0)))
134
135(define-public python2-hacking
136 (package-with-python2 python-hacking))
137
35f1ebeb
CR
138(define-public python-mox3
139 (package
140 (name "python-mox3")
34da7af4 141 (version "0.13.0")
35f1ebeb
CR
142 (source
143 (origin
144 (method url-fetch)
d4e817b1 145 (uri (pypi-uri "mox3" version))
35f1ebeb
CR
146 (sha256
147 (base32
34da7af4 148 "0hj57374r239cj1zbzpxw7mj0yfblz55jdfrc2p1h8j7xng0319j"))))
35f1ebeb
CR
149 (build-system python-build-system)
150 (inputs
151 `(("python-fixtures" ,python-fixtures)
152 ("python-pbr" ,python-pbr)
153 ("python-setuptools" ,python-setuptools)
154 ("python-six" ,python-six)
155 ("python-testtools" ,python-testtools)))
156 (home-page "http://www.openstack.org/")
157 (synopsis "Mock object framework for Python")
158 (description
159 "Mox3 is an unofficial port of the Google mox framework
160(http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
161with mox as possible, but small enhancements have been made. The library was
162tested on Python version 3.2, 2.7 and 2.6.")
163 (license asl2.0)))
164
1edd421b
CR
165(define-public python-os-client-config
166 (package
167 (name "python-os-client-config")
a5ff52f8 168 (version "1.12.0")
1edd421b
CR
169 (source
170 (origin
171 (method url-fetch)
a5ff52f8 172 (uri (pypi-uri "os-client-config" version))
1edd421b
CR
173 (sha256
174 (base32
a5ff52f8 175 "1vjn7667pswnmpqv6ngwyqm2xn46w90hi5b4pv2grwfz751cn1lf"))))
1edd421b
CR
176 (build-system python-build-system)
177 (arguments
178 `(#:tests? #f)) ;; Circular dependency with python-oslotest
179 (inputs
180 `(("python-appdirs" ,python-appdirs)
181 ("python-fixtures" ,python-fixtures)
182 ("python-mimeparse" ,python-mimeparse)
183 ("python-pbr" ,python-pbr)
184 ("python-pyyaml" ,python-pyyaml)
185 ("python-testrepository" ,python-testrepository)
186 ("python-setuptools" ,python-setuptools)
187 ("python-testscenarios" ,python-testscenarios)
188 ("python-testtools" ,python-testtools)))
189 (home-page "http://www.openstack.org/")
190 (synopsis
191 "OpenStack Client Configuration Library")
192 (description
193 "The OpenStack Client Configuration Library is a library for collecting
194 client configuration for using an OpenStack cloud in a consistent and
195 comprehensive manner.")
196 (license asl2.0)))
197
198(define-public python2-os-client-config
199 (package-with-python2 python-os-client-config))
200
35f1ebeb
CR
201(define-public python2-mox3
202 (package-with-python2 python-mox3))
203
2931f464
CR
204(define-public python-os-testr
205 (package
206 (name "python-os-testr")
47689888 207 (version "0.5.0")
2931f464
CR
208 (source
209 (origin
210 (method url-fetch)
211 (uri (pypi-uri "os-testr" version))
212 (sha256
213 (base32
47689888 214 "0bv03wnmvxhyi8y08hjh9clxrwqc2251529v4kh5khvca0fsbqdp"))))
2931f464
CR
215 (build-system python-build-system)
216 (arguments
217 ;; os-testr uses itself to run the tests. It seems like pbr writes the
218 ;; exectuable in the virtualenv when using tox. Not sure how to do this
219 ;; when building the package. Skip the tests for now.
220 `(#:tests? #f))
221 (propagated-inputs
222 `(("python-pbr" ,python-pbr)
223 ("python-subunit" ,python-subunit)
224 ("python-testtools" ,python-testtools)))
225 (inputs
226 `(("python-babel" ,python-babel)
227 ("python-setuptools" ,python-setuptools)))
228 (home-page "http://www.openstack.org/")
229 (synopsis "Testr wrapper to provide functionality for OpenStack projects")
230 (description
231 "Os-testr provides developers with a testr wrapper and an output filter
232 for subunit.")
233 (license asl2.0)))
234
235(define-public python2-os-testr
236 (package-with-python2 python-os-testr))
237
7c4810a1
CR
238(define-public python-pbr
239 (package
240 (name "python-pbr")
ccd20fcb 241 (version "1.8.1")
7c4810a1
CR
242 (source
243 (origin
244 (method url-fetch)
245 (uri (string-append
246 "https://pypi.python.org/packages/source/p/pbr/pbr-"
247 version
248 ".tar.gz"))
249 (sha256
250 (base32
ccd20fcb 251 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
7c4810a1
CR
252 (build-system python-build-system)
253 (arguments
254 `(#:tests? #f)) ;; Most tests seem to use the Internet.
255 (propagated-inputs
256 `(("python-testrepository" ,python-testrepository)
257 ("git" ,git))) ;; pbr actually uses the "git" binary.
258 (inputs
259 `(("python-fixtures" ,python-fixtures)
260 ("python-mimeparse" ,python-mimeparse)
261 ("python-mock" ,python-mock)
262 ("python-setuptools" ,python-setuptools)
263 ("python-six" ,python-six)
264 ("python-sphinx" ,python-sphinx)
265 ("python-testrepository" ,python-testrepository)
266 ("python-testresources" ,python-testresources)
267 ("python-testscenarios" ,python-testscenarios)
268 ("python-testtools" ,python-testtools)
269 ("python-virtualenv" ,python-virtualenv)))
270 (home-page "https://launchpad.net/pbr")
271 (synopsis "Change the default behavior of Python’s setuptools")
272 (description
273 "Python Build Reasonableness (PBR) is a library that injects some useful
274and sensible default behaviors into your setuptools run.")
275 (license asl2.0)))
276
277(define-public python2-pbr
278 (package-with-python2 python-pbr))
2053949a 279
2c9d9676
CR
280(define-public python-requests-mock
281 (package
282 (name "python-requests-mock")
bd52842d 283 (version "0.7.0")
2c9d9676
CR
284 (source
285 (origin
286 (method url-fetch)
bd52842d 287 (uri (pypi-uri "requests-mock" version))
2c9d9676
CR
288 (sha256
289 (base32
bd52842d 290 "0s6mrpiv2w0km39qvl1pq2d56xblnm57p369qdp5j1a55ncica7f"))))
2c9d9676
CR
291 (build-system python-build-system)
292 (propagated-inputs
293 `(("python-requests" ,python-requests)
294 ("python-six" ,python-six)))
295 (inputs
296 `(("python-mock" ,python-mock)
297 ("python-pbr" ,python-pbr)
298 ("python-setuptools" ,python-setuptools)))
299 (home-page "https://requests-mock.readthedocs.org/")
300 (synopsis "Mock out responses from the requests package")
301 (description
302 "This module provides a building block to stub out the HTTP requests
303portions of your testing code.")
304 (license asl2.0)))
305
306(define-public python2-requests-mock
307 (package-with-python2 python-requests-mock))
308
673d1a9d
CR
309(define-public python-stevedore
310 (package
311 (name "python-stevedore")
45f4c28d 312 (version "1.10.0")
673d1a9d
CR
313 (source
314 (origin
315 (method url-fetch)
2d531d4e 316 (uri (pypi-uri "stevedore" version))
673d1a9d
CR
317 (sha256
318 (base32
45f4c28d 319 "17vpffcnk56sj86d2n3vz5bprcc9bswilgd0awnm7jp073pqkmpm"))))
673d1a9d
CR
320 (build-system python-build-system)
321 (propagated-inputs
322 `(("python-six" ,python-six)))
323 (inputs
324 `(("python-pbr" ,python-pbr)
325 ("python-setuptools" ,python-setuptools)
326 ;; Tests
327 ("python-docutils" ,python-docutils)
328 ("python-mock" ,python-mock)
329 ("python-oslotest" ,python-oslotest)
330 ("python-sphinx" ,python-sphinx)))
331 (home-page "https://github.com/dreamhost/stevedore")
332 (synopsis "Manage dynamic plugins for Python applications")
333 (description
334 "Python makes loading code dynamically easy, allowing you to configure
335and extend your application by discovering and loading extensions (“plugins”)
336at runtime. Many applications implement their own library for doing this,
337using __import__ or importlib. stevedore avoids creating yet another extension
338mechanism by building on top of setuptools entry points. The code for managing
339entry points tends to be repetitive, though, so stevedore provides manager
340classes for implementing common patterns for using dynamically loaded
341extensions.")
342 (license asl2.0)))
343
344(define-public python2-stevedore
345 (package-with-python2 python-stevedore))
346
465b61fc
CR
347(define-public python-tempest-lib
348 (package
349 (name "python-tempest-lib")
622d21bb 350 (version "0.12.0")
465b61fc
CR
351 (source
352 (origin
353 (method url-fetch)
354 (uri (pypi-uri "tempest-lib" version))
355 (sha256
356 (base32
622d21bb 357 "0f15wxk394cb2kw34krpxq8mvy1rxw0lnl5wfiv14cq1s1fm9cjd"))))
465b61fc
CR
358 (build-system python-build-system)
359 (arguments
360 `(#:phases
361 (modify-phases %standard-phases
362 (add-before
363 'check 'pre-check
364 (lambda _
365 (substitute* "tempest_lib/tests/cli/test_execute.py"
366 (("/bin/ls") (which "ls"))))))))
367 (propagated-inputs
368 `(("python-fixtures" ,python-fixtures)
369 ("python-httplib2" ,python-httplib2)
370 ("python-iso8601" ,python-iso8601)
371 ("python-jsonschema" ,python-jsonschema)
372 ("python-oslo.log" ,python-oslo.log)
373 ("python-paramiko" ,python-paramiko)
374 ("python-pbr" ,python-pbr)
375 ("python-six" ,python-six)))
376 (inputs
377 `(("python-babel" ,python-babel)
378 ("python-mock" ,python-mock)
379 ("python-os-testr" ,python-os-testr)
380 ("python-oslotest" ,python-oslotest)
381 ("python-setuptools" ,python-setuptools)))
382 (home-page "http://www.openstack.org/")
383 (synopsis "OpenStack functional testing library")
384 (description
385 "Tempest-lib is a functional testing library for OpenStack. It provides
386common features used in Tempest.")
387 (license asl2.0)))
388
389(define-public python2-tempest-lib
390 (package-with-python2 python-tempest-lib))
391
2053949a 392;; Packages from the Oslo library
ed56af06
CR
393(define-public python-oslo.config
394 (package
395 (name "python-oslo.config")
396 (version "2.4.0")
397 (source
398 (origin
399 (method url-fetch)
400 (uri (string-append
401 "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-"
402 version
403 ".tar.gz"))
404 (sha256
405 (base32
406 "13r778jfb0fhna37c2pd1f2xipnsbd7zli7qhn96acrzymrwj5k1"))))
407 (build-system python-build-system)
408 (propagated-inputs
409 `(("python-netaddr" ,python-netaddr)
410 ("python-six" ,python-six)
411 ("python-stevedore" ,python-stevedore)))
412 (inputs
413 `(("python-pbr" ,python-pbr)
414 ("python-setuptools" ,python-setuptools)
415 ;; Tests
416 ("python-oslo.i18n" ,python-oslo.i18n)
417 ("python-mock" ,python-mock)
418 ("python-oslotest" ,python-oslotest)
419 ("python-testscenarios" ,python-testscenarios)))
420 (home-page "https://launchpad.net/oslo")
421 (synopsis "Oslo Configuration API")
422 (description
423 "The Oslo configuration API supports parsing command line arguments and
424.ini style configuration files.")
425 (license asl2.0)))
426
427(define-public python2-oslo.config
428 (package-with-python2 python-oslo.config))
429
c7c7a936
CR
430(define-public python-oslo.context
431 (package
432 (name "python-oslo.context")
e9af5adf 433 (version "1.0.0")
c7c7a936
CR
434 (source
435 (origin
436 (method url-fetch)
e9af5adf 437 (uri (pypi-uri "oslo.context" version))
c7c7a936
CR
438 (sha256
439 (base32
e9af5adf 440 "0kvha0rs9295njyl2z6n6zm5dapi5mrl5zwjm0m6ldqrvccyf8c3"))))
c7c7a936
CR
441 (build-system python-build-system)
442 (inputs
443 `(("python-babel" ,python-babel)
444 ("python-pbr" ,python-pbr)
445 ("python-setuptools" ,python-setuptools)
446 ;; Tests.
447 ("python-oslotest" ,python-oslotest)))
448 (home-page "http://launchpad.net/oslo")
449 (synopsis "Oslo context library")
450 (description
451 "The Oslo context library has helpers to maintain useful information
452about a request context. The request context is usually populated in the WSGI
453pipeline and used by various modules such as logging.")
454 (license asl2.0)))
455
456(define-public python2-oslo.context
457 (package-with-python2 python-oslo.context))
458
8531b326
CR
459(define-public python-oslo.i18n
460 (package
461 (name "python-oslo.i18n")
5788b4b6 462 (version "3.0.0")
8531b326
CR
463 (source
464 (origin
465 (method url-fetch)
5788b4b6 466 (uri (pypi-uri "oslo.i18n" version))
8531b326
CR
467 (sha256
468 (base32
5788b4b6 469 "0bpb1c20sm8my650gl824nzaip83bfn8hr91s65k5ncmyh8hb6pl"))))
8531b326
CR
470 (build-system python-build-system)
471 (propagated-inputs
472 `(("python-babel" ,python-babel)
473 ("python-six" ,python-six)))
474 (inputs
475 `(("python-pbr" ,python-pbr)
476 ("python-setuptools" ,python-setuptools)
477 ;; Tests
478 ("python-mock" ,python-mock)
479 ("python-mox3" ,python-mox3)
480 ("python-oslotest" ,python-oslotest)
481 ("python-testscenarios" ,python-testscenarios)))
482 (home-page "http://launchpad.net/oslo")
483 (synopsis "Oslo internationalization (i18n) library")
484 (description
485 "The oslo.i18n library contain utilities for working with
486internationalization (i18n) features, especially translation for text strings
487in an application or library.")
488 (license asl2.0)))
489
490(define-public python2-oslo.i18n
491 (package-with-python2 python-oslo.i18n))
492
aee6412a
CR
493(define-public python-oslo.log
494 (package
495 (name "python-oslo.log")
496 (version "1.6.0")
497 (source
498 (origin
499 (method url-fetch)
500 (uri (string-append
501 "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-"
502 version
503 ".tar.gz"))
504 (sha256
505 (base32
506 "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z"))))
507 (build-system python-build-system)
508 (propagated-inputs
509 `(("python-debtcollector" ,python-debtcollector)
510 ("python-oslo.config" ,python-oslo.config)
511 ("python-oslo.context" ,python-oslo.context)
512 ("python-oslo.i18n" ,python-oslo.i18n)
513 ("python-oslo.utils" ,python-oslo.utils)
514 ("python-oslo.serialization" ,python-oslo.serialization)
515 ("python-six" ,python-six)))
516 (inputs
517 `(("python-babel" ,python-babel)
518 ("python-iso8601" ,python-iso8601)
519 ("python-mock" ,python-mock)
520 ("python-oslotest" ,python-oslotest)
521 ("python-pbr" ,python-pbr)
522 ("python-setuptools" ,python-setuptools)))
523 (home-page "http://launchpad.net/oslo")
524 (synopsis "Python logging library of the Oslo project")
525 (description
526 "The oslo.log (logging) configuration library provides standardized
527configuration for all OpenStack projects. It also provides custom formatters,
528handlers and support for context specific logging (like resource id’s etc).")
529 (license asl2.0)))
530
531(define-public python2-oslo.log
532 (package-with-python2 python-oslo.log))
533
5702efe3
CR
534(define-public python-oslo.serialization
535 (package
536 (name "python-oslo.serialization")
f66bb273 537 (version "2.2.0")
5702efe3
CR
538 (source
539 (origin
540 (method url-fetch)
278c0efd 541 (uri (pypi-uri "oslo.serialization" version))
5702efe3
CR
542 (sha256
543 (base32
f66bb273 544 "00s03krhf833gs76aw5ns32w9m1i4hx6x6d9g82m0j5wyqk0sci4"))))
5702efe3
CR
545 (build-system python-build-system)
546 (propagated-inputs
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)))
553 (inputs
554 `(("python-babel" ,python-babel)
555 ("python-pbr" ,python-pbr)
556 ("python-setuptools" ,python-setuptools)
557 ;; Tests.
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")
563 (description
564 "The oslo.serialization library provides support for representing objects
565in transmittable and storable formats, such as JSON and MessagePack.")
566 (license asl2.0)))
567
568(define-public python2-oslo.serialization
569 (package-with-python2 python-oslo.serialization))
570
f4c7dc55
CR
571(define-public python-oslosphinx
572 (package
573 (name "python-oslosphinx")
ec89a25c 574 (version "4.2.0")
f4c7dc55
CR
575 (source
576 (origin
577 (method url-fetch)
578 (uri (pypi-uri "oslosphinx" version))
579 (sha256
580 (base32
ec89a25c 581 "178svff46pmynpsnw06gpxk0w13p1gwkqbsvyxphblxv9wl09ksz"))))
f4c7dc55
CR
582 (build-system python-build-system)
583 (propagated-inputs
584 `(("python-requests" ,python-requests)))
585 (inputs
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")
593 (description
594 "This package provides themes and extensions for Sphinx documentation
595from the OpenStack project.")
596 (license asl2.0)))
597
598(define-public python2-oslosphinx
599 (package-with-python2 python-oslosphinx))
600
2053949a
CR
601(define-public python-oslotest
602 (package
603 (name "python-oslotest")
5a4849e1 604 (version "1.10.0")
2053949a
CR
605 (source
606 (origin
607 (method url-fetch)
608 (uri (string-append
609 "https://pypi.python.org/packages/source/o/oslotest/oslotest-"
610 version
611 ".tar.gz"))
612 (sha256
613 (base32
5a4849e1 614 "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs"))))
2053949a
CR
615 (build-system python-build-system)
616 (propagated-inputs
617 `(("python-fixtures" ,python-fixtures)
618 ("python-mock" ,python-mock)
39d3f2ed 619 ("python-mox3" ,python-mox3)
2053949a
CR
620 ("python-six" ,python-six)))
621 (inputs
622 `(("python-pbr" ,python-pbr)
2053949a
CR
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")
631 (description
632 "The Oslo Test framework provides common fixtures, support for debugging,
633and better support for mocking results.")
634 (license asl2.0)))
635
636(define-public python2-oslotest
637 (package-with-python2 python-oslotest))
27cc9f25
CR
638
639(define-public python-oslo.utils
640 (package
641 (name "python-oslo.utils")
94ce6b49 642 (version "3.0.0")
27cc9f25
CR
643 (source
644 (origin
645 (method url-fetch)
94ce6b49 646 (uri (pypi-uri "oslo.utils" version))
27cc9f25
CR
647 (sha256
648 (base32
94ce6b49 649 "1c4jrbvfs4hs37fics8frqlyhmsv7v92ncv2cpbm0av9x0ic6pnj"))
27cc9f25
CR
650 (snippet
651 '(begin
652 ;; FIXME: setuptools fails to import this file during the test
653 ;; phase.
654 (delete-file "oslo_utils/tests/test_netutils.py")))))
655 (build-system python-build-system)
656 (propagated-inputs
657 `(("python-debtcollector" ,python-debtcollector)
658 ("python-oslo.i18n" ,python-oslo.i18n)
659 ("python-iso8601" ,python-iso8601)
660 ("python-monotonic" ,python-monotonic)
661 ("python-netaddr" ,python-netaddr)
662 ("python-netifaces" ,python-netifaces)
663 ("python-pytz" ,python-pytz)
664 ("python-six" ,python-six)))
665 (inputs
666 `(("python-babel" ,python-babel)
667 ("python-pbr" ,python-pbr)
668 ("python-setuptools" ,python-setuptools)
669 ;; Tests.
670 ("python-oslotest" ,python-oslotest)
671 ("python-mock" ,python-mock)
672 ("python-mox3" ,python-mox3)
673 ("python-testscenarios" ,python-testscenarios)))
674 (home-page "http://launchpad.net/oslo")
675 (synopsis "Oslo utility library")
676 (description
677 "The @code{oslo.utils} library provides support for common utility type
678functions, such as encoding, exception handling, string manipulation, and time
679handling.")
680 (license asl2.0)))
681
682(define-public python2-oslo.utils
683 (package-with-python2 python-oslo.utils))
c9e330d0
EF
684
685(define-public python-keystoneclient
686 (package
687 (name "python-keystoneclient")
688 (version "1.8.1")
689 (source
690 (origin
691 (method url-fetch)
692 (uri (pypi-uri "python-keystoneclient" version))
693 (sha256
694 (base32
695 "1w4csvkah67rfpxylxnvs2s3594i0f9isy8pf4gnsqs5zirvjaa4"))))
696 (build-system python-build-system)
697 (native-inputs
698 `(("python-setuptools" ,python-setuptools)
699 ("python-sphinx" ,python-sphinx)
700 ;; and some packages for the tests
701 ("openssl" ,openssl)
702 ("python-coverage" ,python-coverage)
703 ("python-discover" ,python-discover)
704 ("python-fixtures" ,python-fixtures)
705 ("python-hacking" ,python-hacking)
706 ("python-keyring" ,python-keyring)
707 ("python-lxml" ,python-lxml)
708 ("python-mock" ,python-mock)
709 ("python-mox3" ,python-mox3)
710 ("python-oauthlib" ,python-oauthlib)
711 ("python-oslosphinx" ,python-oslosphinx)
712 ("python-oslotest" ,python-oslotest)
713 ("python-pycrypto" ,python-pycrypto)
714 ("python-requests-mock" ,python-requests-mock)
715 ("python-temptest-lib" ,python-tempest-lib)
716 ("python-testrepository" ,python-testrepository)
717 ("python-testresources" ,python-testresources)
718 ("python-testtools" ,python-testtools)
719 ("python-webob" ,python-webob)))
720 (propagated-inputs
721 `(("python-babel" ,python-babel)
722 ("python-debtcollector" ,python-debtcollector)
723 ("python-iso8601" ,python-iso8601)
724 ("python-netaddr" ,python-netaddr)
725 ("python-oslo.config" ,python-oslo.config)
726 ("python-oslo.i18n" ,python-oslo.i18n)
727 ("python-oslo.serialization" ,python-oslo.serialization)
728 ("python-oslo.utils" ,python-oslo.utils)
729 ("python-pbr" ,python-pbr)
730 ("python-prettytable" ,python-prettytable)
731 ("python-requests" ,python-requests)
732 ("python-six" ,python-six)
733 ("python-stevedore" ,python-stevedore)))
734 (home-page "http://www.openstack.org/")
735 (synopsis "Client Library for OpenStack Identity")
736 (description
737 "Python-keystoneclient is the identity service used by OpenStack for
738authentication (authN) and high-level authorization (authZ). It currently
739supports token-based authN with user/service authZ, and is scalable to support
740OAuth, SAML, and OpenID in future versions. Out of the box, Keystone uses
741SQLite for its identity store database, with the option to connect to external
742LDAP.")
743 (license asl2.0)))
744
745(define-public python2-keystoneclient
746 (let ((keystoneclient (package-with-python2 python-keystoneclient)))
747 (package (inherit keystoneclient)
748 (native-inputs
749 `(("python2-oauthlib" ,python2-oauthlib)
750 ,@(alist-delete
751 "python-oauthlib"
752 (package-native-inputs keystoneclient)))))))