guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/11] gnu: Add oslo.middleware.


From: Cyril Roelandt
Subject: [PATCH 10/11] gnu: Add oslo.middleware.
Date: Thu, 16 Jul 2015 01:32:30 +0200

* gnu/packages/python.scm (python-webob, python2-webob): New variables.
* gnu/packages/openstack.scm (python-oslo.middleware, python2-oslo.middleware):
  New variables.
---
 gnu/packages/openstack.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 gnu/packages/python.scm    | 28 ++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index b35b8ca..b324d3e 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -407,6 +407,48 @@ handlers and support for context specific logging (like 
resource id’s etc).")
 (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")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 31d752d..6b69dd5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4363,3 +4363,31 @@ information.")
 
 (define-public python2-memcached
   (package-with-python2 python-memcached))
+
+(define-public python-webob
+  (package
+  (name "python-WebOb")
+  (version "1.4.1")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+             "https://pypi.python.org/packages/source/W/WebOb/WebOb-";
+             version
+             ".tar.gz"))
+      (sha256
+        (base32
+          "1nz9m6ijf46wfn33zfza13c0k1n4kjnmn3icdlrlgz5yj21vky0j"))))
+  (build-system python-build-system)
+  (inputs
+    `(("python-nose" ,python-nose)
+      ("python-setuptools" ,python-setuptools)))
+  (home-page "http://webob.org/";)
+  (synopsis "WSGI request and response object")
+  (description
+    "WebOb provides wrappers around the WSGI request environment, and an object
+to help create WSGI responses.")
+  (license license:expat)))
+
+(define-public python2-webob
+  (package-with-python2 python-webob))
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]