From d22528bf689498fd2c53606b259907246ed32681 Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 7 Sep 2019 10:11:00 -0300 Subject: testing/py3-nosexcover: rename from py-nosexcover --- testing/py3-nosexcover/APKBUILD | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/py3-nosexcover/APKBUILD (limited to 'testing/py3-nosexcover/APKBUILD') 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 +# Maintainer: Stuart Cardall +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" -- cgit v1.2.3