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" } -