diff options
Diffstat (limited to 'dev-python/django-otp')
| -rw-r--r-- | dev-python/django-otp/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/django-otp/django-otp-1.7.5.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/django-otp/Manifest b/dev-python/django-otp/Manifest index 1236380dace1..92c24e296311 100644 --- a/dev-python/django-otp/Manifest +++ b/dev-python/django-otp/Manifest @@ -1 +1,2 @@ DIST django_otp-1.7.3.tar.gz 78996 BLAKE2B ccd9430a6415900a778a3c15163402915493f1162e680e504112beb22d6eff711c8ed48ec09d2b79f456437d3ad410a952790b98ca22c21232779d364eb9ca17 SHA512 2dd1f70cd506f6e8e3f62544c63dac1b6187f2cc4e585be8a44c10807f50a591ca801eb46881f01c52e629afa5dd98fa0205beeacc6e284ce8c0553d98350655 +DIST django_otp-1.7.5.tar.gz 79637 BLAKE2B 8d1b825303fc2aaadd88912282caa9003826f3a82d37ecff296a9c0d8685401380114b87d293f93ea25de75513bae885fc54c0357eb1d3d9b186c0b05172d2cf SHA512 2f5ef4c89b38c8d226aaa1bfc17d5355f40e91a8e2e048ec7613ad5f85adb9de593389da0eea37ac6efe68413338825d015a88560f3248498033ce2acafafbb6 diff --git a/dev-python/django-otp/django-otp-1.7.5.ebuild b/dev-python/django-otp/django-otp-1.7.5.ebuild new file mode 100644 index 000000000000..3bbd4d6ca49d --- /dev/null +++ b/dev-python/django-otp/django-otp-1.7.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Django framework adding two-factor authentication using one-time passwords" +HOMEPAGE=" + https://github.com/django-otp/django-otp/ + https://pypi.org/project/django-otp/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + dev-python/freezegun[${PYTHON_USEDEP}] + || ( + dev-python/qrcode[${PYTHON_USEDEP}] + dev-python/segno[${PYTHON_USEDEP}] + ) + ${RDEPEND} + ) +" + +python_test() { + # upstream strips tests.py from the installed package, so we need + # to run from src + local -x PYTHONPATH=test:src:${PYTHONPATH} + local -x DJANGO_SETTINGS_MODULE=test_project.settings + "${EPYTHON}" -m django test -v 2 django_otp || + die "Tests fail with ${EPYTHON}" +} |
