Something went wrong. Try again.
lol
Something went wrong. Try again.
2.1 kB · 97 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ lib, buildPythonPackage, fetchFromGitHub, setuptools, requests, six, stone, mock, pytest-mock, pytestCheckHook, sphinxHook, sphinx-rtd-theme,}:
buildPythonPackage rec { pname = "dropbox"; version = "12.0.2"; pyproject = true;
outputs = [ "out" "doc" ];
src = fetchFromGitHub { owner = "dropbox"; repo = "dropbox-sdk-python"; tag = "v${version}"; hash = "sha256-9Fsh06V226vIyJhrlLkh9Xr4UGoEIISnIFCtuKqI218="; };
build-system = [ setuptools ];
dependencies = [ requests six stone ];
nativeCheckInputs = [ mock pytest-mock pytestCheckHook ];
postPatch = '' substituteInPlace setup.py \ --replace-fail "'pytest-runner==5.2.0'," "" '';
pythonImportsCheck = [ "dropbox" ];
nativeBuildInputs = [ sphinxHook sphinx-rtd-theme ];
# Version 12.0.0 re-introduced Python 2 support and set some very restrictive version bounds # https://github.com/dropbox/dropbox-sdk-python/commit/75596daf316b4a806f18057e2797a15bdf83cf6d # This will be the last major version to support Python 2, so version bounds might be more reasonable again in the future. pythonRelaxDeps = [ "stone" ];
# Set SCOPED_USER_DROPBOX_TOKEN environment variable to a valid value. disabledTests = [ "test_default_oauth2_urls" "test_bad_auth" "test_multi_auth" "test_refresh" "test_app_auth" "test_downscope" "test_rpc" "test_upload_download" "test_bad_upload_types" "test_clone_when_user_linked" "test_with_path_root_constructor" "test_path_root" "test_path_root_err" "test_versioned_route" "test_team" "test_as_user" "test_as_admin" "test_clone_when_team_linked" "test_bad_pins" "test_bad_pins_session" ];
meta = { description = "Python library for Dropbox's HTTP-based Core and Datastore APIs"; homepage = "https://github.com/dropbox/dropbox-sdk-python"; changelog = "https://github.com/dropbox/dropbox-sdk-python/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sfrijters ]; };}