at master 927 B view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 boost-histogram, 6 histoprint, 7 hatchling, 8 hatch-vcs, 9 numpy, 10 pytestCheckHook, 11 pytest-mpl, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "hist"; 17 version = "2.9.0"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-FtSPIhoeEi+B3z2j1vt2O92COIdo4D/FXcGSYZBsdOs="; 25 }; 26 27 buildInputs = [ 28 hatchling 29 hatch-vcs 30 ]; 31 32 propagatedBuildInputs = [ 33 boost-histogram 34 histoprint 35 numpy 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 pytest-mpl 41 ]; 42 43 meta = with lib; { 44 description = "Histogramming for analysis powered by boost-histogram"; 45 mainProgram = "hist"; 46 homepage = "https://hist.readthedocs.io/"; 47 changelog = "https://github.com/scikit-hep/hist/releases/tag/v${version}"; 48 license = licenses.bsd3; 49 maintainers = with maintainers; [ veprbl ]; 50 }; 51}