From cfa7d0cbdc443431f82689ec778448f8f080f8a2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 13 Aug 2020 19:46:48 +0300 Subject: gnu: Add python-dropbox. * gnu/packages/file-systems.scm (python-dropbox): New variable. --- gnu/packages/file-systems.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index d2e022c05a..7d06e3e899 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -30,6 +30,7 @@ (define-module (gnu packages file-systems) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system linux-module) + #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix utils) #:use-module (gnu packages) @@ -57,6 +58,8 @@ (define-module (gnu packages file-systems) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) #:use-module (gnu packages rsync) @@ -858,3 +861,31 @@ (define-public mergerfs-tools compatible directories.") (home-page "https://github.com/trapexit/mergerfs-tools") (license license:isc)))) + +(define-public python-dropbox + (package + (name "python-dropbox") + (version "10.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dropbox" version)) + (sha256 + (base32 + "137rn9fs1bg1p1khd5lcccfxh8jsx27dh2ix5wwd8cmddbrzdrbd")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; Tests require a network connection. + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-chardet" ,python-chardet) + ("python-requests" ,python-requests) + ("python-six" ,python-six) + ("python-urllib3" ,python-urllib3))) + (home-page "https://www.dropbox.com/developers") + (synopsis "Official Dropbox API Client") + (description "This package provides a Python SDK for integrating with the +Dropbox API v2.") + (license license:expat))) -- cgit v1.2.3