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
|
|
|
|
, 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";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.19.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256:0995bavlv8s9j0127ncq3yzy5p72lam9qgpswyjfanc6l01q87lf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "click-log>=0.3.0, <0.4.0" "click-log>=0.3.0, <0.5.0"
|
|
|
|
|
|
|
|
sed -i -e '/--cov/d' -e '/--no-cov/d' setup.cfg
|
|
|
|
'';
|
|
|
|
|
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
|
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-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
|
|
|
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
|
|
|
};
|
|
|
|
}
|