Commit e5c01afd authored by Robert Schütz's avatar Robert Schütz
Browse files
parent c15b8367
Loading
Loading
Loading
Loading
+19 −7
Original line number Diff line number Diff line
@@ -3,22 +3,23 @@
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  fetchpatch2,
  setuptools,
  icalendar,
  pytz,
  python-dateutil,
  tzdata,
  x-wr-timezone,
  pytestCheckHook,
  pytz,
  restructuredtext-lint,
  pygments,
  tzdata,
}:

buildPythonPackage rec {
  pname = "recurring-ical-events";
  version = "2.2.0";
  version = "3.2.0";

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  pyproject = true;

@@ -26,23 +27,34 @@ buildPythonPackage rec {
    owner = "niccokunzmann";
    repo = "python-recurring-ical-events";
    rev = "v${version}";
    hash = "sha256-Njd+sc35jlA96iVf2uuVN2BK92ctwUDfBAUfpgqtPs0=";
    hash = "sha256-qglApMoRtMqg03HBO00k9anRquA5X9ew919QUMWIpjo=";
  };

  patches = [
    # https://github.com/niccokunzmann/python-recurring-ical-events/pull/169
    (fetchpatch2 {
      name = "make-tests-compatible-with-icalendar-v5.patch";
      url = "https://github.com/niccokunzmann/python-recurring-ical-events/commit/0bb4b4586b55978a1d154cd7abbc42eaf1cefb92.patch";
      hash = "sha256-1tG/U0ELMIwS50eolXNou0aFQBZGNjcc2Zcz1gd8rd4=";
    })
  ];

  build-system = [ setuptools ];

  pythonRelaxDeps = [ "icalendar" ];

  dependencies = [
    icalendar
    pytz
    python-dateutil
    tzdata
    x-wr-timezone
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytz
    restructuredtext-lint
    pygments
    tzdata
  ];

  pythonImportsCheck = [ "recurring_ical_events" ];