2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-08-27 14:25:00 +00:00
|
|
|
, requests, urllib3, mock, setuptools, stone }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dropbox";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "11.16.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "99e84367d5b983815a3680eea2c7e67bff14637c4702010c5c58611eb714dfe2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-08-27 14:25:00 +00:00
|
|
|
--replace "'pytest-runner == 5.2.0'," ""
|
2021-04-26 19:14:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
propagatedBuildInputs = [ requests urllib3 mock setuptools stone ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Set DROPBOX_TOKEN environment variable to a valid token.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
pythonImportsCheck = [ "dropbox" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
|
|
|
|
homepage = "https://www.dropbox.com/developers/core/docs";
|
|
|
|
license = licenses.mit;
|
2021-08-27 14:25:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|