# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-dateutil
_pkgname=python-dateutil
pkgver=2.9.0
pkgrel=1
pkgdesc="Python3 extensions for datetime module"
options="!check" # Requires py3-freezegun for testsuite and vice-versa
url="https://dateutil.readthedocs.io"
arch="noarch"
license="Apache-2.0 AND BSD-3-Clause"
depends="python3 py3-six"
makedepends="py3-setuptools py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-dateutil" # Backwards compatibility
provides="py-dateutil=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
7dd550d646477c8c3953a42aabe4c0aa3f4d1f74f6fed018a1a429270f41aa2c6832df264e67510d380d149eaa436c1b613544c8026c180c2241f15205ca6d36  python-dateutil-2.9.0.tar.gz
"
