Merge pull request #192087 from SuperSandro2000/python310Packages.bcrypt

This commit is contained in:
Sandro 2022-09-22 17:37:26 +02:00 committed by GitHub
commit 07836434b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View file

@ -8,6 +8,12 @@
, pythonOlder
, cffi
, pytestCheckHook
# for passthru.tests
, asyncssh
, django_4
, fastapi
, paramiko
, twisted
}:
buildPythonPackage rec {
@ -33,8 +39,8 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools
setuptools-rust
rustPlatform.cargoSetupHook
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
@ -55,6 +61,10 @@ buildPythonPackage rec {
"bcrypt"
];
passthru.tests = {
inherit asyncssh django_4 fastapi paramiko twisted;
};
meta = with lib; {
description = "Modern password hashing for your software and your servers";
homepage = "https://github.com/pyca/bcrypt/";

View file

@ -28,9 +28,15 @@ buildPythonPackage rec {
++ passthru.optional-dependencies.bcrypt
++ passthru.optional-dependencies.totp;
disabledTests = [
# timming sensitive
"test_dummy_verify"
];
meta = with lib; {
description = "A password hashing library for Python";
homepage = "https://foss.heptapod.net/python-libs/passlib";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
};
}