From b8308f143bab090cbc9a94b246e958274028db63 Mon Sep 17 00:00:00 2001 From: yuu Date: Mon, 1 Nov 2021 10:35:56 -0300 Subject: [PATCH 1/2] maintainers: add yuu --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 628a42ce1f00..65b97bae1900 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12050,6 +12050,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"; From ffc27bb0db8b3997b3c075504de95fa847866326 Mon Sep 17 00:00:00 2001 From: yuu Date: Mon, 1 Nov 2021 10:38:51 -0300 Subject: [PATCH 2/2] python3Packages.django-debug-toolbar: init at 3.2.2 --- .../django-debug-toolbar/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/django-debug-toolbar/default.nix diff --git a/pkgs/development/python-modules/django-debug-toolbar/default.nix b/pkgs/development/python-modules/django-debug-toolbar/default.nix new file mode 100644 index 000000000000..68451cc8d8db --- /dev/null +++ b/pkgs/development/python-modules/django-debug-toolbar/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8d00d957f7ce..cfba7d4fea71 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };