all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add python-pypump.
Date: Mon,  9 Jan 2017 12:03:39 +0200	[thread overview]
Message-ID: <20170109100347.29913-2-efraim@flashner.co.il> (raw)
In-Reply-To: <20170109100347.29913-1-efraim@flashner.co.il>

* gnu/packages/pumpio.scm (python-pypump): New variable.
---
 gnu/packages/pumpio.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/pumpio.scm b/gnu/packages/pumpio.scm
index a74d474..f834884 100644
--- a/gnu/packages/pumpio.scm
+++ b/gnu/packages/pumpio.scm
@@ -23,7 +23,9 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
   #:use-module (gnu packages aspell)
+  #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages web))
 
@@ -66,3 +68,40 @@
     (description "Pumpa is a simple pump.io client written in C++ and Qt.")
     (home-page "https://pumpa.branchable.com/")
     (license gpl3+)))
+
+(define-public python-pypump
+  (package
+    (name "python-pypump")
+    (version "0.7")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "PyPump" version))
+        (sha256
+         (base32
+          "0100b8r76hwh4lbiwb2dji6jccpi4hgi2ns7qdgb3lwfidnya3ha"))))
+    (build-system python-build-system)
+    (arguments `(#:tests? #f)) ; FIXME: can't find test directory.
+    (inputs
+     `(("python-dateutil-2" ,python-dateutil-2)
+       ("python-requests" ,python-requests)
+       ("python-requests-oauthlib" ,python-requests-oauthlib)))
+    (home-page "https://github.com/xray7224/PyPump")
+    (synopsis "Python Pump.io library")
+    (description "Python Pump.io library")
+    (license gpl3+)
+    (properties `((python2-variant . ,(delay python2-pypump))))))
+
+(define-public python2-pypump
+  (let ((pypump (package-with-python2
+                  (strip-python2-variant python-pypump))))
+    (package (inherit pypump)
+      (inputs
+       `(("python2-ndg-httpsclient" ,python2-ndg-httpsclient)
+         ("python2-pyasn1" ,python2-pyasn1)
+         ("python2-pyopenssl" ,python2-pyopenssl)
+         ,@(package-inputs pypump)))
+      (native-inputs
+       `(("python2-mock" ,python2-mock)
+         ("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs pypump))))))
-- 
2.10.0

  reply	other threads:[~2017-01-09 10:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-09 10:03 [PATCH 0/9] Add more qtmodules Efraim Flashner
2017-01-09 10:03 ` Efraim Flashner [this message]
2017-01-09 11:03   ` [PATCH] gnu: Add python-pypump Efraim Flashner
2017-01-09 10:03 ` [PATCH 1/9] gnu: Add qtdeclarative-render2d Efraim Flashner
2017-01-09 10:03 ` [PATCH 2/9] gnu: Add qtserialbus Efraim Flashner
2017-01-09 10:03 ` [PATCH 3/9] gnu: Add qtgamepad Efraim Flashner
2017-01-09 10:03 ` [PATCH 4/9] gnu: Add qtscxml Efraim Flashner
2017-01-09 10:03 ` [PATCH 5/9] gnu: Add qtpurchasing Efraim Flashner
2017-01-09 10:03 ` [PATCH 6/9] gnu: Add qtcanvas3d Efraim Flashner
2017-01-09 10:03 ` [PATCH 7/9] gnu: Add qtcharts Efraim Flashner
2017-01-09 10:03 ` [PATCH 8/9] gnu: Add qtdatavis3d Efraim Flashner
2017-01-09 23:11 ` [PATCH 0/9] Add more qtmodules Leo Famulari
2017-01-10  9:02   ` Efraim Flashner
  -- strict thread matches above, loose matches on Subject: below --
2016-08-13  1:31 [PATCH] gnu: Add python-pypump Dylan Jeffers
2016-08-13 12:57 ` Leo Famulari
2016-08-13 19:32   ` Dylan Jeffers
2016-08-13 23:07     ` Leo Famulari
2016-08-14 23:07       ` Dylan Jeffers
2016-08-15 18:41         ` Leo Famulari
2016-08-15 22:17           ` Dylan Jeffers
2016-08-19 22:17             ` Leo Famulari
2016-09-05  9:21               ` Efraim Flashner
2016-08-15 22:29           ` Danny Milosavljevic
2016-08-15 22:41             ` Leo Famulari
2016-08-16 18:02             ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170109100347.29913-2-efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.