Merge pull request #282912 from phaer/healthchecks-update

healthchecks: 2.10 -> 3.3
This commit is contained in:
Sandro 2024-04-07 18:01:20 +02:00 committed by GitHub
commit 0f3f375722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 38 additions and 6 deletions

View File

@ -213,8 +213,7 @@ in
preStart = '' preStart = ''
${pkg}/opt/healthchecks/manage.py collectstatic --no-input ${pkg}/opt/healthchecks/manage.py collectstatic --no-input
${pkg}/opt/healthchecks/manage.py remove_stale_contenttypes --no-input ${pkg}/opt/healthchecks/manage.py remove_stale_contenttypes --no-input
${pkg}/opt/healthchecks/manage.py compress '' + lib.optionalString (cfg.settings.DEBUG != "True") "${pkg}/opt/healthchecks/manage.py compress";
'';
serviceConfig = commonConfig // { serviceConfig = commonConfig // {
Restart = "always"; Restart = "always";

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "oncalendar";
version = "1.0";
src = fetchFromGitHub {
owner = "cuu508";
repo = "oncalendar";
rev = "refs/tags/v${version}";
hash = "sha256-eQYxOnL4/TJbY/nijcPl8TqK2MrwcdISKGfZQoI7828=";
};
nativeBuildInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "oncalendar" ];
meta = with lib; {
description = "A systemd OnCalendar expression parser and evaluator";
homepage = "https://github.com/cuu508/oncalendar";
license = licenses.bsd3;
maintainers = with maintainers; [ phaer ];
};
}

View File

@ -7,32 +7,35 @@
let let
py = python3.override { py = python3.override {
packageOverrides = final: prev: { packageOverrides = final: prev: {
django = prev.django_4; django = prev.django_5;
}; };
}; };
in in
py.pkgs.buildPythonApplication rec { py.pkgs.buildPythonApplication rec {
pname = "healthchecks"; pname = "healthchecks";
version = "2.10"; version = "3.3";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "healthchecks"; owner = "healthchecks";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-1x+pYMHaKgLFWcL1axOv/ok1ebs0I7Q+Q6htncmgJzU="; sha256 = "sha256-XQ8nr9z9Yjwr1irExIgYiGX2knMXX701i6BwvXsVP+E=";
}; };
propagatedBuildInputs = with py.pkgs; [ propagatedBuildInputs = with py.pkgs; [
aiosmtpd
apprise apprise
cron-descriptor
cronsim cronsim
django django
django-compressor django-compressor
django-stubs-ext
fido2 fido2
minio minio
oncalendar
psycopg2 psycopg2
pycurl pycurl
pydantic
pyotp pyotp
segno segno
statsd statsd

View File

@ -8965,6 +8965,8 @@ self: super: with self; {
omrdatasettools = callPackage ../development/python-modules/omrdatasettools { }; omrdatasettools = callPackage ../development/python-modules/omrdatasettools { };
oncalendar = callPackage ../development/python-modules/oncalendar { };
ondilo = callPackage ../development/python-modules/ondilo { }; ondilo = callPackage ../development/python-modules/ondilo { };
onetimepass = callPackage ../development/python-modules/onetimepass { }; onetimepass = callPackage ../development/python-modules/onetimepass { };