gnu: Add python-stevedore.
[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>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages openstack)
20 #:use-module (gnu packages python)
21 #:use-module (gnu packages version-control)
22 #:use-module (guix build-system python)
23 #:use-module (guix download)
24 #:use-module ((guix licenses)
25 #:select (asl2.0))
26 #:use-module (guix packages))
27
35f1ebeb
CR
28(define-public python-mox3
29 (package
30 (name "python-mox3")
31 (version "0.8.0")
32 (source
33 (origin
34 (method url-fetch)
35 (uri (string-append
36 "https://pypi.python.org/packages/source/m/mox3/mox3-"
37 version
38 ".tar.gz"))
39 (sha256
40 (base32
41 "1dwj9lkifdqvrcympqa47bj55l0n0j9jhzv2gj03h0dpzg6mgfkj"))))
42 (build-system python-build-system)
43 (inputs
44 `(("python-fixtures" ,python-fixtures)
45 ("python-pbr" ,python-pbr)
46 ("python-setuptools" ,python-setuptools)
47 ("python-six" ,python-six)
48 ("python-testtools" ,python-testtools)))
49 (home-page "http://www.openstack.org/")
50 (synopsis "Mock object framework for Python")
51 (description
52 "Mox3 is an unofficial port of the Google mox framework
53(http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
54with mox as possible, but small enhancements have been made. The library was
55tested on Python version 3.2, 2.7 and 2.6.")
56 (license asl2.0)))
57
1edd421b
CR
58(define-public python-os-client-config
59 (package
60 (name "python-os-client-config")
61 (version "1.4.0")
62 (source
63 (origin
64 (method url-fetch)
65 (uri (string-append
66 "https://pypi.python.org/packages/source/o/os-client-config/os-client-config-"
67 version
68 ".tar.gz"))
69 (sha256
70 (base32
71 "14png6ml3zbbilh8bihav24f8vig9lyijwynnjcvazdxxrzvwq9j"))))
72 (build-system python-build-system)
73 (arguments
74 `(#:tests? #f)) ;; Circular dependency with python-oslotest
75 (inputs
76 `(("python-appdirs" ,python-appdirs)
77 ("python-fixtures" ,python-fixtures)
78 ("python-mimeparse" ,python-mimeparse)
79 ("python-pbr" ,python-pbr)
80 ("python-pyyaml" ,python-pyyaml)
81 ("python-testrepository" ,python-testrepository)
82 ("python-setuptools" ,python-setuptools)
83 ("python-testscenarios" ,python-testscenarios)
84 ("python-testtools" ,python-testtools)))
85 (home-page "http://www.openstack.org/")
86 (synopsis
87 "OpenStack Client Configuration Library")
88 (description
89 "The OpenStack Client Configuration Library is a library for collecting
90 client configuration for using an OpenStack cloud in a consistent and
91 comprehensive manner.")
92 (license asl2.0)))
93
94(define-public python2-os-client-config
95 (package-with-python2 python-os-client-config))
96
35f1ebeb
CR
97(define-public python2-mox3
98 (package-with-python2 python-mox3))
99
7c4810a1
CR
100(define-public python-pbr
101 (package
102 (name "python-pbr")
ea8e40d0 103 (version "1.6.0")
7c4810a1
CR
104 (source
105 (origin
106 (method url-fetch)
107 (uri (string-append
108 "https://pypi.python.org/packages/source/p/pbr/pbr-"
109 version
110 ".tar.gz"))
111 (sha256
112 (base32
ea8e40d0 113 "1lg1klrczvzfan89y3bl9ykrknl3nb01vvai37fkww24apzyibjf"))))
7c4810a1
CR
114 (build-system python-build-system)
115 (arguments
116 `(#:tests? #f)) ;; Most tests seem to use the Internet.
117 (propagated-inputs
118 `(("python-testrepository" ,python-testrepository)
119 ("git" ,git))) ;; pbr actually uses the "git" binary.
120 (inputs
121 `(("python-fixtures" ,python-fixtures)
122 ("python-mimeparse" ,python-mimeparse)
123 ("python-mock" ,python-mock)
124 ("python-setuptools" ,python-setuptools)
125 ("python-six" ,python-six)
126 ("python-sphinx" ,python-sphinx)
127 ("python-testrepository" ,python-testrepository)
128 ("python-testresources" ,python-testresources)
129 ("python-testscenarios" ,python-testscenarios)
130 ("python-testtools" ,python-testtools)
131 ("python-virtualenv" ,python-virtualenv)))
132 (home-page "https://launchpad.net/pbr")
133 (synopsis "Change the default behavior of Python’s setuptools")
134 (description
135 "Python Build Reasonableness (PBR) is a library that injects some useful
136and sensible default behaviors into your setuptools run.")
137 (license asl2.0)))
138
139(define-public python2-pbr
140 (package-with-python2 python-pbr))
2053949a 141
673d1a9d
CR
142(define-public python-stevedore
143 (package
144 (name "python-stevedore")
145 (version "1.7.0")
146 (source
147 (origin
148 (method url-fetch)
149 (uri (string-append
150 "https://pypi.python.org/packages/source/s/stevedore/stevedore-"
151 version
152 ".tar.gz"))
153 (sha256
154 (base32
155 "149pjc0c3z6khjisn4yil3f94qjnzwafz093wc8rrzbw828qdkv8"))))
156 (build-system python-build-system)
157 (propagated-inputs
158 `(("python-six" ,python-six)))
159 (inputs
160 `(("python-pbr" ,python-pbr)
161 ("python-setuptools" ,python-setuptools)
162 ;; Tests
163 ("python-docutils" ,python-docutils)
164 ("python-mock" ,python-mock)
165 ("python-oslotest" ,python-oslotest)
166 ("python-sphinx" ,python-sphinx)))
167 (home-page "https://github.com/dreamhost/stevedore")
168 (synopsis "Manage dynamic plugins for Python applications")
169 (description
170 "Python makes loading code dynamically easy, allowing you to configure
171and extend your application by discovering and loading extensions (“plugins”)
172at runtime. Many applications implement their own library for doing this,
173using __import__ or importlib. stevedore avoids creating yet another extension
174mechanism by building on top of setuptools entry points. The code for managing
175entry points tends to be repetitive, though, so stevedore provides manager
176classes for implementing common patterns for using dynamically loaded
177extensions.")
178 (license asl2.0)))
179
180(define-public python2-stevedore
181 (package-with-python2 python-stevedore))
182
2053949a 183;; Packages from the Oslo library
8531b326
CR
184(define-public python-oslo.i18n
185 (package
186 (name "python-oslo.i18n")
187 (version "2.5.0")
188 (source
189 (origin
190 (method url-fetch)
191 (uri (string-append
192 "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-"
193 version
194 ".tar.gz"))
195 (sha256
196 (base32
197 "1kg72mqldlri3x0bhxai7j979czrd7mf8s3iflvvv0x9kn9ah4cw"))))
198 (build-system python-build-system)
199 (propagated-inputs
200 `(("python-babel" ,python-babel)
201 ("python-six" ,python-six)))
202 (inputs
203 `(("python-pbr" ,python-pbr)
204 ("python-setuptools" ,python-setuptools)
205 ;; Tests
206 ("python-mock" ,python-mock)
207 ("python-mox3" ,python-mox3)
208 ("python-oslotest" ,python-oslotest)
209 ("python-testscenarios" ,python-testscenarios)))
210 (home-page "http://launchpad.net/oslo")
211 (synopsis "Oslo internationalization (i18n) library")
212 (description
213 "The oslo.i18n library contain utilities for working with
214internationalization (i18n) features, especially translation for text strings
215in an application or library.")
216 (license asl2.0)))
217
218(define-public python2-oslo.i18n
219 (package-with-python2 python-oslo.i18n))
220
2053949a
CR
221(define-public python-oslotest
222 (package
223 (name "python-oslotest")
5a4849e1 224 (version "1.10.0")
2053949a
CR
225 (source
226 (origin
227 (method url-fetch)
228 (uri (string-append
229 "https://pypi.python.org/packages/source/o/oslotest/oslotest-"
230 version
231 ".tar.gz"))
232 (sha256
233 (base32
5a4849e1 234 "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs"))))
2053949a
CR
235 (build-system python-build-system)
236 (propagated-inputs
237 `(("python-fixtures" ,python-fixtures)
238 ("python-mock" ,python-mock)
239 ("python-six" ,python-six)))
240 (inputs
241 `(("python-pbr" ,python-pbr)
242 ("python-mox3" ,python-mox3)
243 ("python-os-client-config" ,python-os-client-config)
244 ("python-setuptools" ,python-setuptools)
245 ("python-subunit" ,python-subunit)
246 ("python-testrepository" ,python-testrepository)
247 ("python-testscenarios" ,python-testscenarios)
248 ("python-testtools" ,python-testtools)))
249 (home-page "http://launchpad.net/oslo")
250 (synopsis "Oslo test framework")
251 (description
252 "The Oslo Test framework provides common fixtures, support for debugging,
253and better support for mocking results.")
254 (license asl2.0)))
255
256(define-public python2-oslotest
257 (package-with-python2 python-oslotest))