summaryrefslogtreecommitdiff
path: root/dev-python/openapi-spec-validator
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/openapi-spec-validator')
-rw-r--r--dev-python/openapi-spec-validator/Manifest2
-rw-r--r--dev-python/openapi-spec-validator/openapi-spec-validator-0.8.5.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/openapi-spec-validator/Manifest b/dev-python/openapi-spec-validator/Manifest
index 987925de04f0..4cbee1de9613 100644
--- a/dev-python/openapi-spec-validator/Manifest
+++ b/dev-python/openapi-spec-validator/Manifest
@@ -3,3 +3,5 @@ DIST openapi_spec_validator-0.8.0.tar.gz 1744560 BLAKE2B 6ac56b686c0d11b657cae6b
DIST openapi_spec_validator-0.8.0.tar.gz.provenance 9722 BLAKE2B e867db7f88cf437f505f93399aa503d9f95a892ecbe724c81f108675635ff04209c51a02fa8b658f65e33cabfd9b3feb281b6afb573c355ac670d9e254235aec SHA512 5912574f9ac632011c7f8519730943af0e3fcef9ed7270a308192154ae47c0fa798d35e1f140429dffccc4ea66763d5fe1b96d2de8b111bc615661904d8e7807
DIST openapi_spec_validator-0.8.4.tar.gz 1756847 BLAKE2B 2f9684ecbbefce4dcabb547959d3c796d6280f8a470d0e33e4e1db75844969e6ac2e92f3ee23c33f1ff4b2520eeb3ed05d4186cd1049398c5950d5a2718bb546 SHA512 53582f62ac4438c754422f27b68aa83513d0ee845ed40451b293dcfbddc4267c9e2c0554af04e64a9046cf38072e7c2e7798639fb630f33ff153ce12e339755b
DIST openapi_spec_validator-0.8.4.tar.gz.provenance 10068 BLAKE2B 64981dfc9c5ca841cd1f625de30eac52f39ec3e32015cbb74e6607a6f7e3384e217dc30a76c6c36316f07b9911c62342091d98ee706334bc6c45e6349708bdfc SHA512 93aad020d63176749dd2455356deeea6524f98ae2a27186e3445f4121f139d0817caf8d6cab9862a00fcc7b1137181cdc40c31c10f887edc8f41f7393f536e06
+DIST openapi_spec_validator-0.8.5.tar.gz 1756845 BLAKE2B b9405997f5ca94645b02cce34663f4eb3c0b91eeb3e08e35c35b5aecbe76daf1dad91a8aafed9b1f03fe2d532cfe929146bbe85c030b4492f3b9ba47ddf7b1c3 SHA512 e1da428809c5ababe0ac58aee5ab7f0b93c9b5bb80fee4c711c9c22d8c413f3235d970f2b044b9a6df6890ee84f3c1d88148b0ef4cec970a093490a4e2c3744e
+DIST openapi_spec_validator-0.8.5.tar.gz.provenance 10149 BLAKE2B 62c9f653c4973377f2a922bf093506830a51410becabc7f431d95f849bdf267c3f71faefe28a484db7b30d3fd0b173e243f6b7a3624d1a3c87996e23f9b35933 SHA512 4d2bb2400872a8d657359eb2e23d78edf8d4c951ab8e326b357cef73ff5879b9d947f64fc2c22f196ec49fdb7fabd87bbfda88c2093611984c7d8ab85bf70a07
diff --git a/dev-python/openapi-spec-validator/openapi-spec-validator-0.8.5.ebuild b/dev-python/openapi-spec-validator/openapi-spec-validator-0.8.5.ebuild
new file mode 100644
index 000000000000..d46f644acf1f
--- /dev/null
+++ b/dev-python/openapi-spec-validator/openapi-spec-validator-0.8.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYPI_VERIFY_REPO=https://github.com/python-openapi/openapi-spec-validator
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator"
+HOMEPAGE="
+ https://github.com/python-openapi/openapi-spec-validator/
+ https://pypi.org/project/openapi-spec-validator/
+"
+
+LICENSE="BSD"
+SLOT="0"
+if [[ ${PV} != *_beta* ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+fi
+
+RDEPEND="
+ >=dev-python/jsonschema-4.24.0[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-path-0.4.3[${PYTHON_USEDEP}]
+ >=dev-python/lazy-object-proxy-1.7.1[${PYTHON_USEDEP}]
+ >=dev-python/openapi-schema-validator-0.7.3[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-settings-2.0.0[${PYTHON_USEDEP}]
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # Internet
+ tests/integration/test_shortcuts.py::TestPetstoreV2Example
+ tests/integration/test_shortcuts.py::TestApiV2WithExampe
+ tests/integration/test_shortcuts.py::TestPetstoreV2ExpandedExample
+ tests/integration/test_shortcuts.py::TestPetstoreExample
+ tests/integration/test_shortcuts.py::TestRemoteValidatev2SpecUrl
+ tests/integration/test_shortcuts.py::TestRemoteValidatev30SpecUrl
+ tests/integration/test_shortcuts.py::TestApiWithExample
+ tests/integration/test_shortcuts.py::TestPetstoreExpandedExample
+ tests/integration/test_validate.py::TestPetstoreExample
+ tests/integration/test_validate.py::TestApiWithExample
+ tests/integration/test_validate.py::TestPetstoreExpandedExample
+ tests/integration/validation/test_validators.py
+)
+
+src_prepare() {
+ sed -i -e '/--cov/d' pyproject.toml || die
+ # remove meaningless upper bounds
+ sed -i -e 's:,<[0-9.]*::' pyproject.toml || die
+ distutils-r1_src_prepare
+}