pythonPackages.google_cloud_asset: Fix dependencies, cleanup
This commit is contained in:
parent
eea72ef832
commit
b87af9c1b0
@ -1,6 +1,19 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, grpc_google_iam_v1
|
{ stdenv
|
||||||
, google_api_core, google-cloud-access-context-manager, google-cloud-org-policy
|
, buildPythonPackage
|
||||||
, libcst, proto-plus, pytest, pytest-asyncio, pytestCheckHook, mock }:
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
, grpc_google_iam_v1
|
||||||
|
, google_api_core
|
||||||
|
, google_cloud_access_context_manager
|
||||||
|
, google_cloud_org_policy
|
||||||
|
, google_cloud_os_config
|
||||||
|
, libcst
|
||||||
|
, proto-plus
|
||||||
|
, pytest
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-asset";
|
pname = "google-cloud-asset";
|
||||||
@ -8,27 +21,37 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1cf1b8a102eea8cec65eb07bef51dc15c1136cfc8564ea7fc5a39465b8f20017";
|
sha256 = "05q0yaw6b553qmzylr45zin17h8mvi8yyyxhbv3cxa7f0ahviw8w";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
|
||||||
disabledTests = [ "asset_service_transport_auth_adc" ];
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
grpc_google_iam_v1
|
grpc_google_iam_v1
|
||||||
google_api_core
|
google_api_core
|
||||||
google-cloud-access-context-manager
|
google_cloud_access_context_manager
|
||||||
google-cloud-org-policy
|
google_cloud_org_policy
|
||||||
|
google_cloud_os_config
|
||||||
libcst
|
libcst
|
||||||
proto-plus
|
proto-plus
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
||||||
|
|
||||||
# Remove tests intended to be run in VPC
|
# Remove tests intended to be run in VPC
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
rm -rf tests/system
|
rm -rf tests/system
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTests = [ "asset_service_transport_auth_adc" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.asset"
|
||||||
|
"google.cloud.asset_v1"
|
||||||
|
"google.cloud.asset_v1p1beta1"
|
||||||
|
"google.cloud.asset_v1p2beta1"
|
||||||
|
"google.cloud.asset_v1p4beta1"
|
||||||
|
"google.cloud.asset_v1p5beta1"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Python Client for Google Cloud Asset API";
|
description = "Python Client for Google Cloud Asset API";
|
||||||
homepage = "https://github.com/googleapis/python-asset";
|
homepage = "https://github.com/googleapis/python-asset";
|
||||||
|
Loading…
Reference in New Issue
Block a user