summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efe0eef8895e6d36abed394e3a5162c127a8e108 (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
# Maintainer: Arthur Deierlein <arthur.deierlein@adfinis.com>

pkgbase='python-rich-argparse'
pkgname=('python-rich-argparse')
_module='rich_argparse'
pkgver='1.4.0'
pkgrel=1
pkgdesc="Rich help formatters for argparse and optparse"
url="https://pypi.org/project/rich-argparse/"
depends=('python' 'python-rich')
makedepends=('python-build' 'python-installer' 'python-hatchling')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/${_module/-/_}-$pkgver.tar.gz")
sha256sums=('c275f34ea3afe36aec6342c2a2298893104b5650528941fb53c21067276dba19')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-rich-argparse/LICENSE"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}