From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 23/31] gnu: Add python-oauthlib. Date: Fri, 5 Sep 2014 11:18:29 -0400 Message-ID: <1409930317-13220-23-git-send-email-dthompson2@worcester.edu> References: <1409930317-13220-1-git-send-email-dthompson2@worcester.edu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPvIJ-0001am-HP for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPvIB-0003jH-IN for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:23 -0400 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]:33601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPvIB-0003if-Bu for guix-devel@gnu.org; Fri, 05 Sep 2014 11:19:15 -0400 Received: by mail-yh0-f46.google.com with SMTP id t59so7485775yho.33 for ; Fri, 05 Sep 2014 08:19:13 -0700 (PDT) In-Reply-To: <1409930317-13220-1-git-send-email-dthompson2@worcester.edu> 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 * gnu/packages/python.scm (python-oauthlib, python2-oauthlib): New variables. --- gnu/packages/python.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 886dc03..6c6fdb5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1613,7 +1613,7 @@ somewhat intelligeble.") "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) (build-system python-build-system) (inputs - `(("python" ,python) ;; need libpython3.3m + `(("python" ,python) ; need libpython3.3m ("python-setuptools" ,python-setuptools) ("gmp" ,gmp))) (arguments @@ -1624,9 +1624,57 @@ somewhat intelligeble.") %standard-phases))) (home-page "http://www.pycrypto.org/") (synopsis "Cryptographic modules for Python.") - (description "Cryptographic modules for Python.") + (description "Pycrypto is a collection of both secure hash functions (such +as SHA256 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, +ElGamal, etc.).") (license public-domain))) (define-public python2-pycrypto (package-with-python2 python-pycrypto)) +(define-public python-oauthlib + (package + (name "python-oauthlib") + (version "0.6.3") + (source (origin + (method url-fetch) + (uri + (string-append + "https://pypi.python.org/packages/source/o/oauthlib/oauthlib-" + version ".tar.gz")) + (sha256 + (base32 + "1yaj3j64la4arwsbhbfmpnickzh3jpg9nlpyg409v8pp24isn48a")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools) + ("python-pyjwt" ,python-pyjwt) + ("python-pycrypto" ,python-pycrypto) + ("python-nose" ,python-nose) + ("python-mock" ,python-mock))) + (home-page "https://github.com/idan/oauthlib") + (synopsis "OAuth implementation for Python") + (description + "Oauthlib is a generic, spec-compliant, thorough implementation of the +OAuth request-signing logic.") + (license bsd-3))) + +(define-public python2-oauthlib + (let ((base (package-with-python2 python-oauthlib))) + (package + (inherit base) + (name "python2-oauthlib") + (version "0.6.3") + (source (origin + (method url-fetch) + (uri + (string-append + "https://pypi.python.org/packages/source/o/oauthlib/oauthlib-" + version ".tar.gz")) + (sha256 + (base32 + "1yaj3j64la4arwsbhbfmpnickzh3jpg9nlpyg409v8pp24isn48a")))) + (inputs + (append (package-inputs base) + `(("python2-unittest2" ,python2-unittest2))))))) + -- 2.0.1