blob: cc17375d7d89bf3c40d4c95528e6f4a55fa14923 (
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
|
# Maintainer: Martin Chang <marty188586@gmail.com>
pkgname=python-jsons
pkgver=1.6.3
pkgrel=1
pkgdesc="A Python lib for (de)serializing Python objects to/from JSON"
arch=('any')
url='https://github.com/ramonhagenaars/jsons'
license=('MIT')
makedepends=(python-build python-installer python-wheel)
depends=(python-typish)
provides=("python-jsons")
source=("jsons::git+https://github.com/ramonhagenaars/jsons#tag=v$pkgver")
sha256sums=('SKIP')
pkgver() {
cd jsons
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd jsons
python -m build --wheel --no-isolation
}
package() {
cd jsons
python -m installer --destdir="$pkgdir" dist/*.whl
}
|