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

73 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2020-05-27 18:24:11 +00:00
, aiohttp
, bitarray
2020-05-27 18:24:11 +00:00
, cryptography
, deepdiff
, fetchFromGitHub
, mediafile
, miniaudio
2020-05-27 18:24:11 +00:00
, netifaces
, protobuf
, pytest-aiohttp
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
2020-05-27 18:24:11 +00:00
, srptools
, zeroconf
2020-05-27 18:24:11 +00:00
}:
2018-11-22 22:16:50 +00:00
buildPythonPackage rec {
pname = "pyatv";
2021-10-28 14:13:52 +00:00
version = "0.9.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
2021-10-28 14:13:52 +00:00
sha256 = "0navm7a0k1679kj7nbkbyl7s2q0wq0xmcnizmnvp0arkd5xqmqv1";
2018-11-22 22:16:50 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
2018-11-22 22:16:50 +00:00
2020-05-27 18:24:11 +00:00
propagatedBuildInputs = [
aiohttp
bitarray
2020-05-27 18:24:11 +00:00
cryptography
mediafile
miniaudio
2020-05-27 18:24:11 +00:00
netifaces
protobuf
srptools
zeroconf
2020-05-27 18:24:11 +00:00
];
checkInputs = [
deepdiff
pytest-aiohttp
pytest-asyncio
pytest-timeout
pytestCheckHook
2020-05-27 18:24:11 +00:00
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
"pyatv"
];
meta = with lib; {
description = "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 ];
};
}