1{
2 lib,
3 boto3,
4 buildPythonPackage,
5 celery,
6 django-storages,
7 django,
8 fetchFromGitHub,
9 gitMinimal,
10 mock,
11 pytest-cov-stub,
12 pytest-django,
13 pytestCheckHook,
14 redis,
15 setuptools-scm,
16 sphinx,
17}:
18
19buildPythonPackage rec {
20 pname = "django-health-check";
21 version = "3.18.3";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "KristianOellegaard";
26 repo = "django-health-check";
27 tag = version;
28 hash = "sha256-+6+YxB/x4JdKUCwxxe+YIc+r1YAzngFUHiS6atupWM8=";
29 };
30
31 build-system = [ setuptools-scm ];
32
33 buildInputs = [
34 sphinx
35 django
36 ];
37
38 nativeBuildInputs = [ gitMinimal ];
39
40 nativeCheckInputs = [
41 boto3
42 django-storages
43 pytest-cov-stub
44 pytest-django
45 pytestCheckHook
46 mock
47 celery
48 redis
49 ];
50
51 disabledTests = [
52 # commandline output mismatch
53 "test_command_with_non_existence_subset"
54 ];
55
56 pythonImportsCheck = [ "health_check" ];
57
58 meta = with lib; {
59 description = "Pluggable app that runs a full check on the deployment";
60 homepage = "https://github.com/KristianOellegaard/django-health-check";
61 changelog = "https://github.com/revsys/django-health-check/releases/tag/${version}";
62 license = licenses.mit;
63 maintainers = with maintainers; [ onny ];
64 };
65}