nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 788 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, argon2-cffi 5, bcrypt 6, cryptography 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "passlib"; 12 version = "1.7.4"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04"; 17 }; 18 19 passthru.optional-dependencies = { 20 argon2 = [ argon2-cffi ]; 21 bcrypt = [ bcrypt ]; 22 totp = [ cryptography ]; 23 }; 24 25 checkInputs = [ 26 pytestCheckHook 27 ] ++ passthru.optional-dependencies.argon2 28 ++ passthru.optional-dependencies.bcrypt 29 ++ passthru.optional-dependencies.totp; 30 31 meta = with lib; { 32 description = "A password hashing library for Python"; 33 homepage = "https://foss.heptapod.net/python-libs/passlib"; 34 license = licenses.bsdOriginal; 35 }; 36}