mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 10:04:36 +02:00
35 lines
909 B
Text
35 lines
909 B
Text
# Maintainer:
|
|
pkgname=py3-lhafile
|
|
pkgver=0.3.1
|
|
pkgrel=0
|
|
pkgdesc="LHA archive support for Python"
|
|
url="https://github.com/FrodeSolheim/python-lhafile"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="python3-dev py3-gpep517 py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/FrodeSolheim/python-lhafile/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/python-lhafile-$pkgver"
|
|
options="!check" # tests fail on python3
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
cd lhafile/tests
|
|
PYTHONPATH="$(echo "$builddir"/build/lib*)" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
73fcb03fe4436bbeab822e40fc4a9f02b67d2b99f2307e3e9ae894a768001ad662adf659fe1170ac0eb231b12e93b1c0429246396e16e0c1e149bd3cf7af8393 py3-lhafile-0.3.1.tar.gz
|
|
"
|