aports/testing/py3-sortedcollections/APKBUILD

33 lines
1,016 B
Text

# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-sortedcollections
_pkgname=sortedcollections
pkgver=2.1.0
pkgrel=5
pkgdesc="A Python library containing various sorted collections."
url="https://pypi.org/project/sortedcollections/"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
install -Dm644 LICENSE README.rst -t "$pkgdir"/usr/share/licenses/$pkgname
}
sha512sums="
e0ea72c24300c156bd9f9d40c42c92ad4a6391f7fa17675cf956a02617b9614aa329c24e3c7a9abd6662d45cf4f12f6d04296d69b287bae11b5f320481fd5748 sortedcollections-2.1.0.tar.gz
"