nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 931 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}: 13 14buildPythonPackage (finalAttrs: { 15 pname = "hist"; 16 version = "2.9.2"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit (finalAttrs) pname version; 21 hash = "sha256-Z7+A4Vuxq5n4nM9liO+jV9FoJtaRBDtyYWXHgzSpBns="; 22 }; 23 24 build-system = [ 25 hatchling 26 hatch-vcs 27 ]; 28 29 dependencies = [ 30 boost-histogram 31 histoprint 32 numpy 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 pytest-mpl 38 ]; 39 40 pythonImportsCheck = [ "hist" ]; 41 42 meta = { 43 description = "Histogramming for analysis powered by boost-histogram"; 44 mainProgram = ""; 45 homepage = "https://hist.readthedocs.io/"; 46 changelog = "https://github.com/scikit-hep/hist/releases/tag/v${finalAttrs.version}"; 47 license = lib.licenses.bsd3; 48 maintainers = with lib.maintainers; [ veprbl ]; 49 }; 50})