diff --git a/pkgs/development/python-modules/python-mystrom/default.nix b/pkgs/development/python-modules/python-mystrom/default.nix index 823c9a7d6b9a..7a8e979c2d6a 100644 --- a/pkgs/development/python-modules/python-mystrom/default.nix +++ b/pkgs/development/python-modules/python-mystrom/default.nix @@ -5,19 +5,21 @@ click, fetchFromGitHub, poetry-core, + pytest-asyncio, + pytestCheckHook, requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-mystrom"; - version = "2.6.0"; + version = "2.7.0"; pyproject = true; src = fetchFromGitHub { owner = "home-assistant-ecosystem"; repo = "python-mystrom"; - tag = version; - hash = "sha256-EXYBrOgpbOSGsNGqNKHBPam0/Gn050q+CjyAN7KJ7O8="; + tag = finalAttrs.version; + hash = "sha256-zg/t2EQ6h8fThbV3U1h3Bs9pxOmlswicR3dREoQuuoY="; }; build-system = [ poetry-core ]; @@ -28,8 +30,10 @@ buildPythonPackage rec { requests ]; - # no tests are present - doCheck = false; + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "pymystrom.bulb" @@ -44,9 +48,9 @@ buildPythonPackage rec { There is support for bulbs, motion sensors, plugs and buttons. ''; homepage = "https://github.com/home-assistant-ecosystem/python-mystrom"; - changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${src.tag}"; + changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "mystrom"; }; -} +})