aboutsummaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-04-20 13:22:21 -0400
committerJulien Roy <julien@jroy.ca>2024-04-20 13:24:41 -0400
commit4da65b728b9cb4d43dccd01ed3ab7122b0b46d57 (patch)
tree903722d9d5f52940b218f511fb39c053362bdaf0 /dev-python
parent0832e5501272f20e1cb27bfd997621bd73be153d (diff)
downloadMrRoy-Overlay-4da65b728b9cb4d43dccd01ed3ab7122b0b46d57.tar.gz
MrRoy-Overlay-4da65b728b9cb4d43dccd01ed3ab7122b0b46d57.tar.bz2
MrRoy-Overlay-4da65b728b9cb4d43dccd01ed3ab7122b0b46d57.zip
dev-python/rest-framework-generic-relations: new package, add 2.2.0
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/rest-framework-generic-relations/Manifest1
-rw-r--r--dev-python/rest-framework-generic-relations/metadata.xml17
-rw-r--r--dev-python/rest-framework-generic-relations/rest-framework-generic-relations-2.2.0.ebuild36
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/rest-framework-generic-relations/Manifest b/dev-python/rest-framework-generic-relations/Manifest
new file mode 100644
index 0000000..02d276e
--- /dev/null
+++ b/dev-python/rest-framework-generic-relations/Manifest
@@ -0,0 +1 @@
+DIST rest-framework-generic-relations-2.2.0.gh.tar.gz 9332 BLAKE2B 7bd8c57e8b87cb739f53bf0359991b6d6709ef6625f2795a7bd987ff0d0eb20bc8614e318e324fb68cadee6d87da5957d2eaf1087786430bd112ffbe93c284c6 SHA512 58031d802c3f7981d96fe8ea2bf7df94b70d3a3d7a5cd5bd2dbf75adbf48efdecfdfa3490695c824b4fe2f6938571c8034a8546804d9177c2791e51a18f22b3f
diff --git a/dev-python/rest-framework-generic-relations/metadata.xml b/dev-python/rest-framework-generic-relations/metadata.xml
new file mode 100644
index 0000000..7323299
--- /dev/null
+++ b/dev-python/rest-framework-generic-relations/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Julien Roy</name>
+ <email>julien@jroy.ca</email>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <name>Craig de Stigter</name>
+ <email>craig@destigter.nz</email>
+ </maintainer>
+ <doc>https://github.com/craigds/rest-framework-generic-relations/blob/main/README.md</doc>
+ <remote-id type="github">craigds/rest-framework-generic-relations</remote-id>
+ <remote-id type="pypi">rest-framework-generic-relations</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/rest-framework-generic-relations/rest-framework-generic-relations-2.2.0.ebuild b/dev-python/rest-framework-generic-relations/rest-framework-generic-relations-2.2.0.ebuild
new file mode 100644
index 0000000..28c1d59
--- /dev/null
+++ b/dev-python/rest-framework-generic-relations/rest-framework-generic-relations-2.2.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+# Release 2.2.0 isn't tagged by upstream
+COMMIT="35e7d5525c8957659f528fc45c73ad16949018c6"
+DESCRIPTION="Django REST Framework serializers to handle generic foreign keys"
+HOMEPAGE="
+ https://github.com/craigds/rest-framework-generic-relations
+ https://pypi.org/project/rest-framework-generic-relations/
+"
+# PyPI release doesn't package tests properly
+SRC_URI="https://github.com/craigds/rest-framework-generic-relations/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/django[${PYTHON_USEDEP}]
+ >=dev-python/djangorestframework-3.11.0[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests pytest
+
+python_test() {
+ epytest --ds=testsettings
+}