Files
guru/dev-python/json-schema-for-humans/json-schema-for-humans-1.3.4.ebuild
Nicolas PARLANT c8e870f8b8 dev-python/json-schema-for-humans: add 1.3.4
update deps :
* removed markupsafe / htmlmin

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
2024-12-06 20:45:50 +00:00

56 lines
1.5 KiB
Bash

# 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_{10..12} )
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'
)
epytest
}