summaryrefslogtreecommitdiff
path: root/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-17 05:31:48 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-17 05:33:27 +0200
commite22b017059ca732feeed5c265f5175614eb5a50d (patch)
tree5f7749cfb4f882cc29dc2bbb7dce8f8deb9eca05 /dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild
parentf53832bad811ccf13a5b2154a8e7afd3eaf958c9 (diff)
downloadgentoo-e22b017059ca732feeed5c265f5175614eb5a50d.tar.gz
gentoo-e22b017059ca732feeed5c265f5175614eb5a50d.tar.bz2
gentoo-e22b017059ca732feeed5c265f5175614eb5a50d.zip
dev-python/django-debug-toolbar: Bump to 4.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild')
-rw-r--r--dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild
new file mode 100644
index 000000000000..2fbcb24e5a3a
--- /dev/null
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="A configurable set of panels that display various debug information"
+HOMEPAGE="
+ https://github.com/jazzband/django-debug-toolbar/
+ https://pypi.org/project/django-debug-toolbar/
+"
+# no tests in sdist, as of 4.0.0
+SRC_URI="
+ https://github.com/jazzband/django-debug-toolbar/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/django[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ "${EPYTHON}" -m django test -v 2 --settings tests.settings \
+ || die "Tests failed with ${EPYTHON}"
+}