diff --git a/dev-python/json-schema-for-humans/Manifest b/dev-python/json-schema-for-humans/Manifest index 774b4a406f..552963cd75 100644 --- a/dev-python/json-schema-for-humans/Manifest +++ b/dev-python/json-schema-for-humans/Manifest @@ -1 +1,2 @@ DIST json-schema-for-humans-1.3.4.gh.tar.gz 864919 BLAKE2B 5e70e1bcf08bc449d7a4948b9828eb825c2ab126dc6fe4c71c5b70f18f3961e55a45b9346d4d10169d42ef6dde728b042ca04669101482c9dc619a183ff6ed3c SHA512 fe9b0fb7ae9d9659d6d717ad5e21cd5605133a8fad3ec9448512b77156f9a4624c580eaa50469364fd2eb15f2b4d0a950d66f006641bbdfec21c3658554aaa75 +DIST json-schema-for-humans-1.4.1.gh.tar.gz 865045 BLAKE2B e40329657743ec38b0a9eabc97f90b81774208f1c975aeed9cc07c43e7e3ce70843a2e36e0dff19c39987f3bb7535f7f881fac6b3053479e1c0a7d16ae260eb2 SHA512 313f329e8451eb66170083beef1207112b984b233a3c83d46a9a15ad2251ceae91cbe0b69534d063e82d63dd1851ec9417e78706f1138bbb14a4ee1e7bee781d diff --git a/dev-python/json-schema-for-humans/json-schema-for-humans-1.4.1.ebuild b/dev-python/json-schema-for-humans/json-schema-for-humans-1.4.1.ebuild new file mode 100644 index 0000000000..c57f30ca9d --- /dev/null +++ b/dev-python/json-schema-for-humans/json-schema-for-humans-1.4.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="Quickly generate HTML documentation from a JSON schema " +HOMEPAGE=" + https://github.com/coveooss/json-schema-for-humans/ + https://pypi.org/project/json-schema-for-humans/ +" +SRC_URI="https://github.com/coveooss/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/click[${PYTHON_USEDEP}] + dev-python/dataclasses-json[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + dev-python/markdown2[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + ${DISTUTILS_DEPS} + ${PYTHON_DEPS} + test? ( dev-python/beautifulsoup4[${PYTHON_USEDEP}] ) +" + +distutils_enable_tests pytest + +python_test(){ + local EPYTEST_DESELECT=( + # tests with network + 'tests/generate_test.py::test_references_url' + 'tests/test_md_generate.py::TestMdGenerate::test_basic[True-True-references_url' + 'tests/test_md_generate.py::TestMdGenerate::test_basic[True-False-references_url' + 'tests/test_md_generate.py::TestMdGenerate::test_basic[False-True-references_url' + 'tests/test_md_generate.py::TestMdGenerate::test_basic[False-False-references_url' + # tests with error when passed + 'tests/cli_test.py::test_config_parameters_with_nonexistent_output_path' + 'tests/cli_test.py::test_nonexistent_output_path' + ) + epytest +}