summaryrefslogtreecommitdiff
path: root/dev-python/django-parler/django-parler-2.4.ebuild
blob: 2c046ee2f0e0e778acbe2714f1c89c6518e930aa (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 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1

DESCRIPTION="Simple Django model translations without nasty hacks"
HOMEPAGE="
	https://github.com/django-parler/django-parler
	https://pypi.org/project/django-parler/
"
SRC_URI="https://github.com/django-parler/django-parler/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"

PATCHES=( "${FILESDIR}"/2.4-disable-failing-tests.patch )

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/django-5.2[${PYTHON_USEDEP}]
"
BDEPEND="
	test? ( ${RDEPEND} )
"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

python_test() {
	PYTHONPATH=. "${EPYTHON}" runtests.py || die "Tests failed with ${EPYTHON}"
}