Robert Schütz
2024-09-29 22:58:31 -07:00
parent fe370c252d
commit fa49cf159d
2 changed files with 34 additions and 6 deletions
@@ -2,17 +2,19 @@
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
pythonOlder,
setuptools,
hatch-vcs,
hatchling,
backports-zoneinfo,
python-dateutil,
pytz,
tzdata,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "5.0.13";
version = "6.0.0";
pname = "icalendar";
pyproject = true;
@@ -20,14 +22,23 @@ buildPythonPackage rec {
owner = "collective";
repo = "icalendar";
rev = "refs/tags/v${version}";
hash = "sha256-2gpWfLXR4HThw23AWxY2rY9oiK6CF3Qiad8DWHCs4Qk=";
hash = "sha256-eWFDY/pNVfcUk3PfB0vXqh9swuSGtflUw44IMDJI+yI=";
};
build-system = [ setuptools ];
patches = [
(replaceVars ./no-dynamic-version.patch {
inherit version;
})
];
build-system = [
hatch-vcs
hatchling
];
dependencies = [
python-dateutil
pytz
tzdata
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
nativeCheckInputs = [
@@ -0,0 +1,17 @@
diff --git a/pyproject.toml b/pyproject.toml
index 9730e46..9834686 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,11 +34,7 @@ maintainers = [
{ name="Christian Geier" },
{ name="Jaca", email="vitouejj@gmail.com" },
]
-# These attributes are dynamically generated by hatch-vcs
-dynamic = [
- "urls",
- "version"
-]
+version = "@version@"
description = "iCalendar parser/generator"
readme = { file = "README.rst", content-type = "text/x-rst" }