Files
nixpkgs/pkgs/development/python-modules/google-cloud-core/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-auth,
grpcio,
mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "google-cloud-core";
version = "2.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-m3dJJyqBK95Y//KIaNDF4vWFuC834JofbtLU0Q8TQHM=";
};
propagatedBuildInputs = [
google-auth
google-api-core
];
passthru.optional-dependencies = {
grpc = [ grpcio ];
};
nativeCheckInputs = [
mock
pytestCheckHook
] ++ passthru.optional-dependencies.grpc;
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud" ];
meta = with lib; {
description = "API Client library for Google Cloud: Core Helpers";
homepage = "https://github.com/googleapis/python-cloud-core";
changelog = "https://github.com/googleapis/python-cloud-core/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = [ ];
};
}