Commit fa49cf15 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent fe370c25
Loading
Loading
Loading
Loading
+17 −6
Original line number Diff line number Diff line
@@ -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 = [
+17 −0
Original line number Diff line number Diff line
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" }