push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
matplotlib,
numpy,
networkx,
pypng,
scipy,
}:
buildPythonPackage rec {
pname = "matplotx";
version = "0.3.10";
format = "pyproject";
src = fetchFromGitHub {
owner = "nschloe";
repo = "matplotx";
rev = "v${version}";
hash = "sha256-EWEiEY23uFwd/vgWVLCH/buUmgRqz1rqqlJEdXINYMg=";
};
propagatedBuildInputs = [
setuptools
matplotlib
numpy
];
optional-dependencies = {
all = [
networkx
pypng
scipy
];
contour = [ networkx ];
spy = [
pypng
scipy
];
};
# This variable is needed to suppress the "Trace/BPT trap: 5" error in Darwin's checkPhase.
# Not sure of the details, but we can avoid it by changing the matplotlib backend during testing.
env.MPLBACKEND = lib.optionalString stdenv.hostPlatform.isDarwin "Agg";
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
disabledTestPaths = [
"tests/test_spy.py" # Requires meshzoo (non-free) and pytest-codeblocks (not packaged)
];
pythonImportsCheck = [ "matplotx" ];
meta = {
homepage = "https://github.com/nschloe/matplotx";
description = "More styles and useful extensions for Matplotlib";
mainProgram = "matplotx";
changelog = "https://github.com/nschloe/matplotx/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ swflint ];
};
}