Files
nixpkgs/pkgs/development/python-modules/caldav/default.nix
Ihar Hrachyshka cca3b04b44 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 19:01:23 +01:00

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
icalendar,
lxml,
pytestCheckHook,
python,
recurring-ical-events,
requests,
hatchling,
hatch-vcs,
proxy-py,
pyfakefs,
toPythonModule,
tzlocal,
vobject,
xandikos,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "caldav";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "python-caldav";
repo = "caldav";
tag = "v${version}";
hash = "sha256-n7ZKTBXg66firbS34J41NrTM/PL/OrKMnS4iguRz4Ho=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
vobject
lxml
requests
icalendar
recurring-ical-events
];
nativeCheckInputs = [
proxy-py
pyfakefs
pytestCheckHook
tzlocal
(toPythonModule (xandikos.override { python3Packages = python.pkgs; }))
writableTmpDirAsHomeHook
];
disabledTestPaths = [
"tests/test_docs.py"
"tests/test_examples.py"
];
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
];
};
}