depot/third_party/nixpkgs/pkgs/development/python-modules/passlib/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

36 lines
760 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, argon2-cffi
, bcrypt
, cryptography
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "passlib";
version = "1.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04";
};
passthru.extras-require = {
argon2 = [ argon2-cffi ];
bcrypt = [ bcrypt ];
totp = [ cryptography ];
};
checkInputs = [
pytestCheckHook
] ++ passthru.extras-require.argon2
++ passthru.extras-require.bcrypt
++ passthru.extras-require.totp;
meta = with lib; {
description = "A password hashing library for Python";
homepage = "https://foss.heptapod.net/python-libs/passlib";
license = licenses.bsdOriginal;
};
}