# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-businesstime _pkgname=businesstime pkgver=0.3.0 pkgrel=7 pkgdesc="Python utility for calculating business time between two datetimes" url="https://github.com/seatgeek/businesstime" arch="noarch" license="BSD-2-Clause" replaces="py-businesstime" # for backwards compatibility provides="py-businesstime=$pkgver-r$pkgrel" # for backwards compatibility depends="python3" makedepends="python3-dev py3-setuptools" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --skip-build --root="$pkgdir" } sha512sums="20e44a0057c66c15cf79452f2a602c8e1719f866c608bfffe25ec14fb5c3ec06fcd6f7ac93e2328ee38ea862464c128d8b3a66a544f13fd0f989fc3d6a3d10a7 businesstime-0.3.0.tar.gz"