diff --git a/overrides.nix b/overrides.nix index 7c7d0eb..8b550eb 100644 --- a/overrides.nix +++ b/overrides.nix @@ -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 ];