blob: 7c27ee0d664267fb640f60bb35bb1f7adccd628b (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-runnotebook
_pname=${pkgbase#python-}
_pyname=RunNotebook
pkgname=("python-${_pname}")
#"python-${_pname}-example")
pkgver=0.3.1
pkgrel=1
pkgdesc="IPython notebook sphinx extensions"
arch=('any')
url="https://github.com/ngoldbaum/RunNotebook"
license=('BSD')
makedepends=('python-setuptools')
# 'python-wheel'
# 'python-build'
# 'python-installer'
# 'python-sphinx')
checkdepends=('python-nose'
'jupyter-nbformat'
'jupyter-nbconvert'
'python-docutils')
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
"https://raw.githubusercontent.com/ngoldbaum/RunNotebook/master/LICENSE")
md5sums=('67ddf123b72f97369831ba684a426962'
'SKIP')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
# python -m build --wheel --no-isolation
python setup.py build
# msg "Building Examples"
# cd ${srcdir}/${_pyname}-${pkgver}/example
# PYTHONPATH="../build/lib" make html
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
nosetests
}
package_python-runnotebook() {
depends=('python-sphinx'
'jupyter-notebook'
'python-qtconsole'
'jupyter_console'
'jupyter-nbconvert'
'python-ipykernel'
'python-ipywidgets'
'jupyter-nbformat')
cd ${srcdir}/${_pyname}-${pkgver}
# optdepends=('python-runnotebook-example: example documentation')
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ${srcdir}/LICENSE
install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
# python -m installer --destdir="${pkgdir}" dist/*.whl
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}
#package_python-runnotebook-example() {
# pkgdesc="RunNotebook example documentation"
# cd ${srcdir}/${_pyname}-${pkgver}/example/build
#
# install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE
# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
#}
|