12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
20 inherit pname version;
21 hash = "sha256-3v1Q9ytlxUAqssVzgwppeOXyAq0NmEeTyN3ixBUuvgQ";
24 passthru.optional-dependencies = {
25 argon2 = [ argon2-cffi ];
27 totp = [ cryptography ];
33 ] ++ passthru.optional-dependencies.argon2
34 ++ passthru.optional-dependencies.bcrypt
35 ++ passthru.optional-dependencies.totp;
37 pythonImportsCheck = [
44 "test_encrypt_cost_timing"
45 # These tests fail because they don't expect support for algorithms provided through libxcrypt
46 "test_82_crypt_support"
50 # hashing algorithms we don't support anymore
51 "--deselect=passlib/tests/test_handlers.py::des_crypt_os_crypt_test::test_82_crypt_support"
52 "--deselect=passlib/tests/test_handlers.py::md5_crypt_os_crypt_test::test_82_crypt_support"
53 "--deselect=passlib/tests/test_handlers.py::sha256_crypt_os_crypt_test::test_82_crypt_support"
57 description = "A password hashing library for Python";
58 homepage = "https://foss.heptapod.net/python-libs/passlib";
59 license = licenses.bsdOriginal;
60 maintainers = with maintainers; [ ];