Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
547 B · 24 lines
Nix
at staging-next
12345678910111213141516171819202122232425{ lib, python3,}:
# This file contains an extra mapping from Julia packages to the Python packages they depend on.rec { packageMapping = { ExcelFiles = [ "xlrd" ]; PyPlot = [ "matplotlib" ]; PythonPlot = [ "matplotlib" ]; SymPy = [ "sympy" ]; };
getExtraPythonPackages = names: lib.concatMap ( name: let allCandidates = if lib.hasAttr name packageMapping then lib.getAttr name packageMapping else [ ]; in lib.filter (x: lib.hasAttr x python3.pkgs) allCandidates ) names;}