From 98e82ea091d4e08870cc2c8b24d398ccdf186b49 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 20 Apr 2022 02:28:04 +0200 Subject: [PATCH] python3Packages.flask-bcrypt: 0.7.1 -> 1.0.1 --- .../python-modules/flask-bcrypt/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/flask-bcrypt/default.nix b/pkgs/development/python-modules/flask-bcrypt/default.nix index fd0e63d26f30..1c09b6d809c4 100644 --- a/pkgs/development/python-modules/flask-bcrypt/default.nix +++ b/pkgs/development/python-modules/flask-bcrypt/default.nix @@ -8,13 +8,13 @@ buildPythonPackage rec { pname = "flask-bcrypt"; - version = "0.7.1"; + version = "1.0.1"; src = fetchFromGitHub { owner = "maxcountryman"; repo = pname; rev = version; - sha256 = "0036gag3nj7fzib23lbbpwhlrn1s0kkrfwk5pd90y4cjcfqh8z9x"; + sha256 = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4="; }; propagatedBuildInputs = [ @@ -23,9 +23,15 @@ buildPythonPackage rec { ]; checkPhase = '' - ${python.interpreter} test_bcrypt.py + runHook preCheck + ${python.interpreter} -m unittest discover + runHook postCheck ''; + pythonImportsCheck = [ + "flask_bcrypt" + ]; + meta = with lib; { description = "Brcrypt hashing for Flask"; homepage = "https://github.com/maxcountryman/flask-bcrypt";