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