depot/third_party/nixpkgs/pkgs/development/python-modules/pyatv/default.nix
Default email 48d4c8cc3c Project import generated by Copybara.
GitOrigin-RevId: 6ef4f522d63f22b40004319778761040d3197390
2021-08-08 17:34:03 -06:00

66 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, aiohttp
, audio-metadata
, bitarray
, cryptography
, deepdiff
, fetchFromGitHub
, miniaudio
, netifaces
, protobuf
, pytest-aiohttp
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, srptools
, zeroconf
}:
buildPythonPackage rec {
pname = "pyatv";
version = "0.8.2";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
sha256 = "035cjm78xakvfi7k8zahjk0xr23p9my67d8jvq5bqrd506awrl0f";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
propagatedBuildInputs = [
aiohttp
audio-metadata
bitarray
cryptography
miniaudio
netifaces
protobuf
srptools
zeroconf
];
checkInputs = [
deepdiff
pytest-aiohttp
pytest-asyncio
pytest-timeout
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pyatv" ];
meta = with lib; {
description = "Python client library for the Apple TV";
homepage = "https://github.com/postlund/pyatv";
license = licenses.mit;
maintainers = with maintainers; [ elseym ];
};
}