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
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2020-05-29 06:06:01 +00:00
|
|
|
, click
|
|
|
|
, click-log
|
|
|
|
, click-threading
|
2021-07-24 12:14:16 +00:00
|
|
|
, requests-toolbelt
|
2020-05-29 06:06:01 +00:00
|
|
|
, 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
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vdirsyncer";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-J7w+1R93STX7ujkpFcjI1M9jmuUaRLZ0aGtJoQJfwgE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
atomicwrites
|
|
|
|
click
|
|
|
|
click-log
|
|
|
|
click-threading
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
|
|
|
requests_oauthlib # required for google oauth sync
|
2021-07-24 12:14:16 +00:00
|
|
|
requests-toolbelt
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
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
|
|
|
|
|
|
|
postPatch = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
sed -i -e '/--cov/d' -e '/--no-cov/d' setup.cfg
|
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_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_request_ssl"
|
|
|
|
"test_verbosity"
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|