python3Packages.icalendar: use pyprojectVersionPatchHook

This commit is contained in:
Robert Schütz
2026-07-04 11:24:50 -07:00
parent 19a8a1e6d8
commit 33b11279af
2 changed files with 3 additions and 19 deletions
@@ -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 = [
@@ -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" }