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 { lib
, pyserial, pyserial-asyncio, zigpy , asynctest
, pytest }: , buildPythonPackage
, fetchFromGitHub
, pyserial
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, zigpy }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zigpy-zigate"; 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 ]; src = fetchFromGitHub {
checkInputs = [ pytest ]; owner = "zigpy";
repo = "zigpy-zigate";
src = fetchPypi { rev = version;
inherit pname version; sha256 = "EV6DV+BytUcPMtzYVKDnq/Uv2efg3stjL5uVlL62II4=";
sha256 = "0xxqv65drrr96b9ncwsx9ayd369lpwimj1jjb0d7j6l9lil0wmf5";
}; };
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"; 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; license = licenses.gpl3Plus;
maintainers = with maintainers; [ etu mvnetbiz ]; maintainers = with maintainers; [ etu mvnetbiz ];
platforms = platforms.linux; platforms = platforms.linux;