diff --git a/pkgs/development/python-modules/gpiozero/default.nix b/pkgs/development/python-modules/gpiozero/default.nix index a9546df9c844..587f3c9e3015 100644 --- a/pkgs/development/python-modules/gpiozero/default.nix +++ b/pkgs/development/python-modules/gpiozero/default.nix @@ -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 ];