diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-07-08 06:39:29 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-07-08 06:41:05 +0200 |
commit | 7d8d10bcd48d0352b2c38fa8a243ab6c9c897d2b (patch) | |
tree | c9a992113a4c241dcab05b780e7203fba9069cbf /dev-python/django-timezone-field | |
parent | dev-python/blurb: Bump to 1.2.0 (diff) | |
download | gentoo-7d8d10bcd48d0352b2c38fa8a243ab6c9c897d2b.tar.gz gentoo-7d8d10bcd48d0352b2c38fa8a243ab6c9c897d2b.tar.bz2 gentoo-7d8d10bcd48d0352b2c38fa8a243ab6c9c897d2b.zip |
dev-python/django-timezone-field: Bump to 7.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-timezone-field')
-rw-r--r-- | dev-python/django-timezone-field/Manifest | 1 | ||||
-rw-r--r-- | dev-python/django-timezone-field/django-timezone-field-7.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
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 +} |