1{ lib
2, python3
3}:
4
5# This file contains an extra mapping from Julia packages to the Python packages they depend on.
6
7with lib;
8
9rec {
10 packageMapping = {
11 ExcelFiles = ["xlrd"];
12 PyPlot = ["matplotlib"];
13 PythonPlot = ["matplotlib"];
14 SymPy = ["sympy"];
15 };
16
17 getExtraPythonPackages = names: concatMap (name: let
18 allCandidates = if hasAttr name packageMapping then getAttr name packageMapping else [];
19 in
20 filter (x: hasAttr x python3.pkgs) allCandidates
21 ) names;
22}