# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
# Contributor: Kyle Keen <keenerd@gmail.com>

pkgname=python-strict-rfc3339
pkgver=0.7
pkgrel=15
pkgdesc="Strict, simple, lightweight RFC3339 functions"
url="https://github.com/danielrichman/strict-rfc3339"
license=('GPL-3.0-or-later')
arch=('any')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("git+https://github.com/danielrichman/strict-rfc3339.git#tag=version-$pkgver")
sha512sums=('2461158e6521f126572001b004de1eaee7eb716840a95a12cfd7a4df0ec96e586d1028c3c3e359da59ae7cf78e54f7a377d2a84e1ffaa7b8afb1a47213a66711')

build() {
  cd strict-rfc3339
  python -m build --wheel --no-isolation
}

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