Commit 3702b8c4 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.hass-nabucasa: migrate to finalAttrs

parent ef6242b3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
  yarl,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "hass-nabucasa";
  version = "1.14.0";
  pyproject = true;
@@ -40,13 +40,13 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "nabucasa";
    repo = "hass-nabucasa";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-uTADu6IK8X+oQVvGdprmijR+MUJuWG9KMclq7zveC8o=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "0.0.0" "${version}"
      --replace-fail "0.0.0" "${finalAttrs.version}"
  '';

  build-system = [ setuptools ];
@@ -91,11 +91,11 @@ buildPythonPackage rec {
  meta = {
    description = "Python module for the Home Assistant cloud integration";
    homepage = "https://github.com/NabuCasa/hass-nabucasa";
    changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${src.tag}";
    changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [
      fab
      Scriptkiddi
    ];
  };
}
})