2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hist
|
|
|
|
, matplotlib
|
|
|
|
, mplhep-data
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-mpl
|
|
|
|
, scipy
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, uhi
|
|
|
|
, uproot
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mplhep";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.3.31";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-aZwazbDljRncB2p7qD95Cms0uQBU8tciUrXcKpsyVTM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
uhi
|
|
|
|
mplhep-data
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hist
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pytest-mpl
|
|
|
|
scipy
|
|
|
|
uproot
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires uproot4
|
|
|
|
"test_inputs_uproot"
|
|
|
|
"test_uproot_versions"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mplhep"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|