Merge pull request #250954 from fabaff/gpiozero-fix

python311Packages.gpiozero: disable failing test
This commit is contained in:
Fabian Affolter 2023-08-23 15:56:51 +02:00 committed by GitHub
commit 4ae1ea959a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
, sphinxHook
, colorzero
, mock
, pythonOlder
, pytestCheckHook
}:
@ -13,6 +14,8 @@ buildPythonPackage rec {
version = "1.6.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gpiozero";
repo = pname;
@ -34,20 +37,25 @@ buildPythonPackage rec {
colorzero
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
disabledTests = [
# https://github.com/gpiozero/gpiozero/issues/1087
"test_spi_hardware_write"
];
meta = with lib; {
description = "A simple interface to GPIO devices with Raspberry Pi";
homepage = "https://github.com/gpiozero/gpiozero";
changelog = "https://github.com/gpiozero/gpiozero/blob/v${version}/docs/changelog.rst";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ hexa ];