# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-process-tests
pkgver=3.0.0
pkgrel=3
pkgdesc="Tools for testing processes"
arch=('any')
url="https://pypi.python.org/pypi/process-tests"
license=('BSD-2-Clause')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("git+https://github.com/ionelmc/python-process-tests.git#tag=v$pkgver")
sha512sums=('d87ca80ab6332d2e419e660ad8640c50eb398ec6141e0af68ae4a49a641583fa78fb41efd6fd2e31ea990d4f9436fd67028cedd08a7fea6210f1f9109b8dc395')

build() {
  cd python-process-tests
  python -m build --wheel --no-isolation
}

# "project skel" sets up pytest but there are zero tests to run
# (and pytest therefore exits 5)

package() {
  cd python-process-tests
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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