aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pluggy/APKBUILD
blob: 2e24e1565c5072e5936d44bf148a739b45f29f4f (plain)
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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pluggy
_pkgname=${pkgname#py3-*}
pkgver=0.13.1
pkgrel=0
pkgdesc="Plugin management and hook calling for Python"
options="!check" # Requires py3-flake8 which is not in main
url="https://pluggy.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-flake8 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
}

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

check() {
	python3 -m pytest
}

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