pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / gcal-sync / default.nix
blob07b255e804fcfa65edb06524a03ef9f21cd37db6
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   freezegun,
7   ical,
8   pydantic,
9   pytest-aiohttp,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "gcal-sync";
18   version = "6.2.0";
19   pyproject = true;
21   disabled = pythonOlder "3.10";
23   src = fetchFromGitHub {
24     owner = "allenporter";
25     repo = "gcal_sync";
26     rev = "refs/tags/${version}";
27     hash = "sha256-424PRKjQnpb6fH+iSAqkoOhlvugW7W3wjUxCHTc/A20=";
28   };
30   nativeBuildInputs = [ setuptools ];
32   propagatedBuildInputs = [
33     aiohttp
34     ical
35     pydantic
36   ];
38   __darwinAllowLocalNetworking = true;
40   nativeCheckInputs = [
41     freezegun
42     pytest-aiohttp
43     pytest-asyncio
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "gcal_sync" ];
49   meta = with lib; {
50     description = "Library for syncing Google Calendar to local storage";
51     homepage = "https://github.com/allenporter/gcal_sync";
52     changelog = "https://github.com/allenporter/gcal_sync/releases/tag/${version}";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ dotlambda ];
55   };