Files

48 lines
913 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
traitlets,
# tests
ipython,
}:
buildPythonPackage rec {
pname = "matplotlib-inline";
version = "0.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "ipython";
repo = "matplotlib-inline";
tag = version;
hash = "sha256-pLJGwykQ0+LK+cljGQmkSDuBSAdGq+SCPYGQ0ZF7nq0=";
};
build-system = [ flit-core ];
dependencies = [ traitlets ];
# wants to import ipython, which creates a circular dependency
doCheck = false;
#
pythonImportsCheck = [
# tries to import matplotlib, which can't work with doCheck disabled
#"matplotlib_inline"
];
passthru.tests = {
inherit ipython;
};
meta = {
description = "Matplotlib Inline Back-end for IPython and Jupyter";
homepage = "https://github.com/ipython/matplotlib-inline";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}