aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-intervals/APKBUILD
blob: bf55f8748d3baf7da3f7722e0f9ca49ed55bc0b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-intervals
_pkgname=intervals
pkgver=0.9.1
pkgrel=0
pkgdesc="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="8b7030ac37a0e59c00c9bd43bc043dcbdf9bd92d82b701c1ec05089bde93bf1e1c89c59e1ede2abb0c3889b1d7b8fb9aa3b5d331a79d7794337371448d16762e  intervals-0.9.1.tar.gz
af545bec7d8157259197e045396d69ac1791b5e0420056fca69bea444cceacaa208ae568fd80792f614e1c775611ea22c48521bdd47dbdd976a699c150835f96  pytest5.patch"