hackens-orga/provisioning/python.nix

21 lines
453 B
Nix
Raw Normal View History

2023-03-07 18:34:43 +01:00
{ pkgs ? import ../nix { }, debug ? false }:
let
python = pkgs.python310.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
2023-03-07 23:02:29 +01:00
ps.gunicorn
2023-03-07 18:34:43 +01:00
ps.djangorestframework
ps.authens
] ++ pkgs.lib.optionals debug [
ps.django-debug-toolbar
ps.black
ps.isort
])