1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools,
7 flask,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "flask-httpauth";
13 version = "4.8.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "Flask-HTTPAuth";
20 version = version;
21 hash = "sha256-ZlaKBbxzlCxl8eIgGudGKVgW3ACe3YS0gsRMdY11CXo=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ flask ];
27
28 pythonImportsCheck = [ "flask_httpauth" ];
29
30 nativeCheckInputs = [ pytestCheckHook ] ++ flask.optional-dependencies.async;
31
32 meta = with lib; {
33 description = "Extension that provides HTTP authentication for Flask routes";
34 homepage = "https://github.com/miguelgrinberg/Flask-HTTPAuth";
35 changelog = "https://github.com/miguelgrinberg/Flask-HTTPAuth/blob/v${version}/CHANGES.md";
36 license = licenses.mit;
37 maintainers = with maintainers; [ oxzi ];
38 };
39}