Files
nixpkgs/pkgs/development/python-modules/esphome-dashboard-api/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
828 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
orjson,
}:
buildPythonPackage rec {
pname = "esphome-dashboard-api";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "esphome";
repo = "dashboard-api";
tag = version;
hash = "sha256-b3PnMzlA9N8NH6R5ed6wf5QF45i887iQk2QgH7e755k=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
orjson
];
doCheck = false; # no tests
pythonImportsCheck = [ "esphome_dashboard_api" ];
meta = {
description = "API to interact with ESPHome Dashboard";
homepage = "https://github.com/esphome/dashboard-api";
changelog = "https://github.com/esphome/dashboard-api/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}