View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
#PYPI_PN="${PN//-/.}"
#PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 optfeature pypi
DESCRIPTION="A parsing library for RIPE Atlas measurement results"
HOMEPAGE="https://github.com/RIPE-NCC/ripe-atlas-sagan"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]"
DOCS=( {CHANGES,README}.rst )
distutils_enable_sphinx docs
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_prepare_all() {
sed -i '/ripe.atlas.sagan/s/"]/", "ripe.atlas.sagan.helpers"]/' setup.py \
|| die "sed failed"
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "fast json processing" dev-python/ujson
}