aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-02 05:22:28 -0300
committerprspkt <prspkt@protonmail.com>2019-05-06 12:39:57 +0300
commit0cc57eede2afed14a9ed0b2267e0cb31384c617a (patch)
tree846baa03f07374b752ac1093f322389483e4d7b4
parentc2dc5ec958f73f602e7d7d80cd616da09ba78ee3 (diff)
downloadaports-0cc57eede2afed14a9ed0b2267e0cb31384c617a.tar.bz2
aports-0cc57eede2afed14a9ed0b2267e0cb31384c617a.tar.xz
testing/py3-vatnumber: modernize
- Add !check with comment - Add missing dependency - Use modern style
-rw-r--r--testing/py3-vatnumber/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/testing/py3-vatnumber/APKBUILD b/testing/py3-vatnumber/APKBUILD
index 5817d70c5a..30f7594426 100644
--- a/testing/py3-vatnumber/APKBUILD
+++ b/testing/py3-vatnumber/APKBUILD
@@ -1,39 +1,31 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-vatnumber
+pkgname=py3-vatnumber
_pkgname=vatnumber
pkgver=1.2
pkgrel=1
pkgdesc="A Python module to validate VAT numbers"
+options="!check" # Requres unpackaged 'suds'
url="https://code.google.com/p/vatnumber/"
arch="noarch"
license="GPL-3.0-or-later"
-depends="python2"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+depends="python3 py3-stdnum"
+makedepends="py3-setuptools"
+checkdepends="py3-pysimplesoap"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
md5sums="3b1541be3834a865f6f7bcce809ffb25 vatnumber-1.2.tar.gz"