summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 697ba7eb2427367d6c9c2bff539b7aa039b99a13 (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
# Maintainer: Arturo Penen <apenen@gmail.com>

_name=cloudevents
pkgname=python-$_name
pkgver=1.11.0
pkgrel=1
pkgdesc="Package cloudevents provides primitives to work with CloudEvents specification."
url=https://github.com/cloudevents
arch=(any)
license=(Apache-2.0)
depends=(python python-deprecation python-pydantic)
makedepends=(python-setuptools python-wheel python-installer python-build)
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('5be990583e99f3b08af5a709460e20b25cb169270227957a20b47a6ec8635e66')

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

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

# vim: set ts=2 sw=2 et: