From f96ad10b9e8949ef67c2c747cfefb68027f99a5e Mon Sep 17 00:00:00 2001 From: David Wolff Date: Tue, 14 Apr 2026 15:20:26 +0200 Subject: [PATCH 1/3] python3Packages.django-health-check: 3.20.8 -> 4.4.1 --- .../django-health-check/default.nix | 62 +++++++++++-------- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/django-health-check/default.nix b/pkgs/development/python-modules/django-health-check/default.nix index e32a4a19981a..267c8a1a3b7d 100644 --- a/pkgs/development/python-modules/django-health-check/default.nix +++ b/pkgs/development/python-modules/django-health-check/default.nix @@ -1,32 +1,29 @@ { lib, - boto3, + stdenv, buildPythonPackage, - celery, - django-storages, - django, fetchFromGitHub, flit-core, flit-scm, - gitMinimal, - mock, pytest-cov-stub, pytest-django, pytestCheckHook, - redis, - sphinx, + psutil, + dnspython, + pytest-asyncio, + libredirect, }: buildPythonPackage rec { pname = "django-health-check"; - version = "3.20.8"; + version = "4.4.1"; pyproject = true; src = fetchFromGitHub { - owner = "KristianOellegaard"; + owner = "codingjoe"; repo = "django-health-check"; tag = version; - hash = "sha256-voB3shugfM/nO0vPd9yA4NOUB+E9aVcFnqG1mtfRYFc="; + hash = "sha256-ijlkgE1ZxlBPUadTeZcwIKYocZo51ZidQyQqFHOnEv4="; }; build-system = [ @@ -34,35 +31,50 @@ buildPythonPackage rec { flit-scm ]; - buildInputs = [ - sphinx - django + dependencies = [ + dnspython ]; - nativeBuildInputs = [ gitMinimal ]; - nativeCheckInputs = [ - boto3 - django-storages pytest-cov-stub pytest-django pytestCheckHook - mock - celery - redis + psutil + pytest-asyncio + libredirect.hook ]; disabledTests = [ - # commandline output mismatch - "test_command_with_non_existence_subset" + # require online DNS resolution + "test_run_check__dns_working" + "test_check_status__nonexistent_hostname" + "test_check_status__no_answer" + ] + ++ lib.optionals stdenv.isDarwin [ + # sensors_temperatures is not available on darwin: https://psutil.readthedocs.io/stable/index.html#psutil.sensors_temperatures + "TestTemperature" + # some metrics aren't available on darwin: https://psutil.readthedocs.io/stable/index.html#psutil.virtual_memory + "TestMemory" + # live_server not working on darwin + "TestHealthCheckCommand" ]; pythonImportsCheck = [ "health_check" ]; + preCheck = '' + echo "nameserver 127.0.0.1" > resolv.conf + export NIX_REDIRECTS=/etc/resolv.conf=$(realpath resolv.conf) + ''; + + preInstallCheck = '' + export PYTHONPATH=$PWD:$PYTHONPATH + export DJANGO_SETTINGS_MODULE=tests.testapp.settings + ''; + meta = { description = "Pluggable app that runs a full check on the deployment"; - homepage = "https://github.com/KristianOellegaard/django-health-check"; - changelog = "https://github.com/revsys/django-health-check/releases/tag/${src.tag}"; + homepage = "https://github.com/codingjoe/django-health-check"; + changelog = "https://github.com/codingjoe/django-health-check/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ onny ]; }; From ae479bdbb797ae33e9320753b91584dbf99ac7a0 Mon Sep 17 00:00:00 2001 From: David Wolff Date: Mon, 20 Apr 2026 20:00:27 +0200 Subject: [PATCH 2/3] python3Packages.django-health-check: add optional-dependencies --- .../django-health-check/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkgs/development/python-modules/django-health-check/default.nix b/pkgs/development/python-modules/django-health-check/default.nix index 267c8a1a3b7d..655e2724a67b 100644 --- a/pkgs/development/python-modules/django-health-check/default.nix +++ b/pkgs/development/python-modules/django-health-check/default.nix @@ -2,16 +2,22 @@ lib, stdenv, buildPythonPackage, + celery, fetchFromGitHub, flit-core, flit-scm, pytest-cov-stub, pytest-django, pytestCheckHook, + redis, psutil, dnspython, pytest-asyncio, libredirect, + confluent-kafka, + aio-pika, + httpx, + feedparser, }: buildPythonPackage rec { @@ -35,6 +41,19 @@ buildPythonPackage rec { dnspython ]; + optional-dependencies = { + psutil = [ psutil ]; + celery = [ celery ]; + kafka = [ confluent-kafka ]; + rabbitmq = [ aio-pika ]; + redis = [ redis ]; + rss = [ + httpx + feedparser + ]; + atlassian = [ httpx ]; + }; + nativeCheckInputs = [ pytest-cov-stub pytest-django From 76a052bd8c1bbfc87a80e049bfb3907a5d49e58d Mon Sep 17 00:00:00 2001 From: David Wolff Date: Tue, 21 Apr 2026 00:26:45 +0200 Subject: [PATCH 3/3] python3Packages.django-health-check: add dav-wolff to maintainers --- .../python-modules/django-health-check/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/django-health-check/default.nix b/pkgs/development/python-modules/django-health-check/default.nix index 655e2724a67b..48deb090ecd4 100644 --- a/pkgs/development/python-modules/django-health-check/default.nix +++ b/pkgs/development/python-modules/django-health-check/default.nix @@ -95,6 +95,9 @@ buildPythonPackage rec { homepage = "https://github.com/codingjoe/django-health-check"; changelog = "https://github.com/codingjoe/django-health-check/releases/tag/${src.tag}"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ onny ]; + maintainers = with lib.maintainers; [ + onny + dav-wolff + ]; }; }