# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-pytest-console-scripts pkgver=1.3.1 pkgrel=0 pkgdesc="Pytest plugin for testing console scripts" url="https://github.com/kvas-it/pytest-console-scripts" arch="noarch" license="MIT" depends="py3-pytest" makedepends="py3-setuptools py3-setuptools_scm" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/5a/2f/47afcacbe804735fef894d94e0a2e7848a1f488a8da74ac9ded81e7ac371/pytest-console-scripts-$pkgver.tar.gz" builddir="$srcdir/pytest-console-scripts-$pkgver" build() { python3 setup.py build } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 setup.py install # test fails on script launch in venv, more investigation needed test-env/bin/python3 -m pytest \ --deselect tests/test_run_scripts.py::test_run_pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 344e9379976d9a7541f9683f7646b47f7fc25d2ab8d941351811ada7fddd77497cc24f4bc6a6d5ab9388dd5b289ed125bcbfad869009fb3b80aaaa1b951d656d py3-pytest-console-scripts-1.3.1.tar.gz "