testing/py3-sphinxcontrib-inheritance: build with gpep517

This commit is contained in:
ptrcnull 2024-03-21 16:56:58 +01:00 committed by Patrycja Rosa
parent 02f22b5120
commit d91c048948

View File

@ -3,26 +3,29 @@
pkgname=py3-sphinxcontrib-inheritance
_pkgname=sphinxcontrib-inheritance
pkgver=0.9.0
pkgrel=7
pkgrel=8
pkgdesc="Sphinx inheritance functionality"
url="https://pypi.org/project/sphinxcontrib-inheritance"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-sphinx py3-path"
makedepends="python3-dev py3-setuptools"
makedepends="python3-dev py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-sphinxcontrib-inheritance" # Backwards compatibility
replaces="py-sphinxcontrib-inheritance" # Backwards compatibility
provides="py-sphinxcontrib-inheritance=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="979a8ed286616c2b2981e5581492e0de5b4cee1d6117ed93d098591872fc5c46b813b72042da9d40169086dda503a97ef320884fb601d18ba20d079a2886d412 sphinxcontrib-inheritance-0.9.0.tar.gz"