mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=jupyter-nbformat
|
|
pkgver=5.7.3
|
|
pkgrel=0
|
|
pkgdesc="Reference implemtnation of the jupyter notebook format"
|
|
url="https://github.com/jupyter/nbformat"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
makedepends="py3-gpep517 py3-installer py3-hatch-nodejs-version"
|
|
depends="py3-traitlets py3-jsonschema py3-fastjsonschema py3-jupyter_core py3-ipython_genutils"
|
|
checkdepends="py3-pytest py3-testpath py3-pep440"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/nbformat/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/nbformat-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
export PYTHONWARNINGS="ignore::DeprecationWarning"
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
91b815c1dacd946edf244723c7e58fa5db73f67f0a07ab1d32be758016bb4b852c28fe1c5d6c8962398057a915ec54d3f6382f21b8bd5a087100df73039f3133 jupyter-nbformat-5.7.3.tar.gz
|
|
"
|