-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathtemplate
More file actions
35 lines (31 loc) · 1.34 KB
/
Copy pathtemplate
File metadata and controls
35 lines (31 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Template file for 'python3-pytest-env'
pkgname=python3-pytest-env
version=1.6.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-pytest python3-dotenv"
checkdepends="$depends python3-pytest-mock"
short_desc="Pytest plugin to add environment variables"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="MIT"
homepage="https://github.com/pytest-dev/pytest-env"
changelog="https://github.com/pytest-dev/pytest-env/releases"
distfiles="${PYPI_SITE}/p/pytest-env/pytest_env-${version}.tar.gz"
checksum=ac02d6fba16af54d61e311dd70a3c61024a4e966881ea844affc3c8f0bf207d3
pre_check() {
# These tests fail with pytest < 9 (see: https://github.com/pytest-dev/pytest-env/pull/189)
# tests/test_env.py::test_env_via_toml[pyproject toml via tool.pytest]
# tests/test_env.py::test_env_via_toml[pytest toml over pyproject toml]
# tests/test_env.py::test_env_via_toml[subdir pytest toml over parent pyproject toml]
# tests/test_env.py::test_env_via_pyproject_toml_bad[pytest.toml]
# tests/test_env.py::test_env_via_pyproject_toml_bad[.pytest.toml]
# hack to workaround spaces in those
vsed -e '/id=.*pytest toml over/s/pytest toml/pytest.toml/' \
-i tests/test_env.py
# now the 5 tests can be deselected with this pattern
make_check_args="-k not((pytest.toml)or(tool.pytest))"
}
post_install() {
vlicense LICENSE
}