mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
python-zeroconf: fix template
- noarch=yes - fix pycompile_module
This commit is contained in:
parent
28d069ed71
commit
42feb5b6be
1 changed files with 12 additions and 5 deletions
|
@ -1,22 +1,29 @@
|
||||||
# Template file for 'python-zeroconf'
|
# Template file for 'python-zeroconf'
|
||||||
pkgname=python-zeroconf
|
pkgname=python-zeroconf
|
||||||
version=0.19.1
|
version=0.19.1
|
||||||
revision=1
|
revision=2
|
||||||
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
pycompile_module="zeroconf.py"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
makedepends="python-devel python3-devel"
|
|
||||||
depends="python-netifaces python-six python-enum34"
|
depends="python-netifaces python-six python-enum34"
|
||||||
pycompile_module="zeroconf"
|
short_desc="Pure Python2 implementation of multicast DNS service discovery"
|
||||||
short_desc="Python2 implementation of multicast DNS service discovery"
|
|
||||||
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
homepage="https://github.com/jstasiak/python-zeroconf/"
|
homepage="https://github.com/jstasiak/python-zeroconf/"
|
||||||
distfiles="https://github.com/jstasiak/python-zeroconf/archive/${version}.tar.gz"
|
distfiles="https://github.com/jstasiak/python-zeroconf/archive/${version}.tar.gz"
|
||||||
checksum="ca8952a3eb04818dcb566e1344f2f15b5dd6d487770384651cdfae777d5eb848"
|
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
|
||||||
|
}
|
||||||
|
|
||||||
python3-zeroconf_package() {
|
python3-zeroconf_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_module="zeroconf.py"
|
||||||
depends="python3-netifaces python3-six"
|
depends="python3-netifaces python3-six"
|
||||||
pycompile_module="zeroconf"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
|
|
Loading…
Add table
Reference in a new issue