1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 icalendar,
8 pytz,
9 python-dateutil,
10 x-wr-timezone,
11 pytestCheckHook,
12 restructuredtext-lint,
13 pygments,
14 tzdata,
15}:
16
17buildPythonPackage rec {
18 pname = "recurring-ical-events";
19 version = "2.2.0";
20
21 disabled = pythonOlder "3.7";
22
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "niccokunzmann";
27 repo = "python-recurring-ical-events";
28 rev = "v${version}";
29 hash = "sha256-Njd+sc35jlA96iVf2uuVN2BK92ctwUDfBAUfpgqtPs0=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 icalendar
36 pytz
37 python-dateutil
38 x-wr-timezone
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 restructuredtext-lint
44 pygments
45 tzdata
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}