31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
# Template file for 'python3-jupyter_core'
|
|
pkgname=python3-jupyter_core
|
|
version=5.3.1
|
|
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=5ba5c7938a7f97a6b0481463f7ff0dbac7c15ba48cf46fa4035ca6e838aa1aba
|
|
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
|
|
}
|