python3Packages.broadlink: add imports check, remove unused inputs
This commit is contained in:
parent
6774bddaea
commit
84b304348e
1 changed files with 12 additions and 8 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue