From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 10/11] gnu: Add oslo.middleware. Date: Thu, 16 Jul 2015 01:32:30 +0200 Message-ID: <1437003151-23838-11-git-send-email-tipecaml@gmail.com> References: <1437003151-23838-1-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAe-0003ia-Lr for guix-devel@gnu.org; Wed, 15 Jul 2015 19:33:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFWAb-0001WF-FY for guix-devel@gnu.org; Wed, 15 Jul 2015 19:33:00 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:35303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAb-0001VX-1l for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:57 -0400 Received: by wiga1 with SMTP id a1so1375920wig.0 for ; Wed, 15 Jul 2015 16:32:56 -0700 (PDT) In-Reply-To: <1437003151-23838-1-git-send-email-tipecaml@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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