void-packages/srcpkgs/python3-jupyter_core/template

31 lines
1.0 KiB
Bash

# Template file for 'python3-jupyter_core'
pkgname=python3-jupyter_core
version=5.7.2
revision=1
build_style=python3-pep517
hostmakedepends="hatchling"
depends="python3-traitlets python3-platformdirs"
checkdepends="$depends python3-pytest python3-pip"
short_desc="Jupyter core package"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://jupyter.org"
changelog="https://raw.githubusercontent.com/jupyter/jupyter_core/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz"
checksum=aa5f8d32bbf6b431ac830496da7392035d6f61b4f54872f15c4bd2a9c3f536d9
conflicts="python-jupyter_core<=4.4.0_3"
do_check() {
# Running via PYTHONPATH breaks a few tests so we use a venv
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
python3 -m venv --system-site-packages --without-pip "${testdir}"
local testpy="${testdir}/bin/python3"
"${testpy}" -m installer dist/*.whl
PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest
}
post_install() {
vlicense LICENSE
}