dev-python/openapi-schema-validator: New package, v0.2.3

Needed by openapi-spec-validator that is a new dependency
of dev-python/moto.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-05-24 08:15:31 +02:00
parent b3bc04ff73
commit 965af87a1e
3 changed files with 49 additions and 0 deletions
@@ -0,0 +1 @@
DIST openapi-schema-validator-0.2.3.gh.tar.gz 25501 BLAKE2B d961cabca647f59d4d4188f1941ce5b2475e02520bcc10e7cd29817c8ea8ebaaac5af1ffb0e3d5079ed2d1493414cdaf55336744b142385754585e748af8ac98 SHA512 e6dfe3d6cc99fa9723102ced42040203157639be68b0438d7bfae4499e51cdb6257a36dca10425a5d5e692cebb958468ebeee722116b99d800a6fcf972400c66
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
<upstream>
<remote-id type="github">p1c2u/openapi-schema-validator</remote-id>
<remote-id type="pypi">openapi-schema-validator</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,37 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( pypy3 python3_{8..11} )
inherit distutils-r1
DESCRIPTION="OpenAPI schema validation for Python"
HOMEPAGE="
https://github.com/p1c2u/openapi-schema-validator/
https://pypi.org/project/openapi-schema-validator/
"
SRC_URI="
https://github.com/p1c2u/openapi-schema-validator/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/isodate[${PYTHON_USEDEP}]
>=dev-python/jsonschema-4.0.0[${PYTHON_USEDEP}]
dev-python/rfc3339-validator[${PYTHON_USEDEP}]
dev-python/strict-rfc3339[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_prepare() {
sed -i -e '/--cov/d' pyproject.toml || die
distutils-r1_src_prepare
}