Unverified Commit b672ac3b authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

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

parents 55dc8b45 77eba3ff
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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