pythonPackages.pyatv: 0.7.2 -> 0.7.4

Also fixes build by switching to github since base_versions.txt is missing
in pypi.
This commit is contained in:
Nikita Uvarov 2020-10-14 13:36:03 +02:00
parent ffde8a8e1e
commit 96a2008d09
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -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";