blob: 28c1d5983a150d2a6c851f4656b49b61e3b8ce01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
}
|