From ab494c482003fcf1cd998c398dee14fc7fc34c43 Mon Sep 17 00:00:00 2001 From: sinavir Date: Thu, 9 Feb 2023 17:27:03 +0100 Subject: [PATCH] Use django 4 --- shell.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index b8de13a..180c3b4 100644 --- a/shell.nix +++ b/shell.nix @@ -1,12 +1,19 @@ { pkgs ? import ./nix {} }: +let + python = pkgs.python310.override { + packageOverrides = self: super: { + django = super.django_4; + }; + }; +in pkgs.mkShell { buildInputs = [ - (pkgs.python310.withPackages (ps: [ + (python.withPackages (ps: [ ps.django ps.black ps.isort ps.djangorestframework - ps.django-extensions + # (ps.django-extensions.override { inherit django; }) # ps.django-compressor ])) ];