Tune editor
This commit is contained in:
46
flake.nix
46
flake.nix
@@ -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
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user