Files
nixpkgs/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-cloud-core,
mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "google-cloud-runtimeconfig";
version = "0.34.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hyxvTChxCGC6YjjvYGqaJDvgBbve7EjzfPELl+LB2D8=";
};
propagatedBuildInputs = [
google-api-core
google-cloud-core
];
nativeCheckInputs = [
mock
pytestCheckHook
];
# Client tests require credentials
disabledTests = [ "client_options" ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud.runtimeconfig" ];
meta = {
description = "Google Cloud RuntimeConfig API client library";
homepage = "https://github.com/googleapis/python-runtimeconfig";
changelog = "https://github.com/googleapis/python-runtimeconfig/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}