gentoo/dev-python/django-tables2/django-tables2-2.4.1.ebuild
Jakov Smolić 8d8b4097cc
dev-python/django-tables2: Keyword 2.4.1 x86, #839930
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
2022-04-24 15:26:41 +02:00

53 lines
1.1 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Table/data-grid framework for Django"
HOMEPAGE="
https://pypi.org/project/django-tables2/
https://github.com/jieter/django-tables2/
"
SRC_URI="
https://github.com/jieter/django-tables2/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
SLOT="0"
LICENSE="BSD-2"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/django-1.11[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
${RDEPEND}
dev-python/django-filter[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/psycopg:2[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
)
"
src_prepare() {
# these tests require tablib
rm tests/test_export.py tests/test_templatetags.py || die
# these tests require fudge
rm tests/test_config.py || die
distutils-r1_src_prepare
}
python_test() {
"${EPYTHON}" manage.py test -v 2 tests || die
}