python3Packages.icalendar: use pyprojectVersionPatchHook
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user