* [PATCH] gnu: Add python-requests-oauthlib
@ 2016-08-13 1:15 Dylan Jeffers
2016-08-21 20:07 ` Leo Famulari
0 siblings, 1 reply; 2+ messages in thread
From: Dylan Jeffers @ 2016-08-13 1:15 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: python-requests-oauthlib.patch --]
[-- Type: text/x-patch, Size: 2848 bytes --]
From 5d475aff4eb6e9ec9058b80e5a40bb0cff6f5d9d Mon Sep 17 00:00:00 2001
From: Dylan Jeffers <sapientech@openmailbox.org>
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 © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
@@ -24,6 +23,7 @@
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 Dylan Jeffers <sapientech@openmailbox.org>
;;;
;;; 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))
--
2.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add python-requests-oauthlib
2016-08-13 1:15 [PATCH] gnu: Add python-requests-oauthlib Dylan Jeffers
@ 2016-08-21 20:07 ` Leo Famulari
0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2016-08-21 20:07 UTC (permalink / raw)
To: Dylan Jeffers; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
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
<sapientech@sapientech@openmailbox.org> [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
[-- Attachment #2: 0001-gnu-Add-python-requests-oauthlib.patch --]
[-- Type: text/plain, Size: 3221 bytes --]
From e7c419b98362f69926f00d6ced08c7ea6ab91336 Mon Sep 17 00:00:00 2001
From: Dylan Jeffers <sapientech@openmailbox.org>
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 <leo@famulari.name>
---
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 <nikita@karetnikov.org>
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
@@ -24,7 +23,7 @@
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
-;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
+;;; Copyright © 2016 Dylan Jeffers <sapientech@openmailbox.org>
;;;
;;; 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-21 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13 1:15 [PATCH] gnu: Add python-requests-oauthlib Dylan Jeffers
2016-08-21 20:07 ` Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).