2021-03-13 02:30:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cryptography
|
|
|
|
}:
|
2018-11-02 10:12:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "broadlink";
|
2021-03-12 22:47:40 +00:00
|
|
|
version = "0.17.0";
|
2018-11-02 10:12:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 22:47:40 +00:00
|
|
|
sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571";
|
2018-11-02 10:12:07 +00:00
|
|
|
};
|
|
|
|
|
2021-03-13 02:30:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
];
|
2018-11-02 10:12:07 +00:00
|
|
|
|
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-13 02:30:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"broadlink"
|
|
|
|
];
|
|
|
|
|
2018-11-02 10:12:07 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|