python311Packages.gpiozero: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter
2023-08-23 12:40:49 +02:00
parent 7ae0558145
commit f8d58ba918
@@ -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,16 +37,16 @@ buildPythonPackage rec {
colorzero
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
meta = with lib; {
description = "A simple interface to GPIO devices with Raspberry Pi";
homepage = "https://github.com/gpiozero/gpiozero";