depot/third_party/nixpkgs/pkgs/development/python-modules/gcal-sync/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

52 lines
1,009 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, freezegun
, ical
, pydantic
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "gcal-sync";
version = "4.1.4";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "allenporter";
repo = "gcal_sync";
rev = "refs/tags/${version}";
hash = "sha256-LJJyJj1HXNdBBs4hDvkuz74PDHRpeVpwbq0vSfESuXY=";
};
propagatedBuildInputs = [
aiohttp
ical
pydantic
];
nativeCheckInputs = [
freezegun
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"gcal_sync"
];
meta = with lib; {
description = "Library for syncing Google Calendar to local storage";
homepage = "https://github.com/allenporter/gcal_sync";
changelog = "https://github.com/allenporter/gcal_sync/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}