about summary refs log tree commit diff
path: root/third_party/python/broadlink/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-25T20·38+0100
committerVincent Ambo <tazjin@google.com>2020-04-25T20·38+0100
commitb597a1c1434f90065cfaa185426fdf8bb6c7e366 (patch)
tree770d2ecc9e13bb4142a06a57827d70316181cfed /third_party/python/broadlink/default.nix
parent9d94a727b27016e21fe904a555a3742d3c5b1eb9 (diff)
feat(third_party/python): Vendor broadlink-python using git-subtree r/681
Diffstat (limited to 'third_party/python/broadlink/default.nix')
-rw-r--r--third_party/python/broadlink/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/python/broadlink/default.nix b/third_party/python/broadlink/default.nix
new file mode 100644
index 000000000000..e316d83d1d71
--- /dev/null
+++ b/third_party/python/broadlink/default.nix
@@ -0,0 +1,15 @@
+# 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 = ./.;
+  propagatedBuildInputs = [ cryptography ];
+}))