2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage
|
2020-05-27 19:24:11 +01:00
|
|
|
, aiohttp
|
|
|
|
, aiozeroconf
|
|
|
|
, asynctest
|
|
|
|
, cryptography
|
|
|
|
, deepdiff
|
|
|
|
, netifaces
|
|
|
|
, protobuf
|
|
|
|
, pytest
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestrunner
|
|
|
|
, srptools
|
2020-10-14 12:36:03 +01:00
|
|
|
, zeroconf
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-05-27 19:24:11 +01:00
|
|
|
}:
|
2018-11-22 22:16:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatv";
|
2020-12-09 20:02:46 +00:00
|
|
|
version = "0.7.5";
|
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}";
|
2020-12-09 20:02:46 +00:00
|
|
|
sha256 = "06qj6r9kcal2nimg8rpjfid8rnlz43l7hn0v9v1mpayjmv2fl8sp";
|
2018-11-22 22:16:50 +00:00
|
|
|
};
|
|
|
|
|
2020-05-27 19:24:11 +01:00
|
|
|
nativeBuildInputs = [ pytestrunner];
|
2018-11-22 22:16:50 +00:00
|
|
|
|
2020-05-27 19:24:11 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiozeroconf
|
|
|
|
srptools
|
|
|
|
aiohttp
|
|
|
|
protobuf
|
|
|
|
cryptography
|
|
|
|
netifaces
|
2020-10-14 12:36:03 +01:00
|
|
|
zeroconf
|
2020-05-27 19:24:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
deepdiff
|
|
|
|
pytest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
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-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-22 22:16:50 +00:00
|
|
|
description = "A 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 ];
|
|
|
|
};
|
|
|
|
}
|