1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/pkgs/development/python-modules/vdirsyncer/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2021-06-14 16:33:20 +08:00
, pythonOlder
, click
, click-log
, click-threading
, requests-toolbelt
, requests
, requests_oauthlib # required for google oauth sync
, atomicwrites
, hypothesis
2020-07-01 09:15:51 +02:00
, pytestCheckHook
, pytest-localserver
, pytest-subtesthack
, setuptools-scm
}:
buildPythonPackage rec {
2021-06-14 16:33:20 +08:00
version = "0.18.0";
pname = "vdirsyncer";
2021-06-14 16:33:20 +08:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
2021-06-14 16:33:20 +08:00
sha256 = "sha256-J7w+1R93STX7ujkpFcjI1M9jmuUaRLZ0aGtJoQJfwgE=";
};
propagatedBuildInputs = [
2021-06-14 16:33:20 +08:00
atomicwrites
click
click-log
click-threading
requests
requests_oauthlib # required for google oauth sync
requests-toolbelt
];
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
hypothesis
2020-07-01 09:15:51 +02:00
pytestCheckHook
pytest-localserver
pytest-subtesthack
];
postPatch = ''
2021-06-14 16:33:20 +08:00
sed -i -e '/--cov/d' -e '/--no-cov/d' setup.cfg
'';
2020-07-01 09:15:51 +02:00
preCheck = ''
export DETERMINISTIC_TESTS=true
'';
2020-07-01 09:15:51 +02:00
disabledTests = [
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
2021-06-14 16:33:20 +08:00
"test_request_ssl"
"test_verbosity"
];
meta = with lib; {
homepage = "https://github.com/pimutils/vdirsyncer";
description = "Synchronize calendars and contacts";
license = licenses.mit;
maintainers = with maintainers; [ loewenheim ];
};
}