2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-06-15 15:56:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, icalendar
|
2020-04-24 23:36:52 +00:00
|
|
|
, lxml
|
2022-12-02 08:20:57 +00:00
|
|
|
, pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonOlder
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytz
|
2022-12-02 08:20:57 +00:00
|
|
|
, recurring-ical-events
|
2020-06-15 15:56:04 +00:00
|
|
|
, requests
|
|
|
|
, tzlocal
|
|
|
|
, vobject
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "caldav";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "1.2.1";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
2023-03-04 12:14:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-caldav";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-nA7if28M4rDZwlF+ga/1FqD838zeu0OblrPUer3w3qM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
vobject
|
|
|
|
lxml
|
|
|
|
requests
|
2022-12-02 08:20:57 +00:00
|
|
|
icalendar
|
|
|
|
recurring-ical-events
|
2023-07-15 17:15:38 +00:00
|
|
|
pytz
|
|
|
|
tzlocal
|
2021-12-30 13:39:12 +00:00
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
pytestCheckHook
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
# xandikos and radicale are only optional test dependencies, not available for python3
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-12-02 08:20:57 +00:00
|
|
|
--replace xandikos "" \
|
|
|
|
--replace radicale ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
pythonImportsCheck = [ "caldav" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-12-02 08:20:57 +00:00
|
|
|
description = "CalDAV (RFC4791) client library";
|
2021-03-15 08:37:03 +00:00
|
|
|
homepage = "https://github.com/python-caldav/caldav";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/python-caldav/caldav/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-30 13:39:12 +00:00
|
|
|
maintainers = with maintainers; [ marenz dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|