diff --git a/pkgs/development/python-modules/incomfort-client/default.nix b/pkgs/development/python-modules/incomfort-client/default.nix index d281ece24635..496c98488910 100644 --- a/pkgs/development/python-modules/incomfort-client/default.nix +++ b/pkgs/development/python-modules/incomfort-client/default.nix @@ -1,29 +1,43 @@ { lib , aiohttp +, aioresponses , buildPythonPackage , fetchFromGitHub +, pytest-asyncio +, pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "incomfort-client"; - version = "0.4.5"; + version = "0.5.0"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "zxdavb"; repo = pname; - rev = version; - sha256 = "0r9f15fcjwhrq6ldji1dzbb76wsvinpkmyyaj7n55rl6ibnsyrwp"; + rev = "refs/tags/${version}"; + hash = "sha256-kdPue3IfF85O+0dgvX+dN6S4WoQmjxdCfwfv83SnO8E="; }; propagatedBuildInputs = [ aiohttp ]; - # Project has no tests - doCheck = false; - pythonImportsCheck = [ "incomfortclient" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + + checkInputs = [ + aioresponses + pytest-asyncio + ]; + + pythonImportsCheck = [ + "incomfortclient" + ]; meta = with lib; { description = "Python module to poll Intergas boilers via a Lan2RF gateway";