1 |
commit: e82ea9867321af24d1c16e02dd04b5202999780f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:45:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:59:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82ea986 |
7 |
|
8 |
dev-python/django-debug-toolbar: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../django-debug-toolbar-3.2.4-r1.ebuild | 50 ++++++++++++++++++++++ |
13 |
1 file changed, 50 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.4-r1.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..415fa5669079 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.4-r1.ebuild |
20 |
@@ -0,0 +1,50 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="A configurable set of panels that display debug information" |
32 |
+HOMEPAGE=" |
33 |
+ https://pypi.org/project/django-debug-toolbar/ |
34 |
+ https://github.com/jazzband/django-debug-toolbar/" |
35 |
+SRC_URI=" |
36 |
+ https://github.com/jazzband/django-debug-toolbar/archive/${PV}.tar.gz |
37 |
+ -> ${P}.tar.gz" |
38 |
+ |
39 |
+SLOT="0" |
40 |
+LICENSE="BSD" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="doc examples test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ >=dev-python/django-1.11[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/sqlparse-0.2.0[${PYTHON_USEDEP}] |
48 |
+" |
49 |
+DEPEND=" |
50 |
+ test? ( |
51 |
+ $(python_gen_impl_dep sqlite) |
52 |
+ ${RDEPEND} |
53 |
+ ) |
54 |
+" |
55 |
+ |
56 |
+distutils_enable_sphinx docs |
57 |
+ |
58 |
+python_test() { |
59 |
+ emake TEST_ARGS='-v 2 tests' test |
60 |
+} |
61 |
+ |
62 |
+python_install_all() { |
63 |
+ if use examples; then |
64 |
+ docinto examples |
65 |
+ dodoc -r example/. |
66 |
+ docompress -x /usr/share/doc/${PF}/examples |
67 |
+ fi |
68 |
+ |
69 |
+ distutils-r1_python_install_all |
70 |
+} |