From 870ca65356014af710e6f5704d3868d350186aa8 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Sun, 9 Jun 2024 14:47:15 +0200 Subject: [PATCH] modules(jupyter): use less parentheses for env creation --- modules/services/jupyter.nix | 12 ++++++------ tests/jupyter/geonix.nix | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/services/jupyter.nix b/modules/services/jupyter.nix index 7c921bd..2ba2545 100644 --- a/modules/services/jupyter.nix +++ b/modules/services/jupyter.nix @@ -83,9 +83,9 @@ let defaultKernel = { python3 = let - env = (pkgs.python3.withPackages (ps: with ps; [ + env = pkgs.python3.withPackages (ps: with ps; [ ipykernel - ])); + ]); in { displayName = "Default Python kernel"; @@ -142,13 +142,13 @@ in { geospatial = let - env = (pkgs.python3.withPackages (p: with p; [ + env = pkgs.python3.withPackages (p: with p; [ ipykernel geopkgs.python3-gdal geopkgs.python3-geopandas geopkgs.python3-fiona geopkgs.python3-rasterio - ])); + ]); in { displayName = "Geospatial Python kernel"; @@ -166,10 +166,10 @@ in other = let - env = (pkgs.python3.withPackages (p: with p; [ + env = pkgs.python3.withPackages (p: with p; [ ipykernel pandas - ])); + ]); in { displayName = "Other Python kernel"; diff --git a/tests/jupyter/geonix.nix b/tests/jupyter/geonix.nix index 2bb9cb9..8c15c13 100644 --- a/tests/jupyter/geonix.nix +++ b/tests/jupyter/geonix.nix @@ -17,13 +17,13 @@ in kernels = { geospatial = let - env = (pkgs.python3.withPackages (ps: with ps; [ + env = pkgs.python3.withPackages (ps: with ps; [ ipykernel geopkgs.python3-gdal geopkgs.python3-geopandas geopkgs.python3-fiona geopkgs.python3-rasterio - ])); + ]); in { displayName = "Geospatial Python kernel";