From bf70dbe2cbdec54a0cf9d1ceabfd72e7963c9c50 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 23 Sep 2023 15:50:16 +0200 Subject: [PATCH] Revert "python3Packages.pyatv: 0.13.4 -> 0.14.0" This reverts commit 213d74e57e763a64ec3da7931978dd76f02a1197. Requires pydantic>2.0 which was reverted in 9135cf087. --- .../python-modules/pyatv/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix index c1f28e575cf0..7401af8e47d3 100644 --- a/pkgs/development/python-modules/pyatv/default.nix +++ b/pkgs/development/python-modules/pyatv/default.nix @@ -10,27 +10,22 @@ , miniaudio , netifaces , protobuf -, pydantic -, pydantic-settings -, pyfakefs , pytest-aiohttp , pytest-asyncio , pytest-httpserver , pytest-timeout -, pytest-xdist , pytestCheckHook , pythonRelaxDepsHook , pythonOlder , requests , srptools , stdenv -, tabulate , zeroconf }: buildPythonPackage rec { pname = "pyatv"; - version = "0.14.0"; + version = "0.13.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -39,7 +34,7 @@ buildPythonPackage rec { owner = "postlund"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-MVDjoo0v+zUXrluoUBc/hwVX+FeIYGzJgHsqNoI6HVo="; + hash = "sha256-rZnL18vO8eYn70GzeKSY528iTc0r/seGv0dYDYGHNzw="; }; postPatch = '' @@ -75,25 +70,24 @@ buildPythonPackage rec { miniaudio netifaces protobuf - pydantic - pydantic-settings requests srptools - tabulate zeroconf ]; nativeCheckInputs = [ deepdiff - pyfakefs pytest-aiohttp pytest-asyncio pytest-httpserver pytest-timeout - pytest-xdist pytestCheckHook ]; + pytestFlagsArray = [ + "--asyncio-mode=legacy" + ]; + disabledTests = lib.optionals (stdenv.isDarwin) [ # tests/protocols/raop/test_raop_functional.py::test_stream_retransmission[raop_properties2-2-True] - assert False "test_stream_retransmission"