Loading pkgs/development/python-modules/django-currentuser/default.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub , python3 , pythonOlder , django , hatchling , pyhamcrest }: let version = "0.6.1"; in buildPythonPackage { pname = "django-currentuser"; inherit version; pyproject = true; src = fetchFromGitHub { owner = "zsoldosp"; repo = "django-currentuser"; rev = "v${version}"; hash = "sha256-sxt4ZMkaFANINd1faIA5pqP8UoDMXElM3unsxcJU/ag="; }; disabled = pythonOlder "3.8"; nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pyhamcrest ]; preCheck = '' DJANGO_SETTINGS_MODULE="settings" PYTHONPATH="tests:$PYTHONPATH" ''; checkPhase = '' runHook preCheck ${python3.interpreter} manage.py test testapp runHook postCheck ''; meta = with lib; { description = "Conveniently store reference to request user on thread/db level"; homepage = "https://github.com/zsoldosp/django-currentuser"; changelog = "https://github.com/zsoldosp/django-currentuser/#release-notes"; license = licenses.bsd3; maintainers = with maintainers; [ augustebaum ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -3019,6 +3019,8 @@ self: super: with self; { django-csp = callPackage ../development/python-modules/django-csp { }; django-currentuser = callPackage ../development/python-modules/django-currentuser { }; django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { }; django-dynamic-preferences = callPackage ../development/python-modules/django-dynamic-preferences { }; Loading Loading
pkgs/development/python-modules/django-currentuser/default.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub , python3 , pythonOlder , django , hatchling , pyhamcrest }: let version = "0.6.1"; in buildPythonPackage { pname = "django-currentuser"; inherit version; pyproject = true; src = fetchFromGitHub { owner = "zsoldosp"; repo = "django-currentuser"; rev = "v${version}"; hash = "sha256-sxt4ZMkaFANINd1faIA5pqP8UoDMXElM3unsxcJU/ag="; }; disabled = pythonOlder "3.8"; nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pyhamcrest ]; preCheck = '' DJANGO_SETTINGS_MODULE="settings" PYTHONPATH="tests:$PYTHONPATH" ''; checkPhase = '' runHook preCheck ${python3.interpreter} manage.py test testapp runHook postCheck ''; meta = with lib; { description = "Conveniently store reference to request user on thread/db level"; homepage = "https://github.com/zsoldosp/django-currentuser"; changelog = "https://github.com/zsoldosp/django-currentuser/#release-notes"; license = licenses.bsd3; maintainers = with maintainers; [ augustebaum ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -3019,6 +3019,8 @@ self: super: with self; { django-csp = callPackage ../development/python-modules/django-csp { }; django-currentuser = callPackage ../development/python-modules/django-currentuser { }; django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { }; django-dynamic-preferences = callPackage ../development/python-modules/django-dynamic-preferences { }; Loading