depot/third_party/nixpkgs/pkgs/development/python-modules/esphome-dashboard-api/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

41 lines
847 B
Nix

{ 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 ];
};
}