gestioCOF/shell.nix
2024-12-28 17:23:04 +01:00

30 lines
474 B
Nix

{
pkgs ? import <nixpkgs> { },
...
}:
let
python = pkgs.python313;
in
pkgs.mkShell {
shellHook = ''
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
virtualenv .venv
source .venv/bin/activate
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
'';
packages =
[ python ]
++ (with python.pkgs; [
django-types
pip
virtualenv
python-ldap
]);
allowSubstitutes = false;
}