47 lines
No EOL
841 B
Nix
47 lines
No EOL
841 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, nose
|
|
, pytest
|
|
, mock
|
|
, ipython
|
|
, ipykernel
|
|
, traitlets
|
|
, notebook
|
|
, widgetsnbextension
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipywidgets";
|
|
version = "7.0.0";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "63e454202f72796044e99846881c33767c47fa050735dc1f927657b9cd2b7fcd";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
} |