guru/dev-python/svgelements/svgelements-1.9.0.ebuild
Henri Gasc 1d26286381
dev-python/svgelements: new package, add 1.9.0
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
2023-02-05 22:06:19 +01:00

49 lines
1.1 KiB
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="SVG Parsing for Elements, Paths, and other SVG Objects."
HOMEPAGE="https://github.com/meerk40t/svgelements https://pypi.org/project/svgelements"
SRC_URI="https://github.com/meerk40t/svgelements/archive/refs/tags/${PV}.tar.gz -> v${PV}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
)
"
DEPEND="${BDEPEND}"
distutils_enable_tests pytest
src_prepare() {
default
mv "${S}/test" "${S}_tests"
}
python_test() {
cd "${T}" || die
epytest "${S}_tests"
}
pkg_postinst() {
elog Some other packages could be installed to extend functionnality:
elog
elog - dev-python/scipy, to be more precise for arc lenght
elog - dev-python/pillow, to be able to load images
elog - dev-python/numpy, to do lightning fast linearization for Shapes
}