aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-translationstring/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-05 11:56:53 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-05 11:56:53 -0300
commit5d17015d5f67d6adbde321967d064a1a2803d8f7 (patch)
tree00b5bc65cb87414d9ab41d515832f66a489550f7 /testing/py3-translationstring/APKBUILD
parent9b47d868367163022e1337aa4fd2902d097b1576 (diff)
downloadaports-5d17015d5f67d6adbde321967d064a1a2803d8f7.tar.gz
aports-5d17015d5f67d6adbde321967d064a1a2803d8f7.tar.bz2
aports-5d17015d5f67d6adbde321967d064a1a2803d8f7.tar.xz
testing/py3-translationstring: upgrade to 1.3
Diffstat (limited to 'testing/py3-translationstring/APKBUILD')
-rw-r--r--testing/py3-translationstring/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/testing/py3-translationstring/APKBUILD b/testing/py3-translationstring/APKBUILD
index 188388763b..f2a798f1e9 100644
--- a/testing/py3-translationstring/APKBUILD
+++ b/testing/py3-translationstring/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-translationstring
_pkgname=translationstring
-pkgver=1.1
+pkgver=1.3
pkgrel=0
pkgdesc="A Python utility library for i18n"
-url="http://docs.pylonsproject.org/projects/translationstring/dev/"
+url="https://pypi.org/project/translationstring/" # actual homepage doesn't exist anymore
arch="noarch"
-license="BSD"
+license="ZPL-2.1"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
@@ -20,8 +20,15 @@ build() {
python3 setup.py build
}
+check() {
+ python3 setup.py test
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # Reduce size by removing installed-tests
+ rm -rf "$pkgdir"/usr/lib/python3*/site-packages/translationstring/tests
}
-sha512sums="76c8ef9bd745e6b52b6f383d277d94706dab5d6419543048d2138fb779cdfb19a7ce6452e99bbaad983c961233155690849dfda57db10a87d11240990e9adfd8 translationstring-1.1.tar.gz"
+sha512sums="deba5b460d9ea640087cff8b5d7b9256708abd4340a54556f1f0542e2e4f9f0ae0a3482b66a176712fcd6925c470da621adbc5e4c4173c0ef29b9cca5fba1102 translationstring-1.3.tar.gz"