python3Packages.django-debug-toolbar: init at 3.2.2

This commit is contained in:
yuu 2021-11-01 10:38:51 -03:00
parent b8308f143b
commit ffc27bb0db
No known key found for this signature in database
GPG key ID: 416F303B43C20AC3
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, fetchFromGitHub
, pythonOlder
, buildPythonPackage
, python
, django
, jinja2
, sqlparse
, html5lib
}:
buildPythonPackage rec {
pname = "django-debug-toolbar";
version = "3.2.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jazzband";
repo = pname;
rev = version;
sha256 = "1dgb3s449nasbnqd5xfikxrfhwwilwlgrw9nv4bfkapvkzpdszjk";
};
propagatedBuildInputs = [
django
jinja2
sqlparse
];
DB_BACKEND = "sqlite3";
DB_NAME = ":memory:";
TEST_ARGS = "tests";
DJANGO_SETTINGS_MODULE = "tests.settings";
checkInputs = [
html5lib
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m django test ${TEST_ARGS}
runHook postCheck
'';
meta = {
description = "Configurable set of panels that display debug information about the current request/response";
homepage = "https://github.com/jazzband/django-debug-toolbar";
changelog = "https://django-debug-toolbar.readthedocs.io/en/latest/changes.html";
maintainers = with lib.maintainers; [ yuu ];
license = lib.licenses.bsd3;
};
}

View file

@ -2040,6 +2040,8 @@ in {
django-csp = callPackage ../development/python-modules/django-csp { };
django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { };
django-discover-runner = callPackage ../development/python-modules/django-discover-runner { };
django-dynamic-preferences = callPackage ../development/python-modules/django-dynamic-preferences { };