1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-jupyter_core/APKBUILD
2023-02-04 03:30:47 +00:00

39 lines
1.3 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter_core
pkgver=5.2.0
pkgrel=0
pkgdesc="Core Jupyter functionality"
url="https://github.com/jupyter/jupyter_core"
arch="noarch"
license="BSD-3-Clause"
depends="py3-traitlets py3-platformdirs"
makedepends="py3-hatchling py3-gpep517"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter_core/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter_core-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest \
--deselect jupyter_core/tests/test_command.py::test_not_on_path \
--deselect jupyter_core/tests/test_command.py::test_path_priority \
--deselect jupyter_core/tests/test_paths.py::test_jupyter_path_prefer_env \
--deselect jupyter_core/tests/test_paths.py::test_jupyter_path_user_site \
--deselect jupyter_core/tests/test_paths.py::test_jupyter_path_no_user_site \
--deselect jupyter_core/tests/test_command.py::test_argv0
}
package() {
python3 -m installer -d "$pkgdir" \
dist/jupyter_core-$pkgver-py3-none-any.whl
}
sha512sums="
c67d7a7363f0fc715fcd40344fb04acbf84929593f8b6bd4486df21ea4da43015e39b186528a726b9203a2b9112ed93de8c779d1016f428facf046b347a29678 py3-jupyter_core-5.2.0.tar.gz
"