5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
49 lines
1,018 B
Nix
49 lines
1,018 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, wheel
|
|
, 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=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "setuptools~=65.6" "setuptools" \
|
|
--replace "wheel~=0.37.1" "wheel"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|