diff --git a/pkgs/development/python-modules/volkszaehler/default.nix b/pkgs/development/python-modules/volkszaehler/default.nix index 77795c554380..3ca540079395 100644 --- a/pkgs/development/python-modules/volkszaehler/default.nix +++ b/pkgs/development/python-modules/volkszaehler/default.nix @@ -1,41 +1,41 @@ { lib, aiohttp, - async-timeout, buildPythonPackage, fetchFromGitHub, - setuptools, + hatchling, + pytest-asyncio, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "volkszaehler"; - version = "0.5.2"; + version = "0.6.0"; pyproject = true; src = fetchFromGitHub { owner = "home-assistant-ecosystem"; repo = "python-volkszaehler"; - tag = version; - hash = "sha256-2XOV+Cft7xLIDNDpwNc+F8VasCYD8XEkxnwW0iS/p9U="; + tag = finalAttrs.version; + hash = "sha256-DgsP3ol6VcOnoUJF1eQjNWR45SokElNosyfgvPZVihU="; }; - build-system = [ setuptools ]; + build-system = [ hatchling ]; - dependencies = [ - aiohttp - async-timeout + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook ]; - # no tests are present - doCheck = false; - pythonImportsCheck = [ "volkszaehler" ]; meta = { description = "Python module for interacting with the Volkszahler API"; homepage = "https://github.com/home-assistant-ecosystem/python-volkszaehler"; - changelog = "https://github.com/home-assistant-ecosystem/python-volkszaehler/releases/tag/${version}"; + changelog = "https://github.com/home-assistant-ecosystem/python-volkszaehler/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})