Files
nixpkgs/pkgs/development/python-modules/gpiozero/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

70 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# docs
sphinx-rtd-theme,
sphinxHook,
# dependencies
colorzero,
# tests
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "gpiozero";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "gpiozero";
repo = "gpiozero";
tag = "v${version}";
hash = "sha256-ifdCFcMH6SrhKQK/TJJ5lJafSfAUzd6ZT5ANUzJGwxI=";
};
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
setuptools
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [ colorzero ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
disabledTests = [
# https://github.com/gpiozero/gpiozero/issues/1087
"test_spi_hardware_write"
];
meta = {
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 = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ hexa ];
};
}