mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
33 lines
1 KiB
Text
33 lines
1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-astral
|
|
_pkgname=astral
|
|
pkgver=2.2
|
|
pkgrel=1
|
|
pkgdesc="Calculations for the position of the sun and moon"
|
|
url="https://pypi.python.org/pypi/astral"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-requests py3-tz python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-freezegun"
|
|
source="$_pkgname-$pkgver.tar.gz::https://github.com/sffjunkie/astral/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces=py-astral # Backwards compatibility
|
|
provides=py-astral=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# skip the webtest since we lack an API key
|
|
PYTHONPATH="$PWD/build/lib" py.test-3 -v -m "not webtest"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="2b2f2c6f6f5960f747542e6410800bfab1125aa6ebe2d77d9fb4ef9e99458e808449c96855ef4d1cb8eac07f8e400e2cdbe71420391f6ee81efab31ce7693b90 astral-2.2.tar.gz"
|