python3Packages.hass-nabucasa: update test part

This commit is contained in:
Fabian Affolter 2021-01-22 13:24:40 +01:00 committed by Jonathan Ringer
parent 82f32abe7d
commit 01cb602043

View file

@ -1,6 +1,17 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, acme, aiohttp, snitun, attrs, pycognito, warrant , acme
, pytest-aiohttp, asynctest, atomicwrites, pytest }: , aiohttp
, asynctest
, atomicwrites
, attrs
, buildPythonPackage
, fetchFromGitHub
, pycognito
, pytest-aiohttp
, pytestCheckHook
, snitun
, warrant
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "hass-nabucasa"; pname = "hass-nabucasa";
@ -15,19 +26,25 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
sed -i 's/"acme.*"/"acme"/' setup.py sed -i 's/"acme.*"/"acme"/' setup.py
sed -i 's/"attrs.*"/"attrs"/' setup.py
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
acme aiohttp atomicwrites snitun attrs warrant pycognito acme
aiohttp
atomicwrites
attrs
pycognito
snitun
warrant
]; ];
checkInputs = [ pytest pytest-aiohttp asynctest ]; checkInputs = [
asynctest
pytest-aiohttp
pytestCheckHook
];
checkPhase = '' pythonImportsCheck = [ "hass_nabucasa" ];
pytest tests/
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/NabuCasa/hass-nabucasa"; homepage = "https://github.com/NabuCasa/hass-nabucasa";