Merge pull request #137662 from yuuyins/django-debug-toolbar
This commit is contained in:
commit
52b6f8a6e7
3 changed files with 64 additions and 0 deletions
|
@ -12538,6 +12538,16 @@
|
|||
fingerprint = "9270 66BD 8125 A45B 4AC4 0326 6180 7181 F60E FCB2";
|
||||
}];
|
||||
};
|
||||
yuu = {
|
||||
email = "yuuyin@protonmail.com";
|
||||
github = "yuuyins";
|
||||
githubId = 86538850;
|
||||
name = "Yuu Yin";
|
||||
keys = [{
|
||||
longkeyid = "rsa4096/0x416F303B43C20AC3";
|
||||
fingerprint = "9F19 3AE8 AA25 647F FC31 46B5 416F 303B 43C2 0AC3";
|
||||
}];
|
||||
};
|
||||
yvesf = {
|
||||
email = "yvesf+nix@xapek.org";
|
||||
github = "yvesf";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -2108,6 +2108,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 { };
|
||||
|
|
Loading…
Reference in a new issue