From 44122ce292e7664aaaefb717d36635ff8d25f6bb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Feb 2023 00:02:12 +0100 Subject: [PATCH] python3Packages.esphome-dashboard-api: init at 1.2.3 --- .../esphome-dashboard-api/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/esphome-dashboard-api/default.nix diff --git a/pkgs/development/python-modules/esphome-dashboard-api/default.nix b/pkgs/development/python-modules/esphome-dashboard-api/default.nix new file mode 100644 index 000000000000..24abd9d47a95 --- /dev/null +++ b/pkgs/development/python-modules/esphome-dashboard-api/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, aiohttp +}: + +buildPythonPackage rec { + pname = "esphome-dashboard-api"; + version = "1.2.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "esphome"; + repo = "dashboard-api"; + rev = "refs/tags/${version}"; + hash = "sha256-RFfS0xzRXoM6ETXmviiMPxffPzspjTqpkvHOlTJXN9g="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ + "esphome_dashboard_api" + ]; + + meta = with lib; { + 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 = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 42f5f9283abe..92346f0e38a7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3065,6 +3065,8 @@ self: super: with self; { espeak-phonemizer = callPackage ../development/python-modules/espeak-phonemizer { }; + esphome-dashboard-api = callPackage ../development/python-modules/esphome-dashboard-api { }; + esprima = callPackage ../development/python-modules/esprima { }; escapism = callPackage ../development/python-modules/escapism { };