pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / ra / radicale / package.nix
blob9cdcd7ab4104abb03fb14c46ab5cba271be1eb91
1 { lib
2 , python3
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "radicale";
9   version = "3.3.0";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "Kozea";
14     repo = "Radicale";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-S9/bPgItbr6rRr4WX+hmyU1RvKn5gz9FdZjYlr0hnd0=";
17   };
19   build-system = with python3.pkgs; [
20     setuptools
21   ];
23   dependencies = with python3.pkgs; [
24     defusedxml
25     passlib
26     vobject
27     pika
28     python-dateutil
29     pytz # https://github.com/Kozea/Radicale/issues/816
30   ] ++ passlib.optional-dependencies.bcrypt;
32   __darwinAllowLocalNetworking = true;
34   nativeCheckInputs = with python3.pkgs; [
35     pytestCheckHook
36     waitress
37   ];
39   passthru.tests = {
40     inherit (nixosTests) radicale;
41   };
43   meta = with lib; {
44     homepage = "https://radicale.org/v3.html";
45     changelog = "https://github.com/Kozea/Radicale/blob/${src.rev}/CHANGELOG.md";
46     description = "CalDAV and CardDAV server";
47     license = licenses.gpl3Plus;
48     maintainers = with maintainers; [ dotlambda erictapen ];
49   };