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

pkgname=python-process-tests
pkgver=3.0.0
pkgrel=1
pkgdesc="Tools for testing processes"
arch=('any')
url="https://pypi.python.org/pypi/process-tests"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.io/packages/source/p/process-tests/process-tests-$pkgver.tar.gz")
sha512sums=('2dc44c56f9ea1f8fc0ecce633fc1fc8d59a1abf6ccec6011515cb0899a7cefaa33afb99f5e8d72dc608e222d7856b615cdad281b2d93f9ef0467a06c80ae4a6e')

build() {
  cd "$srcdir"/process-tests-$pkgver
  python setup.py build
}

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

package_python-process-tests() {
  cd process-tests-$pkgver
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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