diff options
Diffstat (limited to 'app-misc/check-jsonschema/check-jsonschema-0.28.4-r1.ebuild')
-rw-r--r-- | app-misc/check-jsonschema/check-jsonschema-0.28.4-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/check-jsonschema/check-jsonschema-0.28.4-r1.ebuild b/app-misc/check-jsonschema/check-jsonschema-0.28.4-r1.ebuild new file mode 100644 index 000000000000..7bd7ebde5d74 --- /dev/null +++ b/app-misc/check-jsonschema/check-jsonschema-0.28.4-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +inherit optfeature distutils-r1 + +DESCRIPTION="A CLI and set of pre-commit hooks for jsonschema validation" +HOMEPAGE=" + https://pypi.org/project/check-jsonschema/ + https://github.com/python-jsonschema/check-jsonschema +" +SRC_URI="https://github.com/python-jsonschema/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +RDEPEND=" + >=dev-python/ruamel-yaml-0.18.6[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.5.1[${PYTHON_USEDEP}] + dev-python/regress[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/json5[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/responses-0.25.0[${PYTHON_USEDEP}] + ) +" + +DOCS=( + README.md + CONTRIBUTING.md + CHANGELOG.rst +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-issues \ + dev-python/furo + +python_prepare_all() { + # relax deps in setup.cfg + sed -r -e 's:([a-zA-Z.-]+)([<>]|==|[<>]=)+.+:\1: ; /importlib-resources/ d' -i setup.cfg || die + + distutils-r1_python_prepare_all +} + +pkg_postinst() { + optfeature "json5 support" dev-python/json5 +} |