forked from mirrors/nixpkgs
changedetection-io: 0.39.22.1 -> 0.40.3
This commit is contained in:
parent
3279cb4433
commit
3057c3ad5b
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue