# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..13} ) inherit distutils-r1 pypi DESCRIPTION="Linear Assignment Problem solver (LAPJV/LAPMOD)." HOMEPAGE="https://pypi.org/project/lap/" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" IUSE="test" RESTRICT="!test? ( test )" RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" BDEPEND=" dev-python/cython[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " python_test() { rm -rf lap || die epytest --pyargs lap }