diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyatv/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyatv/default.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyatv/default.nix b/nixpkgs/pkgs/development/python-modules/pyatv/default.nix index 8d6da02e5f18..647866b143fb 100644 --- a/nixpkgs/pkgs/development/python-modules/pyatv/default.nix +++ b/nixpkgs/pkgs/development/python-modules/pyatv/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchPypi +{ stdenv, buildPythonPackage , aiohttp , aiozeroconf , asynctest @@ -11,15 +11,19 @@ , pytest-asyncio , pytestrunner , srptools +, zeroconf +, fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { pname = "pyatv"; - version = "0.7.2"; - - src = fetchPypi { - inherit pname version; - sha256 = "83d86fac517d33a1e3063a547ee2a520fde74c74a1b95cb5a6f20afccfd59843"; + version = "0.7.5"; + src = fetchFromGitHub { + owner = "postlund"; + repo = pname; + rev = "v${version}"; + sha256 = "06qj6r9kcal2nimg8rpjfid8rnlz43l7hn0v9v1mpayjmv2fl8sp"; }; nativeBuildInputs = [ pytestrunner]; @@ -31,6 +35,7 @@ buildPythonPackage rec { protobuf cryptography netifaces + zeroconf ]; checkInputs = [ @@ -38,13 +43,9 @@ buildPythonPackage rec { pytest pytest-aiohttp pytest-asyncio + pytestCheckHook ]; - # just run vanilla pytest to avoid inclusion of coverage reports and xdist - checkPhase = '' - pytest - ''; - meta = with stdenv.lib; { description = "A python client library for the Apple TV"; homepage = "https://github.com/postlund/pyatv"; |