Merge pull request #145054 from oxzi/flask-httpauth-4.5.0

This commit is contained in:
Sandro 2021-11-25 00:46:15 +01:00 committed by GitHub
commit 36a49b67d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,23 @@
{ lib, python, isPy3k, buildPythonPackage, fetchPypi, flask }:
{ lib, python, buildPythonPackage, fetchPypi, pytestCheckHook, flask }:
buildPythonPackage rec {
pname = "Flask-HTTPAuth";
version = "4.4.0";
pname = "flask-httpauth";
version = "4.5.0";
disabled = !isPy3k;
disabled = python.pythonOlder "3";
src = fetchPypi {
inherit pname version;
sha256 = "0fl1if91hg2c92b6sic7h2vhxxvb06ri7wflmwp0pfiwbaisgamw";
pname = "Flask-HTTPAuth";
version = version;
sha256 = "0ada63rkcvwkakjyx4ay98fjzwx5h55br12ys40ghkc5lbyl0l1r";
};
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ flask ];
pythonImportsCheck = [ "flask_httpauth" ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = with lib; {
description = "Extension that provides HTTP authentication for Flask routes";
homepage = "https://github.com/miguelgrinberg/Flask-HTTPAuth";