From patchwork Sat Aug 13 19:32:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dylan Jeffers X-Patchwork-Id: 14547 Received: (qmail 116006 invoked by uid 89); 13 Aug 2016 19:33:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 13 Aug 2016 19:33:26 +0000 Received: from localhost ([::1]:58415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYegO-000627-Ob for patchwork@sourceware.org; Sat, 13 Aug 2016 15:33:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYegJ-000621-Lb for guix-devel@gnu.org; Sat, 13 Aug 2016 15:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYegG-0008Fi-BK for guix-devel@gnu.org; Sat, 13 Aug 2016 15:33:19 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:32820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYegF-0008FA-Ui for guix-devel@gnu.org; Sat, 13 Aug 2016 15:33:16 -0400 Received: by mail2.openmailbox.org (Postfix, from userid 1001) id 104DE1030A9; Sat, 13 Aug 2016 21:33:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1471116794; bh=7k8WdrIMyKRCjrPYPremGJ1D3cl0gefxSdwa4LoAv+4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h1cAHeClWg05iY+P7k1zBhrJiq0jd11KBH2x7TrKhFJc0WKtfpLc15wbcJIAr0nvI LMOQsJ2mgB0iULZ5GxpBQRjivV3dQDpX5Pve6jXa6jTNkH6A9ce5dkbRPKtGk9e/e/ J5ZYLuVETQ3/aP1rITNMvAwXTB4ZYeDGIJjVq5Ws= Date: Sat, 13 Aug 2016 12:32:42 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1471116791; bh=7k8WdrIMyKRCjrPYPremGJ1D3cl0gefxSdwa4LoAv+4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ouP8Vn9cNTxhxprp9qw/18aUGlOSMI0gziBT1cLfgcf7JA0cEAriQoB+tj7H4WNDK MyCMTr9o+/lCzLV9eDFHR/M1atNWGhIFtrRgF9bdgZeBEwl6Q2wppWB70cmrw4TSMS MhKdkosyvDz6fm2UZCykBcIoMt4zrwSqse7UN39U= From: Dylan Jeffers To: Leo Famulari Subject: Re: [PATCH] gnu: Add python-pypump Message-ID: <20160813123242.6162b166@openmailbox.org> In-Reply-To: <20160813125700.GA12089@jasmine> References: <20160812183129.0f76b28a@openmailbox.org> <20160813125700.GA12089@jasmine> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.4.1.33 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" On Sat, 13 Aug 2016 08:57:00 -0400 Leo Famulari wrote: > On Fri, Aug 12, 2016 at 06:31:29PM -0700, Dylan Jeffers wrote: > > When submitting patches that require other patches I've submitted, > > should I put them together in a single patch, or keep them separate > > like this? > > For patches that depend on each other, sending them as a "patch > series" will communicate the dependencies and ensure that they apply > properly. If you've made your patches on a branch besides master, you > can do: > > $ git format-patch -n master > > ... and attach those patches to an email. > > You can also use `git send-email`, which uses `git format-patch` but > will also send the patch series if you set up SMTP and configure Git > to use it. > > Can you resubmit these two patches using that method? Normally I > wouldn't ask you to do that but, in this case, this patch does not > apply cleanly after having applied the patch for > python-requests-oauthlib; they both have the same leading context: > > > @@ -9852,3 +9853,34 @@ etc.") > > (package > > (inherit base) > > (name "ptpython2")))) > > Thanks! Thanks for getting back. Here is the series! Dylan From 536a71345f1b96905c430850bdb78b83fd6b3c5c Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Sat, 13 Aug 2016 12:23:31 -0700 Subject: [PATCH 1/2] gnu: Add python-requests-oauthlib * gnu/packages/python.scm (python-requests-oauthlib, * python2-requests-oauthlib): New variables. --- gnu/packages/python.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ff1c5c..a7e5d42 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2016 Sou Bunnbu ;;; Copyright © 2016 Troy Sankey ;;; Copyright © 2016 ng0 +;;; Copyright © 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -9852,3 +9853,45 @@ 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 + (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.7.3 From 5300fd89c45514077551eeceaede84139b127854 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Sat, 13 Aug 2016 12:29:13 -0700 Subject: [PATCH 2/2] gnu: Add python-pypump. * gnu/packages/python.scm (python-pypump, python2-pypump): New * variables. --- gnu/packages/python.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a7e5d42..465ee2b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9895,3 +9895,42 @@ support for python-requests.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) +(define-public python-pypump + (package + (name "python-pypump") + (version "0.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xray7224/PyPump") + (commit "6b612a7ed3c5a9b0a0190f3999fcddb851d1900f"))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0xy9kw54a2dasc5jig1rmllwv6y3pngbw8pvi0yx2qfpswgr5qbg")))) + (build-system python-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("python-requests" ,python-requests) + ("python-oauthlib" ,python-oauthlib) + ("python-requests-oauthlib" ,python-requests-oauthlib) + ("python-dateutil-2" ,python-dateutil-2))) + (home-page "https://github.com/xray7224/PyPump") + (synopsis "Python Pump.io library") + (description "PyPump is a simple but powerful and pythonic +way of interfacing with the pump.io API.") + (license gpl3+))) + +(define-public python2-pypump + (let ((base (package-with-python2 (strip-python2-variant python-pypump)))) + (package + (inherit base) + (inputs `(("python2-requests" ,python2-requests) + ("python2-oauthlib" ,python2-oauthlib) + ("python2-requests-oauthlib" ,python2-requests-oauthlib) + ("python2-pyasn1" ,python2-pyasn1) + ("python2-pyopenssl" ,python2-pyopenssl) + ("python2-ndg-httpsclient" ,python2-ndg-httpsclient) + ("python2-dateutil-2" ,python2-dateutil-2)))))) -- 2.7.3