2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
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-12-26 17:43:05 +00:00
|
|
|
version = "11.25.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dropbox";
|
|
|
|
repo = "dropbox-sdk-python";
|
|
|
|
rev = "v${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "1ln6m6wiym5608i26abs8a5nm4mnn7s3czhnpg9nyjyndnr7k0xj";
|
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
|
|
|
};
|
|
|
|
}
|