1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flask
5, bcrypt
6, unittestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "flask-bcrypt";
11 version = "1.0.1";
12
13 src = fetchFromGitHub {
14 owner = "maxcountryman";
15 repo = pname;
16 rev = version;
17 hash = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4=";
18 };
19
20 propagatedBuildInputs = [
21 flask
22 bcrypt
23 ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 pythonImportsCheck = [
28 "flask_bcrypt"
29 ];
30
31 meta = with lib; {
32 description = "Brcrypt hashing for Flask";
33 homepage = "https://github.com/maxcountryman/flask-bcrypt";
34 license = licenses.bsd3;
35 maintainers = [ ];
36 };
37}