python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / by-name / ra / radicale / package.nix
blob20f1bcfc31fb48d12c2425f9e390c7f411b75040
2   fetchFromGitHub,
3   lib,
4   nixosTests,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "radicale";
10   version = "3.3.3";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "Kozea";
15     repo = "Radicale";
16     tag = "v${version}";
17     hash = "sha256-KRVByUXiTx5sX7LDgtOlVky8UH5HThaaldvOpeeHd7k=";
18   };
20   build-system = with python3.pkgs; [
21     setuptools
22   ];
24   dependencies =
25     with python3.pkgs;
26     [
27       defusedxml
28       passlib
29       vobject
30       pika
31       python-dateutil
32       pytz # https://github.com/Kozea/Radicale/issues/816
33       ldap3
34     ]
35     ++ passlib.optional-dependencies.bcrypt;
37   __darwinAllowLocalNetworking = true;
39   nativeCheckInputs = with python3.pkgs; [
40     pytestCheckHook
41     waitress
42   ];
44   passthru.tests = {
45     inherit (nixosTests) radicale;
46   };
48   meta = {
49     homepage = "https://radicale.org/v3.html";
50     changelog = "https://github.com/Kozea/Radicale/blob/${src.rev}/CHANGELOG.md";
51     description = "CalDAV and CardDAV server";
52     license = lib.licenses.gpl3Plus;
53     maintainers = with lib.maintainers; [
54       dotlambda
55       erictapen
56     ];
57   };