Merge pull request #299836 from fabaff/pyinsteon-fix

python312Packages.pyinsteon: disable all handlers tests on Python 3.12
This commit is contained in:
Fabian Affolter 2024-03-29 00:03:28 +01:00 committed by GitHub
commit 8c1931aaba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
{ lib { lib
, aiofiles , aiofiles
, aiohttp , aiohttp
, async-timeout
, async-generator , async-generator
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
@ -12,31 +13,30 @@
, pythonOlder , pythonOlder
, setuptools , setuptools
, voluptuous , voluptuous
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyinsteon"; pname = "pyinsteon";
version = "1.5.3"; version = "1.5.3";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = "pyinsteon";
repo = pname; repo = "pyinsteon";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-9d6QbekUv63sjKdK+ZogYOkGfFXVW+JB6ITHnehLwtM="; hash = "sha256-9d6QbekUv63sjKdK+ZogYOkGfFXVW+JB6ITHnehLwtM=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = [ dependencies = [
aiofiles aiofiles
aiohttp aiohttp
async-timeout
pypubsub pypubsub
pyserial pyserial
pyserial-asyncio pyserial-asyncio
@ -48,20 +48,9 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTests = lib.optionals (pythonAtLeast "3.12") [ disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
# AssertionError: Failed test 'read_eeprom_response' with argument 'group' value X vs expected value Z # Tests are blocking or failing
"test_async_send" "tests/test_handlers/"
"test_nak_response"
"test_no_direct_ack"
"test_on_level"
"test_on_level_group"
"test_on_level_nak"
# AssertionError: Failed test 'read_eeprom_response' with argument 'target' value X vs expected value Y
"test_other_status"
"test_status_command"
"test_status_request_hub"
# stuck in epoll
"test_read_all_peek"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
@ -70,7 +59,6 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python library to support Insteon home automation projects"; description = "Python library to support Insteon home automation projects";
mainProgram = "insteon_tools";
longDescription = '' longDescription = ''
This is a Python package to interface with an Insteon Modem. It has been This is a Python package to interface with an Insteon Modem. It has been
tested to work with most USB or RS-232 serial based devices such as the tested to work with most USB or RS-232 serial based devices such as the
@ -80,5 +68,6 @@ buildPythonPackage rec {
changelog = "https://github.com/pyinsteon/pyinsteon/releases/tag/${version}"; changelog = "https://github.com/pyinsteon/pyinsteon/releases/tag/${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
mainProgram = "insteon_tools";
}; };
} }