nixpkgs/pkgs/development/python-modules/vdirsyncer/default.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, click
, click-log
, click-threading
, requests_toolbelt
, requests
, requests_oauthlib # required for google oauth sync
, atomicwrites
, hypothesis
2020-07-01 08:15:51 +01:00
, pytestCheckHook
, pytest-localserver
, pytest-subtesthack
, setuptools_scm
}:
buildPythonPackage rec {
2020-07-01 08:15:51 +01:00
version = "0.16.8";
pname = "vdirsyncer";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2020-07-01 08:15:51 +01:00
sha256 = "bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5";
};
propagatedBuildInputs = [
click click-log click-threading
requests_toolbelt
requests
requests_oauthlib # required for google oauth sync
atomicwrites
];
nativeBuildInputs = [
setuptools_scm
];
checkInputs = [
hypothesis
2020-07-01 08:15:51 +01:00
pytestCheckHook
pytest-localserver
pytest-subtesthack
];
postPatch = ''
2020-07-01 08:15:51 +01:00
substituteInPlace setup.py --replace "click>=5.0,<6.0" "click"
'';
2020-07-01 08:15:51 +01:00
preCheck = ''
export DETERMINISTIC_TESTS=true
'';
2020-07-01 08:15:51 +01:00
disabledTests = [
"test_verbosity"
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
];
meta = with stdenv.lib; {
homepage = "https://github.com/pimutils/vdirsyncer";
description = "Synchronize calendars and contacts";
license = licenses.mit;
maintainers = with maintainers; [ loewenheim ];
};
}