From 32172ae02169797472a276aad55bc700922ea2d4 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Tue, 6 Aug 2019 03:59:58 -0500 Subject: user/py3-importlib_resources: new package --- user/py3-importlib_resources/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/py3-importlib_resources/APKBUILD (limited to 'user/py3-importlib_resources/APKBUILD') diff --git a/user/py3-importlib_resources/APKBUILD b/user/py3-importlib_resources/APKBUILD new file mode 100644 index 000000000..4c6ffa7d4 --- /dev/null +++ b/user/py3-importlib_resources/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Max Rees +# Maintainer: Max Rees +# FIXME: drop after python3 >= 3.7.0 +pkgname=py3-importlib_resources +_pkgname=importlib_resources +_p="${_pkgname#?}" +_p="${_pkgname%"$_p"}" +pkgver=1.0.2 +pkgrel=0 +pkgdesc="Backport of Python 3.7's importlib.resources" +url="https://pypi.python.org/pypi/importlib_resources" +arch="noarch" +# Certified net clean +license="Apache-2.0" +depends="python3" +makedepends="" +source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz + python3-provides.patch" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + rm "$builddir"/importlib_resources/_py2.py + python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="50bfc5130a2c9c9354efef1cd7132e805ed0f13467ba67172f83e11d907212bef3957aeef51fd904b73996c8280008d99c918637956a470448dfd67ef4807f82 py3-importlib_resources-1.0.2.tar.gz +8e91cfa2e7c59041a038d44c9de559ed757f789515c89d18a786e30bf2f387dddab004e66261b1f33b0ca142013b6b203cfcc990d2757c610302a23d0a9387ab python3-provides.patch" -- cgit v1.2.3-70-g09d2