2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, notebook
|
|
|
|
, ipywidgets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "widgetsnbextension";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.6.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
hash = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# 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 = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython HTML widgets for Jupyter";
|
|
|
|
homepage = "http://ipython.org/";
|
|
|
|
license = ipywidgets.meta.license; # Build from same repo
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|