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"): with subtest("Manage script works"):
# "shell" sucommand should succeed, needs python in PATH. # "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 # 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 in
py.pkgs.buildPythonApplication rec { py.pkgs.buildPythonApplication rec {
pname = "healthchecks"; pname = "healthchecks";
version = "3.9"; version = "3.11";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "healthchecks"; owner = "healthchecks";
repo = "healthchecks"; repo = "healthchecks";
tag = "v${version}"; tag = "v${version}";
sha256 = "sha256-78Ku7yYhgIZ+uIMPKkExIXUOKmfiRMjEiBm2SugyD+s="; sha256 = "sha256-s8qhCp+6d2rixgrduWXopiWEpBCLVKkoDjTYT0eLSN8=";
}; };
propagatedBuildInputs = with py.pkgs; [ propagatedBuildInputs = with py.pkgs; [
@@ -38,6 +38,7 @@ py.pkgs.buildPythonApplication rec {
psycopg2 psycopg2
pycurl pycurl
pydantic pydantic
pyjwt
pyotp pyotp
segno segno
statsd statsd