3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyatv/default.nix

56 lines
970 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage
2020-05-27 19:24:11 +01:00
, aiohttp
, aiozeroconf
, asynctest
, cryptography
, deepdiff
, netifaces
, protobuf
, pytest
, pytest-aiohttp
, pytest-asyncio
, pytestrunner
, srptools
, zeroconf
, fetchFromGitHub
, pytestCheckHook
2020-05-27 19:24:11 +01:00
}:
2018-11-22 22:16:50 +00:00
buildPythonPackage rec {
pname = "pyatv";
version = "0.7.4";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
sha256 = "17gsamn4aibsx4w50r9dwr5kr9anc7dd0f0dvmdl717rkgh13zyi";
2018-11-22 22:16:50 +00:00
};
2020-05-27 19:24:11 +01:00
nativeBuildInputs = [ pytestrunner];
2018-11-22 22:16:50 +00:00
2020-05-27 19:24:11 +01:00
propagatedBuildInputs = [
aiozeroconf
srptools
aiohttp
protobuf
cryptography
netifaces
zeroconf
2020-05-27 19:24:11 +01:00
];
checkInputs = [
deepdiff
pytest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
2020-05-27 19:24:11 +01:00
];
2018-11-22 22:16:50 +00:00
meta = with stdenv.lib; {
description = "A 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 ];
};
}