Commit ba504818 authored by robert jakub's avatar robert jakub
Browse files

python31{3,4}.pkgs.rpi-lgpio: init at 0.6

parent 3f1b894b
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  lgpio,
}:

buildPythonPackage (finalAttrs: {
  pname = "rpi-lgpio";
  version = "0.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "waveform80";
    repo = "rpi-lgpio";
    tag = "release-${finalAttrs.version}";
    hash = "sha256-Fmj03O4nWsu02uXhT67KyIN/OvDSiJrx91HhgyldJmk=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    lgpio
  ];

  # Tests do a platform check which requires running on a Raspberry Pi
  doCheck = false;

  meta = {
    description = "Python module to control the GPIO on a Raspberry Pi";
    homepage = "https://github.com/waveform80/rpi-lgpio";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [
      robertjakub
    ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -16761,6 +16761,8 @@ self: super: with self; {
  rpi-gpio = callPackage ../development/python-modules/rpi-gpio { };
  rpi-lgpio = callPackage ../development/python-modules/rpi-lgpio { };
  rplcd = callPackage ../development/python-modules/rplcd { };
  rply = callPackage ../development/python-modules/rply { };