From bffbd23fea6a2f260b60204fdd13e450641459b1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 May 2026 03:56:52 +0200 Subject: [PATCH] python3Packages.packaging: 26.1 -> 26.2 https://github.com/pypa/packaging/blob/26.2/CHANGELOG.rst --- .../python-modules/packaging/default.nix | 92 +++++++++---------- 1 file changed, 45 insertions(+), 47 deletions(-) diff --git a/pkgs/development/python-modules/packaging/default.nix b/pkgs/development/python-modules/packaging/default.nix index ebf39f5d92cd..25e98c490a21 100644 --- a/pkgs/development/python-modules/packaging/default.nix +++ b/pkgs/development/python-modules/packaging/default.nix @@ -7,56 +7,54 @@ flit-core, # tests + packaging, pretend, pytestCheckHook, }: -let - packaging = buildPythonPackage rec { - pname = "packaging"; - version = "26.1"; - pyproject = true; +buildPythonPackage (finalAttrs: { + pname = "packaging"; + version = "26.2"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-8EIVK2gcS/rFyuJ0KlXhA9J6suwPPYgDcTa2v+fJxd4="; - }; - - nativeBuildInputs = [ flit-core ]; - - nativeCheckInputs = [ - pytestCheckHook - pretend - ]; - - pythonImportsCheck = [ - "packaging" - "packaging.metadata" - "packaging.requirements" - "packaging.specifiers" - "packaging.tags" - "packaging.version" - ]; - - # Prevent circular dependency with pytest - doCheck = false; - - passthru.tests = packaging.overridePythonAttrs (_: { - doCheck = true; - }); - - meta = { - changelog = "https://github.com/pypa/packaging/blob/${version}/CHANGELOG.rst"; - description = "Core utilities for Python packages"; - downloadPage = "https://github.com/pypa/packaging"; - homepage = "https://packaging.pypa.io/"; - license = with lib.licenses; [ - bsd2 - asl20 - ]; - maintainers = with lib.maintainers; [ bennofs ]; - teams = [ lib.teams.python ]; - }; + src = fetchPypi { + inherit (finalAttrs) pname version; + hash = "sha256-/0Uv9aPoKM4RAZD+/xF4ux8uoigfogdarbmHwvsiFmE="; }; -in -packaging + + nativeBuildInputs = [ flit-core ]; + + nativeCheckInputs = [ + pytestCheckHook + pretend + ]; + + pythonImportsCheck = [ + "packaging" + "packaging.metadata" + "packaging.requirements" + "packaging.specifiers" + "packaging.tags" + "packaging.version" + ]; + + # Prevent circular dependency with pytest + doCheck = false; + + passthru.tests = packaging.overridePythonAttrs (_: { + doCheck = true; + }); + + meta = { + changelog = "https://github.com/pypa/packaging/blob/${finalAttrs.version}/CHANGELOG.rst"; + description = "Core utilities for Python packages"; + downloadPage = "https://github.com/pypa/packaging"; + homepage = "https://packaging.pypa.io/"; + license = with lib.licenses; [ + bsd2 + asl20 + ]; + maintainers = with lib.maintainers; [ bennofs ]; + teams = [ lib.teams.python ]; + }; +})