;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Cyril Roelandt ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages openstack) #:use-module (gnu packages python) #:use-module (gnu packages version-control) #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) #:select (asl2.0)) #:use-module (guix packages)) (define-public python-debtcollector (package (name "python-debtcollector") (version "0.5.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/d/debtcollector/" "debtcollector-" version ".tar.gz")) (sha256 (base32 "0amlcg5f98lk2mfzdg44slh1nsi2y4ds123g5d57376fjk2b3njd")))) (build-system python-build-system) (propagated-inputs `(("python-wrapt" ,python-wrapt))) (inputs `(("python-babel" ,python-babel) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-six" ,python-six) ("python-wrapt" ,python-wrapt) ;; Tests. ("python-oslotest" ,python-oslotest))) (home-page "http://www.openstack.org/") (synopsis "A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner.") (description "A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner.") (license asl2.0))) (define-public python2-debtcollector (package-with-python2 python-debtcollector)) (define-public python-mox3 (package (name "python-mox3") (version "0.8.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/m/mox3/mox3-" version ".tar.gz")) (sha256 (base32 "1dwj9lkifdqvrcympqa47bj55l0n0j9jhzv2gj03h0dpzg6mgfkj")))) (build-system python-build-system) (inputs `(("python-fixtures" ,python-fixtures) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-six" ,python-six) ("python-testtools" ,python-testtools))) (home-page "http://www.openstack.org/") (synopsis "Mock object framework for Python") (description "Mox3 is an unofficial port of the Google mox framework (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible with mox as possible, but small enhancements have been made. The library was tested on Python version 3.2, 2.7 and 2.6.") (license asl2.0))) (define-public python2-mox3 (package-with-python2 python-mox3)) (define-public python-os-client-config (package (name "python-os-client-config") (version "1.4.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/os-client-config/os-client-config-" version ".tar.gz")) (sha256 (base32 "14png6ml3zbbilh8bihav24f8vig9lyijwynnjcvazdxxrzvwq9j")))) (build-system python-build-system) (arguments `(#:tests? #f)) ;; Circular dependency with python-oslotest (inputs `(("python-appdirs" ,python-appdirs) ("python-fixtures" ,python-fixtures) ("python-mimeparse" ,python-mimeparse) ("python-pbr" ,python-pbr) ("python-pyyaml" ,python-pyyaml) ("python-testrepository" ,python-testrepository) ("python-setuptools" ,python-setuptools) ("python-testscenarios" ,python-testscenarios) ("python-testtools" ,python-testtools))) (home-page "http://www.openstack.org/") (synopsis "OpenStack Client Configuration Library") (description "The OpenStack Client Configuration Library is a library for collecting client configuration for using an OpenStack cloud in a consistent and comprehensive manner.") (license asl2.0))) (define-public python2-os-client-config (package-with-python2 python-os-client-config)) (define-public python-pbr (package (name "python-pbr") (version "1.2.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/p/pbr/pbr-" version ".tar.gz")) (sha256 (base32 "1l2mls8wnwpkqj6hxsphq7xibbbsf40gg37wc30nj4r600zgqhqm")))) (build-system python-build-system) (arguments `(#:tests? #f)) ;; Most tests seem to use the Internet. (propagated-inputs `(("python-testrepository" ,python-testrepository) ("git" ,git))) ;; pbr actually uses the "git" binary. (inputs `(("python-fixtures" ,python-fixtures) ("python-mimeparse" ,python-mimeparse) ("python-mock" ,python-mock) ("python-setuptools" ,python-setuptools) ("python-six" ,python-six) ("python-sphinx" ,python-sphinx) ("python-testrepository" ,python-testrepository) ("python-testresources" ,python-testresources) ("python-testscenarios" ,python-testscenarios) ("python-testtools" ,python-testtools) ("python-virtualenv" ,python-virtualenv))) (home-page "https://launchpad.net/pbr") (synopsis "Python Build Reasonableness") (description "PBR is a library that injects some useful and sensible default behaviors into your setuptools run.") (license asl2.0))) (define-public python2-pbr (package-with-python2 python-pbr)) (define-public python-stevedore (package (name "python-stevedore") (version "1.6.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/s/stevedore/stevedore-" version ".tar.gz")) (sha256 (base32 "09gcy9gqyp2nzyh2yipwnw7vxfxfc2al5q1gd8g6abvlxhqsmcns")))) (build-system python-build-system) (inputs `(("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-six" ,python-six) ;; Tests ("python-docutils" ,python-docutils) ("python-mock" ,python-mock) ("python-oslotest" ,python-oslotest) ("python-sphinx" ,python-sphinx))) (home-page "https://github.com/dreamhost/stevedore") (synopsis "Manage dynamic plugins for Python applications") (description "Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extensions (“plugins”) at runtime. Many applications implement their own library for doing this, using __import__ or importlib. stevedore avoids creating yet another extension mechanism by building on top of setuptools entry points. The code for managing entry points tends to be repetitive, though, so stevedore provides manager classes for implementing common patterns for using dynamically loaded extensions.") (license asl2.0))) (define-public python2-stevedore (package-with-python2 python-stevedore)) ;; Packages from the Oslo library (define-public python-oslo.cache (package (name "python-oslo.cache") (version "0.3.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.cache/oslo.cache-" version ".tar.gz")) (sha256 (base32 "16l6lsg834wxj746q9rmlmxmv8m931vs378pa5sq0i0rxql4rhmc")))) (build-system python-build-system) (propagated-inputs `(("python-oslo.config" ,python-oslo.config) ("python-oslo.i18n" ,python-oslo.i18n) ("python-oslo.log" ,python-oslo.log) ("python-oslo.utils" ,python-oslo.utils) ("python-six" ,python-six))) (inputs `(("python-babel" ,python-babel) ("python-dogpile.cache" ,python-dogpile.cache) ("python-memcached" ,python-memcached) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ;; Tests. ("python-mock" ,python-mock) ("python-oslotest" ,python-oslotest))) (home-page "http://launchpad.net/oslo") (synopsis "Cache storage for Openstack projects.") (description "oslo.cache aims to provide a generic caching mechanism for OpenStack projects by wrapping the dogpile.cache library. The dogpile.cache library provides support memoization, key value storage and interfaces to common caching backends such as Memcached.") (license asl2.0))) (define-public python2-oslo.cache (package-with-python2 python-oslo.cache)) (define-public python-oslo.config (package (name "python-oslo.config") (version "1.15.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-" version ".tar.gz")) (sha256 (base32 "0nn522k6ba3zbi5d20j28fvcpn0d1rxh6zq1nfdlii7325rxv4y4")))) (build-system python-build-system) (propagated-inputs `(("python-netaddr" ,python-netaddr) ("python-six" ,python-six))) (inputs `(("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-stevedore" ,python-stevedore) ;; Tests ("python-oslo.i18n" ,python-oslo.i18n) ("python-mock" ,python-mock) ("python-oslotest" ,python-oslotest) ("python-testscenarios" ,python-testscenarios) )) (home-page "https://launchpad.net/oslo") (synopsis "Oslo Configuration API") (description "The Oslo configuration API supports parsing command line arguments and .ini style configuration files.") (license asl2.0))) (define-public python2-oslo.config (package-with-python2 python-oslo.config)) (define-public python-oslo.context (package (name "python-oslo.context") (version "0.4.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.context/oslo.context-" version ".tar.gz")) (sha256 (base32 "131cn2vh4z2iggzcsqnfyi93g08x6pnsk77qilzbikp5g8x4d069")))) (build-system python-build-system) (inputs `(("python-babel" ,python-babel) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ;; Tests. ("python-oslotest" ,python-oslotest))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo Context library") (description "The Oslo context library has helpers to maintain useful information about a request context. The request context is usually populated in the WSGI pipeline and used by various modules such as logging.") (license asl2.0))) (define-public python2-oslo.context (package-with-python2 python-oslo.context)) (define-public python-oslo.i18n (package (name "python-oslo.i18n") (version "2.1.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-" version ".tar.gz")) (sha256 (base32 "0762dwhaswqqkg5qff11cd4y4b8vbh4qrqh9bd24cv8h75ay2f0s")))) (build-system python-build-system) (propagated-inputs `(("python-babel" ,python-babel))) (inputs `(("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-six" ,python-six) ;; Tests ("python-mock" ,python-mock) ("python-mox3" ,python-mox3) ("python-oslotest" ,python-oslotest) ("python-testscenarios" ,python-testscenarios))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo i18n library") (description "Oslo i18n library") (license asl2.0))) (define-public python2-oslo.i18n (package-with-python2 python-oslo.i18n)) (define-public python-oslo.log (package (name "python-oslo.log") (version "1.6.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-" version ".tar.gz")) (sha256 (base32 "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z")))) (build-system python-build-system) (propagated-inputs `(("python-debtcollector" ,python-debtcollector) ("python-oslo.config" ,python-oslo.config) ("python-oslo.context" ,python-oslo.context) ("python-oslo.i18n" ,python-oslo.i18n) ("python-oslo.utils" ,python-oslo.utils) ("python-oslo.serialization" ,python-oslo.serialization) ("python-six" ,python-six))) (inputs `(("python-babel" ,python-babel) ("python-iso8601" ,python-iso8601) ("python-mock" ,python-mock) ("python-oslotest" ,python-oslotest) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools))) (home-page "http://launchpad.net/oslo") (synopsis "oslo.log library") (description "The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id’s etc).") (license asl2.0))) (define-public python2-oslo.log (package-with-python2 python-oslo.log)) (define-public python-middleware (package (name "python-oslo.middleware") (version "2.4.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.middleware/oslo.middleware-" version ".tar.gz")) (sha256 (base32 "19x6lv52zlansp0j62sb1kxxh4ba787gl9wjzwbhl6ygjf2cfaz9")))) (build-system python-build-system) (propagated-inputs `(("python-oslo.config" ,python-oslo.config) ("python-oslo.context" ,python-oslo.context) ("python-oslo.i18n" ,python-oslo.i18n) ("python-six" ,python-six) ("python-webob" ,python-webob))) (inputs `(("python-babel" ,python-babel) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ("python-stevedore" ,python-stevedore) ;; Tests. ("python-mock" ,python-mock) ("python-mox3" ,python-mox3) ("python-oslotest" ,python-oslotest))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo Middleware library") (description "Oslo middleware library includes components that can be injected into wsgi pipelines to intercept request/response flows. The base class can be enhanced with functionality like add/delete/modification of http headers and support for limiting size/connection etc.") (license asl2.0))) (define-public python2-middleware (package-with-python2 python-middleware)) (define-public python-oslo.serialization (package (name "python-oslo.serialization") (version "1.7.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.serialization/oslo.serialization-" version ".tar.gz")) (sha256 (base32 "04k47xqdv7wpdd4j60856h489h3vsp86fqzszhq5ba9ypblk4kqn")))) (build-system python-build-system) (inputs `(("python-babel" ,python-babel) ("python-iso8601" ,python-iso8601) ;("python-msgpack-python" ,python-msgpack-python) ("python-oslo.utils" ,python-oslo.utils) ("python-pbr" ,python-pbr) ("python-pytz" ,python-pytz) ("python-setuptools" ,python-setuptools) ("python-simplejson" ,python-simplejson) ("python-six" ,python-six) ;; Tests. ("python-mock" ,python-mock) ("python-netaddr" ,python-netaddr) ("python-oslo.i18n" ,python-oslo.i18n) ("python-oslotest" ,python-oslotest))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo Serialization library") (description "Oslo Serialization library") (license asl2.0))) (define-public python2-oslo.serialization (package-with-python2 python-oslo.serialization)) (define-public python-oslosphinx (package (name "python-oslosphinx") (version "3.0.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslosphinx/oslosphinx-" version ".tar.gz")) (sha256 (base32 "1xn15ihnpmzkim98297w7wivnz7n2wdqq44smf3y0xk0dfz2k4fk")) (modules '((guix build utils))) (snippet ;; The "hacking" and "sphinx" packages are specified in ;; test-requirements.txt, but they are not used for the unit tests, so ;; we do not need to add them as inputs. '(substitute* "test-requirements.txt" (("^sphinx.*") "") (("^hacking.*") ""))))) (build-system python-build-system) (inputs `(("python-pbr" ,python-pbr) ("python-requests" ,python-requests) ("python-setuptools" ,python-setuptools))) (home-page "http://www.openstack.org/") (synopsis "OpenStack Sphinx Extensions and Theme") (description "Theme and extension support for Sphinx documentation from the OpenStack project.") (license asl2.0))) (define-public python2-oslosphinx (package-with-python2 python-oslosphinx)) (define-public python-oslotest (package (name "python-oslotest") (version "1.8.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslotest/oslotest-" version ".tar.gz")) (sha256 (base32 "175dln2zxjvvh4b23f2hln6zwfy2v5f1blg7mxbwl4r3130zvs2k")))) (build-system python-build-system) (propagated-inputs `(("python-fixtures" ,python-fixtures) ("python-mock" ,python-mock) ("python-six" ,python-six))) (inputs `(("python-pbr" ,python-pbr) ("python-mox3" ,python-mox3) ("python-os-client-config" ,python-os-client-config) ("python-setuptools" ,python-setuptools) ("python-subunit" ,python-subunit) ("python-testrepository" ,python-testrepository) ("python-testscenarios" ,python-testscenarios) ("python-testtools" ,python-testtools))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo test framework") (description "The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results.") (license asl2.0))) (define-public python2-oslotest (package-with-python2 python-oslotest)) (define-public python-oslo.utils (package (name "python-oslo.utils") (version "1.9.0") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/source/o/oslo.utils/oslo.utils-" version ".tar.gz")) (sha256 (base32 "1amhpachr5b5r03rz51ydwxa5d61hlv71ipmfhhi8hkg98njrcaw")) (snippet '(begin ;; setuptools fails to import these files during the test phase. (delete-file "tests/test_netutils.py") (delete-file "oslo_utils/tests/test_netutils.py"))))) (build-system python-build-system) (propagated-inputs `(("python-debtcollector" ,python-debtcollector) ("python-oslo.i18n" ,python-oslo.i18n) ("python-iso8601" ,python-iso8601) ("python-monotonic" ,python-monotonic) ("python-netaddr" ,python-netaddr) ("python-netifaces" ,python-netifaces) ("python-pytz" ,python-pytz) ("python-six" ,python-six))) (inputs `(("python-babel" ,python-babel) ("python-pbr" ,python-pbr) ("python-setuptools" ,python-setuptools) ;; Tests. ("python-oslotest" ,python-oslotest) ("python-mock" ,python-mock) ("python-mox3" ,python-mox3) ("python-testscenarios" ,python-testscenarios))) (home-page "http://launchpad.net/oslo") (synopsis "Oslo Utility library") (description "The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.") (license asl2.0))) (define-public python2-oslo.utils (package-with-python2 python-oslo.utils))