2024-08-22 01:40:55 +02:00
|
|
|
# Copyright 2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2024-08-22 02:34:58 +02:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2024-08-22 02:23:44 +02:00
|
|
|
PYTHON_COMPAT=( python3_{10..11} )
|
2024-08-22 01:40:55 +02:00
|
|
|
inherit distutils-r1 pypi
|
|
|
|
|
|
|
|
DESCRIPTION="Graphene Django integration"
|
|
|
|
HOMEPAGE="https://pypi.org/project/graphene-django/"
|
|
|
|
SRC_URI="$(pypi_sdist_url --no-normalize)"
|
|
|
|
|
2024-08-22 01:57:50 +02:00
|
|
|
S="${WORKDIR}/${P/_/-}"
|
2024-08-22 01:40:55 +02:00
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
|
|
|
DEPEND="
|
2024-08-22 02:22:03 +02:00
|
|
|
>=dev-python/graphene-3.0[${PYTHON_USEDEP}]
|
|
|
|
<dev-python/graphene-4
|
|
|
|
>=dev-python/graphql-core-3.1.0[${PYTHON_USEDEP}]
|
|
|
|
<dev-python/graphql-core-4
|
|
|
|
>=dev-python/graphql-relay-3.1.1[${PYTHON_USEDEP}]
|
|
|
|
<dev-python/graphql-relay-4
|
|
|
|
>=dev-python/django-3.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/promise-2.1[${PYTHON_USEDEP}]
|
|
|
|
dev-python/text-unidecode[${PYTHON_USEDEP}]
|
2024-08-22 01:40:55 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
2024-08-22 02:07:57 +02:00
|
|
|
BDEPEND="
|
|
|
|
test? (
|
|
|
|
dev-python/inflection[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest-django[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
2024-08-22 02:34:58 +02:00
|
|
|
|
|
|
|
python_prepare_all() {
|
|
|
|
sed -i '/pytest-runner/d' setup.py || die "prepare sed failed"
|
|
|
|
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|