Files
nixpkgs/pkgs/development/python-modules/caldav/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

82 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
dnspython,
fetchFromGitHub,
icalendar,
icalendar-searcher,
lxml,
manuel,
pytestCheckHook,
python,
radicale,
recurring-ical-events,
requests,
hatchling,
hatch-vcs,
proxy-py,
pyfakefs,
toPythonModule,
tzlocal,
vobject,
xandikos,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "caldav";
version = "2.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "python-caldav";
repo = "caldav";
tag = "v${version}";
hash = "sha256-FsIF4BcwAUyYw8J7o4j4CnSd8eIc1Yd5WtxErC6RZ7Y=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
dnspython
lxml
requests
icalendar
icalendar-searcher
recurring-ical-events
];
nativeCheckInputs = [
manuel
proxy-py
pyfakefs
pytestCheckHook
(toPythonModule (radicale.override { python3 = python; }))
tzlocal
vobject
writableTmpDirAsHomeHook
(toPythonModule (xandikos.override { python3Packages = python.pkgs; }))
];
disabledTests = [
# test contacts CalDAV servers on the internet
"test_rfc8764_test_conf"
];
pythonImportsCheck = [ "caldav" ];
meta = {
description = "CalDAV (RFC4791) client library";
homepage = "https://github.com/python-caldav/caldav";
changelog = "https://github.com/python-caldav/caldav/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
marenz
dotlambda
];
};
}