blob: dcc26183bf64ef8f88c4bb565033b2616df0c313 (
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
|
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Ista Zahn <istazahn[at]gmail[dot]com>
_pyname=altair
pkgname=python-altair
pkgver=5.5.0
pkgrel=1
pkgdesc="Declarative statistical visualization library for Python"
arch=('any')
url="https://altair-viz.github.io/"
license=('BSD-3-Clause')
depends=(python-jinja python-jsonschema python-narwhals)
makedepends=(python-build python-installer python-wheel python-hatchling)
optdepends=('python-numpy: for NumPy and Pandas imports'
'python-pandas: for Pandas imports'
'python-selenium: png and svg export support'
'python-vl-convert: png and svg export support via vega-lite specs')
source=("${_pyname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz")
sha256sums=('d960ebe6178c56de3855a68c47b516be38640b73fb3b5111c2a9ca90546dd73d')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
}
# vim:set et sw=2 ts=2 tw=79:
|