python3Packages.widgetsnbextension: add jupyter-packaging to nativeBuildInputs

This commit is contained in:
Martin Weinelt 2022-09-17 01:50:55 +02:00 committed by Sandro Jäckel
parent 221754c5ca
commit 6e51c3ee47
No known key found for this signature in database
GPG Key ID: B1763F8651144063

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, jupyter-packaging
, notebook
, ipywidgets
}:
@ -15,20 +16,16 @@ buildPythonPackage rec {
hash = "sha256-NIJIZMBisLMDCteCENta5qOWDfth1bJ1YtZjF3TeAoY=";
};
# setup.py claims to require notebook, but the source doesn't have any imports
# in it.
postPatch = ''
substituteInPlace setup.py --replace "'notebook>=4.4.1'," ""
'';
propagatedBuildInputs = [ ];
nativeBuildInputs = [
jupyter-packaging
];
# No tests in archive
doCheck = false;
meta = {
description = "IPython HTML widgets for Jupyter";
homepage = "http://ipython.org/";
homepage = "https://github.com/jupyter-widgets/ipywidgets/tree/master/python/widgetsnbextension";
license = ipywidgets.meta.license; # Build from same repo
maintainers = with lib.maintainers; [ fridh ];
};