commit:     0d37fe3a319ece0f50af0999c01568d6a659558a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 26 17:44:02 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 26 17:59:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d37fe3a

dev-python/django-cors-headers: Migrate to PEP517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../django-cors-headers-3.10.1-r1.ebuild           | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

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
new file mode 100644
index 000000000000..2c4e48a4ed9f
--- /dev/null
+++ b/dev-python/django-cors-headers/django-cors-headers-3.10.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Django App that adds CORS (Cross-Origin Resource Sharing) headers 
to responses"
+HOMEPAGE="https://github.com/adamchainz/django-cors-headers";
+SRC_URI="
+       https://github.com/adamchainz/django-cors-headers/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/django-2.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/pytest-django[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest

Reply via email to