diff --git a/srcpkgs/GCP-Guest-Environment/template b/srcpkgs/GCP-Guest-Environment/template index c2733015eb0..1a237402da6 100644 --- a/srcpkgs/GCP-Guest-Environment/template +++ b/srcpkgs/GCP-Guest-Environment/template @@ -1,12 +1,13 @@ # Template file for 'GCP-Guest-Environment' pkgname=GCP-Guest-Environment version=20191210 -revision=2 +revision=3 wrksrc="compute-image-packages-${version}" build_wrksrc="packages/python-google-compute-engine" -build_style=python2-module -hostmakedepends="python-setuptools" -depends="${hostmakedepends} python-boto socklog-void" +build_style=python3-module +hostmakedepends="python3-setuptools python3-distro" +depends="${hostmakedepends} socklog-void" +checkdepends="${depends} python3-pytest python3-pytest-cov" short_desc="Packages for Google Compute Engine Linux images" maintainer="Michael Aldridge " license="Apache-2.0" @@ -14,6 +15,10 @@ homepage="https://github.com/GoogleCloudPlatform/compute-image-packages" distfiles="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/v${version}.tar.gz" checksum=19a2ca537f876e4a19341646f2865c6429b8ea041a3a6651ff8c1ed966f72fe1 +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k 'not CallDhclientIpv6' +} + post_install() { for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do vsv GCP-$_i;