healtchecks: 3.9 -> 3.11

Also, add new pyjwt dependency.

Test currently fail at the very last check, suggesting that the
services does run but that our wrapper for manage.py is currently broken.
This commit is contained in:
phaer 2025-08-28 22:04:10 +02:00
parent 3e0ec81d9c
commit 80f0ffd7d2
2 changed files with 11 additions and 5 deletions

View file

@ -36,9 +36,14 @@
with subtest("Manage script works"):
# "shell" sucommand should succeed, needs python in PATH.
assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | sudo -u healthchecks healthchecks-manage shell")
t.assertIn(
"\nfoo\n",
machine.succeed("echo 'print(\"foo\")' | sudo -u healthchecks healthchecks-manage shell")
)
# Shouldn't fail if not called by healthchecks user
assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | healthchecks-manage shell")
t.assertIn(
"\nfoo\n",
machine.succeed("echo 'print(\"foo\")' | healthchecks-manage shell")
)
'';
}

View file

@ -15,14 +15,14 @@ let
in
py.pkgs.buildPythonApplication rec {
pname = "healthchecks";
version = "3.9";
version = "3.11";
format = "other";
src = fetchFromGitHub {
owner = "healthchecks";
repo = "healthchecks";
tag = "v${version}";
sha256 = "sha256-78Ku7yYhgIZ+uIMPKkExIXUOKmfiRMjEiBm2SugyD+s=";
sha256 = "sha256-s8qhCp+6d2rixgrduWXopiWEpBCLVKkoDjTYT0eLSN8=";
};
propagatedBuildInputs = with py.pkgs; [
@ -38,6 +38,7 @@ py.pkgs.buildPythonApplication rec {
psycopg2
pycurl
pydantic
pyjwt
pyotp
segno
statsd