Files
nixpkgs/pkgs/development/python-modules/django-debug-toolbar/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
pythonOlder,
buildPythonPackage,
# build-system
hatchling,
# dependencies
django,
sqlparse,
# tests
django-csp,
html5lib,
jinja2,
pygments,
}:
buildPythonPackage rec {
pname = "django-debug-toolbar";
version = "6.0.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-debug-toolbar";
tag = version;
hash = "sha256-ZNevSqEpTdk0cZeMzOpbtatEiV9SAsVUlRb9YddcAGY=";
};
postPatch = ''
# not actually used and we don't have django-template-partials packaged
sed -i "/template_partials/d" tests/settings.py
'';
build-system = [ hatchling ];
dependencies = [
django
sqlparse
];
env = {
DB_BACKEND = "sqlite3";
DB_NAME = ":memory:";
DJANGO_SETTINGS_MODULE = "tests.settings";
};
nativeCheckInputs = [
django-csp
html5lib
jinja2
pygments
];
checkPhase = ''
runHook preCheck
python -m django test tests
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 = [ ];
};
}