From 43abebb728fcf9e3d74ff75841776f7d598210d4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 30 Dec 2022 23:06:42 +0100 Subject: [PATCH] python310Packages.django_hijack: add changelog to meta --- .../python-modules/django-hijack/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/django-hijack/default.nix b/pkgs/development/python-modules/django-hijack/default.nix index 0c8de7f2b6f6..ece85f9a45b8 100644 --- a/pkgs/development/python-modules/django-hijack/default.nix +++ b/pkgs/development/python-modules/django-hijack/default.nix @@ -14,25 +14,38 @@ buildPythonPackage rec { # the wheel comes with pre-built assets, allowing us to avoid fighting # with npm/webpack/gettext to build them ourselves. format = "wheel"; + src = fetchPypi { inherit version format; pname = "django_hijack"; dist = "py3"; python = "py3"; - sha256 = "sha256-xFPZ03II1814+bZ5gx7GD/AxYMiLuH6awfSeXEraOHQ="; + hash = "sha256-xFPZ03II1814+bZ5gx7GD/AxYMiLuH6awfSeXEraOHQ="; }; - propagatedBuildInputs = [ django django_compat ]; + propagatedBuildInputs = [ + django + django_compat + ]; + + checkInputs = [ + pytestCheckHook + pytest-django + ]; - checkInputs = [ pytestCheckHook pytest-django ]; preCheck = '' export DJANGO_SETTINGS_MODULE='hijack.tests.test_app.settings' ''; - pytestFlagsArray = [ "--pyargs" "hijack" ]; + + pytestFlagsArray = [ + "--pyargs" + "hijack" + ]; meta = with lib; { description = "Allows superusers to hijack (=login as) and work on behalf of another user"; homepage = "https://github.com/arteria/django-hijack"; + changelog = "https://github.com/django-hijack/django-hijack/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ ris ]; };