Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyatv / default.nix
blobddf2c9695a46676914e479cbd1f33837d0b3aeec
1 { lib
2 , buildPythonPackage
3 , aiohttp
4 , aiozeroconf
5 , cryptography
6 , deepdiff
7 , fetchFromGitHub
8 , netifaces
9 , protobuf
10 , pytest-aiohttp
11 , pytest-asyncio
12 , pytest-runner
13 , pytest-timeout
14 , pytestCheckHook
15 , srptools
16 , zeroconf
19 buildPythonPackage rec {
20   pname = "pyatv";
21   version = "0.7.7";
23   src = fetchFromGitHub {
24     owner = "postlund";
25     repo = pname;
26     rev = "v${version}";
27     sha256 = "sha256-dPnh8XZN7ZVR2rYNnj7GSYXW5I2GNQwD/KRDTgs2AtI=";
28   };
30   nativeBuildInputs = [ pytest-runner];
32   propagatedBuildInputs = [
33     aiohttp
34     aiozeroconf
35     cryptography
36     netifaces
37     protobuf
38     srptools
39     zeroconf
40   ];
42   checkInputs = [
43     deepdiff
44     pytest-aiohttp
45     pytest-asyncio
46     pytest-timeout
47     pytestCheckHook
48   ];
50   __darwinAllowLocalNetworking = true;
52   pythonImportsCheck = [ "pyatv" ];
54   meta = with lib; {
55     description = "Python client library for the Apple TV";
56     homepage = "https://github.com/postlund/pyatv";
57     license = licenses.mit;
58     maintainers = with maintainers; [ elseym ];
59   };