# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-phonenumber-field
pkgver=1.3.0
pkgrel=0
pkgdesc="An international phone number field for django models"
url=https://github.com/stefanfoulis/django-phonenumber-field
arch=noarch
license=BSD
depends="py-babel py-django py-phonenumbers"
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django-phonenumber-field/django-phonenumber-field-$pkgver.tar.gz"
builddir=$srcdir/django-phonenumber-field-$pkgver

build() {
	cd "$builddir"
	python setup.py build
}

check() {
	cd "$builddir"
	python setup.py test
}

package() {
	cd "$builddir"
	python setup.py install --root "$pkgdir"
}

sha512sums="2a0065691f9874edef96e41c237d8a58b4ac5c3efe7a82c421dca269185962f518808083ce82e73a281c95675703b24820a7b5dae09a08474b6c2e3e7f529f1e  django-phonenumber-field-1.3.0.tar.gz"
