Files
nixpkgs/pkgs/development/python-modules/hist/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
925 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
boost-histogram,
histoprint,
hatchling,
hatch-vcs,
numpy,
pytestCheckHook,
pytest-mpl,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hist";
version = "2.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-FtSPIhoeEi+B3z2j1vt2O92COIdo4D/FXcGSYZBsdOs=";
};
buildInputs = [
hatchling
hatch-vcs
];
propagatedBuildInputs = [
boost-histogram
histoprint
numpy
];
checkInputs = [
pytestCheckHook
pytest-mpl
];
meta = {
description = "Histogramming for analysis powered by boost-histogram";
mainProgram = "hist";
homepage = "https://hist.readthedocs.io/";
changelog = "https://github.com/scikit-hep/hist/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
}