Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, grpc-google-iam-v1 6, proto-plus 7, protobuf 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-securitycenter"; 15 version = "1.21.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-zk5yZYevzpWmTOAAJgdNx9lnoTxjaq5XFJ+2hDQOBuc="; 23 }; 24 25 propagatedBuildInputs = [ 26 grpc-google-iam-v1 27 google-api-core 28 proto-plus 29 protobuf 30 ] ++ google-api-core.optional-dependencies.grpc; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 pythonImportsCheck = [ 38 "google.cloud.securitycenter" 39 "google.cloud.securitycenter_v1" 40 "google.cloud.securitycenter_v1beta1" 41 "google.cloud.securitycenter_v1p1beta1" 42 ]; 43 44 meta = with lib; { 45 description = "Cloud Security Command Center API API client library"; 46 homepage = "https://github.com/googleapis/python-securitycenter"; 47 changelog = "https://github.com/googleapis/python-securitycenter/blob/v${version}/CHANGELOG.md"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ SuperSandro2000 ]; 50 }; 51}