Merge pull request #220538 from K900/changedetection-io-0.40.3

This commit is contained in:
Sandro
2023-03-10 23:24:23 +01:00
committed by GitHub
3 changed files with 46 additions and 33 deletions
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, jsonschema
}:
buildPythonPackage rec {
pname = "flask-expects-json";
version = "1.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Fischerfredl";
repo = pname;
rev = version;
hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
};
propagatedBuildInputs = [ flask jsonschema ];
# tests aren't included in sdist and don't pass on current flask
doCheck = false;
meta = with lib; {
homepage = "https://github.com/fischerfredl/flask-expects-json";
description = "Decorator for REST endpoints in flask. Validate JSON request data.";
license = licenses.mit;
maintainers = [];
};
}
@@ -3,60 +3,40 @@
, fetchurl
, python3
}:
let
py = python3.override {
packageOverrides = final: prev: {
flask = prev.flask.overridePythonAttrs (old: rec {
version = "2.1.3";
src = old.src.override {
inherit version;
hash = "sha256-FZcuUBffBXXD1sCQuhaLbbkCWeYgrI1+qBOjlrrVtss=";
};
});
flask-restful = prev.flask-restful.overridePythonAttrs (old: rec {
disabledTests = old.disabledTests or [ ] ++ [
# fails because of flask or werkzeug downgrade
"test_redirect"
];
});
werkzeug = prev.werkzeug.overridePythonAttrs (old: rec {
version = "2.0.3";
src = old.src.override {
inherit version;
hash = "sha256-uGP4/wV8UiFktgZ8niiwQRYbS+W6TQ2s7qpQoWOCLTw=";
};
});
};
};
in
py.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "changedetection-io";
version = "0.39.22.1";
version = "0.40.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "dgtlmoon";
repo = "changedetection.io";
rev = version;
sha256 = "sha256-qK44m64/skmeoBgHToTyOpeWUF2kgks10OHoAoLim+k=";
sha256 = "sha256-RYxhkCSL17rU3C4rOArYptmYpdK/CDPw9xfXkKja2xs=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "bs4" "beautifulsoup4" \
--replace "cryptography~=3.4" "cryptography" \
--replace "selenium~=4.1.0" "selenium"
--replace "dnspython<2.3.0" "dnspython" \
--replace "pytest ~=6.2" "" \
--replace "pytest-flask ~=1.2" "" \
--replace "selenium~=4.1.0" "selenium" \
--replace "werkzeug~=2.0.0" "werkzeug"
'';
propagatedBuildInputs = with py.pkgs; [
propagatedBuildInputs = with python3.pkgs; [
apprise
beautifulsoup4
brotli
chardet
cryptography
dnspython
eventlet
feedgen
flask
flask-compress
flask-expects-json
flask-login
flask-restful
flask-wtf
@@ -83,7 +63,7 @@ py.pkgs.buildPythonApplication rec {
# tests can currently not be run in one pytest invocation and without docker
doCheck = false;
nativeCheckInputs = with py.pkgs; [
nativeCheckInputs = with python3.pkgs; [
pytest-flask
pytestCheckHook
];
+2
View File
@@ -3495,6 +3495,8 @@ self: super: with self; {
flask_elastic = callPackage ../development/python-modules/flask-elastic { };
flask-expects-json = callPackage ../development/python-modules/flask-expects-json { };
flask-gravatar = callPackage ../development/python-modules/flask-gravatar { };
flask-httpauth = callPackage ../development/python-modules/flask-httpauth { };