aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-colander/APKBUILD
blob: c278ef4375eea8cd36825c75d4d9b67cd0e00295 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                               
          




                                                                                
                 
              
                                       

              
                                                                                                          





















                                                                          


                                                                                                                                                                  
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-colander
_pkgname=colander
pkgver=1.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=""
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
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="058576123da7216288c079c9f47693f8  colander-1.0.tar.gz"
sha256sums="7389413266b9e680c9529c16d56284edf87e0d5de557948e75f41d65683c23b3  colander-1.0.tar.gz"
sha512sums="f361520a12ebec4271580fe5be002bfbdd38fcd4cfb29fa41b9c37308636343dd25595f2e0bd8099bc96583d25644d2039996efefd9c0060fe39f3c46394a4f7  colander-1.0.tar.gz"