# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 git-r3 DESCRIPTION="Sane and flexible OpenAPI 3 schema generation for Django REST framework" HOMEPAGE="https://github.com/tfranzel/drf-spectacular" EGIT_REPO_URI="https://github.com/tfranzel/${PN}.git" LICENSE="BSD" SLOT="0" RDEPEND="dev-python/django[${PYTHON_USEDEP}] dev-python/djangorestframework[${PYTHON_USEDEP}] dev-python/inflection[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/uritemplate[${PYTHON_USEDEP}]" BDEPEND="test? ( dev-python/django-filter[${PYTHON_USEDEP}] dev-python/django-oauth-toolkit[${PYTHON_USEDEP}] dev-python/django-rest-knox[${PYTHON_USEDEP}] dev-python/djangorestframework-camel-case[${PYTHON_USEDEP}] dev-python/djangorestframework-dataclasses[${PYTHON_USEDEP}] dev-python/djangorestframework-gis[${PYTHON_USEDEP}] dev-python/djangorestframework-recursive[${PYTHON_USEDEP}] dev-python/djangorestframework-simplejwt[${PYTHON_USEDEP}] dev-python/drf-nested-routers[${PYTHON_USEDEP}] dev-python/drf-spectacular-sidecar[${PYTHON_USEDEP}] dev-python/psycopg:2[${PYTHON_USEDEP}] sci-libs/gdal sci-libs/geos )" EPYTEST_PLUGINS=( pytest-django ) distutils_enable_tests pytest EPYTEST_DESELECT=( # AssertionError tests/contrib/test_rest_polymorphic.py::test_rest_polymorphic tests/contrib/test_rest_polymorphic.py::test_rest_polymorphic_split_request_with_ro_serializer )