2021-06-18 19:03:01 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, traitlets
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, ipython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matplotlib-inline";
|
2022-09-14 23:36:11 +02:00
|
|
|
version = "0.1.6";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2021-06-18 19:03:01 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-+Ifl8Qupjo0rFQ3c9HAsHl+LOiAAXrD3S/29Ng7m8wQ=";
|
2021-06-18 19:03:01 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
|
|
|
# wants to import ipython, which creates a circular dependency
|
|
|
|
doCheck = false;
|
2022-09-14 23:36:11 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
pythonImportsCheck = [
|
|
|
|
# tries to import matplotlib, which can't work with doCheck disabled
|
|
|
|
#"matplotlib_inline"
|
|
|
|
];
|
2021-06-18 19:03:01 -07:00
|
|
|
|
|
|
|
passthru.tests = { inherit ipython; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Matplotlib Inline Back-end for IPython and Jupyter";
|
|
|
|
homepage = "https://github.com/ipython/matplotlib-inline";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|