diff --git a/dev-python/dataclasses-json/Manifest b/dev-python/dataclasses-json/Manifest new file mode 100644 index 0000000000..e716fa408a --- /dev/null +++ b/dev-python/dataclasses-json/Manifest @@ -0,0 +1 @@ +DIST dataclasses-json-0.6.7.gh.tar.gz 77810 BLAKE2B 99b2d403cd65f77e908727d2cce66a693310eb86544a9f859cbf6cbac7c9946322c4fa99751a8d37c0fc110aabf9ced8b59235249d065335bb729987d2f4b47e SHA512 d9b85a6821904a9f48482ff20e496e4437ff6a7f00bc5acd49b0295cfb5bbec125199f0343950f1f9ba17261aa5e4984cde292b943a17ef330d70cfc47a4ce64 diff --git a/dev-python/dataclasses-json/dataclasses-json-0.6.7.ebuild b/dev-python/dataclasses-json/dataclasses-json-0.6.7.ebuild new file mode 100644 index 0000000000..e6a296a3be --- /dev/null +++ b/dev-python/dataclasses-json/dataclasses-json-0.6.7.ebuild @@ -0,0 +1,50 @@ +# 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="Easily serialize Data Classes to and from JSON" +HOMEPAGE=" + https://github.com/lidatong/dataclasses-json/ + https://pypi.org/project/dataclasses-json/ +" + +SRC_URI="https://github.com/lidatong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/marshmallow[${PYTHON_USEDEP}] + dev-python/typing-inspect[${PYTHON_USEDEP}] +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + ${DISTUTILS_DEPS} + ${PYTHON_DEPS} + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare(){ + default + sed -i \ + -e 's:0.0.0:'${PV}':' \ + -e 's:, ["]poetry-dynamic-versioning["]::' \ + -e 's:poetry_dynamic_versioning.backend:poetry.core.masonry.api:' \ + pyproject.toml || die +} diff --git a/dev-python/dataclasses-json/metadata.xml b/dev-python/dataclasses-json/metadata.xml new file mode 100644 index 0000000000..bdd7d88344 --- /dev/null +++ b/dev-python/dataclasses-json/metadata.xml @@ -0,0 +1,12 @@ + + + + + nicolas.parlant@parhuet.fr + Nicolas PARLANT + + + lidatong/dataclasses-json + dataclasses-json + + diff --git a/dev-python/json-schema-for-humans/Manifest b/dev-python/json-schema-for-humans/Manifest new file mode 100644 index 0000000000..7371bf6e58 --- /dev/null +++ b/dev-python/json-schema-for-humans/Manifest @@ -0,0 +1 @@ +DIST json-schema-for-humans-1.0.4.gh.tar.gz 872932 BLAKE2B 96f3d98f29868d13d4d9e219cba2ae62db1bb4f7e80b722f008d85e99fd6825997c83d6a9a0dd54f152892b350e1f95bb50bb83c5b3a1498565a4f4ff993ac37 SHA512 dee71568846fd29f332833834429d394625ca33d4e12069104e3bf9b26f1dcfaf50c4b1473284fc772606f09bca2861ff3046374f141aaf0c031f9bed6e9262d diff --git a/dev-python/json-schema-for-humans/json-schema-for-humans-1.0.4.ebuild b/dev-python/json-schema-for-humans/json-schema-for-humans-1.0.4.ebuild new file mode 100644 index 0000000000..57e7e2a152 --- /dev/null +++ b/dev-python/json-schema-for-humans/json-schema-for-humans-1.0.4.ebuild @@ -0,0 +1,57 @@ +# 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/coveoss/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} + app-text/htmlmin[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/dataclasses-json[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + dev-python/markdown2[${PYTHON_USEDEP}] + dev-python/markupsafe[${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 +} diff --git a/dev-python/json-schema-for-humans/metadata.xml b/dev-python/json-schema-for-humans/metadata.xml new file mode 100644 index 0000000000..6df693dac8 --- /dev/null +++ b/dev-python/json-schema-for-humans/metadata.xml @@ -0,0 +1,12 @@ + + + + + nicolas.parlant@parhuet.fr + Nicolas PARLANT + + + coveoss/json-schema-for-humans + json-schema-for-humans + +