diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/djangorestframework/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/djangorestframework/djangorestframework-3.16.1.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/djangorestframework/Manifest b/dev-python/djangorestframework/Manifest index 68fb95771099..80e6d2ea5a00 100644 --- a/dev-python/djangorestframework/Manifest +++ b/dev-python/djangorestframework/Manifest @@ -1 +1,2 @@ DIST django-rest-framework-3.16.0.gh.tar.gz 9802743 BLAKE2B 22527415f7181f9657ded599726b90f705c9123b0b530090a10e6cf810ccb16978ba5b4c0ad7f125b457c3eeb0db8a7d9633ddfdff26caef8fe556a9271350bd SHA512 60df1226a18f833c3f79f103cc13df06d72438862272e59d875bddbbefb7bc737b13ca92458c3e0a624f18f9ab5ecd2f035bcc515416a5aaf5b5b680d973fb77 +DIST django-rest-framework-3.16.1.gh.tar.gz 10312042 BLAKE2B 291643a06937c938e137d6329ad283924d64542a631ba7c0e2143983d9a3e589a85abff5e02b0937f1eb63de5c8a1c38f6eba4a0b26a5c36de29bb53eb0d4614 SHA512 e1073463b8e5119cc99434cf8d6ea095ed7045f34f5da8430d14c4dc31c560688e6a9c99d7a40b36450d27c8582593cb0875cc2ebd5df6cac2b25c1ba012e696 diff --git a/dev-python/djangorestframework/djangorestframework-3.16.1.ebuild b/dev-python/djangorestframework/djangorestframework-3.16.1.ebuild new file mode 100644 index 000000000000..0ea97711562b --- /dev/null +++ b/dev-python/djangorestframework/djangorestframework-3.16.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/encode/django-rest-framework/discussions/9445 +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +MY_P=django-rest-framework-${PV} +DESCRIPTION="Web APIs with django made easy" +HOMEPAGE=" + https://www.django-rest-framework.org/ + https://github.com/encode/django-rest-framework/ + https://pypi.org/project/djangorestframework/ +" +SRC_URI=" + https://github.com/encode/django-rest-framework/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/inflection[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-django ) +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # upstream is removing pytz, apparently it's not tested anymore + # https://github.com/encode/django-rest-framework/discussions/9342 + tests/test_fields.py::TestPytzNaiveDayLightSavingTimeTimeZoneDateTimeField::test_invalid_inputs +) |
