1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hist,
6 matplotlib,
7 mplhep-data,
8 pytestCheckHook,
9 pytest-mock,
10 pytest-mpl,
11 scipy,
12 setuptools,
13 setuptools-scm,
14 uhi,
15 uproot,
16}:
17
18buildPythonPackage rec {
19 pname = "mplhep";
20 version = "0.3.50";
21 format = "pyproject";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-xHdZdfTiKbDGu6oYIiTd8P/npH2kUjz7s8A9+CBJN0A=";
26 };
27
28 nativeBuildInputs = [
29 setuptools
30 setuptools-scm
31 ];
32
33 propagatedBuildInputs = [
34 matplotlib
35 uhi
36 mplhep-data
37 ];
38
39 nativeCheckInputs = [
40 hist
41 pytestCheckHook
42 pytest-mock
43 pytest-mpl
44 scipy
45 uproot
46 ];
47
48 disabledTests = [
49 # requires uproot4
50 "test_inputs_uproot"
51 "test_uproot_versions"
52 ];
53
54 pythonImportsCheck = [ "mplhep" ];
55
56 meta = with lib; {
57 description = "Extended histogram plots on top of matplotlib and HEP compatible styling similar to current collaboration requirements (ROOT)";
58 homepage = "https://github.com/scikit-hep/mplhep";
59 license = with licenses; [ mit ];
60 maintainers = with maintainers; [ veprbl ];
61 };
62}