Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchNpmDeps,
|
|
|
|
# build-system
|
|
setuptools,
|
|
nodejs,
|
|
npmHooks,
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "esphome-dashboard";
|
|
version = "20250814.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "esphome";
|
|
repo = "dashboard";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-WQsyv3s3LKKOwYEkX5GcAPnbH061q1ts7TU4HU6I8CI=";
|
|
};
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit src;
|
|
hash = "sha256-ShuJPS7qP2XZ3lwJrFeKRkQwX7tvyiC/0L7sGn0cMn8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
npmHooks.npmConfigHook
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://github.com/esphome/dashboard/pull/639
|
|
patchShebangs script/build
|
|
'';
|
|
|
|
preBuild = ''
|
|
script/build
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"esphome_dashboard"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ESPHome dashboard";
|
|
homepage = "https://esphome.io/";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|