nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 nixosTests,
5 python3,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "radicale";
10 version = "3.5.4";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "Kozea";
15 repo = "Radicale";
16 tag = "v${version}";
17 hash = "sha256-45YLZyjQabv92izrMS1euyPhn6AATY0p+p5/GXuQxnM=";
18 };
19
20 build-system = with python3.pkgs; [
21 setuptools
22 ];
23
24 dependencies =
25 with python3.pkgs;
26 [
27 defusedxml
28 passlib
29 vobject
30 pika
31 requests
32 pytz # https://github.com/Kozea/Radicale/issues/816
33 ldap3
34 ]
35 ++ passlib.optional-dependencies.bcrypt;
36
37 __darwinAllowLocalNetworking = true;
38
39 nativeCheckInputs = with python3.pkgs; [
40 pytestCheckHook
41 waitress
42 ];
43
44 passthru.tests = {
45 inherit (nixosTests) radicale;
46 };
47
48 meta = {
49 homepage = "https://radicale.org/v3.html";
50 changelog = "https://github.com/Kozea/Radicale/blob/${src.tag}/CHANGELOG.md";
51 description = "CalDAV and CardDAV server";
52 license = lib.licenses.gpl3Plus;
53 maintainers = with lib.maintainers; [
54 dotlambda
55 erictapen
56 ];
57 };
58}