mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 11:15:12 +00:00
python3Packages.pyatv: 0.9.8 -> 0.10.0
This commit is contained in:
parent
d4767e4220
commit
b940be13b1
@ -14,13 +14,14 @@
|
|||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, requests
|
||||||
, srptools
|
, srptools
|
||||||
, zeroconf
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyatv";
|
pname = "pyatv";
|
||||||
version = "0.9.8";
|
version = "0.10.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
@ -29,9 +30,18 @@ buildPythonPackage rec {
|
|||||||
owner = "postlund";
|
owner = "postlund";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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 = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
bitarray
|
bitarray
|
||||||
@ -40,6 +50,7 @@ buildPythonPackage rec {
|
|||||||
miniaudio
|
miniaudio
|
||||||
netifaces
|
netifaces
|
||||||
protobuf
|
protobuf
|
||||||
|
requests
|
||||||
srptools
|
srptools
|
||||||
zeroconf
|
zeroconf
|
||||||
];
|
];
|
||||||
@ -52,13 +63,6 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "pytest-runner" ""
|
|
||||||
# Remove all version pinning
|
|
||||||
sed -i -e "s/==[0-9.]*//" requirements/requirements.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Test doesn't work in the sandbox
|
# Test doesn't work in the sandbox
|
||||||
"tests/protocols/companion/test_companion_auth.py"
|
"tests/protocols/companion/test_companion_auth.py"
|
||||||
|
Loading…
Reference in New Issue
Block a user