mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-ntplib: build with gpep517
This commit is contained in:
parent
d04788ec3e
commit
154d7f9bb3
@ -3,30 +3,35 @@
|
|||||||
pkgname=py3-ntplib
|
pkgname=py3-ntplib
|
||||||
_pkgname=ntplib
|
_pkgname=ntplib
|
||||||
pkgver=0.4.0
|
pkgver=0.4.0
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="Python module that offers a simple interface to query NTP servers"
|
pkgdesc="Python module that offers a simple interface to query NTP servers"
|
||||||
options="net" # Requires connecting to pool.ntp.org
|
|
||||||
url="https://pypi.org/project/ntplib"
|
url="https://pypi.org/project/ntplib"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
replaces="py-ntplib" # for backwards compatibility
|
replaces="py-ntplib" # for backwards compatibility
|
||||||
provides="py-ntplib=$pkgver-r$pkgrel" # for backwards compatibility
|
provides="py-ntplib=$pkgver-r$pkgrel" # for backwards compatibility
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="python3-dev py3-setuptools"
|
makedepends="python3-dev py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/cf-natali/ntplib/archive/$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/cf-natali/ntplib/archive/$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
options="net" # Requires connecting to pool.ntp.org
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 -m unittest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m unittest discover
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user