aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pluggy/APKBUILD
blob: 5d1bfb6d37c25f54bb20b792f8b39bd573b24601 (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: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pluggy
_pkgname=pluggy
pkgver=0.13.1
pkgrel=1
pkgdesc="Plugin management and hook calling for Python"
# Needs py3-pytest for checkdepends, which require py3-pluggy
# in depends, so disable here to break a circular dependency
options="!check"
url="https://pluggy.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-zipp"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	rm tox.ini
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="eb747ff341cedacbd90eb20e22ad3d1ddf5588056f14d069f56331f4141a15b7eccaee23ea196d2f4906964ddb77a79b156bbf3ef8c8083e9952c55d13d55f3e  pluggy-0.13.1.tar.gz"