Subject: [PATCH] testing/py3-zeroconf: ifaddr is a dependency

From: David Florness <[email-masked]>
Date: Wed, 18 Mar 2020 19:52:57 -0600

---
 testing/py3-ifaddr/APKBUILD   | 29 +++++++++++++++++++++++++++++
 testing/py3-zeroconf/APKBUILD |  2 +-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 testing/py3-ifaddr/APKBUILD

diff --git a/testing/py3-ifaddr/APKBUILD b/testing/py3-ifaddr/APKBUILD
new file mode 100644
index 0000000000..5afecf3ab9
--- /dev/null
+++ b/testing/py3-ifaddr/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: David Florness <[email-masked]>
+# Maintainer: David Florness <[email-masked]>
+pkgname="py3-ifaddr"
+_pkgname="ifaddr"
+pkgver="0.1.6"
+pkgrel=0
+pkgdesc="Enumerates all IP addresses on all network adapters of the system"
+url="https://github.com/pydron/$_pkgname"
+arch="all"
+license="MIT"
+options="!check"
+depends="python3"
+makedepends="py3-setuptools"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/pydron/$_pkgname/archive/${pkgver}.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	python3 setup.py test
+}
+
+package() {
+	python3 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+}
+
+sha512sums="f8bfe0141f0c4e83404c8feead15a144e3f81fdfd9aeb5c9ca490789dfc7f74fa8cf36c895d048b595c340e17f7d82d96e3cdc25174ff67f3bb06a306094d59a  ifaddr-0.1.6.tar.gz"
diff --git a/testing/py3-zeroconf/APKBUILD b/testing/py3-zeroconf/APKBUILD
index d04514a3d4..b6186a662d 100644
--- a/testing/py3-zeroconf/APKBUILD
+++ b/testing/py3-zeroconf/APKBUILD
@@ -12,7 +12,7 @@ license="LGPL-2.0-or-later"
 replaces="py-zeroconf" # for backwards compatibility
 provides="py-zeroconf=$pkgver-r$pkgrel" # for backwards compatibility
 options="!check"
-depends="py3-six py3-netifaces"
+depends="python3 py3-six py3-netifaces py3-ifaddr"
 makedepends="py3-setuptools python3-dev"
 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pkgname-$pkgver
-- 
2.25.2