nixos-config/home/afoucaultc/packages/python.nix
2026-07-21 20:10:36 +02:00

39 lines
801 B
Nix

{ pkgs, ... }:
let
python = pkgs.python3.override {
packageOverrides = pyfinal: pyprev: {
slicer = pyprev.slicer.overridePythonAttrs (old: {
doCheck = false; # la suite de tests casse sur cette combinaison
build-system = (old.build-system or [ ]) ++ [
pyfinal.setuptools
pyfinal.wheel
];
});
shap = pyprev.shap.overridePythonAttrs (old: {
dependencies = (old.dependencies or [ ]) ++ [
pyfinal.typing-extensions
];
});
};
};
in
{
home.packages = [
(python.withPackages (
ps: with ps; [
numpy
pandas
matplotlib
cycler
scipy
scikit-learn
xgboost
lightgbm
shap
pynvim
debugpy
]
))
];
}