From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Jeffers Subject: [PATCH] gnu: Add python-requests-oauthlib Date: Fri, 12 Aug 2016 18:15:43 -0700 Message-ID: <20160812181543.13facb2c@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/3XwaYK+XDpHlE6AuJniSp/I" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYNYf-00021I-93 for guix-devel@gnu.org; Fri, 12 Aug 2016 21:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYNYa-0000tJ-W2 for guix-devel@gnu.org; Fri, 12 Aug 2016 21:16:16 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:54559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYNYa-0000sF-Ln for guix-devel@gnu.org; Fri, 12 Aug 2016 21:16:12 -0400 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 --MP_/3XwaYK+XDpHlE6AuJniSp/I Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --MP_/3XwaYK+XDpHlE6AuJniSp/I Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=python-requests-oauthlib.patch =46rom 5d475aff4eb6e9ec9058b80e5a40bb0cff6f5d9d Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Fri, 12 Aug 2016 18:10:16 -0700 Subject: [PATCH] gnu: Add python-requests-oauthlib. * gnu/packages/python.scm (python-requests-oauthlib, python2-requests-oauthlib): New variables. --- gnu/packages/python.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ff1c5c..db0388e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1,4 +1,3 @@ -;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013 Nikita Karetnikov ;;; Copyright =C2=A9 2013, 2014, 2015, 2016 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2013, 2014, 2015, 2016 Andreas Enge @@ -24,6 +23,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2016 Troy Sankey ;;; Copyright =C2=A9 2016 ng0 +;;; Copyright =C2=A9 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -70,6 +70,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages networking) #:use-module (gnu packages ncurses) + #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -9852,3 +9853,40 @@ etc.") (package (inherit base) (name "ptpython2")))) + +(define-public python-requests-oauthlib + (package + (name "python-requests-oauthlib") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requests-oauthlib" version)) + (sha256 + (base32 + "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; removes tests that require network access + (add-before 'check 'pre-check + (lambda _ (delete-file "tests/test_core.py") + #t))))) + (native-inputs + `(("python-requests-mock" ,python-requests-mock) + ("python-mock" ,python-mock))) + (inputs + `(("python-oauthlib" ,python-oauthlib) + ("python-requests" ,python-requests))) + (home-page + "https://github.com/requests/requests-oauthlib") + (synopsis + "OAuthlib authentication support for Requests") + (description + "This package provides first-class OAuth library +support for python-requests.") + (license isc))) + +(define-public python2-requests-oauthlib + (package-with-python2 python-requests-oauthlib)) --=20 2.7.3 --MP_/3XwaYK+XDpHlE6AuJniSp/I--