blob: 9c8069220525c0f0c2c1f5a2d53186de9f5ce06e (
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
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-dask-sphinx-theme
_pname=${pkgbase#python-}
_pyname=${_pname//-/_}
pkgname=("python-${_pname}")
pkgver=3.0.6
pkgrel=1
pkgdesc="Sphinx theme for Dask documentation"
arch=('any')
url="https://github.com/dask/dask-sphinx-theme"
license=('BSD')
makedepends=('python-setuptools')
# 'python-wheel'
# 'python-build'
# 'python-installer')
checkdepends=('python-nose')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('0e29bb72e246fe45b74ae97e76940d76')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
# python -m build --wheel --no-isolation
python setup.py build
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
# pytest
nosetests
}
package_python-dask-sphinx-theme() {
depends=('python-jsonschema' 'python-sphinx-book-theme')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
# python -m installer --destdir="${pkgdir}" dist/*.whl
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}
|