Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-health-check / default.nix
blobf4bb2db23c17b85629d02ae5e05895905fccee74
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , sphinx
5 , setuptools-scm
6 , django
7 , redis
8 , celery
9 , pytest-django
10 , pytestCheckHook
11 , mock
12 , gitMinimal }:
14 buildPythonPackage rec {
15   pname = "django-health-check";
16   version = "3.17.0";
18   src = fetchFromGitHub {
19     owner = "KristianOellegaard";
20     repo = pname;
21     rev = "refs/tags/${version}";
22     hash = "sha256-f87dgB2pDc+A0h41FX13qTj6Zzw5I4QwsDoC6yPkvAE=";
23     leaveDotGit = true;
24   };
26   buildInputs = [
27     sphinx
28     django
29   ];
31   nativeBuildInputs = [
32     setuptools-scm
33     gitMinimal
34   ];
36   nativeCheckInputs = [
37     pytest-django
38     pytestCheckHook
39     mock
40     celery
41     redis
42   ];
44   postPatch = ''
45     # We don't want to generate coverage
46     substituteInPlace setup.cfg \
47       --replace "pytest-runner" "" \
48       --replace "--cov=health_check" "" \
49       --replace "--cov-report=term" "" \
50       --replace "--cov-report=xml" ""
51   '';
53   pythonImportsCheck = [ "health_check" ];
55   meta = with lib; {
56     description = "Pluggable app that runs a full check on the deployment";
57     homepage = "https://github.com/KristianOellegaard/django-health-check";
58     license = licenses.mit;
59     maintainers = with maintainers; [ onny ];
60   };