commit:     52a242854bb38226a96892a7dae501f9060d38ab
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 13:18:03 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 13:18:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52a24285

dev-python/django_polymorphic: Use PEP517

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/django_polymorphic/Manifest             |  1 +
 .../django_polymorphic-3.1-r1.ebuild               | 37 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-python/django_polymorphic/Manifest 
b/dev-python/django_polymorphic/Manifest
index e4434eedd56a..cfd9f0e24773 100644
--- a/dev-python/django_polymorphic/Manifest
+++ b/dev-python/django_polymorphic/Manifest
@@ -1 +1,2 @@
+DIST django_polymorphic-3.1.gh.tar.gz 104090 BLAKE2B 
de2a2b38f338a10198d00e70d1813e541bf627e2ba2f5e29f0844c9ec7034badba39c077a195fc8c2f71105f1b4e546b91218b95d2ac47020f0dc2e3a5b0baa8
 SHA512 
730f617009007f94e935870941fdd8973d0cd5995060afbd138622345de77fa48bf2afe037bfa2ad476cef0a31e90cab1eb55109c470ae815a98e1facfa8f125
 DIST django_polymorphic-3.1.tar.gz 104090 BLAKE2B 
de2a2b38f338a10198d00e70d1813e541bf627e2ba2f5e29f0844c9ec7034badba39c077a195fc8c2f71105f1b4e546b91218b95d2ac47020f0dc2e3a5b0baa8
 SHA512 
730f617009007f94e935870941fdd8973d0cd5995060afbd138622345de77fa48bf2afe037bfa2ad476cef0a31e90cab1eb55109c470ae815a98e1facfa8f125

diff --git a/dev-python/django_polymorphic/django_polymorphic-3.1-r1.ebuild 
b/dev-python/django_polymorphic/django_polymorphic-3.1-r1.ebuild
new file mode 100644
index 000000000000..1e243ade908d
--- /dev/null
+++ b/dev-python/django_polymorphic/django_polymorphic-3.1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..10} )
+inherit distutils-r1
+
+DESCRIPTION="Seamless Polymorphic Inheritance for Django Models"
+HOMEPAGE="https://pypi.org/project/django-polymorphic/";
+SRC_URI="
+       
https://github.com/django-polymorphic/django-polymorphic/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${P//_/-}"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-python/django-2.1[$PYTHON_USEDEP]
+"
+
+DEPEND="
+       test? (
+               $(python_gen_impl_dep sqlite)
+               ${RDEPEND}
+               dev-python/dj-database-url[${PYTHON_USEDEP}]
+       )
+"
+
+python_test() {
+       "${EPYTHON}" runtests.py || die "Tests fail with ${EPYTHON}"
+}

Reply via email to