Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 73 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder,
# build-system setuptools,
# docs sphinx-rtd-theme, sphinxHook,
# dependencies colorzero,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "gpiozero"; version = "2.0.1"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "gpiozero"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-ifdCFcMH6SrhKQK/TJJ5lJafSfAUzd6ZT5ANUzJGwxI="; };
postPatch = '' substituteInPlace setup.cfg \ --replace " --cov" "" '';
outputs = [ "out" "doc" ];
nativeBuildInputs = [ setuptools sphinx-rtd-theme sphinxHook ];
propagatedBuildInputs = [ colorzero ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gpiozero" "gpiozero.tools" ];
disabledTests = [ # https://github.com/gpiozero/gpiozero/issues/1087 "test_spi_hardware_write" ];
meta = with lib; { description = "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 ]; };}