mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
e5fb7f2ef9
vdirsyncer depends on aiostream<5.0, but aiostream 5 didn't introduce any changes which break vdirsyncer as far as I know thus relaxing the dependency fixes the build
97 lines
1.8 KiB
Nix
97 lines
1.8 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, click
|
|
, click-log
|
|
, click-threading
|
|
, requests-toolbelt
|
|
, requests
|
|
, atomicwrites
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
, pytest-subtesthack
|
|
, setuptools
|
|
, setuptools-scm
|
|
, wheel
|
|
, aiostream
|
|
, aiohttp-oauthlib
|
|
, aiohttp
|
|
, pytest-asyncio
|
|
, trustme
|
|
, aioresponses
|
|
, vdirsyncer
|
|
, testers
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vdirsyncer";
|
|
version = "0.19.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-/QWM7quCk0WaBGbNmw5Ks7OUYsbgiaDwrDfDB0INgro=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e '/--cov/d' -e '/--no-cov/d' pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"aiostream"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
atomicwrites
|
|
click
|
|
click-log
|
|
click-threading
|
|
requests
|
|
requests-toolbelt
|
|
aiostream
|
|
aiohttp
|
|
aiohttp-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
pytest-subtesthack
|
|
pytest-asyncio
|
|
trustme
|
|
aioresponses
|
|
];
|
|
|
|
preCheck = ''
|
|
export DETERMINISTIC_TESTS=true
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_create_collections" # Flaky test exceeds deadline on hydra: https://github.com/pimutils/vdirsyncer/issues/837
|
|
"test_request_ssl"
|
|
"test_verbosity"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion { package = vdirsyncer; };
|
|
|
|
meta = with lib; {
|
|
description = "Synchronize calendars and contacts";
|
|
homepage = "https://github.com/pimutils/vdirsyncer";
|
|
changelog = "https://github.com/pimutils/vdirsyncer/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ loewenheim ];
|
|
mainProgram = "vdirsyncer";
|
|
};
|
|
}
|