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

58 lines
1,008 B
Nix
Raw Normal View History

{ lib, stdenv, buildPythonPackage
2020-05-27 20:24:11 +02:00
, aiohttp
, aiozeroconf
, asynctest
, cryptography
, deepdiff
, netifaces
, protobuf
, pytest
, pytest-aiohttp
, pytest-asyncio
, pytestrunner
, srptools
, zeroconf
, fetchFromGitHub
, pytestCheckHook
2020-05-27 20:24:11 +02:00
}:
2018-11-22 23:16:50 +01:00
buildPythonPackage rec {
pname = "pyatv";
2020-12-09 21:02:46 +01:00
version = "0.7.5";
src = fetchFromGitHub {
owner = "postlund";
repo = pname;
rev = "v${version}";
2020-12-09 21:02:46 +01:00
sha256 = "06qj6r9kcal2nimg8rpjfid8rnlz43l7hn0v9v1mpayjmv2fl8sp";
2018-11-22 23:16:50 +01:00
};
2020-05-27 20:24:11 +02:00
nativeBuildInputs = [ pytestrunner];
2018-11-22 23:16:50 +01:00
2020-05-27 20:24:11 +02:00
propagatedBuildInputs = [
aiozeroconf
srptools
aiohttp
protobuf
cryptography
netifaces
zeroconf
2020-05-27 20:24:11 +02:00
];
checkInputs = [
deepdiff
pytest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
2020-05-27 20:24:11 +02:00
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
2018-11-22 23:16:50 +01:00
description = "A python client library for the Apple TV";
homepage = "https://github.com/postlund/pyatv";
2018-11-22 23:16:50 +01:00
license = licenses.mit;
maintainers = with maintainers; [ elseym ];
};
}