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

35 lines
762 B
Nix
Raw Normal View History

2020-04-21 14:41:59 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, tzlocal
, requests
, vobject
, lxml
, nose
}:
2019-04-29 08:49:35 +00:00
buildPythonPackage rec {
pname = "caldav";
2020-06-06 06:47:00 +00:00
version = "0.7.0";
2019-04-29 08:49:35 +00:00
2019-08-25 11:20:26 +00:00
propagatedBuildInputs = [ tzlocal requests vobject lxml nose ];
2019-04-29 08:49:35 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 06:47:00 +00:00
sha256 = "f5982b204fcfac8598381e35e46b667542bd728009971271463f81100e6e5943";
2019-04-29 08:49:35 +00:00
};
2020-04-21 14:41:59 +00:00
# xandikos is only a optional test dependency, not available for python3
postPatch = ''
substituteInPlace setup.py \
--replace ", 'xandikos'" ""
'';
2019-04-29 08:49:35 +00: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 ];
};
}