aports/testing/py3-sphinx-theme-quark/APKBUILD

49 lines
1.4 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
maintainer="Francesco Colista <fcolista@alpinelinux.org>"
pkgname=py3-sphinx-theme-quark
_pkgname=quark-sphinx-theme
pkgver=0.6.0
pkgrel=3
pkgdesc="A Sphinx theme for Qt toolkits QTextBrowser"
url="https://gitlab.com/fkrull/quark-sphinx-theme"
#This project is not being maintained any more.
#https://gitlab.com/fkrull/quark-sphinx-theme/-/commit/223d0e672dad2e4b609caee2c688651994be1a92
arch=""
license="BSD-2-Clause"
depends="py3-sphinx python3"
makedepends="
py3-flit-core
py3-gpep517
py3-wheel
"
checkdepends="
py3-html5lib
py3-pytest
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/q/quark-sphinx-theme/quark-sphinx-theme-$pkgver.tar.gz
tinycss.patch
"
builddir="$srcdir"/$_pkgname-$pkgver
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="
7750459947e83f067ff165af632e5ac59db3487d622c367384e9e47a08e5a01c0ea34dd578f0deb70e9924cb45bda15fde5ecebcbc99a0611565f5c926392ea9 quark-sphinx-theme-0.6.0.tar.gz
5d820b06f6a3d2fe713a3f6d66849ae3c9735a13cd9cd8169020e4468f1b58ec8c4238407a8de33a0660cc82a950c6e2bd13363d41f3a56f1775fc790779d8ca tinycss.patch
"