1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 icalendar,
8 python-dateutil,
9 tzdata,
10 x-wr-timezone,
11 pytestCheckHook,
12 pytz,
13 restructuredtext-lint,
14 pygments,
15}:
16
17buildPythonPackage rec {
18 pname = "recurring-ical-events";
19 version = "3.3.4";
20
21 disabled = pythonOlder "3.8";
22
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "niccokunzmann";
27 repo = "python-recurring-ical-events";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-3KlmJJmak3X9adUlcmclnCv9D1Ddr+woFokrinZBYoE=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 icalendar
36 python-dateutil
37 tzdata
38 x-wr-timezone
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 pytz
44 restructuredtext-lint
45 pygments
46 ];
47
48 pythonImportsCheck = [ "recurring_ical_events" ];
49
50 meta = {
51 changelog = "https://github.com/niccokunzmann/python-recurring-ical-events/blob/${src.rev}/README.rst#changelog";
52 description = "Repeat ICalendar events by RRULE, RDATE and EXDATE";
53 homepage = "https://github.com/niccokunzmann/python-recurring-ical-events";
54 license = lib.licenses.lgpl3Plus;
55 maintainers = with lib.maintainers; [ dotlambda ];
56 };
57}