blob: 3e957a3e48c0842f7e970f95cffeedfc9af0adbb (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>
pkgname=jupyterlab-execute-time
pkgdesc="JupyterLab extension to show execution time for each cell"
url='https://github.com/deshaw/jupyterlab-execute-time'
pkgver=3.2.0
pkgrel=1
license=('BSD-3-Clause')
arch=('any')
depends=(
'jupyterlab'
)
makedepends=(
'python-build'
'python-installer'
'python-jupyter-packaging'
'python-setuptools'
'python-wheel'
)
_pypi=jupyterlab_execute_time
source=(
"https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz"
'install.json'
)
sha256sums=(
'9b13b65c2c139bfabb3f6ff1706c4d33ed5a56203a89d0297608334e15bc9c0b'
'fcaf662d9c5fcc529b4add01452bf3f1809c418c75d9b7e55f7fd822d407f9a3'
)
prepare() {
cd "$_pypi-$pkgver"
# Replace uninstallation instructions with Arch-specific ones.
cp "$srcdir/install.json" .
}
build() {
cd "$_pypi-$pkgver"
python -m build --no-isolation --wheel -x
}
package() {
cd "$_pypi-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
}
|