python3Packages.broadlink: add imports check, remove unused inputs
This commit is contained in:
parent
6774bddaea
commit
84b304348e
@ -1,5 +1,8 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage
|
{ lib
|
||||||
, cryptography, pyaes, pycrc }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, cryptography
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "broadlink";
|
pname = "broadlink";
|
||||||
@ -10,16 +13,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571";
|
sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
propagatedBuildInputs = [
|
||||||
substituteInPlace setup.py \
|
cryptography
|
||||||
--replace pyaes==1.6.0 pyaes
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography pyaes pycrc ];
|
|
||||||
|
|
||||||
# no tests available
|
# no tests available
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"broadlink"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python API for controlling Broadlink IR controllers";
|
description = "Python API for controlling Broadlink IR controllers";
|
||||||
homepage = "https://github.com/mjg59/python-broadlink";
|
homepage = "https://github.com/mjg59/python-broadlink";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user