lol

pythonPackages.google_cloud_firestore: 2.0.1 -> 2.0.2, cleanups

+41 -12
+41 -12
pkgs/development/python-modules/google_cloud_firestore/default.nix
··· 1 1 { stdenv 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , aiounittest 4 5 , google_api_core 6 + , google_cloud_testutils 5 7 , google_cloud_core 6 - , pytest 8 + , mock 9 + , proto-plus 10 + , pytestCheckHook 11 + , pytest-asyncio 7 12 }: 8 13 9 14 buildPythonPackage rec { 10 15 pname = "google-cloud-firestore"; 11 - version = "2.0.1"; 16 + version = "2.0.2"; 12 17 13 18 src = fetchPypi { 14 19 inherit pname version; 15 - sha256 = "ae1f58d9174a6fb2c9fd2758c6d4fd237fb4f0decc632b80c217bfbceda38eb6"; 20 + sha256 = "1q5s2gpkibnjxal9zrz02jfnazf7rxk0bi0ln5a3di6i47kjnga9"; 16 21 }; 17 22 18 - checkInputs = [ pytest ]; 19 - propagatedBuildInputs = [ google_api_core google_cloud_core ]; 23 + propagatedBuildInputs = [ 24 + google_api_core 25 + google_cloud_core 26 + proto-plus 27 + ]; 20 28 21 - # tests were not included with release 22 - # See issue https://github.com/googleapis/google-cloud-python/issues/6380 23 - doCheck = false; 29 + checkInputs = [ 30 + aiounittest 31 + google_cloud_testutils 32 + mock 33 + pytestCheckHook 34 + pytest-asyncio 35 + ]; 24 36 25 - checkPhase = '' 26 - pytest tests/unit 37 + preCheck = '' 38 + # do not shadow imports 39 + rm -r google 27 40 ''; 28 41 42 + pytestFlagsArray = [ 43 + # tests are broken 44 + "--ignore=tests/system/test_system.py" 45 + "--ignore=tests/system/test_system_async.py" 46 + ]; 47 + 48 + disabledTests = [ 49 + # requires credentials 50 + "test_collections" 51 + ]; 52 + 53 + pythonImportsCheck = [ 54 + "google.cloud.firestore_v1" 55 + "google.cloud.firestore_admin_v1" 56 + ]; 57 + 29 58 meta = with stdenv.lib; { 30 59 description = "Google Cloud Firestore API client library"; 31 - homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 60 + homepage = "https://github.com/googleapis/python-firestore"; 32 61 license = licenses.asl20; 33 - maintainers = [ maintainers.costrouc ]; 62 + maintainers = with maintainers; [ SuperSandro2000 ]; 34 63 }; 35 64 }