depot/third_party/nixpkgs/pkgs/development/python-modules/gpiozero/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

54 lines
894 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;
maintainers = with maintainers; [ hexa ];
};
}