commit:     89b3e7dd7e5cb30b5ca532b7c081f4b6fca63cc5
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 20:56:21 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 20:56:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89b3e7dd

sci-visualization/dash: add 2.17.1

Closes: https://bugs.gentoo.org/952701
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-visualization/dash/Manifest           |  2 ++
 sci-visualization/dash/dash-2.17.1.ebuild | 49 +++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/sci-visualization/dash/Manifest b/sci-visualization/dash/Manifest
index 843ae3f81701..57913054b82d 100644
--- a/sci-visualization/dash/Manifest
+++ b/sci-visualization/dash/Manifest
@@ -1,2 +1,4 @@
 DIST dash-2.16.1.tar.gz 24137908 BLAKE2B 
3bb8491f93503a0c6fe89f39e65b565f319914a9dc434048829bdb59d76278185bacf71b1f836863639e3e620bf11f0131c1bf0a89b7712bcdba685ff07131f7
 SHA512 
468460154fd149ae072e724bd0f95dc3835c6619072068366c57adc59aba86fae614a91a5ec7721ce5fb0c766d2053c18822fa855857b7d82d8b8c0ba753e6a8
+DIST dash-2.17.1.tar.gz 21424807 BLAKE2B 
47f78005023fc9a24da18b5380ac216731a85385420f8baa2230d92eb16cea985c67e5fe009b3fa394f5b2cad52240321a81b75404887895a4caa84f05141e2f
 SHA512 
b7789750591c3a8387bba270b357f15ea49ee950beb4b86da2185627610f3dc1ca12ae9bc413ed702dddda50eb1cdc43cfd355d676b25bb6728e45b1b997981e
 DIST dash-jupyterlab-2.16.1.tgz 2264 BLAKE2B 
ff0d58422d94a2bd92fc8c84963691e02deea4f194d83024e6ad51a9dc0684d23771574c8ab5a512c991b71cf4176c1388209cedc42f3dc4b706b90db37d7c34
 SHA512 
6774e010bec5e2da449e42eed27e0853c4827f9286b1747785f41d96d8d4f868b6e5f3042b679ce0c3ba57d8b440e867157c1752548d485b0e62be8f78f536d7
+DIST dash-jupyterlab-2.17.1.tgz 2264 BLAKE2B 
ff0d58422d94a2bd92fc8c84963691e02deea4f194d83024e6ad51a9dc0684d23771574c8ab5a512c991b71cf4176c1388209cedc42f3dc4b706b90db37d7c34
 SHA512 
6774e010bec5e2da449e42eed27e0853c4827f9286b1747785f41d96d8d4f868b6e5f3042b679ce0c3ba57d8b440e867157c1752548d485b0e62be8f78f536d7

diff --git a/sci-visualization/dash/dash-2.17.1.ebuild 
b/sci-visualization/dash/dash-2.17.1.ebuild
new file mode 100644
index 000000000000..df9b3606a39e
--- /dev/null
+++ b/sci-visualization/dash/dash-2.17.1.ebuild
@@ -0,0 +1,49 @@
+# 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
+}

Reply via email to