aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-webencodings/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-webencodings/APKBUILD')
-rw-r--r--testing/py3-webencodings/APKBUILD37
1 files changed, 7 insertions, 30 deletions
diff --git a/testing/py3-webencodings/APKBUILD b/testing/py3-webencodings/APKBUILD
index 77eeb0a35f..c1625c2a4e 100644
--- a/testing/py3-webencodings/APKBUILD
+++ b/testing/py3-webencodings/APKBUILD
@@ -1,51 +1,28 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
-pkgname=py-webencodings
+pkgname=py3-webencodings
_pkgname=webencodings
pkgver=0.5.1
-pkgrel=1
+pkgrel=2
pkgdesc="Character encoding for the web"
url="https://github.com/gsnedders/python-webencodings"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+depends="python3"
+makedepends="py3-setuptools"
+checkdepends="pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/gsnedders/python-$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/python-$_pkgname-$pkgver
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py test
- python3 setup.py test
+ py.test-3
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74 webencodings-0.5.1.tar.gz"