summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8982772bcf433b3d246cdcab84d0ff9f584ef051 (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: Stefan Tatschner <stefan@rumpelsepp.org>

pkgname=python-msgspec
_pkgname=msgspec
pkgver=0.14.0
pkgrel=1
pkgdesc='A fast and friendly JSON/MessagePack library, with optional schema validation'
arch=(any)
url="https://jcristharif.com/msgspec/"
license=("BSD")
depends=(
    "python"
)
makedepends=("python-build" "python-installer" "git")
source=("https://github.com/jcrist/msgspec/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('d53acf64ac48c3f704de59d5b0935e337d2d2d18b04af6934d9bf89d8251e41e')

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

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