aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-distributed/APKBUILD
blob: e2f56c9f605244e940b566ea1de1c47c32686782 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-distributed
pkgver=2.16.0
pkgrel=0
pkgdesc="A library for distributed computation"
url="https://distributed.dask.org/"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-dask
license="BSD-3-Clause"
depends="python3"
depends="py3-dask py3-yaml py3-tornado py3-tblib py3-click py3-cloudpickle py3-msgpack py3-psutil py3-sortedcontainers py3-zict"
makedepends="py3-setuptools python3-dev linux-headers yaml-dev"
checkdepends="py3-pytest py3-pytest-asyncio py3-requests py3-paramiko py3-arrow py3-h5py py3-scipy py3-lz4 py3-jsonschema"
source="https://pypi.python.org/packages/source/d/distributed/distributed-$pkgver.tar.gz"
# Tests require ipv6 stack which might not always be available yet
# Net required for tests
options="!check"
builddir="$srcdir/distributed-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

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

sha512sums="070f7060abe5468c100fb6c6632e9b7ba002c1a3c3d90b66a3ad70d8dce7438e6967cdf78932cf25c7449e05da8779437e7ef3bfb50f95862cf8f9f4b2bb624c  distributed-2.16.0.tar.gz"