mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
esphome: disable two failing tests
esphome is still stuck on hypothesis 5.49 and tries to import things that are gone in 6.0 and later. Using a package override here would be costly as it would cause alot of rebuilds, as hypothesis is an integral part of e.g. pytest.
This commit is contained in:
parent
50c201f1aa
commit
4dbe056ea2
@ -8,9 +8,13 @@
|
||||
}:
|
||||
|
||||
let
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
esphome-dashboard = pkgs.callPackage ./dashboard.nix {};
|
||||
};
|
||||
};
|
||||
in
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
with python.pkgs; buildPythonApplication rec {
|
||||
pname = "esphome";
|
||||
version = "1.19.4";
|
||||
|
||||
@ -49,7 +53,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
# They have validation functions like:
|
||||
# - validate_cryptography_installed
|
||||
# - validate_pillow_installed
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
colorama
|
||||
cryptography
|
||||
@ -73,7 +77,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"--set ESPHOME_USE_SUBPROCESS ''"
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
mock
|
||||
pytest-asyncio
|
||||
@ -82,6 +86,13 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires hypothesis 5.49, we have 6.x
|
||||
# ImportError: cannot import name 'ip_addresses' from 'hypothesis.provisional'
|
||||
"tests/unit_tests/test_core.py"
|
||||
"tests/unit_tests/test_helpers.py"
|
||||
];
|
||||
|
||||
postCheck = ''
|
||||
$out/bin/esphome --help > /dev/null
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user