python-jupyter_notebook: update to 7.0.3

This commit is contained in:
Raed Rizqie
2023-09-04 15:31:37 +08:00
committed by Biswapriyo Nath
parent 36deb66da3
commit 374070e6b6

View File

@@ -3,33 +3,25 @@
_realname=notebook
pkgbase=mingw-w64-python-jupyter_${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-jupyter_${_realname}
pkgver=6.5.4
pkgrel=2
pkgver=7.0.3
pkgrel=1
pkgdesc='Jupyter Interactive Notebook (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://jupyter.org/'
license=('spdx:BSD-3-Clause')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-argon2_cffi"
"${MINGW_PACKAGE_PREFIX}-python-ipykernel"
"${MINGW_PACKAGE_PREFIX}-python-ipython_genutils"
"${MINGW_PACKAGE_PREFIX}-python-jinja"
"${MINGW_PACKAGE_PREFIX}-python-jupyter-nbclassic"
"${MINGW_PACKAGE_PREFIX}-python-jupyter-nbconvert"
"${MINGW_PACKAGE_PREFIX}-python-jupyter-nbformat"
"${MINGW_PACKAGE_PREFIX}-python-jupyter_client"
"${MINGW_PACKAGE_PREFIX}-python-jupyter_core"
"${MINGW_PACKAGE_PREFIX}-python-nest-asyncio"
"${MINGW_PACKAGE_PREFIX}-python-prometheus-client"
"${MINGW_PACKAGE_PREFIX}-python-pyzmq"
"${MINGW_PACKAGE_PREFIX}-python-send2trash"
"${MINGW_PACKAGE_PREFIX}-python-terminado"
"${MINGW_PACKAGE_PREFIX}-python-jupyterlab"
"${MINGW_PACKAGE_PREFIX}-python-tornado"
"${MINGW_PACKAGE_PREFIX}-python-traitlets")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://github.com/jupyter/notebook/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('517209568bd47261e2def27a140e97d49070602eea0d226a696f42a7f16c9a4e')
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-hatch-jupyter-builder"
"${MINGW_PACKAGE_PREFIX}-python-installer")
options=('!strip')
source=(https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz)
sha256sums=('07f3c5062fd0e6e69864437a0347abc485d991aae87a92c47d659699f571b729')
prepare() {
rm -rf python-build-${MSYSTEM} | true
@@ -39,21 +31,17 @@ prepare() {
build() {
msg "Python build for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
--root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/python-jupyter_${_realname}/LICENSE
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 "LICENSE" "${pkgdir}${MINGW_PREFIX}/share/licenses/python-jupyter_${_realname}/LICENSE"
rm -f ${pkgdir}${MINGW_PREFIX}/bin/*.manifest
for _f in "${pkgdir}${MINGW_PREFIX}"/bin/*-script.py; do
# Remove shebang line
sed -e '1 { s/^#!.*$// }' -i "${_f}"
done
}