From 1ebe233006ecefb51c87e283d68e3458d74fac5e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 16 Jan 2026 19:55:45 +0000 Subject: [PATCH 1/3] python3Packages.hist: 2.9.1 -> 2.9.2 --- pkgs/development/python-modules/hist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix index d96c5b0a7008..863d2b76fd35 100644 --- a/pkgs/development/python-modules/hist/default.nix +++ b/pkgs/development/python-modules/hist/default.nix @@ -13,12 +13,12 @@ buildPythonPackage rec { pname = "hist"; - version = "2.9.1"; + version = "2.9.2"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-kjxztsTVEicXXMgnk3vKl5Fgv+gxygmZJmUPcPabW2s="; + hash = "sha256-Z7+A4Vuxq5n4nM9liO+jV9FoJtaRBDtyYWXHgzSpBns="; }; buildInputs = [ From 2f93702901da49ddb50760462c501bde82dd6f16 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 16 Jan 2026 22:26:41 +0100 Subject: [PATCH 2/3] python313Packages.hist: migrate to finalAttrs --- pkgs/development/python-modules/hist/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix index 863d2b76fd35..19705b95ddc5 100644 --- a/pkgs/development/python-modules/hist/default.nix +++ b/pkgs/development/python-modules/hist/default.nix @@ -11,13 +11,13 @@ pytest-mpl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "hist"; version = "2.9.2"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-Z7+A4Vuxq5n4nM9liO+jV9FoJtaRBDtyYWXHgzSpBns="; }; @@ -41,8 +41,8 @@ buildPythonPackage rec { 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}"; + changelog = "https://github.com/scikit-hep/hist/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ veprbl ]; }; -} +}) From d61b8887417d4fbdd16b325c02363c2a8e1bd005 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Jan 2026 20:35:43 +0100 Subject: [PATCH 3/3] python313Packages.hist: modernize --- pkgs/development/python-modules/hist/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix index 19705b95ddc5..2db639574d2e 100644 --- a/pkgs/development/python-modules/hist/default.nix +++ b/pkgs/development/python-modules/hist/default.nix @@ -21,12 +21,12 @@ buildPythonPackage (finalAttrs: { hash = "sha256-Z7+A4Vuxq5n4nM9liO+jV9FoJtaRBDtyYWXHgzSpBns="; }; - buildInputs = [ + build-system = [ hatchling hatch-vcs ]; - propagatedBuildInputs = [ + dependencies = [ boost-histogram histoprint numpy @@ -37,9 +37,11 @@ buildPythonPackage (finalAttrs: { pytest-mpl ]; + pythonImportsCheck = [ "hist" ]; + meta = { description = "Histogramming for analysis powered by boost-histogram"; - mainProgram = "hist"; + mainProgram = ""; homepage = "https://hist.readthedocs.io/"; changelog = "https://github.com/scikit-hep/hist/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd3;