depot/third_party/nixpkgs/pkgs/development/python-modules/gpiozero/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

55 lines
927 B
Nix

{ 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;
platforms = platforms.linux;
maintainers = with maintainers; [ hexa ];
};
}