diff --git a/pkgs/development/python-modules/evohome-async/default.nix b/pkgs/development/python-modules/evohome-async/default.nix index 5abef0b5a32c..b60be7391dca 100644 --- a/pkgs/development/python-modules/evohome-async/default.nix +++ b/pkgs/development/python-modules/evohome-async/default.nix @@ -1,45 +1,69 @@ { lib, + aiofiles, aiohttp, + aioresponses, + aiozoneinfo, + asyncclick, buildPythonPackage, - click, + debugpy, fetchFromGitHub, hatchling, + pytest-asyncio, + pytest-freezer, + pytestCheckHook, pythonOlder, + pyyaml, + syrupy, voluptuous, }: buildPythonPackage rec { pname = "evohome-async"; - version = "0.4.21"; + version = "1.0.2"; pyproject = true; - disabled = pythonOlder "3.11"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "zxdavb"; repo = "evohome-async"; tag = version; - hash = "sha256-+tBqyg7E9wRC6oHq6Fv2vzIGtrHqZp8w/3x/xbacqWI="; + hash = "sha256-CpN0QAlUqCDy6hNkuNvbjQUee40BA0UqAleR+Omm9bA="; }; - nativeBuildInputs = [ hatchling ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp - click + aiozoneinfo voluptuous ]; - # Project has no tests - doCheck = false; + optional-dependencies = { + cli = [ + aiofiles + asyncclick + debugpy + ]; + }; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytest-freezer + pytestCheckHook + pyyaml + syrupy + ] ++ optional-dependencies.cli; pythonImportsCheck = [ "evohomeasync2" ]; meta = with lib; { description = "Python client for connecting to Honeywell's TCC RESTful API"; homepage = "https://github.com/zxdavb/evohome-async"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/zxdavb/evohome-async/releases/tag/${version}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; mainProgram = "evo-client"; };