depot/third_party/nixpkgs/pkgs/development/python-modules/mplhep/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

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.49";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-Hxqk0eSEOWSpomrS/vTdJV9/1mKQ/yCJQOBpm9tAvqo=";
};
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 ];
};
}