aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-jupyter_client/APKBUILD
blob: ae0f86aff71ac505d15fc5ff934667071c1e0757 (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
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter_client
pkgver=8.3.0
pkgrel=2
pkgdesc="Jupyter protocol client APIs"
url="https://github.com/jupyter/jupyter_client"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-dateutil
	py3-jupyter_core
	py3-pyzmq
	py3-tornado
	py3-traitlets
	"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="
	ipython
	openssh
	py3-ipykernel
	py3-pytest
	py3-pytest-asyncio
	py3-pytest-jupyter
	py3-pytest-timeout
	"
# circular dependency with py3-ipykernel
options="!check"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter_client/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter_client-$pkgver/"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	# first test fails on empty queue, more investigation needed
	# last test has a file descriptor related error, more investigation needed
	# other tests all hit their specified timeout
	pytest -vv \
		--deselect tests/test_kernelmanager.py::TestKernelManager::test_signal_kernel_subprocesses \
		--deselect tests/test_kernelmanager.py::TestParallel::test_start_parallel_thread_kernels \
		--deselect tests/test_kernelmanager.py::TestParallel::test_start_sequence_kernels \
		--deselect tests/test_kernelmanager.py::TestParallel::test_start_parallel_process_kernels \
		--deselect tests/test_kernelmanager.py::TestParallel::test_start_sequence_process_kernels \
		--deselect tests/test_kernelmanager.py::TestAsyncKernelManager::test_signal_kernel_subprocesses \
		--deselect tests/test_multikernelmanager.py::TestKernelManager::test_tcp_cinfo
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
aa0c7d8a7511c5a99116c343a60e6c30a178ea52145a6f3dd854a400a1cddd0bedf4c6fef79021dc2d0ce85a43765285e7c9542af45f965031a0235f0c76d7ba  py3-jupyter_client-8.3.0.tar.gz
"