blob: d2b1fdb3cd35cb2106f913f1aebad05db41e59f3 (
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
|
# Maintainer: envolution
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-partial-json-parser
_pkgname=partial_json_parser
pkgver=0.2.1.1.post6
pkgrel=2
pkgdesc="customizable library for parsing partial JSON strings"
arch=('any')
url='https://github.com/promplate/partial-json-parser'
license=(MIT)
makedepends=(
python-build
python-installer
python-wheel
python-pdm-backend
)
source=("https://files.pythonhosted.org/packages/source/p/${_pkgname//_/-}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('43896b68929678224cbbe4884a6a5fe9251ded4b30b8b7d7eb569e5feea93afc')
build() {
cd ${_pkgname}-${pkgver}
python -m build --wheel --no-isolation
}
#check() {
#cd ${_pkgname}-${pkgver}
#python -m pytest -s -v tests # no tests
#}
package() {
cd ${_pkgname}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
|