Files
nixpkgs/pkgs/development/python-modules/google-cloud-logging/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

96 lines
1.9 KiB
Nix

{
lib,
buildPythonPackage,
django,
fetchPypi,
flask,
google-api-core,
google-cloud-appengine-logging,
google-cloud-audit-log,
google-cloud-core,
google-cloud-testutils,
grpc-google-iam-v1,
mock,
opentelemetry-api,
pandas,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
rich,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "3.12.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "google_cloud_logging";
inherit version;
hash = "sha256-Nu/II5hQVbIDkE6D4cj5+ZmzxkJwvNo51XOGyk7/1ng=";
};
build-system = [ setuptools ];
dependencies = [
google-api-core
google-cloud-appengine-logging
google-cloud-audit-log
google-cloud-core
grpc-google-iam-v1
opentelemetry-api
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
django
flask
google-cloud-testutils
mock
pandas
pytestCheckHook
pytest-asyncio
rich
];
preCheck = ''
# Prevent google directory from shadowing google imports
rm -r google
'';
disabledTests = [
# Test requires credentials
"test_write_log_entries"
# No need for a second import check
"test_namespace_package_compat"
];
disabledTestPaths = [
# Tests require credentials
"tests/system/test_system.py"
"tests/unit/test__gapic.py"
# Exclude performance tests
"tests/performance/test_performance.py"
];
pythonImportsCheck = [
"google.cloud.logging"
"google.cloud.logging_v2"
];
meta = with lib; {
description = "Stackdriver Logging API client library";
homepage = "https://github.com/googleapis/python-logging";
changelog = "https://github.com/googleapis/python-logging/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = [ ];
};
}