summaryrefslogtreecommitdiff
path: root/dev-python/crispy-bootstrap4
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/crispy-bootstrap4')
-rw-r--r--dev-python/crispy-bootstrap4/Manifest4
-rw-r--r--dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild25
-rw-r--r--dev-python/crispy-bootstrap4/files/crispy-bootstrap4-2022.1-test.patch17
-rw-r--r--dev-python/crispy-bootstrap4/metadata.xml12
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/crispy-bootstrap4/Manifest b/dev-python/crispy-bootstrap4/Manifest
new file mode 100644
index 000000000000..0ae075e3e1e6
--- /dev/null
+++ b/dev-python/crispy-bootstrap4/Manifest
@@ -0,0 +1,4 @@
+AUX crispy-bootstrap4-2022.1-test.patch 573 BLAKE2B ecc43c8679fdca3fde8f9a8a15015748211aa4ea83fbec064fd5a5c0119ec9e923dc9df15b2f1c98b89f2087ea2b84c1420af641001e9406a41db2220f4d0880 SHA512 bff60cd807c321f8d932748cf01db9615bc1c2e939eff3c0b1667a33fea65fb035c405595c346f2546203e4e24cd9aee0e2e9c152e2592930ab98a3cb6056477
+DIST crispy-bootstrap4-2022.1.gh.tar.gz 30814 BLAKE2B 573847b614b5f6cf71fea6ed6831eeef48ac01b2c2db07653d600b5b0829209188d235a143585ed4fabb663264aff3b5f7a416d99d12a8e268d4c62edaf3db84 SHA512 7f1e5443229274de2aaf28bd63507bbe5dff7923f27509801ea9de9246fa393bfc4563a4aa6d586a1e642b87bb7dddcb3ad3403653912c0197f8638141c42229
+EBUILD crispy-bootstrap4-2022.1.ebuild 603 BLAKE2B 4982be623b3c2947b6da596c861512f60ef81f713b6928ea8fbf1f526d20617491328f89a61ca2f7d872358846b3024e0b2ab642ff23b112459bde87c3d734f5 SHA512 94b5164d35d850bda240175dc88314e8fe393efec5298732bc9e0a0a9a144cbd60ea50c05c98fb43bd87ce7d1587b359ddc990ab7704982746821724226df341
+MISC metadata.xml 405 BLAKE2B ec5d0537b699db8dd80bde37a759e754e8bc9c96c514cc8e24b43534c68dfcc44e44e219eec4912d8bd42184c92b866c19eb68da24e4ef780f821a2d855c3c79 SHA512 0398280620b4f7fe239e3ded58d04a14ae7a7c3b6597c496277d923d52ae7ce3600c0509e1c9a8187aeb0f2c012a4f7088308fe15eef6649406c09e893b66da0
diff --git a/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild b/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild
new file mode 100644
index 000000000000..c4ec3ed11b1c
--- /dev/null
+++ b/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="Bootstrap3 template pack for django-crispy-forms"
+HOMEPAGE="
+ https://pypi.org/project/crispy-bootstrap3/
+"
+SRC_URI="https://github.com/django-crispy-forms/${PN}/archive/refs/tags/${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/django-crispy-forms[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
diff --git a/dev-python/crispy-bootstrap4/files/crispy-bootstrap4-2022.1-test.patch b/dev-python/crispy-bootstrap4/files/crispy-bootstrap4-2022.1-test.patch
new file mode 100644
index 000000000000..1432235e3b56
--- /dev/null
+++ b/dev-python/crispy-bootstrap4/files/crispy-bootstrap4-2022.1-test.patch
@@ -0,0 +1,17 @@
+--- a/tests/test_form_helper.py 2023-04-01 18:48:25.847263389 +0200
++++ b/tests/test_form_helper.py 2023-04-01 18:48:38.817091994 +0200
+@@ -633,14 +633,6 @@
+ assert '<div class="form-group row">' not in html
+
+
+-def test_template_pack_bs4():
+- form = SampleForm()
+- form.helper = FormHelper()
+- form.helper.template_pack = "bootstrap3"
+- html = render_crispy_form(form)
+- assert "controls" in html # controls is bootstrap3 only
+-
+-
+ def test_passthrough_context():
+ """
+ Test to ensure that context is passed through implicitly from outside of
diff --git a/dev-python/crispy-bootstrap4/metadata.xml b/dev-python/crispy-bootstrap4/metadata.xml
new file mode 100644
index 000000000000..d64ea15e9cf2
--- /dev/null
+++ b/dev-python/crispy-bootstrap4/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">crispy-bootstrap4</remote-id>
+ <remote-id type="github">django-crispy-forms/crispy-bootstrap4</remote-id>
+ </upstream>
+</pkgmetadata>