mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
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:
parent
3e0ec81d9c
commit
80f0ffd7d2
|
|
@ -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")
|
||||
)
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue