nixpkgs/pkgs/development/python-modules/pyatv/default.nix

58 lines
1000 B
Nix
Raw Normal View History

{ lib, buildPythonPackage
2020-05-27 18:24:11 +00:00
, aiohttp
, aiozeroconf
, asynctest
, cryptography
, deepdiff
, netifaces
, protobuf
, pytest
, pytest-aiohttp
, pytest-asyncio
, pytestrunner
, srptools
, zeroconf
, fetchFromGitHub
, pytestCheckHook
2020-05-27 18:24:11 +00:00
}:
2018-11-22 22:16:50 +00:00
buildPythonPackage rec {
pname = "pyatv";
2021-02-01 23:16:51 +00:00
version = "0.7.6";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
2021-02-01 23:16:51 +00:00
sha256 = "1lahv6f97fizgh5b2w5yz9455l8ygn99rslhiygkgjywi2flx3p3";
2018-11-22 22:16:50 +00:00
};
2020-05-27 18:24:11 +00:00
nativeBuildInputs = [ pytestrunner];
2018-11-22 22:16:50 +00:00
2020-05-27 18:24:11 +00:00
propagatedBuildInputs = [
aiozeroconf
srptools
aiohttp
protobuf
cryptography
netifaces
zeroconf
2020-05-27 18:24:11 +00:00
];
checkInputs = [
deepdiff
pytest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
2020-05-27 18:24:11 +00:00
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
2018-11-22 22:16:50 +00:00
description = "A python client library for the Apple TV";
homepage = "https://github.com/postlund/pyatv";
2018-11-22 22:16:50 +00:00
license = licenses.mit;
maintainers = with maintainers; [ elseym ];
};
}