2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-10-30 15:09:59 +00:00
|
|
|
, fetchurl
|
2022-10-21 18:38:19 +00:00
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
py = python3.override {
|
|
|
|
packageOverrides = final: prev: {
|
|
|
|
flask = prev.flask.overridePythonAttrs (old: rec {
|
|
|
|
version = "2.1.3";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "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;
|
|
|
|
sha256 = "sha256-uGP4/wV8UiFktgZ8niiwQRYbS+W6TQ2s7qpQoWOCLTw=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
py.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "changedetection-io";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.39.22.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgtlmoon";
|
|
|
|
repo = "changedetection.io";
|
|
|
|
rev = version;
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-qK44m64/skmeoBgHToTyOpeWUF2kgks10OHoAoLim+k=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "bs4" "beautifulsoup4" \
|
2022-12-02 08:20:57 +00:00
|
|
|
--replace "cryptography~=3.4" "cryptography" \
|
|
|
|
--replace "selenium~=4.1.0" "selenium"
|
2022-10-21 18:38:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with py.pkgs; [
|
2022-12-02 08:20:57 +00:00
|
|
|
apprise
|
|
|
|
beautifulsoup4
|
|
|
|
brotli
|
|
|
|
chardet
|
|
|
|
cryptography
|
2022-10-21 18:38:19 +00:00
|
|
|
eventlet
|
|
|
|
feedgen
|
2022-12-02 08:20:57 +00:00
|
|
|
flask
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-login
|
|
|
|
flask-restful
|
2022-12-02 08:20:57 +00:00
|
|
|
flask-wtf
|
|
|
|
inscriptis
|
|
|
|
jinja2
|
|
|
|
jinja2-time
|
2022-10-21 18:38:19 +00:00
|
|
|
jsonpath-ng
|
|
|
|
jq
|
|
|
|
lxml
|
2022-12-02 08:20:57 +00:00
|
|
|
paho-mqtt
|
|
|
|
pillow
|
|
|
|
playwright
|
|
|
|
pytz
|
|
|
|
requests
|
2022-10-21 18:38:19 +00:00
|
|
|
selenium
|
2022-12-02 08:20:57 +00:00
|
|
|
setuptools
|
|
|
|
timeago
|
|
|
|
urllib3
|
|
|
|
validators
|
2022-10-21 18:38:19 +00:00
|
|
|
werkzeug
|
2022-12-02 08:20:57 +00:00
|
|
|
wtforms
|
2022-10-21 18:38:19 +00:00
|
|
|
] ++ requests.optional-dependencies.socks;
|
|
|
|
|
|
|
|
# tests can currently not be run in one pytest invocation and without docker
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with py.pkgs; [
|
2022-10-21 18:38:19 +00:00
|
|
|
pytest-flask
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dgtlmoon/changedetection.io";
|
|
|
|
description = "Simplest self-hosted free open source website change detection tracking, monitoring and notification service";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|