blob: a22a1b49ccbe9904390cb005292ee1ea65f660ce (
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
|
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-py2nb
_name=${pkgname#python-}
pkgver=1.1.1
pkgrel=1
pkgdesc="Convert python scripts to jupyter notebooks"
arch=(any)
url="https://github.com/williamjameshandley/${_name}"
license=('GPL')
groups=()
depends=(jupyter-notebook)
makedepends=(python-build python-installer)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('a699f5c18809657f5c1c4573eb4be9b6289c78ecd875ebf9fd74556c660f3fe2')
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|