83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
45 lines
853 B
Nix
45 lines
853 B
Nix
{ lib
|
|
, python
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, flask
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-httpauth";
|
|
version = "4.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = python.pythonOlder "3";
|
|
|
|
src = fetchPypi {
|
|
pname = "Flask-HTTPAuth";
|
|
version = version;
|
|
hash = "sha256-9xmee60g1baLPwtivd/KdjfFUIfp0C9gWuJuDeR5/ZQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flask_httpauth"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ flask.optional-dependencies.async;
|
|
|
|
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 ];
|
|
};
|
|
}
|