From 80f0ffd7d2e03f219887ad9b092e1458c40b69f0 Mon Sep 17 00:00:00 2001 From: phaer Date: Thu, 28 Aug 2025 22:04:10 +0200 Subject: [PATCH] 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. --- nixos/tests/web-apps/healthchecks.nix | 11 ++++++++--- pkgs/by-name/he/healthchecks/package.nix | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/nixos/tests/web-apps/healthchecks.nix b/nixos/tests/web-apps/healthchecks.nix index 6915a37975cb..2f91cbad4c00 100644 --- a/nixos/tests/web-apps/healthchecks.nix +++ b/nixos/tests/web-apps/healthchecks.nix @@ -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") + ) ''; } diff --git a/pkgs/by-name/he/healthchecks/package.nix b/pkgs/by-name/he/healthchecks/package.nix index 2bc9f137a515..4fada25f43a9 100644 --- a/pkgs/by-name/he/healthchecks/package.nix +++ b/pkgs/by-name/he/healthchecks/package.nix @@ -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