1{ lib, buildPythonPackage, fetchPypi
2, traitlets
3
4# tests
5, ipython
6}:
7
8buildPythonPackage rec {
9 pname = "matplotlib-inline";
10 version = "0.1.6";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-+Ifl8Qupjo0rFQ3c9HAsHl+LOiAAXrD3S/29Ng7m8wQ=";
15 };
16
17 propagatedBuildInputs = [
18 traitlets
19 ];
20
21 # wants to import ipython, which creates a circular dependency
22 doCheck = false;
23
24 #
25 pythonImportsCheck = [
26 # tries to import matplotlib, which can't work with doCheck disabled
27 #"matplotlib_inline"
28 ];
29
30 passthru.tests = { inherit ipython; };
31
32 meta = with lib; {
33 description = "Matplotlib Inline Back-end for IPython and Jupyter";
34 homepage = "https://github.com/ipython/matplotlib-inline";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ jonringer ];
37 };
38}