mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-26 19:38:07 -07:00
Tested-by: ernsteiswuerfel <erhard_f@mailbox.org> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# 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_{11..14} )
|
|
|
|
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="
|
|
dev-python/argparse-manpage[${PYTHON_USEDEP}]
|
|
test? ( dev-python/wand[${PYTHON_USEDEP}] )
|
|
"
|
|
|
|
EPYTEST_PLUGINS=( pytest-datafiles )
|
|
EPYTEST_DESELECT=(
|
|
# fails on test env the first time only, get ipc-timeout
|
|
# TODO: more investigations
|
|
"tests/test_pstops.py::test_pstops[.ps-default-paper-size]"
|
|
"tests/test_pstops.py::test_pstops[.ps-man-page-example]"
|
|
# requires ghostscript-gpl
|
|
# wand.exceptions.DelegateError: FailedToExecuteCommand `'gs' [...]
|
|
"tests/test_pstops.py::test_pstops[.pdf-default-paper-size]"
|
|
"tests/test_pstops.py::test_pstops[.pdf-man-page-example]"
|
|
)
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/psutils-3.3.11-py314.patch
|
|
)
|