blob: 70d88fb87505796ed6621ec943a350de351cf7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..14} )
inherit distutils-r1
DESCRIPTION="Bootstrap3 template pack for django-crispy-forms"
HOMEPAGE="
https://github.com/django-crispy-forms/crispy-bootstrap3/
https://pypi.org/project/crispy-bootstrap3/
"
SRC_URI="
https://github.com/django-crispy-forms/crispy-bootstrap3/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
>=dev-python/django-5.2[${PYTHON_USEDEP}]
>=dev-python/django-crispy-forms-2.0[${PYTHON_USEDEP}]
"
PATCHES=( "${FILESDIR}"/${P}-django52Py.patch )
python_prepare_all() {
pushd tests/results/bootstrap3/test_form_helper 2>/dev/null
cp bootstrap_form_show_errors_bs3_true_gte5{0,2}.html || die
cp bootstrap_form_show_errors_bs3_false_gte5{0,2}.html || die
cp test_form_show_errors_non_field_errors_true_gte5{0,2}.html || die
cp test_form_show_errors_non_field_errors_false_gte5{0,2}.html || die
popd
eapply "${FILESDIR}"/${P}-django52.patch
distutils-r1_python_prepare_all
}
EPYTEST_PLUGINS=( pytest-django )
distutils_enable_tests pytest
|