1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 poetry-core,
8 icalendar,
9 pook,
10 python-dateutil,
11 pytz,
12 urllib3,
13}:
14
15buildPythonPackage rec {
16 pname = "icalevents";
17 version = "0.3.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "jazzband";
24 repo = "icalevents";
25 tag = version;
26 hash = "sha256-QDqmcZY/UANVKRjk1ZFEFHgrjtD+hXE4qd3tX64sE7c=";
27 };
28
29 build-system = [
30 poetry-core
31 ];
32
33 dependencies = [
34 icalendar
35 python-dateutil
36 pytz
37 urllib3
38 ];
39
40 nativeCheckInputs = [
41 pook
42 pytestCheckHook
43 ];
44
45 disabledTests = [
46 # Makes HTTP calls
47 "test_events_url"
48 "test_events_async_url"
49 ];
50
51 pythonImportsCheck = [ "icalevents" ];
52
53 meta = with lib; {
54 changelog = "https://github.com/jazzband/icalevents/releases/tag/${src.tag}";
55 description = "Python module for iCal URL/file parsing and querying";
56 homepage = "https://github.com/jazzband/icalevents";
57 maintainers = with maintainers; [ jamiemagee ];
58 license = licenses.mit;
59 };
60}