diff options
-rw-r--r-- | testing/py3-colander/APKBUILD | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/testing/py3-colander/APKBUILD b/testing/py3-colander/APKBUILD index b5ccd5325f..ca81c8e059 100644 --- a/testing/py3-colander/APKBUILD +++ b/testing/py3-colander/APKBUILD @@ -1,41 +1,30 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-colander +pkgname=py3-colander _pkgname=colander -pkgver=1.0 +pkgver=1.7.0 pkgrel=0 pkgdesc="A simple schema-based Python serialization and deserialization library" url="http://docs.pylonsproject.org/projects/colander/en/latest/" arch="noarch" -license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +license="ZPL-2.1" +depends="python3 py3-iso8601 py3-translationstring" +checkdepends="py3-nose py3-coverage" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="058576123da7216288c079c9f47693f8 colander-1.0.tar.gz" -sha256sums="7389413266b9e680c9529c16d56284edf87e0d5de557948e75f41d65683c23b3 colander-1.0.tar.gz" -sha512sums="f361520a12ebec4271580fe5be002bfbdd38fcd4cfb29fa41b9c37308636343dd25595f2e0bd8099bc96583d25644d2039996efefd9c0060fe39f3c46394a4f7 colander-1.0.tar.gz" +sha512sums="135fe3d5d8a3fc613a30fb2a6a722ad7da2bedb32259d9cb955dcf38dd8cd9353f7b447b27fb1f16df94b3899e6ffa03514bab4a2e2b31dadb496dcfee4b082a colander-1.7.0.tar.gz" |