From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 08/18] gnu: Add python-routes. Date: Sun, 2 Oct 2016 11:00:45 +0000 Message-ID: <20161002110054.2297-9-ngillmann@runbox.com> References: <87bmz9cu89.fsf@we.make.ritual.n0.is> <20161002110054.2297-1-ngillmann@runbox.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqeW9-0005ab-Ot for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqeW7-0002Y2-PK for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:12 -0400 Received: from aibo.runbox.com ([91.220.196.211]:60989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqeW7-0002Xn-Ig for guix-devel@gnu.org; Sun, 02 Oct 2016 07:01:11 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bqeW6-0002Gf-TB for guix-devel@gnu.org; Sun, 02 Oct 2016 13:01:10 +0200 In-Reply-To: <20161002110054.2297-1-ngillmann@runbox.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" To: guix-devel@gnu.org * gnu/packages/python.scm (python-routes): New variable. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 61c97e2..6fea678 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1841,6 +1841,40 @@ result back.") (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) +(define-public python-routes + (package + (name "python-routes") + (version "2.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Routes" version)) + (sha256 + (base32 + "0l83p5prsjq0cccm6596dpv1inlafa1p7q1v8rrvi40ivjsq1hwq")))) + (build-system python-build-system) + (inputs + `(("python-repoze.lru" ,python-repoze.lru) + ("python-six" ,python-six) + ("python-coverage" ,python-coverage) + ("python-webob" ,python-webob) + ("python-webtest" ,python-webtest) + ("python-nose" ,python-nose))) + (home-page "http://routes.readthedocs.org/") + (synopsis "Routing Recognition and Generation Tools") + (description + "A Routing package for Python that matches URLs to dicts and vice versa.") + (properties `((python2-variant . ,(delay python2-routes)))) + (license license:expat))) + +(define-public python2-routes + (let ((base (package-with-python2 + (strip-python2-variant python-routes)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools)))))) + (define-public python-scripttest (package (name "python-scripttest") -- 2.10.0