summaryrefslogtreecommitdiff
path: root/dev-python/django-soft-delete/django-soft-delete-1.0.18.ebuild
blob: abb583f3b5e4fb5dc53692fa015dadfeb8e11046 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..14} )
COMMIT="8163419b91d6b8c6ecb0c4edd30a0338f43db442"

inherit distutils-r1

DESCRIPTION="Soft delete models, managers, queryset for Django"
HOMEPAGE="https://github.com/san4ezy/django_softdelete"
SRC_URI="https://github.com/san4ezy/django_softdelete/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/django_softdelete-${COMMIT}"

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

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

python_test() {
	local -x DJANGO_SETTINGS_MODULE=test_project.settings
	epytest --nomigrations
}