commit:     7d8d10bcd48d0352b2c38fa8a243ab6c9c897d2b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 04:39:29 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 04:41:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8d10bc

dev-python/django-timezone-field: Bump to 7.0

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

 dev-python/django-timezone-field/Manifest          |  1 +
 .../django-timezone-field-7.0.ebuild               | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-python/django-timezone-field/Manifest 
b/dev-python/django-timezone-field/Manifest
index fafea89dcfd6..d840caeb0eb2 100644
--- a/dev-python/django-timezone-field/Manifest
+++ b/dev-python/django-timezone-field/Manifest
@@ -1 +1,2 @@
 DIST django-timezone-field-6.1.0.gh.tar.gz 36029 BLAKE2B 
5177b440e0537fbde12e0dd4bf92e65c983996f7ef1393212b0f4c24efecfc0d4d24e1bbc8447295b565d8b9921c0c05f6cc4baa11db3ccc9b60c33c48e76fb2
 SHA512 
b070e55a2a5196de1fcae4bd19979caf9d84c234a4e379d82dab843541cf99a0acced9a6996e35afe6b40d1bf737d522d34b91df10596e7365f85cfbe0597015
+DIST django-timezone-field-7.0.gh.tar.gz 37416 BLAKE2B 
a0420ccbcb9d7d834e65d0cc89fd83662bd4b3773f1443f05866381d6bbeacba86bdd2e6078a3819bdbf6c174e3ede08e4b9d307838d5082e7bef037ff751681
 SHA512 
9a96b65a7dce48f58c3915e835e92b8d884f6b15f8314f5d6f1a34bc75ad4bc8f0c33035a4844b5906b7d6bc468cf364be8c82843f3af714a59dc9a40e71f9af

diff --git a/dev-python/django-timezone-field/django-timezone-field-7.0.ebuild 
b/dev-python/django-timezone-field/django-timezone-field-7.0.ebuild
new file mode 100644
index 000000000000..8027c2a3c7b6
--- /dev/null
+++ b/dev-python/django-timezone-field/django-timezone-field-7.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Django app providing database and form fields for timezone 
objects"
+HOMEPAGE="
+       https://github.com/mfogel/django-timezone-field/
+       https://pypi.org/project/django-timezone-field/
+"
+SRC_URI="
+       https://github.com/mfogel/django-timezone-field/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="
+       <dev-python/django-6[${PYTHON_USEDEP}]
+       >=dev-python/django-2.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/djangorestframework[${PYTHON_USEDEP}]
+               dev-python/pytest-django[${PYTHON_USEDEP}]
+               dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
+               dev-python/pytz[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # https://github.com/mfogel/django-timezone-field/pull/138
+       sed -e 's:from pytest_lazyfixture import lazy_fixture:from 
pytest_lazy_fixtures import lf as lazy_fixture:' \
+               -i tests/*.py || die
+}
+
+python_test() {
+       local -x DB_ENGINE=sqlite
+       epytest
+}

Reply via email to