Unverified Commit fee53cac authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.switchbot-api: migrate to finalAttrs

parent ef1dc8c0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  poetry-core,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "switchbot-api";
  version = "2.10.0";
  pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "SeraphicCorp";
    repo = "py-switchbot-api";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-s6ezIkW36eIaxqedOfIk4KNhCwjXPFkc49qqK2p2eGw=";
  };

@@ -30,8 +30,8 @@ buildPythonPackage rec {
  meta = {
    description = "Asynchronous library to use Switchbot API";
    homepage = "https://github.com/SeraphicCorp/py-switchbot-api";
    changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/${src.tag}";
    changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})