1 |
commit: 2ebd88ded5c027af00861839fe8be35a825fa43f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:47:52 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:59:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ebd88de |
7 |
|
8 |
dev-python/djangorestframework: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../djangorestframework-3.13.1-r1.ebuild | 41 ++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/djangorestframework/djangorestframework-3.13.1-r1.ebuild b/dev-python/djangorestframework/djangorestframework-3.13.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..c5a6e18e9304 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/djangorestframework/djangorestframework-3.13.1-r1.ebuild |
20 |
@@ -0,0 +1,41 @@ |
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 |
+MY_P=django-rest-framework-${PV} |
32 |
+DESCRIPTION="Web APIs with django made easy" |
33 |
+HOMEPAGE="https://www.django-rest-framework.org/" |
34 |
+SRC_URI=" |
35 |
+ https://github.com/encode/django-rest-framework/archive/${PV}.tar.gz |
36 |
+ -> ${MY_P}.gh.tar.gz |
37 |
+" |
38 |
+S=${WORKDIR}/${MY_P} |
39 |
+ |
40 |
+LICENSE="BSD" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ >=dev-python/django-2.2[${PYTHON_USEDEP}] |
46 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
47 |
+" |
48 |
+BDEPEND=" |
49 |
+ test? ( |
50 |
+ dev-python/coreapi[${PYTHON_USEDEP}] |
51 |
+ dev-python/coreschema[${PYTHON_USEDEP}] |
52 |
+ dev-python/pytest-django[${PYTHON_USEDEP}] |
53 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
+EPYTEST_DESELECT=( |
60 |
+ tests/test_description.py::TestViewNamesAndDescriptions::test_markdown |
61 |
+) |