Merge pull request #211019 from veprbl/pr/hist_init

python310Packages.hist: init at 2.6.3

Changed files
+135
pkgs
development
python-modules
hist
histoprint
uhi
top-level
+45
pkgs/development/python-modules/hist/default.nix
···
+
{ lib
+
, fetchPypi
+
, buildPythonPackage
+
, boost-histogram
+
, histoprint
+
, hatchling
+
, hatch-vcs
+
, numpy
+
, pytestCheckHook
+
, pytest-mpl
+
}:
+
+
buildPythonPackage rec {
+
pname = "hist";
+
version = "2.6.3";
+
format = "pyproject";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "dede097733d50b273af9f67386e6dcccaab77e900ae702e1a9408a856e217ce9";
+
};
+
+
buildInputs = [
+
hatchling
+
hatch-vcs
+
];
+
+
propagatedBuildInputs = [
+
boost-histogram
+
histoprint
+
numpy
+
];
+
+
checkInputs = [
+
pytestCheckHook
+
pytest-mpl
+
];
+
+
meta = with lib; {
+
description = "Histogramming for analysis powered by boost-histogram";
+
homepage = "https://hist.readthedocs.io/en/latest/";
+
license = licenses.bsd3;
+
maintainers = with maintainers; [ veprbl ];
+
};
+
}
+45
pkgs/development/python-modules/histoprint/default.nix
···
+
{ lib
+
, fetchPypi
+
, buildPythonPackage
+
, click
+
, numpy
+
, setuptools
+
, setuptools-scm
+
, uhi
+
, pytestCheckHook
+
}:
+
+
buildPythonPackage rec {
+
pname = "histoprint";
+
version = "2.4.0";
+
format = "pyproject";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "328f789d186e3bd76882d57b5aad3fa08c7870a856cc83bcdbad9f4aefbda94d";
+
};
+
+
buildInputs = [
+
setuptools
+
setuptools-scm
+
];
+
+
propagatedBuildInputs = [
+
click
+
numpy
+
uhi
+
];
+
+
SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+
checkInputs = [
+
pytestCheckHook
+
];
+
+
meta = with lib; {
+
description = "Pretty print histograms to the console";
+
homepage = "https://github.com/scikit-hep/histoprint";
+
license = licenses.mit;
+
maintainers = with maintainers; [ veprbl ];
+
};
+
}
+39
pkgs/development/python-modules/uhi/default.nix
···
+
{ lib
+
, fetchPypi
+
, buildPythonPackage
+
, hatchling
+
, hatch-vcs
+
, numpy
+
, pytestCheckHook
+
}:
+
+
buildPythonPackage rec {
+
pname = "uhi";
+
version = "0.3.3";
+
format = "pyproject";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "800caf3a5f1273b08bcc3bb4b49228fe003942e23423812b0110546aad9a24be";
+
};
+
+
buildInputs = [
+
hatchling
+
hatch-vcs
+
];
+
+
propagatedBuildInputs = [
+
numpy
+
];
+
+
checkInputs = [
+
pytestCheckHook
+
];
+
+
meta = with lib; {
+
description = "Universal Histogram Interface";
+
homepage = "https://uhi.readthedocs.io/";
+
license = licenses.bsd3;
+
maintainers = with maintainers; [ veprbl ];
+
};
+
}
+6
pkgs/top-level/python-packages.nix
···
hiro = callPackage ../development/python-modules/hiro { };
+
hist = callPackage ../development/python-modules/hist { };
+
+
histoprint = callPackage ../development/python-modules/histoprint { };
+
hiyapyco = callPackage ../development/python-modules/hiyapyco { };
hjson = callPackage ../development/python-modules/hjson { };
···
uharfbuzz = callPackage ../development/python-modules/uharfbuzz {
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices;
+
+
uhi = callPackage ../development/python-modules/uhi { };
ujson = callPackage ../development/python-modules/ujson { };