about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/flask-bcrypt/default.nix
blob: fd0e63d26f301f555fc9b7038aacc6a43cda9501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, bcrypt
, python
}:

buildPythonPackage rec {
  pname = "flask-bcrypt";
  version = "0.7.1";

  src = fetchFromGitHub {
    owner = "maxcountryman";
    repo = pname;
    rev = version;
    sha256 = "0036gag3nj7fzib23lbbpwhlrn1s0kkrfwk5pd90y4cjcfqh8z9x";
  };

  propagatedBuildInputs = [
    flask
    bcrypt
  ];

  checkPhase = ''
    ${python.interpreter} test_bcrypt.py
  '';

  meta = with lib; {
    description = "Brcrypt hashing for Flask";
    homepage = "https://github.com/maxcountryman/flask-bcrypt";
    license = licenses.bsd3;
    maintainers = [ maintainers.costrouc ];
  };
}