mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python313Packages.switchbot-api: migrate to finalAttrs
This commit is contained in:
parent
ef1dc8c0f2
commit
fee53cac55
1 changed files with 4 additions and 4 deletions
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue