diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-01-24 23:33:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 23:33:23 +0100 |
commit | 10c472752eb6e0626d5300d74d8b9809d63a92c5 (patch) | |
tree | 57405d3da63211368e73ae4108d177cd188e2332 /pkgs/development | |
parent | e157894dfc099464728223ec2b06e5456819fba1 (diff) | |
parent | 1cde59afe650673e65ec809e0ef6fa3f2c958459 (diff) |
Merge pull request #283246 from fabaff/switchbot-api-bump
python311Packages.switchbot-api: init at 2.0.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/switchbot-api/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/switchbot-api/default.nix b/pkgs/development/python-modules/switchbot-api/default.nix new file mode 100644 index 0000000000000..32df6d5185ca4 --- /dev/null +++ b/pkgs/development/python-modules/switchbot-api/default.nix @@ -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 ]; + }; +} |