1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 traitlets,
8
9 # tests
10 ipython,
11}:
12
13buildPythonPackage rec {
14 pname = "matplotlib-inline";
15 version = "0.1.7";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "ipython";
22 repo = "matplotlib-inline";
23 tag = version;
24 hash = "sha256-y7T8BshNa8NVWzH8oLS4dTAyhG+YmkkYQJFAyMXsJFA=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [ traitlets ];
30
31 # wants to import ipython, which creates a circular dependency
32 doCheck = false;
33
34 #
35 pythonImportsCheck = [
36 # tries to import matplotlib, which can't work with doCheck disabled
37 #"matplotlib_inline"
38 ];
39
40 passthru.tests = {
41 inherit ipython;
42 };
43
44 meta = with lib; {
45 description = "Matplotlib Inline Back-end for IPython and Jupyter";
46 homepage = "https://github.com/ipython/matplotlib-inline";
47 license = licenses.bsd3;
48 maintainers = [ ];
49 };
50}