16a5e2dd58
Upstream fixed the issue.
80 lines
1.5 KiB
Nix
80 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, click
|
|
, click-log
|
|
, click-threading
|
|
, requests-toolbelt
|
|
, requests
|
|
, atomicwrites
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
, pytest-subtesthack
|
|
, setuptools-scm
|
|
, aiostream
|
|
, aiohttp-oauthlib
|
|
, aiohttp
|
|
, pytest-asyncio
|
|
, trustme
|
|
, aioresponses
|
|
, vdirsyncer
|
|
, testers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vdirsyncer";
|
|
version = "0.19.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qnbHclqlpxH2N0vFzYO+eKrmjHSCljWp7Qc81MCfA64=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e '/--cov/d' -e '/--no-cov/d' pyproject.toml
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
atomicwrites
|
|
click
|
|
click-log
|
|
click-threading
|
|
requests
|
|
requests-toolbelt
|
|
aiostream
|
|
aiohttp
|
|
aiohttp-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
pytest-subtesthack
|
|
pytest-asyncio
|
|
trustme
|
|
aioresponses
|
|
];
|
|
|
|
preCheck = ''
|
|
export DETERMINISTIC_TESTS=true
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
|
|
"test_request_ssl"
|
|
"test_verbosity"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion { package = vdirsyncer; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pimutils/vdirsyncer";
|
|
description = "Synchronize calendars and contacts";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ loewenheim ];
|
|
};
|
|
}
|