feat(nix): Rework the python environment
This commit is contained in:
parent
8baad602c6
commit
99764928c6
1 changed files with 25 additions and 20 deletions
45
default.nix
45
default.nix
|
@ -24,6 +24,14 @@ let
|
|||
commitizen.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
python = pkgs.python312.override {
|
||||
packageOverrides =
|
||||
self: _:
|
||||
pkgs.lib.genAttrs (builtins.attrNames (builtins.readDir ./pkgs)) (
|
||||
p: self.callPackage ./pkgs/${p} { }
|
||||
);
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -35,26 +43,23 @@ in
|
|||
pkgs.dart-sass
|
||||
|
||||
# Python dependencies
|
||||
(pkgs.python312.withPackages (
|
||||
ps:
|
||||
[
|
||||
ps.daphne
|
||||
ps.django
|
||||
ps.django-allauth
|
||||
ps.django-compressor
|
||||
ps.django-debug-toolbar
|
||||
ps.django-stubs
|
||||
ps.loadcredential
|
||||
ps.ipython
|
||||
]
|
||||
++ (builtins.map (p: ps.callPackage ./pkgs/${p} { }) [
|
||||
"django-browser-reload"
|
||||
"django-bulma-forms"
|
||||
"django-sass-processor"
|
||||
"django-sass-processor-dart-sass"
|
||||
"pykanidm"
|
||||
])
|
||||
))
|
||||
(python.withPackages (ps: [
|
||||
ps.daphne
|
||||
ps.django
|
||||
ps.django-allauth
|
||||
ps.django-allauth-cas
|
||||
ps.django-browser-reload
|
||||
ps.django-bulma-forms
|
||||
ps.django-compressor
|
||||
ps.django-debug-toolbar
|
||||
ps.django-sass-processor
|
||||
ps.django-sass-processor-dart-sass
|
||||
ps.django-stubs
|
||||
ps.ipython
|
||||
ps.loadcredential
|
||||
ps.pykanidm
|
||||
ps.python-cas
|
||||
]))
|
||||
] ++ check.enabledPackages;
|
||||
|
||||
env = {
|
||||
|
|
Loading…
Reference in a new issue