# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-intervals _pkgname=intervals pkgver=0.8.1 pkgrel=2 pkgdesc="A Python module for handling intervals (ranges of comparable objects)" url="https://github.com/kvesteri/intervals" arch="noarch" license="BSD-3-Clause" depends="py3-infinity" makedepends="py3-setuptools" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz pytest5.patch" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-intervals" # Backwards compatibility provides="py-intervals=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { py.test-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="f97142d5f1c8d4da21692b856803481878ac2b2afc3b81937de456bacbf66ebb129b1fe9a070ac442cbc6bbe26fdaf2ed839f8fc8b26392b4bd1ce032d054e65 intervals-0.8.1.tar.gz af545bec7d8157259197e045396d69ac1791b5e0420056fca69bea444cceacaa208ae568fd80792f614e1c775611ea22c48521bdd47dbdd976a699c150835f96 pytest5.patch"