Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 fetchPypi, 4 google-api-core, 5 google-auth, 6 grpc-google-iam-v1, 7 lib, 8 proto-plus, 9 protobuf, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "google-cloud-artifact-registry"; 17 version = "1.16.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 pname = "google_cloud_artifact_registry"; 24 inherit version; 25 hash = "sha256-X3v503uTPImEhSFw/oQlAaitx/MSgagblK1hkkSL7M4="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 google-api-core 32 google-auth 33 grpc-google-iam-v1 34 proto-plus 35 protobuf 36 ] 37 ++ google-api-core.optional-dependencies.grpc; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ 42 "google.cloud.artifactregistry" 43 "google.cloud.artifactregistry_v1" 44 "google.cloud.artifactregistry_v1beta2" 45 ]; 46 47 meta = with lib; { 48 description = "Google Cloud Artifact Registry API client library"; 49 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-artifact-registry"; 50 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-artifact-registry-v${version}/packages/google-cloud-artifact-registry/CHANGELOG.md"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ samuela ]; 53 }; 54}