My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/flask-bcrypt/default.nix

41 lines
746 B

{ 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 ];
};
}