mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-23 13:45:49 +02:00
python310Packages.django-health-check: init at 3.16.5
This commit is contained in:
parent
67258a89dd
commit
b5ddb31b52
|
@ -0,0 +1,61 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, sphinx
|
||||||
|
, setuptools-scm
|
||||||
|
, django
|
||||||
|
, redis
|
||||||
|
, celery
|
||||||
|
, pytest-django
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
, gitMinimal }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "django-health-check";
|
||||||
|
version = "3.16.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "KristianOellegaard";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-Jfzi+o4ja2sNCSPfX9eRq3WGid1gcfehhayAD1L4f2U=";
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2388,6 +2388,8 @@ in {
|
||||||
|
|
||||||
django-haystack = callPackage ../development/python-modules/django-haystack { };
|
django-haystack = callPackage ../development/python-modules/django-haystack { };
|
||||||
|
|
||||||
|
django-health-check = callPackage ../development/python-modules/django-health-check { };
|
||||||
|
|
||||||
django_hijack_admin = callPackage ../development/python-modules/django-hijack-admin { };
|
django_hijack_admin = callPackage ../development/python-modules/django-hijack-admin { };
|
||||||
|
|
||||||
django_hijack = callPackage ../development/python-modules/django-hijack { };
|
django_hijack = callPackage ../development/python-modules/django-hijack { };
|
||||||
|
|
Loading…
Reference in a new issue