File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 3
3
NPM_CONFIG_UPDATE_NOTIFIER = ' false'
4
4
NPM_CONFIG_FUND = ' false'
5
5
6
+ # Python configuration
7
+ PYTHONUNBUFFERED = ' 1'
8
+ PYTHONDONTWRITEBYTECODE = ' 1'
9
+ POETRY_VERSION = ' 1.4.2' # Optional: specify Poetry version if you're using it
10
+ PYTHON_VERSION = ' 3.11' # Specify your desired Python version
11
+
12
+ [phases .setup ]
13
+ nixPkgs = [
14
+ ' python311' , # Python 3.11
15
+ ' python311Packages.pip' ,
16
+ ' python311Packages.setuptools' ,
17
+ ' python311Packages.wheel' ,
18
+ ]
19
+
6
20
[phases .caddy ]
7
21
dependsOn = [' setup' ]
8
22
nixpkgsArchive = ' ba913eda2df8eb72147259189d55932012df6301'
9
23
nixPkgs = [' caddy' ]
10
24
25
+ [phases .install ]
26
+ dependsOn = [' setup' ]
27
+ cmds = [
28
+ ' python -m pip install --upgrade pip' ,
29
+ # Add your pip install commands here, for example:
30
+ # 'pip install -r requirements.txt'
31
+ ]
32
+
11
33
[phases .fmt ]
12
34
dependsOn = [' caddy' ]
13
35
cmds = [' caddy fmt --overwrite Caddyfile' ]
You can’t perform that action at this time.
0 commit comments