mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 04:44:57 +02:00
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-fitfile
|
|
_pkgorig=fitfile
|
|
pkgver=1.1.10
|
|
pkgrel=0
|
|
pkgdesc="Decode/parse Garmin's FIT format files"
|
|
url="https://github.com/tcgoetz/Fit"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
depends="python3"
|
|
checkdepends="
|
|
py3-pytest-xdist
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/f/fitfile/fitfile-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$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 -n auto
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer --destdir="$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0d58b831c2ede4607809b53f8bba7d5aca47633335ec84bf1dff3ec854054d8b210aa884b23157022e218121ccc67881b3d5dbe4f50a531036b8903659650c2b py3-fitfile-1.1.10.tar.gz
|
|
"
|