summaryrefslogtreecommitdiff
path: root/community/py3-dask/APKBUILD
blob: ebcdc79ae250d85a49b22c5182be93107dcef6b6 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-dask
pkgver=2022.11.1
pkgrel=0
pkgdesc="Parallel computing with task scheduling"
url="https://dask.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-click
	py3-cloudpickle
	py3-fsspec
	py3-numpy
	py3-packaging
	py3-pandas
	py3-partd
	py3-toolz
	py3-yaml
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-flaky
	py3-graphviz
	py3-jinja2
	py3-pytest
	py3-pytest-runner
	py3-pytest-xdist
	py3-scipy
	"
source="https://pypi.python.org/packages/source/d/dask/dask-$pkgver.tar.gz"
builddir="$srcdir/dask-$pkgver"

case "$CARCH" in
x86)
	# assert sizeof(sp.todok()) >= 192
	options="!check"
	;;
esac

# secfixes:
#   2022.2.0-r0:
#     - CVE-2021-42343

build() {
	python3 setup.py build
}

check() {
	# dataframe ones fail due to deprecation warnings
	# matches_ci fails on a missing workflow yaml file
	# test_csv fails on s390x
	pytest -n ${JOBS:-2} \
		--ignore=dask/dataframe/tests/test_dataframe.py \
		--ignore=dask/dataframe/io/tests/test_csv.py \
		-k 'not test_development_guidelines_matches_ci'
}

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

sha512sums="
48bf55763d0933512d45779a16f6b3a7e7c53b8d0351255b5edae82b53e0dce09bd0f5babb03a9ca2bb167501d2eeb6aafdb7079322110478f612eba6e3afc52  dask-2022.11.1.tar.gz
"