home-assistant: unpin and fix build dependencies

This commit is contained in:
Theodore Ni 2023-08-19 00:07:05 -07:00 committed by Frederik Rietdijk
parent bc1fea42ca
commit 3c3fd2fe9d

View file

@ -49,6 +49,7 @@ let
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "poetry>=1.0.0b1" "poetry-core" \
--replace "poetry.masonry" "poetry.core.masonry" --replace "poetry.masonry" "poetry.core.masonry"
''; '';
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [
@ -324,6 +325,7 @@ in python.pkgs.buildPythonApplication rec {
nativeBuildInputs = with python.pkgs; [ nativeBuildInputs = with python.pkgs; [
setuptools setuptools
wheel
]; ];
# copy tests early, so patches apply as they would to the git repo # copy tests early, so patches apply as they would to the git repo
@ -368,6 +370,9 @@ in python.pkgs.buildPythonApplication rec {
) relaxedConstraints)} ) relaxedConstraints)}
pyproject.toml pyproject.toml
substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"' substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
sed -i 's/setuptools[~=]/setuptools>/' pyproject.toml
sed -i 's/wheel[~=]/wheel>/' pyproject.toml
''; '';
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python.pkgs; [