Files
nixpkgs/pkgs/development/python-modules/matplotlib-inline/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
963 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
traitlets,
# tests
ipython,
}:
buildPythonPackage rec {
pname = "matplotlib-inline";
version = "0.1.7";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ipython";
repo = "matplotlib-inline";
tag = version;
hash = "sha256-y7T8BshNa8NVWzH8oLS4dTAyhG+YmkkYQJFAyMXsJFA=";
};
build-system = [ setuptools ];
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 = [ ];
};
}