codesnap: init at 0.8.2 (#364266)
[NixPkgs.git] / pkgs / development / python-modules / switchbot-api / default.nix
blobee048637b4350081429a20f72af9e7ded32a03c8
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   poetry-core,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "switchbot-api";
12   version = "2.2.1";
13   pyproject = true;
15   disabled = pythonOlder "3.10";
17   src = fetchFromGitHub {
18     owner = "SeraphicCorp";
19     repo = "py-switchbot-api";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-jpm01wDVLgGr5SMaevxiYGfv8tVa1ibRtcHkEK3yb58=";
22   };
24   build-system = [ poetry-core ];
26   dependencies = [ aiohttp ];
28   # Module has no tests
29   doCheck = false;
31   pythonImportsCheck = [ "switchbot_api" ];
33   meta = with lib; {
34     description = "Asynchronous library to use Switchbot API";
35     homepage = "https://github.com/SeraphicCorp/py-switchbot-api";
36     changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/v${version}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ fab ];
39   };