2018-11-02 11:12:07 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2019-12-23 00:33:40 +01:00
|
|
|
, cryptography, pyaes, pycrc }:
|
2018-11-02 11:12:07 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "broadlink";
|
2019-10-24 08:47:26 +02:00
|
|
|
version = "0.12.0";
|
2018-11-02 11:12:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:26 +02:00
|
|
|
sha256 = "6448327f8f1cd0c103971a724a3e60629ccb5e8c302e7fdcbde6464e8edef2d8";
|
2018-11-02 11:12:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace pyaes==1.6.0 pyaes
|
|
|
|
'';
|
|
|
|
|
2019-12-23 00:33:40 +01:00
|
|
|
propagatedBuildInputs = [ cryptography pyaes pycrc ];
|
2018-11-02 11:12:07 +01:00
|
|
|
|
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for controlling Broadlink IR controllers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mjg59/python-broadlink";
|
2018-11-02 11:12:07 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|