2020-10-16 20:44:37 +00:00
|
|
|
{ stdenv, buildPythonPackage
|
2020-05-29 06:06:01 +00:00
|
|
|
, aiohttp
|
|
|
|
, aiozeroconf
|
|
|
|
, asynctest
|
|
|
|
, cryptography
|
|
|
|
, deepdiff
|
|
|
|
, netifaces
|
|
|
|
, protobuf
|
|
|
|
, pytest
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestrunner
|
|
|
|
, srptools
|
2020-10-16 20:44:37 +00:00
|
|
|
, zeroconf
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatv";
|
2020-10-19 23:25:03 +00:00
|
|
|
version = "0.7.4";
|
2020-10-16 20:44:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "postlund";
|
|
|
|
repo = pname;
|
2020-10-19 23:25:03 +00:00
|
|
|
rev = "v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "17gsamn4aibsx4w50r9dwr5kr9anc7dd0f0dvmdl717rkgh13zyi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ pytestrunner];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiozeroconf
|
|
|
|
srptools
|
|
|
|
aiohttp
|
|
|
|
protobuf
|
|
|
|
cryptography
|
|
|
|
netifaces
|
2020-10-16 20:44:37 +00:00
|
|
|
zeroconf
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
deepdiff
|
|
|
|
pytest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
2020-10-19 23:25:03 +00:00
|
|
|
pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A python client library for the Apple TV";
|
|
|
|
homepage = "https://github.com/postlund/pyatv";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elseym ];
|
|
|
|
};
|
|
|
|
}
|