mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 09:07:58 +00:00
Merge pull request #145054 from oxzi/flask-httpauth-4.5.0
This commit is contained in:
commit
36a49b67d0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user