02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
35 lines
770 B
Nix
35 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, notebook
|
|
, ipywidgets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "widgetsnbextension";
|
|
version = "3.6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-nISuZMKJPHy+Lqr8dQUiGnlcJ9aJOEVANKxIcxmnWxA=";
|
|
};
|
|
|
|
# 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 = [ ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|