Merge pull request #283246 from fabaff/switchbot-api-bump
python311Packages.switchbot-api: init at 2.0.0
This commit is contained in:
commit
10c472752e
3 changed files with 50 additions and 1 deletions
45
pkgs/development/python-modules/switchbot-api/default.nix
Normal file
45
pkgs/development/python-modules/switchbot-api/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "switchbot-api";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SeraphicCorp";
|
||||
repo = "py-switchbot-api";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-QM8oVfd+hdVNdhOgI3ujyY82Im0Yr5Nl+OcqzEtZ7XE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
doCheck= false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"switchbot_api"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An asynchronous library to use Switchbot API";
|
||||
homepage = "https://github.com/SeraphicCorp/py-switchbot-api";
|
||||
changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -4756,7 +4756,8 @@
|
|||
zeroconf
|
||||
];
|
||||
"switchbot_cloud" = ps: with ps; [
|
||||
]; # missing inputs: switchbot-api
|
||||
switchbot-api
|
||||
];
|
||||
"switcher_kis" = ps: with ps; [
|
||||
aioswitcher
|
||||
];
|
||||
|
@ -6358,6 +6359,7 @@
|
|||
"switch_as_x"
|
||||
"switchbee"
|
||||
"switchbot"
|
||||
"switchbot_cloud"
|
||||
"switcher_kis"
|
||||
"syncthing"
|
||||
"syncthru"
|
||||
|
|
|
@ -13998,6 +13998,8 @@ self: super: with self; {
|
|||
|
||||
swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
|
||||
|
||||
switchbot-api = callPackage ../development/python-modules/switchbot-api { };
|
||||
|
||||
swift = callPackage ../development/python-modules/swift { };
|
||||
|
||||
swisshydrodata = callPackage ../development/python-modules/swisshydrodata { };
|
||||
|
|
Loading…
Reference in a new issue