Patchwork [2/3] gnu: Add python-dropbox

login
register
mail settings
Submitter Brendan Tildesley
Date Sept. 20, 2016, 11:32 a.m.
Message ID <af558247-2d54-d3dd-e661-15d8cad8e95a@openmailbox.org>
Download mbox | patch
Permalink /patch/15794/
State New
Headers show

Comments

Brendan Tildesley - Sept. 20, 2016, 11:32 a.m.

Patch

From b76af9fa56ebd49147d91e9944281ea0da55a752 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <brendan.tildesley@openmailbox.org>
Date: Tue, 20 Sep 2016 20:07:31 +1000
Subject: [PATCH 2/3] gnu: Add python-dropbox.

* gnu/packages/python.scm (python-dropbox): New variable.
* gnu/packages/python.scm (python2-dropbox): New variable.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 77fcdf6..d80e710 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10918,3 +10918,31 @@  and runtime type checkers, static analyzers, IDEs and other tools.")
 
 (define-public python2-typing
   (package-with-python2 python-typing))
+
+(define-public python-dropbox
+  (package
+    (name "python-dropbox")
+    (version "6.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "dropbox" version))
+       (sha256
+        (base32
+         "0csd2mgsppmfw66c8mk0309p9w05wnqisqsn0qaqmcxygq156nhi"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-requests" ,python-requests)
+       ("python-six" ,python-six)
+       ("python-urllib3" ,python-urllib3)))
+    (propagated-inputs
+     `(("python-typing" ,python-typing)))
+    (home-page "http://www.dropbox.com/developers")
+    (synopsis "Official Dropbox API Client")
+    (description "Python SDK for integrating with the Dropbox API")
+    (license license:expat)))
+
+(define-public python2-dropbox
+  (package-with-python2 python-dropbox))
-- 
2.9.3