diff --git a/srcpkgs/python-prometheus_client/template b/srcpkgs/python-prometheus_client/template new file mode 100644 index 00000000000..2cda0fcb6e6 --- /dev/null +++ b/srcpkgs/python-prometheus_client/template @@ -0,0 +1,26 @@ +# Template file for 'python-prometheus_client' +pkgname=python-prometheus_client +version=0.3.1 +revision=1 +noarch=yes +wrksrc="prometheus_client-${version}" +build_style=python-module +pycompile_module="prometheus_client" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Python2 client for the Prometheus monitoring system" +maintainer="Alessio Sergi " +homepage="https://github.com/prometheus/client_python" +license="Apache-2.0" +distfiles="${PYPI_SITE}/p/prometheus_client/prometheus_client-${version}.tar.gz" +checksum=17bc24c09431644f7c65d7bce9f4237252308070b6395d6d8e87767afe867e24 + +python3-prometheus_client_package() { + noarch=yes + depends="python3" + pycompile_module="prometheus_client" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-prometheus_client b/srcpkgs/python3-prometheus_client new file mode 120000 index 00000000000..fd9bb1adaa6 --- /dev/null +++ b/srcpkgs/python3-prometheus_client @@ -0,0 +1 @@ +python-prometheus_client \ No newline at end of file