home-assistant: limit tests to Linux

This commit is contained in:
Jörg Thalheim 2020-05-06 07:27:19 +01:00
parent ee8cde8d1c
commit 4dd83ab601
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -1,4 +1,4 @@
{ lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
{ stdenv, lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
# Look up dependencies of specified components in component-packages.nix
, extraComponents ? [ ]
@ -98,6 +98,9 @@ in with py.pkgs; buildPythonApplication rec {
sqlalchemy aiohttp-cors hass-frontend pyotp pyqrcode ciso8601
] ++ componentBuildInputs ++ extraBuildInputs;
# upstream only tests on Linux, so do we.
doCheck = stdenv.isLinux;
checkInputs = [
asynctest pytest pytest-aiohttp requests-mock hass-nabucasa netdisco pydispatcher
];