Files
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

82 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
google-api-core,
google-cloud-core,
google-crc32c,
grpc-google-iam-v1,
proto-plus,
protobuf,
# optional dependencies
libcst,
# testing
grpcio,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "google-cloud-bigtable";
version = "2.33.0";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-bigtable";
tag = "v${version}";
hash = "sha256-32+UMTfnSncDsSnN54MjRE4eL1PXsUdblnxe/rj5Pqc=";
};
pyproject = true;
build-system = [ setuptools ];
dependencies = [
google-api-core
google-cloud-core
google-crc32c
grpc-google-iam-v1
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
optional-dependencies = {
libcst = [ libcst ];
};
nativeCheckInputs = [
grpcio
mock
pytestCheckHook
];
checkPhase = ''
# Prevent google directory from shadowing google imports
rm -r google
'';
disabledTests = [ "policy" ];
pythonImportsCheck = [
"google.cloud.bigtable_admin_v2"
"google.cloud.bigtable_v2"
"google.cloud.bigtable"
];
meta = {
description = "Google Cloud Bigtable API client library";
homepage = "https://github.com/googleapis/python-bigtable";
changelog = "https://github.com/googleapis/python-bigtable/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.sarahec ];
};
}