packages/PKGBUILD

24 lines
972 B
Text
Raw Normal View History

# Maintainer: Anthony Wang <ta180m@pm.me>
2021-11-23 00:05:35 +00:00
pkgbase='python-jupyter-server-proxy'
pkgname=('python-jupyter-server-proxy')
_name='jupyter-server_proxy'
2022-05-20 02:33:46 +00:00
pkgver='3.2.1'
pkgrel=1
2021-11-23 00:05:35 +00:00
pkgdesc="Jupyter server extension to supervise and proxy web services"
url="https://github.com/jupyterhub/jupyter-server-proxy"
2022-05-20 02:33:46 +00:00
depends=('python' 'python-aiohttp' 'python-simpervisor' 'python-ipython-genutils' 'jupyter-nbclassic')
2021-12-05 02:59:33 +00:00
makedepends=('unzip' 'python-setuptools')
license=('BSD')
2021-11-23 00:05:35 +00:00
arch=('any')
source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py3-none-any.whl")
2022-05-20 02:33:46 +00:00
sha256sums=('150124483df109eed8280b13ea78c1a417dd8f2b513b624aa7f1201424b8cdf8')
2021-11-23 00:05:35 +00:00
package() {
local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages"
install -d "$site"
unzip "${_name//-/_}-$pkgver-py3-none-any.whl" -d "$site"
mv "$site/${_name/-/_}-$pkgver.data/data/share"* "$pkgdir/usr/share"
mv "$site/${_name/-/_}-$pkgver.data/data/etc"* "$pkgdir/etc/"
2021-11-23 00:05:35 +00:00
}