void-packages/srcpkgs/python-zeroconf/template

22 lines
790 B
Bash

# Template file for 'python-zeroconf'
pkgname=python-zeroconf
version=0.19.1
revision=3
noarch=yes
build_style=python2-module
pycompile_module="zeroconf.py"
hostmakedepends="python-setuptools"
depends="python-netifaces python-six python-enum34"
short_desc="Pure Python2 implementation of multicast DNS service discovery"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/jstasiak/python-zeroconf/"
distfiles="https://github.com/jstasiak/python-zeroconf/archive/${version}.tar.gz"
checksum="ca8952a3eb04818dcb566e1344f2f15b5dd6d487770384651cdfae777d5eb848"
pre_build() {
# Remove enum-compat from install_requires, it's a virtual package.
# Also, no need for enum-compat on Python 3.4+.
sed -i '/enum-compat/d' setup.py
}