9c6d255489
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
56 lines
966 B
Nix
56 lines
966 B
Nix
{ stdenv, buildPythonPackage
|
|
, aiohttp
|
|
, aiozeroconf
|
|
, asynctest
|
|
, cryptography
|
|
, deepdiff
|
|
, netifaces
|
|
, protobuf
|
|
, pytest
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytestrunner
|
|
, srptools
|
|
, zeroconf
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyatv";
|
|
version = "v0.7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "postlund";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "17gsamn4aibsx4w50r9dwr5kr9anc7dd0f0dvmdl717rkgh13zyi";
|
|
};
|
|
|
|
nativeBuildInputs = [ pytestrunner];
|
|
|
|
propagatedBuildInputs = [
|
|
aiozeroconf
|
|
srptools
|
|
aiohttp
|
|
protobuf
|
|
cryptography
|
|
netifaces
|
|
zeroconf
|
|
pytestCheckHook
|
|
];
|
|
|
|
checkInputs = [
|
|
deepdiff
|
|
pytest
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|