aports/community/py3-pytest-console-scripts/APKBUILD
2023-04-25 07:00:46 +00:00

35 lines
1.2 KiB
Plaintext

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-pytest-console-scripts
pkgver=1.3.1
pkgrel=1
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"
subpackages="$pkgname-pyc"
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
"