ragb/provisioning/python.nix

21 lines
415 B
Nix
Raw Permalink Normal View History

2024-10-10 01:38:42 +02:00
{ 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
])