Use django 4

This commit is contained in:
sinavir 2023-02-09 17:27:03 +01:00
parent b05ead45c6
commit ab494c4820

View file

@ -1,12 +1,19 @@
{ pkgs ? import ./nix {} }: { pkgs ? import ./nix {} }:
let
python = pkgs.python310.override {
packageOverrides = self: super: {
django = super.django_4;
};
};
in
pkgs.mkShell { pkgs.mkShell {
buildInputs = [ buildInputs = [
(pkgs.python310.withPackages (ps: [ (python.withPackages (ps: [
ps.django ps.django
ps.black ps.black
ps.isort ps.isort
ps.djangorestframework ps.djangorestframework
ps.django-extensions # (ps.django-extensions.override { inherit django; })
# ps.django-compressor # ps.django-compressor
])) ]))
]; ];