2021-03-16 21:37:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-05-27 19:24:11 +01:00
|
|
|
, aiohttp
|
|
|
|
, aiozeroconf
|
|
|
|
, cryptography
|
|
|
|
, deepdiff
|
2021-03-16 21:37:12 +00:00
|
|
|
, fetchFromGitHub
|
2020-05-27 19:24:11 +01:00
|
|
|
, netifaces
|
|
|
|
, protobuf
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
2021-03-16 21:37:12 +00:00
|
|
|
, pytest-runner
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
2020-05-27 19:24:11 +01:00
|
|
|
, srptools
|
2020-10-14 12:36:03 +01:00
|
|
|
, zeroconf
|
2020-05-27 19:24:11 +01:00
|
|
|
}:
|
2018-11-22 22:16:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatv";
|
2021-03-16 21:37:12 +00:00
|
|
|
version = "0.7.7";
|
|
|
|
|
2020-10-14 12:36:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "postlund";
|
|
|
|
repo = pname;
|
2020-10-14 12:36:03 +01:00
|
|
|
rev = "v${version}";
|
2021-03-16 21:37:12 +00:00
|
|
|
sha256 = "sha256-dPnh8XZN7ZVR2rYNnj7GSYXW5I2GNQwD/KRDTgs2AtI=";
|
2018-11-22 22:16:50 +00:00
|
|
|
};
|
|
|
|
|
2021-03-16 21:37:12 +00:00
|
|
|
nativeBuildInputs = [ pytest-runner];
|
2018-11-22 22:16:50 +00:00
|
|
|
|
2020-05-27 19:24:11 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-03-16 21:37:12 +00:00
|
|
|
aiozeroconf
|
2020-05-27 19:24:11 +01:00
|
|
|
cryptography
|
|
|
|
netifaces
|
2021-03-16 21:37:12 +00:00
|
|
|
protobuf
|
|
|
|
srptools
|
2020-10-14 12:36:03 +01:00
|
|
|
zeroconf
|
2020-05-27 19:24:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
deepdiff
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
2021-03-16 21:37:12 +00:00
|
|
|
pytest-timeout
|
2020-10-14 12:36:03 +01:00
|
|
|
pytestCheckHook
|
2020-05-27 19:24:11 +01:00
|
|
|
];
|
|
|
|
|
2021-01-05 23:15:04 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-03-16 21:37:12 +00:00
|
|
|
pythonImportsCheck = [ "pyatv" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-16 21:37:12 +00:00
|
|
|
description = "Python client library for the Apple TV";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/postlund/pyatv";
|
2018-11-22 22:16:50 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elseym ];
|
|
|
|
};
|
|
|
|
}
|