nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 60 lines 1.0 kB view raw
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 17}: 18 19buildPythonPackage rec { 20 pname = "pyatv"; 21 version = "0.7.7"; 22 23 src = fetchFromGitHub { 24 owner = "postlund"; 25 repo = pname; 26 rev = "v${version}"; 27 sha256 = "sha256-dPnh8XZN7ZVR2rYNnj7GSYXW5I2GNQwD/KRDTgs2AtI="; 28 }; 29 30 nativeBuildInputs = [ pytest-runner]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 aiozeroconf 35 cryptography 36 netifaces 37 protobuf 38 srptools 39 zeroconf 40 ]; 41 42 checkInputs = [ 43 deepdiff 44 pytest-aiohttp 45 pytest-asyncio 46 pytest-timeout 47 pytestCheckHook 48 ]; 49 50 __darwinAllowLocalNetworking = true; 51 52 pythonImportsCheck = [ "pyatv" ]; 53 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 }; 60}