diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2025-04-29 13:03:30 +0200 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2025-04-29 13:08:30 +0200 |
| commit | 222bdce8c76a317773baf06786a18ef3982df01c (patch) | |
| tree | 24def9bdf53bcc23d2551e6b19d61b54b3af4668 /app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild | |
| parent | 4a274f17f0ae4ea865b8bd8e4cca61fac9cbb060 (diff) | |
| download | gentoo-222bdce8c76a317773baf06786a18ef3982df01c.tar.gz gentoo-222bdce8c76a317773baf06786a18ef3982df01c.tar.bz2 gentoo-222bdce8c76a317773baf06786a18ef3982df01c.zip | |
app-emacs/emacs-ipython-notebook: drop PYTHON_COMPAT 3_10; minor tweaks
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild')
| -rw-r--r-- | app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild b/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild new file mode 100644 index 000000000000..14ccb084bebd --- /dev/null +++ b/app-emacs/emacs-ipython-notebook/emacs-ipython-notebook-0.17.1_pre20230826-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: Check package version in "lisp/ein-pkg.el". +# NOTICE: File "lisp/ein-pkg.el" is needed by the "ein:dev-sys-info" function. + +EAPI=8 + +[[ "${PV}" == *20230826 ]] && COMMIT="998ba22660be2035cd23bed1555e47748c4da8a2" +PYTHON_COMPAT=( python3_{11..13} ) + +inherit elisp readme.gentoo-r1 python-single-r1 + +DESCRIPTION="Jupyter notebook client in Emacs" +HOMEPAGE="https://github.com/millejoh/emacs-ipython-notebook/" + +SRC_URI="https://github.com/millejoh/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-emacs/anaphora + app-emacs/dash + app-emacs/deferred + app-emacs/polymode + app-emacs/request + app-emacs/websocket + app-emacs/with-editor + $(python_gen_cond_dep ' + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/notebook[${PYTHON_USEDEP}] + dev-python/tornado[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + ${RDEPEND} + test? ( + app-emacs/mocker + ) +" + +DOCS=( README.rst thumbnail.png ) +DOC_CONTENTS="There may be problems with connecting to Jupyter Notebooks + because of the tokens, in that case you can try running \"jupyter + notebook\" with --NotebookApp.token=\"\" (and --NotebookApp.ip=127.0.0.1 to + limit connections only to local machine), but be warned that this can + compromise your system if used without caution! For reference check out + https://github.com/millejoh/emacs-ipython-notebook/issues/838" + +SITEFILE="50${PN}-gentoo.el" + +elisp-enable-tests ert-runner test + +pkg_setup() { + # * ACCESS DENIED: open_wr: ~/.config/python/jupyter/migrated + unset JUPYTER_CONFIG_DIR + + elisp_pkg_setup + python-single-r1_pkg_setup +} + +src_compile() { + local -x BYTECOMPFLAGS="-L lisp" + + elisp-compile ./lisp/*.el +} + +src_test() { + ert-runner -L lisp -L test -l test/testein.el \ + --reporter ert+duration test/test-ein*.el || die +} + +src_install() { + elisp-install ${PN} lisp/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + + readme.gentoo_create_doc +} |
