python311Packages.gpiozero: disable on unsupported Python releases
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user