summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da00ec670d7e06728b42e122e512cb459d1f7efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Phil A. <flying-sheep@web.de>
_name=ipycytoscape
pkgname=jupyterlab-extension-$_name
pkgver=1.3.1
pkgrel=1
pkgdesc='Python implementation of the graph visualization tool Cytoscape.'
arch=(any)
url=https://pypi.org/project/$_name
license=(BSD)
depends=(jupyterlab python-ipywidgets python-spectate)
provides=(python-ipycytoscape jupyter-cytoscape jupyterlab-extension-cytoscape)
_wheel="${_name/-/_}-$pkgver-py2.py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py2.py3/${_name::1}/$_name/$_wheel")
sha256sums=('2b02ed284b5da3e0d93b3a2c5810b3c2f5a66b54a57e7b04c6206cce6706fda3')

package() {
	local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages"
	install -d "$site"
	unzip "$_wheel" -d "$site"
	(
		cd "$site/${_name/-/_}-$pkgver.data"
		mv "data/etc/" "$pkgdir/"
		mv "data/share/" "$pkgdir/usr/"
		rmdir data
	)
}