2018-04-03 14:12:22 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytestrunner, requests, urllib3, mock, setuptools }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dropbox";
|
2018-07-22 11:08:34 +01:00
|
|
|
version = "9.0.0";
|
2018-04-03 14:12:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:08:34 +01:00
|
|
|
sha256 = "385c62c2983c3804ba0064762f9e5f4753ea20a132c727b4961d3b68e1372ac8";
|
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;
|
|
|
|
};
|
|
|
|
}
|