aports/testing/py3-uptime/APKBUILD
2024-08-06 14:10:07 +02:00

33 lines
980 B
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-uptime
_pkgname=uptime
pkgver=3.0.1
pkgrel=9
pkgdesc="A Python uptime library"
url="https://github.com/Cairnarvon/uptime"
arch="all"
license="BSD-2-Clause"
depends="python3"
makedepends="python3-dev py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-uptime" # for backwards compatibility
provides="py-uptime=$pkgver-r$pkgrel" # for backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
55df1c30aa4be3e873ad36d0f784d49bc127d2bd38041c1453b112474dd52033e55d277172d8fdd73b3fabc7bf5071f29329d2a828244ef420d2da7db0f49a54 uptime-3.0.1.tar.gz
"