2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-10-21 18:38:19 +00:00
|
|
|
pname = "changedetection-io";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.45.24";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgtlmoon";
|
|
|
|
repo = "changedetection.io";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-VltrcTbX95agV9JGV2KYGeZ6iUlgzrOsjShsUpiGfes=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
2024-06-05 15:53:02 +00:00
|
|
|
--replace "apprise~=1.8.0" "apprise" \
|
2022-12-02 08:20:57 +00:00
|
|
|
--replace "cryptography~=3.4" "cryptography" \
|
2024-07-27 06:49:29 +00:00
|
|
|
--replace "dnspython==2.6.1" "dnspython" \
|
2023-10-19 13:55:26 +00:00
|
|
|
--replace "pytest ~=7.2" "" \
|
2023-03-15 16:39:30 +00:00
|
|
|
--replace "pytest-flask ~=1.2" "" \
|
2024-01-02 11:29:13 +00:00
|
|
|
--replace "selenium~=4.14.0" "selenium" \
|
|
|
|
--replace "werkzeug~=3.0" "werkzeug"
|
2022-10-21 18:38:19 +00:00
|
|
|
'';
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-12-02 08:20:57 +00:00
|
|
|
apprise
|
|
|
|
beautifulsoup4
|
|
|
|
brotli
|
|
|
|
chardet
|
|
|
|
cryptography
|
2023-03-15 16:39:30 +00:00
|
|
|
dnspython
|
2022-10-21 18:38:19 +00:00
|
|
|
eventlet
|
|
|
|
feedgen
|
2022-12-02 08:20:57 +00:00
|
|
|
flask
|
2023-03-15 16:39:30 +00:00
|
|
|
flask-compress
|
2024-04-21 15:54:59 +00:00
|
|
|
flask-cors
|
2023-03-15 16:39:30 +00:00
|
|
|
flask-expects-json
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-login
|
2023-10-19 13:55:26 +00:00
|
|
|
flask-paginate
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-restful
|
2022-12-02 08:20:57 +00:00
|
|
|
flask-wtf
|
2024-07-27 06:49:29 +00:00
|
|
|
greenlet
|
2022-12-02 08:20:57 +00:00
|
|
|
inscriptis
|
|
|
|
jinja2
|
|
|
|
jinja2-time
|
2022-10-21 18:38:19 +00:00
|
|
|
jsonpath-ng
|
|
|
|
jq
|
2024-02-29 20:09:43 +00:00
|
|
|
loguru
|
2022-10-21 18:38:19 +00:00
|
|
|
lxml
|
2022-12-02 08:20:57 +00:00
|
|
|
paho-mqtt
|
|
|
|
playwright
|
2024-04-21 15:54:59 +00:00
|
|
|
pyee
|
|
|
|
pyppeteer
|
2022-12-02 08:20:57 +00:00
|
|
|
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-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-21 18:38:19 +00:00
|
|
|
pytest-flask
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-19 13:55:26 +00:00
|
|
|
description = "Self-hosted free open source website change detection tracking, monitoring and notification service";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/dgtlmoon/changedetection.io";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/dgtlmoon/changedetection.io/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ mikaelfangel ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "changedetection.io";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|