mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
home-assistant: unpin and fix build dependencies
This commit is contained in:
parent
bc1fea42ca
commit
3c3fd2fe9d
|
@ -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; [
|
||||||
|
|
Loading…
Reference in a new issue