Tune editor

This commit is contained in:
marc
2025-03-16 18:45:08 +01:00
parent a85efd0838
commit 6c83d11e5b
33 changed files with 960 additions and 312 deletions

View File

@@ -13,41 +13,51 @@
# custom-python = import ./custom-python.nix { inherit pkgs; };
coreDependencies = with pythonPackages; [
# IDE tools
pylsp-mypy
isort
autopep8
# Development tools
pytest
setuptools
ipython
];
projectDependencies = with pythonPackages; [
# API
fastapi
python-multipart
jinja2
uvicorn
# Files
magic
# Auth
pyjwt
# Search
levenshtein
# Test
pytest
];
pythonEnv = python.withPackages (
ps: projectDependencies ++ coreDependencies
);
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
# nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
# Core python dependencies
# Python dependencies
python
pythonPackages.pip
pythonPackages.virtualenv
# Other dependencies
nodePackages_latest.tailwindcss
# IDE tools
pythonPackages.pylsp-mypy
pythonPackages.isort
pythonPackages.autopep8
nodePackages.pyright
# Development tools
pythonEnv
pyright
black
pythonPackages.ipython
pythonPackages.pytest
pythonPackages.setuptools
] ++ projectDependencies;
# Project dependencies
nodePackages_latest.tailwindcss
];
shellHook = ''
export PYTHONPATH=${pythonEnv}/${python.sitePackages}:$PYTHONPATH
'';
};
});
}