1{ lib, buildPythonPackage, fetchFromGitHub
2, requests, urllib3, mock, setuptools, stone }:
3
4buildPythonPackage rec {
5 pname = "dropbox";
6 version = "11.23.0";
7
8 src = fetchFromGitHub {
9 owner = "dropbox";
10 repo = "dropbox-sdk-python";
11 rev = "v${version}";
12 sha256 = "1zrwr73dirmkbkcpy8v49hb52xffh0k9wp2603aysg9435w1rxvx";
13 };
14
15 postPatch = ''
16 substituteInPlace setup.py \
17 --replace "'pytest-runner == 5.2.0'," ""
18 '';
19
20 propagatedBuildInputs = [ requests urllib3 mock setuptools stone ];
21
22 # Set DROPBOX_TOKEN environment variable to a valid token.
23 doCheck = false;
24
25 pythonImportsCheck = [ "dropbox" ];
26
27 meta = with lib; {
28 description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
29 homepage = "https://www.dropbox.com/developers/core/docs";
30 license = licenses.mit;
31 maintainers = with maintainers; [ ];
32 };
33}