python311Packages.flask-basicauth: drop
Not compatible with Flask 3.0 and upstream is essentially dead.
This commit is contained in:
parent
ac2b358b7d
commit
d2c9ee5630
@ -1,55 +0,0 @@
|
|||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
|
||||||
, fetchpatch
|
|
||||||
, flask
|
|
||||||
, python
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "flask-basicauth";
|
|
||||||
version = "0.2.0";
|
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "jpvanhal";
|
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-han0OjMI1XmuWKHGVpk+xZB+/+cpV1I+659zOG3hcPY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
# The unit tests fail due to an invalid import:
|
|
||||||
# from flask.ext.basicauth import BasicAuth
|
|
||||||
#
|
|
||||||
# This patch replaces it with the correct import:
|
|
||||||
# from flask_basicauth import BasicAuth
|
|
||||||
#
|
|
||||||
# The patch uses the changes from this pull request,
|
|
||||||
# and therefore can be removed once this pull request
|
|
||||||
# has been merged:
|
|
||||||
# https://github.com/jpvanhal/flask-basicauth/pull/29
|
|
||||||
name = "fix-test-flask-ext-imports.patch";
|
|
||||||
url = "https://github.com/jpvanhal/flask-basicauth/commit/23f57dc1c3d85ea6fc7f468e8d8c6f19348a0a81.patch";
|
|
||||||
hash = "sha256-njUYjO0TRe3vr5D0XjIfCNcsFlShbGxtFV/DJerAKDE=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ flask ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
${python.interpreter} -m unittest discover
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "flask_basicauth" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/jpvanhal/flask-basicauth";
|
|
||||||
description = "HTTP basic access authentication for Flask";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ wesnel ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -164,6 +164,7 @@ mapAliases ({
|
|||||||
flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20
|
flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20
|
||||||
flask_testing = flask-testing; # added 2022-04-25
|
flask_testing = flask-testing; # added 2022-04-25
|
||||||
flask_wtf = flask-wtf; # added 2022-05-24
|
flask_wtf = flask-wtf; # added 2022-05-24
|
||||||
|
flask-basicauth = throw "flask-basicauth was removed, as it is not compatible with flask 3.0 and unmaintained since 2016.";
|
||||||
flowlogs_reader = flowlogs-reader; # added 2024-01-03
|
flowlogs_reader = flowlogs-reader; # added 2024-01-03
|
||||||
FormEncode = formencode; # added 2023-02-19
|
FormEncode = formencode; # added 2023-02-19
|
||||||
foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06
|
foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06
|
||||||
|
@ -4103,8 +4103,6 @@ self: super: with self; {
|
|||||||
|
|
||||||
flask-babelex = callPackage ../development/python-modules/flask-babelex { };
|
flask-babelex = callPackage ../development/python-modules/flask-babelex { };
|
||||||
|
|
||||||
flask-basicauth = callPackage ../development/python-modules/flask-basicauth { };
|
|
||||||
|
|
||||||
flask-bcrypt = callPackage ../development/python-modules/flask-bcrypt { };
|
flask-bcrypt = callPackage ../development/python-modules/flask-bcrypt { };
|
||||||
|
|
||||||
flask-bootstrap = callPackage ../development/python-modules/flask-bootstrap { };
|
flask-bootstrap = callPackage ../development/python-modules/flask-bootstrap { };
|
||||||
|
Loading…
Reference in New Issue
Block a user