mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
Closes: https://github.com/gentoo/gentoo/pull/14246 Signed-off-by: Michał Górny <mgorny@gentoo.org>
34 lines
816 B
Bash
34 lines
816 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( pypy3 python3_{6,7} )
|
|
|
|
inherit distutils-r1
|
|
|
|
MY_COMMIT="510ad833106134711868653fb597bf75ea8ac34f"
|
|
|
|
DESCRIPTION="Pagination support for flask"
|
|
HOMEPAGE="https://flask-paginate.readthedocs.io"
|
|
# https://github.com/lixxu/flask-paginate/issues/68
|
|
SRC_URI="https://github.com/lixxu/flask-paginate/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="dev-python/flask[${PYTHON_USEDEP}]"
|
|
BDEPEND="
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
|
"
|
|
|
|
S="${WORKDIR}/${PN}-${MY_COMMIT}"
|
|
|
|
python_test() {
|
|
pytest -vv tests/tests.py || die "tests failed with ${EPYTHON}"
|
|
}
|