summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-httpauth/default.nix
blob: 9c57881f4b2b795dc524449723ea88ea58d0fffe (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
{ lib, python, buildPythonPackage, fetchPypi, pytestCheckHook, flask }:

buildPythonPackage rec {
  pname = "flask-httpauth";
  version = "4.7.0";

  disabled = python.pythonOlder "3";

  src = fetchPypi {
    pname = "Flask-HTTPAuth";
    version = version;
    sha256 = "sha256-9xmee60g1baLPwtivd/KdjfFUIfp0C9gWuJuDeR5/ZQ=";
  };

  checkInputs = [ pytestCheckHook ];

  propagatedBuildInputs = [ flask ];

  pythonImportsCheck = [ "flask_httpauth" ];

  meta = with lib; {
    description = "Extension that provides HTTP authentication for Flask routes";
    homepage = "https://github.com/miguelgrinberg/Flask-HTTPAuth";
    license = licenses.mit;
    maintainers = with maintainers; [ oxzi ];
  };
}