2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
2021-03-20 04:20:00 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "xandikos";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "0.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jelmer";
|
|
|
|
repo = "xandikos";
|
|
|
|
rev = "v${version}";
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "sha256-Epy6NWtRY2Oj4MHTStdv8ZJ5SvSmUo6IlwL5PJV9pD0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2020-07-18 16:06:22 +00:00
|
|
|
aiohttp
|
2020-04-24 23:36:52 +00:00
|
|
|
dulwich
|
|
|
|
defusedxml
|
|
|
|
icalendar
|
|
|
|
jinja2
|
2020-07-18 16:06:22 +00:00
|
|
|
multidict
|
2021-08-27 14:25:00 +00:00
|
|
|
prometheus-client
|
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
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
checkInputs = with python3Packages; [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
|
|
# these tests are failing due to the following error:
|
|
|
|
# TypeError: expected str, bytes or os.PathLike object, not int
|
|
|
|
"test_iter_with_etag"
|
|
|
|
"test_iter_with_etag_missing_uid"
|
|
|
|
];
|
|
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|