julia.withPackages: remove 'with lib;'
This commit is contained in:
parent
8a09548195
commit
9b63020bc6
@ -3,9 +3,6 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
# This file contains an extra mapping from Julia packages to the Python packages they depend on.
|
# This file contains an extra mapping from Julia packages to the Python packages they depend on.
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
packageMapping = {
|
packageMapping = {
|
||||||
ExcelFiles = ["xlrd"];
|
ExcelFiles = ["xlrd"];
|
||||||
@ -14,9 +11,9 @@ rec {
|
|||||||
SymPy = ["sympy"];
|
SymPy = ["sympy"];
|
||||||
};
|
};
|
||||||
|
|
||||||
getExtraPythonPackages = names: concatMap (name: let
|
getExtraPythonPackages = names: lib.concatMap (name: let
|
||||||
allCandidates = if hasAttr name packageMapping then getAttr name packageMapping else [];
|
allCandidates = if lib.hasAttr name packageMapping then lib.getAttr name packageMapping else [];
|
||||||
in
|
in
|
||||||
filter (x: hasAttr x python3.pkgs) allCandidates
|
lib.filter (x: lib.hasAttr x python3.pkgs) allCandidates
|
||||||
) names;
|
) names;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user