# Copyright 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 DESCRIPTION="Stroke and rule analyzer for stenography" HOMEPAGE=" https://github.com/opensteno/plover_spectra_lexer " # upstream does not include tests in source distribution SRC_URI=" https://github.com/opensteno/plover_spectra_lexer/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz " S="${WORKDIR}/${PN//-/_}-${PV}" # TODO: # * QA Notice: setuptools warnings detected: # * # * License classifiers are deprecated. # * Package 'spectra_lexer.assets' is absent from the `packages` configuration. # * Package 'spectra_lexer.http_public' is absent from the `packages` configuration. LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" # upstream tests are broken in test/__init__.py: # ERROR test/test_main.py - NotADirectoryError: [Errno 20] Not a directory: '/var/tmp/portage/plover-plugin/plover-spectra-lexer-1.0.1/work/plover_spectra_lexer-1.0.1/test/__init__.py/../data/translations.json' # ERROR test/test_plover.py - NotADirectoryError: [Errno 20] Not a directory: '/var/tmp/portage/plover-plugin/plover-spectra-lexer-1.0.1/work/plover_spectra_lexer-1.0.1/test/__init__.py/../data/translations.json' # ERROR test/test_search.py - NotADirectoryError: [Errno 20] Not a directory: '/var/tmp/portage/plover-plugin/plover-spectra-lexer-1.0.1/work/plover_spectra_lexer-1.0.1/test/__init__.py/../data/translations.json' # # yes, __init__.py/ is not a directory # upstream forgot to enable the issue tracker? no issue tracker available RESTRICT="test" RDEPEND=" app-misc/plover[${PYTHON_USEDEP}] " DEPEND=" dev-python/pyside[${PYTHON_USEDEP}] " EPYTEST_PLUGINS=() distutils_enable_tests pytest