diff options
| author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2023-01-15 22:18:43 -0500 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-02-13 08:10:51 +0000 |
| commit | f3a6033a2cf3b3bca470647a6d408dc234d322dd (patch) | |
| tree | b7b82cddcb161a72fa428eea957927c8384a812d | |
| parent | python310Packages.histoprint: init at 2.4.0 (diff) | |
| download | nixpkgs-origin/backport-211019-to-release-22.11.tar.gz | |
python310Packages.hist: init at 2.6.3origin/backport-211019-to-release-22.11
(cherry picked from commit e939aafb986d8e8c996e0b049ffdd3f69a9c24f1)
| -rw-r--r-- | pkgs/development/python-modules/hist/default.nix | 45 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix new file mode 100644 index 000000000000..df7f447a0444 --- /dev/null +++ b/pkgs/development/python-modules/hist/default.nix @@ -0,0 +1,45 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c57203d13f6..54085dbc95fd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4205,6 +4205,8 @@ self: super: with self; { hiro = callPackage ../development/python-modules/hiro { }; + hist = callPackage ../development/python-modules/hist { }; + histoprint = callPackage ../development/python-modules/histoprint { }; hiyapyco = callPackage ../development/python-modules/hiyapyco { }; |
