depot/third_party/nixpkgs/pkgs/development/python-modules/switchbot-api/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
897 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
}:
buildPythonPackage rec {
pname = "switchbot-api";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "SeraphicCorp";
repo = "py-switchbot-api";
rev = "refs/tags/v${version}";
hash = "sha256-dJLjWwBzrT3GnsRpTIXu3SkVDUlnAbRwBlfSQaHWPzc=";
};
build-system = [ poetry-core ];
dependencies = [ 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 ];
};
}