2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-05-29 06:06:01 +00:00
|
|
|
, buildPythonPackage
|
2020-11-19 00:13:47 +00:00
|
|
|
, fetchPypi
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchpatch
|
2020-05-29 06:06:01 +00:00
|
|
|
, isPy27
|
|
|
|
, click
|
|
|
|
, click-log
|
|
|
|
, click-threading
|
|
|
|
, requests_toolbelt
|
|
|
|
, requests
|
|
|
|
, requests_oauthlib # required for google oauth sync
|
|
|
|
, atomicwrites
|
|
|
|
, hypothesis
|
2020-11-19 00:13:47 +00:00
|
|
|
, pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
, pytest-localserver
|
|
|
|
, pytest-subtesthack
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildPythonPackage rec {
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "0.16.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vdirsyncer";
|
2020-05-29 06:06:01 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
click click-log click-threading
|
|
|
|
requests_toolbelt
|
|
|
|
requests
|
|
|
|
requests_oauthlib # required for google oauth sync
|
|
|
|
atomicwrites
|
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
2020-11-19 00:13:47 +00:00
|
|
|
pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
pytest-localserver
|
|
|
|
pytest-subtesthack
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "update-usage-deprecated-method.patch";
|
|
|
|
url = "https://github.com/pimutils/vdirsyncer/commit/7577fa21177442aacc2d86640ef28cebf1c4aaef.patch";
|
|
|
|
sha256 = "0inkr1wfal20kssij8l5myhpjivxg8wlvhppqc3lvml9d1i75qbh";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2020-11-19 00:13:47 +00:00
|
|
|
substituteInPlace setup.py --replace "click>=5.0,<6.0" "click"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
preCheck = ''
|
|
|
|
export DETERMINISTIC_TESTS=true
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_verbosity"
|
|
|
|
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pimutils/vdirsyncer";
|
|
|
|
description = "Synchronize calendars and contacts";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ loewenheim ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|