Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 sphinx, 6 setuptools-scm, 7 django, 8 redis, 9 celery, 10 boto3, 11 django-storages, 12 pytest-django, 13 pytestCheckHook, 14 mock, 15 gitMinimal, 16}: 17 18buildPythonPackage rec { 19 pname = "django-health-check"; 20 version = "3.18.3"; 21 format = "setuptools"; 22 23 src = fetchFromGitHub { 24 owner = "KristianOellegaard"; 25 repo = pname; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-+6+YxB/x4JdKUCwxxe+YIc+r1YAzngFUHiS6atupWM8="; 28 }; 29 30 buildInputs = [ 31 sphinx 32 django 33 ]; 34 35 nativeBuildInputs = [ 36 setuptools-scm 37 gitMinimal 38 ]; 39 40 nativeCheckInputs = [ 41 boto3 42 django-storages 43 pytest-django 44 pytestCheckHook 45 mock 46 celery 47 redis 48 ]; 49 50 disabledTests = [ 51 # commandline output mismatch 52 "test_command_with_non_existence_subset" 53 ]; 54 55 postPatch = '' 56 # We don't want to generate coverage 57 substituteInPlace setup.cfg \ 58 --replace "pytest-runner" "" \ 59 --replace "--cov=health_check" "" \ 60 --replace "--cov-report=term" "" \ 61 --replace "--cov-report=xml" "" 62 ''; 63 64 pythonImportsCheck = [ "health_check" ]; 65 66 meta = with lib; { 67 description = "Pluggable app that runs a full check on the deployment"; 68 homepage = "https://github.com/KristianOellegaard/django-health-check"; 69 license = licenses.mit; 70 maintainers = with maintainers; [ onny ]; 71 }; 72}