2024-10-11 05:15:48 +00:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch2,
|
|
|
|
lib,
|
|
|
|
nixosTests,
|
|
|
|
python3Packages,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "xandikos";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.11";
|
2024-10-11 05:15:48 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = python3Packages.pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jelmer";
|
|
|
|
repo = "xandikos";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-cBsceJ6tib8OYx5L2Hv2AqRS+ADRSLIuJGIULNpAmEI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch2 {
|
|
|
|
name = "fix-compatibility-with-icalendar-v6.patch";
|
|
|
|
url = "https://github.com/jelmer/xandikos/commit/ae8924c374ed86b2efde5bfbc75e56f6d8318086.patch";
|
|
|
|
excludes = [ "requirements.txt" ];
|
|
|
|
hash = "sha256-PCKo5C6Ejw9ZsFFLAMw1ZtMoCq9gJxR65K7CM6RUYwU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = with python3Packages; [
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
dependencies = with python3Packages; [
|
2020-07-18 16:06:22 +00:00
|
|
|
aiohttp
|
2023-10-09 19:29:22 +00:00
|
|
|
aiohttp-openmetrics
|
2020-04-24 23:36:52 +00:00
|
|
|
dulwich
|
|
|
|
defusedxml
|
|
|
|
icalendar
|
|
|
|
jinja2
|
2020-07-18 16:06:22 +00:00
|
|
|
multidict
|
2024-10-11 05:15:48 +00:00
|
|
|
pytz
|
2023-10-09 19:29:22 +00:00
|
|
|
vobject
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
passthru.tests.xandikos = nixosTests.xandikos;
|
2020-12-27 14:24:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight CalDAV/CardDAV server";
|
|
|
|
homepage = "https://github.com/jelmer/xandikos";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-12-27 14:24:52 +00:00
|
|
|
changelog = "https://github.com/jelmer/xandikos/blob/v${version}/NEWS";
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xandikos";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|