aports/community/py3-jupyter_core/APKBUILD
2023-04-19 14:25:59 +00:00

41 lines
1.3 KiB
Plaintext

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-jupyter_core
pkgver=5.3.0
pkgrel=1
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"
subpackages="$pkgname-pyc"
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="
b912fc29be6f3f8d4d50d8aa893c8d1f702263b38a795b4fe6a8b09d1a1e4a76fbb3bc80b181ddbc085f64b733d6f1f119eeb847471bcc46f15860a6467ea55f py3-jupyter_core-5.3.0.tar.gz
"