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