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

55 lines
981 B
Nix
Raw Normal View History

2020-05-27 19:24:11 +01:00
{ stdenv, buildPythonPackage, fetchPypi
, aiohttp
, aiozeroconf
, asynctest
, cryptography
, deepdiff
, netifaces
, protobuf
, pytest
, pytest-aiohttp
, pytest-asyncio
, pytestrunner
, srptools
}:
2018-11-22 22:16:50 +00:00
buildPythonPackage rec {
pname = "pyatv";
2020-08-29 12:41:50 +01:00
version = "0.7.2";
2018-11-22 22:16:50 +00:00
src = fetchPypi {
inherit pname version;
2020-08-29 12:41:50 +01:00
sha256 = "83d86fac517d33a1e3063a547ee2a520fde74c74a1b95cb5a6f20afccfd59843";
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
];
checkInputs = [
deepdiff
pytest
pytest-aiohttp
pytest-asyncio
];
# just run vanilla pytest to avoid inclusion of coverage reports and xdist
checkPhase = ''
pytest
'';
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 ];
};
}