Evie Litherland-Smith
e6873dbd77
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
25 lines
362 B
Nix
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;
|
|
}
|