add python shit
This commit is contained in:
commit
8c7024853c
755 changed files with 606 additions and 286846 deletions
39
home/afoucaultc/packages/python.nix
Normal file
39
home/afoucaultc/packages/python.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ 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
|
||||
]
|
||||
))
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue