depot/third_party/nixpkgs/pkgs/development/python-modules/caldav/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

63 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
icalendar,
lxml,
pytestCheckHook,
pythonOlder,
python,
pytz,
recurring-ical-events,
requests,
setuptools,
toPythonModule,
tzlocal,
vobject,
xandikos,
}:
buildPythonPackage rec {
pname = "caldav";
version = "1.3.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-caldav";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-R9zXwD0sZE4bg6MTHWWCWWlZ5wH0H6g650zA7AboAo8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
vobject
lxml
requests
icalendar
recurring-ical-events
pytz
tzlocal
];
nativeCheckInputs = [
pytestCheckHook
(toPythonModule (xandikos.override { python3Packages = python.pkgs; }))
];
pythonImportsCheck = [ "caldav" ];
meta = with lib; {
description = "CalDAV (RFC4791) client library";
homepage = "https://github.com/python-caldav/caldav";
changelog = "https://github.com/python-caldav/caldav/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [
marenz
dotlambda
];
};
}