Something went wrong. Try again.
lol
Something went wrong. Try again.
2.0 kB · 88 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, aiounittest, buildPythonPackage, fetchPypi, freezegun, google-api-core, google-cloud-core, google-cloud-testutils, mock, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, pythonAtLeast, pythonOlder, pyyaml, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "google-cloud-firestore"; version = "2.27.0"; pyproject = true;
src = fetchPypi { pname = "google_cloud_firestore"; inherit (finalAttrs) version; hash = "sha256-VjPLFk71bKbHOoB4IhkaVqmPbxDnaXjE8usZeuAzg9I="; };
build-system = [ setuptools ];
dependencies = [ google-api-core google-cloud-core proto-plus protobuf ] ++ google-api-core.optional-dependencies.grpc;
pythonRelaxDeps = [ "protobuf" ];
nativeCheckInputs = [ freezegun google-cloud-testutils mock pytest-asyncio pytestCheckHook pyyaml ] ++ lib.optionals (pythonOlder "3.14") [ aiounittest ];
preCheck = '' # do not shadow imports rm -r google '' + lib.optionalString (pythonAtLeast "3.14") '' # aiounittest is not available for Python 3.14 rm -r tests/unit/v1/test_bulk_writer.py '';
disabledTestPaths = [ # Tests are broken "tests/system/test_system.py" "tests/system/test_system_async.py" # Test requires credentials "tests/system/test_pipeline_acceptance.py" ] ++ lib.optionals (pythonAtLeast "3.14") [ # RuntimeError: There is no current event loop in thread 'MainThread' # due to eliding aiounittest "tests/unit/v1/test_bundle.py::TestAsyncBundle::test_async_query" ];
pythonImportsCheck = [ "google.cloud.firestore_v1" "google.cloud.firestore_admin_v1" ];
meta = { description = "Google Cloud Firestore API client library"; homepage = "https://github.com/googleapis/python-firestore"; changelog = "https://github.com/googleapis/python-firestore/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ sarahec ]; };})