linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / vdirsyncer / default.nix
blob1f7642bfe3473b077ff7f0698c5f3d5fd98041c9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , click
6 , click-log
7 , click-threading
8 , requests_toolbelt
9 , requests
10 , requests_oauthlib # required for google oauth sync
11 , atomicwrites
12 , hypothesis
13 , pytestCheckHook
14 , pytest-localserver
15 , pytest-subtesthack
16 , setuptools_scm
19 buildPythonPackage rec {
20   version = "0.16.8";
21   pname = "vdirsyncer";
22   disabled = isPy27;
24   src = fetchPypi {
25     inherit pname version;
26     sha256 = "bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5";
27   };
29   propagatedBuildInputs = [
30     click click-log click-threading
31     requests_toolbelt
32     requests
33     requests_oauthlib # required for google oauth sync
34     atomicwrites
35   ];
37   nativeBuildInputs = [
38     setuptools_scm
39   ];
41   checkInputs = [
42     hypothesis
43     pytestCheckHook
44     pytest-localserver
45     pytest-subtesthack
46   ];
48   postPatch = ''
49     substituteInPlace setup.py --replace "click>=5.0,<6.0" "click"
50   '';
52   preCheck = ''
53     export DETERMINISTIC_TESTS=true
54   '';
56   disabledTests = [
57     "test_verbosity"
58     "test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
59   ];
61   meta = with lib; {
62     homepage = "https://github.com/pimutils/vdirsyncer";
63     description = "Synchronize calendars and contacts";
64     license = licenses.mit;
65     maintainers = with maintainers; [ loewenheim ];
66   };