47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
# Maintainer: Peter Budai <peterbudai@hotmail.com>
|
|
|
|
_realname=nbformat
|
|
pkgbase=mingw-w64-python-jupyter-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-jupyter-${_realname}")
|
|
pkgver=5.10.4
|
|
pkgrel=3
|
|
pkgdesc="The base implementation of the Jupyter Notebook format and Python APIs for working with notebooks (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
url="https://jupyter.org"
|
|
msys2_references=(
|
|
'archlinux: jupyter-nbformat'
|
|
'purl: pkg:pypi/nbformat'
|
|
)
|
|
license=('spdx:BSD-3-Clause')
|
|
depends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python"
|
|
"${MINGW_PACKAGE_PREFIX}-python-fastjsonschema"
|
|
"${MINGW_PACKAGE_PREFIX}-python-jsonschema"
|
|
"${MINGW_PACKAGE_PREFIX}-python-jupyter_core"
|
|
"${MINGW_PACKAGE_PREFIX}-python-traitlets"
|
|
)
|
|
makedepends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
|
"${MINGW_PACKAGE_PREFIX}-python-hatchling"
|
|
"${MINGW_PACKAGE_PREFIX}-python-hatch-nodejs-version"
|
|
)
|
|
options=(!strip)
|
|
source=("https://pypi.io/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('322168b14f937a5d11362988ecac2a4952d3d8e3a2cbeb2319584631226d5b3a')
|
|
|
|
build() {
|
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
|
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/python-build-${MSYSTEM}"
|
|
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-${_realname}/LICENSE"
|
|
}
|