From 9b63020bc6ce13a8b5d3c9b8add2693baa213634 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 13 Aug 2024 22:26:07 +0200 Subject: [PATCH] julia.withPackages: remove 'with lib;' --- pkgs/development/julia-modules/extra-python-packages.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/julia-modules/extra-python-packages.nix b/pkgs/development/julia-modules/extra-python-packages.nix index 30e5179b3820..14731fb9de35 100644 --- a/pkgs/development/julia-modules/extra-python-packages.nix +++ b/pkgs/development/julia-modules/extra-python-packages.nix @@ -3,9 +3,6 @@ }: # This file contains an extra mapping from Julia packages to the Python packages they depend on. - -with lib; - rec { packageMapping = { ExcelFiles = ["xlrd"]; @@ -14,9 +11,9 @@ rec { SymPy = ["sympy"]; }; - getExtraPythonPackages = names: concatMap (name: let - allCandidates = if hasAttr name packageMapping then getAttr name packageMapping else []; + getExtraPythonPackages = names: lib.concatMap (name: let + allCandidates = if lib.hasAttr name packageMapping then lib.getAttr name packageMapping else []; in - filter (x: hasAttr x python3.pkgs) allCandidates + lib.filter (x: lib.hasAttr x python3.pkgs) allCandidates ) names; }