python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / pyswitchbot / default.nix
blob161c85a1f833b0f9cd14ab87443efc651bd30252
2   lib,
3   bleak,
4   bleak-retry-connector,
5   boto3,
6   buildPythonPackage,
7   cryptography,
8   fetchFromGitHub,
9   pyopenssl,
10   pythonOlder,
11   pytest-asyncio,
12   pytestCheckHook,
13   requests,
14   setuptools,
17 buildPythonPackage rec {
18   pname = "pyswitchbot";
19   version = "0.55.4";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "Danielhiversen";
26     repo = "pySwitchbot";
27     tag = version;
28     hash = "sha256-On/FKfdiqx28MCx1kCcstb90iT1e20c84hHxdQSIark=";
29   };
31   build-system = [ setuptools ];
33   dependencies = [
34     bleak
35     bleak-retry-connector
36     boto3
37     cryptography
38     pyopenssl
39     requests
40   ];
42   nativeCheckInputs = [
43     pytest-asyncio
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "switchbot" ];
49   meta = with lib; {
50     description = "Python library to control Switchbot IoT devices";
51     homepage = "https://github.com/Danielhiversen/pySwitchbot";
52     changelog = "https://github.com/Danielhiversen/pySwitchbot/releases/tag/${version}";
53     license = with licenses; [ mit ];
54     maintainers = with maintainers; [ fab ];
55     platforms = platforms.linux;
56   };