summaryrefslogtreecommitdiff
path: root/dev-python/passlib
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-15 19:12:21 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-15 19:12:21 +0000
commitf6bcc45ab811bbc6c133a87192de845240fdfd9c (patch)
tree2d40b5748b807e79e3247c8672686a94d5a61290 /dev-python/passlib
parentef93034729ae626be7fa73289869f79c19ac7144 (diff)
downloadbaldeagleos-repo-f6bcc45ab811bbc6c133a87192de845240fdfd9c.tar.gz
baldeagleos-repo-f6bcc45ab811bbc6c133a87192de845240fdfd9c.tar.xz
baldeagleos-repo-f6bcc45ab811bbc6c133a87192de845240fdfd9c.zip
Adding metadata
Diffstat (limited to 'dev-python/passlib')
-rw-r--r--dev-python/passlib/Manifest1
-rw-r--r--dev-python/passlib/passlib-1.9.3.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/passlib/Manifest b/dev-python/passlib/Manifest
index 36ccb583c9ff..67c0ac3ae6e4 100644
--- a/dev-python/passlib/Manifest
+++ b/dev-python/passlib/Manifest
@@ -1 +1,2 @@
+DIST libpass-1.9.3.tar.gz 692901 BLAKE2B b7b19ae4a9e7e2d65062d8d51e11fb8caec1da7bedacf88b9b2114013d2a578e64a5ca195d168982a52f7ca143eea5adbc5b33c955e175b7f2dda07bd93e24a2 SHA512 2581412ed18d3b2953f2679a05ce7158095850fb37e16a744a1c80bd1afbcf2d0852619ff9b06322b38004ff01e0d335cefaecb49cf9552a6a478566067aa0bc
DIST passlib-1.7.4.tar.gz 689844 BLAKE2B 38f616105ba70cf93cf36383c73f2a4da7bf66ced2844effffe74d9f7c29ee0aece5652974dd1414f16e32fbe6957e2e921cf01bc59daa70195a6d50a4a3bf2f SHA512 350bd6da5ac57e6c266ffe8bf9684c8c2cce3fc6b513eb6c7bc1b302d2d8a1b701e9c01c953782520a2ac37b7ec1f6d7bd5855f99f6ee0e2dbbf33f2d49a9530
diff --git a/dev-python/passlib/passlib-1.9.3.ebuild b/dev-python/passlib/passlib-1.9.3.ebuild
new file mode 100644
index 000000000000..cff0a3387861
--- /dev/null
+++ b/dev-python/passlib/passlib-1.9.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_PN=libpass
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1 optfeature pypi
+
+DESCRIPTION="Fork of passlib, a password hashing framework"
+HOMEPAGE="
+ https://github.com/notypecheck/passlib/
+ https://pypi.org/project/libpass/
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+IUSE="doc test-rust"
+
+BDEPEND="
+ test? (
+ dev-python/scrypt[${PYTHON_USEDEP}]
+ test-rust? (
+ >=dev-python/bcrypt-3.1.0[${PYTHON_USEDEP}]
+ >=dev-python/cryptography-43.0.1[${PYTHON_USEDEP}]
+ )
+ )
+"
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # bcrypt now disallows implicit password truncation
+ # https://github.com/notypecheck/passlib/pull/25
+ tests/test_handlers_bcrypt.py::bcrypt_bcrypt_test::test_70_hashes
+ tests/test_handlers_bcrypt.py::bcrypt_bcrypt_test::test_secret_w_truncate_size
+ tests/test_handlers_django.py::django_bcrypt_test::test_secret_w_truncate_size
+
+ # assumes scrypt dep is not installed
+ tests/test_crypto_scrypt.py::BuiltinScryptTest::test_missing_backend
+ )
+
+ # skip fuzzing tests, they are very slow
+ epytest -k "not fuzz_input"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ use doc && dodoc docs/{*.rst,requirements.txt,lib/*.rst}
+}
+
+pkg_postinst() {
+ optfeature "Argon2 support" dev-python/argon2-cffi
+ optfeature "bcrypt support" dev-python/bcrypt
+ optfeature "scrypt support" dev-python/scrypt
+ optfeature "Time-based One-Time Password (TOTP) support" dev-python/cryptography
+}