feat(python): add python template
This commit is contained in:
parent
01bc222af3
commit
c993013203
8 changed files with 102 additions and 0 deletions
16
templates/python/flake/package.nix
Normal file
16
templates/python/flake/package.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
python3Packages
|
||||
}: let
|
||||
ps = python3Packages;
|
||||
in ps.buildPythonApplication {
|
||||
pname = "sm64pcport-for-dummies";
|
||||
version = "2025.03";
|
||||
|
||||
src = builtins.filterSource (path: _: baseNameOf path != ".git") ../.;
|
||||
|
||||
pyproject = true;
|
||||
|
||||
build-system = [
|
||||
ps.setuptools
|
||||
];
|
||||
}
|
11
templates/python/flake/shell.nix
Normal file
11
templates/python/flake/shell.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{mkShell, python3, ruff, ruff-lsp}: let
|
||||
python3' = python3.withPackages (ps: []);
|
||||
in
|
||||
mkShell {
|
||||
name = "python-env";
|
||||
packages = [
|
||||
python3'
|
||||
ruff
|
||||
ruff-lsp
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue