1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, nose
6, pytest
7, mock
8, ipython
9, ipykernel
10, traitlets
11, notebook
12, widgetsnbextension
13}:
14
15buildPythonPackage rec {
16 pname = "ipywidgets";
17 version = "7.4.0";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "fd24a66d82f2ea49e281da7714a7c656340d3ec24dff376b17590fa59469b817";
22 };
23
24 # Tests are not distributed
25 # doCheck = false;
26
27 buildInputs = [ nose pytest mock ];
28 propagatedBuildInputs = [
29 ipython
30 ipykernel
31 traitlets
32 notebook
33 widgetsnbextension
34 ];
35
36 checkPhase = ''
37 ${python.interpreter} -m unittest discover
38 '';
39
40 meta = {
41 description = "IPython HTML widgets for Jupyter";
42 homepage = http://ipython.org/;
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ fridh ];
45 };
46}