aports/testing/visidata/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

44 lines
1.5 KiB
Text

# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=visidata
pkgver=2.11.1
pkgrel=2
pkgdesc="Terminal spreadsheet multitool"
url="https://visidata.org"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-appdirs py3-setuptools py3-dateutil"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-zsh-completion $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/saulpw/visidata/archive/v$pkgver.tar.gz
devendor-appdirs.patch
sh-default.patch
use-importlib.patch
"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
./dev/zsh-completion.py
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dm644 _visidata \
-t "$pkgdir"/usr/share/zsh/site-functions/
}
sha512sums="
01905795ae6216e3cf662b43732394c68b43ffc8a4dc40da8552ebefaba4535fa3937aec1825cb108267dd83ab1b6a1072d1e698d416eae883dba915ca40b332 visidata-2.11.1.tar.gz
506e62c230b166a22d5d73e539303ed12f4915685ee522a030b49fbd23685accd4ae0958f6dd90f921d4be740371036c91107d424b69acde45be12a922c42dad devendor-appdirs.patch
44aa8c6ccba8f5e37e316a7891557ab7b895d907f72dcaba53cb3e143c31681b607831fa5cf2fbc255716215e75677ec8a476dfe91c600c437ca8b2017ff340e sh-default.patch
f021d2f621e468b83e5284225ec715cfabb86c5a5050bf945aa8147d2d995862b7f03038c778f9ba6636463cd77b4d76ce7f5af01aab796a190f86a53b55395b use-importlib.patch
"