testing/py-astral: upgrade to 1.6

This commit is contained in:
Fabian Affolter 2018-02-23 15:24:56 +00:00 committed by William Pitcock
parent fd521474b8
commit 190ce151cf

View File

@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-astral pkgname=py-astral
_pkgname=astral _pkgname=astral
pkgver=1.4 pkgver=1.6
pkgrel=0 pkgrel=0
pkgdesc="Calculations for the position of the sun and moon" pkgdesc="Calculations for the position of the sun and moon"
url="https://pypi.python.org/pypi/astral/" url="https://pypi.python.org/pypi/astral/"
@ -11,13 +11,19 @@ license="Apache-2.0"
depends="py-tz" depends="py-tz"
makedepends="python2-dev python3-dev py-setuptools" makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" source="$_pkgname-$pkgver.tar.gz::https://github.com/sffjunkie/astral/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver builddir="$srcdir"/$_pkgname-$pkgver
build() { build() {
cd "$builddir" cd "$builddir"
python2 setup.py build || return 1 python2 setup.py build
python3 setup.py build || return 1 python3 setup.py build
}
check() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
} }
package() { package() {
@ -45,4 +51,4 @@ _py() {
$python setup.py install --prefix=/usr --root="$subpkgdir" $python setup.py install --prefix=/usr --root="$subpkgdir"
} }
sha512sums="405ed030eb2c26ede66653fe7999a328e64a6792e4b220b42e1ed9e6eff3d3b2e39c8c43d4360f42ba3c6610cf8e488d600da27aead239ea1eceda39b63bee14 astral-1.4.zip" sha512sums="d82366d4bd1e8b09e93f709c6b714723420a993a72ddcf3667519d667000b79b6b1e3d2f7924758987b0049cb41a5a086196a18a611d11077afc641957858c09 astral-1.6.tar.gz"