diff --git a/pkgs/development/python-modules/pyheos/default.nix b/pkgs/development/python-modules/pyheos/default.nix index db5fe0b0be02..15f1f30a1fa3 100644 --- a/pkgs/development/python-modules/pyheos/default.nix +++ b/pkgs/development/python-modules/pyheos/default.nix @@ -2,42 +2,39 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonAtLeast, + setuptools, pytest-asyncio, pytestCheckHook, }: buildPythonPackage rec { pname = "pyheos"; - version = "0.7.2"; - format = "setuptools"; + version = "0.7.4"; + pyproject = true; src = fetchFromGitHub { owner = "andrewsayre"; repo = "pyheos"; - rev = version; - sha256 = "0rgzg7lnqzzqrjp73c1hj1hq8p0j0msyih3yr4wa2rj81s8ihmby"; + rev = "refs/tags/${version}"; + hash = "sha256-vz81FepXWcCdlY1v7ozp+/l+XpYb91mNmRiLKwjrC4A="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - disabledTests = - [ - # accesses network - "test_connect_timeout" - ] - ++ lib.optionals (pythonAtLeast "3.12") [ - # stuck in epoll - "test_disconnect" - "test_commands_fail_when_disconnected" - ]; + disabledTests = [ + # accesses network + "test_connect_timeout" + ]; pythonImportsCheck = [ "pyheos" ]; meta = with lib; { + changelog = "https://github.com/andrewsayre/pyheos/releases/tag/${version}"; description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol"; homepage = "https://github.com/andrewsayre/pyheos"; license = licenses.asl20;