2020-04-21 15:41:59 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, tzlocal
|
|
|
|
, requests
|
|
|
|
, vobject
|
|
|
|
, lxml
|
|
|
|
, nose
|
|
|
|
}:
|
2019-04-29 09:49:35 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "caldav";
|
2020-06-06 07:47:00 +01:00
|
|
|
version = "0.7.0";
|
2019-04-29 09:49:35 +01:00
|
|
|
|
2019-08-25 12:20:26 +01:00
|
|
|
propagatedBuildInputs = [ tzlocal requests vobject lxml nose ];
|
2019-04-29 09:49:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:00 +01:00
|
|
|
sha256 = "f5982b204fcfac8598381e35e46b667542bd728009971271463f81100e6e5943";
|
2019-04-29 09:49:35 +01:00
|
|
|
};
|
|
|
|
|
2020-04-21 15:41:59 +01:00
|
|
|
# xandikos is only a optional test dependency, not available for python3
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace ", 'xandikos'" ""
|
|
|
|
'';
|
|
|
|
|
2019-04-29 09:49:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This project is a CalDAV (RFC4791) client library for Python.";
|
|
|
|
homepage = "https://pythonhosted.org/caldav/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ marenz ];
|
|
|
|
};
|
|
|
|
}
|