Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchPypi 3, google-api-core 4, grpc-google-iam-v1 5, lib 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "google-cloud-artifact-registry"; 12 version = "1.8.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-kgbSwGR5ObkMbup4p4ePXnxl7uRn0nYeGCOU1LMPZSE="; 20 }; 21 22 propagatedBuildInputs = [ 23 google-api-core 24 grpc-google-iam-v1 25 ] ++ google-api-core.optional-dependencies.grpc; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ 30 "google.cloud.artifactregistry" 31 "google.cloud.artifactregistry_v1" 32 "google.cloud.artifactregistry_v1beta2" 33 ]; 34 35 meta = with lib; { 36 description = "Google Cloud Artifact Registry API client library"; 37 homepage = "https://github.com/googleapis/google-cloud-python"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ samuela ]; 40 }; 41}