nixos/system/home/programming/python/default.nix
Evie Litherland-Smith e6873dbd77 Add pyshell.nix helper function for making wrapped python shells
Just import, optionally changing python version or adding extra
packages (e.g. poetry) to the shell

Update default python env

Remove pyshell template from Emacs templates due to new change
2024-12-17 11:54:22 +00:00

25 lines
362 B
Nix

{ pkgs, ... }:
let
pythonEnv = (
pkgs.python312.withPackages (
ps: with ps; [
python-lsp-server
isort
flake8
mypy
numpy
xarray
netcdf4
matplotlib
]
)
);
in
{
home.packages = [
pkgs.ruff
pythonEnv
];
xdg.configFile."ruff/pyproject.toml".source = ./ruff.toml;
}