Skip to content

Commit 6f4b968

Browse files
committed
Poetry
1 parent 1003cf5 commit 6f4b968

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

flake.nix

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99

1010
outputs =
1111
{
12+
self,
1213
flake-parts,
1314
...
1415
}@inputs:
15-
flake-parts.lib.mkFlake { inherit inputs; } (
16+
flake-parts.lib.mkFlake { inherit inputs self; } (
1617
top@{ ... }:
1718
{
1819
imports = [
@@ -51,10 +52,13 @@
5152

5253
pythonDev = myPython.withPackages (p: [
5354
p.black
55+
p.cryptography
56+
p.flask
57+
p.freezegun
5458
p.gunicorn
5559
p.isort
56-
p.snapbin-editable
5760
p.mypy
61+
p.peewee
5862
p.pylint
5963
p.pylsp-mypy
6064
p.pytest
@@ -63,10 +67,13 @@
6367
p.python-lsp-ruff
6468
p.python-lsp-server
6569
p.ruff
70+
p.snapbin-editable
6671
]);
67-
pythonProd = myPython.withPackages (p: [
72+
pythonProd = pkgs.python312.withPackages (p: [
73+
p.cryptography
74+
p.flask
6875
p.gunicorn
69-
p.snapbin-editable
76+
p.peewee
7077
]);
7178
in
7279
{
@@ -93,7 +100,10 @@
93100
tag = "latest";
94101
copyToRoot = pkgs.buildEnv {
95102
name = "image-root";
96-
paths = [ pythonProd ];
103+
paths = [
104+
pythonProd
105+
self
106+
];
97107
};
98108
config = {
99109
Cmd = [

0 commit comments

Comments
 (0)