{ lib, buildNpmPackage, fetchFromGitHub, }: buildNpmPackage rec { pname = "hourly-weather"; version = "6.2.0"; src = fetchFromGitHub { owner = "decompil3d"; repo = "lovelace-hourly-weather"; rev = version; hash = "sha256-dDWdVAVrZrZIyGG9gOyLohxRZ3DGfjbvW3gGCLqZr+A="; }; npmDepsHash = "sha256-UzbMDlVOef6dO+tOeTHBBeuT578brklibbfma+VVYD8="; env.CYPRESS_INSTALL_BINARY = "0"; installPhase = '' runHook preInstall mkdir $out cp dist/hourly-weather.js $out runHook postInstall ''; meta = with lib; { description = "Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar"; homepage = "https://github.com/decompil3d/lovelace-hourly-weather"; license = licenses.mit; maintainers = with maintainers; [ matthiasbeyer ]; platforms = platforms.all; }; }