# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>

_pkgname=pytest-aiohttp
pkgname=python-pytest-aiohttp
pkgver=1.0.5
pkgrel=1
pkgdesc='pytest plugin for aiohttp support'
url='https://github.com/aio-libs/pytest-aiohttp'
arch=('any')
license=('Apache')
depends=('python' 'python-pytest' 'python-aiohttp' 'python-py')
makedepends=('python-setuptools-scm')
#source=(${pkgname}-${pkgver}.tar.gz::https://github.com/aio-libs/pytest-aiohttp/archive/v${pkgver}.tar.gz)
source=(https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('880262bc5951e934463b15e3af8bb298f11f7d4d3ebac970aab425aff10a780a')
sha512sums=('b8421c63e4d5caa9742a013a6d1fd3c010b5e4a48e4f5c1a07ddfb7b05853ce6a7a0d65ce78493fd607f59c669d31c75d97a9022048e6a60cbc90a19a48dd02c')

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

package() {
  cd ${_pkgname}-${pkgver}
  python setup.py install --root="${pkgdir}" -O1 --skip-build
  install -Dm 644 README.rst CHANGES.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim: ts=2 sw=2 et:
