From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH 8/18] gnu: Add python-wsgiproxy2. Date: Mon, 15 Feb 2016 15:28:47 -0800 Message-ID: <87fuwtsgcw.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSZY-0004AW-7H for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVSZU-0008SA-UX for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:52 -0500 Received: from dustycloud.org ([50.116.34.160]:39436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSZU-0008S6-Pu for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:48 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 6521C26676 for ; Mon, 15 Feb 2016 18:28:48 -0500 (EST) Content-Disposition: inline; filename=0008-gnu-Add-python-wsgiproxy2.patch 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 >From fdedc5819c7a4615128cd2d6558cd00fa2340eb4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 13 Feb 2016 20:22:47 -0800 Subject: [PATCH 08/18] gnu: Add python-wsgiproxy2. * gnu/packages/python.scm (python-wsgiproxy2, python2-wsgiproxy2): New variables. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9c86e43..e1d20f5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7709,3 +7709,40 @@ server with very acceptable performance.") (inherit (package-with-python2 (strip-python2-variant python-waitress))) (inputs `(("python2-setuptools" ,python2-setuptools))))) + +(define-public python-wsgiproxy2 + (package + (name "python-wsgiproxy2") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "WSGIProxy2" version ".zip")) + (sha256 + (base32 + "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip) + ("python-nose" ,python-nose) + ("python-coverage" ,python-coverage))) + (inputs + `(("python-six" ,python-six) + ("python-webob" ,python-webob))) + (home-page + "https://github.com/gawel/WSGIProxy2/") + (synopsis "WSGI Proxy with various http client backends") + (description "WSGI turns HTTP requests into WSGI function calls. +WSGIProxy turns WSGI function calls into HTTP requests. +It also includes code to sign requests and pass private data, +and to spawn subprocesses to handle requests.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-wsgiproxy2)))))) + +(define-public python2-wsgiproxy2 + (let ((wsgiproxy2 (package-with-python2 + (strip-python2-variant python-wsgiproxy2)))) + (package + (inherit wsgiproxy2) + (inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-inputs wsgiproxy2)))))) -- 2.6.3