pythonPackages.broadlink: init at 0.9

This commit is contained in:
Peter Hoeg 2018-11-02 18:12:07 +08:00
parent c70ad805d2
commit 1ccafe56f9
2 changed files with 30 additions and 0 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

@ -260,6 +260,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 {});