# Maintainer:

pkgname=python-pytest-console-scripts
_pyname=pytest-console-scripts
pkgver=1.4.1
pkgrel=3
pkgdesc='Pytest plugin for testing console scripts'
arch=(any)
license=(MIT)
url='https://github.com/kvas-it/pytest-console-scripts'
depends=(python-pytest)
makedepends=(python-build python-installer python-setuptools-scm python-wheel)
source=(https://pypi.python.org/packages/source/p/$_pyname/$_pyname-$pkgver.tar.gz)
sha512sums=('b96def518a8c2930f092f68c1ba4a0ea55757c38cfa9dd39dd0ffdc54127bca3a2333c39159d7723ad1b412047244fde08753652e1945509b80dcbfa00dacfbb')

build() {
  cd $_pyname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_pyname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
