python3Packages.flask-bcrypt: backport upstream test fix for long pas… (#466635)

This commit is contained in:
dotlambda
2025-12-01 17:04:40 +00:00
committed by GitHub
@@ -19,6 +19,13 @@ buildPythonPackage rec {
hash = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4=";
};
postPatch = ''
# Backport fix for test_long_password from upstream PR: https://github.com/maxcountryman/flask-bcrypt/pull/96
substituteInPlace test_bcrypt.py \
--replace-fail "self.assertTrue(self.bcrypt.check_password_hash(pw_hash, 'A' * 80))" \
"self.assertTrue(self.bcrypt.check_password_hash(pw_hash, 'A' * 72))"
'';
propagatedBuildInputs = [
flask
bcrypt