2018-04-03 14:12:22 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytestrunner, requests, urllib3, mock, setuptools }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dropbox";
|
2019-07-02 11:50:09 +01:00
|
|
|
version = "9.4.0";
|
2018-04-03 14:12:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-02 11:50:09 +01:00
|
|
|
sha256 = "0qid094qna6bl4zpd08f6snvipwjls1yadacvmwri11djgp0wvj3";
|
2018-04-03 14:12:22 +01: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;
|
|
|
|
};
|
|
|
|
}
|