2018-04-03 13:12:22 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytestrunner, requests, urllib3, mock, setuptools }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dropbox";
|
2019-01-02 16:43:02 +00:00
|
|
|
version = "9.3.0";
|
2018-04-03 13:12:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-02 16:43:02 +00:00
|
|
|
sha256 = "1ckpbksdby70d70m58b904h8y8v7m82h12n3q3qk58r4yrqwvld5";
|
2018-04-03 13:12:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Set DROPBOX_TOKEN environment variable to a valid token.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ requests urllib3 mock setuptools ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
|
|
|
|
homepage = https://www.dropbox.com/developers/core/docs;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|