feat(third_party/python): Package broadlink infrared library
This commit is contained in:
parent
1af9a8eb53
commit
4deb439d2e
2 changed files with 23 additions and 0 deletions
1
third_party/default.nix
vendored
1
third_party/default.nix
vendored
|
@ -87,6 +87,7 @@ let
|
|||
pkgconfig
|
||||
pounce
|
||||
protobuf
|
||||
python3
|
||||
python3Packages
|
||||
remarshal
|
||||
rink
|
||||
|
|
22
third_party/python/broadlink.nix
vendored
Normal file
22
third_party/python/broadlink.nix
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 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 ];
|
||||
}))
|
Loading…
Reference in a new issue