1{ lib, python, buildPythonPackage, fetchPypi, flask }:
2
3buildPythonPackage rec {
4 pname = "Flask-HTTPAuth";
5 version = "4.3.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "05j1mckwhgicrlj4j7ni2rhcf9w4i7phll06jbjjyvs3rj1l4q1f";
10 };
11
12 propagatedBuildInputs = [ flask ];
13
14 pythonImportsCheck = [ "flask_httpauth" ];
15
16 checkPhase = ''
17 ${python.interpreter} -m unittest discover
18 '';
19
20 meta = with lib; {
21 description = "Extension that provides HTTP authentication for Flask routes";
22 homepage = "https://github.com/miguelgrinberg/Flask-HTTPAuth";
23 license = licenses.mit;
24 maintainers = with maintainers; [ oxzi ];
25 };
26}