dev-python/pytest-textual-snapshot - 1.1.0 (guru)

Search

Install

Install this version:

emerge -a =dev-python/pytest-textual-snapshot-1.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pytest-textual-snapshot-1.1.0

Or alternatively:

emerge --autounmask-write -a =dev-python/pytest-textual-snapshot-1.1.0

Package Information

Description:
Snapshot testing for Textual apps
Homepage:
https://github.com/Textualize/pytest-textual-snapshot https://pypi.org/project/pytest-textual-snapshot/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.1.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 pypi

DESCRIPTION="Snapshot testing for Textual apps"
HOMEPAGE="
	https://github.com/Textualize/pytest-textual-snapshot
	https://pypi.org/project/pytest-textual-snapshot/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	>=dev-python/jinja2-3.0.0[${PYTHON_USEDEP}]
	>=dev-python/pytest-8.0.0[${PYTHON_USEDEP}]
	>=dev-python/rich-12.0.0[${PYTHON_USEDEP}]
	>=dev-python/syrupy-5.0.0[${PYTHON_USEDEP}]
	>=dev-python/textual-0.28.0[${PYTHON_USEDEP}]
"

PATCHES=(
	"${FILESDIR}/${PN}-1.1.0-syrupy-5-compat.patch"
)

src_prepare() {
	distutils-r1_src_prepare

	# Convert to proper Python package
	mkdir pytest_textual_snapshot || die

	mv pytest_textual_snapshot.py pytest_textual_snapshot/__init__.py || die
	mv resources pytest_textual_snapshot/ || die

	sed -i 's|"resources/\*\*/\*"|"pytest_textual_snapshot/resources/\*\*/\*"|' \
		pyproject.toml || die
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/jinja2-3.0.0[]
	>=dev-python/pytest-8.0.0[]
	>=dev-python/rich-12.0.0[]
	>=dev-python/syrupy-5.0.0[]
	>=dev-python/textual-0.28.0[]