mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-openant
|
|
pkgver=1.2.1
|
|
pkgrel=0
|
|
pkgdesc="Python library to communicate with ANT-FS compliant devices"
|
|
url="https://github.com/Tigge/openant"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-pyserial py3-usb"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Tigge/openant/archive/v$pkgver/openant-$pkgver.tar.gz"
|
|
builddir="$srcdir/openant-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/openant/tests
|
|
|
|
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/ant/tests
|
|
|
|
install -Dm644 "$builddir"/resources/42-ant-usb-sticks.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
|
}
|
|
|
|
sha512sums="
|
|
b4f65be19fbfa0fe662f38170203175d3f7d6d685b4d53d6fffde212745a37b7ee1321d9dbb4f419d0dc61254ceeaf0b14eea4e958fb634b7f0eaa3b084a4102 py3-openant-1.2.1.tar.gz
|
|
"
|