2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
sphinx,
|
|
|
|
setuptools-scm,
|
|
|
|
django,
|
|
|
|
redis,
|
|
|
|
celery,
|
2024-07-27 06:49:29 +00:00
|
|
|
boto3,
|
|
|
|
django-storages,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-django,
|
|
|
|
pytestCheckHook,
|
|
|
|
mock,
|
|
|
|
gitMinimal,
|
|
|
|
}:
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-health-check";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.18.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KristianOellegaard";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-+6+YxB/x4JdKUCwxxe+YIc+r1YAzngFUHiS6atupWM8=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
sphinx
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-07-27 06:49:29 +00:00
|
|
|
boto3
|
|
|
|
django-storages
|
2022-07-18 16:21:45 +00:00
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
celery
|
|
|
|
redis
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# commandline output mismatch
|
|
|
|
"test_command_with_non_existence_subset"
|
|
|
|
];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
# We don't want to generate coverage
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "pytest-runner" "" \
|
|
|
|
--replace "--cov=health_check" "" \
|
|
|
|
--replace "--cov-report=term" "" \
|
|
|
|
--replace "--cov-report=xml" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|