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