diff --git a/lib/pytest-lsp/.gitignore b/lib/pytest-lsp/.gitignore index 6350e98..8b6f392 100644 --- a/lib/pytest-lsp/.gitignore +++ b/lib/pytest-lsp/.gitignore @@ -1 +1,2 @@ .coverage +result diff --git a/lib/pytest-lsp/flake.nix b/lib/pytest-lsp/flake.nix index 0812115..f527dbc 100644 --- a/lib/pytest-lsp/flake.nix +++ b/lib/pytest-lsp/flake.nix @@ -14,27 +14,36 @@ pytest-lsp-overlay = import ./nix/pytest-lsp-overlay.nix; in { - overlays.default = pytest-lsp-overlay; - - devShells = utils.lib.eachDefaultSystemMap (system: - let - pkgs = import nixpkgs { inherit system; overlays = [ pytest-lsp-overlay ]; }; - in - eachPythonVersion [ "38" "39" "310" "311" ] (pyVersion: - with pkgs; mkShell { - name = "py${pyVersion}"; - - shellHook = '' - export PYTHONPATH="./:$PYTHONPATH" - ''; - - packages = with pkgs."python${pyVersion}Packages"; [ - pygls - pytest - pytest-asyncio - ]; - } - ) - ); - }; + overlays.default = pytest-lsp-overlay; + + packages = utils.lib.eachDefaultSystemMap (system: + let + pkgs = import nixpkgs { inherit system; overlays = [ pytest-lsp-overlay ]; }; + in + eachPythonVersion [ "38" "39" "310" "311"] (pyVersion: + pkgs."python${pyVersion}Packages".pytest-lsp + ) + ); + + devShells = utils.lib.eachDefaultSystemMap (system: + let + pkgs = import nixpkgs { inherit system; overlays = [ pytest-lsp-overlay ]; }; + in + eachPythonVersion [ "38" "39" "310" "311" ] (pyVersion: + with pkgs; mkShell { + name = "py${pyVersion}"; + + shellHook = '' + export PYTHONPATH="./:$PYTHONPATH" + ''; + + packages = with pkgs."python${pyVersion}Packages"; [ + pygls + pytest + pytest-asyncio + ]; + } + ) + ); + }; }