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
|
2024-01-02 11:29:13 +00:00
|
|
|
, python
|
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
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
|
|
|
, toPythonModule
|
2020-06-15 15:56:04 +00:00
|
|
|
, tzlocal
|
|
|
|
, vobject
|
2024-01-02 11:29:13 +00:00
|
|
|
, xandikos
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "caldav";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.9";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
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}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-R9zXwD0sZE4bg6MTHWWCWWlZ5wH0H6g650zA7AboAo8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
2024-01-02 11:29:13 +00:00
|
|
|
(toPythonModule (xandikos.override { python3Packages = python.pkgs; }))
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/python-caldav/caldav/blob/v${version}/CHANGELOG.md";
|
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
|
|
|
};
|
|
|
|
}
|