2017-04-18 09:43:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython
|
|
|
|
, ipykernel
|
|
|
|
, traitlets
|
|
|
|
, notebook
|
|
|
|
, widgetsnbextension
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipywidgets";
|
2018-02-17 13:20:29 +00:00
|
|
|
version = "7.1.2";
|
2017-04-18 09:43:30 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:20:29 +00:00
|
|
|
sha256 = "4263ce721a1e5b53a84c4595a5e296d270ae0dc534401b536f4dda64e0b0ca02";
|
2017-04-18 09:43:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests are not distributed
|
|
|
|
# doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ nose pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipython
|
|
|
|
ipykernel
|
|
|
|
traitlets
|
|
|
|
notebook
|
|
|
|
widgetsnbextension
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython HTML widgets for Jupyter";
|
|
|
|
homepage = http://ipython.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|