started flakes

This commit is contained in:
John Lancaster
2024-12-04 22:03:18 -06:00
parent 809d4ee6c1
commit afbc973248
4 changed files with 105 additions and 12 deletions

View File

@@ -1,13 +1,26 @@
{ pkgs ? import <nixpkgs> {}, unstable ? import <nixpkgs-unstable> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.python312
unstable.uv
unstable.python312Packages.ipykernel
unstable.python312Packages.rich
packages = [
pkgs.git
(pkgs.python312.withPackages (python-pkgs: with python-pkgs; [
pip
setuptools
wheel
# pyproject deps
aiohttp
astral
bcrypt
deepdiff
feedparser
iso8601
paho-mqtt
requests
uvloop
pydantic
click
]))
];
shellHook = ''
echo "Welcome to the Nix shell for AppDaemon development"
cd /usr/src/app
@@ -20,9 +33,5 @@ pkgs.mkShell {
alias fbuild="build && dbuild"
alias clean="cd /usr/src/app && rm -rf ./build ./dist"
alias ad="python -m appdaemon"
uv sync --all-extras --upgrade --inexact
source .venv/bin/activate
echo -e "Built and activated virtual environment\n"
'';
}