Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / switchbot-api / default.nix
blob4f6f5ff177842ad847f100c49f5395e6a05ec662
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , poetry-core
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "switchbot-api";
11   version = "2.1.0";
12   pyproject = true;
14   disabled = pythonOlder "3.10";
16   src = fetchFromGitHub {
17     owner = "SeraphicCorp";
18     repo = "py-switchbot-api";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-dJLjWwBzrT3GnsRpTIXu3SkVDUlnAbRwBlfSQaHWPzc=";
21   };
23   build-system = [
24     poetry-core
25   ];
27   dependencies = [
28     aiohttp
29   ];
31   # Module has no tests
32   doCheck= false;
34   pythonImportsCheck = [
35     "switchbot_api"
36   ];
38   meta = with lib; {
39     description = "An asynchronous library to use Switchbot API";
40     homepage = "https://github.com/SeraphicCorp/py-switchbot-api";
41     changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/v${version}";
42     license = licenses.mit;
43     maintainers = with maintainers; [ fab ];
44   };