nixpkgs/pkgs/development/python-modules/flask-bcrypt/default.nix
2022-04-20 02:29:08 +02:00

42 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, bcrypt
, python
}:
buildPythonPackage rec {
pname = "flask-bcrypt";
version = "1.0.1";
src = fetchFromGitHub {
owner = "maxcountryman";
repo = pname;
rev = version;
sha256 = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4=";
};
propagatedBuildInputs = [
flask
bcrypt
];
checkPhase = ''
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";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}