2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, sphinx
|
|
|
|
, setuptools-scm
|
|
|
|
, django
|
|
|
|
, redis
|
|
|
|
, celery
|
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, gitMinimal }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-health-check";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.17.0";
|
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}";
|
|
|
|
hash = "sha256-f87dgB2pDc+A0h41FX13qTj6Zzw5I4QwsDoC6yPkvAE=";
|
2022-07-18 16:21:45 +00:00
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
sphinx
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
celery
|
|
|
|
redis
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|