Compare commits
2 Commits
0df8fa88d1
...
22e6c556a3
Author | SHA1 | Date | |
---|---|---|---|
22e6c556a3 | |||
b5b272269b |
@ -270,26 +270,17 @@ in
|
|||||||
home-assistant-browser-mod
|
home-assistant-browser-mod
|
||||||
];
|
];
|
||||||
|
|
||||||
customLovelaceModules =
|
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
||||||
(with pkgs.home-assistant-custom-lovelace-modules; [
|
bubble-card
|
||||||
bubble-card
|
button-card
|
||||||
button-card
|
card-mod
|
||||||
card-mod
|
light-entity-card
|
||||||
light-entity-card
|
mini-graph-card
|
||||||
mini-graph-card
|
mini-media-player
|
||||||
mini-media-player
|
mushroom
|
||||||
mushroom
|
sankey-chart
|
||||||
sankey-chart
|
universal-remote-card
|
||||||
universal-remote-card
|
];
|
||||||
])
|
|
||||||
++ (with pkgs; [
|
|
||||||
lovelace-auto-entities
|
|
||||||
lovelace-layout-card
|
|
||||||
lovelace-my-cards
|
|
||||||
lovelace-simple-weather-card
|
|
||||||
lovelace-state-switch
|
|
||||||
lovelace-weather-radar-card
|
|
||||||
]);
|
|
||||||
|
|
||||||
lovelaceConfigWritable = true;
|
lovelaceConfigWritable = true;
|
||||||
};
|
};
|
||||||
|
@ -1,214 +0,0 @@
|
|||||||
{
|
|
||||||
fetchFromGitHub,
|
|
||||||
buildHomeAssistantComponent,
|
|
||||||
python312Packages,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
importlib-resources = python312Packages.callPackage (
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
isPy27,
|
|
||||||
buildPythonPackage,
|
|
||||||
fetchPypi,
|
|
||||||
setuptools-scm,
|
|
||||||
importlib-metadata,
|
|
||||||
typing ? null,
|
|
||||||
pythonOlder,
|
|
||||||
unittestCheckHook,
|
|
||||||
}:
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "importlib-resources";
|
|
||||||
version = "5.8.0";
|
|
||||||
format = "pyproject";
|
|
||||||
disabled = isPy27;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "importlib_resources";
|
|
||||||
inherit version;
|
|
||||||
sha256 = "sha256-VoyfFssgT53syNbSSlcu7qJ9rLtM7p5rA6gCVzZ2l1E=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
setuptools-scm
|
|
||||||
];
|
|
||||||
propagatedBuildInputs =
|
|
||||||
[
|
|
||||||
importlib-metadata
|
|
||||||
]
|
|
||||||
++ lib.optional (pythonOlder "3.5") [
|
|
||||||
typing
|
|
||||||
];
|
|
||||||
checkInputs = [
|
|
||||||
unittestCheckHook
|
|
||||||
];
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"importlib_resources"
|
|
||||||
];
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Read resources from Python packages";
|
|
||||||
homepage = "https://importlib-resources.readthedocs.io/";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
) { };
|
|
||||||
|
|
||||||
pydantic = python312Packages.pydantic;
|
|
||||||
|
|
||||||
sigstore-rekor-types = python312Packages.callPackage (
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
buildPythonPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pythonOlder,
|
|
||||||
pydantic,
|
|
||||||
flit-core,
|
|
||||||
}:
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "sigstore-rekor-types";
|
|
||||||
version = "0.0.11";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "trailofbits";
|
|
||||||
repo = "sigstore-rekor-types";
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
hash = "sha256-oOFdRiDp9USc3A+aaPExprEO2i/RERNahiyi2kVpkns=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = [ flit-core ];
|
|
||||||
|
|
||||||
dependencies = [ pydantic ] ++ pydantic.optional-dependencies.email;
|
|
||||||
|
|
||||||
# Module has no tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Python models for Rekor's API types";
|
|
||||||
homepage = "https://github.com/trailofbits/sigstore-rekor-types";
|
|
||||||
changelog = "https://github.com/trailofbits/sigstore-rekor-types/releases/tag/v${version}";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ fab ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
) { pydantic = pydantic; };
|
|
||||||
|
|
||||||
sigstore =
|
|
||||||
python312Packages.callPackage
|
|
||||||
(
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
buildPythonPackage,
|
|
||||||
appdirs,
|
|
||||||
cryptography,
|
|
||||||
fetchFromGitHub,
|
|
||||||
flit-core,
|
|
||||||
id,
|
|
||||||
importlib-resources,
|
|
||||||
pretend,
|
|
||||||
pydantic,
|
|
||||||
pyjwt,
|
|
||||||
pyopenssl,
|
|
||||||
pytestCheckHook,
|
|
||||||
pythonOlder,
|
|
||||||
requests,
|
|
||||||
rich,
|
|
||||||
securesystemslib,
|
|
||||||
sigstore-protobuf-specs,
|
|
||||||
sigstore-rekor-types,
|
|
||||||
tuf,
|
|
||||||
}:
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "sigstore-python";
|
|
||||||
version = "1.1.2";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "sigstore";
|
|
||||||
repo = "sigstore-python";
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
hash = "sha256-lqmrM4r1yPVCcvWNC9CKYMyryuIyliI2Y+TAYgAwA1Y=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = [ flit-core ];
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
appdirs
|
|
||||||
cryptography
|
|
||||||
id
|
|
||||||
importlib-resources
|
|
||||||
pydantic
|
|
||||||
pyjwt
|
|
||||||
pyopenssl
|
|
||||||
requests
|
|
||||||
rich
|
|
||||||
securesystemslib
|
|
||||||
sigstore-protobuf-specs
|
|
||||||
sigstore-rekor-types
|
|
||||||
tuf
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
|
||||||
pretend
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
export HOME=$(mktemp -d)
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "sigstore" ];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# Tests require network access
|
|
||||||
"test_fail_init_url"
|
|
||||||
"test_get_identity_token_bad_code"
|
|
||||||
"test_identity_proof_claim_lookup"
|
|
||||||
"test_init_url"
|
|
||||||
"test_production"
|
|
||||||
"test_sct_verify_keyring"
|
|
||||||
"test_sign_rekor_entry_consistent"
|
|
||||||
"test_verification_materials_retrieves_rekor_entry"
|
|
||||||
"test_verifier"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A codesigning tool for Python packages";
|
|
||||||
homepage = "https://github.com/sigstore/sigstore-python";
|
|
||||||
changelog = "https://github.com/sigstore/sigstore-python/blob/${version}/CHANGELOG.md";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = [ ];
|
|
||||||
mainProgram = "sigstore";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
{
|
|
||||||
importlib-resources = importlib-resources;
|
|
||||||
pydantic = pydantic;
|
|
||||||
sigstore-rekor-types = sigstore-rekor-types;
|
|
||||||
};
|
|
||||||
|
|
||||||
aiogithubapi = python312Packages.aiogithubapi.override { sigstore = sigstore; };
|
|
||||||
in
|
|
||||||
buildHomeAssistantComponent rec {
|
|
||||||
owner = "UI-Lovelace-Minimalist";
|
|
||||||
domain = "ui_lovelace_minimalist";
|
|
||||||
version = "v1.3.15";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = owner;
|
|
||||||
repo = "UI";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-ElhNHlJttbrZQ4bHvCBtTCNt4R01TbHPKofUG7sTUlo=";
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
python312Packages.aiofiles
|
|
||||||
aiogithubapi
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "lovelace-auto-entities";
|
|
||||||
version = "v1.13.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "thomasloven";
|
|
||||||
repo = "lovelace-auto-entities";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-ls8Jqt5SdiY5ROhtaSS4ZvoY+nHv6UB1RYApOJzC1VQ=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-9z4YzLNxNh7I4yFxuPT3/erZO4itAiqyxL1a0pUTFRs=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
cp ./auto-entities.js $out/
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "auto-entities.js";
|
|
||||||
|
|
||||||
makeCacheWritable = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Automatically populate the entities-list of lovelace cards";
|
|
||||||
homepage = "https://github.com/thomasloven/lovelace-auto-entities";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
mainProgram = "lovelace-auto-entities";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "lovelace-layout-card";
|
|
||||||
version = "v2.4.5";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "thomasloven";
|
|
||||||
repo = "lovelace-layout-card";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-JqHpd3u3HT9JuAfCQW0Bg/UIQ/pzurQBp9/PFa+0/u0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-1Crvtux1IbdtZ5dMxhYcrCw/6IxLpNwNwUMEJpWm4HM=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
install -m0644 layout-card.js $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "layout-card.js";
|
|
||||||
|
|
||||||
makeCacheWritable = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Get more control over the placement of lovelace cards.";
|
|
||||||
homepage = "https://github.com/thomasloven/lovelace-layout-card";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "my-cards";
|
|
||||||
version = "v1.0.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "AnthonMS";
|
|
||||||
repo = "my-cards";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-x0vOq87P1uOq5ILB4CSAowaAtUo4Nu9m6DFRiqa/Sw4=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-QohapCm6ABarHYwLlAhubvlrU5Z626vNAX1OB8b9A6g=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
install -m0644 dist/my-cards.js $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "my-cards.js";
|
|
||||||
|
|
||||||
makeCacheWritable = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Bundle of my custom Lovelace cards for Home Assistant. Includes: my-slider, my-slider-v2, my-button";
|
|
||||||
homepage = "https://github.com/AnthonMS/my-cards";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitea,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "simple-weather-card";
|
|
||||||
version = "v0.8.5";
|
|
||||||
|
|
||||||
src = fetchFromGitea {
|
|
||||||
domain = "git.vimium.com";
|
|
||||||
owner = "jordan";
|
|
||||||
repo = "simple-weather-card";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-/4iIUKP8TRJIUWKbqI8n6tWxkTXMWktVUbAQvGoaeZ0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-pKMi+cN3fTT3/35BeExI7CCFwgTjEhvIoIt2YPi08Os=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
install -m0644 dist/simple-weather-card-bundle.js $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "simple-weather-card-bundle.js";
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Minimalistic weather card for Home Assistant";
|
|
||||||
homepage = "https://github.com/kalkih/simple-weather-card";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "lovelace-state-switch";
|
|
||||||
version = "1.9.5";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "thomasloven";
|
|
||||||
repo = "lovelace-state-switch";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-jrybRchpZWmqauKKv4i4ht/CAdMNykOuPjlDnZh4KPw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-p+XPG6nB9wDmaWrmSc0dmJdKBdIivbM337Gf4j6xqBg=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
install -m0644 state-switch.js $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "state-switch.js";
|
|
||||||
|
|
||||||
makeCacheWritable = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Dynamically replace lovelace cards depending on occasion";
|
|
||||||
homepage = "https://github.com/thomasloven/lovelace-state-switch";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitea,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildNpmPackage rec {
|
|
||||||
pname = "weather-radar-card";
|
|
||||||
version = "v2.1.1";
|
|
||||||
|
|
||||||
src = fetchFromGitea {
|
|
||||||
domain = "git.vimium.com";
|
|
||||||
owner = "jordan";
|
|
||||||
repo = "weather-radar-card";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-ASmtseR/E65zOQTNf1SKlNfFj6vmPckk0Us/QhUN/Wg=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-JjwoYmEKLMdNjz/FrQThdeJzWi9aUL+01go65P/R8dI=";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
|
||||||
install -m0644 dist/weather-radar-card.js $out
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.entrypoint = "weather-radar-card.js";
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A rain radar card using the tiled images from RainViewer";
|
|
||||||
homepage = "https://github.com/Makin-Things/weather-radar-card";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user