1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

Merge pull request #321131 from mweinelt/esphome-2024.6.0

esphome: 2024.5.4 -> 2024.6.0
This commit is contained in:
Martin Weinelt 2024-06-26 13:42:41 +02:00 committed by GitHub
commit a6fc4a2bf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View file

@ -5,12 +5,13 @@
buildPythonPackage rec {
pname = "esphome-dashboard";
version = "20240412.0";
version = "20240620.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-MT/EpZ8kDKHhJGF4njdh6Q+xe8GF4FYxaoIighSguiQ=";
pname = "esphome_dashboard";
inherit version;
hash = "sha256-lx3i8Z2PUefyibCNiQ4zPEwfgXr6r/TVa9TBF0YE5fA=";
};
# no tests

View file

@ -19,14 +19,14 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "esphome";
version = "2024.5.4";
version = "2024.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-UxNMHRQLrViK9ssFc0vHA/zqNw5yH8E6n+OAnq6vJdQ=";
hash = "sha256-bFQnAuyEBzFV9xiGOHLJrR4oTUU8ZRHjIa3ww0yCNRk=";
};
nativeBuildInputs = with python.pkgs; [
@ -38,9 +38,17 @@ python.pkgs.buildPythonApplication rec {
pythonRelaxDeps = true;
pythonRemoveDeps = [
"esptool"
"platformio"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==" "setuptools>="
# drop coverage testing
sed -i '/--cov/d' pytest.ini
sed -i '/--cov/d' pyproject.toml
# ensure component dependencies are available
cat requirements_optional.txt >> requirements.txt