nixpkgs-suyu/pkgs/development/python-modules/ipywidgets/default.nix
2017-12-31 10:55:07 +01:00

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.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "3e2be7dea4f97c9a4df71ef065cad9f2e420dd901127bf7cb690fb56d2b34ea3";
};
# 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 ];
};
}