python3Packages.pyatv: 0.9.8 -> 0.10.0

This commit is contained in:
Martin Weinelt 2022-02-02 20:56:52 +01:00
parent d4767e4220
commit b940be13b1
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -14,13 +14,14 @@
, pytest-timeout
, pytestCheckHook
, pythonOlder
, requests
, srptools
, zeroconf
}:
buildPythonPackage rec {
pname = "pyatv";
version = "0.9.8";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -29,9 +30,18 @@ buildPythonPackage rec {
owner = "postlund";
repo = pname;
rev = "v${version}";
sha256 = "1ns1ys3mwi1s1b8zxcr7xgr1rfnlxwdn2fp680yi09x4d9nmnvqp";
sha256 = "sha256-aYNBFtsnSg3PORq72U0PXPFCTVj2+8D2TS3nMau55t4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
# Remove all version pinning
substituteInPlace base_versions.txt \
--replace "protobuf==3.19.1,<4" "protobuf>=3.19.0,<4"
'';
propagatedBuildInputs = [
aiohttp
bitarray
@ -40,6 +50,7 @@ buildPythonPackage rec {
miniaudio
netifaces
protobuf
requests
srptools
zeroconf
];
@ -52,13 +63,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
# Remove all version pinning
sed -i -e "s/==[0-9.]*//" requirements/requirements.txt
'';
disabledTestPaths = [
# Test doesn't work in the sandbox
"tests/protocols/companion/test_companion_auth.py"