2023-08-09 01:56:05 +00:00
# Maintainer: Anthony Wang <a_at-exozy_dot-me>
2021-11-23 00:46:31 +00:00
2023-10-17 15:14:31 +00:00
_name = 'jupyter-server-proxy'
pkgname = " python- $_name "
2023-10-17 13:56:37 +00:00
pkgver = '4.1.0'
2023-10-17 15:14:31 +00:00
pkgrel = 2
pkgdesc = "Jupyter notebook server extension to proxy web services"
2021-11-23 00:05:35 +00:00
url = "https://github.com/jupyterhub/jupyter-server-proxy"
2023-10-17 15:14:31 +00:00
depends = ( python python-aiohttp python-simpervisor)
makedepends = ( python-build python-installer python-hatch-jupyter-builder python-hatch-nodejs-version jupyterlab)
2021-12-05 02:59:33 +00:00
license = ( 'BSD' )
2021-11-23 00:05:35 +00:00
arch = ( 'any' )
2023-10-17 15:14:31 +00:00
source = ( " https://files.pythonhosted.org/packages/source/ ${ _name : : 1 } / $_name / ${ _name //-/_ } - $pkgver .tar.gz " )
sha256sums = ( '2cfac3b4232fe7144e8e60296b4f861708b4f13b29260a2cf28976bf8e617f70' )
build( ) {
cd " ${ _name //-/_ } - $pkgver "
# Arch Linux's jupyerlab packaging is really bad and doesn't package the same dependencies as the PyPI version, so let's just --skip-dependency-check and hope for the best
python -m build --wheel --no-isolation --skip-dependency-check
}
2021-11-23 00:05:35 +00:00
package( ) {
2023-10-17 15:14:31 +00:00
cd " ${ _name //-/_ } - $pkgver "
python -m installer --destdir= " $pkgdir " dist/*.whl
mv " $pkgdir /usr/etc " " $pkgdir " # Move /usr/etc stuff to /etc where it actually belongs
2021-11-23 00:05:35 +00:00
}