ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyswitchbot / default.nix
blob6ba4edcde88c20dcb692500dfdb517ab6fe18808
1 { lib
2 , bleak
3 , bleak-retry-connector
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pythonOlder
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pyswitchbot";
12   version = "0.20.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "Danielhiversen";
19     repo = "pySwitchbot";
20     rev = "refs/tags/${version}";
21     hash = "sha256-GNjyDkqhOP9sq2qoAZCdSrUNte3FynVxhy9RSUn9j/c=";
22   };
24   propagatedBuildInputs = [
25     bleak
26     bleak-retry-connector
27   ];
29   checkInputs = [
30     pytestCheckHook
31   ];
33   disabledTests = [
34     # mismatch in expected data structure
35     "test_parse_advertisement_data_curtain"
36   ];
38   pythonImportsCheck = [
39     "switchbot"
40   ];
42   meta = with lib; {
43     description = "Python library to control Switchbot IoT devices";
44     homepage = "https://github.com/Danielhiversen/pySwitchbot";
45     license = with licenses; [ mit ];
46     maintainers = with maintainers; [ fab ];
47     platforms = platforms.linux;
48   };