# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=py3-sortedcontainers _pkgname=python-sortedcontainers pkgver=2.4.0 pkgrel=5 pkgdesc="Python library for sorting collections and containers" url="http://www.grantjenks.com/docs/sortedcontainers" license="Apache-2.0" arch="noarch" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$_pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-sortedcontainers" # Backwards compatibility provides="py-sortedcontainers=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" f80185c6f95a85cc78f88f6f6cf389eb48be22cf94d5fcd84f3592873f17de37ec7f44c1627b7f02956ac4b4f74ca4febefc47d3c6232f70ee05dbb2449ad770 python-sortedcontainers-2.4.0.tar.gz "