# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="Python interface to the PROJ library" HOMEPAGE="https://github.com/pyproj4/pyproj" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux" RDEPEND=">=sci-libs/proj-8.0.0:=" BDEPEND=" dev-python/cython[${PYTHON_USEDEP}] test? ( dev-python/numpy[${PYTHON_USEDEP}] dev-python/pandas[${PYTHON_USEDEP}] dev-python/xarray[${PYTHON_USEDEP}] sci-libs/shapely[${PYTHON_USEDEP}] )" distutils_enable_sphinx docs dev-python/sphinx_rtd_theme distutils_enable_tests pytest python_test() { distutils_install_for_testing cp -r test "${BUILD_DIR}" || die cd "${BUILD_DIR}" || die epytest --import-mode=append -m "not network" test }