tkurbad-overlay/dev-python/flask-restx/flask-restx-1.1.0.ebuild

51 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2021-02-03 12:27:54 +01:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
2023-07-03 11:36:29 +02:00
EAPI=8
PYTHON_COMPAT=( python3_{9..12} )
DISTUTILS_USE_PEP517=setuptools
2021-02-03 12:27:54 +01:00
inherit distutils-r1
DESCRIPTION="Fully featured framework for fast, easy and documented API development with Flask"
HOMEPAGE="https://github.com/python-restx/flask-restx"
SRC_URI="https://github.com/python-restx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc examples test"
RDEPEND="
>=dev-python/aniso8601-4.0.1[${PYTHON_USEDEP}]
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
2023-07-03 11:36:29 +02:00
dev-python/werkzeug[${PYTHON_USEDEP}]
2021-02-03 12:27:54 +01:00
"
DEPEND="${RDEPEND}
doc? (
~dev-python/alabaster-0.7.12[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
~dev-python/sphinx-issues-1.2.0[${PYTHON_USEDEP}]
)
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/rednose[${PYTHON_USEDEP}]
dev-python/blinker[${PYTHON_USEDEP}]
dev-python/tzlocal[${PYTHON_USEDEP}]
)
"
src_prepare() {
use test || rm -rf "${S}"/tests
distutils-r1_src_prepare
}
python_test() {
nosetests -v || die "Tests fail with ${EPYTHON}"
rm -rf "${BUILD_DIR}"/../tests/ || die
}