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