From 455b31c52ac87a704948ff4f38050c31c29eccac Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Mon, 6 Feb 2023 22:04:39 +0100 Subject: [PATCH] dev-python/djangorestframework: new package, add 3.12.4 --- dev-python/djangorestframework/Manifest | 1 + .../djangorestframework-3.12.4.ebuild | 41 +++++++++++++++++++ dev-python/djangorestframework/metadata.xml | 13 ++++++ 3 files changed, 55 insertions(+) create mode 100644 dev-python/djangorestframework/Manifest create mode 100644 dev-python/djangorestframework/djangorestframework-3.12.4.ebuild create mode 100644 dev-python/djangorestframework/metadata.xml diff --git a/dev-python/djangorestframework/Manifest b/dev-python/djangorestframework/Manifest new file mode 100644 index 0000000..4b1351e --- /dev/null +++ b/dev-python/djangorestframework/Manifest @@ -0,0 +1 @@ +DIST django-rest-framework-3.12.4.gh.tar.gz 8856507 BLAKE2B 48150e8d966ddd169a2b58d90656efa8f9f549c9d2fdee6025254fba2a6221704fe6bcb246567c8acb963f76ea56046935d3190c7c391daf4773b100a641ba02 SHA512 406b5354809b94e371a2c7d4b62ce66c18a1f60bd02574cba603ad4c44faa4297bdbbd6ee50de63fe21d2aae18386e05d46983a506bddd17f06ce610d5b727c9 diff --git a/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild b/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild new file mode 100644 index 0000000..b31831e --- /dev/null +++ b/dev-python/djangorestframework/djangorestframework-3.12.4.ebuild @@ -0,0 +1,41 @@ +# 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..11} ) + +inherit distutils-r1 + +MY_P=django-rest-framework-${PV} +DESCRIPTION="Web APIs with django made easy" +HOMEPAGE="https://www.django-rest-framework.org/" +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 ~x86" + +RDEPEND=" + >=dev-python/django-3.0[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/coreapi[${PYTHON_USEDEP}] + dev-python/coreschema[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + tests/test_description.py::TestViewNamesAndDescriptions::test_markdown +) diff --git a/dev-python/djangorestframework/metadata.xml b/dev-python/djangorestframework/metadata.xml new file mode 100644 index 0000000..776038d --- /dev/null +++ b/dev-python/djangorestframework/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + djangorestframework + encode/django-rest-framework + +