Use django 4
This commit is contained in:
parent
b05ead45c6
commit
ab494c4820
1 changed files with 9 additions and 2 deletions
11
shell.nix
11
shell.nix
|
@ -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
|
||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue