gnu: Add python-netaddr.
[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
CR
141
142;; Packages from the Oslo library
8531b326
CR
143(define-public python-oslo.i18n
144 (package
145 (name "python-oslo.i18n")
146 (version "2.5.0")
147 (source
148 (origin
149 (method url-fetch)
150 (uri (string-append
151 "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-"
152 version
153 ".tar.gz"))
154 (sha256
155 (base32
156 "1kg72mqldlri3x0bhxai7j979czrd7mf8s3iflvvv0x9kn9ah4cw"))))
157 (build-system python-build-system)
158 (propagated-inputs
159 `(("python-babel" ,python-babel)
160 ("python-six" ,python-six)))
161 (inputs
162 `(("python-pbr" ,python-pbr)
163 ("python-setuptools" ,python-setuptools)
164 ;; Tests
165 ("python-mock" ,python-mock)
166 ("python-mox3" ,python-mox3)
167 ("python-oslotest" ,python-oslotest)
168 ("python-testscenarios" ,python-testscenarios)))
169 (home-page "http://launchpad.net/oslo")
170 (synopsis "Oslo internationalization (i18n) library")
171 (description
172 "The oslo.i18n library contain utilities for working with
173internationalization (i18n) features, especially translation for text strings
174in an application or library.")
175 (license asl2.0)))
176
177(define-public python2-oslo.i18n
178 (package-with-python2 python-oslo.i18n))
179
2053949a
CR
180(define-public python-oslotest
181 (package
182 (name "python-oslotest")
5a4849e1 183 (version "1.10.0")
2053949a
CR
184 (source
185 (origin
186 (method url-fetch)
187 (uri (string-append
188 "https://pypi.python.org/packages/source/o/oslotest/oslotest-"
189 version
190 ".tar.gz"))
191 (sha256
192 (base32
5a4849e1 193 "0l3ny48ddz5xbf0v4r0jv1yhbdzinc2vy0lybhdkmx3xy0b886fs"))))
2053949a
CR
194 (build-system python-build-system)
195 (propagated-inputs
196 `(("python-fixtures" ,python-fixtures)
197 ("python-mock" ,python-mock)
198 ("python-six" ,python-six)))
199 (inputs
200 `(("python-pbr" ,python-pbr)
201 ("python-mox3" ,python-mox3)
202 ("python-os-client-config" ,python-os-client-config)
203 ("python-setuptools" ,python-setuptools)
204 ("python-subunit" ,python-subunit)
205 ("python-testrepository" ,python-testrepository)
206 ("python-testscenarios" ,python-testscenarios)
207 ("python-testtools" ,python-testtools)))
208 (home-page "http://launchpad.net/oslo")
209 (synopsis "Oslo test framework")
210 (description
211 "The Oslo Test framework provides common fixtures, support for debugging,
212and better support for mocking results.")
213 (license asl2.0)))
214
215(define-public python2-oslotest
216 (package-with-python2 python-oslotest))