python3Packages.icalendar: use pyprojectVersionPatchHook (#538454)

This commit is contained in:
dotlambda
2026-07-06 00:45:54 +00:00
committed by GitHub
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" }