diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-05 13:19:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-05 13:19:37 +0100 |
commit | d03ec6c0e9c1683a824ce77667440dcb4a13974e (patch) | |
tree | a6d1dcba1ebf79b5ab9a81588f2e3dd4ca16cb57 /dev-python/nbconvert | |
parent | 315f94518df5e89b0990f56d7200f52d67aeec51 (diff) |
gentoo auto-resync : 05:10:2022 - 13:19:37
Diffstat (limited to 'dev-python/nbconvert')
-rw-r--r-- | dev-python/nbconvert/Manifest | 2 | ||||
-rw-r--r-- | dev-python/nbconvert/nbconvert-7.1.0.ebuild | 92 |
2 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest index 973afb4f07b3..7601504c56cc 100644 --- a/dev-python/nbconvert/Manifest +++ b/dev-python/nbconvert/Manifest @@ -3,9 +3,11 @@ DIST nbconvert-6.5.0.tar.gz 908377 BLAKE2B a91c6c93e9e33f90c5c7f19743e20aa6cf88e DIST nbconvert-6.5.2.tar.gz 910454 BLAKE2B 0c80232697e1ecf31af17f10ae5ad9bcfaec89e06ab5f81c87f231f2abd585c23977d0b154363e72f6066a97d04ec96184b0d8325e5aaa399a1a9335109577bb SHA512 b955bd55bc1f69700652faae12a585230d939877551f792eebee57936a293b9b54caff5eb1bcaf996efa38c737f141069d4af2c2959b8b6318966c9020e8a2f5 DIST nbconvert-6.5.3.tar.gz 910597 BLAKE2B a6336f2227098caf1d59aafa770fc3dd3466160329d5344dc760425cdde7ca35ad8d1e8839fe3189d1623a682a61ea3feedb7fdfdb2ec349e6ec890d873a936a SHA512 a991d8a66fe7a244d3943974d93eb13769016843d37f6c9dcf4ba84dd16511364f45b5020060bf2c10d35fe52b4df4b678d045eedc883d3156a6cb689a977525 DIST nbconvert-7.0.0.tar.gz 860724 BLAKE2B f333145df45f7295259e964f50a68ab6c33f195c42f68deddc87d23348761cc816e9bfbe4552b2a0276ca28a9f0820183f118b531cdb1f1f8ca4355dc5486f3d SHA512 3c458a757060f1c9165c5ae7f0b5aad53be29d50ac385a37567007a5ac4fe67987592c66ba048e3659d089e9ac1ef210f14b750b5215bc181197c86257223b85 +DIST nbconvert-7.1.0.tar.gz 816516 BLAKE2B c24766716212247dee90ca91a5dbcc65ae2d47b566029eb04e14e65ef94e16f6d7700ea4cc820584bc3b498553196bb5600151a30378ec82f91bf4dde68a5e77 SHA512 5d6e1c09637765e171336528219669a9279a68f3845cb0503b79129b50550f7b5a08526a30de67da6ca132ee5d911743c5afd46773598d6045f3007167f93d5b EBUILD nbconvert-6.5.0-r1.ebuild 2129 BLAKE2B ee8ab38a79cd1275a36980bd510fd19f1597a97bf2e54ef58e098747830a5d24b2b2026f312e5d29cb481667ee4b3850491f53732b558c64174eccd40d856012 SHA512 4e1ccc1b1a6a37c5262fb9990e33dfe5f5e2a5d5ef828f989d9cb6c7984a86603ca66759e7c6c4143cfa06f68d3c6a285328e1f150b9370de673b788b6865fe3 EBUILD nbconvert-6.5.0-r2.ebuild 2163 BLAKE2B de6c81ff2617bf62ae15d8ba7da027a7c2d2f58595fe44b55de71fe745cc3884f6eeb2c070285212f62b9566a2ad4d5e1ec4b97ca27287bd282fc17d5536de73 SHA512 ace789a8133d2a56b9b8a6d4513d4e5cc1d16abf8b4b47353564f4bbc7f2e181cef22ffad2d6cd80e164560af471e13524215b6a29ae2159709d3f1a490abe22 EBUILD nbconvert-6.5.2.ebuild 2209 BLAKE2B 89790d82001825a5a148dfb098ef9186e6c1f253ef06d1aa5eb81481fe7b7b40fcdd930a67ec197a20bf45a9ad08e46784648bd8d51bf72040939b3d1f697be5 SHA512 d29f32603ff6cac24aaaa327d5e6162a5040d856c3cd90fcb5d0d47fc4944a3ddedf65654e990ec0a932b568906887e2d9660b922c37ee9fd69d9afd7086bdd0 EBUILD nbconvert-6.5.3.ebuild 2209 BLAKE2B 89790d82001825a5a148dfb098ef9186e6c1f253ef06d1aa5eb81481fe7b7b40fcdd930a67ec197a20bf45a9ad08e46784648bd8d51bf72040939b3d1f697be5 SHA512 d29f32603ff6cac24aaaa327d5e6162a5040d856c3cd90fcb5d0d47fc4944a3ddedf65654e990ec0a932b568906887e2d9660b922c37ee9fd69d9afd7086bdd0 EBUILD nbconvert-7.0.0.ebuild 2749 BLAKE2B 98617950e2c60b91d8d9942887f72200ba5e3453e2d9af80e8cf4e1b8ba888bc00e141650826415fa09b0dd3fafecadcdb6cc6640aced93c9e701f7218a8c586 SHA512 4b1d90c5dd6fd3b5b2db1c2256c809fb6b7044f9847b98199b6efe8e6271a4264e811ec3d420cbe371d727e332d30f7806b804197a89838d03b7b95d88097a0d +EBUILD nbconvert-7.1.0.ebuild 2711 BLAKE2B 03dac7df26c570e3003be9ca7afed4a1b036921683822b35cf289a65729b5e72d6e35fe516105ed926f719617085d7f6db45c671a538c0ea07e6aa30ace423bc SHA512 dd76f96a22a17e5780d0fbef8ae403ddd9b9c4930854f33be3e0a60ea3fb9c313f9a7ab1bbafaf9c01e0bb077309a8efe4e41c52502be96850183895c48fa730 MISC metadata.xml 527 BLAKE2B a915103b3eaf57236f4257c98354a1e3733771369ac825fa8bbc4f79f0d1a23272dc86e744513620fbee37792e813a15dbb955e633a7c57597c3c38657ed05d3 SHA512 b60a311ce52915dbc12addd4a882670ac96ff8b3be2aa651eaac3d0963d6e73a72eaafd53f90fb685599504857e6bcd0568071962d7696c2605462b77260ad6a diff --git a/dev-python/nbconvert/nbconvert-7.1.0.ebuild b/dev-python/nbconvert/nbconvert-7.1.0.ebuild new file mode 100644 index 000000000000..eb24c46391ff --- /dev/null +++ b/dev-python/nbconvert/nbconvert-7.1.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Converting Jupyter Notebooks" +HOMEPAGE=" + https://nbconvert.readthedocs.io/ + https://github.com/jupyter/nbconvert/ + https://pypi.org/project/nbconvert/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/defusedxml[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-3.6[${PYTHON_USEDEP}] + ' 3.8 3.9) + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/jupyter_core-4.7[${PYTHON_USEDEP}] + dev-python/jupyterlab_pygments[${PYTHON_USEDEP}] + >=dev-python/markupsafe-2.0[${PYTHON_USEDEP}] + >=dev-python/mistune-2.0.2[${PYTHON_USEDEP}] + >=dev-python/nbclient-0.5.0[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.1[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.1[${PYTHON_USEDEP}] + dev-python/tinycss2[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/notebook[${PYTHON_USEDEP}] + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + >=dev-python/ipywidgets-7[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + mkdir share/templates/classic/static || die + # tries to refetch stuff even if it's already present + sed -e 's:css = .*:raise PermissionError("You shall not fetch!"):' \ + -i hatch_build.py || die + distutils-r1_src_prepare +} + +python_configure() { + cp "${BROOT}$(python_get_sitedir)/notebook/static/style/style.min.css" \ + share/templates/classic/static/style.css || die +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # Missing pyppeteer for now + # TODO: Doesn't skip? + nbconvert/exporters/tests/test_webpdf.py + # Needs pyppeteer too + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium' + # TODO + nbconvert/exporters/tests/test_qtpng.py::TestQtPNGExporter::test_export + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor + ) + + nonfatal epytest --pyargs nbconvert || die +} + +pkg_postinst() { + if ! has_version app-text/pandoc ; then + einfo "Pandoc is required for converting to formats other than Python," + einfo "HTML, and Markdown. If you need this functionality, install" + einfo "app-text/pandoc." + fi +} |