aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-astral
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2018-02-23 15:24:56 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-27 21:10:26 +0000
commit190ce151cfe1037829208908902f143d6dac4ded (patch)
tree1c41be90c05a57f8d43bf09432f81916bb4a3b34 /testing/py-astral
parentfd521474b814c25b7c60e9a1cbdaeeb393b4660c (diff)
downloadaports-190ce151cfe1037829208908902f143d6dac4ded.tar.bz2
aports-190ce151cfe1037829208908902f143d6dac4ded.tar.xz
testing/py-astral: upgrade to 1.6
Diffstat (limited to 'testing/py-astral')
-rw-r--r--testing/py-astral/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/testing/py-astral/APKBUILD b/testing/py-astral/APKBUILD
index 2eed8841ae..1a82ec03be 100644
--- a/testing/py-astral/APKBUILD
+++ b/testing/py-astral/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-astral
_pkgname=astral
-pkgver=1.4
+pkgver=1.6
pkgrel=0
pkgdesc="Calculations for the position of the sun and moon"
url="https://pypi.python.org/pypi/astral/"
@@ -11,13 +11,19 @@ license="Apache-2.0"
depends="py-tz"
makedepends="python2-dev python3-dev py-setuptools"
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
build() {
cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
}
package() {
@@ -45,4 +51,4 @@ _py() {
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
-sha512sums="405ed030eb2c26ede66653fe7999a328e64a6792e4b220b42e1ed9e6eff3d3b2e39c8c43d4360f42ba3c6610cf8e488d600da27aead239ea1eceda39b63bee14 astral-1.4.zip"
+sha512sums="d82366d4bd1e8b09e93f709c6b714723420a993a72ddcf3667519d667000b79b6b1e3d2f7924758987b0049cb41a5a086196a18a611d11077afc641957858c09 astral-1.6.tar.gz"