aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-execnet/APKBUILD
blob: f10e4430309cba09859f073274e020116d4fdf1b (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
31
32
33
34
35
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-execnet
_pkgname=execnet
pkgver=1.7.1
pkgrel=1
pkgdesc="execnet: rapid multi-Python deployment"
url="https://github.com/pytest-dev/execnet"
arch="noarch"
license="MIT"
depends="py3-apipkg"
# tests for py-gevent are broken, jython is missing in repo, eventlet is part
# of testing
checkdepends="py3-pytest py3-py"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-execnet" # Backwards compatibility
provides="py-execnet=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	mv $builddir/doc/example/conftest.py $builddir
	python3 -m pytest
}

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

sha512sums="375748c03f8d955bd8fca90d5c6308073c31a978fd7a604257512e0a710f899dec5db8a91d5bb5f16de9b0656e1742da9ab513827a1a065a5125bafcf1e63a70  execnet-1.7.1.tar.gz"