Commit | Line | Data |
---|---|---|
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) | |
22 | #:use-module (gnu packages version-control) | |
23 | #:use-module (guix build-system python) | |
24 | #:use-module (guix download) | |
25 | #:use-module ((guix licenses) | |
26 | #:select (asl2.0)) | |
27 | #:use-module (guix packages)) | |
28 | ||
f5a21dc4 CR |
29 | (define-public python-bandit |
30 | (package | |
31 | (name "python-bandit") | |
32 | (version "0.13.2") | |
33 | (source | |
34 | (origin | |
35 | (method url-fetch) | |
36 | (uri (string-append | |
37 | "https://pypi.python.org/packages/source/b/bandit/bandit-" | |
38 | version ".tar.gz")) | |
39 | (sha256 | |
40 | (base32 | |
41 | "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g")))) | |
42 | (build-system python-build-system) | |
43 | (propagated-inputs | |
44 | `(("python-appdirs" ,python-appdirs) | |
45 | ("python-pyyaml" ,python-pyyaml) | |
46 | ("python-six" ,python-six) | |
47 | ("python-stevedore" ,python-stevedore))) | |
48 | (inputs | |
49 | `(("python-pbr" ,python-pbr) | |
50 | ("python-setuptools" ,python-setuptools) | |
51 | ;; Tests | |
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.") | |
59 | (description | |
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.") | |
64 | (license asl2.0))) | |
65 | ||
66 | (define-public python2-bandit | |
67 | (package-with-python2 python-bandit)) | |
68 | ||
2713527e CR |
69 | (define-public python-debtcollector |
70 | (package | |
71 | (name "python-debtcollector") | |
72 | (version "0.5.0") | |
73 | (source | |
74 | (origin | |
75 | (method url-fetch) | |
76 | (uri (string-append | |
77 | "https://pypi.python.org/packages/source/d/debtcollector/" | |
78 | "debtcollector-" version ".tar.gz")) | |
79 | (sha256 | |
80 | (base32 | |
81 | "0amlcg5f98lk2mfzdg44slh1nsi2y4ds123g5d57376fjk2b3njd")))) | |
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 | |
97 | strategies that help you collect your technical debt in a non-destructive | |
98 | manner.") | |
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 | |
132 | guidelines}.") | |
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") | |
141 | (version "0.8.0") | |
142 | (source | |
143 | (origin | |
144 | (method url-fetch) | |
145 | (uri (string-append | |
146 | "https://pypi.python.org/packages/source/m/mox3/mox3-" | |
147 | version | |
148 | ".tar.gz")) | |
149 | (sha256 | |
150 | (base32 | |
151 | "1dwj9lkifdqvrcympqa47bj55l0n0j9jhzv2gj03h0dpzg6mgfkj")))) | |
152 | (build-system python-build-system) | |
153 | (inputs | |
154 | `(("python-fixtures" ,python-fixtures) | |
155 | ("python-pbr" ,python-pbr) | |
156 | ("python-setuptools" ,python-setuptools) | |
157 | ("python-six" ,python-six) | |
158 | ("python-testtools" ,python-testtools))) | |
159 | (home-page "http://www.openstack.org/") | |
160 | (synopsis "Mock object framework for Python") | |
161 | (description | |
162 | "Mox3 is an unofficial port of the Google mox framework | |
163 | (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible | |
164 | with mox as possible, but small enhancements have been made. The library was | |
165 | tested on Python version 3.2, 2.7 and 2.6.") | |
166 | (license asl2.0))) | |
167 | ||
1edd421b CR |
168 | (define-public python-os-client-config |
169 | (package | |
170 | (name "python-os-client-config") | |
171 | (version "1.4.0") | |
172 | (source | |
173 | (origin | |
174 | (method url-fetch) | |
175 | (uri (string-append | |
176 | "https://pypi.python.org/packages/source/o/os-client-config/os-client-config-" | |
177 | version | |
178 | ".tar.gz")) | |
179 | (sha256 | |
180 | (base32 | |
181 | "14png6ml3zbbilh8bihav24f8vig9lyijwynnjcvazdxxrzvwq9j")))) | |
182 | (build-system python-build-system) | |
183 | (arguments | |
184 | `(#:tests? #f)) ;; Circular dependency with python-oslotest | |
185 | (inputs | |
186 | `(("python-appdirs" ,python-appdirs) | |
187 | ("python-fixtures" ,python-fixtures) | |
188 | ("python-mimeparse" ,python-mimeparse) | |
189 | ("python-pbr" ,python-pbr) | |
190 | ("python-pyyaml" ,python-pyyaml) | |
191 | ("python-testrepository" ,python-testrepository) | |
192 | ("python-setuptools" ,python-setuptools) | |
193 | ("python-testscenarios" ,python-testscenarios) | |
194 | ("python-testtools" ,python-testtools))) | |
195 | (home-page "http://www.openstack.org/") | |
196 | (synopsis | |
197 | "OpenStack Client Configuration Library") | |
198 | (description | |
199 | "The OpenStack Client Configuration Library is a library for collecting | |
200 | client configuration for using an OpenStack cloud in a consistent and | |
201 | comprehensive manner.") | |
202 | (license asl2.0))) | |
203 | ||
204 | (define-public python2-os-client-config | |
205 | (package-with-python2 python-os-client-config)) | |
206 | ||
35f1ebeb CR |
207 | (define-public python2-mox3 |
208 | (package-with-python2 python-mox3)) | |
209 | ||
2931f464 CR |
210 | (define-public python-os-testr |
211 | (package | |
212 | (name "python-os-testr") | |
213 | (version "0.4.2") | |
214 | (source | |
215 | (origin | |
216 | (method url-fetch) | |
217 | (uri (pypi-uri "os-testr" version)) | |
218 | (sha256 | |
219 | (base32 | |
220 | "0474z0mxb7y3vfk4s097wf1mzji5d135vh27cvlh9q17rq3x9r3w")))) | |
221 | (build-system python-build-system) | |
222 | (arguments | |
223 | ;; os-testr uses itself to run the tests. It seems like pbr writes the | |
224 | ;; exectuable in the virtualenv when using tox. Not sure how to do this | |
225 | ;; when building the package. Skip the tests for now. | |
226 | `(#:tests? #f)) | |
227 | (propagated-inputs | |
228 | `(("python-pbr" ,python-pbr) | |
229 | ("python-subunit" ,python-subunit) | |
230 | ("python-testtools" ,python-testtools))) | |
231 | (inputs | |
232 | `(("python-babel" ,python-babel) | |
233 | ("python-setuptools" ,python-setuptools))) | |
234 | (home-page "http://www.openstack.org/") | |
235 | (synopsis "Testr wrapper to provide functionality for OpenStack projects") | |
236 | (description | |
237 | "Os-testr provides developers with a testr wrapper and an output filter | |
238 | for subunit.") | |
239 | (license asl2.0))) | |
240 | ||
241 | (define-public python2-os-testr | |
242 | (package-with-python2 python-os-testr)) | |
243 | ||
7c4810a1 CR |
244 | (define-public python-pbr |
245 | (package | |
246 | (name "python-pbr") | |
ccd20fcb | 247 | (version "1.8.1") |
7c4810a1 CR |
248 | (source |
249 | (origin | |
250 | (method url-fetch) | |
251 | (uri (string-append | |
252 | "https://pypi.python.org/packages/source/p/pbr/pbr-" | |
253 | version | |
254 | ".tar.gz")) | |
255 | (sha256 | |
256 | (base32 | |
ccd20fcb | 257 | "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) |
7c4810a1 CR |
258 | (build-system python-build-system) |
259 | (arguments | |
260 | `(#:tests? #f)) ;; Most tests seem to use the Internet. | |
261 | (propagated-inputs | |
262 | `(("python-testrepository" ,python-testrepository) | |
263 | ("git" ,git))) ;; pbr actually uses the "git" binary. | |
264 | (inputs | |
265 | `(("python-fixtures" ,python-fixtures) | |
266 | ("python-mimeparse" ,python-mimeparse) | |
267 | ("python-mock" ,python-mock) | |
268 | ("python-setuptools" ,python-setuptools) | |
269 | ("python-six" ,python-six) | |
270 | ("python-sphinx" ,python-sphinx) | |
271 | ("python-testrepository" ,python-testrepository) | |
272 | ("python-testresources" ,python-testresources) | |
273 | ("python-testscenarios" ,python-testscenarios) | |
274 | ("python-testtools" ,python-testtools) | |
275 | ("python-virtualenv" ,python-virtualenv))) | |
276 | (home-page "https://launchpad.net/pbr") | |
277 | (synopsis "Change the default behavior of Python’s setuptools") | |
278 | (description | |
279 | "Python Build Reasonableness (PBR) is a library that injects some useful | |
280 | and sensible default behaviors into your setuptools run.") | |
281 | (license asl2.0))) | |
282 | ||
283 | (define-public python2-pbr | |
284 | (package-with-python2 python-pbr)) | |
2053949a | 285 | |
2c9d9676 CR |
286 | (define-public python-requests-mock |
287 | (package | |
288 | (name "python-requests-mock") | |
289 | (version "0.6.0") | |
290 | (source | |
291 | (origin | |
292 | (method url-fetch) | |
293 | (uri (string-append | |
294 | "https://pypi.python.org/packages/source/r/requests-mock/" | |
295 | "requests-mock-" version ".tar.gz")) | |
296 | (sha256 | |
297 | (base32 | |
298 | "0gmd88c224y53b1ai8cfsrcxm9kw3gdqzysclmnaqspg7zjhxwd1")))) | |
299 | (build-system python-build-system) | |
300 | (propagated-inputs | |
301 | `(("python-requests" ,python-requests) | |
302 | ("python-six" ,python-six))) | |
303 | (inputs | |
304 | `(("python-mock" ,python-mock) | |
305 | ("python-pbr" ,python-pbr) | |
306 | ("python-setuptools" ,python-setuptools))) | |
307 | (home-page "https://requests-mock.readthedocs.org/") | |
308 | (synopsis "Mock out responses from the requests package") | |
309 | (description | |
310 | "This module provides a building block to stub out the HTTP requests | |
311 | portions of your testing code.") | |
312 | (license asl2.0))) | |
313 | ||
314 | (define-public python2-requests-mock | |
315 | (package-with-python2 python-requests-mock)) | |
316 | ||
673d1a9d CR |
317 | (define-public python-stevedore |
318 | (package | |
319 | (name "python-stevedore") | |
320 | (version "1.7.0") | |
321 | (source | |
322 | (origin | |
323 | (method url-fetch) | |
324 | (uri (string-append | |
325 | "https://pypi.python.org/packages/source/s/stevedore/stevedore-" | |
326 | version | |
327 | ".tar.gz")) | |
328 | (sha256 | |
329 | (base32 | |
330 | "149pjc0c3z6khjisn4yil3f94qjnzwafz093wc8rrzbw828qdkv8")))) | |
331 | (build-system python-build-system) | |
332 | (propagated-inputs | |
333 | `(("python-six" ,python-six))) | |
334 | (inputs | |
335 | `(("python-pbr" ,python-pbr) | |
336 | ("python-setuptools" ,python-setuptools) | |
337 | ;; Tests | |
338 | ("python-docutils" ,python-docutils) | |
339 | ("python-mock" ,python-mock) | |
340 | ("python-oslotest" ,python-oslotest) | |
341 | ("python-sphinx" ,python-sphinx))) | |
342 | (home-page "https://github.com/dreamhost/stevedore") | |
343 | (synopsis "Manage dynamic plugins for Python applications") | |
344 | (description | |
345 | "Python makes loading code dynamically easy, allowing you to configure | |
346 | and extend your application by discovering and loading extensions (“plugins”) | |
347 | at runtime. Many applications implement their own library for doing this, | |
348 | using __import__ or importlib. stevedore avoids creating yet another extension | |
349 | mechanism by building on top of setuptools entry points. The code for managing | |
350 | entry points tends to be repetitive, though, so stevedore provides manager | |
351 | classes for implementing common patterns for using dynamically loaded | |
352 | extensions.") | |
353 | (license asl2.0))) | |
354 | ||
355 | (define-public python2-stevedore | |
356 | (package-with-python2 python-stevedore)) | |
357 | ||
465b61fc CR |
358 | (define-public python-tempest-lib |
359 | (package | |
360 | (name "python-tempest-lib") | |
361 | (version "0.9.0") | |
362 | (source | |
363 | (origin | |
364 | (method url-fetch) | |
365 | (uri (pypi-uri "tempest-lib" version)) | |
366 | (sha256 | |
367 | (base32 | |
368 | "1s32rpxw86p41ip9nr7zbqxd60mw1cqz2isirby36rh4vl68bfhx")))) | |
369 | (build-system python-build-system) | |
370 | (arguments | |
371 | `(#:phases | |
372 | (modify-phases %standard-phases | |
373 | (add-before | |
374 | 'check 'pre-check | |
375 | (lambda _ | |
376 | (substitute* "tempest_lib/tests/cli/test_execute.py" | |
377 | (("/bin/ls") (which "ls")))))))) | |
378 | (propagated-inputs | |
379 | `(("python-fixtures" ,python-fixtures) | |
380 | ("python-httplib2" ,python-httplib2) | |
381 | ("python-iso8601" ,python-iso8601) | |
382 | ("python-jsonschema" ,python-jsonschema) | |
383 | ("python-oslo.log" ,python-oslo.log) | |
384 | ("python-paramiko" ,python-paramiko) | |
385 | ("python-pbr" ,python-pbr) | |
386 | ("python-six" ,python-six))) | |
387 | (inputs | |
388 | `(("python-babel" ,python-babel) | |
389 | ("python-mock" ,python-mock) | |
390 | ("python-os-testr" ,python-os-testr) | |
391 | ("python-oslotest" ,python-oslotest) | |
392 | ("python-setuptools" ,python-setuptools))) | |
393 | (home-page "http://www.openstack.org/") | |
394 | (synopsis "OpenStack functional testing library") | |
395 | (description | |
396 | "Tempest-lib is a functional testing library for OpenStack. It provides | |
397 | common features used in Tempest.") | |
398 | (license asl2.0))) | |
399 | ||
400 | (define-public python2-tempest-lib | |
401 | (package-with-python2 python-tempest-lib)) | |
402 | ||
2053949a | 403 | ;; Packages from the Oslo library |
ed56af06 CR |
404 | (define-public python-oslo.config |
405 | (package | |
406 | (name "python-oslo.config") | |
407 | (version "2.4.0") | |
408 | (source | |
409 | (origin | |
410 | (method url-fetch) | |
411 | (uri (string-append | |
412 | "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-" | |
413 | version | |
414 | ".tar.gz")) | |
415 | (sha256 | |
416 | (base32 | |
417 | "13r778jfb0fhna37c2pd1f2xipnsbd7zli7qhn96acrzymrwj5k1")))) | |
418 | (build-system python-build-system) | |
419 | (propagated-inputs | |
420 | `(("python-netaddr" ,python-netaddr) | |
421 | ("python-six" ,python-six) | |
422 | ("python-stevedore" ,python-stevedore))) | |
423 | (inputs | |
424 | `(("python-pbr" ,python-pbr) | |
425 | ("python-setuptools" ,python-setuptools) | |
426 | ;; Tests | |
427 | ("python-oslo.i18n" ,python-oslo.i18n) | |
428 | ("python-mock" ,python-mock) | |
429 | ("python-oslotest" ,python-oslotest) | |
430 | ("python-testscenarios" ,python-testscenarios))) | |
431 | (home-page "https://launchpad.net/oslo") | |
432 | (synopsis "Oslo Configuration API") | |
433 | (description | |
434 | "The Oslo configuration API supports parsing command line arguments and | |
435 | .ini style configuration files.") | |
436 | (license asl2.0))) | |
437 | ||
438 | (define-public python2-oslo.config | |
439 | (package-with-python2 python-oslo.config)) | |
440 | ||
c7c7a936 CR |
441 | (define-public python-oslo.context |
442 | (package | |
443 | (name "python-oslo.context") | |
444 | (version "0.6.0") | |
445 | (source | |
446 | (origin | |
447 | (method url-fetch) | |
448 | (uri (string-append | |
449 | "https://pypi.python.org/packages/source/o/oslo.context/" | |
450 | "oslo.context-" version ".tar.gz")) | |
451 | (sha256 | |
452 | (base32 | |
453 | "16wr9qrkc3lb94ssb14qid4liza66x316fvzjw0izg67h1a0fm86")))) | |
454 | (build-system python-build-system) | |
455 | (inputs | |
456 | `(("python-babel" ,python-babel) | |
457 | ("python-pbr" ,python-pbr) | |
458 | ("python-setuptools" ,python-setuptools) | |
459 | ;; Tests. | |
460 | ("python-oslotest" ,python-oslotest))) | |
461 | (home-page "http://launchpad.net/oslo") | |
462 | (synopsis "Oslo context library") | |
463 | (description | |
464 | "The Oslo context library has helpers to maintain useful information | |
465 | about a request context. The request context is usually populated in the WSGI | |
466 | pipeline and used by various modules such as logging.") | |
467 | (license asl2.0))) | |
468 | ||
469 | (define-public python2-oslo.context | |
470 | (package-with-python2 python-oslo.context)) | |
471 | ||
8531b326 CR |
472 | (define-public python-oslo.i18n |
473 | (package | |
474 | (name "python-oslo.i18n") | |
475 | (version "2.5.0") | |
476 | (source | |
477 | (origin | |
478 | (method url-fetch) | |
479 | (uri (string-append | |
480 | "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-" | |
481 | version | |
482 | ".tar.gz")) | |
483 | (sha256 | |
484 | (base32 | |
485 | "1kg72mqldlri3x0bhxai7j979czrd7mf8s3iflvvv0x9kn9ah4cw")))) | |
486 | (build-system python-build-system) | |
487 | (propagated-inputs | |
488 | `(("python-babel" ,python-babel) | |
489 | ("python-six" ,python-six))) | |
490 | (inputs | |
491 | `(("python-pbr" ,python-pbr) | |
492 | ("python-setuptools" ,python-setuptools) | |
493 | ;; Tests | |
494 | ("python-mock" ,python-mock) | |
495 | ("python-mox3" ,python-mox3) | |
496 | ("python-oslotest" ,python-oslotest) | |
497 | ("python-testscenarios" ,python-testscenarios))) | |
498 | (home-page "http://launchpad.net/oslo") | |
499 | (synopsis "Oslo internationalization (i18n) library") | |
500 | (description | |
501 | "The oslo.i18n library contain utilities for working with | |
502 | internationalization (i18n) features, especially translation for text strings | |
503 | in an application or library.") | |
504 | (license asl2.0))) | |
505 | ||
506 | (define-public python2-oslo.i18n | |
507 | (package-with-python2 python-oslo.i18n)) | |
508 | ||
aee6412a CR |
509 | (define-public python-oslo.log |
510 | (package | |
511 | (name "python-oslo.log") | |
512 | (version "1.6.0") | |
513 | (source | |
514 | (origin | |
515 | (method url-fetch) | |
516 | (uri (string-append | |
517 | "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-" | |
518 | version | |
519 | ".tar.gz")) | |
520 | (sha256 | |
521 | (base32 | |
522 | "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z")))) | |
523 | (build-system python-build-system) | |
524 | (propagated-inputs | |
525 | `(("python-debtcollector" ,python-debtcollector) | |
526 | ("python-oslo.config" ,python-oslo.config) | |
527 | ("python-oslo.context" ,python-oslo.context) | |
528 | ("python-oslo.i18n" ,python-oslo.i18n) | |
529 | ("python-oslo.utils" ,python-oslo.utils) | |
530 | ("python-oslo.serialization" ,python-oslo.serialization) | |
531 | ("python-six" ,python-six))) | |
532 | (inputs | |
533 | `(("python-babel" ,python-babel) | |
534 | ("python-iso8601" ,python-iso8601) | |
535 | ("python-mock" ,python-mock) | |
536 | ("python-oslotest" ,python-oslotest) | |
537 | ("python-pbr" ,python-pbr) | |
538 | ("python-setuptools" ,python-setuptools))) | |
539 | (home-page "http://launchpad.net/oslo") | |
540 | (synopsis "Python logging library of the Oslo project") | |
541 | (description | |
542 | "The oslo.log (logging) configuration library provides standardized | |
543 | configuration for all OpenStack projects. It also provides custom formatters, | |
544 | handlers and support for context specific logging (like resource id’s etc).") | |
545 | (license asl2.0))) | |
546 | ||
547 | (define-public python2-oslo.log | |
548 | (package-with-python2 python-oslo.log)) | |
549 | ||
5702efe3 CR |
550 | (define-public python-oslo.serialization |
551 | (package | |
552 | (name "python-oslo.serialization") | |
553 | (version "1.9.0") | |
554 | (source | |
555 | (origin | |
556 | (method url-fetch) | |
557 | (uri (string-append | |
558 | "https://pypi.python.org/packages/source/o/oslo.serialization/" | |
559 | "oslo.serialization-" version ".tar.gz")) | |
560 | (sha256 | |
561 | (base32 | |
562 | "00qaxg155s61ylh4fqc7m5fh0gijf33khhai9xvcsc9k106i3c9c")))) | |
563 | (build-system python-build-system) | |
564 | (propagated-inputs | |
565 | `(("python-iso8601" ,python-iso8601) | |
566 | ("python-netaddr" ,python-netaddr) | |
567 | ("python-oslo.utils" ,python-oslo.utils) | |
568 | ("python-simplejson" ,python-simplejson) | |
569 | ("python-six" ,python-six) | |
570 | ("python-pytz" ,python-pytz))) | |
571 | (inputs | |
572 | `(("python-babel" ,python-babel) | |
573 | ("python-pbr" ,python-pbr) | |
574 | ("python-setuptools" ,python-setuptools) | |
575 | ;; Tests. | |
576 | ("python-mock" ,python-mock) | |
577 | ("python-oslo.i18n" ,python-oslo.i18n) | |
578 | ("python-oslotest" ,python-oslotest))) | |
579 | (home-page "http://launchpad.net/oslo") | |
580 | (synopsis "Oslo serialization library") | |
581 | (description | |
582 | "The oslo.serialization library provides support for representing objects | |
583 | in transmittable and storable formats, such as JSON and MessagePack.") | |
584 | (license asl2.0))) | |
585 | ||
586 | (define-public python2-oslo.serialization | |
587 | (package-with-python2 python-oslo.serialization)) | |
588 | ||
f4c7dc55 CR |
589 | (define-public python-oslosphinx |
590 | (package | |
591 | (name "python-oslosphinx") | |
592 | (version "3.1.0") | |
593 | (source | |
594 | (origin | |
595 | (method url-fetch) | |
596 | (uri (pypi-uri "oslosphinx" version)) | |
597 | (sha256 | |
598 | (base32 | |
599 | "0zcshdc9s1f7hnvg0fm2ps5rak3dpnm8kqg4i21lknhmsvb7p5cb")))) | |
600 | (build-system python-build-system) | |
601 | (propagated-inputs | |
602 | `(("python-requests" ,python-requests))) | |
603 | (inputs | |
604 | `(("python-pbr" ,python-pbr) | |
605 | ("python-docutils" ,python-docutils) | |
606 | ("python-hacking" ,python-hacking) | |
607 | ("python-setuptools" ,python-setuptools) | |
608 | ("python-sphinx" ,python-sphinx))) | |
609 | (home-page "http://www.openstack.org/") | |
610 | (synopsis "OpenStack sphinx extensions and theme") | |
611 | (description | |
612 | "This package provides themes and extensions for Sphinx documentation | |
613 | from the OpenStack project.") | |
614 | (license asl2.0))) | |
615 | ||
616 | (define-public python2-oslosphinx | |
617 | (package-with-python2 python-oslosphinx)) | |
618 | ||
2053949a CR |
619 | (define-public python-oslotest |
620 | (package | |
621 | (name "python-oslotest") | |
5a4849e1 | 622 | (version "1.10.0") |
2053949a CR |
623 | (source |
624 | (origin | |
625 | (method url-fetch) | |
626 | (uri (string-append | |
627 | "https://pypi.python.org/packages/source/o/oslotest/oslotest-" | |
628 | version | |
629 | ".tar.gz")) | |
630 | (sha256 | |
631 | (base32 | |
5a4849e1 | 632 | "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs")))) |
2053949a CR |
633 | (build-system python-build-system) |
634 | (propagated-inputs | |
635 | `(("python-fixtures" ,python-fixtures) | |
636 | ("python-mock" ,python-mock) | |
39d3f2ed | 637 | ("python-mox3" ,python-mox3) |
2053949a CR |
638 | ("python-six" ,python-six))) |
639 | (inputs | |
640 | `(("python-pbr" ,python-pbr) | |
2053949a CR |
641 | ("python-os-client-config" ,python-os-client-config) |
642 | ("python-setuptools" ,python-setuptools) | |
643 | ("python-subunit" ,python-subunit) | |
644 | ("python-testrepository" ,python-testrepository) | |
645 | ("python-testscenarios" ,python-testscenarios) | |
646 | ("python-testtools" ,python-testtools))) | |
647 | (home-page "http://launchpad.net/oslo") | |
648 | (synopsis "Oslo test framework") | |
649 | (description | |
650 | "The Oslo Test framework provides common fixtures, support for debugging, | |
651 | and better support for mocking results.") | |
652 | (license asl2.0))) | |
653 | ||
654 | (define-public python2-oslotest | |
655 | (package-with-python2 python-oslotest)) | |
27cc9f25 CR |
656 | |
657 | (define-public python-oslo.utils | |
658 | (package | |
659 | (name "python-oslo.utils") | |
660 | (version "2.5.0") | |
661 | (source | |
662 | (origin | |
663 | (method url-fetch) | |
664 | (uri (string-append | |
665 | "https://pypi.python.org/packages/source/o/oslo.utils/oslo.utils-" | |
666 | version | |
667 | ".tar.gz")) | |
668 | (sha256 | |
669 | (base32 | |
670 | "11b073gblhzkxhi1j6sqk3apq2ll8xhi9h9g9kxzx9dycqdq0qp0")) | |
671 | (snippet | |
672 | '(begin | |
673 | ;; FIXME: setuptools fails to import this file during the test | |
674 | ;; phase. | |
675 | (delete-file "oslo_utils/tests/test_netutils.py"))))) | |
676 | (build-system python-build-system) | |
677 | (propagated-inputs | |
678 | `(("python-debtcollector" ,python-debtcollector) | |
679 | ("python-oslo.i18n" ,python-oslo.i18n) | |
680 | ("python-iso8601" ,python-iso8601) | |
681 | ("python-monotonic" ,python-monotonic) | |
682 | ("python-netaddr" ,python-netaddr) | |
683 | ("python-netifaces" ,python-netifaces) | |
684 | ("python-pytz" ,python-pytz) | |
685 | ("python-six" ,python-six))) | |
686 | (inputs | |
687 | `(("python-babel" ,python-babel) | |
688 | ("python-pbr" ,python-pbr) | |
689 | ("python-setuptools" ,python-setuptools) | |
690 | ;; Tests. | |
691 | ("python-oslotest" ,python-oslotest) | |
692 | ("python-mock" ,python-mock) | |
693 | ("python-mox3" ,python-mox3) | |
694 | ("python-testscenarios" ,python-testscenarios))) | |
695 | (home-page "http://launchpad.net/oslo") | |
696 | (synopsis "Oslo utility library") | |
697 | (description | |
698 | "The @code{oslo.utils} library provides support for common utility type | |
699 | functions, such as encoding, exception handling, string manipulation, and time | |
700 | handling.") | |
701 | (license asl2.0))) | |
702 | ||
703 | (define-public python2-oslo.utils | |
704 | (package-with-python2 python-oslo.utils)) |