python3Packages.aioesphomeapi: enable tests
This commit is contained in:
parent
9a2ebe5597
commit
58804e1446
1 changed files with 15 additions and 7 deletions
|
@ -1,8 +1,11 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
, mock
|
||||||
, protobuf
|
, protobuf
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, zeroconf
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -13,9 +16,11 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "esphome";
|
||||||
sha256 = "04r97d8bc5amvjvf2sxy2h4jf6z348q6p5z1nsxfnif80kxl0k60";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "09hhkwkphyqa31yd1mmpz8xmyz6hav8vwf36v8xc4v6g1xm9l6f5";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -23,8 +28,11 @@ buildPythonPackage rec {
|
||||||
zeroconf
|
zeroconf
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests implemented
|
checkInputs = [
|
||||||
doCheck = false;
|
mock
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"aioesphomeapi"
|
"aioesphomeapi"
|
||||||
|
|
Loading…
Reference in a new issue