1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, freezegun
6, ical
7, pydantic
8, pytest-aiohttp
9, pytest-asyncio
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "gcal-sync";
16 version = "4.0.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "allenporter";
23 repo = "gcal_sync";
24 rev = "refs/tags/${version}";
25 hash = "sha256-KvWLaGTCIjHZpCiex2quIGsl+IZsM2aEARxGJbcR8lc=";
26 };
27
28 propagatedBuildInputs = [
29 aiohttp
30 ical
31 pydantic
32 ];
33
34 checkInputs = [
35 freezegun
36 pytest-aiohttp
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "gcal_sync"
43 ];
44
45 meta = with lib; {
46 description = "Library for syncing Google Calendar to local storage";
47 homepage = "https://github.com/allenporter/gcal_sync";
48 changelog = "https://github.com/allenporter/gcal_sync/releases/tag/${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ dotlambda ];
51 };
52}