diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 10:11:00 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 10:17:42 -0300 |
commit | d22528bf689498fd2c53606b259907246ed32681 (patch) | |
tree | 54e54374d59a8ecae6190123bcaea0a41b69e6ac /testing/py3-nosexcover/APKBUILD | |
parent | 75c4f76c0c205397286c9184282f792d747470cb (diff) | |
download | aports-d22528bf689498fd2c53606b259907246ed32681.tar.bz2 aports-d22528bf689498fd2c53606b259907246ed32681.tar.xz |
testing/py3-nosexcover: rename from py-nosexcover
Diffstat (limited to 'testing/py3-nosexcover/APKBUILD')
-rw-r--r-- | testing/py3-nosexcover/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/py3-nosexcover/APKBUILD b/testing/py3-nosexcover/APKBUILD new file mode 100644 index 0000000000..cf543d16cb --- /dev/null +++ b/testing/py3-nosexcover/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=py-nosexcover +_pkgname=nose-xcover +pkgver=1.0.11 +pkgrel=1 +pkgdesc="Extends nose.plugins.cover to add Cobertura-style XML reports" +url="https://pypi.python.org/pypi/nosexcover/" +arch="noarch" +license="MIT" +depends="py-nose py-coverage" +makedepends="py-setuptools py3-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/cmheisel/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/"$_pkgname-$pkgver + +build() { + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + 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" +} + +check() { + nosetests -v nosexcover/tests.py +} +sha512sums="e606e89b75d51c728d1487200f4a38afe1af93defabe6bd847b80d597374e7bb10abc2e5c8e6778bbd4f17ba8b8d7a601864a8277cd14437ee94a9e04996cf22 py-nosexcover-1.0.11.tar.gz" |