blob: 025a8c8c896be4e0747034ca810742b417b51bad (
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: Caleb Maclennan <caleb@alerque.com>
pkgname=python-textual-plotext
_pyname=${pkgname#python-}
pkgver=1.0.1
pkgrel=2
pkgdesc='A Textual widget wrapper for the Plotext plotting library'
arch=(any)
url="https://github.com/Textualize/$_pyname"
license=(MIT)
_pydeps=(plotext
textual)
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer,wheel}
python-poetry-core)
_archive="${_pyname/-/_}-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('836f53a3316756609e194129a35c2875638e7958c261f541e0a794f7c98011be')
build () {
cd "$_archive"
python -m build -wn
}
package () {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|