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 { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, jupyter-packaging
, notebook , notebook
, ipywidgets , ipywidgets
}: }:
@ -15,20 +16,16 @@ buildPythonPackage rec {
hash = "sha256-NIJIZMBisLMDCteCENta5qOWDfth1bJ1YtZjF3TeAoY="; hash = "sha256-NIJIZMBisLMDCteCENta5qOWDfth1bJ1YtZjF3TeAoY=";
}; };
# setup.py claims to require notebook, but the source doesn't have any imports nativeBuildInputs = [
# in it. jupyter-packaging
postPatch = '' ];
substituteInPlace setup.py --replace "'notebook>=4.4.1'," ""
'';
propagatedBuildInputs = [ ];
# No tests in archive # No tests in archive
doCheck = false; doCheck = false;
meta = { meta = {
description = "IPython HTML widgets for Jupyter"; 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 license = ipywidgets.meta.license; # Build from same repo
maintainers = with lib.maintainers; [ fridh ]; maintainers = with lib.maintainers; [ fridh ];
}; };