Update pyshell template, remove pydefault
This commit is contained in:
parent
e7b529d7b0
commit
89ebca89eb
|
@ -9,38 +9,18 @@ nix-mode
|
|||
> "};" n
|
||||
"in" n
|
||||
> "fhs.env")
|
||||
(pydefault "let" n
|
||||
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
||||
> "pyproject-nix = import (builtins.fetchGit {" n
|
||||
> "url = \"https://github.com/pyproject-nix/pyproject.nix.git\";" n
|
||||
> "}) { inherit (pkgs) lib; };" n
|
||||
> "python = pkgs." (p "python3") ";" n
|
||||
> "project = pyproject-nix.lib.project.loadPoetryPyproject { projectRoot = ./.; };" n
|
||||
"in" n
|
||||
> "python.pkgs.buildPythonPackage (project.renderers.buildPythonPackage { inherit python; })")
|
||||
(pyshell "let" n
|
||||
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
||||
> "pyproject-nix = import (builtins.fetchGit {" n
|
||||
> "url = \"https://github.com/pyproject-nix/pyproject.nix.git\";" n
|
||||
> "}) { inherit (pkgs) lib; };" n
|
||||
> "python = pkgs." (p "python3") ";" n
|
||||
> "project = pyproject-nix.lib.project.loadPoetryPyproject { projectRoot = ./.; };" n
|
||||
> "extraPackages = (ps: with ps; [" (p "flake8 isort mypy") "]);" n
|
||||
> "pythonEnv = python3.withPackages (project.renderers.withPackages { inherit python extraPackages; });" n
|
||||
> "fix-python = (builtins.getFlake \"github:GuillaumeDesforges/fix-python\").packages.${pkgs.system}.default;" n
|
||||
> "python3 = pkgs." (p "python3") ";" n
|
||||
"in" n
|
||||
"pkgs.mkShellNoCC {" n
|
||||
> "packages = [pythonEnv];" n
|
||||
> "packages = [python3 fix-python pkgs.uv];" n
|
||||
> "shellHook = ''" n
|
||||
> "export PYTHONPATH=$(readlink -f " (p "./.") "):$PYTHONPATH" n
|
||||
> "export MPLBACKEND=" (p "TkAgg") n
|
||||
> "'';"n
|
||||
"}")
|
||||
(sal > "pkgs.fetchFromGitHub {" n
|
||||
> "owner = \"pixelifytica\";" n
|
||||
> "repo = \"simple-access-layer\";" n
|
||||
> "rev = \"7a5d43959cd28d668f92b702e4cd955e27d7b220\";" n
|
||||
> "hash = \"sha256-soZ1yDd3aVT7icXrifELJygPjNuzl0w26k/WOm5C1Gs=\";" n
|
||||
> "}")
|
||||
|
||||
;; Local Variables:
|
||||
;; mode: lisp-data
|
||||
|
|
Loading…
Reference in a new issue