# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-arrow _pkgname=arrow pkgver=0.15.2 pkgrel=0 pkgdesc="Python3 library to create and manipulate dates, times, and timestamps" url="https://arrow.readthedocs.io/" arch="noarch" license="Apache-2.0" depends="py3-dateutil" makedepends="py3-setuptools" checkdepends="py3-tz py3-simplejson py3-mock" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-arrow" # for backwards compatibility provides="py-arrow=$pkgver-r$pkgrel" # for backwards compatibility build() { python3 setup.py build } check() { # Requires unpackaged 'dateparser' module rm -f tests/factory_tests.py python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="cba7004898efd07029fae0f1870402f54313ec2a3d6b885ef42bedadde0567c1d4b7cd9f370fdebd95a0da8b05b4d047aee497b8b3892aaa5dd8d5e3e3d45e2b arrow-0.15.2.tar.gz"