depot/third_party/nixpkgs/pkgs/development/python-modules/pyatv/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01: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.0";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
sha256 = "1slr6l0gw0mf1zhp40bjf5bib45arw1cy4fqkg0gvdk1hx79828m";
};
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 ];
};
}