gentoo-ebuilds/sci-visualization/dash/dash-2.17.1.ebuild
Alfredo Tupone 89b3e7dd7e
sci-visualization/dash: add 2.17.1
Closes: https://bugs.gentoo.org/952701
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-03-27 21:56:21 +01:00

49 lines
1.2 KiB
Bash

# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Python framework for building ML & data science web apps"
HOMEPAGE="https://github.com/plotly/dash"
SRC_URI="https://github.com/plotly/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
https://dev.gentoo.org/~tupone/distfiles/${PN}-jupyterlab-${PV}.tgz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# Test need some packages not yet in the tree
# flask_talisman
# percy
# ...
RESTRICT="test"
RDEPEND="
dev-python/flask-compress[${PYTHON_USEDEP}]
dev-python/importlib-metadata[${PYTHON_USEDEP}]
dev-python/nest-asyncio[${PYTHON_USEDEP}]
dev-python/plotly[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/beautifulsoup4 )"
distutils_enable_tests pytest
src_prepare() {
mkdir dash/labextension/dist || die
# cd @plotly/dash-jupyterlab
# jlpm install
# jlpm build:pack
cp "${DISTDIR}"/${PN}-jupyterlab-${PV}.tgz \
dash/labextension/dist/${PN}-jupyterlab.tgz \
|| die
distutils-r1_src_prepare
}
python_install_all() {
distutils-r1_python_install_all
mv "${ED}"/usr/etc "${ED}"/etc || die
}