Merge pull request #49645 from peterhoeg/p/broadlink

pythonPackages.broadlink: init at 0.9
This commit is contained in:
Robert Schütz 2018-11-03 15:37:02 +01:00 committed by GitHub
commit 4870522f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,28 @@
{ lib, fetchPypi, buildPythonPackage
, pyaes, pycrc }:
buildPythonPackage rec {
pname = "broadlink";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "10dnd859yjh1h6qrxhvkslbsj5fh5g654xsq2yqblkkv3xd711rs";
};
postPatch = ''
substituteInPlace setup.py \
--replace pyaes==1.6.0 pyaes
'';
propagatedBuildInputs = [ pyaes pycrc ];
# no tests available
doCheck = false;
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
homepage = http://github.com/mjg59/python-broadlink;
license = licenses.mit;
};
}

View File

@ -867,7 +867,7 @@
"sensor.bme680" = ps: with ps; [ ];
"sensor.bmw_connected_drive" = ps: with ps; [ ];
"sensor.bom" = ps: with ps; [ ];
"sensor.broadlink" = ps: with ps; [ ];
"sensor.broadlink" = ps: with ps; [ broadlink ];
"sensor.buienradar" = ps: with ps; [ ];
"sensor.canary" = ps: with ps; [ ];
"sensor.cert_expiry" = ps: with ps; [ ];
@ -1166,7 +1166,7 @@
"switch.arduino" = ps: with ps; [ ];
"switch.arest" = ps: with ps; [ ];
"switch.bbb_gpio" = ps: with ps; [ ];
"switch.broadlink" = ps: with ps; [ ];
"switch.broadlink" = ps: with ps; [ broadlink ];
"switch.command_line" = ps: with ps; [ ];
"switch.deconz" = ps: with ps; [ ];
"switch.deluge" = ps: with ps; [ deluge-client ];

View File

@ -266,6 +266,8 @@ in {
brotli = callPackage ../development/python-modules/brotli { };
broadlink = callPackage ../development/python-modules/broadlink { };
browser-cookie3 = callPackage ../development/python-modules/browser-cookie3 { };
browsermob-proxy = disabledIf isPy3k (callPackage ../development/python-modules/browsermob-proxy {});