From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] gnu: Add python-requests-oauthlib Date: Sun, 21 Aug 2016 16:07:02 -0400 Message-ID: <20160821200702.GA18423@jasmine> References: <20160812181543.13facb2c@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="7JfCtLOvnd9MIVvH" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbZ1c-00044N-0D for guix-devel@gnu.org; Sun, 21 Aug 2016 16:07:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbZ1V-0005Xw-Sy for guix-devel@gnu.org; Sun, 21 Aug 2016 16:07:18 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:49357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbZ1T-0005Xn-IT for guix-devel@gnu.org; Sun, 21 Aug 2016 16:07:13 -0400 Content-Disposition: inline In-Reply-To: <20160812181543.13facb2c@openmailbox.org> 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: Dylan Jeffers Cc: guix-devel@gnu.org --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 12, 2016 at 06:15:43PM -0700, Dylan Jeffers wrote: > * gnu/packages/python.scm (python-requests-oauthlib, > python2-requests-oauthlib): New variables. Thank you! > +(define-public python2-requests-oauthlib > + (package-with-python2 python-requests-oauthlib)) This python-2 variant of the package did not build because it needs Setuptools, so I used the python2-variant system to provide python2-setuptools. I'd like to push the attached patch. But, can you confirm which email address you want to use for copyright attribution in 'gnu/packages/python.scm'? Currently, it is [0], which is different from what you used in this patch. Please clarify :) [0] http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python.scm#n27 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-gnu-Add-python-requests-oauthlib.patch" Content-Transfer-Encoding: 8bit >From e7c419b98362f69926f00d6ced08c7ea6ab91336 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. Co-authored-by: Leo Famulari --- gnu/packages/python.scm | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 15c957e..55e2ddc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1,4 +1,3 @@ -;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge @@ -24,7 +23,7 @@ ;;; Copyright © 2016 Sou Bunnbu ;;; Copyright © 2016 Troy Sankey ;;; Copyright © 2016 ng0 -;;; Copyright © 2016 Dylan Jeffers +;;; Copyright © 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -73,6 +72,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) @@ -9983,3 +9983,43 @@ hardware-accelerated multitouch applications.") (define-public python2-kivy-next (package-with-python2 python-kivy-next)) + +(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) + (properties `((python2-variant . ,(delay python2-requests-oauthlib)))))) + +(define-public python2-requests-oauthlib + (let ((base (package-with-python2 + (strip-python2-variant python-requests-oauthlib)))) + (package + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.3 --7JfCtLOvnd9MIVvH--