f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hist,
|
|
matplotlib,
|
|
mplhep-data,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
pytest-mpl,
|
|
scipy,
|
|
setuptools,
|
|
setuptools-scm,
|
|
uhi,
|
|
uproot,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mplhep";
|
|
version = "0.3.50";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xHdZdfTiKbDGu6oYIiTd8P/npH2kUjz7s8A9+CBJN0A=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|