# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=sphinx-pytest
pkgname=python-$_pkgname
pkgver=0.2.0
pkgrel=3
pkgdesc='Helpful pytest fixtures for sphinx extensions'
arch=('any')
url='https://github.com/chrisjsewell/sphinx-pytest'
license=('MIT')
depends=('python-sphinx' 'python-pytest')
makedepends=('python-build' 'python-installer' 'python-flit-core' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('dfcbe36c74bf01ff45895893faa11a643b667d277e5f5011978c5cd1404f79d614c6603cf8756ef3e5fec278ea01c6e289cb825725e4e218f75a7bcb12e11bbb')

build() {
  cd $_pkgname-$pkgver

  python -m build -nw
}

#check() {
#  cd $_pkgname-$pkgver
#
#  PYTHONPATH=src python -m pytest
#}

package() {
  cd $_pkgname-$pkgver

  python -m installer -d "$pkgdir" dist/*.whl

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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