2023-05-19 14:59:19 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { }, ... }:
|
2022-10-03 10:34:06 +02:00
|
|
|
|
2023-05-19 14:59:19 +02:00
|
|
|
pkgs.mkShell {
|
|
|
|
shellHook = ''
|
|
|
|
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
|
2022-10-03 10:34:06 +02:00
|
|
|
|
2023-05-19 14:59:19 +02:00
|
|
|
virtualenv .venv
|
|
|
|
source .venv/bin/activate
|
2023-05-19 15:12:51 +02:00
|
|
|
|
|
|
|
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
|
2022-10-03 10:34:06 +02:00
|
|
|
'';
|
|
|
|
|
2023-05-19 14:59:19 +02:00
|
|
|
packages = with pkgs; [
|
|
|
|
python38
|
|
|
|
python38Packages.pip
|
|
|
|
python38Packages.virtualenv
|
|
|
|
python38Packages.python-ldap
|
|
|
|
];
|
|
|
|
|
|
|
|
allowSubstitutes = false;
|
2022-10-03 10:34:06 +02:00
|
|
|
}
|