Add python template
This commit is contained in:
parent
d453e0a9c6
commit
417793580b
4 changed files with 35 additions and 114 deletions
28
template/python/flake.nix
Normal file
28
template/python/flake.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
flake-utils,
|
||||
nixpkgs,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
(
|
||||
python3.withPackages (pyPkgs:
|
||||
with pyPkgs; [
|
||||
pylsp-mypy
|
||||
python-lsp-ruff
|
||||
python-lsp-server
|
||||
])
|
||||
)
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue