python3Packages.zigpy: 0.22.2 -> 0.26.0, add tests

This commit is contained in:
Matt Votava 2020-10-24 06:12:14 -07:00
parent 303e7d6ef4
commit 6315b00879

View file

@ -1,20 +1,44 @@
{ stdenv, buildPythonPackage, fetchPypi
, aiohttp, crccheck, pycryptodome, pycrypto, voluptuous
, pytest, pytest-asyncio, asynctest }:
{ lib
, aiohttp
, asynctest
, buildPythonPackage
, crccheck
, fetchFromGitHub
, pycrypto
, pycryptodome
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, tox
, voluptuous }:
buildPythonPackage rec {
pname = "zigpy";
version = "0.22.2";
version = "0.26.0";
propagatedBuildInputs = [ aiohttp crccheck pycrypto pycryptodome voluptuous ];
checkInputs = [ pytest pytest-asyncio asynctest ];
src = fetchPypi {
inherit pname version;
sha256 = "a43129932c6e4af0d2d57542218faf7695e2424ce18a5a8915d016e1303f5e44";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy";
rev = version;
sha256 = "ba8Ru6RCbFOHhctFtklnrxVD3uEpxF4XDvO5RMgXPBs=";
};
meta = with stdenv.lib; {
propagatedBuildInputs = [
aiohttp
crccheck
pycrypto
pycryptodome
voluptuous
];
checkInputs = [
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
meta = with lib; {
description = "Library implementing a ZigBee stack";
homepage = "https://github.com/zigpy/zigpy";
license = licenses.gpl3Plus;