void-packages/srcpkgs/python-zeroconf/template

30 lines
899 B
Bash

# Template file for 'python-zeroconf'
pkgname=python-zeroconf
version=0.19.1
revision=1
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-netifaces python-six python-enum34"
pycompile_module="zeroconf"
short_desc="Python2 implementation of multicast DNS service discovery"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="LGPL-2.1"
homepage="https://github.com/jstasiak/python-zeroconf/"
distfiles="https://github.com/jstasiak/python-zeroconf/archive/${version}.tar.gz"
checksum="ca8952a3eb04818dcb566e1344f2f15b5dd6d487770384651cdfae777d5eb848"
pkg_install() {
vlicense COPYING
}
python3-zeroconf_package() {
depends="python3-netifaces python3-six"
pycompile_module="zeroconf"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}