dev-python/django-tables2 - 2.8.0 (gentoo)

Search

Package Information

Description:
Table/data-grid framework for Django
Homepage:
https://pypi.org/project/django-tables2/ https://github.com/jieter/django-tables2/
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
2.8.0 8 ~amd64 ~arm64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )

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
"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	>=dev-python/django-4.2[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		${RDEPEND}
		dev-python/django-filter[${PYTHON_USEDEP}]
		dev-python/lxml[${PYTHON_USEDEP}]
		dev-python/psycopg:*[${PYTHON_USEDEP}]
		dev-python/pytz[${PYTHON_USEDEP}]
	)
"

src_prepare() {
	# these tests require tablib
	rm tests/test_export.py tests/test_templatetags.py || die

	distutils-r1_src_prepare
}

python_test() {
	"${EPYTHON}" manage.py test -v 2 tests || die
}

USE Flags

Dependencies

RDEPEND

	>=dev-python/django-4.2[${PYTHON_USEDEP}]

BDEPEND

	test? (
		
	>=dev-python/django-4.2[${PYTHON_USEDEP}]

		dev-python/django-filter[${PYTHON_USEDEP}]
		dev-python/lxml[${PYTHON_USEDEP}]
		dev-python/psycopg:*[${PYTHON_USEDEP}]
		dev-python/pytz[${PYTHON_USEDEP}]
	)

Manifest for 2.8.0

Type File Size Source URLs
DIST django-tables2-2.8.0.gh.tar.gz 432933 bytes https://github.com/jieter/django-tables2/archive/v2.8.0.tar.gz