diff --git a/pkgs/development/python-modules/zigpy/default.nix b/pkgs/development/python-modules/zigpy/default.nix index e85784e51ad..54f0df34016 100644 --- a/pkgs/development/python-modules/zigpy/default.nix +++ b/pkgs/development/python-modules/zigpy/default.nix @@ -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;