# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DISTUTILS_USE_PEP517="setuptools" PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="Library with helpers for the jsonlines file format" HOMEPAGE="https://pypi.org/project/jsonlines/" #SRC_URI="https://files.pythonhosted.org/packages/90/cd/0beacbcfdf9b3af9e7c615cb3dba7ec4be1030d4b283e3c9717e3fd9af3c/jsonlines-1.2.0.tar.gz" if [[ ${PV} == "9999" ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/wbolster/jsonlines" else KEYWORDS="~amd64 ~arm64 ~x86" # tests not distributed through pypi mirror # SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SRC_URI="https://github.com/wbolster/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" fi LICENSE="BSD" SLOT="0" IUSE="test" RESTRICT="mirror" #overlay, no real issue DEPEND="" #todo 12-11-21 double check these rdeps since they arnt mentioned in doc RDEPEND=( "${DEPEND}" "dev-python/future[${PYTHON_USEDEP}]" "dev-python/requests[${PYTHON_USEDEP}]" "dev-python/pyyaml[${PYTHON_USEDEP}]" ) BDEPEND="( test? ( "dev-python/black[${PYTHON_USEDEP}]" "dev-python/mypy[${PYTHON_USEDEP}]" "dev-python/pytest[${PYTHON_USEDEP}]" "dev-python/sphinx[${PYTHON_USEDEP}]" ) )" distutils_enable_tests pytest python_prepare_all() { sed -r -e "/packages *=/ s|\[[^]]*\]\+||" -i -- setup.py distutils-r1_python_prepare_all }