synix/templates/dev/flask-hello/nix/package.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

31 lines
443 B
Nix

{
python3,
...
}:
python3.pkgs.buildPythonApplication rec {
pname = "flask_hello";
version = "0.1.0";
pyproject = true;
build-system = [ python3.pkgs.setuptools ];
dependencies = with python3.pkgs; [
flask
];
src = ../.;
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r $src/${pname} $out/
cp $src/app.py $out/
chmod +x $out/app.py
runHook postInstall
'';
doCheck = false;
}