nixpkgs/pkgs/development/python-modules/caldav/default.nix

35 lines
762 B
Nix
Raw Normal View History

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";
2019-12-10 18:07:38 +00:00
version = "0.6.2";
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;
2019-12-10 18:07:38 +00:00
sha256 = "80c33b143539da3a471148ac89512f67d9df3a5286fae5a023e2ad3923246c0d";
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 ];
};
}