add override to fix collision with jupyter-core

This commit is contained in:
Valentin Boettcher 2021-12-09 15:41:34 +01:00 committed by GitHub
parent a4b7692032
commit 48ce125440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -633,6 +633,12 @@ self: super:
# dependencies. It does however have a jupyter.py file that conflicts
# with jupyter-core so this meta solves this conflict.
meta.priority = 100;
# remove, what is already present in jupyter-core
postInstall = ''
rm -f $out/lib/python*/site-packages/__pycache__/jupyter.cpython-39.pyc
rm -f $out/lib/python*/site-packages/jupyter.py
'';
}
);
@ -641,6 +647,15 @@ self: super:
buildInputs = (old.buildInputs or [ ]) ++ [ self.jupyter-packaging ];
}
);
jupyter-core = super.jupyter-core.overridePythonAttrs (
old: {
postInstall = ''
rm -f $out/lib/python*/site-packages/__pycache__/jupyter.cpython-39.pyc
rm -f $out/lib/python*/site-packages/jupyter.py
'';
}
);
kerberos = super.kerberos.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.libkrb5 ];