2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, aiozeroconf
|
|
|
|
, asynctest
|
|
|
|
, cryptography
|
|
|
|
, deepdiff
|
|
|
|
, netifaces
|
|
|
|
, protobuf
|
|
|
|
, pytest
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestrunner
|
|
|
|
, srptools
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatv";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0f9wj1ggllwpjd9nh6nsrck7m4gbz29q6vqbrhbkc2kz6waqkgwc";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
deepdiff
|
|
|
|
pytest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
# just run vanilla pytest to avoid inclusion of coverage reports and xdist
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|