77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, isPy27
|
|
, click
|
|
, click-log
|
|
, click-threading
|
|
, requests_toolbelt
|
|
, requests
|
|
, requests_oauthlib # required for google oauth sync
|
|
, atomicwrites
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
, pytest-localserver
|
|
, pytest-subtesthack
|
|
, setuptools_scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.16.8";
|
|
pname = "vdirsyncer";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click click-log click-threading
|
|
requests_toolbelt
|
|
requests
|
|
requests_oauthlib # required for google oauth sync
|
|
atomicwrites
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
setuptools_scm
|
|
];
|
|
|
|
checkInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
pytest-localserver
|
|
pytest-subtesthack
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "update-usage-deprecated-method.patch";
|
|
url = "https://github.com/pimutils/vdirsyncer/commit/7577fa21177442aacc2d86640ef28cebf1c4aaef.patch";
|
|
sha256 = "0inkr1wfal20kssij8l5myhpjivxg8wlvhppqc3lvml9d1i75qbh";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "click>=5.0,<6.0" "click"
|
|
'';
|
|
|
|
preCheck = ''
|
|
export DETERMINISTIC_TESTS=true
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_verbosity"
|
|
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pimutils/vdirsyncer";
|
|
description = "Synchronize calendars and contacts";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ loewenheim ];
|
|
};
|
|
}
|