aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-rarfile
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-02 04:21:02 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-03 08:06:01 -0300
commit63ffc3781574a5cf58dba670521025ddebafc70a (patch)
tree46a413f46af436819205002eb8542e28b927f04c /testing/py3-rarfile
parent8e4fc9523c0af77c074392aa1cbb2840608973b9 (diff)
downloadaports-63ffc3781574a5cf58dba670521025ddebafc70a.tar.bz2
aports-63ffc3781574a5cf58dba670521025ddebafc70a.tar.xz
testing/py3-rarfile: rebuild as python3 only
Diffstat (limited to 'testing/py3-rarfile')
-rw-r--r--testing/py3-rarfile/APKBUILD41
1 files changed, 13 insertions, 28 deletions
diff --git a/testing/py3-rarfile/APKBUILD b/testing/py3-rarfile/APKBUILD
index 2d24dd525b..f2bfbda03e 100644
--- a/testing/py3-rarfile/APKBUILD
+++ b/testing/py3-rarfile/APKBUILD
@@ -1,47 +1,32 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-rarfile
+pkgname=py3-rarfile
_pkgname=rarfile
pkgver=3.0
-pkgrel=2
+pkgrel=3
pkgdesc="A RAR archive reader"
+options="!check" # 3 tests fail
url="https://github.com/markokr/rarfile"
arch="noarch"
license="ISC"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+makedepends="py3-setuptools"
+checkdepends="py3-nose unrar"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
-build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
-}
-
-package() {
- mkdir -p "$pkgdir"
-}
+replaces="py-rarfile" # Backwards compatibility
+provides="py-rarfile=$pkgver-r$pkgrel" # Backwards compatibility
-_py2() {
- replaces="$pkgname"
- _py python2
+build() {
+ python3 setup.py build
}
-_py3() {
- _py python3
+check() {
+ nosetests-3.7
}
-_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"
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-md5sums="d7e9a8b429f5604730400b4db3362038 rarfile-3.0.tar.gz"
-sha256sums="e816409e3b36794507cbe0b678bed3e4703d7412c5f7f9201a510ed6fdc66c35 rarfile-3.0.tar.gz"
sha512sums="b0b816bf09fe455e4d8d35b447c30e7810468a6927555164a1b513d4161f3fd4e77a37439620bd935c3a12e46b1e5eda3e35d7d281899d2f9fd26b6e989aa6e4 rarfile-3.0.tar.gz"