diff options
Diffstat (limited to 'testing/py-sortedcontainers/APKBUILD')
-rw-r--r-- | testing/py-sortedcontainers/APKBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/py-sortedcontainers/APKBUILD b/testing/py-sortedcontainers/APKBUILD index 3761786d9f..d014b95aa8 100644 --- a/testing/py-sortedcontainers/APKBUILD +++ b/testing/py-sortedcontainers/APKBUILD @@ -9,8 +9,8 @@ url="http://www.grantjenks.com/docs/sortedcontainers/" arch="noarch" license="Apache" makedepends="python2-dev py-setuptools python3-dev" +checkdepends="py-nose" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" -options="!check" source="$_pkgname-$pkgver.tar.gz::https://github.com/grantjenks/sorted_containers/archive/v$pkgver.tar.gz" builddir="$srcdir/sorted_containers-$pkgver" @@ -20,6 +20,12 @@ build() { python3 setup.py build || return 1 } +check() { + cd "$builddir" + nosetests-2.7 + nosetests-3.6 +} + package() { mkdir -p "$pkgdir" } |