mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer:
|
|
pkgname=py3-jupyter_core
|
|
pkgver=5.7.2
|
|
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-pytest7"
|
|
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 tests/test_command.py::test_not_on_path \
|
|
--deselect tests/test_command.py::test_path_priority \
|
|
--deselect tests/test_paths.py::test_jupyter_path_prefer_env \
|
|
--deselect tests/test_paths.py::test_jupyter_path_user_site \
|
|
--deselect tests/test_paths.py::test_jupyter_path_no_user_site \
|
|
--deselect tests/test_command.py::test_argv0 \
|
|
--deselect tests/test_troubleshoot.py::test_troubleshoot
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/jupyter_core-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
488bb54c633a6a025a4b5046d9f529e868f69f3823fdbaf3c0d711f1f41441956d023bb6e1657f01a61dd43aca513a3d5987add753c84b64a14bfaf3fb73441d py3-jupyter_core-5.7.2.tar.gz
|
|
"
|