python3Packages.zigpy-zigate: 0.6.1 -> 0.6.2, add tests

This commit is contained in:
Matt Votava 2020-10-24 06:59:57 -07:00
parent 871aee2f91
commit b9a82c26a3

View File

@ -1,22 +1,44 @@
{ stdenv, buildPythonPackage, fetchPypi
, pyserial, pyserial-asyncio, zigpy
, pytest }:
{ lib
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, zigpy }:
buildPythonPackage rec {
pname = "zigpy-zigate";
version = "0.6.1";
version = "0.6.2";
# https://github.com/Martiusweb/asynctest/issues/152
# broken by upstream python bug with asynctest and
# is used exclusively by home-assistant with python 3.8
disabled = pythonOlder "3.8";
buildInputs = [ pyserial pyserial-asyncio zigpy ];
checkInputs = [ pytest ];
src = fetchPypi {
inherit pname version;
sha256 = "0xxqv65drrr96b9ncwsx9ayd369lpwimj1jjb0d7j6l9lil0wmf5";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy-zigate";
rev = version;
sha256 = "EV6DV+BytUcPMtzYVKDnq/Uv2efg3stjL5uVlL62II4=";
};
meta = with stdenv.lib; {
buildInputs = [
pyserial
pyserial-asyncio
zigpy
];
checkInputs = [
asynctest
pytest-asyncio
pytestCheckHook
];
meta = with lib; {
description = "A library which communicates with ZiGate radios for zigpy";
homepage = "http://github.com/doudz/zigpy-zigate";
homepage = "https://github.com/zigpy/zigpy-zigate";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ etu mvnetbiz ];
platforms = platforms.linux;