blob: b4409dc04d4cb9521079c2a1c36354ff063b47e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, fetchFromGitHub
, pythonOlder
, buildPythonPackage
, python
, django
, jinja2
, sqlparse
, html5lib
}:
buildPythonPackage rec {
pname = "django-debug-toolbar";
version = "3.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jazzband";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-OZWO3tXZ+p+zKtQHCkj0kGSXpDFHFV+HqSgiJvLmMTg=";
};
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
'';
pythonImportsCheck = [
"debug_toolbar"
];
meta = with lib; {
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";
license = licenses.bsd3;
maintainers = with maintainers; [ yuu ];
};
}
|