aports/testing/dooit/APKBUILD
2024-12-07 20:17:21 +00:00

49 lines
1 KiB
Text

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=dooit
pkgver=3.1.0
pkgrel=0
pkgdesc="TUI todo manager"
url="https://dooit-org.github.io/dooit/"
arch="noarch"
license="MIT"
depends="
python3
py3-click
py3-dateutil
py3-platformdirs
py3-pyperclip
py3-sqlalchemy
py3-textual
py3-tzlocal
py3-yaml
"
makedepends="py3-gpep517 py3-poetry-core"
checkdepends="
py3-faker
py3-pytest
py3-pytest-asyncio
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dooit-org/dooit/archive/refs/tags/v$pkgver.tar.gz"
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="
54b79d7a60f78962d0792c5f7c019110a5c3c18919235fa2b875e488d4299a325278f421373d6f5f33dc75d282bb722bde634b31e10161d7ac167428eb1b2207 dooit-3.1.0.tar.gz
"