python3Packages.broadlink: add imports check, remove unused inputs

This commit is contained in:
Martin Weinelt 2021-03-13 03:30:05 +01:00
parent 6774bddaea
commit 84b304348e
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,5 +1,8 @@
{ lib, fetchPypi, buildPythonPackage
, cryptography, pyaes, pycrc }:
{ lib
, buildPythonPackage
, fetchPypi
, cryptography
}:
buildPythonPackage rec {
pname = "broadlink";
@ -10,16 +13,17 @@ buildPythonPackage rec {
sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571";
};
postPatch = ''
substituteInPlace setup.py \
--replace pyaes==1.6.0 pyaes
'';
propagatedBuildInputs = [ cryptography pyaes pycrc ];
propagatedBuildInputs = [
cryptography
];
# no tests available
doCheck = false;
pythonImportsCheck = [
"broadlink"
];
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
homepage = "https://github.com/mjg59/python-broadlink";