summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-01 11:47:16 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-01 11:47:16 +0000
commitacc7af33f9705770cb8f06def72819dc560f7461 (patch)
treeffa02c90a91ef14e8c0576c9c905890eadf901d8 /dev-python
parent22a0fded4dabbcc9637c2cb1ec6d4bf7b86ea379 (diff)
downloadbaldeagleos-repo-acc7af33f9705770cb8f06def72819dc560f7461.tar.gz
baldeagleos-repo-acc7af33f9705770cb8f06def72819dc560f7461.tar.xz
baldeagleos-repo-acc7af33f9705770cb8f06def72819dc560f7461.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/djangorestframework-guardian/Manifest3
-rw-r--r--dev-python/djangorestframework-guardian/djangorestframework-guardian-0.3.0.ebuild41
-rw-r--r--dev-python/djangorestframework-guardian/metadata.xml12
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/djangorestframework-guardian/Manifest b/dev-python/djangorestframework-guardian/Manifest
new file mode 100644
index 000000000000..c499bc7ef0a2
--- /dev/null
+++ b/dev-python/djangorestframework-guardian/Manifest
@@ -0,0 +1,3 @@
+DIST djangorestframework-guardian-0.3.0.gh.tar.gz 9110 BLAKE2B 70e6e347935f3e08b4b3181c591740f4c352bb18dfa2fe20fa8665f124f3228786fcb25b928a66063864729f6da7f5697165b85537813010ffbfa214cc6a4829 SHA512 ce196162f42671e6eeb56b17dd432380ff99626dd541b8d2e7e80e4ec7bfc5c884fd3c37652632363173368f9eb1ae0aa82dc25cb1c46ba927f2170d1abbce94
+EBUILD djangorestframework-guardian-0.3.0.ebuild 999 BLAKE2B aec9f4ae5eab28d19bc8f8e910c7474001030be2b170b6f8b4c365af2a45787d560d3f390ff881e3c9ac3ca580ff2752d884f5e1ab920df3d3e3f7bc0c30838c SHA512 fc70ec4b40c54ccf3a807ac4ef0f67842c59288fb8c7a8dbce572ab24ca48963897260a79ed0404a0222f57ea25b8695877f27834fe51ad46772c60bc81de270
+MISC metadata.xml 511 BLAKE2B e8a807cbda5957e796a6a30461154bf27dbe19332be4c43e9c75379cecd33e841d23382291477bd370fb74fb7129ebcd72f0fe2b8a810c3c66f930a5b7915b1f SHA512 156eb0f58d790163dff2c8ad2f2f0300bfd7b978d31018ee825d526615a080a3e29b824f3065cca010f4e1023db63ad139f014138573e3834257d7c7be6d473c
diff --git a/dev-python/djangorestframework-guardian/djangorestframework-guardian-0.3.0.ebuild b/dev-python/djangorestframework-guardian/djangorestframework-guardian-0.3.0.ebuild
new file mode 100644
index 000000000000..607b395c0a7c
--- /dev/null
+++ b/dev-python/djangorestframework-guardian/djangorestframework-guardian-0.3.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+
+inherit distutils-r1
+
+DESCRIPTION="django-guardian support for Django REST Framework"
+HOMEPAGE="
+ https://github.com/rpkilby/django-rest-framework-guardian
+ https://pypi.org/project/djangorestframework-guardian/
+"
+SRC_URI="https://github.com/rpkilby/django-rest-framework-guardian/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/django-rest-framework-guardian-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/django[${PYTHON_USEDEP}]
+ dev-python/djangorestframework[${PYTHON_USEDEP}]
+ dev-python/django-guardian[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # Django 4 compatibility
+ sed -i -e 's/ugettext_lazy/gettext_lazy/g' tests/models.py
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ "${EPYTHON}" manage.py test -v 2 tests || die
+}
diff --git a/dev-python/djangorestframework-guardian/metadata.xml b/dev-python/djangorestframework-guardian/metadata.xml
new file mode 100644
index 000000000000..fe3a629fbf3b
--- /dev/null
+++ b/dev-python/djangorestframework-guardian/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/rpkilby/django-rest-framework-guardian/issues</bugs-to>
+ </upstream>
+ <origin>slonko-overlay</origin>
+</pkgmetadata> \ No newline at end of file