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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

86 lines
1.6 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
, atomicwrites
, hypothesis
2020-07-01 09:15:51 +02:00
, pytestCheckHook
, pytest-subtesthack
, setuptools-scm
2022-12-07 08:44:56 +01:00
, aiostream
, aiohttp
, pytest-asyncio
, trustme
, aioresponses
2022-12-07 08:49:49 +01:00
, vdirsyncer
, testers
}:
buildPythonPackage rec {
pname = "vdirsyncer";
2022-12-07 08:44:56 +01:00
version = "0.19.0";
format = "setuptools";
2021-06-14 16:33:20 +08:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
2022-12-07 08:44:56 +01:00
hash = "sha256:0995bavlv8s9j0127ncq3yzy5p72lam9qgpswyjfanc6l01q87lf";
};
postPatch = ''
substituteInPlace setup.py \
--replace "click-log>=0.3.0, <0.4.0" "click-log>=0.3.0, <0.5.0"
sed -i -e '/--cov/d' -e '/--no-cov/d' setup.cfg
'';
propagatedBuildInputs = [
2021-06-14 16:33:20 +08:00
atomicwrites
click
click-log
click-threading
requests
requests-toolbelt
2022-12-07 08:44:56 +01:00
aiostream
aiohttp
];
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
hypothesis
2020-07-01 09:15:51 +02:00
pytestCheckHook
pytest-subtesthack
2022-12-07 08:44:56 +01:00
pytest-asyncio
trustme
aioresponses
];
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"
];
2022-12-07 08:49:49 +01:00
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 ];
};
}