Merge pull request #328463 from dotlambda/python3Packages.pyheos

python312Packages.pyheos: 0.7.2 -> 0.7.4
This commit is contained in:
Robert Schütz 2024-07-22 08:35:42 -07:00 committed by GitHub
commit 239cea6f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;