1 |
commit: 0d37fe3a319ece0f50af0999c01568d6a659558a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:44:02 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:59:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d37fe3a |
7 |
|
8 |
dev-python/django-cors-headers: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../django-cors-headers-3.10.1-r1.ebuild | 30 ++++++++++++++++++++++ |
13 |
1 file changed, 30 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/django-cors-headers/django-cors-headers-3.10.1-r1.ebuild b/dev-python/django-cors-headers/django-cors-headers-3.10.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..2c4e48a4ed9f |
18 |
--- /dev/null |
19 |
+++ b/dev-python/django-cors-headers/django-cors-headers-3.10.1-r1.ebuild |
20 |
@@ -0,0 +1,30 @@ |
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="Django App that adds CORS (Cross-Origin Resource Sharing) headers to responses" |
32 |
+HOMEPAGE="https://github.com/adamchainz/django-cors-headers" |
33 |
+SRC_URI=" |
34 |
+ https://github.com/adamchainz/django-cors-headers/archive/${PV}.tar.gz |
35 |
+ -> ${P}.gh.tar.gz" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ >=dev-python/django-2.2[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+BDEPEND=" |
45 |
+ test? ( |
46 |
+ dev-python/pytest-django[${PYTHON_USEDEP}] |
47 |
+ ) |
48 |
+" |
49 |
+ |
50 |
+distutils_enable_tests pytest |