summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d54d45e5211b5f391b6c0341ff8c86ea81d03ac (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
# Maintainer: Joao Freitas <joaj dot freitas at gmail dot com>

pkgname=python-serde
_name=${pkgname#python-}
pkgver=0.9.0
pkgrel=3
pkgdesc='Serde is a lightweight, general-purpose framework for defining, serializing, deserializing, and validating data structures in Python.'
arch=('any')
url='https://pypi.org/project/serde'
license=('MIT')
depends=('python')
optdepends=()
makedepends=('python-build' 'python-installer' 'python-wheel' 'poetry')
provides=('serde')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('5dbbf0910e736d9136a97b8e9b301b76a9f3b19f88d45bc5974b0fc68a5bc3fb')


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

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