lol

Merge pull request #170289 from SFrijters/python-dropbox-cleanup

python3Packages.dropbox: Clean up package and enable more tests

authored by

Thiago Kenji Okada and committed by
GitHub
8e9dc9e6 031bd93e

+36 -10
+36 -10
pkgs/development/python-modules/dropbox/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , pythonOlder 3 4 , fetchFromGitHub 4 5 , requests 5 - , urllib3 6 - , mock 7 - , setuptools 6 + , six 8 7 , stone 9 - , pythonOlder 8 + , mock 9 + , pytest-mock 10 + , pytestCheckHook 10 11 }: 11 12 12 13 buildPythonPackage rec { ··· 20 21 owner = "dropbox"; 21 22 repo = "dropbox-sdk-python"; 22 23 rev = "v${version}"; 23 - sha256 = "sha256-pq/LkyOCS0PnujfN9aIx42aeZ8tw4XvRQ4Vid/nXgWE="; 24 + hash = "sha256-w07r95MBAClf0F3SICiZsHLdslzf+JuxC+BVdTACCog="; 24 25 }; 25 26 26 27 propagatedBuildInputs = [ 27 28 requests 28 - urllib3 29 + six 30 + stone 31 + ]; 32 + 33 + checkInputs = [ 29 34 mock 30 - setuptools 31 - stone 35 + pytest-mock 36 + pytestCheckHook 32 37 ]; 33 38 34 39 postPatch = '' ··· 36 41 --replace "'pytest-runner == 5.2.0'," "" 37 42 ''; 38 43 39 - # Set DROPBOX_TOKEN environment variable to a valid token. 40 - doCheck = false; 44 + doCheck = true; 41 45 42 46 pythonImportsCheck = [ 43 47 "dropbox" 48 + ]; 49 + 50 + # Set SCOPED_USER_DROPBOX_TOKEN environment variable to a valid value. 51 + disabledTests = [ 52 + "test_default_oauth2_urls" 53 + "test_bad_auth" 54 + "test_multi_auth" 55 + "test_refresh" 56 + "test_app_auth" 57 + "test_downscope" 58 + "test_rpc" 59 + "test_upload_download" 60 + "test_bad_upload_types" 61 + "test_clone_when_user_linked" 62 + "test_with_path_root_constructor" 63 + "test_path_root" 64 + "test_path_root_err" 65 + "test_versioned_route" 66 + "test_team" 67 + "test_as_user" 68 + "test_as_admin" 69 + "test_clone_when_team_linked" 44 70 ]; 45 71 46 72 meta = with lib; {