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,74 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-vcs,
hatchling,
# dependencies
matplotlib,
mplhep-data,
numpy,
packaging,
uhi,
# tests
hist,
pytest-mock,
pytest-mpl,
pytestCheckHook,
scipy,
uproot,
}:
buildPythonPackage rec {
pname = "mplhep";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "mplhep";
tag = "v${version}";
hash = "sha256-Sx/VR573Vhxfv043mVdMpu/v6Ukv/JrVXBlpbILqGsI=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
matplotlib
mplhep-data
numpy
packaging
uhi
];
nativeCheckInputs = [
hist
pytest-mock
pytest-mpl
pytestCheckHook
scipy
uproot
];
disabledTestPaths = [
# requires uproot4
"tests/test_inputs.py"
];
pythonImportsCheck = [ "mplhep" ];
meta = {
description = "Extended histogram plots on top of matplotlib and HEP compatible styling similar to current collaboration requirements (ROOT)";
homepage = "https://github.com/scikit-hep/mplhep";
changelog = "https://github.com/scikit-hep/mplhep/releases/tag/${src.tag}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ veprbl ];
};
}