mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-29 13:35:44 +00:00
Collection of datasets for evaluating AI Models in the context of Home Assistant https://github.com/allenporter/home-assistant-datasets
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
google-generativeai,
|
|
hass-client,
|
|
jinja2,
|
|
mashumaro,
|
|
openai,
|
|
pyrate-limiter,
|
|
pytestCheckHook,
|
|
python-slugify,
|
|
pyyaml,
|
|
setuptools-scm,
|
|
setuptools,
|
|
synthetic-home,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "home-assistant-datasets";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "allenporter";
|
|
repo = "home-assistant-datasets";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-csvjbPtsl7/olJAFmiLES9GH7wAZHxOADTpqbcQbM3s=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
google-generativeai
|
|
hass-client
|
|
mashumaro
|
|
openai
|
|
pyrate-limiter
|
|
pyyaml
|
|
synthetic-home
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jinja2
|
|
pytestCheckHook
|
|
python-slugify
|
|
syrupy
|
|
];
|
|
|
|
pythonImportsCheck = [ "home_assistant_datasets" ];
|
|
|
|
# Tests want to import Home Assistant as a module
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Collection of datasets for evaluating AI Models in the context of Home Assistant";
|
|
homepage = "https://github.com/allenporter/home-assistant-datasets";
|
|
changelog = "https://github.com/allenporter/home-assistant-datasets/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|