From 96a2008d09c8cd6337cb93e0765e418386edd681 Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Wed, 14 Oct 2020 13:36:03 +0200 Subject: [PATCH] pythonPackages.pyatv: 0.7.2 -> 0.7.4 Also fixes build by switching to github since base_versions.txt is missing in pypi. --- .../python-modules/pyatv/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix index 8d6da02e5f1..68549e5cabd 100644 --- a/pkgs/development/python-modules/pyatv/default.nix +++ b/pkgs/development/python-modules/pyatv/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchPypi +{ stdenv, buildPythonPackage , aiohttp , aiozeroconf , asynctest @@ -11,15 +11,20 @@ , pytest-asyncio , pytestrunner , srptools +, zeroconf +, fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { pname = "pyatv"; - version = "0.7.2"; + version = "v0.7.4"; - src = fetchPypi { - inherit pname version; - sha256 = "83d86fac517d33a1e3063a547ee2a520fde74c74a1b95cb5a6f20afccfd59843"; + src = fetchFromGitHub { + owner = "postlund"; + repo = pname; + rev = version; + sha256 = "17gsamn4aibsx4w50r9dwr5kr9anc7dd0f0dvmdl717rkgh13zyi"; }; nativeBuildInputs = [ pytestrunner]; @@ -31,6 +36,8 @@ buildPythonPackage rec { protobuf cryptography netifaces + zeroconf + pytestCheckHook ]; checkInputs = [ @@ -40,11 +47,6 @@ buildPythonPackage rec { pytest-asyncio ]; - # 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";