python3Packages.gpiozero: init at 1.6.2

This commit is contained in:
Martin Weinelt 2022-08-08 00:12:46 +02:00
parent 76e7ca2cfc
commit 3a8f3937a3
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, sphinx-rtd-theme
, sphinxHook
, colorzero
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "gpiozero";
version = "1.6.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "gpiozero";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dmFc3DNTlEajYQ5e8QK2WfehwYwAsWyG2cxKg5ykEaI=";
};
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [
colorzero
];
pythonImportsCheck = [
"gpiozero"
"gpiozero.tools"
];
checkInputs = [
mock
pytestCheckHook
];
meta = with lib; {
description = "A simple interface to GPIO devices with Raspberry Pi";
homepage = "https://github.com/gpiozero/gpiozero";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -3774,6 +3774,8 @@ in {
gpapi = callPackage ../development/python-modules/gpapi { };
gpiozero = callPackage ../development/python-modules/gpiozero { };
gplaycli = callPackage ../development/python-modules/gplaycli { };
gpgme = toPythonModule (pkgs.gpgme.override {