summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d374ba0204f5a84eb692fd29f51a4baaab226a10 (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
# Maintainer: rosetintedcheeks <oaks@rosetintedcheeks.com>
# Contributor: GI_Jack <GI_Jack@hackermail.com>

pkgname=python-json2html
_pkgname=json2html
pkgver=1.3.0
pkgrel=2
pkgdesc="Python wrapper to convert JSON into a human readable HTML Table representation."
url="https://pypi.org/project/json2html/"
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('8951a53662ae9cfd812685facdba693fc950ffc1c1fd1a8a2d3cf4c34600689c')

build() {
    cd "${_pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pkgname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}