1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 ipykernel,
7 ipython-genutils,
8 ipywidgets,
9 matplotlib,
10 numpy,
11 pillow,
12 traitlets,
13}:
14
15buildPythonPackage rec {
16 pname = "ipympl";
17 version = "0.9.7";
18 format = "wheel";
19
20 disabled = pythonOlder "3.5";
21
22 src = fetchPypi {
23 inherit pname version format;
24 hash = "sha256-NpjufqoLBHp2A1F9eqG3GzIRil9RdUyrRexdmU9nII8=";
25 dist = "py3";
26 python = "py3";
27 };
28
29 propagatedBuildInputs = [
30 ipykernel
31 ipython-genutils
32 ipywidgets
33 matplotlib
34 numpy
35 pillow
36 traitlets
37 ];
38
39 # There are no unit tests in repository
40 doCheck = false;
41 pythonImportsCheck = [
42 "ipympl"
43 "ipympl.backend_nbagg"
44 ];
45
46 meta = with lib; {
47 description = "Matplotlib Jupyter Extension";
48 homepage = "https://github.com/matplotlib/jupyter-matplotlib";
49 maintainers = with maintainers; [
50 jluttine
51 fabiangd
52 ];
53 license = licenses.bsd3;
54 };
55}