depot/third_party/nixpkgs/pkgs/development/python-modules/lcn-frontend/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

39 lines
881 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "lcn-frontend";
version = "0.1.6";
pyproject = true;
src = fetchPypi {
pname = "lcn_frontend";
inherit version;
hash = "sha256-bOR2BFYHZjRVhlH72ljqp4WKtWdqBkzZNyrmtuIzmIM=";
};
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 ];
};
}