Package Details: python-openant-git r147.faa8987-1

Git Clone URL: https://aur.archlinux.org/python-openant-git.git (read-only, click to copy)
Package Base: python-openant-git
Description: A python library to download and upload files from ANT-FS compliant devices (Garmin products).
Upstream URL: https://github.com/Tigge/openant
Licenses: MIT
Submitter: jklaise
Maintainer: None
Last Packager: jklaise
Votes: 1
Popularity: 0.000018
First Submitted: 2021-01-23 17:04 (UTC)
Last Updated: 2021-01-23 17:04 (UTC)

Dependencies (4)

Required by (1)

Sources (1)

Latest Comments

leepesjee commented on 2025-03-15 19:44 (UTC)

Also pyproject.toml needs a replacement.Change the lines:

[tool.setuptools]
packages = ["openant"]

to:

[tool.setuptools.packages]
find = {}

leepesjee commented on 2025-03-15 19:38 (UTC) (edited on 2025-03-15 19:40 (UTC) by leepesjee)

There is no setup.py in the package leading to build errors. Following the python package guidelines, replace package() with:

prepare() {
  git -C "${srcdir}/${_gitname}" clean -dfx
}

build() {
  cd "$srcdir/${_gitname}"
  python -m build --wheel --no-isolation
}

check() {
  cd "$srcdir/${_gitname}"
  python -m pytest ${_gitname}/tests
}

package() {
  cd "$srcdir/${_gitname}"
  install -Dm644 resources/42-ant-usb-sticks.rules ${pkgdir}/usr/lib/udev/rules.d/71-ant-usb-sticks.rules
  python -m installer --prefix=/usr --destdir="${pkgdir}" dist/*.whl
  install -Dm644 README.md ${pkgdir}/usr/share/${pkgname}/README
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

corvus_192 commented on 2023-10-21 10:46 (UTC)

This package should probably have conflicts=('python-openant')

corvus_192 commented on 2023-10-21 10:44 (UTC)

LICENCE was renamed to LICENSE