aboutsummaryrefslogtreecommitdiff
path: root/dev-python/djangorestframework-simplejwt/djangorestframework-simplejwt-5.3.1.ebuild
blob: 7ef6c728c63843ceaa60c9dfb9c38ff10b72ee59 (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
37
38
39
40
41
42
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1 pypi

DESCRIPTION="JSON Web Token authentication plugin for the Django REST Framework"
HOMEPAGE="
	https://github.com/jazzband/djangorestframework-simplejwt
	https://pypi.org/project/djangorestframework-simplejwt/
"

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

RDEPEND="
	dev-python/django[${PYTHON_USEDEP}]
	dev-python/twine[${PYTHON_USEDEP}]
	dev-python/ipython[${PYTHON_USEDEP}]
	dev-python/python-jose[${PYTHON_USEDEP}]

	doc? ( dev-python/sphinx-rtd-theme )
	test? (
		dev-python/cryptography[${PYTHON_USEDEP}]
		dev-python/freezegun[${PYTHON_USEDEP}]
		dev-python/pytest-django[${PYTHON_USEDEP}]
		dev-python/pytest-xdist[${PYTHON_USEDEP}]
	)
"
DEPEND="${RDEPEND}"

EPYTEST_DESELECT=(
	tests/test_utils.py::TestAwareUtcnow::test_it_should_return_the_correct_value
)

distutils_enable_tests pytest
distutils_enable_sphinx docs