# Copyright 2025-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..15} ) inherit distutils-r1 pypi DESCRIPTION="Utilities for manipulating PostScript documents" HOMEPAGE=" https://github.com/rrthomas/psutils/ https://pypi.org/project/psutils/ " LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" DEPEND="app-text/libpaper" RDEPEND=" ${DEPEND} >=dev-python/puremagic-1.26[${PYTHON_USEDEP}] >=dev-python/pypdf-4.3.0[${PYTHON_USEDEP}] " BDEPEND=" ${RDEPEND} dev-python/argparse-manpage[${PYTHON_USEDEP}] test? ( app-text/ghostscript-gpl dev-python/wand[${PYTHON_USEDEP}] ) " EPYTEST_PLUGINS=( pytest-datafiles ) distutils_enable_tests pytest python_test() { local EPYTEST_DESELECT=() if has_version "media-gfx/imagemagick[hardened]"; then EPYTEST_DESELECT+=( # failures with media-gfx/imagemagick[hardened], see #986572 # wand.exceptions.PolicyError "tests/test_pdfnup.py::test_pdfnup" "tests/test_psnup.py::test_psnup[.pdf" "tests/test_pstops.py::test_pstops[.pdf" ) fi epytest }