2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lcn-frontend";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "0.1.7";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "lcn_frontend";
|
|
|
|
inherit version;
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-S/7NUduAiekQ5CDOw8JRCTO9mbvLW6MmB/n8iQQPkok=";
|
2024-09-19 14:19:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "setuptools~=68.0" setuptools \
|
|
|
|
--replace-fail "wheel~=0.40.0" wheel
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "lcn_frontend" ];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/alengwenus/lcn-frontend/releases/tag/${version}";
|
|
|
|
description = "LCN panel for Home Assistant";
|
|
|
|
homepage = "https://github.com/alengwenus/lcn-frontend";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|