2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
, traitlets
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, ipython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matplotlib-inline";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.1.7";
|
|
|
|
pyproject = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipython";
|
|
|
|
repo = "matplotlib-inline";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-y7T8BshNa8NVWzH8oLS4dTAyhG+YmkkYQJFAyMXsJFA=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
|
|
|
# wants to import ipython, which creates a circular dependency
|
|
|
|
doCheck = false;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
pythonImportsCheck = [
|
|
|
|
# tries to import matplotlib, which can't work with doCheck disabled
|
|
|
|
#"matplotlib_inline"
|
|
|
|
];
|
2021-06-28 23:13:55 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|