# Maintainer:

pkgname=python-pytest-tornasync
pkgver=0.6.0.post2
pkgrel=6
pkgdesc='py.test plugin for testing Python 3.5+ Tornado code'
arch=(any)
license=(MIT)
url='https://github.com/eukaryote/pytest-tornasync'
depends=(python-tornado python-pytest)
makedepends=(python-setuptools)
source=(https://pypi.python.org/packages/source/p/pytest-tornasync/pytest-tornasync-$pkgver.tar.gz)
sha512sums=('2e258913b17a5442d18928833ee7e9771b6dbd148dbf251a7661432a54d4b9f9f3a7c396134eb544c0e3ce0af48c99d2d632399ac6ebdcf148187a7a523f4974')

build() {
  cd pytest-tornasync-$pkgver
  python setup.py build
}

package() {
  cd pytest-tornasync-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  rm "$pkgdir"/usr/LICENSE
  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
