about summary refs log blame commit diff
path: root/third_party/python/broadlink.nix
blob: 75db1ef2b7af4d25be9f7bc259e17c5cc987aea2 (plain) (tree)





















                                                                    
# Python package for controlling the Broadlink RM Pro Infrared
# controller.
#
# https://github.com/mjg59/python-broadlink
{ pkgs, lib, ... }:

let
  inherit (pkgs) fetchFromGitHub;
  inherit (pkgs.python3Packages) buildPythonPackage cryptography;
in buildPythonPackage (lib.fix (self: {
  pname = "python-broadlink";
  version = "0.13.2";

  src = fetchFromGitHub {
    owner = "mjg59";
    repo = "python-broadlink";
    rev = self.version;
    sha256 = "0dwqzx294sjdc8dg1sd3z6mhll0zzsb8k0lzs63nyhm2nc9pyv6j";
  };

  propagatedBuildInputs = [ cryptography ];
}))