21 lines
415 B
Nix
21 lines
415 B
Nix
|
{ lib, python3, debug ? false }:
|
||
|
let
|
||
|
python = python3.override {
|
||
|
packageOverrides = self: super: {
|
||
|
django = super.django_4;
|
||
|
authens = self.callPackage ./authens.nix { };
|
||
|
pythoncas = self.callPackage ./python-cas.nix { };
|
||
|
};
|
||
|
};
|
||
|
in
|
||
|
python.withPackages (ps: [
|
||
|
ps.django
|
||
|
ps.gunicorn
|
||
|
ps.authens
|
||
|
ps.pyjwt
|
||
|
] ++ lib.optionals debug [
|
||
|
ps.django-debug-toolbar
|
||
|
ps.black
|
||
|
ps.isort
|
||
|
])
|