2025-03-03 17:26:36 +01:00

66 lines
1.2 KiB
Nix

{
lib,
boto3,
buildPythonPackage,
celery,
django-storages,
django,
fetchFromGitHub,
gitMinimal,
mock,
pytest-cov-stub,
pytest-django,
pytestCheckHook,
redis,
setuptools-scm,
sphinx,
}:
buildPythonPackage rec {
pname = "django-health-check";
version = "3.18.3";
pyproject = true;
src = fetchFromGitHub {
owner = "KristianOellegaard";
repo = "django-health-check";
tag = version;
hash = "sha256-+6+YxB/x4JdKUCwxxe+YIc+r1YAzngFUHiS6atupWM8=";
};
build-system = [ setuptools-scm ];
buildInputs = [
sphinx
django
];
nativeBuildInputs = [ gitMinimal ];
nativeCheckInputs = [
boto3
django-storages
pytest-cov-stub
pytest-django
pytestCheckHook
mock
celery
redis
];
disabledTests = [
# commandline output mismatch
"test_command_with_non_existence_subset"
];
pythonImportsCheck = [ "health_check" ];
meta = with lib; {
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/${version}";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}