mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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:
parent
ffde8a8e1e
commit
96a2008d09
1 changed files with 12 additions and 10 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue