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