started flakes
This commit is contained in:
31
shell.nix
31
shell.nix
@@ -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"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user