Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, icalendar 5, lxml 6, pytestCheckHook 7, pythonOlder 8, pytz 9, recurring-ical-events 10, requests 11, tzlocal 12, vobject 13}: 14 15buildPythonPackage rec { 16 pname = "caldav"; 17 version = "1.2.1"; 18 19 format = "setuptools"; 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "python-caldav"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-nA7if28M4rDZwlF+ga/1FqD838zeu0OblrPUer3w3qM="; 27 }; 28 29 propagatedBuildInputs = [ 30 vobject 31 lxml 32 requests 33 icalendar 34 recurring-ical-events 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 tzlocal 40 pytz 41 ]; 42 43 # xandikos and radicale are only optional test dependencies, not available for python3 44 postPatch = '' 45 substituteInPlace setup.py \ 46 --replace xandikos "" \ 47 --replace radicale "" 48 ''; 49 50 pythonImportsCheck = [ "caldav" ]; 51 52 meta = with lib; { 53 description = "CalDAV (RFC4791) client library"; 54 homepage = "https://github.com/python-caldav/caldav"; 55 changelog = "https://github.com/python-caldav/caldav/releases/tag/v${version}"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ marenz dotlambda ]; 58 }; 59}