17 buildPythonPackage rec {
22 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
31 repo = "dropbox-sdk-python";
33 hash = "sha256-9Fsh06V226vIyJhrlLkh9Xr4UGoEIISnIFCtuKqI218=";
36 build-system = [ setuptools ];
51 substituteInPlace setup.py \
52 --replace "'pytest-runner==5.2.0'," ""
55 pythonImportsCheck = [ "dropbox" ];
62 # Version 12.0.0 re-introduced Python 2 support and set some very restrictive version bounds
63 # https://github.com/dropbox/dropbox-sdk-python/commit/75596daf316b4a806f18057e2797a15bdf83cf6d
64 # This will be the last major version to support Python 2, so version bounds might be more reasonable again in the future.
69 # Set SCOPED_USER_DROPBOX_TOKEN environment variable to a valid value.
71 "test_default_oauth2_urls"
78 "test_upload_download"
79 "test_bad_upload_types"
80 "test_clone_when_user_linked"
81 "test_with_path_root_constructor"
84 "test_versioned_route"
88 "test_clone_when_team_linked"
90 "test_bad_pins_session"
94 description = "Python library for Dropbox's HTTP-based Core and Datastore APIs";
95 homepage = "https://github.com/dropbox/dropbox-sdk-python";
96 changelog = "https://github.com/dropbox/dropbox-sdk-python/releases/tag/v${version}";
97 license = licenses.mit;
98 maintainers = with maintainers; [ sfrijters ];