From 578a0d3e39d1520ebaf0dbf3146c18e308e8b03c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 14 Jun 2026 14:38:21 +0000 Subject: [PATCH] python3Packages.portion: 2.6.1 -> 2.6.2 Diff: https://github.com/AlexandreDecan/portion/compare/2.6.1...2.6.2 Changelog: https://github.com/AlexandreDecan/portion/blob/refs/tags/2.6.2/CHANGELOG.md --- .../python-modules/portion/default.nix | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/portion/default.nix b/pkgs/development/python-modules/portion/default.nix index 7cbe2884f387..effffd8f60bd 100644 --- a/pkgs/development/python-modules/portion/default.nix +++ b/pkgs/development/python-modules/portion/default.nix @@ -2,21 +2,29 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system hatchling, + + # dependencies sortedcontainers, + + # tests + pytest-benchmark, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "portion"; - version = "2.6.1"; + version = "2.6.2"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "AlexandreDecan"; repo = "portion"; - tag = version; - hash = "sha256-K4mZn8Fm96ZBBdLTMfM9f1GKDdIrRwDRzk6ObaXSFG4="; + tag = finalAttrs.version; + hash = "sha256-ns9kUoSufegx0I3ag/KVl68ZviEIRx+zPA+BSWq3k80="; }; build-system = [ hatchling ]; @@ -25,13 +33,16 @@ buildPythonPackage rec { pythonImportsCheck = [ "portion" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-benchmark + pytestCheckHook + ]; meta = { - description = "Portion, a Python library providing data structure and operations for intervals"; + description = "Python library providing data structure and operations for intervals"; homepage = "https://github.com/AlexandreDecan/portion"; - changelog = "https://github.com/AlexandreDecan/portion/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/AlexandreDecan/portion/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.lgpl3; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})