From 33b11279af9b142e7ac075bda1b9227956eb0dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 4 Jul 2026 11:24:50 -0700 Subject: [PATCH] python3Packages.icalendar: use pyprojectVersionPatchHook --- .../python-modules/icalendar/default.nix | 7 +++---- .../icalendar/no-dynamic-version.patch | 15 --------------- 2 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 pkgs/development/python-modules/icalendar/no-dynamic-version.patch diff --git a/pkgs/development/python-modules/icalendar/default.nix b/pkgs/development/python-modules/icalendar/default.nix index 08fd9da9ebc8..88bb69201ea5 100644 --- a/pkgs/development/python-modules/icalendar/default.nix +++ b/pkgs/development/python-modules/icalendar/default.nix @@ -8,6 +8,7 @@ python-dateutil, tzdata, hypothesis, + pyprojectVersionPatchHook, pytestCheckHook, }: @@ -23,10 +24,8 @@ buildPythonPackage rec { hash = "sha256-0NKNbWigZ3BOfKBM8Q+XrOdoFBOF5Lu4XujJcYCMuMw="; }; - patches = [ - (replaceVars ./no-dynamic-version.patch { - inherit version; - }) + nativeBuildInputs = [ + pyprojectVersionPatchHook ]; build-system = [ diff --git a/pkgs/development/python-modules/icalendar/no-dynamic-version.patch b/pkgs/development/python-modules/icalendar/no-dynamic-version.patch deleted file mode 100644 index 0703c6126cbc..000000000000 --- a/pkgs/development/python-modules/icalendar/no-dynamic-version.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/pyproject.toml b/pyproject.toml -index 50aa183b..3a190385 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -36,9 +36,7 @@ maintainers = [ - { name="Jaca", email="vitouejj@gmail.com" }, - ] - # These attributes are dynamically generated by hatch-vcs --dynamic = [ -- "version" --] -+version = "@version@" - description = "RFC 5545 compatible parser and generator of iCalendar files" - readme = { file = "README.rst", content-type = "text/x-rst" } -