aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-intervals/APKBUILD
blob: 1f303f4f173a46019cc13652c20402c0c4201ffc (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.0
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="474ce8fadaf5e884b1cf2f429497e0c234ef18b47592bd9a8e71eacae75abd5605c22153a2649123bfb7132272a8fa75009f4c8c872baf689528319f0af503d3  intervals-0.9.0.tar.gz
af545bec7d8157259197e045396d69ac1791b5e0420056fca69bea444cceacaa208ae568fd80792f614e1c775611ea22c48521bdd47dbdd976a699c150835f96  pytest5.patch"