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-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
|
|
|
|
, atomicwrites
|
|
|
|
, hypothesis
|
2020-11-19 00:13:47 +00:00
|
|
|
, pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
, pytest-subtesthack
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2022-12-17 10:02:37 +00:00
|
|
|
, aiostream
|
2023-01-20 10:41:00 +00:00
|
|
|
, aiohttp-oauthlib
|
2022-12-17 10:02:37 +00:00
|
|
|
, aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, trustme
|
|
|
|
, aioresponses
|
|
|
|
, vdirsyncer
|
|
|
|
, testers
|
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 {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vdirsyncer";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.19.2";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "pyproject";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-/QWM7quCk0WaBGbNmw5Ks7OUYsbgiaDwrDfDB0INgro=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
2023-03-15 16:39:30 +00:00
|
|
|
sed -i -e '/--cov/d' -e '/--no-cov/d' pyproject.toml
|
2022-04-27 09:35:20 +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
|
2021-07-24 12:14:16 +00:00
|
|
|
requests-toolbelt
|
2022-12-17 10:02:37 +00:00
|
|
|
aiostream
|
|
|
|
aiohttp
|
2023-01-20 10:41:00 +00:00
|
|
|
aiohttp-oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-05-29 06:06:01 +00:00
|
|
|
hypothesis
|
2020-11-19 00:13:47 +00:00
|
|
|
pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
pytest-subtesthack
|
2022-12-17 10:02:37 +00:00
|
|
|
pytest-asyncio
|
|
|
|
trustme
|
|
|
|
aioresponses
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
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
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = vdirsyncer; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Synchronize calendars and contacts";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/pimutils/vdirsyncer";
|
|
|
|
changelog = "https://github.com/pimutils/vdirsyncer/blob/v${version}/CHANGELOG.rst";
|
|
|
|
license = licenses.bsd3;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ loewenheim ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|