void-packages/srcpkgs/python-prometheus_client/template

27 lines
830 B
Bash

# Template file for 'python-prometheus_client'
pkgname=python-prometheus_client
version=0.4.2
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 <al3hex@gmail.com>"
homepage="https://github.com/prometheus/client_python"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/prometheus_client/prometheus_client-${version}.tar.gz"
checksum=046cb4fffe75e55ff0e6dfd18e2ea16e54d86cc330f369bebcc683475c8b68a9
python3-prometheus_client_package() {
noarch=yes
depends="python3"
pycompile_module="prometheus_client"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}