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