You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
2 years ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
2 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
2 years ago
|
PYTHON_COMPAT=( python3_{9..11} )
|
||
2 years ago
|
DISTUTILS_USE_PEP517=setuptools
|
||
|
|
||
2 years ago
|
inherit distutils-r1 pypi
|
||
2 years ago
|
|
||
|
DESCRIPTION="MathJax resources as a Jupyter Server Extension"
|
||
|
HOMEPAGE="
|
||
|
https://jupyter.org/
|
||
|
https://github.com/jupyter-server/jupyter_server_mathjax/
|
||
|
https://pypi.org/project/jupyter-server-mathjax/
|
||
|
"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
2 years ago
|
KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
|
||
2 years ago
|
|
||
|
RDEPEND="
|
||
2 years ago
|
>=dev-python/jupyter-server-1.1[${PYTHON_USEDEP}]
|
||
2 years ago
|
"
|
||
|
BDEPEND="
|
||
2 years ago
|
dev-python/jupyter-packaging[${PYTHON_USEDEP}]
|
||
2 years ago
|
test? (
|
||
|
dev-python/pytest-tornasync[${PYTHON_USEDEP}]
|
||
2 years ago
|
dev-python/pytest-jupyter[${PYTHON_USEDEP}]
|
||
2 years ago
|
)
|
||
|
"
|
||
|
|
||
|
distutils_enable_tests pytest
|
||
|
|
||
|
python_prepare_all() {
|
||
|
# Don't try (and fail) to fetch things from the internet with npm
|
||
|
# https://bugs.gentoo.org/820317
|
||
|
sed -i -e '/cmdclass=cmdclass/d' setup.py || die
|
||
|
|
||
|
distutils-r1_python_prepare_all
|
||
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
distutils-r1_python_install_all
|
||
|
mv "${ED}/usr/etc" "${ED}/etc" || die
|
||
|
}
|