mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python3Packages.google_cloud_asset: fix build, 2.0.0 -> 2.1.0
This commit is contained in:
parent
80b03e4045
commit
326a5f7132
@ -1,32 +1,37 @@
|
|||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, grpc_google_iam_v1
|
||||||
, buildPythonPackage
|
, google_api_core, google-cloud-access-context-manager, google-cloud-org-policy
|
||||||
, fetchPypi
|
, libcst, proto-plus, pytest, pytest-asyncio, pytestCheckHook, mock }:
|
||||||
, enum34
|
|
||||||
, grpc_google_iam_v1
|
|
||||||
, google_api_core
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-asset";
|
pname = "google-cloud-asset";
|
||||||
version = "2.0.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "fd4c0f7f61a8a1c5907cd6cc27a028b16236bf3d982ff412df0d2c981cef5ae5";
|
sha256 = "14r77bcxy7bmqhmz2hzcf3km2y4vivf5sfzgqjwlyynaydhn4f6j";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
disabled = pythonOlder "3.6";
|
||||||
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
||||||
pytest tests/unit
|
disabledTests = [ "asset_service_transport_auth_adc" ];
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
grpc_google_iam_v1
|
||||||
|
google_api_core
|
||||||
|
google-cloud-access-context-manager
|
||||||
|
google-cloud-org-policy
|
||||||
|
libcst
|
||||||
|
proto-plus
|
||||||
|
];
|
||||||
|
|
||||||
|
# Remove tests intended to be run in VPC
|
||||||
|
preCheck = ''
|
||||||
|
rm -rf tests/system
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cloud Asset API API client library";
|
description = "Python Client for Google Cloud Asset API";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-asset";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user