f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
sphinx,
|
|
setuptools-scm,
|
|
django,
|
|
redis,
|
|
celery,
|
|
boto3,
|
|
django-storages,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
mock,
|
|
gitMinimal,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-health-check";
|
|
version = "3.18.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KristianOellegaard";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+6+YxB/x4JdKUCwxxe+YIc+r1YAzngFUHiS6atupWM8=";
|
|
};
|
|
|
|
buildInputs = [
|
|
sphinx
|
|
django
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
gitMinimal
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
boto3
|
|
django-storages
|
|
pytest-django
|
|
pytestCheckHook
|
|
mock
|
|
celery
|
|
redis
|
|
];
|
|
|
|
disabledTests = [
|
|
# commandline output mismatch
|
|
"test_command_with_non_existence_subset"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|